/* Shared appearance, readable analytical surfaces, and control guidance. */
:root{color-scheme:dark;--chart-grid:rgba(255,255,255,.065)}
:root[data-theme="minimal"],:root[data-theme="editorial"]{color-scheme:light;--bg:#f5f6f8;--bg-elev:#fff;--panel:#fff;--panel-2:#edf0f5;--panel-glass:rgba(255,255,255,.96);--border:#dce1e8;--border-strong:#bec7d3;--hairline:#e5e9ef;--edge-light:#fff;--text:#202b3b;--text-strong:#101827;--text-body:#354257;--muted:#556379;--muted-2:#657187;--link:#185caa;--link-hover:#11457f;--accent:#6550b4;--accent-deep:#54409f;--accent-strong:#49358f;--accent-dim:rgba(101,80,180,.07);--accent-border:rgba(101,80,180,.28);--accent-glow:rgba(101,80,180,.09);--bull:#167244;--bear:#bc3535;--neutral:#876100;--bull-chart:#23844f;--bear-chart:#c13f3f;--neutral-chart:#987113;--cat-1:#7357be;--cat-2:#2473b9;--cat-3:#23844f;--cat-4:#987113;--cat-5:#c13f3f;--cat-6:#ae4175;--chart-grid:#e1e5ec;--shadow-sm:0 2px 8px rgba(24,35,53,.04);--shadow-md:0 8px 28px rgba(24,35,53,.07);--shadow-lg:0 16px 48px rgba(24,35,53,.12)}
:root[data-theme="editorial"]{--bg:#f6f0e6;--bg-elev:#fffaf2;--panel:#fffaf2;--panel-2:#eee5d8;--panel-glass:rgba(255,250,242,.97);--border:#ded2c2;--border-strong:#bdad99;--hairline:#e5dacb;--text:#302b26;--text-strong:#201d19;--text-body:#494137;--muted:#6a5e51;--muted-2:#776a5d;--accent:#91533c;--accent-deep:#78422e;--accent-strong:#78422e;--accent-dim:rgba(145,83,60,.07);--accent-border:rgba(145,83,60,.28);--accent-glow:rgba(145,83,60,.08);--chart-grid:#e3d8c9}
html[data-theme="minimal"] body,html[data-theme="editorial"] body{background:var(--bg)}
html[data-theme="minimal"] body::before,html[data-theme="editorial"] body::before{display:none}
html[data-theme="minimal"] h1,html[data-theme="minimal"] h2,html[data-theme="minimal"] .cp-section-title{font-family:var(--font-ui);letter-spacing:-.035em}
html[data-theme="editorial"] h1,html[data-theme="editorial"] h2{font-family:var(--font-display);font-weight:600}
html[data-theme] nav.top{background:var(--panel-glass)}
.rc-theme-control select{background:var(--panel);color:var(--text);border:1px solid var(--border-strong);border-radius:6px;padding:7px 23px 7px 9px;font:500 12px var(--font-ui);max-width:135px;cursor:pointer}
.rc-help-button{width:30px;height:30px;border:1px solid var(--border-strong);border-radius:50%;background:var(--panel);color:var(--text);font:600 14px var(--font-ui);cursor:pointer}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
body main{line-height:1.65}
body :is(.prob-card,.stat-tile,.sys-tile,.snap-card) .label{font-size:12px;letter-spacing:.055em;line-height:1.5;color:var(--muted)}
body :is(.prob-card .hint,.chart-note,.chart-caption,.ws-note,.ws-muted){font-size:13px;line-height:1.65}
body :is(.card,.panel) p{line-height:1.7}
body main table{font-size:13px;line-height:1.55}
body main th{font-size:12px;letter-spacing:.035em}
body main :is(th,td){padding-top:12px;padding-bottom:12px}
body main :is(select,button,input){font-size:13px}
body main :is(button,select){min-height:34px}
body main h2{line-height:1.25}
body main :is(.two-col,.two-column){gap:24px}
:where(button,a,select,input,summary):focus-visible{outline:2px solid var(--accent);outline-offset:4px}
#rc-control-tip{position:fixed;z-index:10020;max-width:min(300px,calc(100vw - 24px));padding:10px 13px;border:1px solid var(--border-strong);border-radius:8px;background:var(--panel);color:var(--text);box-shadow:var(--shadow-md);font:13px/1.55 var(--font-ui);pointer-events:none}
#rc-tour{padding:0;border:1px solid var(--accent-border);border-radius:14px;background:var(--panel);color:var(--text);width:min(380px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;box-shadow:var(--shadow-lg);position:fixed;margin:0}
#rc-tour::backdrop{background:rgba(4,8,16,.5)}
.rc-tour-content{padding:24px}.rc-tour-count{font:11px var(--font-mono);letter-spacing:.08em;color:var(--accent)}
#rc-tour h2{font:600 24px/1.25 var(--font-display);margin:12px 0}#rc-tour p{font:14px/1.7 var(--font-ui);color:var(--text-body)}
.rc-tour-actions{display:flex;gap:8px;align-items:center;margin-top:22px}.rc-tour-actions button{padding:9px 13px;border:1px solid var(--border-strong);border-radius:6px;background:var(--panel-2);color:var(--text);cursor:pointer}.rc-tour-actions .rc-next{background:var(--accent-deep);color:white;border-color:var(--accent-deep);margin-left:auto}
#rc-tour-outline{position:fixed;border:3px solid var(--accent);border-radius:8px;pointer-events:none;z-index:10010;box-shadow:0 0 0 4px var(--accent-dim)}
@media(max-width:700px){.rc-theme-control select{width:96px;font-size:11px}.nav-right{gap:6px!important}body main :is(.two-col,.two-column){grid-template-columns:1fr}body main table{font-size:12px}#rc-tour{width:calc(100vw - 24px)}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
html[data-theme="minimal"] :is(.dd-menu,.cmdk-box),html[data-theme="editorial"] :is(.dd-menu,.cmdk-box){background:var(--panel)}
html[data-theme="minimal"] .stale-banner,html[data-theme="editorial"] .stale-banner{color:var(--neutral)}
html[data-theme="minimal"] .stale-banner strong,html[data-theme="editorial"] .stale-banner strong{color:var(--neutral)}
html[data-theme="minimal"] .pill.bear,html[data-theme="editorial"] .pill.bear{color:var(--bear)}
html[data-theme="minimal"] .pill.bull,html[data-theme="editorial"] .pill.bull{color:var(--bull)}
html[data-theme="minimal"] .pill.neutral,html[data-theme="editorial"] .pill.neutral{color:var(--neutral)}
html[data-theme="minimal"] .prob-card.dominant,html[data-theme="editorial"] .prob-card.dominant{box-shadow:inset 0 0 0 1px currentColor}
html[data-theme="minimal"] :is(.btn.primary,#cc-accept),html[data-theme="editorial"] :is(.btn.primary,#cc-accept){background:var(--accent-deep);color:#fff}
html[data-theme="minimal"] .pill.solid,html[data-theme="editorial"] .pill.solid{color:#fff}
html[data-theme="minimal"] .sys-tile.flag .value,html[data-theme="editorial"] .sys-tile.flag .value{color:var(--bear)}
#rc-control-tip{margin:0;inset:auto}

.rc-theme-toggle{display:inline-flex;align-items:center;gap:7px;background:var(--panel);color:var(--text);border:1px solid var(--border-strong);border-radius:7px;padding:7px 10px;min-height:32px;white-space:nowrap;font:500 12px var(--font-ui);cursor:pointer}.rc-theme-toggle:hover{border-color:var(--accent);background:var(--accent-dim)}

/* Compact appearance action; stronger brand presence. */
nav.top .rc-theme-toggle{gap:6px;padding:6px 8px;min-height:29px;font-size:11px}
nav.top .brand{font-size:17px}
nav.top .brand .logo-svg{width:25px;height:25px}
html[data-theme="editorial"] nav.top .nav-dd .dd-menu{background:var(--panel);color:var(--text);border-color:var(--border-strong)}
@media(max-width:700px){nav.top .brand{font-size:15px}nav.top .brand .logo-svg{width:24px;height:24px}}
