:root{--surface:#fff;--surface-soft:#f1f5f9;--surface-raised:#fff;--text:var(--ink);--border:var(--line);--text-muted:var(--muted);color-scheme:light}
[data-theme="dark"]{--bg:#0c1520;--surface:#142130;--surface-soft:#192a3c;--surface-raised:#1d3043;--ink:#edf4fb;--muted:#a3b5c8;--line:#2c3e51;--brand:#83c3ee;--brand-bright:#54abe5;--green:#83c3ee;--accent:#203c54;--chart-current:#64b6ec;--chart-previous:#899bb0;--chart-fill:#19364e;--wk-paper:#0c1520;--wk-white:#142130;--wk-ink:#edf4fb;--wk-muted:#a3b5c8;--wk-line:#2c3e51;color-scheme:dark}
[data-theme="dark"] :is(.card,.empty,.library-count,.main-header,.unauthenticated,.report-filters,.report-kpi:not(.primary),.report-panel,.weekly-rail,.weekly-dialog,.metric-card,.work-card,.decision-card){background:var(--surface);color:var(--ink)}
[data-theme="dark"] :where(body:not(.tasks-shell):not(.weekly-page)) :is(input,select,textarea,.report input,.report select){background:var(--bg);color:var(--ink);border-color:var(--line)}
[data-theme="dark"] :where(body:not(.tasks-shell):not(.weekly-page)) :is(button,.button){background:#216c9f;color:#fff}
[data-theme="dark"] :where(body:not(.tasks-shell):not(.weekly-page)) :is(button,.button):hover{background:#287fb8}
[data-theme="dark"] :where(body:not(.tasks-shell):not(.weekly-page)) :is(button.secondary,.button.secondary,.card-icon,.badge,.chart-readout,.report-table-wrap th,.bar-track){background:var(--surface-soft);color:var(--ink);border-color:var(--line)}
[data-theme="dark"] :where(body:not(.tasks-shell):not(.weekly-page)) :is(button.secondary,.button.secondary):hover{background:var(--surface-raised)}
[data-theme="dark"] :where(body:not(.tasks-shell):not(.weekly-page)) button.quiet{background:transparent;color:var(--muted)}
[data-theme="dark"] :is(.store-link,.report-card-meta,.bar-name,.weekday-value,.report-kpi .kpi-label,.deck-nav-item,.deck-nav-item>span,.period,.work-description,.dialog-copy,.metric-card small){color:var(--muted)}
[data-theme="dark"] :is(td,th,.comparison-table td,.report-table-wrap td){border-color:var(--line)}
[data-theme="dark"] .notice{background:#352f1d;border-color:#655534;color:#f2d590}
[data-theme="dark"] :is(.ready,.succeeded,.success,.kpi-delta.positive){background:#173d32;color:#9cdec0}
[data-theme="dark"] :is(.failed,.error,.kpi-delta.negative){background:#452823;color:#ffb5a5}
[data-theme="dark"] :is(.stale,.running,.report-alert){background:#3d351e;color:#efd48b}
[data-theme="dark"] :is(.report-kpi.primary,.report-kpi.primary .kpi-label){background:#183f5d;color:#fff}
[data-theme="dark"] .weekday-bar-area{background:linear-gradient(to bottom,var(--line) 1px,transparent 1px);background-size:100% 41px}
[data-theme="dark"] .skip-link{background:var(--surface)}
[data-theme="dark"] .login-brand img{filter:brightness(0) invert(1)}
[data-theme="dark"] .recovery-note{background:var(--surface-soft);border-color:var(--line);color:var(--ink)}
[data-theme="dark"] .login input[readonly]{background:var(--surface-soft);color:var(--muted)}
[data-theme="dark"] .login-access p{color:var(--muted)}
[data-theme="dark"] .deck-nav-item.is-active{background:var(--accent);color:var(--ink)}
[data-theme="dark"] .deck-nav-item:hover{background:var(--surface-soft)}
[data-theme="dark"] .library-star{background:var(--surface);color:var(--muted);border-color:var(--line)}
[data-theme="dark"] .library-star.is-favorite{background:#203e59;color:#99cdf3;border-color:#345979}
[data-theme="dark"] .agent-claude-button{background:#a44e31;color:#fff}
[data-theme="dark"] .agent-claude-button:hover{background:#823e28}
[data-theme="dark"] .weekly-brand img{content:url('/static/brand/pra-logo-light.png')}
[data-theme="dark"] .weekly-page :is(.metric-card>span,.meeting-focus .eyebrow,.meeting-focus p,.signal-line>span,.owner-chip,.card-context,.slide-footnote,.decision-card p,.freshness,.slide-controls>span,.dialog-heading .eyebrow,.dialog-close,.history-list span,.schedule-fields label,.timezone-field,.access-note,.rail-bottom>a,.slide-heading .eyebrow,.meeting-stamp>span){color:var(--muted)}
[data-theme="dark"] .weekly-page :is(.empty-section,.card-status,.avatar,.decision-refs a,.draft-chip){background:var(--surface-soft);border-color:var(--line);color:var(--ink)}
[data-theme="dark"] .weekly-page :is(.task-key,.dialog-link,.empty-section a){color:var(--brand)}
[data-theme="dark"] .weekly-page :is(.schedule-fields input,.schedule-fields select,.timezone-field input){background:var(--bg);border-color:var(--line);color:var(--ink)}
[data-theme="dark"] .weekly-page .card-context{border-color:var(--line)}
