/* Bomera Sales design tokens: the only colours, text sizes, spacing, corners, shadows and timings the site and the app
   may use. Every stylesheet reads these with var(--...). To change the look, change a value here, once.
   tests/design-test.mjs fails when a stylesheet types a raw text size or corner instead of a token.
   Text sizes are in rem so they follow the visitor's browser setting: 0.75rem is 12px at the default 16px. */
:root {
  /* Text sizes: nine steps, nothing in between. */
  --text-xs: 0.75rem;    /* 12px: fine print, badges */
  --text-sm: 0.8125rem;  /* 13px: table cells, labels */
  --text-base: 0.875rem; /* 14px: app body, buttons */
  --text-md: 1rem;       /* 16px: site body */
  --text-lg: 1.125rem;   /* 18px: lead text, card titles */
  --text-xl: 1.25rem;    /* 20px: small headings */
  --text-2xl: 1.5rem;    /* 24px: section headings in the app */
  --text-3xl: 2rem;      /* 32px: page headings */
  --text-4xl: 3rem;      /* 48px: hero */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;

  /* Spacing: a 4px grid. */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px;
  --space-8: 32px; --space-12: 48px; --space-16: 64px; --space-24: 96px;

  /* Corners: four. */
  --radius-sm: 6px;   /* inputs, small buttons, chips with corners */
  --radius: 10px;     /* buttons, cards */
  --radius-lg: 14px;  /* large panels, dialogs, product frames */
  --radius-full: 999px; /* pills, avatars */

  /* Type families. */
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --font-arabic: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;

  /* Colours, light. Brand indigo on cool neutrals with a slight indigo bias (8 Nov 2026: no green in the brand). */
  --brand: #4f46e5;        /* main buttons, links: 6.3:1 with white text */
  --brand-2: #a9a4ff;      /* only on dark backgrounds, with dark text #15123a */
  --brand-soft: #eeedfd;
  --night: #14112e;        /* hero band, video, ads */
  --night-2: #1d1945;
  --bg: #f7f7fb;
  --surface: #ffffff;
  --surface-2: #efeff7;
  --ink: #17162a;
  --muted: #5f5e73;        /* 6.3:1 on white */
  --line: #e4e3ef;
  --accent: var(--brand);
  --accent-ink: #ffffff;
  --accent-soft: var(--brand-soft);
  --green: #4f46e5;
  --green-soft: #eeedfd;
  --guess: #86661a;
  --guess-soft: #faf1d8;
  --danger: #b3261e;

  /* Shadows: three. */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .06);
  --shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 6px 18px rgba(0, 0, 0, .06);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, .16);
  --ring: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);

  /* Motion: two speeds. */
  --speed-fast: 150ms;  /* hover, press */
  --speed: 250ms;       /* panels, dialogs */
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0d18; --surface: #161523; --surface-2: #1e1c2e; --ink: #ecebf5; --muted: #a3a1b8;
    --line: #2c2a40; --accent: #a9a4ff; --accent-ink: #15123a; --accent-soft: #221f45; --brand-soft: #221f45; --green: #a9a4ff; --green-soft: #221f45;
    --guess: #e2c46c; --guess-soft: #2c2614; --danger: #ff8a80; color-scheme: dark;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3); --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px rgba(0, 0, 0, .25); --shadow-lg: 0 18px 48px rgba(0, 0, 0, .5);
  }
}
:root[data-theme="dark"] {
  --bg: #0e0d18; --surface: #161523; --surface-2: #1e1c2e; --ink: #ecebf5; --muted: #a3a1b8;
  --line: #2c2a40; --accent: #a9a4ff; --accent-ink: #15123a; --accent-soft: #221f45; --brand-soft: #221f45; --green: #a9a4ff; --green-soft: #221f45;
  --guess: #e2c46c; --guess-soft: #2c2614; --danger: #ff8a80; color-scheme: dark;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3); --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px rgba(0, 0, 0, .25); --shadow-lg: 0 18px 48px rgba(0, 0, 0, .5);
}

/* ---------- Colour themes the person picks in Account settings > Appearance (public/theme.js) ----------
   data-accent on <html> swaps the brand colour, the soft tint behind selected things, the background tint and the
   app's header band. Each theme has a light and a dark set; the dark set is written twice like the default above (the
   system's dark mode, or Dark picked by hand). No data-accent = Bomera indigo, the default (its id is still "green", from when it was green).
   Every pair keeps at least 4.5:1 contrast (text on buttons, links on the page and on tints); tests/theme-test.mjs
   checks it, so a new theme has to pass too. */
