:root{color-scheme:dark;--bg:#061019;--panel:#0b1822;--panel2:#0f202c;--line:#1e3442;--cyan:#38c7ff;--green:#42e9a6;--violet:#bd7bff;--text:#edf8ff;--muted:#8aa3b3;--danger:#ff7185;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(circle at 20% 20%,#0b2635 0,transparent 34%),linear-gradient(145deg,#040b11,#08141e 55%,#071019);color:var(--text)}button,input{font:inherit}.hidden{display:none!important}.aurora{position:fixed;inset:0;pointer-events:none;opacity:.42;background:linear-gradient(115deg,transparent 30%,rgba(56,199,255,.04) 48%,transparent 65%);background-size:200% 100%;animation:aurora 12s linear infinite}@keyframes aurora{to{background-position:-200% 0}}.topbar{height:78px;padding:0 max(26px,calc((100vw - 1240px)/2));display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(90,151,181,.22);background:rgba(4,11,17,.72);backdrop-filter:blur(18px);position:relative;z-index:2}.brand{display:flex;gap:13px;align-items:center;color:inherit;text-decoration:none}.brand-mark{display:grid;place-items:center;width:43px;height:43px;border-radius:13px;background:linear-gradient(145deg,#258ed0,#123c67);box-shadow:inset 0 0 0 1px #53cdfa,0 10px 35px rgba(31,149,209,.22);font-size:24px}.brand strong{display:block;letter-spacing:.03em}.brand small{display:block;margin-top:3px;font-size:10px;letter-spacing:.18em;color:#7da3b9}.security-pill{font-size:12px;color:#a4bdca;border:1px solid #1d3c4a;background:#091721;padding:9px 13px;border-radius:999px}.security-pill span{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--green);box-shadow:0 0 12px var(--green);margin-right:7px}main{width:min(1240px,calc(100% - 44px));margin:0 auto;padding:72px 0 90px;position:relative;z-index:1}.auth-grid{min-height:620px;display:grid;grid-template-columns:1.3fr .76fr;gap:80px;align-items:center}.eyebrow,.panel-kicker{font-size:11px;font-weight:800;letter-spacing:.2em;color:var(--cyan)}.hero-copy h1,.dashboard-head h1{font-size:clamp(44px,6vw,75px);line-height:.98;letter-spacing:-.05em;margin:16px 0 25px}.hero-copy h1 em{font-style:normal;color:var(--green)}.lead{font-size:18px;line-height:1.65;color:#9eb3c0;max-width:650px}.guardrails{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:42px}.guardrails>div{display:flex;gap:13px;border-top:1px solid #244151;padding-top:16px}.guardrails b{font-size:12px;color:var(--cyan)}.guardrails span{font-size:13px;font-weight:700}.guardrails small{font-weight:400;color:#7892a2}.panel{background:linear-gradient(145deg,rgba(15,31,43,.96),rgba(8,21,31,.96));border:1px solid var(--line);border-radius:20px;box-shadow:0 25px 80px rgba(0,0,0,.28)}.auth-panel{padding:34px}.auth-panel h2,.dialog-card h2,.scope-panel h2{font-size:27px;margin:8px 0}.auth-panel>p,.dialog-card>p{color:var(--muted);line-height:1.5;margin:0 0 25px}label{display:block;color:#a9bdc9;font-size:12px;font-weight:700;margin:16px 0 7px}input{width:100%;margin-top:8px;border:1px solid #2b4656;background:#07131c;color:white;border-radius:11px;padding:13px 14px;outline:none}input:focus{border-color:var(--cyan);box-shadow:0 0 0 3px rgba(56,199,255,.12)}button{cursor:pointer;border:0}.primary{width:100%;display:flex;justify-content:center;gap:14px;margin-top:22px;padding:14px 18px;border-radius:11px;background:linear-gradient(90deg,#1b9cd4,#23c4e4);color:#031018;font-weight:900;box-shadow:0 12px 30px rgba(27,156,212,.2)}.primary:hover{filter:brightness(1.09)}.form-error{min-height:20px;margin-top:12px;font-size:12px;color:var(--danger)}.dashboard{animation:up .35s ease}@keyframes up{from{transform:translateY(12px);opacity:0}}.dashboard-head{display:flex;align-items:end;justify-content:space-between;margin-bottom:32px}.dashboard-head h1{font-size:46px;margin:8px 0}.muted{color:var(--muted)}.head-actions{display:flex;gap:10px}.ghost,.secondary{padding:10px 14px;border:1px solid #294452;background:#0b1a24;color:#b9d0dc;border-radius:10px}.ghost:hover,.secondary:hover{border-color:#4d7183;color:white}.danger:hover{border-color:var(--danger);color:#ffc0ca}.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:18px}.metrics article{padding:20px 22px;border:1px solid var(--line);border-radius:15px;background:rgba(9,24,34,.72)}.metrics article>span{display:block;font-size:10px;letter-spacing:.16em;color:#7190a2}.metrics strong{display:block;font-size:27px;margin:7px 0 2px}.metrics strong span{color:var(--green)}.metrics small{color:#7892a2}.dashboard-grid{display:grid;grid-template-columns:1fr 320px;gap:18px}.sessions-panel,.scope-panel{padding:25px}.section-title{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #1c3442;padding-bottom:18px}.section-title span{font-size:10px;letter-spacing:.15em;color:var(--cyan)}.section-title h2{margin:4px 0 0;font-size:22px}.accounts-list{display:grid;gap:11px;padding-top:16px}.account-card{display:grid;grid-template-columns:1fr auto;gap:16px;align-items:center;padding:16px;border:1px solid #1b3544;border-radius:14px;background:#081720}.account-card:hover{border-color:#2c566a}.account-title{display:flex;align-items:center;gap:11px}.status-orb{width:9px;height:9px;border-radius:50%;background:#697b86}.status-orb.running{background:var(--green);box-shadow:0 0 13px var(--green)}.status-orb.starting{background:#ffcc68}.account-title strong{font-size:15px}.account-title small{display:block;color:#7895a5;margin-top:3px}.account-actions{display:flex;gap:8px}.account-actions button{padding:8px 11px;border-radius:8px;background:#112a38;color:#bde7fa;border:1px solid #234a5c}.account-actions .open{background:#153c4e;color:#54d5ff}.empty-state{text-align:center;padding:70px 20px;color:#819aaa}.empty-state div{font-size:40px;color:#2f637b}.empty-state h3{color:#cde0e8;margin-bottom:6px}.scope-panel h2{margin-bottom:22px}.scope-on,.scope-off{display:flex;gap:13px;padding:15px;border-radius:12px;margin:10px 0}.scope-on{background:rgba(38,190,132,.09);border:1px solid rgba(66,233,166,.2)}.scope-off{background:rgba(255,113,133,.05);border:1px solid rgba(255,113,133,.14)}.scope-on>span{color:var(--green)}.scope-off>span{color:var(--danger)}.scope-on b,.scope-off b{display:block}.scope-on small,.scope-off small{display:block;color:#819aaa;margin-top:4px;line-height:1.4}.privacy-note{font-size:12px;line-height:1.55;color:#7f9aaa;border-top:1px solid #1b3340;padding-top:18px;margin-top:22px}dialog{padding:0;border:0;background:transparent;color:var(--text)}dialog::backdrop{background:rgba(1,6,10,.85);backdrop-filter:blur(8px)}.dialog-card{position:relative;width:min(460px,calc(100vw - 30px));padding:30px;border:1px solid #294657;background:#0b1a24;border-radius:18px;box-shadow:0 30px 100px #000}.dialog-close{position:absolute;right:15px;top:12px;background:transparent;color:#8aa3b3;font-size:28px}.dialog-card code{display:block;padding:15px;background:#051018;border:1px solid #27495b;border-radius:10px;word-break:break-all;color:#8ce3ff;user-select:all}.remote-dialog{width:100vw;height:100vh;max-width:none;max-height:none;margin:0}.remote-shell{height:100vh;display:grid;grid-template-rows:68px 1fr 36px;background:#020609}.remote-shell header{padding:0 18px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #243943;background:#09131a}.remote-shell header>div{display:flex;align-items:center;gap:10px}.remote-shell header small{color:#77919f}.live-dot{width:9px;height:9px;border-radius:50%;background:var(--green);box-shadow:0 0 12px var(--green)}.farm-switch{display:flex;align-items:center;gap:8px;margin:0;padding:8px 12px;border:1px solid #274654;border-radius:9px}.farm-switch input{display:none}.farm-switch span{width:28px;height:16px;border-radius:20px;background:#344650;position:relative}.farm-switch span:after{content:"";position:absolute;width:12px;height:12px;border-radius:50%;background:#9aabb3;left:2px;top:2px;transition:.2s}.farm-switch input:checked+span{background:#1e9f74}.farm-switch input:checked+span:after{left:14px;background:#d9fff0}.remote-stage{position:relative;overflow:auto;display:grid;place-items:center;outline:none;background:#03070a}.remote-stage:focus{box-shadow:inset 0 0 0 2px var(--cyan)}.remote-stage img{max-width:100%;max-height:100%;user-select:none;cursor:default}.remote-loading{position:absolute;display:flex;align-items:center;gap:10px;color:#8da3ae}.remote-loading span{width:16px;height:16px;border:2px solid #28424e;border-top-color:var(--cyan);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(1turn)}}.remote-shell footer{display:flex;justify-content:space-between;align-items:center;padding:0 18px;font-size:11px;color:#78909c;background:#071016;border-top:1px solid #152a34}.toast{position:fixed;right:20px;bottom:20px;padding:12px 16px;background:#102733;border:1px solid #2f5c70;border-radius:10px;transform:translateY(100px);opacity:0;transition:.25s;z-index:20}.toast.show{transform:none;opacity:1}.toast.error{border-color:var(--danger)}@media(max-width:900px){.auth-grid,.dashboard-grid{grid-template-columns:1fr}.auth-grid{gap:35px}.guardrails,.metrics{grid-template-columns:1fr}.topbar{padding:0 18px}.security-pill{display:none}main{width:min(100% - 28px,680px);padding-top:40px}.dashboard-head{align-items:start;gap:20px}.dashboard-head h1{font-size:35px}.remote-shell header{height:auto;padding:10px;flex-wrap:wrap}.remote-shell{grid-template-rows:auto 1fr auto}.remote-shell footer{padding:8px;gap:8px;flex-wrap:wrap}}

/* Commercial operations layer */
body{background:radial-gradient(circle at 12% 5%,rgba(20,83,110,.45),transparent 30%),radial-gradient(circle at 88% 12%,rgba(23,87,74,.23),transparent 27%),linear-gradient(145deg,#02070c,#07131c 52%,#040b11)}
.topbar{box-shadow:0 14px 45px rgba(0,0,0,.19)}
.dashboard-head--command{align-items:center;padding:4px 0}
.dashboard-command-actions{display:flex;align-items:center;gap:16px}
.system-health{display:flex;align-items:center;gap:10px;padding:10px 13px;border:1px solid rgba(66,233,166,.2);border-radius:12px;background:rgba(28,121,91,.08)}
.system-health>span{width:8px;height:8px;border-radius:50%;background:var(--green);box-shadow:0 0 13px var(--green)}
.system-health b,.system-health small{display:block}
.system-health b{font-size:11px;color:#c7fbe6}
.system-health small{margin-top:2px;font-size:9px;color:#708e82}
.metrics--four{grid-template-columns:repeat(4,1fr)}
.metrics--four article{position:relative;overflow:hidden;min-height:112px;padding:20px 21px;background:linear-gradient(150deg,rgba(13,34,46,.92),rgba(6,20,29,.82))}
.metrics--four article:after{content:"";position:absolute;right:-20px;bottom:-36px;width:92px;height:92px;border:1px solid rgba(56,199,255,.1);border-radius:50%}
.metrics--four article:nth-child(3):after,.metrics--four article:nth-child(4):after{border-color:rgba(66,233,166,.12)}
.metrics--four strong{font-size:31px;letter-spacing:-.04em}
.sessions-panel{min-height:410px}
.account-card{position:relative;grid-template-columns:minmax(0,1fr) auto;padding:18px 18px 18px 20px;overflow:hidden;background:linear-gradient(110deg,#071822,#091d28);transition:border-color .2s,transform .2s,box-shadow .2s}
.account-card:before{content:"";position:absolute;inset:0 auto 0 0;width:3px;background:#526a76}
.account-card.is-live:before{background:linear-gradient(180deg,var(--green),#168f68)}
.account-card:hover{transform:translateY(-1px);border-color:#33708a;box-shadow:0 12px 34px rgba(0,0,0,.2)}
.account-main{min-width:0}
.account-title strong{font-size:16px;letter-spacing:.01em}
.account-facts{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0 0 20px}
.account-chip{padding:5px 8px;border:1px solid #203c4a;border-radius:999px;background:rgba(10,28,39,.74);color:#718f9f;font-size:9px;font-weight:800;letter-spacing:.02em}
.account-chip.positive{border-color:rgba(66,233,166,.22);background:rgba(66,233,166,.07);color:#67dcae}
.account-actions button{padding:10px 13px;font-size:11px;font-weight:800}
.account-actions .open{padding:11px 15px;border-color:#287094;background:linear-gradient(100deg,#123a4d,#12445a);color:#72ddff;box-shadow:0 8px 24px rgba(25,134,179,.13)}
.account-actions .open span{margin-left:7px}
.section-title .secondary{font-weight:800}
.scope-panel{background:linear-gradient(160deg,rgba(13,32,43,.98),rgba(7,18,27,.96))}
.scope-on,.scope-off{transition:transform .2s,border-color .2s}
.scope-on:hover,.scope-off:hover{transform:translateX(2px)}

@media(max-width:1100px){
  .metrics--four{grid-template-columns:repeat(2,1fr)}
  .dashboard-head--command{align-items:flex-start}
  .dashboard-command-actions{align-items:flex-end;flex-direction:column}
}
@media(max-width:900px){
  main{width:min(100% - 24px,720px)}
  .dashboard-head--command{display:grid;gap:16px}
  .dashboard-command-actions{width:100%;align-items:stretch;flex-direction:row;justify-content:space-between}
  .system-health{flex:1}
  .account-card{grid-template-columns:1fr}
  .account-actions{justify-content:flex-end}
}
@media(max-width:560px){
  .topbar{height:66px}
  .brand-mark{width:38px;height:38px}
  .brand strong{font-size:13px}
  .brand small{font-size:8px}
  main{width:calc(100% - 18px);padding:28px 0 56px}
  .hero-copy h1{font-size:42px}
  .lead{font-size:15px}
  .auth-panel{padding:24px 20px}
  .guardrails{gap:6px}
  .dashboard-command-actions{display:grid}
  .system-health{display:none}
  .head-actions{width:100%}
  .head-actions button{flex:1}
  .metrics--four{grid-template-columns:1fr 1fr;gap:8px}
  .metrics--four article{min-height:96px;padding:15px}
  .metrics--four strong{font-size:25px}
  .metrics--four small{font-size:9px}
  .sessions-panel,.scope-panel{padding:18px 14px}
  .section-title{align-items:flex-start;gap:10px}
  .section-title h2{font-size:19px}
  .account-card{padding:16px 13px 14px 16px}
  .account-facts{margin-left:19px}
  .account-actions{display:grid;grid-template-columns:1fr auto}
  .account-actions .open{width:100%}
}

.slot-availability{display:block;margin-top:7px;color:#6f98aa;font-size:10px;font-weight:700;letter-spacing:.03em}
#show-add-button:disabled{cursor:not-allowed;opacity:.45}

.progress-panel{margin-bottom:18px;padding:24px}
.progress-heading small{display:block;margin-top:5px;color:#7892a2;font-size:11px}
.progress-legend{display:flex;align-items:center;gap:12px;color:#7892a2;font-size:9px;font-weight:800;letter-spacing:.04em}
.progress-legend span{display:flex;align-items:center;gap:5px}.progress-legend i{width:7px;height:7px;border-radius:50%;background:#667984}.progress-legend i.active{background:var(--green)}.progress-legend i.waiting{background:#ffcc68}.progress-legend i.disabled{background:#63727b}
.progress-list{display:grid;gap:10px;padding-top:16px}
.progress-account{border:1px solid #203b49;border-radius:14px;background:linear-gradient(110deg,#071822,#091d28);overflow:hidden}
.progress-account[open]{border-color:#31596c}.progress-account>summary{list-style:none;display:grid;grid-template-columns:minmax(190px,.9fr) minmax(180px,1.1fr) auto;align-items:center;gap:18px;padding:16px 18px;cursor:pointer}.progress-account>summary::-webkit-details-marker{display:none}.progress-account>summary:after{content:'+';width:26px;height:26px;display:grid;place-items:center;border:1px solid #294858;border-radius:7px;color:#7da4b6;font-size:16px}.progress-account[open]>summary:after{content:'−'}
.progress-identity{display:flex;align-items:center;gap:11px;min-width:0}.progress-tone{width:10px;height:10px;flex:none;border-radius:50%;background:#73818a}.progress-tone.success{background:var(--green);box-shadow:0 0 12px rgba(66,233,166,.55)}.progress-tone.warning{background:#ffcc68}.progress-tone.loading{background:#57c8f4;animation:progress-pulse 1.4s ease-in-out infinite}.progress-identity b,.progress-identity small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.progress-identity b{font-size:14px}.progress-identity small{margin-top:3px;color:#7892a2;font-size:10px}
.progress-summary{min-width:0}.progress-summary-top{display:flex;justify-content:space-between;gap:12px;color:#c8dbe3;font-size:11px}.progress-summary-top strong{white-space:nowrap}.progress-track{height:6px;margin-top:8px;border-radius:999px;background:#102c39;overflow:hidden}.progress-track span{display:block;height:100%;width:0;border-radius:inherit;background:linear-gradient(90deg,#159ed2,#42e9a6);transition:width .35s ease}.progress-summary small{display:block;margin-top:6px;color:#718b99;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.progress-glance{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:0 18px 17px}.progress-glance article{min-width:0;padding:11px 12px;border:1px solid #1d3947;border-radius:10px;background:#07151e}.progress-glance span{display:block;color:#638395;font-size:8px;font-weight:900;letter-spacing:.1em}.progress-glance b{display:block;margin-top:5px;color:#c6dce6;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.progress-glance small{display:block;margin-top:3px;color:#718a98;font-size:9px;line-height:1.35}
.progress-body{display:grid;grid-template-columns:minmax(230px,.78fr) minmax(0,1.5fr);gap:14px;padding:0 18px 18px;border-top:1px solid #18313d}.progress-modules{display:grid;align-content:start;gap:7px;padding-top:14px}.progress-module{display:grid;grid-template-columns:auto 1fr;gap:4px 9px;padding:10px;border:1px solid #1d3947;border-radius:9px;background:#07151e}.progress-module i{grid-row:1/3;width:8px;height:8px;margin-top:3px;border-radius:50%;background:#687984}.progress-module i.active{background:var(--green)}.progress-module i.warning,.progress-module i.waiting{background:#ffcc68}.progress-module b{font-size:10px}.progress-module small{color:#728c9a;font-size:9px;line-height:1.35}
.progress-villages{padding-top:14px;overflow:auto}.progress-village-head,.progress-village{display:grid;grid-template-columns:minmax(120px,1.25fr) repeat(3,minmax(100px,1fr));gap:8px;align-items:center;min-width:560px}.progress-village-head{padding:0 9px 6px;color:#638395;font-size:8px;font-weight:900;letter-spacing:.08em}.progress-village{padding:9px;border-top:1px solid #15303d;color:#8ca5b2;font-size:9px}.progress-village:first-of-type{border-top:0}.progress-village strong{color:#c6dce6;font-size:10px}.progress-state{display:flex;align-items:center;gap:5px;min-width:0}.progress-state i{width:6px;height:6px;flex:none;border-radius:50%;background:#6f8089}.progress-state i.active{background:var(--green)}.progress-state i.warning,.progress-state i.waiting{background:#ffcc68}.progress-state i.disabled{background:#56646c}.progress-state span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.account-stage{display:grid;grid-template-columns:auto minmax(0,1fr);gap:3px 7px;margin:12px 0 0 20px;padding:9px 10px;border:1px solid #1d3947;border-radius:9px;background:rgba(5,18,26,.72)}.account-stage>span{grid-row:1/3;width:7px;height:7px;margin-top:3px;border-radius:50%;background:#57c8f4}.account-stage>span.success{background:var(--green)}.account-stage>span.warning{background:#ffcc68}.account-stage b{font-size:10px;color:#bad3de}.account-stage small{color:#6f8997;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@keyframes progress-pulse{50%{opacity:.35;transform:scale(.72)}}

@media(max-width:900px){.progress-account>summary{grid-template-columns:minmax(0,1fr) auto}.progress-summary{grid-column:1/-1;grid-row:2}.progress-body{grid-template-columns:1fr}.progress-glance{grid-template-columns:1fr}.progress-legend{display:none}}
@media(max-width:560px){.progress-panel{padding:18px 14px}.progress-account>summary{padding:14px}.progress-glance{padding:0 14px 14px}.progress-body{padding:0 14px 14px}.progress-summary-top{display:block}.progress-summary-top span{display:block;margin-top:3px}.account-stage{margin-left:19px}}
