.theme-toggle{display:inline-flex;align-items:center;justify-content:center;min-width:65px;min-height:44px;padding:8px;border:1px solid var(--line);background:var(--panel);color:var(--text);font:500 10px var(--mono);border-radius:4px;flex:none;white-space:nowrap}.nav-shell{gap:18px}.nav-shell nav{min-width:0;overflow-x:auto;flex-shrink:1}.theme-toggle:hover{border-color:var(--lime)}
:root[data-theme=light]{--bg:#f5f5ee;--panel:#ffffff;--panel2:#e9ede5;--line:#cbd3c9;--muted:#52635e;--text:#18231e;--lime:#406c0c;--up:#326611;--down:#b5332c;--blue:#315cb0}
[data-theme=light] .site-header{background:#f5f5eef2}
[data-theme=light] .btn.primary{background:#c6f36b;color:#17200c;border-color:#83a835}
[data-theme=light] .btn.primary:hover{background:#b9e85d}
[data-theme=light] .segmented button.selected{background:var(--text);color:var(--bg)}
[data-theme=light] select option{background:var(--panel);color:var(--text)}
[data-theme=light] .hero-deck,[data-theme=light] .hero-footnote,[data-theme=light] .board-caption,[data-theme=light] .card-body .card-source,[data-theme=light] .inspector-note,[data-theme=light] .quiz-principle,[data-theme=light] .footer-note,[data-theme=light] .detail-section .context-caveat,[data-theme=light] .rs-deck,[data-theme=light] .rs-open,[data-theme=light] .rs-feature-route,[data-theme=light] .rs-format-chips,[data-theme=light] .rs-studio-copy>p.rs-rights-note,[data-theme=light] .rs-social-actions,[data-theme=light] .rs-embed textarea,[data-theme=light] .debate-method,[data-theme=light] .debate-method a{color:var(--muted)}
[data-theme=light] .numbers-strip,[data-theme=light] .map-section,[data-theme=light] .stories-section,[data-theme=light] .rs-studio,[data-theme=light] .debates-section,[data-theme=light] .era-strip{background:#edf0e8}
[data-theme=light] .map-canvas-panel,[data-theme=light] .rank-scrubber,[data-theme=light] .compare-labels,[data-theme=light] .quiz-option,[data-theme=light] .source-list a,[data-theme=light] .rs-duel-bottom,[data-theme=light] .rs-movers-table>div,[data-theme=light] .rs-studio-hero,[data-theme=light] .rs-presets button,[data-theme=light] .rs-editor-controls select,[data-theme=light] .rs-editor-controls input[type=text],[data-theme=light] .rs-thread-meta,[data-theme=light] .debate-thread-stat,[data-theme=light] .debate-player,[data-theme=light] .debate-vs,[data-theme=light] .debate-third,[data-theme=light] .debate-card{background:var(--panel)}
[data-theme=light] .delta{background:#e5f0d7}[data-theme=light] .delta.down{background:#f8e0dc}[data-theme=light] .delta.blue{background:#e3eaf8}[data-theme=light] .delta.flat{background:#e5e9e4}
[data-theme=light] .chart-grid{stroke:#d7dfd4}[data-theme=light] .chart-axis{stroke:#7f8e85}[data-theme=light] .chart-region{fill:#52635e}[data-theme=light] .chart-hit .plot-dot{stroke:#f5f5ee}
[data-theme=light] .chart-tooltip rect{fill:#18231e}[data-theme=light] .chart-tooltip text{fill:#f5f5ee}
[data-theme=light] .player-card .card-portrait:after{background:linear-gradient(transparent,rgba(255,255,255,.75) 48%,var(--panel) 92%)}
[data-theme=light] .player-card .card-body,[data-theme=light] .player-card:hover .card-body,[data-theme=light] .player-card:focus-visible .card-body{background:linear-gradient(180deg,transparent,rgba(255,255,255,.96) 40%,var(--panel) 68%)}
[data-theme=light] .player-card .portrait-monogram{color:#c8d2c5}
[data-theme=light] .inspector-headshot .ghost-rank,[data-theme=light] .compare-portrait .ghost,[data-theme=light] .detail-photo .ghost-rank,[data-theme=light] .debate-rank{color:#17231e0b}
[data-theme=light] .quiz-box,[data-theme=light] .detail-hero{background:linear-gradient(145deg,#e5eddc,var(--panel) 70%)}
[data-theme=light] .quiz-option:not(:disabled):hover,[data-theme=light] .team-quick:hover,[data-theme=light] .team-quick:focus-visible{background:#e9f0df}
[data-theme=light] .quiz-rank{background:#fffffff0}[data-theme=light] .close-dialog{background:#ffffffed}
[data-theme=light] .rs-feature-player,[data-theme=light] .rs-feature-player.fall,[data-theme=light] .rs-feature-player.rookie,[data-theme=light] .rs-debate-mini,[data-theme=light] .rs-debate-mini:nth-child(2),[data-theme=light] .rs-debate-mini:nth-child(3){background:linear-gradient(150deg,#e4ecd9,#fff 80%);border-color:var(--line)}
[data-theme=light] .rs-feature-player.fall{background:linear-gradient(150deg,#f3dedb,#fff 80%)}
[data-theme=light] .rs-feature-player.rookie{background:linear-gradient(150deg,#e1e3f4,#fff 80%)}
[data-theme=light] .rs-feature-bottom{background:linear-gradient(transparent,#fff 38%)}
[data-theme=light] .rs-purple,[data-theme=light] .rookie .rs-feature-label,[data-theme=light] .rookie .rs-feature-value,[data-theme=light] .rs-rookie-gap>strong{color:#6451ae}
[data-theme=light] .rs-duel-bottom b,[data-theme=light] .debate-question{color:var(--text)}
[data-theme=light] .rs-mini-slope text{fill:var(--muted)}
[data-theme=light] .rs-preview-chrome{background:var(--panel2)}
[data-theme=light] a.source-link{color:var(--lime)}
[data-theme=light] .custom-brief input,[data-theme=light] .custom-brief textarea,[data-theme=light] .custom-brief select{color-scheme:light}
@media(max-width:850px){.theme-toggle{position:absolute;right:70px;top:8px;min-height:44px}.nav-shell:not(:has(.nav-info)) .theme-toggle{right:16px}.nav-shell>.text-link{margin-left:auto;margin-right:80px}.nav-shell{gap:0}.nav-shell nav{flex-shrink:0}}
[data-theme=light] :is(#rank-chart,.rs-mini-slope) [stroke="#c6f36b"]{stroke:var(--up)}
[data-theme=light] :is(#rank-chart,.rs-mini-slope) [stroke="#fa8f7d"],[data-theme=light] :is(#rank-chart,.rs-mini-slope) [stroke="#ff8c82"], [data-theme=light] .rs-mini-slope [stroke="#ff887c"]{stroke:var(--down)}
[data-theme=light] :is(#rank-chart,.rs-mini-slope) [stroke="#99a4ff"]{stroke:var(--blue)}
[data-theme=light] :is(#rank-chart,.rs-mini-slope) [fill="#c6f36b"]{fill:var(--up)}
[data-theme=light] :is(#rank-chart,.rs-mini-slope) [fill="#fa8f7d"],[data-theme=light] :is(#rank-chart,.rs-mini-slope) [fill="#ff8c82"], [data-theme=light] .rs-mini-slope [fill="#ff887c"]{fill:var(--down)}
[data-theme=light] :is(#rank-chart,.rs-mini-slope) [fill="#99a4ff"]{fill:var(--blue)}
[data-theme=light] #rank-chart [fill="#f1f5ed"],[data-theme=light] #rank-chart [fill="#e9eee5"]{fill:var(--text)}
