/* Original VideoCircle palette, with an explicit accessible dark appearance. */
:root{--surface:#fff;--surface-soft:#f5f7fa;--surface-raised:#fff;--text-strong:#242b36;--text-secondary:#647184;--border:#e5e8ed;--brand:#e85425}
.theme-control{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--text-secondary);font-weight:500;flex-shrink:0}.theme-control select{width:auto;min-height:34px;padding:6px 25px 6px 10px;font-size:11px;background:var(--surface);color:var(--text-strong);border:1px solid var(--border)}.login-card>.theme-control{justify-content:flex-end;margin-bottom:24px}.header-right{flex-wrap:wrap}.login-art i:nth-child(3){background:#9eafc7}
html[data-theme=dark]{--ink:#e5eaf2;--muted:#a6b2c4;--line:#344155;--bg:#101722;--sidebar:#0d1420;--surface:#182231;--surface-soft:#1e2b3d;--surface-raised:#223149;--text-strong:#e5eaf2;--text-secondary:#a6b2c4;--border:#344155;--orange:#f06b3e;--green:#67c7a3;color-scheme:dark}
html[data-theme=dark] body{background:var(--bg);color:var(--ink)}
html[data-theme=dark] :is(header,.panel,.screen-card,.media-card,.metrics,dialog,.login-card,.search,.segmented,.creative-card,.client-stat){background:var(--surface);border-color:var(--border);color:var(--ink)}
html[data-theme=dark] :is(.secondary,input,select,textarea){background:var(--surface-soft);border-color:var(--border);color:var(--ink)}
html[data-theme=dark] :is(.secondary:hover,.metric[href]:hover,tbody tr:hover,.attention-row:hover){background:var(--surface-raised)}
html[data-theme=dark] :is(h1,h2,h3,h4,.entity-title,.breadcrumb b,.facts dd,.login-card .brand,.login-story h2,.empty h3,.client-stat b,.creative-copy h2){color:var(--text-strong)}
html[data-theme=dark] :is(p,label,small,dt,.muted,.eyebrow,.metric-label,.metric-detail,.summary-row small,td small,.page-heading p:last-child,.panel-heading p,.activity time,.breadcrumb,.card-meta,.facts dt,.chart-caption,.client-stat span,.client-table small,.login-story>p:last-child,.login-card>p,.empty p){color:var(--text-secondary)}
html[data-theme=dark] :is(.panel-heading,.summary-row,.attention-row,.activity,td,th,.facts>div,.card-footer,.policy-form,.report-totals,.metric,.client-stat,footer,.stack>h3){border-color:var(--border)}
html[data-theme=dark] :is(th,.notice,.report-note,.empty-client,.weekly,.campaign-builder,.rotation-row,.slot-number,.screen-slot,.upload-area,.customer-creatives,.report-totals,.summary-icon,.tabs button,.segmented button.active,.media-thumbnail){background:var(--surface-soft);border-color:var(--border);color:var(--text-secondary)}
html[data-theme=dark] :is(.creative-choice,.assignment){background:var(--surface);border-color:var(--border);color:var(--ink)}
html[data-theme=dark] :is(.creative-choice:has(input:checked),.screen-slot.filled,.tabs button.active){background:#3c2a26;border-color:#bd6749;color:#ffc2a6}
html[data-theme=dark] :is(.screen-slot b,.text-button,.creative-copy summary){color:#ffac86}
html[data-theme=dark] .primary{background:#e85425;border-color:#e85425;color:white}html[data-theme=dark] .primary:hover:not(:disabled){background:#cb451b}
html[data-theme=dark] .badge{background:#29384b;color:#c4d0e0}html[data-theme=dark] .badge.online{background:#193d34;color:#8de1b8}html[data-theme=dark] .badge.offline{background:#3d2d37;color:#edb4c6}html[data-theme=dark] :is(.badge.amber,.status-pill,.approval-warning,.attention-dot){background:#47351e;color:#f1c78c}
html[data-theme=dark] :is(.notice.error,#auth-error,.inline-client-error){color:#ffb4a8}html[data-theme=dark] .notice.error{background:#432c2b;border-color:#77443c}
html[data-theme=dark] .connection{background:#19392f;color:#94dfbb;border-color:#2e5749}html[data-theme=dark] .connection.stale{background:#432c2b;color:#ffb4a8;border-color:#77443c}
html[data-theme=dark] .network-brief{background:#1c2c42;border-color:#354963}html[data-theme=dark] .brief-copy h2{color:#f0f4fb}html[data-theme=dark] .brief-capacity strong{color:#f0f4fb}
html[data-theme=dark] .login{background:#101722}html[data-theme=dark] .login-card .mark:after{background:var(--surface)}html[data-theme=dark] .login-art i{border-color:#7187a4;box-shadow:12px 15px 0 #1d2b3d;background:#24354b}html[data-theme=dark] .login-art i:nth-child(2){background:#e85425}html[data-theme=dark] .login-art i:nth-child(3){background:#516985}
html[data-theme=dark] body .page :is(.client-stats,.client-stat,.creative-card){background:var(--surface);border-color:var(--border)}html[data-theme=dark] body .page :is(.customer-creatives,.client-table th){background:var(--surface-soft);color:var(--text-secondary)}html[data-theme=dark] body .page :is(.client-table td,.policy-form){border-color:var(--border)}html[data-theme=dark] body .page :is(.client-stat b,.creative-copy h2){color:var(--text-strong)}html[data-theme=dark] body .page :is(.client-stat span,.review-history){color:var(--text-secondary)}html[data-theme=dark] body .page .status-pill{background:#47351e;color:#f1c78c}
html[data-theme=dark] .report-totals strong{color:#8de1b8}html[data-theme=dark] .segmented button{background:var(--surface);color:var(--text-secondary)}html[data-theme=dark] .segmented button.active{background:var(--surface-raised);color:var(--ink)}
@media(max-width:720px){.theme-control>span{display:none}header{flex-wrap:wrap}.header-right{margin-left:auto}nav{scrollbar-width:thin;scrollbar-color:#647184 transparent}.login-card>.theme-control>span{display:inline}}
