/* Colorways: separate recolored artwork editions. */
/* Palette tokens are declared inline in index.html so the shell and Labs update together. */
.header-right{display:flex;align-items:center;justify-content:flex-end;gap:18px;flex-wrap:wrap}
.theme-switch{display:flex;gap:4px;align-items:center;white-space:nowrap;font-size:.68rem}
.theme-switch button{min-width:42px;min-height:30px;padding:4px 6px;display:flex;align-items:center;gap:5px}
.theme-switch i{display:block;width:8px;height:8px;background:#ddd;border:1px solid #fff5}
.theme-switch [data-theme-choice=green] i{background:#75f18b}
.theme-switch [data-theme-choice=red] i{background:#f86f69}
.theme-switch button[aria-pressed=true]{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.plate .art-layer{transform:scale(calc(1 + var(--art-drive)*.025));transform-origin:var(--art-origin,50%) center}
:root:not([data-colorway=mono]) .intro,:root:not([data-colorway=mono]) .taxonomy span{color:var(--muted)}
:root:not([data-colorway=mono]) .content:before{background:linear-gradient(color-mix(in srgb,var(--ink) 5%,transparent) 1px,transparent 1px),linear-gradient(90deg,color-mix(in srgb,var(--ink) 5%,transparent) 1px,transparent 1px)}
:root:not([data-colorway=mono]) .plate,:root:not([data-colorway=mono]) .study .thumb{background:var(--scope-bg)}
:root:not([data-colorway=mono]) button[aria-pressed=true]{background:var(--ink);color:var(--bg)}
:root:not([data-colorway=mono]) .archive{background:var(--panel);border-color:var(--line)}
:root:not([data-colorway=mono]) .archive-panel{border-color:var(--line)}
.synth{background:var(--panel);border-color:var(--line);box-shadow:0 0 0 3px color-mix(in srgb,var(--ink) 12%,transparent)}
.synth-scope{background:var(--scope-bg);border-color:var(--line)}
.synth-scope-head,.synth-scope-foot,.synth-control output{color:var(--muted);border-color:var(--line)}
.synth-knob{border-color:var(--muted);background:repeating-conic-gradient(var(--muted) 0deg 1deg,transparent 1deg 30deg)}
.synth-knob>span{background:var(--panel);border-color:var(--line)}
.synth-knob>span:before{background:var(--ink)}
.synth input[type=range]{accent-color:var(--ink)}
#synth-start{background:var(--ink);color:var(--bg);border-color:var(--ink)}
#synth-led{border-color:var(--ink)}
.synth[data-live=true] #synth-led{background:var(--ink)}
@media(max-width:780px){.header-right{gap:6px;justify-content:flex-end}.header-right>span{font-size:.61rem;text-align:right}}
@media(prefers-reduced-motion:reduce){.plate .art-layer{transform:none}}

.plate .art-layer:nth-child(1){--art-origin:16.6667%}.plate .art-layer:nth-child(2){--art-origin:50%}.plate .art-layer:nth-child(3){--art-origin:83.3333%}
:root[data-colorway=green] .synth-scope,:root[data-colorway=red] .synth-scope{box-shadow:inset 0 0 24px color-mix(in srgb,var(--ink) 6%,transparent)}
@media(max-width:420px){.theme-switch>span{display:none}.theme-switch button{font-size:.61rem;min-width:0}}


/* Keep the whole instrument surface in the active site colorway. */
.synth,.object-lab,.visual-lab,.terminal{color:var(--ink);background:var(--panel);border-color:var(--line);accent-color:var(--ink)}
.synth button,.object-lab button,.visual-lab button,.terminal button{border-color:var(--line);color:var(--ink)}
.synth button[aria-pressed=true],.object-lab button[aria-pressed=true],.visual-lab button[aria-pressed=true],.terminal button[aria-pressed=true]{background:var(--ink);color:var(--scope-bg);border-color:var(--ink)}
.synth input:focus-visible{outline-color:var(--ink)}
.synth input[type=range],.object-lab input[type=range],.visual-lab input[type=range],.synth meter{accent-color:var(--ink)}
.synth-control output{color:var(--ink)}
