:root{--site-bg:#101111;--site-fg:#f1ebdd;--site-muted:#c8c3ba;--site-line:rgba(241,235,221,.18);--site-accent:#b66a42;color-scheme:dark}
:root[data-theme=light]{--site-bg:#F0F3F6;--site-fg:#273440;--site-muted:#536271;--site-line:#c8d2dc;--site-accent:#97532e;color-scheme:light;--ink:#F0F3F6;--paper:#273440;--ivory:#273440;--muted:#536271;--copper:#97532e}
.theme-toggle{display:inline-grid!important;place-items:center;flex:none;width:36px;height:36px;padding:8px!important;border:0!important;background:transparent!important;color:var(--site-muted)!important;vertical-align:middle;cursor:pointer;line-height:1}
.theme-toggle:hover{color:var(--site-accent)!important}.theme-toggle:focus-visible{outline:2px solid var(--site-accent);outline-offset:3px}
.theme-toggle svg{display:block;width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
[data-theme=light] body{background-color:var(--site-bg);color:var(--site-fg)}
[data-theme=light] footer,[data-theme=light] .policy-section,[data-theme=light] .recommendation-row,[data-theme=light] .recommendations,[data-theme=light] .game-choice,[data-theme=light] .arcade-records{border-color:var(--site-line)}
[data-theme=light] .rainier-background img{mix-blend-mode:multiply;filter:grayscale(1) invert(1);opacity:.14}
[data-theme=light] #arcade-board,[data-theme=light] .game-choice svg{filter:invert(.91) hue-rotate(180deg)}
/* Site chrome follows the shared finish; instrument housings keep their physical materials. */
body.instrument-page{background:#101111}
body.toolbox-page{background:#101111;color:var(--site-fg)}
body.toolbox-page p,body.toolbox-page header small,body.toolbox-page footer{color:var(--site-muted)}
[data-theme=light] body.toolbox-page{background:#F0F3F6;color:var(--site-fg)}
[data-theme=light] body.instrument-page{background:#F0F3F6}
body.instrument-page .theme-toggle{position:fixed;right:12px;top:12px;z-index:2}
[data-theme=light] .instrument-page>.shell>.top,[data-theme=light] .instrument-page>.shell>.top a,[data-theme=light] .instrument-page .toolbox-back,[data-theme=light] .instrument-page .tag{color:var(--site-muted)}
