:root {
  color-scheme: dark;
  --page:#101018; --nav:#15151f; --card:#191923; --raised:#20202e; --line:#2d2c3b;
  --text:#f2effa; --muted:#a9a5bd; --accent:#c0aaff; --bright:#a786fa; --green:#84e2b9;
  font: 15px/1.5 "Segoe UI", Arial, sans-serif;
}
* { box-sizing:border-box; }
body { margin:0; background:var(--page); color:var(--text); }
a { color:var(--accent); text-decoration:none; }
a:hover { color:white; }
button,input,textarea,select { font:inherit; }
button { cursor:pointer; }
button:disabled { opacity:.45; cursor:not-allowed; }
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible { outline:2px solid #d5c6ff; outline-offset:3px; }
h1,h2,h3,p { margin:0; }
h1 { font-size:clamp(2rem,4vw,3rem); line-height:1.12; letter-spacing:-.037em; overflow-wrap:anywhere; }
h2 { font-size:1.25rem; letter-spacing:-.02em; }
h3 { font-size:1.07rem; }
small,.muted { color:var(--muted); }
.sr { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.nav { position:fixed; inset:0 auto 0 0; width:228px; background:var(--nav); border-right:1px solid var(--line); display:flex; flex-direction:column; padding:24px 16px; }
.brand { display:flex; gap:11px; align-items:center; padding:0 10px 31px; font-size:19px; font-weight:700; color:var(--text); white-space:nowrap; }
.logo { display:inline-grid; place-items:center; width:35px; height:35px; border-radius:11px; background:var(--accent); color:#271847; font-size:24px; flex:none; }
.nav nav { display:grid; gap:6px; }
.nav nav a { display:flex; gap:12px; align-items:center; padding:11px 12px; border:1px solid transparent; border-radius:10px; color:var(--muted); font-weight:600; }
.nav nav a span { width:20px; font-size:19px; color:var(--accent); }
.nav nav a.on,.nav nav a:hover { background:#272138; border-color:#3a3050; color:var(--text); }
.nav form { margin-top:auto; }
.link { border:0; background:none; color:var(--muted); padding:10px; }
.shell { max-width:1510px; margin-left:228px; padding:36px 36px 64px; }
.top { display:flex; justify-content:space-between; align-items:center; gap:14px; margin-bottom:22px; }
.eyebrow { color:var(--accent); font-size:.8rem; font-weight:650; letter-spacing:.07em; text-transform:uppercase; margin-bottom:6px; }
.pill { font-size:.78rem; padding:5px 10px; border:1px solid #48405f; color:var(--accent); background:#2a2339; border-radius:999px; white-space:nowrap; align-self:center; font-weight:600; }
.pill.live,.state-ready,.state-done { border-color:#365b51; background:#1b352e; color:var(--green); }
.state-error { border-color:#694052; background:#3a2330; color:#ffb4c6; }
.hero { position:relative; border:1px solid #44355e; isolation:isolate; display:grid; align-items:center; overflow:hidden; min-height:215px; padding:27px 28px; border-radius:20px; background:linear-gradient(112deg,#282037,#2d2149 64%,#312255); }
.hero-copy { z-index:1; max-width:720px; }
.hero h2 { font-size:clamp(1.7rem,3vw,2.4rem); line-height:1.1; }
.hero p { color:#d5c9ef; margin:9px 0 23px; }
.compose { display:flex; gap:9px; max-width:650px; }
.hero-art { position:absolute; right:3%; top:-26px; width:280px; height:280px; opacity:.72; pointer-events:none; }
.ring { position:absolute; inset:9px; border:1px solid #a48bfa72; border-radius:50%; box-shadow:0 0 0 23px #9d7dff18,0 0 0 46px #9d7dff14; }
.phone { position:absolute; left:108px; top:55px; width:95px; height:158px; border-radius:18px; border:2px solid #c1a8ff; transform:rotate(22deg); display:grid; place-items:center; background:linear-gradient(145deg,#8b5fe1,#392359); box-shadow:0 0 56px #ad83fa85; }
.phone i { border-left:22px solid #f2e7ff; border-top:12px solid transparent; border-bottom:12px solid transparent; margin-left:5px; }
input:not([type=checkbox]),textarea,select { width:100%; min-width:0; border:1px solid #414052; border-radius:9px; background:#14141e; color:var(--text); padding:9px 12px; }
input::placeholder { color:#a29ab1; }
textarea { display:block; resize:vertical; }
input[type=checkbox] { accent-color:var(--bright); width:15px; height:15px; flex:none; }
label { display:grid; gap:6px; font-weight:600; min-width:0; }
.primary,.secondary { display:inline-flex; justify-content:center; align-items:center; gap:10px; padding:9px 14px; border-radius:9px; font-weight:680; text-align:center; text-decoration:none; }
.primary { border:1px solid var(--accent); background:var(--accent); color:#24163f; white-space:nowrap; }
.primary:hover { background:#d2c1ff; color:#24163f; }
.secondary { border:1px solid #4a435c; background:#272338; color:var(--text); }
.secondary:hover { background:#36304a; }
.notice { border:1px solid #46375d; border-radius:10px; background:#272034; padding:10px 13px; margin:15px 0; overflow-wrap:anywhere; }
.notice.bad { border-color:#6a4053; background:#342232; color:#ffc2d1; }
.notice.ok { border-color:#356354; background:#1b342e; color:#b5efd8; }
.metrics { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin:17px 0; }
.metric { display:flex; align-items:center; gap:11px; border:1px solid var(--line); background:var(--card); padding:13px; border-radius:12px; color:var(--text); }
.metric small,.job-name small,.timeline small { display:block; margin-top:1px; }
.metric:hover { border-color:#66518b; }
.metric-icon,.video-icon { width:33px; height:33px; border-radius:9px; display:grid; place-items:center; flex:none; background:#2f2546; color:var(--accent); font-size:18px; }
.dashboard-grid { display:grid; grid-template-columns:minmax(0,1.52fr) minmax(0,1fr); gap:15px; }
.detail-grid { display:grid; grid-template-columns:minmax(260px,.7fr) minmax(0,1.35fr); gap:15px; }
.card { min-width:0; background:var(--card); border:1px solid var(--line); border-radius:14px; padding:19px; margin-bottom:14px; }
.section-title { display:flex; justify-content:space-between; align-items:center; gap:10px; padding-bottom:12px; border-bottom:1px solid var(--line); }
.clean { list-style:none; padding:0; margin:0; }
.empty { text-align:center; padding:30px 8px; }
.empty p { margin-bottom:5px; }
.job-row { display:flex; gap:9px; align-items:center; padding:10px 0; color:var(--text); border-bottom:1px solid var(--line); }
.job-name { flex:1; min-width:0; overflow-wrap:anywhere; }
.timeline li { display:grid; padding:10px 0; border-bottom:1px solid var(--line); gap:4px; overflow-wrap:anywhere; }
.refresh,.back { display:inline-block; margin:12px 0; }
.preview video { display:block; width:100%; max-height:510px; margin:12px auto; border-radius:10px; background:#111119; }
.preview .secondary { margin-top:4px; }
.receipts { display:grid; gap:7px; margin-top:15px; overflow-wrap:anywhere; }
.stack { display:grid; gap:12px; }
.stack > .notice { margin:0; }
.counters { margin-top:14px; }
.counters button,.stack > button { justify-self:start; }
.tabs { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:19px; }
.tabs a { border:1px solid var(--line); background:var(--card); border-radius:8px; padding:6px 10px; }
.settings section,.prose,.card[id] { scroll-margin-top:16px; }
.grid2 { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px; }
.toggle,.clear,.days label { display:flex; align-items:center; gap:7px; }
.clear { color:var(--muted); font-size:.8rem; font-weight:400; }
fieldset { margin:0; padding:8px 10px; border:1px solid var(--line); border-radius:8px; }
.days,.actions { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.days { gap:16px; }
.actions { margin-top:6px; }
details { border:1px solid var(--line); border-radius:9px; background:#171721; }
summary { padding:10px 12px; cursor:pointer; font-weight:650; }
.inset { padding:5px 12px 12px; }
.savebar { padding:0 0 17px; }
.boundary { border-top:1px solid var(--line); padding-top:14px; }
.prose { max-width:940px; }
.prose p,.prose li { margin:8px 0; }
.prose h3 { margin-top:18px; }
code { color:#e4d7ff; background:#252139; padding:2px 4px; overflow-wrap:anywhere; }
.login-shell { min-height:100vh; display:grid; place-items:center; padding:20px; background:radial-gradient(ellipse at 60% 10%,#30214d 0,transparent 58%),var(--page); }
.signin { width:min(100%,400px); background:#1a1926; padding:32px; border:1px solid #453955; border-radius:19px; }
.signin h1 { font-size:2rem; margin-top:14px; }
.signin p { color:var(--muted); margin:7px 0 18px; }
.signin .primary { justify-self:stretch; }
@media(max-width:1050px) { .hero-art { opacity:.28; right:0; } .shell { padding:27px 24px; } .nav { width:190px; } .shell { margin-left:190px; } }
@media(max-width:850px) { .dashboard-grid { grid-template-columns:1fr; } }
@media(max-width:700px) {
  .nav { position:static; width:auto; padding:12px; flex-direction:row; flex-wrap:wrap; align-items:center; gap:10px; border-right:0; border-bottom:1px solid var(--line); }
  .brand { padding:0; font-size:16px; }
  .nav nav { display:flex; order:3; width:100%; flex-wrap:wrap; }
  .nav nav a { font-size:13px; padding:5px 7px; gap:3px; }
  .nav form { margin:0 0 0 auto; }
  .shell { margin:0; padding:20px 12px 38px; }
  .top { align-items:flex-start; flex-wrap:wrap; }
  .metrics { grid-template-columns:1fr; gap:6px; }
  .detail-grid,.grid2 { grid-template-columns:1fr; }
  .compose { flex-direction:column; align-items:stretch; }
  .hero { padding:21px 16px; }
  .hero-art { opacity:.2; right:-120px; }
  .job-row { flex-wrap:wrap; }
}
