/* The five site styles for the account area and the legal pages (they use css/account.css).
   Loaded AFTER account.css. js/theme-init.js sets <html data-theme>; without JavaScript the pages
   keep the light/dark defaults of account.css. Only tokens and a few surface rules: no layout. */
:root[data-theme] { --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.brand { text-transform: lowercase; letter-spacing: -0.02em; }
.account-nav .auth-links { display: contents; }
/* Chart series (statistics.html, 2026-11-18): the light or dark steps of the same palette, chosen by the style's color-scheme
   (an OS dark preference must not leak dark steps into a light style). */
:root[data-theme="daylight"], :root[data-theme="pop"], :root[data-theme="holo"] {
  --chart-1: #2a78d6; --chart-2: #eb6834; --chart-3: #1baf7a; --chart-4: #eda100;
  --chart-5: #e87ba4; --chart-6: #008300; --chart-7: #6250d6; --chart-8: #e34948;
}
:root[data-theme="studio"], :root[data-theme="matrix"] {
  --chart-1: #3987e5; --chart-2: #d95926; --chart-3: #199e70; --chart-4: #c98500;
  --chart-5: #d55181; --chart-6: #0ca30c; --chart-7: #9085e9; --chart-8: #e66767;
}

:root[data-theme="studio"] {
  --bg: #07080f; --surface: #12142a; --surface-2: #1b1e3a; --text: #eef0fa; --muted: #a9aec8; --line: #2a2d4d;
  --accent: #5ee7df; --accent-text: #04141a; --accent-hover: #8ff0ea; --link: #8fb8ff; --highlight: #5ee7df;
  --ok: #62e0a5; --ok-bg: #0f2a21; --warn: #ffd37a; --warn-bg: #33270b; --danger: #ff8a80; --danger-bg: #3a1513;
  --focus: #5ee7df; --radius: 14px; color-scheme: dark;
}
[data-theme="studio"] h1, [data-theme="studio"] .brand { font-family: "Space Grotesk", "DM Sans", sans-serif; font-weight: 500; letter-spacing: -0.03em; }

:root[data-theme="daylight"] {
  --bg: #f7f1e8; --surface: #fffaf3; --surface-2: #efe5d6; --text: #2a211b; --muted: #65574c; --line: #d3c4b0;
  --accent: #c2441f; --accent-text: #fffaf3; --accent-hover: #a53718; --link: #a53718; --highlight: #2f6f62;
  --ok: #1f6b4a; --ok-bg: #e2f1e6; --warn: #7a5200; --warn-bg: #fbeccb; --danger: #a82a1c; --danger-bg: #fbe4df;
  --focus: #c2441f; --radius: 6px; color-scheme: light;
}
[data-theme="daylight"] h1, [data-theme="daylight"] .brand { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; letter-spacing: -0.01em; }
[data-theme="daylight"] h1 { font-size: clamp(2.2rem, 5vw + 0.5rem, 3.2rem); line-height: 1.05; }
[data-theme="daylight"] .brand { font-size: 1.7rem; }
[data-theme="daylight"] h2 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 1.6rem; }
[data-theme="daylight"] .btn, [data-theme="daylight"] input { border-radius: 6px; }

