/* Alternative color systems. Select with ?palette=<id>. The page template is shared. */
.palette-picker { position:relative; }
.palette-picker > summary { list-style:none; }
.palette-picker > summary::-webkit-details-marker { display:none; }
.palette-picker > summary.palette-summary { display:inline-flex; align-items:center; gap:.35rem; padding:.45rem .65rem; border:1px solid var(--border-strong); border-radius:4px; background:var(--surface); color:var(--text); font:inherit; font-size:.75rem; line-height:1.3; white-space:nowrap; cursor:pointer; }
.palette-menu { position:absolute; top:calc(100% + .55rem); right:0; z-index:60; width:min(270px, calc(100vw - 2rem)); padding:.4rem; border:1px solid var(--border-strong); border-radius:8px; background:var(--surface-raised); box-shadow:var(--shadow); }
.palette-choice { display:flex; width:100%; align-items:center; gap:.62rem; padding:.55rem .62rem; border:0; border-radius:5px; background:transparent; color:var(--text); font-size:.76rem; line-height:1.35; text-align:left; }
.palette-choice::before { flex:0 0 auto; width:.68rem; height:.68rem; border:1px solid rgba(255,255,255,.25); border-radius:50%; background:var(--choice-color); content:""; }
.palette-choice:hover,.palette-choice[aria-pressed="true"] { background:rgba(var(--accent-rgb),.12); color:var(--accent); }
.palette-choice[data-palette-choice="violet"] { --choice-color:#b18cff; }.palette-choice[data-palette-choice="rose"] { --choice-color:#f472b6; }
.palette-choice[data-palette-choice="coast"] { --choice-color:#52dec4; }.palette-choice[data-palette-choice="graphite-red"] { --choice-color:#ff858b; }
.palette-choice[data-palette-choice="copper"] { --choice-color:#e19b73; }.palette-choice[data-palette-choice="black-red"] { --choice-color:#ef3340; }
.language-toggle { display:inline-flex; align-items:center; gap:.15rem; min-height:34px; padding:.35rem .45rem; border:1px solid var(--border-strong); border-radius:5px; background:var(--surface); color:var(--text-muted); font-family:var(--font-mono); font-size:.61rem; line-height:1; white-space:nowrap; cursor:pointer; }
.language-toggle [aria-current="true"] { color:var(--accent); font-weight:700; }
.language-toggle:hover { border-color:var(--accent); }
html[data-palette="coast"] { color-scheme: dark; --canvas:#07111c; --surface:#0d1c2b; --surface-raised:#132536; --text:#e4edf1; --text-muted:#a0b4bc; --heading:#f5fbfc; --accent:#52dec4; --accent-rgb:82,222,196; --flow:#8ed9bc; --border:#1d3542; --border-strong:#345362; --filled-text:#06221d; --header-bg:rgba(7,17,28,.9); --shadow:0 24px 80px rgba(0,0,0,.28); }
html[data-theme="light"][data-palette="coast"] { color-scheme:light; --canvas:#f3faf8; --surface:#fff; --surface-raised:#e8f3f0; --text:#20373a; --text-muted:#567075; --heading:#102d30; --accent:#087d71; --accent-rgb:8,125,113; --flow:#08735f; --border:#d4e4e0; --border-strong:#adc9c3; --filled-text:#fff; --header-bg:rgba(243,250,248,.92); --shadow:0 18px 60px rgba(20,67,61,.08); }

html[data-palette="cobalt"] { color-scheme:dark; --canvas:#080e1b; --surface:#101a2c; --surface-raised:#16243a; --text:#e5ebf6; --text-muted:#a4b1c8; --heading:#f6f8ff; --accent:#79a8ff; --accent-rgb:121,168,255; --flow:#54d6c7; --border:#26354b; --border-strong:#405673; --filled-text:#09152b; --header-bg:rgba(8,14,27,.9); --shadow:0 24px 80px rgba(0,0,0,.28); }
html[data-theme="light"][data-palette="cobalt"] { color-scheme:light; --canvas:#f5f8ff; --surface:#fff; --surface-raised:#eaf0fb; --text:#26344b; --text-muted:#65748c; --heading:#15233a; --accent:#315fb1; --accent-rgb:49,95,177; --flow:#087d70; --border:#dce4f0; --border-strong:#bac9df; --filled-text:#fff; --header-bg:rgba(245,248,255,.92); --shadow:0 18px 60px rgba(36,61,104,.08); }

html[data-palette="forest"] { color-scheme:dark; --canvas:#09140f; --surface:#101f18; --surface-raised:#172a20; --text:#e5eee7; --text-muted:#a6b9aa; --heading:#f4faf5; --accent:#94d7aa; --accent-rgb:148,215,170; --flow:#67d9c0; --border:#273d30; --border-strong:#45634e; --filled-text:#0c2114; --header-bg:rgba(9,20,15,.9); --shadow:0 24px 80px rgba(0,0,0,.3); }
html[data-theme="light"][data-palette="forest"] { color-scheme:light; --canvas:#f4f9f4; --surface:#fff; --surface-raised:#e9f2e9; --text:#2b3b2e; --text-muted:#687a6a; --heading:#1c3020; --accent:#3c7950; --accent-rgb:60,121,80; --flow:#08735f; --border:#dce8dc; --border-strong:#bfd2c0; --filled-text:#fff; --header-bg:rgba(244,249,244,.92); --shadow:0 18px 60px rgba(38,75,44,.08); }

html[data-palette="amber"] { color-scheme:dark; --canvas:#15110c; --surface:#211a13; --surface-raised:#2b2117; --text:#f0e9dd; --text-muted:#bcae99; --heading:#fff9ef; --accent:#f5bd62; --accent-rgb:245,189,98; --flow:#79d4ac; --border:#403326; --border-strong:#63513a; --filled-text:#2b1d05; --header-bg:rgba(21,17,12,.9); --shadow:0 24px 80px rgba(0,0,0,.3); }
html[data-theme="light"][data-palette="amber"] { color-scheme:light; --canvas:#fbf7ef; --surface:#fffdf8; --surface-raised:#f3eadb; --text:#41372a; --text-muted:#796b57; --heading:#2c2419; --accent:#9c6819; --accent-rgb:156,104,25; --flow:#19745a; --border:#e9dfcc; --border-strong:#d3c2a2; --filled-text:#fff; --header-bg:rgba(251,247,239,.93); --shadow:0 18px 60px rgba(81,59,26,.08); }

html[data-palette="plum"] { color-scheme:dark; --canvas:#140e1a; --surface:#201727; --surface-raised:#2a1d32; --text:#f0e7f1; --text-muted:#b8a8bc; --heading:#fff7ff; --accent:#ff8caa; --accent-rgb:255,140,170; --flow:#a9d994; --border:#3b2a42; --border-strong:#5c4165; --filled-text:#2a101b; --header-bg:rgba(20,14,26,.9); --shadow:0 24px 80px rgba(0,0,0,.32); }
html[data-theme="light"][data-palette="plum"] { color-scheme:light; --canvas:#fbf5fa; --surface:#fff; --surface-raised:#f3eaf2; --text:#3e2d3f; --text-muted:#78677b; --heading:#2b1d2f; --accent:#a23963; --accent-rgb:162,57,99; --flow:#4e8155; --border:#eaddea; --border-strong:#d5c0d6; --filled-text:#fff; --header-bg:rgba(251,245,250,.93); --shadow:0 18px 60px rgba(73,42,74,.08); }

html[data-palette="mono"] { color-scheme:dark; --canvas:#0b0d0d; --surface:#141817; --surface-raised:#1d2320; --text:#e8eee9; --text-muted:#a5b1a8; --heading:#f8fff8; --accent:#c3ed68; --accent-rgb:195,237,104; --flow:#7bd7b0; --border:#2d3731; --border-strong:#48594d; --filled-text:#17200b; --header-bg:rgba(11,13,13,.9); --shadow:0 24px 80px rgba(0,0,0,.3); }
html[data-theme="light"][data-palette="mono"] { color-scheme:light; --canvas:#f7f8f4; --surface:#fff; --surface-raised:#edf0e8; --text:#30372f; --text-muted:#667063; --heading:#1c251b; --accent:#557b19; --accent-rgb:85,123,25; --flow:#16725a; --border:#e0e5d9; --border-strong:#c5d0b8; --filled-text:#fff; --header-bg:rgba(247,248,244,.94); --shadow:0 18px 60px rgba(46,64,32,.08); }

html[data-palette="graphite-red"] { color-scheme:dark; --canvas:#111315; --surface:#191c20; --surface-raised:#22262b; --text:#ecebed; --text-muted:#b4b1b4; --heading:#fffafb; --accent:#ff858b; --accent-rgb:255,133,139; --flow:#82d2ac; --border:#34363b; --border-strong:#4d5057; --filled-text:#2a1013; --header-bg:rgba(17,19,21,.92); --shadow:0 24px 80px rgba(0,0,0,.3); }
html[data-theme="light"][data-palette="graphite-red"] { color-scheme:light; --canvas:#faf7f7; --surface:#fff; --surface-raised:#f1e9ea; --text:#383032; --text-muted:#76696c; --heading:#281e20; --accent:#b8323b; --accent-rgb:184,50,59; --flow:#287b5d; --border:#e8dcdd; --border-strong:#d1babc; --filled-text:#fff; --header-bg:rgba(250,247,247,.94); --shadow:0 18px 60px rgba(75,34,39,.08); }

html[data-palette="copper"] { color-scheme:dark; --canvas:#17120f; --surface:#211a16; --surface-raised:#2b211b; --text:#efe8e2; --text-muted:#b6a69a; --heading:#fff8f2; --accent:#e19b73; --accent-rgb:225,155,115; --flow:#8dd0ae; --border:#3d3028; --border-strong:#5d493b; --filled-text:#2a160b; --header-bg:rgba(23,18,15,.92); --shadow:0 24px 80px rgba(0,0,0,.3); }
html[data-theme="light"][data-palette="copper"] { color-scheme:light; --canvas:#fbf6f2; --surface:#fff; --surface-raised:#f2e8e0; --text:#40332d; --text-muted:#79675e; --heading:#2d211b; --accent:#a94f29; --accent-rgb:169,79,41; --flow:#28775c; --border:#e9dbd1; --border-strong:#d3bcae; --filled-text:#fff; --header-bg:rgba(251,246,242,.94); --shadow:0 18px 60px rgba(77,48,31,.08); }

html[data-palette="lilac"] { color-scheme:dark; --canvas:#0d1020; --surface:#151a2c; --surface-raised:#1e2439; --text:#e9e9f3; --text-muted:#abaec3; --heading:#faf9ff; --accent:#c7a6f8; --accent-rgb:199,166,248; --flow:#73d8c6; --border:#2d334b; --border-strong:#474e6b; --filled-text:#21152f; --header-bg:rgba(13,16,32,.92); --shadow:0 24px 80px rgba(0,0,0,.3); }
html[data-theme="light"][data-palette="lilac"] { color-scheme:light; --canvas:#f7f6fc; --surface:#fff; --surface-raised:#eeebf7; --text:#333045; --text-muted:#6e6985; --heading:#211e35; --accent:#7051a9; --accent-rgb:112,81,169; --flow:#08735f; --border:#e2ddef; --border-strong:#c8bfdf; --filled-text:#fff; --header-bg:rgba(247,246,252,.94); --shadow:0 18px 60px rgba(59,47,91,.08); }

html[data-palette="black-red"] { color-scheme:dark; --canvas:#030303; --surface:#0d0d0e; --surface-raised:#171718; --text:#ededed; --text-muted:#a9a9ad; --heading:#fff; --accent:#ef3340; --accent-rgb:239,51,64; --flow:#72d7a5; --border:#292929; --border-strong:#454545; --filled-text:#fff; --header-bg:rgba(3,3,3,.94); --shadow:0 24px 80px rgba(0,0,0,.4); }
html[data-theme="light"][data-palette="black-red"] { color-scheme:light; --canvas:#f8f7f7; --surface:#fff; --surface-raised:#f0eded; --text:#302d2d; --text-muted:#6e6768; --heading:#171515; --accent:#c51f2b; --accent-rgb:197,31,43; --flow:#20734f; --border:#e5dddd; --border-strong:#cbbdbd; --filled-text:#fff; --header-bg:rgba(248,247,247,.94); --shadow:0 18px 60px rgba(66,25,28,.08); }