:root[data-accent="ocean"] {
  --brand: #1f5fae; --accent: #1f5fae; --accent-ink: #ffffff; --brand-soft: #e3edf9; --accent-soft: #e3edf9;
  --bg: #f4f7fa; --surface: #ffffff; --surface-2: #ebf0f6; --line: #dbe3ec;
  --hero: linear-gradient(135deg, #07101c 0%, #0d1d33 60%, #1f5fae 100%);
}
:root[data-accent="royal"] {
  --brand: #5b3fb0; --accent: #5b3fb0; --accent-ink: #ffffff; --brand-soft: #ece7f8; --accent-soft: #ece7f8;
  --bg: #f6f5fa; --surface: #ffffff; --surface-2: #eeecf5; --line: #e0dcec;
  --hero: linear-gradient(135deg, #0e0a1c 0%, #1d1538 60%, #5b3fb0 100%);
}
:root[data-accent="desert"] {
  --brand: #8a5a14; --accent: #8a5a14; --accent-ink: #ffffff; --brand-soft: #f5ead6; --accent-soft: #f5ead6;
  --bg: #f8f5ef; --surface: #ffffff; --surface-2: #f0ebe1; --line: #e5ddcf;
  --hero: linear-gradient(135deg, #140e05 0%, #2a1d0b 60%, #8a5a14 100%);
}
:root[data-accent="rose"] {
  --brand: #b0305a; --accent: #b0305a; --accent-ink: #ffffff; --brand-soft: #f9e4eb; --accent-soft: #f9e4eb;
  --bg: #faf5f6; --surface: #ffffff; --surface-2: #f4ecee; --line: #e8dcdf;
  --hero: linear-gradient(135deg, #16070c 0%, #2c0f19 60%, #b0305a 100%);
}
:root[data-accent="graphite"] {
  --brand: #33414e; --accent: #33414e; --accent-ink: #ffffff; --brand-soft: #e6eaee; --accent-soft: #e6eaee;
  --bg: #f5f6f7; --surface: #ffffff; --surface-2: #eceef0; --line: #dde1e5;
  --hero: linear-gradient(135deg, #0b0d10 0%, #1a1f25 60%, #46525e 100%);
}
@media (prefers-color-scheme: dark) {
  :root[data-accent="ocean"]:not([data-theme="light"]) { --brand: #6aa9f2; --accent: #6aa9f2; --accent-ink: #04111f; --brand-soft: #13233a; --accent-soft: #13233a; --bg: #0a0f16; --surface: #121a24; --surface-2: #19232f; --line: #26313f; --hero: linear-gradient(135deg, #07101c 0%, #0d1d33 60%, #2f6fc0 100%); }
  :root[data-accent="royal"]:not([data-theme="light"]) { --brand: #ab96f5; --accent: #ab96f5; --accent-ink: #140b2b; --brand-soft: #221a3a; --accent-soft: #221a3a; --bg: #0e0c14; --surface: #17141f; --surface-2: #1f1b2a; --line: #2d2839; --hero: linear-gradient(135deg, #0e0a1c 0%, #1d1538 60%, #6b4fc4 100%); }
  :root[data-accent="desert"]:not([data-theme="light"]) { --brand: #e2b268; --accent: #e2b268; --accent-ink: #1f1404; --brand-soft: #2d2312; --accent-soft: #2d2312; --bg: #12100b; --surface: #1b1812; --surface-2: #241f17; --line: #342d22; --hero: linear-gradient(135deg, #140e05 0%, #2a1d0b 60%, #a06c1c 100%); }
  :root[data-accent="rose"]:not([data-theme="light"]) { --brand: #f28daa; --accent: #f28daa; --accent-ink: #2a0712; --brand-soft: #33161f; --accent-soft: #33161f; --bg: #130d0f; --surface: #1d1518; --surface-2: #261c20; --line: #372a2f; --hero: linear-gradient(135deg, #16070c 0%, #2c0f19 60%, #c0406a 100%); }
  :root[data-accent="graphite"]:not([data-theme="light"]) { --brand: #b9c6d3; --accent: #b9c6d3; --accent-ink: #0c1117; --brand-soft: #1e252d; --accent-soft: #1e252d; --bg: #0d0f11; --surface: #16191c; --surface-2: #1e2226; --line: #2c3136; --hero: linear-gradient(135deg, #0b0d10 0%, #1a1f25 60%, #46525e 100%); }
}
:root[data-accent="ocean"][data-theme="dark"] { --brand: #6aa9f2; --accent: #6aa9f2; --accent-ink: #04111f; --brand-soft: #13233a; --accent-soft: #13233a; --bg: #0a0f16; --surface: #121a24; --surface-2: #19232f; --line: #26313f; --hero: linear-gradient(135deg, #07101c 0%, #0d1d33 60%, #2f6fc0 100%); }
:root[data-accent="royal"][data-theme="dark"] { --brand: #ab96f5; --accent: #ab96f5; --accent-ink: #140b2b; --brand-soft: #221a3a; --accent-soft: #221a3a; --bg: #0e0c14; --surface: #17141f; --surface-2: #1f1b2a; --line: #2d2839; --hero: linear-gradient(135deg, #0e0a1c 0%, #1d1538 60%, #6b4fc4 100%); }
:root[data-accent="desert"][data-theme="dark"] { --brand: #e2b268; --accent: #e2b268; --accent-ink: #1f1404; --brand-soft: #2d2312; --accent-soft: #2d2312; --bg: #12100b; --surface: #1b1812; --surface-2: #241f17; --line: #342d22; --hero: linear-gradient(135deg, #140e05 0%, #2a1d0b 60%, #a06c1c 100%); }
:root[data-accent="rose"][data-theme="dark"] { --brand: #f28daa; --accent: #f28daa; --accent-ink: #2a0712; --brand-soft: #33161f; --accent-soft: #33161f; --bg: #130d0f; --surface: #1d1518; --surface-2: #261c20; --line: #372a2f; --hero: linear-gradient(135deg, #16070c 0%, #2c0f19 60%, #c0406a 100%); }
:root[data-accent="graphite"][data-theme="dark"] { --brand: #b9c6d3; --accent: #b9c6d3; --accent-ink: #0c1117; --brand-soft: #1e252d; --accent-soft: #1e252d; --bg: #0d0f11; --surface: #16191c; --surface-2: #1e2226; --line: #2c3136; --hero: linear-gradient(135deg, #0b0d10 0%, #1a1f25 60%, #46525e 100%); }

/* More colour themes (added 4 Nov 2026): Lagoon, Indigo, Sunset, Olive, Burgundy, and High contrast (black and white
   with strong lines, for bright rooms and tired eyes; it also changes the text colours). */
:root[data-accent="lagoon"] {
  --brand: #0b6b77; --accent: #0b6b77; --accent-ink: #ffffff; --brand-soft: #dff1f3; --accent-soft: #dff1f3;
  --bg: #f3f8f8; --surface: #ffffff; --surface-2: #e8f1f2; --line: #d6e4e6;
  --hero: linear-gradient(135deg, #04110f 0%, #0a2427 60%, #0b6b77 100%);
}
:root[data-accent="indigo"] {
  --brand: #3d4db7; --accent: #3d4db7; --accent-ink: #ffffff; --brand-soft: #e6e8f8; --accent-soft: #e6e8f8;
  --bg: #f5f6fb; --surface: #ffffff; --surface-2: #ecedf6; --line: #dcdff0;
  --hero: linear-gradient(135deg, #080a1c 0%, #121638 60%, #3d4db7 100%);
}
:root[data-accent="sunset"] {
  --brand: #b3431b; --accent: #b3431b; --accent-ink: #ffffff; --brand-soft: #fbe7dd; --accent-soft: #fbe7dd;
  --bg: #faf6f3; --surface: #ffffff; --surface-2: #f4ece7; --line: #e9dcd4;
  --hero: linear-gradient(135deg, #170905 0%, #2e130a 60%, #b3431b 100%);
}
:root[data-accent="olive"] {
  --brand: #596a1d; --accent: #596a1d; --accent-ink: #ffffff; --brand-soft: #eef1dc; --accent-soft: #eef1dc;
  --bg: #f7f8f2; --surface: #ffffff; --surface-2: #eef0e5; --line: #e0e3d3;
  --hero: linear-gradient(135deg, #0d0f05 0%, #1d220c 60%, #596a1d 100%);
}
:root[data-accent="burgundy"] {
  --brand: #8b1d3d; --accent: #8b1d3d; --accent-ink: #ffffff; --brand-soft: #f6e2e8; --accent-soft: #f6e2e8;
  --bg: #faf5f6; --surface: #ffffff; --surface-2: #f2eaec; --line: #e6d8dc;
  --hero: linear-gradient(135deg, #14050a 0%, #2a0b16 60%, #8b1d3d 100%);
}
:root[data-accent="contrast"] {
  --brand: #0033a0; --accent: #0033a0; --accent-ink: #ffffff; --brand-soft: #e0e8ff; --accent-soft: #e0e8ff;
  --bg: #ffffff; --surface: #ffffff; --surface-2: #f0f0f0; --line: #6b6b6b; --ink: #000000; --muted: #333333;
  --hero: linear-gradient(135deg, #000000 0%, #000000 60%, #0033a0 100%);
}
@media (prefers-color-scheme: dark) {
  :root[data-accent="lagoon"]:not([data-theme="light"]) { --brand: #4fc3d1; --accent: #4fc3d1; --accent-ink: #03181b; --brand-soft: #10282c; --accent-soft: #10282c; --bg: #091112; --surface: #111b1d; --surface-2: #18252a; --line: #243337; --hero: linear-gradient(135deg, #04110f 0%, #0a2427 60%, #13808d 100%); }
  :root[data-accent="indigo"]:not([data-theme="light"]) { --brand: #909cf5; --accent: #909cf5; --accent-ink: #0b0f2e; --brand-soft: #1a1e3c; --accent-soft: #1a1e3c; --bg: #0c0d16; --surface: #14161f; --surface-2: #1c1e2a; --line: #2a2d3c; --hero: linear-gradient(135deg, #080a1c 0%, #121638 60%, #4d5dc8 100%); }
  :root[data-accent="sunset"]:not([data-theme="light"]) { --brand: #f59a6e; --accent: #f59a6e; --accent-ink: #2a0f04; --brand-soft: #331b11; --accent-soft: #331b11; --bg: #130e0b; --surface: #1d1612; --surface-2: #261e19; --line: #372c25; --hero: linear-gradient(135deg, #170905 0%, #2e130a 60%, #c4532a 100%); }
  :root[data-accent="olive"]:not([data-theme="light"]) { --brand: #b8cc6a; --accent: #b8cc6a; --accent-ink: #151a03; --brand-soft: #232913; --accent-soft: #232913; --bg: #0e100a; --surface: #171a12; --surface-2: #1f2318; --line: #2d3224; --hero: linear-gradient(135deg, #0d0f05 0%, #1d220c 60%, #6b7d2a 100%); }
  :root[data-accent="burgundy"]:not([data-theme="light"]) { --brand: #ee8aa6; --accent: #ee8aa6; --accent-ink: #2a0712; --brand-soft: #341621; --accent-soft: #341621; --bg: #120c0e; --surface: #1b1417; --surface-2: #241b1f; --line: #352a2f; --hero: linear-gradient(135deg, #14050a 0%, #2a0b16 60%, #a42b4d 100%); }
  :root[data-accent="contrast"]:not([data-theme="light"]) { --brand: #ffd400; --accent: #ffd400; --accent-ink: #000000; --brand-soft: #2b2600; --accent-soft: #2b2600; --bg: #000000; --surface: #0a0a0a; --surface-2: #1a1a1a; --line: #8a8a8a; --ink: #ffffff; --muted: #d4d4d4; --hero: linear-gradient(135deg, #000000 0%, #000000 60%, #3a3000 100%); }
}
:root[data-accent="lagoon"][data-theme="dark"] { --brand: #4fc3d1; --accent: #4fc3d1; --accent-ink: #03181b; --brand-soft: #10282c; --accent-soft: #10282c; --bg: #091112; --surface: #111b1d; --surface-2: #18252a; --line: #243337; --hero: linear-gradient(135deg, #04110f 0%, #0a2427 60%, #13808d 100%); }
:root[data-accent="indigo"][data-theme="dark"] { --brand: #909cf5; --accent: #909cf5; --accent-ink: #0b0f2e; --brand-soft: #1a1e3c; --accent-soft: #1a1e3c; --bg: #0c0d16; --surface: #14161f; --surface-2: #1c1e2a; --line: #2a2d3c; --hero: linear-gradient(135deg, #080a1c 0%, #121638 60%, #4d5dc8 100%); }
:root[data-accent="sunset"][data-theme="dark"] { --brand: #f59a6e; --accent: #f59a6e; --accent-ink: #2a0f04; --brand-soft: #331b11; --accent-soft: #331b11; --bg: #130e0b; --surface: #1d1612; --surface-2: #261e19; --line: #372c25; --hero: linear-gradient(135deg, #170905 0%, #2e130a 60%, #c4532a 100%); }
:root[data-accent="olive"][data-theme="dark"] { --brand: #b8cc6a; --accent: #b8cc6a; --accent-ink: #151a03; --brand-soft: #232913; --accent-soft: #232913; --bg: #0e100a; --surface: #171a12; --surface-2: #1f2318; --line: #2d3224; --hero: linear-gradient(135deg, #0d0f05 0%, #1d220c 60%, #6b7d2a 100%); }
:root[data-accent="burgundy"][data-theme="dark"] { --brand: #ee8aa6; --accent: #ee8aa6; --accent-ink: #2a0712; --brand-soft: #341621; --accent-soft: #341621; --bg: #120c0e; --surface: #1b1417; --surface-2: #241b1f; --line: #352a2f; --hero: linear-gradient(135deg, #14050a 0%, #2a0b16 60%, #a42b4d 100%); }
:root[data-accent="contrast"][data-theme="dark"] { --brand: #ffd400; --accent: #ffd400; --accent-ink: #000000; --brand-soft: #2b2600; --accent-soft: #2b2600; --bg: #000000; --surface: #0a0a0a; --surface-2: #1a1a1a; --line: #8a8a8a; --ink: #ffffff; --muted: #d4d4d4; --hero: linear-gradient(135deg, #000000 0%, #000000 60%, #3a3000 100%); }

/* UI styles, picked next to the colour theme (data-style on <html>; none = Classic). Corners and shadows are here;
   how tight or roomy things are (Compact, Spacious) is set with the --pad-* values in pages/app.html. */
:root[data-style="soft"] {
  --radius-sm: 10px; --radius: 16px; --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .05), 0 2px 8px rgba(0, 0, 0, .04);
  --shadow: 0 2px 6px rgba(0, 0, 0, .05), 0 10px 28px rgba(0, 0, 0, .08);
}
:root[data-style="sharp"] {
  --radius-sm: 2px; --radius: 3px; --radius-lg: 4px;
  --shadow-sm: none; --shadow: 0 1px 0 rgba(0, 0, 0, .08);
}
:root[data-style="minimal"] {
  --shadow-sm: none; --shadow: none; --shadow-lg: 0 0 0 1px var(--line), 0 12px 32px rgba(0, 0, 0, .14);
}
:root[data-style="compact"] { --radius: 8px; --radius-lg: 10px; }
:root[data-style="spacious"] { --radius: 12px; --radius-lg: 18px; }

/* Blossom (soft pink), Lavender and Navy (added 4 Nov 2026 for the ready-made Looks). */
:root[data-accent="blossom"] {
  --brand: #b42f66; --accent: #b42f66; --accent-ink: #ffffff; --brand-soft: #fde4ef; --accent-soft: #fde4ef;
  --bg: #fff6fa; --surface: #ffffff; --surface-2: #fbeef4; --line: #f0dbe5;
  --hero: linear-gradient(135deg, #1a0710 0%, #33101f 60%, #b42f66 100%);
}
:root[data-accent="lavender"] {
  --brand: #7048c0; --accent: #7048c0; --accent-ink: #ffffff; --brand-soft: #efe8fc; --accent-soft: #efe8fc;
  --bg: #faf7ff; --surface: #ffffff; --surface-2: #f2edfb; --line: #e4dcf3;
  --hero: linear-gradient(135deg, #100a1f 0%, #21163d 60%, #7048c0 100%);
}
:root[data-accent="navy"] {
  --brand: #1b3a6b; --accent: #1b3a6b; --accent-ink: #ffffff; --brand-soft: #e2e8f2; --accent-soft: #e2e8f2;
  --bg: #f4f6f9; --surface: #ffffff; --surface-2: #eaeef4; --line: #d8dfe9;
  --hero: linear-gradient(135deg, #050a14 0%, #0c1a33 60%, #1b3a6b 100%);
}
@media (prefers-color-scheme: dark) {
  :root[data-accent="blossom"]:not([data-theme="light"]) { --brand: #f59ac0; --accent: #f59ac0; --accent-ink: #2b0716; --brand-soft: #3a1626; --accent-soft: #3a1626; --bg: #140c10; --surface: #1e1419; --surface-2: #281b22; --line: #3a2a32; --hero: linear-gradient(135deg, #1a0710 0%, #33101f 60%, #c4417a 100%); }
  :root[data-accent="lavender"]:not([data-theme="light"]) { --brand: #c3a8ff; --accent: #c3a8ff; --accent-ink: #1a0d33; --brand-soft: #2a1f45; --accent-soft: #2a1f45; --bg: #0f0c16; --surface: #18141f; --surface-2: #201b2b; --line: #2f293d; --hero: linear-gradient(135deg, #100a1f 0%, #21163d 60%, #8160d4 100%); }
  :root[data-accent="navy"]:not([data-theme="light"]) { --brand: #8fb0e8; --accent: #8fb0e8; --accent-ink: #08142a; --brand-soft: #16233a; --accent-soft: #16233a; --bg: #090d14; --surface: #10161f; --surface-2: #172030; --line: #253041; --hero: linear-gradient(135deg, #050a14 0%, #0c1a33 60%, #2b528f 100%); }
}
:root[data-accent="blossom"][data-theme="dark"] { --brand: #f59ac0; --accent: #f59ac0; --accent-ink: #2b0716; --brand-soft: #3a1626; --accent-soft: #3a1626; --bg: #140c10; --surface: #1e1419; --surface-2: #281b22; --line: #3a2a32; --hero: linear-gradient(135deg, #1a0710 0%, #33101f 60%, #c4417a 100%); }
:root[data-accent="lavender"][data-theme="dark"] { --brand: #c3a8ff; --accent: #c3a8ff; --accent-ink: #1a0d33; --brand-soft: #2a1f45; --accent-soft: #2a1f45; --bg: #0f0c16; --surface: #18141f; --surface-2: #201b2b; --line: #2f293d; --hero: linear-gradient(135deg, #100a1f 0%, #21163d 60%, #8160d4 100%); }
:root[data-accent="navy"][data-theme="dark"] { --brand: #8fb0e8; --accent: #8fb0e8; --accent-ink: #08142a; --brand-soft: #16233a; --accent-soft: #16233a; --bg: #090d14; --surface: #10161f; --surface-2: #172030; --line: #253041; --hero: linear-gradient(135deg, #050a14 0%, #0c1a33 60%, #2b528f 100%); }

/* Personality styles: Playful (very round, a rounded display font), Bold (strong lines, heavy headings), Elegant (serif
   headings, light lines, more air) and Tech (monospace headings and numbers, square corners, tight). The parts that
   aren't tokens (pill buttons, heading weights) are in pages/app.html. */
:root[data-style="playful"] {
  --radius-sm: 12px; --radius: 18px; --radius-lg: 26px;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --shadow-sm: 0 2px 0 color-mix(in srgb, var(--accent) 18%, transparent);
  --shadow: 0 3px 0 color-mix(in srgb, var(--accent) 20%, transparent), 0 10px 24px rgba(0, 0, 0, .06);
}
:root[data-style="bold"] {
  --radius-sm: 4px; --radius: 6px; --radius-lg: 8px;
  --shadow-sm: 0 1px 0 color-mix(in srgb, var(--ink) 20%, transparent); --shadow: 0 2px 0 color-mix(in srgb, var(--ink) 22%, transparent);
}
:root[data-style="elegant"] {
  --radius-sm: 4px; --radius: 6px; --radius-lg: 8px;
  --font-display: Georgia, "Times New Roman", "Noto Serif", serif;
  --shadow-sm: none; --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 30px rgba(0, 0, 0, .05);
}
:root[data-style="tech"] {
  --radius-sm: 2px; --radius: 2px; --radius-lg: 3px;
  --font-display: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --shadow-sm: none; --shadow: none;
}

/* Bold's strong lines and Elegant's faint ones, mixed from each theme's own text and card colours so they work in every
   theme, light or dark. [data-style] twice lifts them over the themes' dark sets. */
:root[data-style="bold"][data-style] { --line: color-mix(in srgb, var(--ink) 30%, var(--surface)); }
:root[data-style="elegant"][data-style] { --line: color-mix(in srgb, var(--ink) 10%, var(--surface)); }

/* Larger text: every text size is in rem, so one root size scales them all (12px becomes 13.5px, 14px 15.75px). */
:root[data-text="large"] { font-size: 112.5%; }
