/* Genererad av tools/make_themes.py – ändra där, inte här. */
[data-theme="standard"][data-mode="dark"]{--bg:#0F1115;--surface:#181B21;--soft:#22262E;--line:#2A2F38;--line2:#23272F;--text:#D7DCE3;--strong:#F3F4F6;--muted:#9AA3AE;--faint:#6B7280;--accent:#6B9BFF;--accent-hover:#A9C2FF;--accent-soft:#1E2A44;--sel:#1A2235;--on-accent:#0B1220;--ok:#4ADE9B;--ok-bg:#123524;--err:#F87171;--err-bg:#3B1618;--warn:#FBBF24;--warn-bg:#3A2B0D}
@media (prefers-color-scheme:dark){[data-theme="standard"][data-mode="auto"]{--bg:#0F1115;--surface:#181B21;--soft:#22262E;--line:#2A2F38;--line2:#23272F;--text:#D7DCE3;--strong:#F3F4F6;--muted:#9AA3AE;--faint:#6B7280;--accent:#6B9BFF;--accent-hover:#A9C2FF;--accent-soft:#1E2A44;--sel:#1A2235;--on-accent:#0B1220;--ok:#4ADE9B;--ok-bg:#123524;--err:#F87171;--err-bg:#3B1618;--warn:#FBBF24;--warn-bg:#3A2B0D}
}
[data-theme="tech"]{--bg:#F6F8FA;--surface:#FFFFFF;--soft:#EEF2F5;--line:#D0D7DE;--line2:#E6EBF0;--text:#2D3742;--strong:#0F1720;--muted:#57636F;--faint:#8A95A1;--accent:#0A8A5C;--accent-hover:#06663F;--accent-soft:#E3F4EC;--sel:#EEF7F2;--on-accent:#FFFFFF;--ok:#0A7A50;--ok-bg:#E7F6EF;--err:#B42318;--err-bg:#FDECEA;--warn:#92400E;--warn-bg:#FEF3C7}
[data-theme="tech"][data-mode="dark"]{--bg:#0A0E13;--surface:#0D1218;--soft:#111821;--line:#1F2A36;--line2:#141C25;--text:#C9D4DF;--strong:#E6EDF3;--muted:#8796A5;--faint:#6B7A8A;--accent:#3DDC97;--accent-hover:#7FF0BF;--accent-soft:#16202B;--sel:#111821;--on-accent:#06110B;--ok:#4ADE9B;--ok-bg:#123524;--err:#F87171;--err-bg:#3B1618;--warn:#FBBF24;--warn-bg:#3A2B0D}
@media (prefers-color-scheme:dark){[data-theme="tech"][data-mode="auto"]{--bg:#0A0E13;--surface:#0D1218;--soft:#111821;--line:#1F2A36;--line2:#141C25;--text:#C9D4DF;--strong:#E6EDF3;--muted:#8796A5;--faint:#6B7A8A;--accent:#3DDC97;--accent-hover:#7FF0BF;--accent-soft:#16202B;--sel:#111821;--on-accent:#06110B;--ok:#4ADE9B;--ok-bg:#123524;--err:#F87171;--err-bg:#3B1618;--warn:#FBBF24;--warn-bg:#3A2B0D}
}
[data-theme="gaming"]{--bg:#F7F4FF;--surface:#FFFFFF;--soft:#EEE8FA;--line:#CFC3EC;--line2:#E6DDF8;--text:#2E2645;--strong:#1A1230;--muted:#5E5480;--faint:#8A82A6;--accent:#D61F7A;--accent-hover:#A3135B;--accent-soft:#FBE4F0;--sel:#FDEFF6;--on-accent:#FFFFFF;--ok:#0A7A50;--ok-bg:#E7F6EF;--err:#B42318;--err-bg:#FDECEA;--warn:#92400E;--warn-bg:#FEF3C7}
[data-theme="gaming"][data-mode="dark"]{--bg:#0D0918;--surface:#150F28;--soft:#1A1430;--line:#33285A;--line2:#2A2046;--text:#D6D0E8;--strong:#FFFFFF;--muted:#9A8FC0;--faint:#6E6590;--accent:#FF4FA3;--accent-hover:#FF8CC4;--accent-soft:#2E1A40;--sel:#1E1636;--on-accent:#1A0010;--ok:#4ADE9B;--ok-bg:#123524;--err:#F87171;--err-bg:#3B1618;--warn:#FBBF24;--warn-bg:#3A2B0D}
@media (prefers-color-scheme:dark){[data-theme="gaming"][data-mode="auto"]{--bg:#0D0918;--surface:#150F28;--soft:#1A1430;--line:#33285A;--line2:#2A2046;--text:#D6D0E8;--strong:#FFFFFF;--muted:#9A8FC0;--faint:#6E6590;--accent:#FF4FA3;--accent-hover:#FF8CC4;--accent-soft:#2E1A40;--sel:#1E1636;--on-accent:#1A0010;--ok:#4ADE9B;--ok-bg:#123524;--err:#F87171;--err-bg:#3B1618;--warn:#FBBF24;--warn-bg:#3A2B0D}
}

/* mörkt läge: detaljer som inte är färgvariabler */
[data-mode="dark"] input,[data-mode="dark"] select,[data-mode="dark"] textarea{color-scheme:dark}
@media (prefers-color-scheme:dark){[data-mode="auto"] input,[data-mode="auto"] select,[data-mode="auto"] textarea{color-scheme:dark}}

[data-theme="tech"]{--font:ui-sans-serif,-apple-system,"Segoe UI",Roboto,sans-serif;--head:ui-monospace,"JetBrains Mono","SF Mono","Cascadia Code",Menlo,Consolas,monospace;--radius:6px}
[data-theme="tech"] h1,[data-theme="tech"] h2,[data-theme="tech"] .brand,[data-theme="tech"] .btn,[data-theme="tech"] .side h3,
[data-theme="tech"] .badge,[data-theme="tech"] .count,[data-theme="tech"] .msg .time,[data-theme="tech"] label{font-family:var(--head)}
[data-theme="tech"] .btn,[data-theme="tech"] .card,[data-theme="tech"] .list,[data-theme="tech"] .reader,[data-theme="tech"] .compose,
[data-theme="tech"] input,[data-theme="tech"] select,[data-theme="tech"] textarea,[data-theme="tech"] .nav a,[data-theme="tech"] table.t{border-radius:6px}
[data-theme="tech"] .side h3::before{content:"// "}
[data-theme="tech"] .brand .logo::before{content:">_";font-size:12px}
[data-theme="tech"] .brand .logo{font-size:0;border-radius:6px}
[data-theme="tech"] .list-head h1::before{content:"~/";color:var(--accent)}
[data-theme="tech"] .avatar{border-radius:6px;font-family:var(--head)}

[data-theme="gaming"]{--head:"Chakra Petch","Rajdhani","Segoe UI",Roboto,sans-serif;--radius:14px}
[data-theme="gaming"] h1,[data-theme="gaming"] h2,[data-theme="gaming"] .brand,[data-theme="gaming"] .side h3,[data-theme="gaming"] .btn.primary{font-family:var(--head);text-transform:uppercase;letter-spacing:.06em}
[data-theme="gaming"] .btn,[data-theme="gaming"] input,[data-theme="gaming"] select,[data-theme="gaming"] textarea,[data-theme="gaming"] .nav a{border-radius:10px}
[data-theme="gaming"] .card,[data-theme="gaming"] .list,[data-theme="gaming"] .reader,[data-theme="gaming"] .compose{border-radius:16px}
[data-theme="gaming"] .btn.primary{box-shadow:0 0 22px color-mix(in srgb,var(--accent) 35%,transparent)}
[data-theme="gaming"] .brand .logo{clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);border-radius:0}
[data-theme="gaming"] .msg{margin:6px 8px;border:1px solid var(--line2);border-radius:12px}
[data-theme="gaming"] .msg.on{border-color:var(--accent);box-shadow:0 0 16px color-mix(in srgb,var(--accent) 22%,transparent)}
[data-theme="gaming"] .avatar{border-radius:10px}
[data-theme="gaming"] .count{background:var(--accent);color:var(--on-accent)}
