/* Doki Academia · looks (see js/looks.js). Each look sets the palette variables shared by the course and the apps.
   Nebula light / dark are the originals and need no overrides. */
html[data-look=mist]{
 --bg:#eef0f4;--surface:#ffffff;--paper:#e6e9ef;--ink:#1f2633;--ink2:#3d4657;--muted:#6b7487;--line:#d8dce4;
 --accent:#5a55d6;--hot:#c2449f;--gold:#d9822b;--hero-a:#2a2f3d;--hero-b:#1a1e28;--pre:#1f2430;--pre-ink:#e8ebf2;--th:#333a4d;--th-ink:#f2f4f8;
 --key:#fdf3e7;--glow:rgba(90,85,214,.18);--fret-bg:#eceff4;--fret-wire:#c4cad6;--fret-string:#a3abba;--nut:#4a5162;--nut-bg:#dfe3ea;--marker:rgba(90,85,214,.07);
 --dot:#e1e4f0;--dot-ink:#262b3a;--dot-line:#8d93ad;color-scheme:light}
html[data-look=graphite]{
 --bg:#18191c;--surface:#222327;--paper:#2a2c31;--ink:#e8e8ea;--ink2:#c7c8cd;--muted:#9a9ca5;--line:#3a3c43;
 --accent:#9fb4c7;--hot:#7d93a8;--gold:#d7b07a;--hero-a:#26272c;--hero-b:#141518;--pre:#111214;--pre-ink:#e4e4e7;--th:#34363d;--th-ink:#f1f1f3;
 --key:#3a332b;--glow:rgba(159,180,199,.14);--fret-bg:#232428;--fret-wire:#45474f;--fret-string:#62656f;--nut:#c9cbd3;--nut-bg:#2c2e33;--marker:rgba(255,255,255,.05);
 --dot:#34363f;--dot-ink:#ececf0;--dot-line:#8a8d99;color-scheme:dark}
html[data-look=code]{
 --bg:#14191c;--surface:#1a2024;--paper:#1f272c;--ink:#d4dcd6;--ink2:#b5c0b8;--muted:#85928a;--line:#2c363b;
 --accent:#5fd38d;--hot:#3fb6a8;--gold:#d7b46a;--hero-a:#1a2024;--hero-b:#11161a;--pre:#0e1214;--pre-ink:#c9f2d6;--th:#243035;--th-ink:#e3ece6;
 --key:#2a2c22;--glow:rgba(95,211,141,.14);--fret-bg:#192024;--fret-wire:#2f3b3f;--fret-string:#46555a;--nut:#9fb3a8;--nut-bg:#222b2f;--marker:rgba(95,211,141,.06);
 --dot:#22302a;--dot-ink:#d4dcd6;--dot-line:#4caf7a;color-scheme:dark;
 --serif:ui-monospace,SFMono-Regular,'Cascadia Code',Menlo,Consolas,monospace}
html[data-look=clean]{
 --bg:#ffffff;--surface:#ffffff;--paper:#f6f7f9;--ink:#111827;--ink2:#374151;--muted:#6b7280;--line:#e5e7eb;
 --accent:#4f46e5;--hot:#db2777;--gold:#f59e0b;--hero-a:#1e1b4b;--hero-b:#111827;--pre:#0f172a;--pre-ink:#e2e8f0;--th:#1f2937;--th-ink:#f9fafb;
 --key:#fff7ed;--glow:rgba(79,70,229,.12);--fret-bg:#f8fafc;--fret-wire:#cbd5e1;--fret-string:#94a3b8;--nut:#334155;--nut-bg:#e2e8f0;--marker:rgba(79,70,229,.05);
 --dot:#eef2ff;--dot-ink:#1e1b4b;--dot-line:#818cf8;color-scheme:light;
 --serif:'Segoe UI',system-ui,-apple-system,Roboto,Arial,sans-serif}
/* Light looks built on a strong accent (the deep colour is the highlight, on a light background) */
html[data-look=forest]{
 --bg:#f1f6f5;--surface:#ffffff;--paper:#e4efed;--ink:#0b2424;--ink2:#2b4747;--muted:#5f7a78;--line:#cfe0dd;
 --accent:#002828;--hot:#0f7b6c;--gold:#c9853a;--hero-a:#002828;--hero-b:#001a1a;--pre:#002828;--pre-ink:#e4f2ef;--th:#0b3b3b;--th-ink:#f1f8f7;
 --key:#fbf2e4;--glow:rgba(0,40,40,.14);--fret-bg:#eaf3f1;--fret-wire:#bcd3cf;--fret-string:#92b1ac;--nut:#002828;--nut-bg:#d8e8e5;--marker:rgba(0,40,40,.06);
 --dot:#dcecea;--dot-ink:#002828;--dot-line:#4f8f86;color-scheme:light}
html[data-look=ocean]{
 --bg:#f0f5fb;--surface:#ffffff;--paper:#e2ecf7;--ink:#0d1f38;--ink2:#2c4566;--muted:#5f7593;--line:#d2deec;
 --accent:#11386b;--hot:#2f80c9;--gold:#e0913a;--hero-a:#11386b;--hero-b:#0a2346;--pre:#0d2a52;--pre-ink:#e6eef9;--th:#163f78;--th-ink:#f2f6fc;
 --key:#fdf3e6;--glow:rgba(17,56,107,.15);--fret-bg:#ebf2fa;--fret-wire:#c0d2e8;--fret-string:#97b2d4;--nut:#11386b;--nut-bg:#d9e5f3;--marker:rgba(17,56,107,.06);
 --dot:#dde8f6;--dot-ink:#11386b;--dot-line:#5b8ac4;color-scheme:light}
html[data-look=wine]{
 --bg:#faf3f2;--surface:#ffffff;--paper:#f3e4e2;--ink:#2a0d0b;--ink2:#4f2a26;--muted:#86605b;--line:#ead6d3;
 --accent:#280000;--hot:#b3261e;--gold:#d98a2b;--hero-a:#280000;--hero-b:#1a0000;--pre:#2a0505;--pre-ink:#f8e9e7;--th:#4a0f0b;--th-ink:#fbf1f0;
 --key:#fff3e6;--glow:rgba(179,38,30,.14);--fret-bg:#f8eeec;--fret-wire:#e0c4c0;--fret-string:#c49a94;--nut:#280000;--nut-bg:#eedad7;--marker:rgba(40,0,0,.05);
 --dot:#f4dfdc;--dot-ink:#280000;--dot-line:#b3605a;color-scheme:light}
/* The new looks use flat backgrounds (no night sky or twilight glow) */
html[data-look=mist] body,html[data-look=graphite] body,html[data-look=code] body,html[data-look=clean] body,html[data-look=forest] body,html[data-look=ocean] body,html[data-look=wine] body{background:var(--bg);background-image:none}
html[data-look=code] .eyebrow,html[data-look=code] small,html[data-look=code] kbd{font-family:ui-monospace,SFMono-Regular,'Cascadia Code',Menlo,Consolas,monospace}
html[data-look=clean] .panel,html[data-look=clean] .card{box-shadow:none}

/* Look picker panel */
.look-panel{position:fixed;z-index:200;width:min(360px,calc(100vw - 24px));max-height:calc(100vh - 24px);overflow:auto;padding:14px;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--ink);box-shadow:0 20px 60px rgba(0,0,0,.28)}
.look-panel[hidden]{display:none}
.look-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.look-head strong{font:400 20px var(--serif,Georgia,serif)}
.look-x{border:0;background:transparent;color:var(--muted);font-size:22px;line-height:1;padding:2px 8px;cursor:pointer}
.look-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.look-opt{display:grid;gap:4px;text-align:left;padding:10px;border:1px solid var(--line);border-radius:12px;background:var(--paper);color:var(--ink);cursor:pointer;font:inherit}
.look-opt:hover{border-color:var(--accent)}.look-opt[aria-pressed=true]{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent)}
.look-opt b{font-size:13px;font-weight:600}.look-opt small{font-size:11px;color:var(--muted);line-height:1.3}
.look-sw{display:flex;gap:4px}.look-sw i{flex:1;height:22px;border-radius:6px;border:1px solid rgba(0,0,0,.12)}
.look-rem{display:flex;align-items:center;gap:8px;margin-top:12px;font-size:13px;color:var(--ink2);cursor:pointer}.look-rem input{width:18px;height:18px;accent-color:var(--accent)}
.look-panel .look-opt,.look-panel .look-opt[aria-pressed=true]{background:var(--paper)!important;color:var(--ink)!important;background-image:none!important}
.look-panel .look-opt[aria-pressed=true] b::after{content:"✓";display:inline-block;margin-left:8px;font-size:24px;font-weight:800;line-height:.7;vertical-align:-3px;color:var(--accent)}
/* Home hero follows the look: deep hero colours with a glow of the look's accents */
html[data-look=mist] .hero,html[data-look=graphite] .hero,html[data-look=code] .hero,html[data-look=clean] .hero,html[data-look=forest] .hero,html[data-look=ocean] .hero,html[data-look=wine] .hero{
 background:radial-gradient(60% 70% at 70% 0%,color-mix(in srgb,var(--hot) 55%,transparent),transparent 65%),radial-gradient(40% 45% at 100% 100%,color-mix(in srgb,var(--gold) 35%,transparent),transparent 70%),linear-gradient(160deg,var(--hero-a),var(--hero-b))}
html[data-look=mist] .hero-art,html[data-look=graphite] .hero-art,html[data-look=code] .hero-art,html[data-look=clean] .hero-art,html[data-look=forest] .hero-art,html[data-look=ocean] .hero-art,html[data-look=wine] .hero-art{background:linear-gradient(110deg,transparent,color-mix(in srgb,var(--hero-b) 40%,transparent))}

/* Fixed violets follow the look: course sidebar (dark), academy bar, hero drawing */
html[data-look=mist] .sidebar,html[data-look=graphite] .sidebar,html[data-look=code] .sidebar,html[data-look=clean] .sidebar,html[data-look=forest] .sidebar,html[data-look=ocean] .sidebar,html[data-look=wine] .sidebar{background:var(--surface)}
html[data-look=mist] .academy-bar,html[data-look=graphite] .academy-bar,html[data-look=code] .academy-bar,html[data-look=clean] .academy-bar,html[data-look=forest] .academy-bar,html[data-look=ocean] .academy-bar,html[data-look=wine] .academy-bar,html[data-look=mist] .shell-bar,html[data-look=graphite] .shell-bar,html[data-look=code] .shell-bar,html[data-look=clean] .shell-bar,html[data-look=forest] .shell-bar,html[data-look=ocean] .shell-bar,html[data-look=wine] .shell-bar{background:var(--hero-b)}
html[data-look=mist]{--art-filter:saturate(.35)}html[data-look=graphite]{--art-filter:grayscale(1) brightness(.92)}
html[data-look=code]{--art-filter:hue-rotate(-125deg) saturate(.55) brightness(.9)}html[data-look=forest]{--art-filter:hue-rotate(-115deg) saturate(.45)}
html[data-look=ocean]{--art-filter:hue-rotate(-45deg) saturate(.8)}html[data-look=wine]{--art-filter:hue-rotate(85deg) saturate(.65)}
.hero-art svg{filter:var(--art-filter,none)}
html[data-look=code] .button,html[data-look=code] .button:hover{color:#0e1214}
html[data-look=graphite] .button,html[data-look=graphite] .button:hover{color:#141518}

/* Accent-coloured details that were fixed violet */
html[data-look=mist] .hero,html[data-look=graphite] .hero,html[data-look=code] .hero,html[data-look=clean] .hero,html[data-look=forest] .hero,html[data-look=ocean] .hero,html[data-look=wine] .hero{box-shadow:0 18px 50px var(--glow)}
html[data-look=mist] .ab-langs a.on,html[data-look=graphite] .ab-langs a.on,html[data-look=code] .ab-langs a.on,html[data-look=clean] .ab-langs a.on,html[data-look=forest] .ab-langs a.on,html[data-look=ocean] .ab-langs a.on,html[data-look=wine] .ab-langs a.on{background:var(--accent);color:var(--surface)}
html[data-look=mist] .product-menu,html[data-look=graphite] .product-menu,html[data-look=code] .product-menu,html[data-look=clean] .product-menu,html[data-look=forest] .product-menu,html[data-look=ocean] .product-menu,html[data-look=wine] .product-menu{border-color:color-mix(in srgb,var(--accent) 45%,transparent)}

/* Home hero text: neutral light text with the look accent (the hero is dark in every look) */
html[data-look=mist] .hero,html[data-look=graphite] .hero,html[data-look=code] .hero,html[data-look=clean] .hero,html[data-look=forest] .hero,html[data-look=ocean] .hero,html[data-look=wine] .hero,html[data-look=mist] .hero-copy,html[data-look=graphite] .hero-copy,html[data-look=code] .hero-copy,html[data-look=clean] .hero-copy,html[data-look=forest] .hero-copy,html[data-look=ocean] .hero-copy,html[data-look=wine] .hero-copy,html[data-look=mist] .hero-copy p,html[data-look=graphite] .hero-copy p,html[data-look=code] .hero-copy p,html[data-look=clean] .hero-copy p,html[data-look=forest] .hero-copy p,html[data-look=ocean] .hero-copy p,html[data-look=wine] .hero-copy p{color:rgba(255,255,255,.84)}
html[data-look=mist] .hero-index,html[data-look=graphite] .hero-index,html[data-look=code] .hero-index,html[data-look=clean] .hero-index,html[data-look=forest] .hero-index,html[data-look=ocean] .hero-index,html[data-look=wine] .hero-index,html[data-look=mist] .hero-meta,html[data-look=graphite] .hero-meta,html[data-look=code] .hero-meta,html[data-look=clean] .hero-meta,html[data-look=forest] .hero-meta,html[data-look=ocean] .hero-meta,html[data-look=wine] .hero-meta{color:color-mix(in srgb,var(--accent) 45%,#ffffff)}
html[data-look=mist] .hero .pill,html[data-look=graphite] .hero .pill,html[data-look=code] .hero .pill,html[data-look=clean] .hero .pill,html[data-look=forest] .hero .pill,html[data-look=ocean] .hero .pill,html[data-look=wine] .hero .pill{color:#fff;border-color:rgba(255,255,255,.35)}
html[data-look=mist] .button.light,html[data-look=graphite] .button.light,html[data-look=code] .button.light,html[data-look=clean] .button.light,html[data-look=forest] .button.light,html[data-look=ocean] .button.light,html[data-look=wine] .button.light,html[data-look=mist] .button.light span,html[data-look=graphite] .button.light span,html[data-look=code] .button.light span,html[data-look=clean] .button.light span,html[data-look=forest] .button.light span,html[data-look=ocean] .button.light span,html[data-look=wine] .button.light span{color:var(--hero-b)}

/* Keyboards and small labels follow the look */
html[data-look=mist] .kb .bk,html[data-look=graphite] .kb .bk,html[data-look=code] .kb .bk,html[data-look=clean] .kb .bk,html[data-look=forest] .kb .bk,html[data-look=ocean] .kb .bk,html[data-look=wine] .kb .bk{background:color-mix(in srgb,var(--hero-b) 85%,#000);border-color:#000}
html[data-look=mist] .kb .wk,html[data-look=graphite] .kb .wk,html[data-look=code] .kb .wk,html[data-look=clean] .kb .wk,html[data-look=forest] .kb .wk,html[data-look=ocean] .kb .wk,html[data-look=wine] .kb .wk{color:var(--dot-ink)}
html[data-look=mist] .kb .wk.on,html[data-look=graphite] .kb .wk.on,html[data-look=code] .kb .wk.on,html[data-look=clean] .kb .wk.on,html[data-look=forest] .kb .wk.on,html[data-look=ocean] .kb .wk.on,html[data-look=wine] .kb .wk.on{background:color-mix(in srgb,var(--accent) 28%,#ffffff)}
html[data-look=mist] .kb .bk.on,html[data-look=graphite] .kb .bk.on,html[data-look=code] .kb .bk.on,html[data-look=clean] .kb .bk.on,html[data-look=forest] .kb .bk.on,html[data-look=ocean] .kb .bk.on,html[data-look=wine] .kb .bk.on{background:color-mix(in srgb,var(--accent) 75%,#000)}
html[data-look=mist] .pill.subtle,html[data-look=graphite] .pill.subtle,html[data-look=code] .pill.subtle,html[data-look=clean] .pill.subtle,html[data-look=forest] .pill.subtle,html[data-look=ocean] .pill.subtle,html[data-look=wine] .pill.subtle{color:var(--accent)}
html[data-look=mist] .kb .on.root,html[data-look=graphite] .kb .on.root,html[data-look=code] .kb .on.root,html[data-look=clean] .kb .on.root,html[data-look=forest] .kb .on.root,html[data-look=ocean] .kb .on.root,html[data-look=wine] .kb .on.root,html[data-look=mist] .kb .wk.on.root,html[data-look=graphite] .kb .wk.on.root,html[data-look=code] .kb .wk.on.root,html[data-look=clean] .kb .wk.on.root,html[data-look=forest] .kb .wk.on.root,html[data-look=ocean] .kb .wk.on.root,html[data-look=wine] .kb .wk.on.root,html[data-look=mist] .face-kb .kb .on.root,html[data-look=graphite] .face-kb .kb .on.root,html[data-look=code] .face-kb .kb .on.root,html[data-look=clean] .face-kb .kb .on.root,html[data-look=forest] .face-kb .kb .on.root,html[data-look=ocean] .face-kb .kb .on.root,html[data-look=wine] .face-kb .kb .on.root{background:linear-gradient(170deg,var(--accent),var(--hot));color:var(--surface)}