:root[data-theme="matrix"] {
  --bg: #000300; --surface: #001005; --surface-2: #00200a; --text: #b6ffc8; --muted: #6fdb8a; --line: #0b5a24;
  --accent: #00ff5a; --accent-text: #000300; --accent-hover: #7dffa8; --link: #7dffa8; --highlight: #00ff5a;
  --ok: #00ff5a; --ok-bg: #00200a; --warn: #e6ffe9; --warn-bg: #0a2a12; --danger: #ff8475; --danger-bg: #2c0d09;
  --focus: #e6ffe9; --radius: 0px; color-scheme: dark;
  --font: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, Menlo, monospace;
}
[data-theme="matrix"] body { font-size: 0.94rem; }
[data-theme="matrix"] h1, [data-theme="matrix"] h2 { text-transform: uppercase; letter-spacing: -0.02em; color: #e6ffe9; text-shadow: 0 0 10px rgba(0, 255, 90, 0.5); }
[data-theme="matrix"] .brand { text-transform: uppercase; letter-spacing: 0.04em; }
[data-theme="matrix"] .brand::after { content: "_"; display: inline; width: auto; height: auto; margin: 0; border-radius: 0; background: none; color: #00ff5a; }
[data-theme="matrix"] .card { box-shadow: 0 0 24px rgba(0, 255, 90, 0.12); }
[data-theme="matrix"] .btn, [data-theme="matrix"] input, [data-theme="matrix"] .chip, [data-theme="matrix"] .notice, [data-theme="matrix"] .banner,
[data-theme="matrix"] .badge, [data-theme="matrix"] .secret, [data-theme="matrix"] .draft-banner, [data-theme="matrix"] mark.todo, [data-theme="matrix"] .card,
[data-theme="matrix"] .table-wrap, [data-theme="matrix"] .account-nav a, [data-theme="matrix"] .account-nav button { border-radius: 0; }

:root[data-theme="pop"] {
  --bg: #fff6d8; --surface: #ffffff; --surface-2: #ffe9a8; --text: #15131a; --muted: #46424f; --line: #15131a;
  --accent: #ff5c8a; --accent-text: #15131a; --accent-hover: #ff7da2; --link: #5a3be0; --highlight: #7b5cff;
  --ok: #0d6b4d; --ok-bg: #d6f5ea; --warn: #7a4b00; --warn-bg: #ffe9a8; --danger: #b3261e; --danger-bg: #ffe1dd;
  --focus: #7b5cff; --radius: 16px; color-scheme: light;
}
[data-theme="pop"] h1, [data-theme="pop"] .brand { font-family: "Space Grotesk", "DM Sans", sans-serif; font-weight: 500; letter-spacing: -0.04em; }
[data-theme="pop"] .site-head { border-bottom: 3px solid #15131a; }
[data-theme="pop"] .site-foot { border-top: 3px solid #15131a; }
[data-theme="pop"] .card { border-width: 2.5px; box-shadow: 5px 5px 0 #15131a; }
[data-theme="pop"] .btn { border-color: #15131a; box-shadow: 3px 3px 0 #15131a; }
[data-theme="pop"] .btn:hover { border-color: #15131a; }
[data-theme="pop"] .btn-secondary { background: #fff; }
[data-theme="pop"] .btn-danger { color: #fff; }
[data-theme="pop"] input[type="text"], [data-theme="pop"] input[type="email"], [data-theme="pop"] input[type="password"], [data-theme="pop"] input[type="number"], [data-theme="pop"] input[type="url"], [data-theme="pop"] input[type="search"], [data-theme="pop"] select, [data-theme="pop"] textarea { border-width: 2px; background: #fff; }
[data-theme="pop"] .table-wrap { border-width: 2px; }

:root[data-theme="holo"] {
  --bg: #f3f1fb; --surface: rgba(255, 255, 255, 0.74); --surface-2: #e7e3f7; --text: #1b1a33; --muted: #555373; --line: #d6d1ee;
  --accent: #5b3df5; --accent-text: #ffffff; --accent-hover: #4a2fe0; --link: #4a2fe0; --highlight: #e04fb5;
  --ok: #0d6b4d; --ok-bg: #dff5ea; --warn: #7a4b00; --warn-bg: #fff0cc; --danger: #b3261e; --danger-bg: #fde3e0;
  --focus: #5b3df5; --radius: 22px; color-scheme: light;
}
[data-theme="holo"] body { background: radial-gradient(60vw 50vw at 8% -6%, rgba(111, 233, 245, 0.4), transparent 62%), radial-gradient(52vw 46vw at 96% 4%, rgba(255, 143, 220, 0.32), transparent 60%), #f3f1fb; background-attachment: fixed; }
[data-theme="holo"] h1, [data-theme="holo"] .brand { font-weight: 700; letter-spacing: -0.04em; }
[data-theme="holo"] .card { border-color: rgba(255, 255, 255, 0.9); box-shadow: 0 10px 34px rgba(91, 61, 245, 0.09); }
[data-theme="holo"] .btn { border-radius: 999px; }
[data-theme="holo"] input[type="text"], [data-theme="holo"] input[type="email"], [data-theme="holo"] input[type="password"], [data-theme="holo"] input[type="number"], [data-theme="holo"] input[type="url"], [data-theme="holo"] input[type="search"], [data-theme="holo"] select, [data-theme="holo"] textarea { background: #fff; border-radius: 14px; }
[data-theme="matrix"] select, [data-theme="matrix"] textarea, [data-theme="matrix"] .choice, [data-theme="matrix"] .tile, [data-theme="matrix"] details.cmd-cat,
[data-theme="matrix"] pre.code, [data-theme="matrix"] .save-bar, [data-theme="matrix"] input.switch { border-radius: 0; }
