:root{color-scheme:dark}.theme-control{display:flex;flex-direction:row;align-items:center;gap:8px;font-size:13px;flex-shrink:0;margin:0}.theme-control select{width:auto!important;min-height:44px;padding:8px 10px;font-size:14px!important}.theme-control span{white-space:nowrap}
:root[data-theme=light]{color-scheme:light;--bg:#f6f8fc;--panel:#ffffff;--line:#bfcbd9;--ink:#182a40;--muted:#4c6075;--lime:#246545;--orange:#a54618;--work-active:#246545;--work-wait:#a55a0a}
html[data-theme=light] button,html[data-theme=light] .button{background:#e7edf5;color:var(--ink)}
html[data-theme=light] .lime,html[data-theme=light] .button.lime,html[data-theme=light] .announcement{background:#246545;color:#fff;border-color:#246545}
html[data-theme=light] input,html[data-theme=light] select,html[data-theme=light] textarea{background:#fff;color:var(--ink);border-color:#9bacc0}
html[data-theme=light] .empty{background:linear-gradient(115deg,#edf3f9,#fff);border-color:#93a4b9}html[data-theme=light] .empty-number{color:#41688c}
html[data-theme=light] .product-select,html[data-theme=light] .category-card,html[data-theme=light] .workspace-product-card{background:#fff;color:var(--ink)}
html[data-theme=light] .studio-tabs{background:#e6edf5;border-color:var(--line)}html[data-theme=light] .studio-tabs button{background:transparent;color:var(--ink)}html[data-theme=light] .studio-tabs button.lime{background:#d7eadf;color:#174c34;border-color:#54866a}
html[data-theme=light] .dashboard-secondary button{color:var(--muted);background:transparent}html[data-theme=light] .dashboard-secondary button.lime{color:#174c34}
html[data-theme=light] .source-link{color:#165f89}html[data-theme=light] #message{background:#fff1e5;color:#793913}html[data-theme=light] .analytics-choice-actions button{background:#182a40;color:#fff;border-color:#182a40}
html[data-theme=light] .brain-shell{background:#eef3f9;border-color:#bfcbd9}html[data-theme=light] .brain-counts b{color:var(--ink)}html[data-theme=light] .brain-inspector,html[data-theme=light] .brain-task.selected{background:#e0eaf6;border-color:#9bacc0}html[data-theme=light] .brain-feed time{color:#116d83}
html[data-theme=light] .neural-console{background:radial-gradient(ellipse at 50% 45%,#e2edf9,#f9fbff 70%);color:#182a40;border-color:#a8bcd2}html[data-theme=light] .neural-hud{color:#8a4318;border-color:#bfcbd9}html[data-theme=light] .neural-hud span:last-child,html[data-theme=light] .neural-toolbar output,html[data-theme=light] .neural-hint{color:#4c6075}
html[data-theme=light] .neural-toolbar button,html[data-theme=light] .neural-role-chips button{background:#fff;border-color:#a8bcd2;color:#253f5d}html[data-theme=light] .neural-toolbar button[aria-pressed=true],html[data-theme=light] .neural-role-chips button[aria-pressed=true]{background:#e0eaf6;color:#173f68;border-color:#356892}
html[data-theme=light] .neural-role text{fill:#203b58;stroke:#f5f9fe}html[data-theme=light] .neural-role .neural-count{fill:#4c6075}html[data-theme=light] .neural-core text{fill:#824215;stroke:#f5f9fe}html[data-theme=light] .neural-core .neural-core-state{fill:#4c6075}html[data-theme=light] .neural-role:focus .neural-hit,html[data-theme=light] .neural-task:focus .neural-hit{stroke:#173f68}
html[data-theme=light] .neural-card,html[data-theme=light] .quality-dialog{background:#fff;color:#182a40;border-color:#95aec6;box-shadow:0 24px 80px #203b5833}html[data-theme=light] .neural-card header,html[data-theme=light] .quality-dialog header{background:#edf3f9;border-color:#bfcbd9}html[data-theme=light] .neural-card header button{background:#e0eaf6;color:#182a40;border-color:#95aec6}html[data-theme=light] .neural-card p,html[data-theme=light] .neural-card dd,html[data-theme=light] .neural-card small{color:#4c6075}html[data-theme=light] .neural-card dt{color:#182a40}
html[data-theme=light] .quality-guide-button,html[data-theme=light] .quality-sources a{color:#165f89}html[data-theme=light] .quality-status,html[data-theme=light] .quality-template,html[data-theme=light] .quality-table th{background:#edf3f9;color:#253f5d}html[data-theme=light] .quality-note,html[data-theme=light] .quality-principles p,html[data-theme=light] .quality-manual li,html[data-theme=light] .quality-manual details p{color:#4c6075}html[data-theme=light] .quality-principles strong,html[data-theme=light] .quality-manual summary{color:#24573e}
html[data-theme=light] .analytics-trend,html[data-theme=light] .analytics-chart-grid>section{background:#fff;border-color:#bfcbd9}html[data-theme=light] .chart-heading label,html[data-theme=light] .trend-stats strong span,html[data-theme=light] .trend-stats p,html[data-theme=light] .trend-scale,html[data-theme=light] .trend-dates,html[data-theme=light] .chart-note,html[data-theme=light] .image-totals,html[data-theme=light] .chart-empty,html[data-theme=light] .chart-empty small{color:#4c6075}html[data-theme=light] .chart-grid{stroke:#c8d4df}html[data-theme=light] .chart-line{stroke:#167870}html[data-theme=light] .chart-point{fill:#167870;stroke:#fff}html[data-theme=light] .gap-number{color:#a54618}
@media(max-width:700px){.theme-control{align-self:flex-start;flex-wrap:wrap;max-width:100%}.theme-control select{max-width:100%}}
html[data-theme=light] .insight-grid article{background:var(--panel)}html[data-theme=light] .brain-inspector dt{color:var(--ink)}html[data-theme=light] .source-link:focus-visible{outline-color:#174e79}html[data-theme=light] .neural-core:focus>circle:first-child{stroke:#174e79}html[data-theme=light] .brain-task-dot.state-active{background:var(--work-active);box-shadow:none}html[data-theme=light] .brain-task-dot.state-blocked,html[data-theme=light] .brain-task-dot.state-waiting_on_you,html[data-theme=light] .brain-task-dot.state-stale{background:var(--work-wait)}
.theme-control-standalone{margin-bottom:20px}
