/* The site's looks (the first seven). Each one sets the shared tokens on html[data-theme="<slug>"]
   (and on its swatch in the admin picker and the local Theme Lab), then reshapes a few components.
   Same layout on every theme: only color, type, borders, corners and shadows change.
   The original look's tokens live on :root in App.css and site.css; its swatch needs them spelled out. */
.tl-sw[data-theme="original"] { --bg: #FBF7F0; --brand: #1A5F4A; --dot-2: #E8A03C; }

/* ============ 1. Gazette: a Sunday paper. Oxblood ink, double rules, serif everything. ============ */
html[data-theme="gazette"], .tl-sw[data-theme="gazette"] {
  --bg: #F2F0EA; --bg-glow: #E7E3D8; --surface: #FCFBF8;
  --ink: #14130F; --ink-2: #3F3D36; --ink-3: #5E5B52;
  --line: #D3CFC3; --line-strong: #4A473E;
  --brand: #8C1D2B; --brand-hover: #6F1522; --brand-ink: #FFFFFF;
  --brand-soft: #F4E4E2; --brand-edge: #DDB9B6; --visited: #6A3F6B;
  --skel: #E4E0D5; --skel-hi: #EEEBE3; --focus: #0B4F9C;
  --dot-1: #8C1D2B; --dot-2: #14130F; --dot-3: #B8893A; --dot-4: #8E9AA6;
  --agree: #2D5E3E; --agree-bg: #E6EEE6; --vote-off: #D3CFC3; --find-rule: rgba(140, 29, 43, .18);
  --t0: #E9DEDB; --t0-end: #D9C4C0; --t1: #EDE6D3; --t1-end: #DCCFAE;
  --t2: #DDE3E8; --t2-end: #C3CED8; --t3: #E4E4DA; --t3-end: #CFCFBE;
  --ring: rgba(140, 29, 43, .16);
  --shadow-box: 0 0 0 3px var(--bg), 0 0 0 4px var(--ink);
  --on-ink: #FCFBF8; --glow-2: #FAF9F5;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Serif 4', Georgia, serif;
}
html[data-theme="gazette"] body {
  background-color: var(--bg);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.07'/%3E%3C/svg%3E"),
    radial-gradient(1400px 800px at 50% 0%, var(--glow-2) 0%, transparent 70%);
  background-attachment: fixed;
}
html[data-theme="gazette"] .wordmark { font-weight: 900; letter-spacing: -0.025em; color: var(--ink); }
html[data-theme="gazette"] .wordmark:not(.wordmark-sm, .wordmark-small) {
  display: inline-block; padding: 6px 20px 4px; border-block: 3px double var(--ink); font-size: 44px;
}
html[data-theme="gazette"] .wordmark-lg { display: block; }
@media (min-width: 640px) { html[data-theme="gazette"] .wordmark:not(.wordmark-sm, .wordmark-small) { font-size: 52px; } }
html[data-theme="gazette"] :is(.wordmark-sm, .wordmark-small) { font-size: 24px; }
html[data-theme="gazette"] .askbox.idle { animation: none; }
html[data-theme="gazette"] :is(.askbox, .sbox) { border-radius: 2px; border: 1.5px solid var(--ink); }
html[data-theme="gazette"] :is(.askbox, .sbox):focus-within {
  border-color: var(--brand); box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--brand);
}
html[data-theme="gazette"] :is(.send, .sbox button) { border-radius: 2px; }
html[data-theme="gazette"] .sbox button:hover { background: var(--brand-hover); }
html[data-theme="gazette"] :is(.btn, .btn-primary, .g-more, .where-set, .where-go) {
  border-radius: 2px; font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
html[data-theme="gazette"] :is(.btn-2, .g-more) { background: var(--surface); border: 1.5px solid var(--ink); color: var(--ink); }
html[data-theme="gazette"] :is(.btn-2, .g-more):hover { background: var(--ink); color: var(--on-ink); }
html[data-theme="gazette"] :is(.badge, .chip-agree, .chip-mostly, .chip-disagree, .chip-sources, .chip-unknown, .chip-q, .pill, .agree, .ask-chip) {
  border-radius: 0; border: 1px solid var(--ink);
}
html[data-theme="gazette"] :is(.badge, .agree, .ask-chip) { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
html[data-theme="gazette"] .pill-on { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
html[data-theme="gazette"] .g-thumb { border-radius: 0; }
html[data-theme="gazette"] .g-thumb::after { box-shadow: inset 0 0 0 1px var(--ink); }
html[data-theme="gazette"] .g-thumb img { filter: grayscale(.2) contrast(1.03); }
html[data-theme="gazette"] .row-sf { border-radius: 0; border-top: 3px solid var(--brand); }
html[data-theme="gazette"] .topbar { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 3px double var(--ink); }
html[data-theme="gazette"] :is(.sec-label, .guides-label) {
  display: flex; align-items: center; gap: 12px;
  font: 700 12px/1 var(--font-display); letter-spacing: .16em; text-transform: uppercase; color: var(--ink);
}
html[data-theme="gazette"] :is(.sec-label, .guides-label)::after { content: ''; flex: 1; border-top: 1px solid var(--ink); }
html[data-theme="gazette"] .article .prose > p:first-of-type::first-letter {
  float: left; padding: 4px 8px 0 0; font: 900 3.1em/.85 var(--font-display); color: var(--brand);
}
html[data-theme="gazette"] :is(.g-title, .topic-name, .r-name) { font-weight: 700; letter-spacing: -0.015em; }
html[data-theme="gazette"] :is(.g-by, .byline) { font-style: italic; }
html[data-theme="gazette"] .topic { border-top-color: var(--ink); }

/* ============ 2. Swiss: airport signage. Cobalt on white, a quiet grid, ink hairlines. ============ */
html[data-theme="swiss"], .tl-sw[data-theme="swiss"] {
  --bg: #F4F6FA; --bg-glow: #E8EEFC; --surface: #FFFFFF;
  --ink: #0D1117; --ink-2: #38404D; --ink-3: #586072;
  --line: #DCE1EA; --line-strong: #6F7A8E;
  --brand: #1447D1; --brand-hover: #0E37A8; --brand-ink: #FFFFFF;
  --brand-soft: #E7EEFD; --brand-edge: #B7C8F5; --visited: #5A3FA0;
  --skel: #E3E8F1; --skel-hi: #F1F4FA; --focus: #D4500A;
  --dot-1: #1447D1; --dot-2: #0D1117; --dot-3: #E5382D; --dot-4: #9AA6BD;
  --agree: #17703F; --agree-bg: #E5F3EB; --vote-off: #DCE1EA; --find-rule: rgba(20, 71, 209, .16);
  --t0: #E7EEFD; --t0-end: #CCDAF8; --t1: #FDE9E6; --t1-end: #F8CFC9;
  --t2: #EEF0F4; --t2-end: #D9DEE7; --t3: #E8F1EE; --t3-end: #CFE2DB;
  --ring: rgba(20, 71, 209, .18);
  --shadow-box: 0 1px 2px rgba(13, 17, 23, .06), 0 10px 24px -14px rgba(13, 17, 23, .22);
  --font-display: 'Schibsted Grotesk', 'Helvetica Neue', sans-serif;
  --font-body: 'Public Sans', 'Helvetica Neue', sans-serif;
}
html[data-theme="swiss"] body {
  background-color: var(--bg);
  background-image: linear-gradient(to right, rgba(20, 71, 209, .05) 1px, transparent 1px);
  background-size: 96px 100%; background-position: center top; background-attachment: fixed;
}
html[data-theme="swiss"] body::before {
  content: ''; position: fixed; inset: 0 0 auto 0; height: 4px; background: var(--brand); z-index: 30;
}
html[data-theme="swiss"] .wordmark { font-weight: 800; letter-spacing: -0.04em; color: var(--ink); }
html[data-theme="swiss"] .wordmark::after {
  content: ''; display: inline-block; width: .17em; height: .17em; margin-left: .07em; background: var(--brand);
}
html[data-theme="swiss"] .askbox.idle { animation: none; }
html[data-theme="swiss"] :is(.askbox, .sbox) { border-radius: 6px; border: 1px solid var(--line-strong); }
html[data-theme="swiss"] :is(.askbox, .sbox):focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring); }
html[data-theme="swiss"] :is(.send, .sbox button) { border-radius: 4px; }
html[data-theme="swiss"] :is(.btn, .btn-primary, .g-more, .where-set, .where-go) { border-radius: 4px; font-weight: 600; }
html[data-theme="swiss"] :is(.btn-2, .g-more) { background: var(--surface); border: 1.5px solid var(--brand); color: var(--brand); }
html[data-theme="swiss"] :is(.badge, .chip-agree, .chip-mostly, .chip-disagree, .chip-sources, .chip-unknown, .chip-q, .pill, .agree, .ask-chip) {
  border-radius: 4px;
}
html[data-theme="swiss"] :is(.chip-q, .pill, .badge) { border: 1px solid var(--line-strong); }
html[data-theme="swiss"] .g-thumb { border-radius: 4px; }
html[data-theme="swiss"] :is(.gv-f, .gv-x) .g-thumb { border-radius: 6px; }
html[data-theme="swiss"] .row-sf { border-radius: 0 6px 6px 0; border-left: 4px solid var(--brand); }
html[data-theme="swiss"] .topbar { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 2px solid var(--ink); }
html[data-theme="swiss"] .topic { border-top-color: var(--ink); }
html[data-theme="swiss"] :is(.sec-label, .guides-label) {
  font: 700 12px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink);
}
html[data-theme="swiss"] .sec-label::before {
  content: ''; display: inline-block; width: 10px; height: 10px; margin-right: 10px; background: var(--brand);
}
html[data-theme="swiss"] :is(.g-title, .topic-name, .r-name) { font-weight: 700; letter-spacing: -0.02em; }
html[data-theme="swiss"] :is(.g-row:hover .g-title, .row-head a:hover) { text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ============ 3. Brutal: protest poster. Lemon page, black borders, hard shadows. ============ */
html[data-theme="brutal"], .tl-sw[data-theme="brutal"] {
  --bg: #FFE14D; --bg-glow: #FFEA85; --surface: #FFFFFF;
  --ink: #111111; --ink-2: #33311F; --ink-3: #4D4A2C;
  --line: #CFA900; --line-strong: #111111;
  --brand: #A8104A; --brand-hover: #7E0B38; --brand-ink: #FFFFFF;
  --brand-soft: #FFD6E5; --brand-edge: #E08AAE; --visited: #4B1F7A;
  --skel: #F2C92E; --skel-hi: #FFF08A; --focus: #0033CC;
  --dot-1: #A8104A; --dot-2: #111111; --dot-3: #2563EB; --dot-4: #FFFFFF;
  --agree: #0F6B3A; --agree-bg: #FFFFFF; --mixed: #6B4700; --vote-off: #E8C200; --find-rule: #111111;
  --t0: #FFD6E5; --t0-end: #FFADCB; --t1: #BFD6FF; --t1-end: #8FB4FF;
  --t2: #FFFFFF; --t2-end: #EDEDED; --t3: #C8F0D4; --t3-end: #8DDFA8;
  --ring: transparent;
  --shadow-box: 6px 6px 0 var(--lip);
  --lip: #111111; --on-ink: #FFE14D;
  --font-display: 'Archivo Black', 'Arial Black', sans-serif;
  --font-body: 'Atkinson Hyperlegible', sans-serif;
  font-synthesis: none;
}
html[data-theme="brutal"] body {
  background-color: var(--bg);
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 10%, transparent) 1.2px, transparent 1.5px);
  background-size: 22px 22px; background-attachment: fixed;
}
html[data-theme="brutal"] .wordmark {
  display: inline-block; padding: 2px 14px 5px;
  background: var(--surface); border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--lip);
  letter-spacing: -0.03em; color: var(--ink); transform: rotate(-1.5deg);
}
html[data-theme="brutal"] :is(.wordmark-sm, .wordmark-small) { padding: 0 8px 2px; border-width: 2px; box-shadow: 3px 3px 0 var(--lip); transform: none; }
html[data-theme="brutal"] .askbox.idle { animation: none; }
html[data-theme="brutal"] :is(.askbox, .sbox) { border-radius: 0; border: 3px solid var(--ink); }
html[data-theme="brutal"] :is(.askbox, .sbox):focus-within {
  border-color: var(--ink); box-shadow: 6px 6px 0 var(--brand); outline: 3px solid var(--focus); outline-offset: 3px;
}
html[data-theme="brutal"] :is(.send, .sbox button, .btn, .btn-primary, .g-more, .where-set, .where-go) {
  border-radius: 0; border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--lip);
  transition: transform .1s, box-shadow .1s;
}
html[data-theme="brutal"] :is(.btn, .btn-primary, .g-more, .where-set, .where-go) { box-shadow: 4px 4px 0 var(--lip); font-weight: 700; }
html[data-theme="brutal"] :is(.send:not(:disabled), .sbox button, .btn, .btn-primary, .g-more, .where-set, .where-go):hover {
  transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--lip);
}
html[data-theme="brutal"] :is(.send, .sbox button, .btn, .btn-primary, .g-more, .where-set, .where-go):active { transform: translate(3px, 3px); box-shadow: none; }
html[data-theme="brutal"] .send:disabled { box-shadow: none; border-color: var(--line); }
html[data-theme="brutal"] :is(.btn-2, .g-more, .where-set) { background: var(--surface); color: var(--ink); }
html[data-theme="brutal"] :is(.badge, .chip-agree, .chip-mostly, .chip-disagree, .chip-sources, .chip-unknown, .chip-q, .pill, .agree, .ask-chip) {
  border-radius: 0; border: 2px solid var(--ink); font-weight: 700;
}
html[data-theme="brutal"] :is(.chip-q, .pill, .agree, .badge) { background: var(--surface); }
html[data-theme="brutal"] .pill-on { background: var(--ink); color: var(--bg); }
html[data-theme="brutal"] .g-thumb { border-radius: 0; border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--lip); transition: transform .12s, box-shadow .12s; }
html[data-theme="brutal"] .g-thumb::after { display: none; }
html[data-theme="brutal"] .g-row:hover .g-thumb { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--lip); }
html[data-theme="brutal"] .g-av { border: 2px solid var(--ink); }
html[data-theme="brutal"] .row-sf { border-radius: 0; border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--lip); margin-bottom: 16px; }
html[data-theme="brutal"] .av { border-radius: 0; border: 2px solid var(--ink); }
html[data-theme="brutal"] :is(.sec-label, .guides-label) {
  display: inline-block; padding: 4px 10px; background: var(--ink); color: var(--bg);
  font: 400 13px/1.2 var(--font-display); letter-spacing: .05em; text-transform: uppercase; transform: rotate(-1deg);
}
html[data-theme="brutal"] .sec-label .sec-count { color: inherit; opacity: .8; }
html[data-theme="brutal"] .topbar { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 3px solid var(--ink); }
html[data-theme="brutal"] .topic { border-top: 2px solid var(--ink); padding-inline: 8px; }
html[data-theme="brutal"] .topic:hover { background: var(--surface); box-shadow: 4px 4px 0 var(--lip); }
html[data-theme="brutal"] .topic-name, html[data-theme="brutal"] .g-title, html[data-theme="brutal"] .r-name { font-weight: 400; letter-spacing: -0.01em; }
html[data-theme="brutal"] .explore-head { font-size: 18px; }
@media (min-width: 720px) { html[data-theme="brutal"] .explore-head { font-size: 19px; } }
html[data-theme="brutal"] .explore-dots i { border: 2.5px solid var(--ink); box-shadow: none; }
html[data-theme="brutal"] .foot, html[data-theme="brutal"] .turn + .turn { border-top: 3px solid var(--ink); }

/* ============ 4. Seaglass: a warm hug. Aqua page, peach glow, pills, teal-tinted shadows. ============ */
html[data-theme="soft"], .tl-sw[data-theme="soft"] {
  --bg: #F1F8F8; --bg-glow: #D3ECEC; --surface: #FFFFFF;
  --ink: #14282B; --ink-2: #35504F; --ink-3: #54706F;
  --line: #D5E5E5; --line-strong: #6E9494;
  --brand: #0B6B73; --brand-hover: #07545B; --brand-ink: #FFFFFF;
  --brand-soft: #DDF1F1; --brand-edge: #A7D3D4; --visited: #5C4A8A;
  --skel: #DDEBEB; --skel-hi: #EEF6F6; --focus: #B54708;
  --dot-1: #0B6B73; --dot-2: #F2994A; --dot-3: #F28B9B; --dot-4: #9BB8F0;
  --agree: #1E7A4F; --agree-bg: #E4F4EC; --vote-off: #D5E5E5; --find-rule: rgba(11, 107, 115, .18);
  --t0: #DDF1F1; --t0-end: #BFE3E3; --t1: #FFE9D6; --t1-end: #FFD2AE;
  --t2: #FCE4E8; --t2-end: #F8C8D1; --t3: #E6EBFB; --t3-end: #CBD6F6;
  --ring: rgba(11, 107, 115, .18);
  --pulse: rgba(242, 153, 74, .35);
  --shadow-box: 0 10px 30px -8px rgba(11, 107, 115, .28), 0 2px 6px rgba(11, 107, 115, .10);
  --hl: #BFE6E3; --glow-2: #FFE8D6;
  --font-display: 'Figtree', 'Segoe UI', sans-serif;
  --font-body: 'Figtree', 'Segoe UI', sans-serif;
}
html[data-theme="soft"] body {
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 600px at 8% -5%, var(--bg-glow) 0%, transparent 62%),
    radial-gradient(700px 500px at 100% 8%, var(--glow-2) 0%, transparent 58%);
  background-attachment: fixed;
}
html[data-theme="soft"] .wordmark {
  padding: 0 8px; font-weight: 800; letter-spacing: -0.03em; color: var(--brand);
  background: linear-gradient(transparent 60%, var(--hl) 60%, var(--hl) 92%, transparent 92%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
html[data-theme="soft"] :is(.askbox, .sbox) { border-radius: 999px; border: 1.5px solid var(--line-strong); }
html[data-theme="soft"] :is(.askbox, .sbox):focus-within {
  border-color: var(--brand); box-shadow: 0 0 0 5px var(--ring), 0 10px 30px -8px rgba(11, 107, 115, .32);
}
html[data-theme="soft"] :is(.send, .sbox button) { box-shadow: 0 4px 10px -2px rgba(11, 107, 115, .45); }
html[data-theme="soft"] .send:disabled { box-shadow: none; }
html[data-theme="soft"] :is(.send:not(:disabled), .sbox button):hover { transform: translateY(-1px) scale(1.05); }
html[data-theme="soft"] :is(.btn, .btn-primary, .g-more, .where-set, .where-go) { border-radius: 999px; font-weight: 700; }
html[data-theme="soft"] :is(.btn-1, .btn-primary) { box-shadow: 0 4px 10px -2px rgba(11, 107, 115, .45); }
html[data-theme="soft"] :is(.btn-2, .g-more) { background: var(--surface); border: 2px solid var(--brand); color: var(--brand); }
html[data-theme="soft"] :is(.chip-q, .pill, .agree, .ask-chip, .badge) { border-radius: 999px; border: 1.5px solid var(--brand-edge); }
html[data-theme="soft"] .g-thumb { border-radius: 24px; }
html[data-theme="soft"] :is(.gv-f, .gv-x) .g-thumb { border-radius: 28px; }
html[data-theme="soft"] :is(.g-mini, .gv-t) .g-thumb { border-radius: 16px; }
html[data-theme="soft"] .g-thumb::after { display: none; }
html[data-theme="soft"] .row-sf { border-radius: 24px; box-shadow: 0 8px 22px -12px rgba(11, 107, 115, .40); }
html[data-theme="soft"] .av { border-radius: 50%; }
html[data-theme="soft"] .topbar {
  background: color-mix(in srgb, var(--bg) 88%, transparent); border-bottom: 0; box-shadow: 0 10px 26px -18px rgba(11, 107, 115, .45);
}
html[data-theme="soft"] :is(.sec-label, .guides-label) {
  display: flex; align-items: center; gap: 8px;
  font: 700 16px/1.2 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--brand);
}
html[data-theme="soft"] .sec-label::before { content: ''; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--dot-2); }
html[data-theme="soft"] .wordmark-lg { display: inline-block; }
html[data-theme="soft"] .topic { padding-inline: 12px; margin-inline: -12px; transition: background-color .16s, border-radius .16s; }
html[data-theme="soft"] .topic:hover { background: var(--brand-soft); border-radius: 16px; border-top-color: transparent; }
html[data-theme="soft"] :is(.topic-name, .g-title, .r-name) { font-weight: 700; }

/* ============ 5. Terracotta: pottery studio. Clay, ochre and moss on sandy linen. ============ */
html[data-theme="terra"], .tl-sw[data-theme="terra"] {
  --bg: #F0E2D2; --bg-glow: #F6D9BC; --surface: #FBF5EC;
  --ink: #2B1D16; --ink-2: #5A4034; --ink-3: #75594A;
  --line: #DCC8B2; --line-strong: #8A6E58;
  --brand: #A3401F; --brand-hover: #82301A; --brand-ink: #FFF8F0;
  --brand-soft: #F7DDCB; --brand-edge: #E5B79B; --visited: #6B3F59;
  --skel: #E5D3BF; --skel-hi: #F2E7DA; --focus: #1D5C8A;
  --dot-1: #A3401F; --dot-2: #D9A441; --dot-3: #5E7A55; --dot-4: #3F5F73;
  --agree: #46663F; --agree-bg: #E6EBD9; --vote-off: #DCC8B2; --find-rule: rgba(163, 64, 31, .18);
  --t0: #F5D9C6; --t0-end: #EDBFA2; --t1: #F3E2B0; --t1-end: #E8CC84;
  --t2: #DCE5CC; --t2-end: #C3D2A9; --t3: #D5E1E5; --t3-end: #B7CBD3;
  --ring: rgba(163, 64, 31, .18);
  --pulse: rgba(217, 164, 65, .40);
  --shadow-box: 0 4px 0 var(--lip);
  --lip: #CDB69C; --lip-2: #6E2A14;
  --font-display: 'Young Serif', Georgia, serif;
  --font-body: 'Karla', 'Segoe UI', sans-serif;
  font-synthesis: none;
}
html[data-theme="terra"] body {
  background-color: var(--bg);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.07'/%3E%3C/svg%3E"),
    radial-gradient(1100px 700px at 0% 0%, var(--bg-glow) 0%, transparent 62%);
  background-attachment: fixed;
}
html[data-theme="terra"] :is(.answer-body, .answer, .prose) { font-size: 18px; }
html[data-theme="terra"] .wordmark {
  font-weight: 400; letter-spacing: -0.01em; color: var(--brand);
  text-decoration: underline; text-decoration-color: var(--dot-2); text-decoration-thickness: 4px;
  text-underline-offset: 6px; text-decoration-skip-ink: none;
}
html[data-theme="terra"] :is(.askbox, .sbox) { border-radius: 18px; border: 2px solid var(--line-strong); }
html[data-theme="terra"] :is(.askbox, .sbox):focus-within { border-color: var(--brand); box-shadow: 0 4px 0 var(--brand), 0 0 0 5px var(--ring); }
html[data-theme="terra"] :is(.send, .sbox button, .btn-1, .btn-primary, .where-go) { border-radius: 14px; box-shadow: 0 3px 0 var(--lip-2); }
html[data-theme="terra"] .send:disabled { box-shadow: none; }
html[data-theme="terra"] :is(.send, .sbox button, .btn-1, .btn-primary, .where-go):active { transform: translateY(2px); box-shadow: 0 1px 0 var(--lip-2); }
html[data-theme="terra"] :is(.btn, .btn-primary, .g-more, .where-set, .where-go) { border-radius: 14px; font-weight: 700; }
html[data-theme="terra"] :is(.btn-2, .g-more, .where-set) {
  background: var(--surface); border: 2px solid var(--brand); color: var(--brand); box-shadow: 0 3px 0 var(--brand-edge);
}
html[data-theme="terra"] :is(.badge, .chip-agree, .chip-mostly, .chip-disagree, .chip-sources, .chip-unknown, .chip-q, .pill, .agree, .ask-chip) { border-radius: 10px; }
html[data-theme="terra"] :is(.chip-q, .pill, .badge) { border: 1.5px solid var(--line-strong); }
html[data-theme="terra"] .g-thumb { border-radius: 28px 6px 28px 6px; }
html[data-theme="terra"] :is(.g-mini, .gv-t, .gv-b) .g-thumb { border-radius: 18px 4px 18px 4px; }
html[data-theme="terra"] .row-sf { border-radius: 18px; border: 1.5px solid var(--brand-edge); }
html[data-theme="terra"] :is(.sec-label, .guides-label) {
  font: 400 18px/1.2 var(--font-display); letter-spacing: 0; text-transform: none; color: var(--brand);
}
html[data-theme="terra"] .sec-label::before { content: ''; display: block; width: 28px; height: 4px; margin-bottom: 8px; background: var(--dot-2); }
html[data-theme="terra"] .topbar { background: color-mix(in srgb, var(--bg) 90%, transparent); border-bottom: 2px solid var(--line); }
html[data-theme="terra"] :is(.topic-name, .g-title, .r-name, .explore-head, .h-display, .prose h2) { font-weight: 400; }

/* ============ 6. Gallery: a museum wall. Monochrome hairlines, matted pictures, one red dot. ============ */
html[data-theme="gallery"], .tl-sw[data-theme="gallery"] {
  --bg: #F5F5F3; --bg-glow: #ECECE8; --surface: #FFFFFF;
  --ink: #111111; --ink-2: #3C3C3A; --ink-3: #5F5F5B;
  --line: #DEDEDA; --line-strong: #8C8C87;
  --brand: #1A1A1A; --brand-hover: #000000; --brand-ink: #FFFFFF;
  --brand-soft: #EBEBE8; --brand-edge: #C9C9C4; --visited: #5A5560;
  --skel: #E6E6E2; --skel-hi: #F3F3F0; --focus: #1D4ED8;
  --dot-1: #111111; --dot-2: #7A7A75; --dot-3: #D9361C; --dot-4: #BEBEB8;
  --agree: #2E2E2C; --agree-bg: #ECECE8; --vote-off: #DEDEDA; --find-rule: rgba(17, 17, 17, .16);
  --t0: #EDEDEA; --t0-end: #DDDDD8; --t1: #F2F0EC; --t1-end: #E2DED6;
  --t2: #E9EBEC; --t2-end: #D6D9DB; --t3: #F0EDEA; --t3-end: #E0DAD4;
  --ring: var(--ink);
  --shadow-box: 0 0 0 0 transparent;
  --on-ink: #FFFFFF;
  --font-display: 'Instrument Serif', 'Times New Roman', serif;
  --font-body: 'Hanken Grotesk', 'Helvetica Neue', sans-serif;
  font-synthesis: none;
}
html[data-theme="gallery"] body { background: var(--bg); }
html[data-theme="gallery"] .wordmark { font-style: italic; font-weight: 400; letter-spacing: -0.02em; color: var(--ink); font-size: 52px; }
html[data-theme="gallery"] .wordmark-lg { font-size: 56px; }
@media (min-width: 640px) {
  html[data-theme="gallery"] .wordmark { font-size: 60px; }
  html[data-theme="gallery"] .wordmark-lg { font-size: 64px; }
}
html[data-theme="gallery"] :is(.wordmark-sm, .wordmark-small) { font-size: 30px; }
html[data-theme="gallery"] .wordmark::after {
  content: ''; display: inline-block; width: .13em; height: .13em; margin-left: .09em; border-radius: 50%; background: var(--dot-3);
}
html[data-theme="gallery"] .askbox.idle { animation: none; }
html[data-theme="gallery"] :is(.askbox, .sbox) { border-radius: 0; border: 1px solid var(--ink); }
html[data-theme="gallery"] :is(.askbox, .sbox):focus-within { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
html[data-theme="gallery"] :is(.send, .sbox button, .btn, .btn-primary, .g-more, .where-set, .where-go) { border-radius: 0; }
html[data-theme="gallery"] :is(.send:not(:disabled), .sbox button, .btn-1, .btn-primary):hover {
  background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); transform: none;
}
html[data-theme="gallery"] :is(.btn, .btn-primary, .g-more, .where-set) { font-weight: 600; letter-spacing: .02em; }
html[data-theme="gallery"] :is(.btn-2, .g-more) { background: transparent; border: 1px solid var(--ink); color: var(--ink); }
html[data-theme="gallery"] :is(.badge, .chip-agree, .chip-mostly, .chip-disagree, .chip-sources, .chip-unknown, .chip-q, .pill, .agree, .ask-chip) {
  border-radius: 0; border: 1px solid var(--ink);
}
html[data-theme="gallery"] :is(.chip-q, .pill, .agree) { background: transparent; }
html[data-theme="gallery"] .pill-on { background: var(--ink); color: var(--on-ink); }
html[data-theme="gallery"] .g-thumb { border-radius: 0; box-shadow: 0 0 0 1px var(--line), 0 0 0 6px var(--surface), 0 0 0 7px var(--line); }
html[data-theme="gallery"] .g-thumb::after { display: none; }
html[data-theme="gallery"] .row-sf { border-radius: 0; background: var(--surface); border: 1px solid var(--ink); margin-bottom: 12px; }
html[data-theme="gallery"] .av { border-radius: 0; }
html[data-theme="gallery"] :is(.sec-label, .guides-label) {
  font: 600 11px/1.4 var(--font-body); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3);
}
html[data-theme="gallery"] .g-meta { letter-spacing: .06em; }
html[data-theme="gallery"] .topbar { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid var(--ink); }
html[data-theme="gallery"] :is(.topic-name, .g-title, .r-name, .explore-head, .h-display, .prose h2) { font-weight: 400; }
html[data-theme="gallery"] :is(.topic-name, .g-title, .r-name) { font-size: 23px; letter-spacing: 0; }
html[data-theme="gallery"] .explore-head { font-size: 26px; }
html[data-theme="gallery"] .h-display { font-size: 42px; }
html[data-theme="gallery"] :is(.gv-f, .gv-x) .g-title { font-size: 36px; }
html[data-theme="gallery"] .gv-p .g-title { font-size: 28px; }
html[data-theme="gallery"] a { text-decoration-thickness: 1px; text-underline-offset: 4px; }
html[data-theme="gallery"] a:hover { text-decoration-thickness: 2px; }

/* ============ 7. Confetti: game-show friendly. Violet page, sticker outlines, bottom-lip buttons. ============ */
html[data-theme="pop"], .tl-sw[data-theme="pop"] {
  --bg: #F5F2FF; --bg-glow: #E4DCFF; --surface: #FFFFFF;
  --ink: #1B1340; --ink-2: #3D3566; --ink-3: #5B5486;
  --line: #DAD3F5; --line-strong: #8277C2;
  --brand: #5B34D6; --brand-hover: #4623B3; --brand-ink: #FFFFFF;
  --brand-soft: #E9E3FF; --brand-edge: #BFB0F5; --visited: #7A2A86;
  --skel: #E6E0FA; --skel-hi: #F4F1FF; --focus: #C2410C;
  --dot-1: #5B34D6; --dot-2: #FFB400; --dot-3: #FF4F8B; --dot-4: #12B5CB;
  --agree: #0E7C4A; --agree-bg: #DFF6EA; --vote-off: #DAD3F5; --find-rule: rgba(91, 52, 214, .2);
  --t0: #E9E3FF; --t0-end: #D2C6FF; --t1: #FFF0C2; --t1-end: #FFDF85;
  --t2: #FFE0EB; --t2-end: #FFC2D6; --t3: #D9F4F8; --t3-end: #B5E8F0;
  --ring: rgba(91, 52, 214, .20);
  --pulse: rgba(255, 180, 0, .40);
  --shadow-box: 0 5px 0 var(--lip);
  --lip: #1B1340;
  --font-display: 'Fredoka', 'Trebuchet MS', sans-serif;
  --font-body: 'Lexend', 'Segoe UI', sans-serif;
}
html[data-theme="pop"] body { background: var(--bg); }
/* Confetti only up top, fading out before the body text. Behind everything (z-index -1). */
html[data-theme="pop"] body::before {
  content: ''; position: fixed; inset: 0 0 auto 0; height: 360px; pointer-events: none; z-index: -1;
  background-image:
    radial-gradient(circle at 12px 14px, rgba(255, 180, 0, .55) 3.5px, transparent 4px),
    radial-gradient(circle at 54px 46px, rgba(255, 79, 139, .42) 3.5px, transparent 4px),
    radial-gradient(circle at 30px 74px, rgba(18, 181, 203, .48) 3.5px, transparent 4px);
  background-size: 96px 96px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0, transparent 100%);
}
html[data-theme="pop"] .answer-body { font-size: 16.5px; }
@media (min-width: 720px) { html[data-theme="pop"] .answer-body { font-size: 17px; } }
html[data-theme="pop"] .wordmark {
  font-weight: 700; letter-spacing: -0.01em; color: var(--brand);
  text-shadow: 2px 2px 0 var(--surface), 4px 4px 0 var(--dot-2);
}
html[data-theme="pop"] :is(.askbox, .sbox) { border-radius: 999px; border: 3px solid var(--ink); }
html[data-theme="pop"] :is(.askbox, .sbox):focus-within { border-color: var(--brand); box-shadow: 0 5px 0 var(--brand), 0 0 0 6px var(--ring); }
html[data-theme="pop"] :is(.send, .sbox button) { border: 3px solid var(--ink); box-shadow: 0 3px 0 var(--lip); }
html[data-theme="pop"] .send:disabled { border-color: var(--line); box-shadow: none; }
html[data-theme="pop"] :is(.send, .sbox button, .btn, .btn-primary, .g-more, .where-set, .where-go):active { transform: translateY(3px); box-shadow: none; }
html[data-theme="pop"] :is(.btn, .btn-primary, .g-more, .where-set, .where-go) {
  border-radius: 999px; border: 2.5px solid var(--ink); box-shadow: 0 4px 0 var(--lip); font-weight: 600;
}
html[data-theme="pop"] :is(.btn-2, .g-more, .where-set) { background: var(--surface); color: var(--ink); }
html[data-theme="pop"] :is(.chip-q, .pill, .agree, .ask-chip, .badge) { border-radius: 999px; border: 2px solid var(--ink); }
html[data-theme="pop"] :is(.chip-q, .pill) { background: var(--surface); }
html[data-theme="pop"] .chips li:nth-child(4n+1) .chip-q { background: var(--t0); }
html[data-theme="pop"] .chips li:nth-child(4n+2) .chip-q { background: var(--t1); }
html[data-theme="pop"] .chips li:nth-child(4n+3) .chip-q { background: var(--t2); }
html[data-theme="pop"] .chips li:nth-child(4n) .chip-q { background: var(--t3); }
html[data-theme="pop"] .pill-on { background: var(--brand); color: var(--brand-ink); }
html[data-theme="pop"] .g-thumb { border-radius: 24px; border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--lip); }
html[data-theme="pop"] .g-mini .g-thumb { border-radius: 16px; }
html[data-theme="pop"] .g-thumb::after { display: none; }
html[data-theme="pop"] .row-sf { border-radius: 24px; border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--lip); margin-bottom: 16px; }
html[data-theme="pop"] .av { border-radius: 50%; border: 2px solid var(--ink); }
html[data-theme="pop"] :is(.sec-label, .guides-label) {
  display: inline-block; padding: 4px 14px; background: var(--dot-2); color: #1B1340;
  border: 2px solid var(--ink); border-radius: 999px;
  font: 600 14px/1.2 var(--font-display); letter-spacing: .03em; text-transform: none; transform: rotate(-1.5deg);
}
html[data-theme="pop"] .sec-label .sec-count { color: inherit; opacity: .75; }
html[data-theme="pop"] .explore-dots i { border: 2.5px solid var(--ink); box-shadow: none; }
html[data-theme="pop"] .topbar { background: color-mix(in srgb, var(--bg) 92%, transparent); border-bottom: 3px solid var(--ink); }
html[data-theme="pop"] :is(.topic-name, .g-title, .r-name) { font-weight: 600; }

/* Ten more looks (Peter's second brief), each with its light and dark mode.
   Light tokens on html[data-theme="<slug>"], dark on [data-mode="dark"]. Component rules use tokens, so they flip too. */

/* ============ 8. Neon: pink tubes and electric cyan, a night city ============ */
html[data-theme="neon"], .tl-sw[data-theme="neon"] {
  --bg: #FFF4F9; --bg-glow: #FFD3EA; --glow-2: #C9F1FF; --surface: #FFFFFF;
  --ink: #1A0B22; --ink-2: #4A3556; --ink-3: #6A5473; --on-ink: #FFFFFF;
  --line: #F0CFE0; --line-strong: #A8587F;
  --brand: #C2005E; --brand-hover: #9C0049; --brand-ink: #FFFFFF;
  --brand-soft: #FFE0EF; --brand-edge: #F5A3CB; --visited: #6B2FB0;
  --skel: #F6DDEA; --skel-hi: #FFEFF7; --focus: #0067B8;
  --ring: rgba(194, 0, 94, .18); --pulse: rgba(0, 190, 230, .40);
  --shadow-box: 0 10px 28px -12px rgba(194, 0, 94, .40);
  --dot-1: #C2005E; --dot-2: #0098BD; --dot-3: #7A3FE0; --dot-4: #C98A00;
  --agree: #0B7A5A; --agree-bg: #DDF5EC; --vote-off: #F0CFE0; --find-rule: rgba(194, 0, 94, .20);
  --t0: #FFE0EF; --t0-end: #FFC2DF; --t1: #D6F4FC; --t1-end: #AEE8F7;
  --t2: #E9DEFF; --t2-end: #D2BEFF; --t3: #FFF1C2; --t3-end: #FFE285;
  --lip: #00B4DB; --hl: #FFE98A;
  --font-display: 'Outfit', 'Segoe UI', sans-serif; --font-body: 'Outfit', 'Segoe UI', sans-serif;
  --font-sign: 'Audiowide', 'Outfit', sans-serif;
  font-synthesis: none;
}
html[data-theme="neon"][data-mode="dark"], :is(html[data-mode="dark"], .tl-dark) .tl-sw[data-theme="neon"] {
  color-scheme: dark;
  --bg: #0B0F24; --bg-glow: #2A1250; --glow-2: #063C52; --surface: #131A38;
  --ink: #E6EAFF; --ink-2: #B5BDE6; --ink-3: #8D97C8; --on-ink: #0B0F24;
  --line: #27305C; --line-strong: #5662A8;
  --brand: #FF4FA3; --brand-hover: #FF7DBB; --brand-ink: #12041C;
  --brand-soft: #2A1240; --brand-edge: #8A2A66; --visited: #B79CFF;
  --skel: #1A2145; --skel-hi: #252E5C; --focus: #5CE1FF;
  --ring: rgba(255, 79, 163, .30); --pulse: rgba(34, 229, 255, .38);
  --shadow-box: 0 0 0 1px rgba(255, 79, 163, .35), 0 0 30px -8px rgba(255, 79, 163, .55);
  --dot-1: #FF4FA3; --dot-2: #22E5FF; --dot-3: #A58BFF; --dot-4: #FFD84D;
  --agree: #4FE0A8; --agree-bg: #0F2E2C; --vote-off: #27305C; --find-rule: rgba(255, 79, 163, .32);
  --t0: #3A1233; --t0-end: #5A1A4C; --t1: #0D3040; --t1-end: #0F4A5E;
  --t2: #2A1D5C; --t2-end: #3E2A82; --t3: #3A3010; --t3-end: #574818;
  --lip: #22E5FF; --hl: rgba(255, 216, 77, .22);
}
html[data-theme="neon"] .wordmark {
  font-family: var(--font-sign); font-weight: 400; letter-spacing: .02em; color: var(--brand);
  text-shadow: 0 0 .08em var(--brand), 0 0 .4em var(--ring), 0 0 1em var(--pulse);
}
html[data-theme="neon"] :is(.wordmark-sm, .wordmark-small) { font-family: var(--font-display); font-weight: 800; letter-spacing: 0; }
html[data-theme="neon"] :is(.askbox, .sbox) { border: 2px solid var(--brand); border-radius: 12px; }
html[data-theme="neon"] :is(.askbox, .sbox):focus-within { border-color: var(--lip); box-shadow: 0 0 0 3px var(--ring), 0 0 26px -2px var(--pulse), var(--shadow-box); }
html[data-theme="neon"] :is(.send, .sbox button) { border-radius: 9px; box-shadow: 0 0 16px -3px var(--brand); }
html[data-theme="neon"] .send:disabled { box-shadow: none; }
html[data-theme="neon"] :is(.send:not(:disabled), .sbox button):hover { box-shadow: 0 0 24px -1px var(--brand); }
html[data-theme="neon"] :is(.btn, .btn-primary, .g-more, .where-set, .where-go) { border-radius: 9px; font-weight: 700; letter-spacing: .03em; }
html[data-theme="neon"] :is(.btn-1, .btn-primary, .where-go) { box-shadow: 0 0 18px -4px var(--brand); }
html[data-theme="neon"] :is(.btn-2, .g-more, .where-set) { background: transparent; border: 2px solid var(--brand); color: var(--brand); }
html[data-theme="neon"] :is(.btn-2, .g-more, .where-set):hover { background: var(--brand-soft); }
html[data-theme="neon"] :is(.badge, .chip-agree, .chip-mostly, .chip-disagree, .chip-sources, .chip-unknown, .chip-q, .pill, .agree, .ask-chip) { border-radius: 7px; border: 1.5px solid var(--brand-edge); }
html[data-theme="neon"] .pill-on { box-shadow: 0 0 14px -2px var(--brand); }
html[data-theme="neon"] .g-thumb { border-radius: 12px; box-shadow: 0 0 0 2px var(--brand-edge); }
html[data-theme="neon"] .g-thumb::after { display: none; }
html[data-theme="neon"] .g-row:hover .g-thumb { box-shadow: 0 0 0 2px var(--brand), 0 0 22px -4px var(--brand); }
html[data-theme="neon"] .row-sf { border-radius: 12px; border: 1.5px solid var(--brand-edge); box-shadow: inset 4px 0 0 var(--brand); }
html[data-theme="neon"] .topbar {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 2px solid transparent; border-image: linear-gradient(90deg, var(--brand), var(--lip)) 1;
}
html[data-theme="neon"] body {
  background-color: var(--bg); background-attachment: fixed;
  background-image: radial-gradient(900px 620px at 10% -8%, var(--bg-glow) 0%, transparent 62%), radial-gradient(800px 560px at 100% 2%, var(--glow-2) 0%, transparent 60%);
}
html[data-theme="neon"] body::before {
  content: ''; position: fixed; inset: auto 0 0 0; height: 40vh; pointer-events: none; z-index: -1;
  background-image: linear-gradient(var(--ring) 1px, transparent 1px), linear-gradient(90deg, var(--ring) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(to top, #000, transparent); mask-image: linear-gradient(to top, #000, transparent);
}
html[data-theme="neon"] :is(.sec-label, .guides-label) {
  font: 400 13px/1.2 var(--font-sign); letter-spacing: .16em; text-transform: uppercase; color: var(--brand); text-shadow: 0 0 10px var(--ring);
}
html[data-theme="neon"] :is(.sec-label, .guides-label)::before {
  content: ''; display: inline-block; width: 22px; height: 2px; margin-right: 10px; vertical-align: middle;
  background: var(--lip); box-shadow: 0 0 10px var(--lip);
}
html[data-theme="neon"] .topic:hover .topic-name { text-shadow: 0 0 14px var(--pulse); }

/* ============ 9. Retro: 70s burnt orange, mustard, avocado and brown ============ */
html[data-theme="retro"], .tl-sw[data-theme="retro"] {
  --bg: #F6E7C8; --bg-glow: #EFCB8E; --glow-2: #F6C48F; --surface: #FFF8E6;
  --ink: #3B2314; --ink-2: #5E3F2A; --ink-3: #7A5238; --on-ink: #FFF8E6;
  --line: #E0C79A; --line-strong: #8A5A36;
  --brand: #A8400C; --brand-hover: #873208; --brand-ink: #FFF8E6;
  --brand-soft: #F9DDB8; --brand-edge: #E3A468; --visited: #7A3B55;
  --skel: #EBD6AB; --skel-hi: #F6E9CB; --focus: #1F5E7A;
  --ring: rgba(168, 64, 12, .20); --pulse: rgba(226, 160, 32, .42);
  --shadow-box: 0 4px 0 var(--brand-edge);
  --dot-1: #A8400C; --dot-2: #C98A0C; --dot-3: #6B7A2A; --dot-4: #5B3A24;
  --agree: #4F6420; --agree-bg: #E4E6C4; --vote-off: #E0C79A; --find-rule: rgba(168, 64, 12, .22);
  --t0: #F7D3B0; --t0-end: #EDB683; --t1: #F6E0A0; --t1-end: #EBC85F;
  --t2: #D9DFA8; --t2-end: #BFC97D; --t3: #E3CDB3; --t3-end: #CDAF8C;
  --lip: #D8A31A; --hl: #F6D26A;
  --disagree: #A3123A; --disagree-bg: #FBE3EA; --disagree-line: #E59AB1;
  --font-display: 'Caprasimo', Georgia, serif; --font-body: 'Nunito', 'Segoe UI', sans-serif;
  font-synthesis: none;
}
html[data-theme="retro"][data-mode="dark"], :is(html[data-mode="dark"], .tl-dark) .tl-sw[data-theme="retro"] {
  color-scheme: dark;
  --bg: #20140D; --bg-glow: #4A2A12; --glow-2: #3D2C0A; --surface: #2B1C13;
  --ink: #F6E7C8; --ink-2: #D3BC95; --ink-3: #A98F6A; --on-ink: #20140D;
  --line: #4A3321; --line-strong: #8A6A48;
  --brand: #F08A3C; --brand-hover: #FFA45E; --brand-ink: #2A1206;
  --brand-soft: #3C2414; --brand-edge: #8A4A1E; --visited: #D49AB8;
  --skel: #2F1F14; --skel-hi: #3B281A; --focus: #6EC6E8;
  --ring: rgba(240, 138, 60, .30); --pulse: rgba(240, 180, 50, .30);
  --dot-1: #F08A3C; --dot-2: #F0B429; --dot-3: #A8B84A; --dot-4: #C98F63;
  --agree: #B5CC63; --agree-bg: #2A3012; --vote-off: #4A3321; --find-rule: rgba(240, 138, 60, .30);
  --t0: #4A2A14; --t0-end: #633716; --t1: #4A3A12; --t1-end: #665018;
  --t2: #333A14; --t2-end: #4A5320; --t3: #3E2D20; --t3-end: #573F2C;
  --lip: #F0B429; --hl: rgba(240, 180, 41, .22);
  --disagree: #FF8FA8; --disagree-bg: #3A1420; --disagree-line: #8A3550;
}
html[data-theme="retro"] .wordmark {
  font-weight: 400; letter-spacing: 0; color: var(--brand);
  text-shadow: 2px 2px 0 var(--lip), 4px 4px 0 var(--dot-3), 6px 6px 0 var(--dot-4);
}
html[data-theme="retro"] :is(.wordmark-sm, .wordmark-small) { text-shadow: 1px 1px 0 var(--lip), 2px 2px 0 var(--dot-3); }
html[data-theme="retro"] :is(.askbox, .sbox) { border: 3px solid var(--line-strong); border-radius: 28px; }
html[data-theme="retro"] :is(.askbox, .sbox):focus-within { border-color: var(--brand); box-shadow: 0 4px 0 var(--lip), 0 0 0 5px var(--ring); }
html[data-theme="retro"] :is(.send, .sbox button) { box-shadow: 0 3px 0 var(--brand-hover); }
html[data-theme="retro"] .send:disabled { box-shadow: none; }
html[data-theme="retro"] :is(.send:not(:disabled), .sbox button):active { transform: translateY(2px); box-shadow: 0 1px 0 var(--brand-hover); }
html[data-theme="retro"] :is(.btn, .btn-primary, .g-more, .where-set, .where-go) { border-radius: 999px; font-weight: 800; }
html[data-theme="retro"] :is(.btn-1, .btn-primary, .where-go) { box-shadow: 0 4px 0 var(--brand-hover); }
html[data-theme="retro"] :is(.btn-2, .g-more, .where-set) { background: var(--surface); border: 2.5px solid var(--brand); color: var(--brand); box-shadow: 0 4px 0 var(--brand-edge); }
html[data-theme="retro"] :is(.btn, .btn-primary, .g-more, .where-set, .where-go):active { transform: translateY(2px); box-shadow: none; }
html[data-theme="retro"] :is(.badge, .chip-agree, .chip-mostly, .chip-disagree, .chip-sources, .chip-unknown, .chip-q, .pill, .agree, .ask-chip) { border-radius: 999px; border: 2px solid var(--line-strong); }
html[data-theme="retro"] .g-thumb { border-radius: 26px; box-shadow: 0 0 0 3px var(--lip); }
html[data-theme="retro"] :is(.g-mini, .gv-t) .g-thumb { border-radius: 16px; }
html[data-theme="retro"] .g-thumb::after { display: none; }
html[data-theme="retro"] .row-sf { border-radius: 24px; border: 2.5px solid var(--brand-edge); box-shadow: 0 4px 0 var(--brand-edge); }
html[data-theme="retro"] .topbar {
  background: color-mix(in srgb, var(--bg) 92%, transparent); border-bottom: 0;
  box-shadow: 0 2px 0 var(--brand), 0 4px 0 var(--lip), 0 6px 0 var(--dot-3);
}
html[data-theme="retro"] body {
  background-color: var(--bg); background-attachment: fixed;
  background-image: radial-gradient(1100px 700px at 0% 0%, var(--bg-glow) 0%, transparent 62%), radial-gradient(900px 600px at 100% 100%, var(--glow-2) 0%, transparent 60%);
}
html[data-theme="retro"] body::before {
  content: ''; position: fixed; inset: 0 0 auto 0; height: 440px; pointer-events: none; z-index: -1; opacity: .6;
  background: repeating-conic-gradient(from 0deg at 50% -10%, var(--bg-glow) 0 5deg, transparent 5deg 10deg);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent); mask-image: linear-gradient(to bottom, #000, transparent);
}
html[data-theme="retro"] :is(.sec-label, .guides-label) { font: 400 17px/1.2 var(--font-display); letter-spacing: .01em; text-transform: none; color: var(--brand); }
html[data-theme="retro"] :is(.sec-label, .guides-label)::before {
  content: ''; display: inline-block; width: 26px; height: 10px; margin-right: 10px; border-radius: 2px;
  background: linear-gradient(var(--brand) 0 33%, var(--lip) 33% 66%, var(--dot-3) 66%);
}
html[data-theme="retro"] :is(.topic-name, .g-title, .r-name) { font-weight: 400; letter-spacing: 0; }

/* ============ 10. Terminal: phosphor green, a prompt for a wordmark ============ */
html[data-theme="terminal"], .tl-sw[data-theme="terminal"] {
  --bg: #EEF4E8; --bg-glow: #D6EBCF; --glow-2: #FFE9B0; --surface: #FBFEF7;
  --ink: #0D1F12; --ink-2: #2F4636; --ink-3: #4F6755; --on-ink: #FBFEF7;
  --line: #C9D8C4; --line-strong: #5C7A63;
  --brand: #0B6B2A; --brand-hover: #08531F; --brand-ink: #FFFFFF;
  --brand-soft: #DCEBD6; --brand-edge: #9CC6A0; --visited: #5B3FA0;
  --skel: #DCE7D6; --skel-hi: #EDF4E8; --focus: #0A58B8;
  --ring: rgba(11, 107, 42, .20); --pulse: rgba(11, 107, 42, .28);
  --shadow-box: 0 0 0 0 transparent;
  --dot-1: #0B6B2A; --dot-2: #B26A00; --dot-3: #1B6E8A; --dot-4: #6F7A6F;
  --agree: #0B6B2A; --agree-bg: #DCEBD6; --vote-off: #C9D8C4; --find-rule: rgba(11, 107, 42, .20);
  --t0: #DCEBD6; --t0-end: #BFDDB8; --t1: #F7E7BE; --t1-end: #EBD08A;
  --t2: #D3E8EE; --t2-end: #B3D3DE; --t3: #E3E8E0; --t3-end: #CBD3C7;
  --lip: #0B6B2A; --hl: #FFE69A;
  --font-display: 'JetBrains Mono', ui-monospace, monospace; --font-body: 'IBM Plex Mono', ui-monospace, monospace;
  font-synthesis: none;
}
html[data-theme="terminal"][data-mode="dark"], :is(html[data-mode="dark"], .tl-dark) .tl-sw[data-theme="terminal"] {
  color-scheme: dark;
  --bg: #08130B; --bg-glow: #12341D; --glow-2: #2A2406; --surface: #0E1D12;
  --ink: #B9EFC6; --ink-2: #8CCB9A; --ink-3: #6FA97C; --on-ink: #08130B;
  --line: #1F3B27; --line-strong: #3F7A52;
  --brand: #3DDC6B; --brand-hover: #7CF59B; --brand-ink: #04140A;
  --brand-soft: #0F2A18; --brand-edge: #1E6A38; --visited: #B79CFF;
  --skel: #0F2216; --skel-hi: #17331F; --focus: #FFD060;
  --ring: rgba(61, 220, 107, .28); --pulse: rgba(61, 220, 107, .30);
  --shadow-box: 0 0 0 1px var(--line), 0 0 22px -8px rgba(61, 220, 107, .45);
  --dot-1: #3DDC6B; --dot-2: #FFB000; --dot-3: #4FD1E8; --dot-4: #9AA79D;
  --agree: #3DDC6B; --agree-bg: #0F2A18; --vote-off: #1F3B27; --find-rule: rgba(61, 220, 107, .30);
  --t0: #123A1E; --t0-end: #1B5A2D; --t1: #3A2E08; --t1-end: #574510;
  --t2: #0F3340; --t2-end: #16505F; --t3: #232B25; --t3-end: #34403A;
  --lip: #3DDC6B; --hl: rgba(255, 176, 0, .22);
}
@keyframes tl-blink { 50% { opacity: 0; } }
html[data-theme="terminal"] .wordmark { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.05em; color: var(--brand); }
html[data-theme="terminal"] .wordmark::before { content: '~$ '; color: var(--dot-2); font-weight: 500; }
html[data-theme="terminal"] .wordmark::after { content: '_'; color: var(--lip); animation: tl-blink 1.1s steps(1) infinite; }
html[data-theme="terminal"] :is(.wordmark-sm, .wordmark-small)::before { content: none; }
@media (prefers-reduced-motion: reduce) { html[data-theme="terminal"] .wordmark::after { animation: none; } }
html[data-theme="terminal"] .askbox.idle { animation: none; }
html[data-theme="terminal"] :is(.askbox, .sbox) { position: relative; border: 2px solid var(--brand); border-radius: 0; }
html[data-theme="terminal"] :is(.askbox, .sbox):focus-within { border-color: var(--lip); box-shadow: 0 0 0 3px var(--ring), var(--shadow-box); }
html[data-theme="terminal"] .askbox::before { content: '>'; position: absolute; left: 7px; top: 14px; font: 700 20px/28px var(--font-display); color: var(--lip); }
html[data-theme="terminal"] .sbox::before { content: '>'; position: absolute; left: 5px; top: 50%; transform: translateY(-50%); font: 700 16px/1 var(--font-display); color: var(--lip); }
html[data-theme="terminal"] :is(.askbox textarea, .sbox input) { caret-color: var(--brand); caret-shape: block; }
html[data-theme="terminal"] :is(.send, .sbox button) { border-radius: 0; border: 2px solid var(--brand); }
html[data-theme="terminal"] .send:disabled { border-color: var(--line); }
html[data-theme="terminal"] :is(.send:not(:disabled), .sbox button):hover { background: var(--surface); color: var(--brand); transform: none; }
html[data-theme="terminal"] :is(.btn, .btn-primary, .g-more, .where-set, .where-go) { border-radius: 0; font-weight: 600; letter-spacing: .02em; }
html[data-theme="terminal"] :is(.btn-1, .btn-primary, .where-go) { border: 2px solid var(--brand); }
html[data-theme="terminal"] :is(.btn-1, .btn-primary, .where-go):hover { background: var(--surface); color: var(--brand); }
html[data-theme="terminal"] :is(.btn-2, .g-more, .where-set) { background: transparent; border: 2px solid var(--brand); color: var(--brand); }
html[data-theme="terminal"] :is(.btn-2, .g-more, .where-set):hover { background: var(--brand); color: var(--brand-ink); }
html[data-theme="terminal"] :is(.badge, .chip-agree, .chip-mostly, .chip-disagree, .chip-sources, .chip-unknown, .chip-q, .pill, .agree, .ask-chip) { border-radius: 0; border: 1px solid var(--brand-edge); }
html[data-theme="terminal"] .pill-on { border-color: var(--brand); }
html[data-theme="terminal"] .g-thumb { border-radius: 0; box-shadow: 0 0 0 1px var(--brand); }
html[data-theme="terminal"] .g-thumb::after { display: none; }
html[data-theme="terminal"] .g-thumb img { filter: grayscale(.85) contrast(1.05); }
html[data-theme="terminal"] .g-row:hover .g-thumb img { filter: none; }
html[data-theme="terminal"] .row-sf { border-radius: 0; border: 1px solid var(--brand-edge); border-left: 3px solid var(--brand); }
html[data-theme="terminal"] .topbar { background: color-mix(in srgb, var(--bg) 92%, transparent); border-bottom: 1px solid var(--brand-edge); }
html[data-theme="terminal"] body {
  background-color: var(--bg); background-attachment: fixed;
  background-image: radial-gradient(1200px 800px at 50% 0%, var(--bg-glow) 0%, transparent 70%);
}
html[data-theme="terminal"] body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background: repeating-linear-gradient(to bottom, transparent 0 2px, color-mix(in srgb, var(--ink) 5%, transparent) 2px 3px);
}
html[data-theme="terminal"] :is(.sec-label, .guides-label) { font: 500 13px/1.2 var(--font-body); letter-spacing: .04em; text-transform: none; color: var(--brand); }
html[data-theme="terminal"] :is(.sec-label, .guides-label)::before { content: '// '; color: var(--ink-3); }
html[data-theme="terminal"] ::selection { background: var(--brand); color: var(--brand-ink); }

/* ============ 11. Royal: navy and gold, a certificate frame, small caps ============ */
html[data-theme="royal"], .tl-sw[data-theme="royal"] {
  --bg: #F7F3E8; --bg-glow: #EADFBF; --glow-2: #DDE3F3; --surface: #FFFDF7;
  --ink: #0F1B33; --ink-2: #36425C; --ink-3: #56617A; --on-ink: #F7F3E8;
  --line: #DDD3B8; --line-strong: #8A7A4A;
  --brand: #1B2F6B; --brand-hover: #121F4C; --brand-ink: #FFFFFF;
  --brand-soft: #E6EAF5; --brand-edge: #AEB9DA; --visited: #6B3F7A;
  --skel: #E8E0C8; --skel-hi: #F4EEDC; --focus: #9A5B00;
  --ring: rgba(27, 47, 107, .16); --pulse: rgba(184, 146, 47, .38);
  --shadow-box: inset 0 0 0 3px var(--surface), inset 0 0 0 4px var(--lip);
  --dot-1: #1B2F6B; --dot-2: #B8922F; --dot-3: #7C8DB8; --dot-4: #7A1F2E;
  --agree: #1F6B4A; --agree-bg: #E3EFE8; --vote-off: #DDD3B8; --find-rule: rgba(27, 47, 107, .16);
  --t0: #E6EAF5; --t0-end: #CBD3EC; --t1: #F5E9C4; --t1-end: #E8D393;
  --t2: #F0DADD; --t2-end: #E2BBC1; --t3: #E3E8EC; --t3-end: #C9D2DA;
  --lip: #B8922F; --hl: #F3E3A8;
  --font-display: 'Cormorant Garamond', Georgia, serif; --font-body: 'Lora', Georgia, serif;
  --font-sc: 'Cormorant SC', 'Cormorant Garamond', Georgia, serif;
}
html[data-theme="royal"][data-mode="dark"], :is(html[data-mode="dark"], .tl-dark) .tl-sw[data-theme="royal"] {
  color-scheme: dark;
  --bg: #0A1226; --bg-glow: #1A2650; --glow-2: #2E2710; --surface: #121C38;
  --ink: #EEE8D6; --ink-2: #C3C0B6; --ink-3: #9AA0B8; --on-ink: #0A1226;
  --line: #26335C; --line-strong: #6A7396;
  --brand: #E0B84A; --brand-hover: #F0CD6E; --brand-ink: #0A1226;
  --brand-soft: #1E2748; --brand-edge: #7A6420; --visited: #B9A2E8;
  --skel: #151F3D; --skel-hi: #1F2B52; --focus: #F0CD6E;
  --ring: rgba(224, 184, 74, .28); --pulse: rgba(224, 184, 74, .30);
  --dot-1: #E0B84A; --dot-2: #8FA3E0; --dot-3: #C9B58A; --dot-4: #C45A6E;
  --agree: #6FD0A0; --agree-bg: #10302A; --vote-off: #26335C; --find-rule: rgba(224, 184, 74, .26);
  --t0: #1D2A5C; --t0-end: #2A3A7A; --t1: #3A3010; --t1-end: #574818;
  --t2: #3D1A26; --t2-end: #5A2638; --t3: #1F2B3A; --t3-end: #2E3F54;
  --lip: #E0B84A; --hl: rgba(224, 184, 74, .20);
}
html[data-theme="royal"] .wordmark { font-family: var(--font-sc); font-weight: 700; letter-spacing: .08em; color: var(--brand); }
html[data-theme="royal"] :is(.wordmark-sm, .wordmark-small) { letter-spacing: .04em; }
html[data-theme="royal"] .wordmark:not(.wordmark-sm, .wordmark-small) {
  background: linear-gradient(90deg, transparent, var(--lip) 20%, var(--lip) 80%, transparent) center bottom / 100% 1px no-repeat;
}
html[data-theme="royal"] .askbox.idle { animation: none; }
html[data-theme="royal"] :is(.askbox, .sbox) { border: 1px solid var(--line-strong); border-radius: 4px; }
html[data-theme="royal"] :is(.send, .sbox button) { border-radius: 3px; box-shadow: inset 0 0 0 1px var(--lip); }
html[data-theme="royal"] .send:disabled { box-shadow: none; }
html[data-theme="royal"] :is(.btn, .btn-primary, .g-more, .where-set, .where-go) { border-radius: 3px; font-family: var(--font-sc); font-size: 17px; font-weight: 700; letter-spacing: .08em; }
html[data-theme="royal"] :is(.btn-1, .btn-primary, .where-go) { box-shadow: inset 0 0 0 1px var(--lip); }
html[data-theme="royal"] :is(.btn-2, .g-more, .where-set) { background: transparent; border: 1px solid var(--brand); color: var(--brand); }
html[data-theme="royal"] :is(.btn-2, .g-more, .where-set):hover { background: var(--brand-soft); }
html[data-theme="royal"] :is(.badge, .chip-agree, .chip-mostly, .chip-disagree, .chip-sources, .chip-unknown, .chip-q, .pill, .agree, .ask-chip) { border-radius: 2px; border: 1px solid var(--line-strong); letter-spacing: .02em; }
html[data-theme="royal"] .pill-on { box-shadow: inset 0 0 0 1px var(--lip); }
html[data-theme="royal"] .g-thumb { border-radius: 2px; }
html[data-theme="royal"] .g-thumb::after { box-shadow: inset 0 0 0 3px var(--surface), inset 0 0 0 4px var(--lip); border-radius: 2px; }
html[data-theme="royal"] .row-sf { border-radius: 2px; border: 1px solid var(--brand-edge); border-top: 2px solid var(--lip); }
html[data-theme="royal"] .topbar { background: color-mix(in srgb, var(--bg) 92%, transparent); border-bottom: 3px double var(--lip); }
html[data-theme="royal"] body {
  background-color: var(--bg); background-attachment: fixed;
  background-image:
    repeating-linear-gradient(45deg, color-mix(in srgb, var(--lip) 7%, transparent) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(-45deg, color-mix(in srgb, var(--lip) 7%, transparent) 0 1px, transparent 1px 22px),
    radial-gradient(1200px 700px at 50% -10%, var(--bg-glow) 0%, transparent 65%),
    radial-gradient(900px 600px at 100% 100%, var(--glow-2) 0%, transparent 60%);
}
html[data-theme="royal"] :is(.sec-label, .guides-label) {
  display: flex; align-items: center; gap: 12px;
  font: 700 15px/1.2 var(--font-sc); letter-spacing: .16em; text-transform: none; color: var(--brand);
}
html[data-theme="royal"] :is(.sec-label, .guides-label)::before { content: '◆'; font-size: .55em; color: var(--lip); }
html[data-theme="royal"] :is(.sec-label, .guides-label)::after { content: ''; flex: 1; border-top: 1px solid var(--lip); }
html[data-theme="royal"] :is(.topic-name, .g-title, .r-name) { font-weight: 700; letter-spacing: 0; }

/* ============ 12. Sakura: washi paper, charcoal, cherry rose, a hanko seal ============ */
html[data-theme="sakura"], .tl-sw[data-theme="sakura"] {
  --bg: #FAF6F3; --bg-glow: #F9DCE0; --glow-2: #F3E9E4; --surface: #FFFDFC;
  --ink: #2B2B2E; --ink-2: #4D4D52; --ink-3: #6B6B70; --on-ink: #FFFFFF;
  --line: #E9DDDB; --line-strong: #8E8285;
  --brand: #B0233F; --brand-hover: #8C1A31; --brand-ink: #FFFFFF;
  --brand-soft: #F9E3E7; --brand-edge: #E5A9B5; --visited: #6A4A7A;
  --skel: #EFE5E3; --skel-hi: #F8F2F0; --focus: #1E5AA8;
  --ring: rgba(176, 35, 63, .16); --pulse: rgba(240, 150, 170, .45);
  --shadow-box: 0 1px 0 var(--line);
  --dot-1: #B0233F; --dot-2: #D9748A; --dot-3: #3A3A3F; --dot-4: #6F8F6F;
  --agree: #3F6B4E; --agree-bg: #E7EFE9; --vote-off: #E9DDDB; --find-rule: rgba(176, 35, 63, .18);
  --t0: #FADCE2; --t0-end: #F3BFCB; --t1: #EDEAE6; --t1-end: #DAD5CF;
  --t2: #F5E6D3; --t2-end: #E8CFAE; --t3: #DEE8E0; --t3-end: #C3D3C8;
  --lip: #E58DA0; --hl: #F9D5DC;
  --disagree: #6B2A8A; --disagree-bg: #F1E4F7; --disagree-line: #C9A3DB;
  --font-display: 'Shippori Mincho', 'Noto Serif JP', serif; --font-body: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
}
html[data-theme="sakura"][data-mode="dark"], :is(html[data-mode="dark"], .tl-dark) .tl-sw[data-theme="sakura"] {
  color-scheme: dark;
  --bg: #17161A; --bg-glow: #3A1E28; --glow-2: #26222E; --surface: #201F25;
  --ink: #EDE6E4; --ink-2: #C4BBBA; --ink-3: #9A9193; --on-ink: #17161A;
  --line: #34313A; --line-strong: #80767D;
  --brand: #F27A93; --brand-hover: #FF9DB0; --brand-ink: #1F0A10;
  --brand-soft: #34202A; --brand-edge: #8A4256; --visited: #C3A8E0;
  --skel: #232127; --skel-hi: #2E2B33; --focus: #8EC0FF;
  --ring: rgba(242, 122, 147, .28); --pulse: rgba(242, 122, 147, .30);
  --dot-1: #F27A93; --dot-2: #FFC2CF; --dot-3: #C9C3C6; --dot-4: #8FB09A;
  --agree: #8FD0A4; --agree-bg: #1C2E24; --vote-off: #34313A; --find-rule: rgba(242, 122, 147, .26);
  --t0: #43202B; --t0-end: #5E2B3A; --t1: #2C2A2E; --t1-end: #3E3B40;
  --t2: #3A2C20; --t2-end: #52402D; --t3: #212E27; --t3-end: #30443A;
  --lip: #F27A93; --hl: rgba(242, 122, 147, .20);
  --disagree: #D9A8F0; --disagree-bg: #2E1A38; --disagree-line: #6A3F82;
}
html[data-theme="sakura"] .wordmark { font-weight: 700; letter-spacing: .01em; color: var(--ink); }
html[data-theme="sakura"] .wordmark::after {
  content: '探'; display: inline-grid; place-items: center; width: 1.4em; height: 1.4em; margin-left: .5em; vertical-align: .1em;
  font: 700 .5em/1 var(--font-display); background: var(--brand); color: var(--brand-ink); border-radius: 3px; transform: rotate(-4deg);
}
html[data-theme="sakura"] :is(.askbox, .sbox) { border: 1px solid var(--line-strong); border-radius: 4px; }
html[data-theme="sakura"] :is(.askbox, .sbox):focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring), var(--shadow-box); }
html[data-theme="sakura"] :is(.send, .sbox button) { border-radius: 4px; }
html[data-theme="sakura"] :is(.btn, .btn-primary, .g-more, .where-set, .where-go) { border-radius: 2px; font-weight: 500; letter-spacing: .08em; }
html[data-theme="sakura"] :is(.btn-2, .g-more, .where-set) { background: transparent; border: 1px solid var(--ink); color: var(--ink); }
html[data-theme="sakura"] :is(.btn-2, .g-more, .where-set):hover { background: var(--ink); color: var(--on-ink); }
html[data-theme="sakura"] :is(.badge, .chip-agree, .chip-mostly, .chip-disagree, .chip-sources, .chip-unknown, .chip-q, .pill, .agree, .ask-chip) { border-radius: 2px; border: 1px solid var(--line-strong); }
html[data-theme="sakura"] .g-thumb { border-radius: 2px; box-shadow: 0 0 0 1px var(--line); }
html[data-theme="sakura"] .g-thumb::after { display: none; }
html[data-theme="sakura"] .row-sf { border-radius: 2px; border: 0; border-left: 2px solid var(--brand); }
html[data-theme="sakura"] .av { border-radius: 2px; }
html[data-theme="sakura"] .topbar { background: color-mix(in srgb, var(--bg) 90%, transparent); border-bottom: 1px solid var(--line); }
html[data-theme="sakura"] body {
  background-color: var(--bg); background-attachment: fixed;
  background-image: radial-gradient(900px 600px at 6% -6%, var(--bg-glow) 0%, transparent 60%), radial-gradient(800px 560px at 100% 100%, var(--glow-2) 0%, transparent 60%);
}
html[data-theme="sakura"] body::before {
  --petal: color-mix(in srgb, var(--lip) 55%, transparent);
  content: ''; position: fixed; inset: 0 0 auto 0; height: 420px; pointer-events: none; z-index: -1;
  background-image:
    radial-gradient(ellipse 9px 5px at 8% 14%, var(--petal) 96%, transparent 100%), radial-gradient(ellipse 7px 4px at 22% 46%, var(--petal) 96%, transparent 100%),
    radial-gradient(ellipse 10px 5px at 41% 20%, var(--petal) 96%, transparent 100%), radial-gradient(ellipse 7px 4px at 63% 52%, var(--petal) 96%, transparent 100%),
    radial-gradient(ellipse 9px 5px at 82% 16%, var(--petal) 96%, transparent 100%), radial-gradient(ellipse 6px 3px at 93% 44%, var(--petal) 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent); mask-image: linear-gradient(to bottom, #000, transparent);
}
html[data-theme="sakura"] :is(.sec-label, .guides-label) { font: 500 12px/1.4 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
html[data-theme="sakura"] :is(.sec-label, .guides-label)::before {
  content: ''; display: inline-block; width: 2px; height: 1em; margin-right: 10px; vertical-align: -.14em; background: var(--brand);
}
html[data-theme="sakura"] :is(.topic-name, .g-title, .r-name) { font-weight: 700; letter-spacing: 0; }

/* ============ 13. Aurora: frosted glass over a drifting azure, teal and green mesh ============ */
html[data-theme="aurora"], .tl-sw[data-theme="aurora"] {
  --bg: #EDF3FB; --bg-glow: #BFE9E4; --glow-2: #C9DDFB; --surface: #FFFFFF;
  --ink: #0B1B2B; --ink-2: #34495E; --ink-3: #52677C; --on-ink: #FFFFFF;
  --line: #D3E1EE; --line-strong: #6C88A4;
  --brand: #0A62A6; --brand-hover: #074E87; --brand-ink: #FFFFFF;
  --brand-soft: #E1EEFA; --brand-edge: #A8CBEA; --visited: #6B3F8F;
  --skel: #DCE8F2; --skel-hi: #EEF4FA; --focus: #B45309;
  --ring: rgba(10, 98, 166, .18); --pulse: rgba(18, 181, 160, .40);
  --shadow-box: inset 0 1px 0 #FFFFFF, 0 10px 30px -12px rgba(10, 98, 166, .30);
  --dot-1: #0A62A6; --dot-2: #0C8F7E; --dot-3: #3FA74F; --dot-4: #4A9BE8;
  --agree: #1B7A4E; --agree-bg: #DFF3EA; --vote-off: #D3E1EE; --find-rule: rgba(10, 98, 166, .16);
  --t0: #D8EEFA; --t0-end: #B4DAF2; --t1: #D3F3EA; --t1-end: #A9E5D3;
  --t2: #DDF5D2; --t2-end: #BFE8A9; --t3: #E4ECFB; --t3-end: #C8D6F3;
  --lip: #12B5A0; --hl: #CDF3EA;
  --font-display: 'Sora', 'Segoe UI', sans-serif; --font-body: 'Manrope', 'Segoe UI', sans-serif;
}
html[data-theme="aurora"][data-mode="dark"], :is(html[data-mode="dark"], .tl-dark) .tl-sw[data-theme="aurora"] {
  color-scheme: dark;
  --bg: #07131D; --bg-glow: #0F5F5A; --glow-2: #1B3F8A; --surface: #0E1F2D;
  --ink: #D8E8EC; --ink-2: #B3CBD3; --ink-3: #87A5B0; --on-ink: #07131D;
  --line: #1D3647; --line-strong: #46708A;
  --brand: #3DDBB4; --brand-hover: #7AF0D0; --brand-ink: #04201A;
  --brand-soft: #0F2E36; --brand-edge: #1F6E66; --visited: #A9B8F5;
  --skel: #0F2230; --skel-hi: #17323F; --focus: #FFD060;
  --ring: rgba(61, 219, 180, .28); --pulse: rgba(61, 219, 180, .30);
  --shadow-box: inset 0 1px 0 rgba(255, 255, 255, .10), 0 12px 36px -14px rgba(61, 219, 180, .35);
  --dot-1: #3DDBB4; --dot-2: #4DB8FF; --dot-3: #7BE06A; --dot-4: #6FD3F5;
  --agree: #7BE06A; --agree-bg: #10301C; --vote-off: #1D3647; --find-rule: rgba(61, 219, 180, .26);
  --t0: #0F3A44; --t0-end: #145664; --t1: #0F2F4F; --t1-end: #16487A;
  --t2: #12381F; --t2-end: #1C5A30; --t3: #1A2B3A; --t3-end: #2A4357;
  --lip: #4DB8FF; --hl: rgba(61, 219, 180, .18);
}
html[data-theme="aurora"] .wordmark {
  font-weight: 800; letter-spacing: -0.03em; color: var(--brand);
  background: linear-gradient(100deg, var(--brand) 5%, var(--dot-2) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
html[data-theme="aurora"] :is(.askbox, .sbox) {
  background: color-mix(in srgb, var(--surface) 74%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid var(--line-strong); border-radius: 20px;
}
html[data-theme="aurora"] :is(.askbox, .sbox):focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--ring), 0 0 32px -6px var(--pulse), var(--shadow-box); }
html[data-theme="aurora"] :is(.send, .sbox button) { border-radius: 14px; box-shadow: 0 6px 16px -4px var(--pulse); }
html[data-theme="aurora"] .send:disabled { box-shadow: none; }
html[data-theme="aurora"] :is(.btn, .btn-primary, .g-more, .where-set, .where-go) { border-radius: 14px; font-weight: 700; }
html[data-theme="aurora"] :is(.btn-1, .btn-primary, .where-go) { box-shadow: 0 6px 16px -4px var(--pulse); }
html[data-theme="aurora"] :is(.btn-2, .g-more, .where-set) { background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--brand-edge); color: var(--brand); }
html[data-theme="aurora"] :is(.badge, .chip-agree, .chip-mostly, .chip-disagree, .chip-sources, .chip-unknown, .chip-q, .pill, .agree, .ask-chip) { border-radius: 10px; border: 1px solid var(--brand-edge); }
html[data-theme="aurora"] .g-thumb { border-radius: 20px; box-shadow: 0 10px 24px -14px var(--pulse); }
html[data-theme="aurora"] .g-thumb::after { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--surface) 55%, transparent); }
html[data-theme="aurora"] .row-sf {
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--brand-edge); border-radius: 20px;
}
html[data-theme="aurora"] .topbar {
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--brand-edge);
}
html[data-theme="aurora"] body {
  background-color: var(--bg); background-attachment: fixed;
  background-image:
    radial-gradient(900px 620px at 8% -6%, var(--bg-glow) 0%, transparent 60%),
    radial-gradient(800px 600px at 96% 4%, var(--glow-2) 0%, transparent 58%),
    radial-gradient(900px 700px at 60% 108%, color-mix(in srgb, var(--dot-3) 28%, transparent) 0%, transparent 60%);
}
@keyframes tl-drift { 0%, 100% { transform: skewY(-6deg) translateX(-4%); } 50% { transform: skewY(-6deg) translateX(4%); } }
html[data-theme="aurora"] body::before {
  content: ''; position: fixed; left: -10%; right: -10%; top: -140px; height: 360px; pointer-events: none; z-index: -1; opacity: .22;
  background: linear-gradient(100deg, transparent 5%, var(--lip) 30%, var(--dot-3) 55%, var(--dot-2) 75%, transparent 95%);
  filter: blur(64px); animation: tl-drift 22s ease-in-out infinite;
}
html[data-theme="aurora"][data-mode="dark"] body::before { opacity: .36; }
@media (prefers-reduced-motion: reduce) { html[data-theme="aurora"] body::before { animation: none; } }
html[data-theme="aurora"] :is(.sec-label, .guides-label) {
  font: 700 13px/1.4 var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--brand);
  background: linear-gradient(90deg, var(--brand), var(--dot-2) 40%, transparent) left bottom / 100% 1.5px no-repeat;
}

/* ============ 14. Comic: newsprint inks, Ben-Day dots, a speech-bubble search box ============ */
html[data-theme="comic"], .tl-sw[data-theme="comic"] {
  --bg: #FFF9E3; --bg-glow: #FFE9A0; --glow-2: #D6E4FF; --surface: #FFFFFF;
  --ink: #14121A; --ink-2: #3A3646; --ink-3: #57536A; --on-ink: #FFF9E3;
  --line: #D9CF9E; --line-strong: #14121A;
  --brand: #C8102E; --brand-hover: #9E0C24; --brand-ink: #FFFFFF;
  --brand-soft: #FFE1E4; --brand-edge: #F0909B; --visited: #5B2D9B;
  --skel: #F1E7B8; --skel-hi: #FBF3D0; --focus: #1F4FBF;
  --ring: rgba(200, 16, 46, .20); --pulse: rgba(255, 214, 10, .60);
  --shadow-box: 4px 4px 0 var(--lip);
  --dot-1: #C8102E; --dot-2: #1F4FBF; --dot-3: #D9A800; --dot-4: #14121A;
  --agree: #0E6B3A; --agree-bg: #DDF3E4; --vote-off: #D9CF9E; --find-rule: rgba(200, 16, 46, .20);
  --t0: #FFD9DD; --t0-end: #FFB3BB; --t1: #D6E4FF; --t1-end: #AFC9FF;
  --t2: #FFF0A6; --t2-end: #FFE066; --t3: #E7E2D3; --t3-end: #D2CAB4;
  --lip: #1F4FBF; --hl: #FFE066;
  --disagree: #6B1F9E; --disagree-bg: #F1E3FA; --disagree-line: #C79BE0;
  --font-display: 'Bangers', 'Comic Sans MS', cursive; --font-body: 'Comic Neue', 'Comic Sans MS', sans-serif;
  font-synthesis: none;
}
html[data-theme="comic"][data-mode="dark"], :is(html[data-mode="dark"], .tl-dark) .tl-sw[data-theme="comic"] {
  color-scheme: dark;
  --bg: #12142A; --bg-glow: #1F2A66; --glow-2: #4A1020; --surface: #1D2040;
  --ink: #F5E8C8; --ink-2: #D9D2BC; --ink-3: #A5A4C2; --on-ink: #12142A;
  --line: #343A70; --line-strong: #F4E9CF;
  --brand: #FF5A5F; --brand-hover: #FF8084; --brand-ink: #1A0508;
  --brand-soft: #3A1A30; --brand-edge: #A8404A; --visited: #C3A2F5;
  --skel: #1B1E3C; --skel-hi: #272B54; --focus: #FFD60A;
  --ring: rgba(255, 90, 95, .30); --pulse: rgba(255, 214, 10, .45);
  --dot-1: #FF5A5F; --dot-2: #5C8DFF; --dot-3: #FFD60A; --dot-4: #F4E9CF;
  --agree: #6FE0A0; --agree-bg: #12302A; --vote-off: #343A70; --find-rule: rgba(255, 90, 95, .30);
  --t0: #4A1C2C; --t0-end: #6A2840; --t1: #1E2F6A; --t1-end: #2B44A0;
  --t2: #4A3F0A; --t2-end: #6B5C10; --t3: #2A2D4D; --t3-end: #3C4170;
  --lip: #FFD60A; --hl: rgba(255, 214, 10, .25);
  --disagree: #D9A0FF; --disagree-bg: #2E1A44; --disagree-line: #6E4A9A;
}
html[data-theme="comic"] .wordmark {
  font-weight: 400; letter-spacing: .04em; color: var(--brand);
  -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; text-shadow: 3px 3px 0 var(--lip);
}
html[data-theme="comic"] :is(.wordmark-sm, .wordmark-small) { -webkit-text-stroke-width: 1px; text-shadow: 2px 2px 0 var(--lip); }
html[data-theme="comic"] .askbox.idle { animation: none; }
html[data-theme="comic"] :is(.askbox, .sbox) { border: 3px solid var(--ink); border-radius: 26px; }
html[data-theme="comic"] :is(.askbox, .sbox):focus-within { border-color: var(--ink); box-shadow: 6px 6px 0 var(--brand), 0 0 0 3px var(--ring); }
html[data-theme="comic"] .askbox::after {
  content: ''; position: absolute; left: 36px; bottom: -12px; width: 20px; height: 20px; background: var(--surface);
  border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(45deg);
}
html[data-theme="comic"] .topbar .askbox::after { display: none; }
html[data-theme="comic"] :is(.send, .sbox button) { border: 3px solid var(--ink); box-shadow: 2px 2px 0 var(--lip); }
html[data-theme="comic"] .send:disabled { border-color: var(--line); box-shadow: none; }
html[data-theme="comic"] :is(.send:not(:disabled), .sbox button):hover { transform: translate(-1px, -1px); }
html[data-theme="comic"] :is(.send, .sbox button, .btn, .btn-primary, .g-more, .where-set, .where-go):active { transform: translate(2px, 2px); box-shadow: none; }
html[data-theme="comic"] :is(.btn, .btn-primary, .g-more, .where-set, .where-go) {
  border: 3px solid var(--ink); border-radius: 12px; box-shadow: 3px 3px 0 var(--lip);
  font-family: var(--font-display); font-size: 18px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase;
}
html[data-theme="comic"] :is(.btn-2, .g-more, .where-set) { background: var(--surface); color: var(--ink); }
html[data-theme="comic"] :is(.badge, .chip-agree, .chip-mostly, .chip-disagree, .chip-sources, .chip-unknown, .chip-q, .pill, .agree, .ask-chip) { border: 2px solid var(--ink); border-radius: 4px; font-weight: 700; }
html[data-theme="comic"] .g-thumb { border: 3px solid var(--ink); border-radius: 6px; box-shadow: 4px 4px 0 var(--lip); }
html[data-theme="comic"] .g-thumb::after { content: ''; box-shadow: none; opacity: .16; background: radial-gradient(circle, var(--ink) 1.3px, transparent 1.7px) 0 0 / 6px 6px; }
html[data-theme="comic"] .row-sf { border: 2.5px solid var(--ink); border-radius: 10px; box-shadow: 4px 4px 0 var(--lip); }
html[data-theme="comic"] .av { border: 2px solid var(--ink); }
html[data-theme="comic"] .topbar { background: color-mix(in srgb, var(--bg) 92%, transparent); border-bottom: 3px solid var(--ink); }
html[data-theme="comic"] body {
  background-color: var(--bg); background-attachment: fixed;
  background-image: radial-gradient(900px 600px at 50% -10%, var(--bg-glow) 0%, transparent 65%);
}
html[data-theme="comic"] body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) 22%, transparent) 1.6px, transparent 2px) 0 0 / 14px 14px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 100% 0%, #000, transparent 70%); mask-image: radial-gradient(ellipse 80% 60% at 100% 0%, #000, transparent 70%);
}
html[data-theme="comic"] body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(circle, color-mix(in srgb, var(--dot-2) 22%, transparent) 1.6px, transparent 2px) 7px 7px / 14px 14px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 0% 100%, #000, transparent 70%); mask-image: radial-gradient(ellipse 80% 60% at 0% 100%, #000, transparent 70%);
}
html[data-theme="comic"] :is(.sec-label, .guides-label) {
  display: inline-block; padding: 3px 10px; background: var(--hl); color: var(--ink);
  border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--lip);
  font: 400 16px/1.2 var(--font-display); letter-spacing: .08em; text-transform: uppercase; transform: rotate(-1deg);
}
html[data-theme="comic"] .sec-label .sec-count { color: inherit; }
html[data-theme="comic"] :is(.topic-name, .g-title, .r-name) { font-weight: 400; letter-spacing: .03em; }

/* ============ 15. Blueprint: drafting paper, dashed lines, FIG labels ============ */
html[data-theme="blueprint"], .tl-sw[data-theme="blueprint"] {
  --bg: #F3F7FB; --bg-glow: #DCE9F7; --glow-2: #FFE8DD; --surface: #FFFFFF;
  --ink: #0C1E33; --ink-2: #34475C; --ink-3: #54677C; --on-ink: #FFFFFF;
  --line: #CCDAE9; --line-strong: #5E7FA3;
  --brand: #0F4C81; --brand-hover: #0A3A63; --brand-ink: #FFFFFF;
  --brand-soft: #E3EDF8; --brand-edge: #A7C2E0; --visited: #5A3FA0;
  --skel: #E1EAF4; --skel-hi: #F0F5FA; --focus: #C2410C;
  --ring: rgba(15, 76, 129, .16); --pulse: rgba(194, 65, 12, .28);
  --shadow-box: 0 0 0 0 transparent;
  --dot-1: #0F4C81; --dot-2: #D2491F; --dot-3: #5E7FA3; --dot-4: #1F8A70;
  --agree: #17703F; --agree-bg: #E3F2EA; --vote-off: #CCDAE9; --find-rule: rgba(15, 76, 129, .18);
  --t0: #E3EDF8; --t0-end: #C6DBF2; --t1: #FDE6DC; --t1-end: #F7C9B6;
  --t2: #E8EEF2; --t2-end: #D0DBE3; --t3: #E0F1EC; --t3-end: #BFE0D6;
  --lip: #D2491F; --hl: #FFE3A3;
  --font-display: 'Chakra Petch', 'Segoe UI', sans-serif; --font-body: 'IBM Plex Sans', 'Segoe UI', sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;
}
html[data-theme="blueprint"][data-mode="dark"], :is(html[data-mode="dark"], .tl-dark) .tl-sw[data-theme="blueprint"] {
  color-scheme: dark;
  --bg: #0B3359; --bg-glow: #14508A; --glow-2: #0F3F6E; --surface: #114273;
  --ink: #EAF2FF; --ink-2: #BBD2F2; --ink-3: #93B4E0; --on-ink: #0B3359;
  --line: #2F5E91; --line-strong: #6F9CCF;
  --brand: #7FD1FF; --brand-hover: #A8E0FF; --brand-ink: #06233F;
  --brand-soft: #12477C; --brand-edge: #3F78B0; --visited: #C3B5FF;
  --skel: #12406E; --skel-hi: #1A5188; --focus: #FFD24D;
  --ring: rgba(127, 209, 255, .30); --pulse: rgba(255, 210, 77, .30);
  --dot-1: #7FD1FF; --dot-2: #FFD24D; --dot-3: #FF8F6B; --dot-4: #C8DAF5;
  --agree: #7BE0A8; --agree-bg: #0F4A4A; --vote-off: #2F5E91; --find-rule: rgba(127, 209, 255, .30);
  --t0: #164D86; --t0-end: #1F63A8; --t1: #4A3D14; --t1-end: #6A561C;
  --t2: #1E4A5A; --t2-end: #2A6579; --t3: #20405F; --t3-end: #2E5A85;
  --lip: #FFD24D; --hl: rgba(255, 210, 77, .20);
}
html[data-theme="blueprint"] .wordmark {
  font-weight: 700; letter-spacing: .01em; color: var(--ink);
  text-decoration: underline dashed; text-decoration-color: var(--brand); text-decoration-thickness: 2px;
  text-underline-offset: 8px; text-decoration-skip-ink: none;
}
html[data-theme="blueprint"] :is(.wordmark-sm, .wordmark-small) { text-underline-offset: 5px; }
html[data-theme="blueprint"] .wordmark:not(.wordmark-sm, .wordmark-small)::after {
  content: 'REV A'; display: inline-block; margin-left: .9em; padding: 2px 4px; vertical-align: super;
  font: 700 10px/1 var(--font-mono); letter-spacing: .14em; color: var(--ink-3); border: 1px solid currentColor;
}
html[data-theme="blueprint"] .askbox.idle { animation: none; }
html[data-theme="blueprint"] :is(.askbox, .sbox) { border: 1.5px dashed var(--line-strong); border-radius: 2px; }
html[data-theme="blueprint"] :is(.askbox, .sbox):focus-within { border-style: solid; border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring); }
html[data-theme="blueprint"] :is(.send, .sbox button) { border-radius: 2px; border: 1.5px solid var(--brand); }
html[data-theme="blueprint"] .send:disabled { border-color: var(--line); }
html[data-theme="blueprint"] :is(.send:not(:disabled), .sbox button):hover { background: var(--surface); color: var(--brand); transform: none; }
html[data-theme="blueprint"] :is(.btn, .btn-primary, .g-more, .where-set, .where-go) {
  border-radius: 2px; font-family: var(--font-mono); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
html[data-theme="blueprint"] :is(.btn-2, .g-more, .where-set) { background: transparent; border: 1.5px solid var(--brand); color: var(--brand); }
html[data-theme="blueprint"] :is(.btn-2, .g-more, .where-set):hover { background: var(--brand-soft); }
html[data-theme="blueprint"] :is(.badge, .chip-agree, .chip-mostly, .chip-disagree, .chip-sources, .chip-unknown, .chip-q, .pill, .agree, .ask-chip) { border-radius: 2px; border: 1px dashed var(--line-strong); font-family: var(--font-mono); letter-spacing: .02em; }
html[data-theme="blueprint"] .pill-on { border-style: solid; border-color: var(--brand); }
html[data-theme="blueprint"] .g-thumb { border-radius: 0; outline: 1px dashed var(--line-strong); outline-offset: 4px; }
html[data-theme="blueprint"] .g-thumb::after { display: none; }
html[data-theme="blueprint"] .g-thumb img { filter: grayscale(.35) contrast(1.05); }
html[data-theme="blueprint"] .row-sf { border-radius: 2px; border: 1px dashed var(--brand); }
html[data-theme="blueprint"] .topbar { background: color-mix(in srgb, var(--bg) 90%, transparent); border-bottom: 2px solid var(--brand); }
html[data-theme="blueprint"] body {
  background-color: var(--bg); background-attachment: fixed; counter-reset: fig;
  background-image:
    linear-gradient(color-mix(in srgb, var(--brand) 14%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--brand) 14%, transparent) 1px, transparent 1px),
    linear-gradient(color-mix(in srgb, var(--brand) 7%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--brand) 7%, transparent) 1px, transparent 1px),
    radial-gradient(1100px 700px at 50% -10%, var(--bg-glow), transparent 70%);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px, auto;
}
html[data-theme="blueprint"] :is(.sec-label, .guides-label) {
  counter-increment: fig; font: 700 11.5px/1.3 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--brand);
}
html[data-theme="blueprint"] :is(.sec-label, .guides-label)::before { content: 'FIG.' counter(fig, decimal-leading-zero) ' / '; color: var(--ink-3); }
html[data-theme="blueprint"] :is(.topic-name, .g-title, .r-name) { font-weight: 600; letter-spacing: 0; }

/* ============ 16. Citrus: lime cream and tangerine, leaf corners ============ */
html[data-theme="citrus"], .tl-sw[data-theme="citrus"] {
  --bg: #F8FCE3; --bg-glow: #E3F7A8; --glow-2: #FFD9A8; --surface: #FFFFFF;
  --ink: #1D2A0B; --ink-2: #40501F; --ink-3: #5C6B36; --on-ink: #FFFFFF;
  --line: #DCE8B0; --line-strong: #7E9A2E;
  --brand: #BE3E00; --brand-hover: #9A3200; --brand-ink: #FFFFFF;
  --brand-soft: #FFEBDB; --brand-edge: #F5A66E; --visited: #7A3FA0;
  --skel: #E8F0C4; --skel-hi: #F4F9DA; --focus: #0A6BB8;
  --ring: rgba(190, 62, 0, .20); --pulse: rgba(141, 196, 0, .48);
  --shadow-box: 0 8px 22px -10px rgba(190, 62, 0, .40);
  --dot-1: #BE3E00; --dot-2: #7FB000; --dot-3: #E09000; --dot-4: #2F9E5A;
  --agree: #2F7A1F; --agree-bg: #E4F5D4; --vote-off: #DCE8B0; --find-rule: rgba(190, 62, 0, .20);
  --t0: #EAF8B8; --t0-end: #D2EE7E; --t1: #FFE3C8; --t1-end: #FFC594;
  --t2: #FFF2B0; --t2-end: #FFE15A; --t3: #D5F2DD; --t3-end: #A9E3BB;
  --lip: #8DC400; --hl: #E6F78A;
  --disagree: #A3123A; --disagree-bg: #FBE3EA; --disagree-line: #E59AB1;
  --font-display: 'Bricolage Grotesque', 'Segoe UI', sans-serif; --font-body: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
}
html[data-theme="citrus"][data-mode="dark"], :is(html[data-mode="dark"], .tl-dark) .tl-sw[data-theme="citrus"] {
  color-scheme: dark;
  --bg: #101707; --bg-glow: #26380A; --glow-2: #3A1D08; --surface: #19230D;
  --ink: #E6EFCB; --ink-2: #C6D3A4; --ink-3: #9AA878; --on-ink: #101707;
  --line: #2C3D14; --line-strong: #6F8A2A;
  --brand: #FF8A3D; --brand-hover: #FFA86B; --brand-ink: #1F0C00;
  --brand-soft: #3A2008; --brand-edge: #8A4A1A; --visited: #D2A8F0;
  --skel: #1A2410; --skel-hi: #25331A; --focus: #B8E834;
  --ring: rgba(255, 138, 61, .30); --pulse: rgba(184, 232, 52, .30);
  --shadow-box: 0 8px 24px -10px rgba(255, 138, 61, .45);
  --dot-1: #FF8A3D; --dot-2: #B8E834; --dot-3: #FFD23D; --dot-4: #4FD18A;
  --agree: #A6E05A; --agree-bg: #1E3010; --vote-off: #2C3D14; --find-rule: rgba(255, 138, 61, .28);
  --t0: #33440C; --t0-end: #4A6212; --t1: #4A2A0C; --t1-end: #6B3C10;
  --t2: #4A410C; --t2-end: #6B5E10; --t3: #123A24; --t3-end: #1A5636;
  --lip: #B8E834; --hl: rgba(184, 232, 52, .20);
  --disagree: #FF8FA8; --disagree-bg: #3A1420; --disagree-line: #8A3550;
}
html[data-theme="citrus"] .wordmark { font-weight: 800; letter-spacing: -0.04em; color: var(--brand); }
html[data-theme="citrus"] .wordmark::after {
  content: ''; display: inline-block; width: .5em; height: .5em; margin-left: .12em; vertical-align: -.02em; border-radius: 50%;
  background: repeating-conic-gradient(var(--lip) 0 20deg, var(--surface) 20deg 30deg); box-shadow: 0 0 0 .07em var(--brand);
}
html[data-theme="citrus"] :is(.askbox, .sbox) { border: 2px solid var(--line-strong); border-radius: 26px 26px 26px 6px; }
html[data-theme="citrus"] :is(.askbox, .sbox):focus-within { border-color: var(--brand); box-shadow: 0 0 0 5px var(--ring), var(--shadow-box); }
html[data-theme="citrus"] :is(.send, .sbox button) { border-radius: 16px 16px 16px 5px; box-shadow: 0 4px 0 var(--brand-hover); }
html[data-theme="citrus"] .send:disabled { box-shadow: none; }
html[data-theme="citrus"] :is(.send:not(:disabled), .sbox button):active { transform: translateY(2px); box-shadow: 0 2px 0 var(--brand-hover); }
html[data-theme="citrus"] :is(.btn, .btn-primary, .g-more, .where-set, .where-go) { border-radius: 16px 16px 16px 5px; font-weight: 800; }
html[data-theme="citrus"] :is(.btn-1, .btn-primary, .where-go) { box-shadow: 0 4px 0 var(--brand-hover); }
html[data-theme="citrus"] :is(.btn-2, .g-more, .where-set) { background: var(--surface); border: 2px solid var(--lip); color: var(--brand); box-shadow: 0 4px 0 var(--lip); }
html[data-theme="citrus"] :is(.badge, .chip-agree, .chip-mostly, .chip-disagree, .chip-sources, .chip-unknown, .chip-q, .pill, .agree, .ask-chip) { border-radius: 999px; border: 1.5px solid var(--lip); }
html[data-theme="citrus"] .pill-on { box-shadow: 0 2px 0 var(--brand-hover); }
html[data-theme="citrus"] .chips li:nth-child(4n+1) .chip-q { background: var(--t0); }
html[data-theme="citrus"] .chips li:nth-child(4n+2) .chip-q { background: var(--t1); }
html[data-theme="citrus"] .chips li:nth-child(4n+3) .chip-q { background: var(--t2); }
html[data-theme="citrus"] .chips li:nth-child(4n) .chip-q { background: var(--t3); }
html[data-theme="citrus"] .g-thumb { border-radius: 26px 26px 26px 6px; box-shadow: 0 5px 0 var(--lip); }
html[data-theme="citrus"] :is(.g-mini, .gv-t) .g-thumb { border-radius: 16px 16px 16px 4px; }
html[data-theme="citrus"] .g-thumb::after { display: none; }
html[data-theme="citrus"] .row-sf { border-radius: 22px 22px 22px 6px; border: 2px solid var(--lip); }
html[data-theme="citrus"] .topbar { background: color-mix(in srgb, var(--bg) 90%, transparent); border-bottom: 3px solid var(--lip); }
html[data-theme="citrus"] body {
  background-color: var(--bg); background-attachment: fixed;
  background-image: radial-gradient(900px 600px at 0% 0%, var(--bg-glow) 0%, transparent 62%), radial-gradient(800px 560px at 100% 6%, var(--glow-2) 0%, transparent 58%);
}
html[data-theme="citrus"] body::before {
  content: ''; position: fixed; right: -160px; top: -160px; width: 420px; height: 420px; border-radius: 50%; pointer-events: none; z-index: -1; opacity: .7;
  background: repeating-conic-gradient(var(--glow-2) 0 22deg, transparent 22deg 30deg);
  -webkit-mask-image: radial-gradient(circle, #000 55%, transparent 72%); mask-image: radial-gradient(circle, #000 55%, transparent 72%);
}
html[data-theme="citrus"] :is(.sec-label, .guides-label) { font: 800 14px/1.2 var(--font-display); letter-spacing: .02em; text-transform: none; color: var(--brand); }
html[data-theme="citrus"] :is(.sec-label, .guides-label)::before {
  content: ''; display: inline-block; width: 12px; height: 12px; margin-right: 8px; border-radius: 50%;
  background: var(--lip); box-shadow: 0 0 0 3px var(--brand-soft);
}
html[data-theme="citrus"] :is(.topic-name, .g-title, .r-name) { font-weight: 700; letter-spacing: -0.015em; }

/* ============ 17. Workshop: concrete, safety orange, hazard stripes ============ */
html[data-theme="workshop"], .tl-sw[data-theme="workshop"] {
  --bg: #E3E4E2; --bg-glow: #D0D3D1; --glow-2: #FFE3C2; --surface: #F3F4F2;
  --ink: #181A1C; --ink-2: #3A3F43; --ink-3: #555B60; --on-ink: #F3F4F2;
  --line: #C2C5C2; --line-strong: #6A6F73;
  --brand: #A93700; --brand-hover: #872B00; --brand-ink: #FFFFFF;
  --brand-soft: #F3E0D2; --brand-edge: #D9926A; --visited: #5A3F8A;
  --skel: #D3D6D4; --skel-hi: #E8EAE8; --focus: #0A58B8;
  --ring: rgba(169, 55, 0, .20); --pulse: rgba(255, 106, 0, .35);
  --shadow-box: 0 3px 0 var(--line-strong);
  --dot-1: #A93700; --dot-2: #C99700; --dot-3: #555B60; --dot-4: #2F7F8F;
  --agree: #2D6A3A; --agree-bg: #DDE8DD; --vote-off: #C2C5C2; --find-rule: rgba(169, 55, 0, .22);
  --t0: #F3D7C4; --t0-end: #E6B596; --t1: #F5E6B0; --t1-end: #EACB5E;
  --t2: #D6DADB; --t2-end: #BCC3C6; --t3: #D5E3DB; --t3-end: #B5CCBF;
  --lip: #F2B800; --hl: #F5D54D;
  --disagree: #A3123A; --disagree-bg: #FBE3EA; --disagree-line: #E59AB1;
  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif; --font-body: 'Barlow', 'Segoe UI', sans-serif;
}
html[data-theme="workshop"][data-mode="dark"], :is(html[data-mode="dark"], .tl-dark) .tl-sw[data-theme="workshop"] {
  color-scheme: dark;
  --bg: #16181A; --bg-glow: #2A2E31; --glow-2: #3A2410; --surface: #202325;
  --ink: #E6E8E6; --ink-2: #B9BEBD; --ink-3: #939A99; --on-ink: #16181A;
  --line: #34383A; --line-strong: #6B7173;
  --brand: #FF7A1A; --brand-hover: #FF9A4D; --brand-ink: #1A0A00;
  --brand-soft: #3A2412; --brand-edge: #8A4A1A; --visited: #C3A8E8;
  --skel: #232628; --skel-hi: #2E3234; --focus: #FFC400;
  --ring: rgba(255, 122, 26, .30); --pulse: rgba(255, 196, 0, .30);
  --shadow-box: 0 3px 0 var(--line);
  --dot-1: #FF7A1A; --dot-2: #FFC400; --dot-3: #9AA3A6; --dot-4: #4FB3C8;
  --agree: #7BD08A; --agree-bg: #1C2E22; --vote-off: #34383A; --find-rule: rgba(255, 122, 26, .28);
  --t0: #4A2A14; --t0-end: #633716; --t1: #4A3E0C; --t1-end: #6B5A10;
  --t2: #2C3033; --t2-end: #40464A; --t3: #1E3A34; --t3-end: #2C554B;
  --lip: #FFC400; --hl: rgba(255, 196, 0, .22);
  --disagree: #FF8FA8; --disagree-bg: #3A1420; --disagree-line: #8A3550;
}
html[data-theme="workshop"] .wordmark {
  display: inline-block; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--ink);
  background: repeating-linear-gradient(-45deg, var(--lip) 0 6px, var(--ink) 6px 12px) left bottom / 100% 6px no-repeat;
}
html[data-theme="workshop"] :is(.wordmark-sm, .wordmark-small) { background-size: 100% 4px; }
html[data-theme="workshop"] .askbox.idle { animation: none; }
html[data-theme="workshop"] :is(.askbox, .sbox) { border: 2px solid var(--ink); border-radius: 2px; }
html[data-theme="workshop"] :is(.askbox, .sbox):focus-within { border-color: var(--brand); box-shadow: 0 3px 0 var(--lip), 0 0 0 3px var(--ring); }
html[data-theme="workshop"] :is(.send, .sbox button) { border-radius: 2px; box-shadow: 0 3px 0 var(--brand-hover); }
html[data-theme="workshop"] .send:disabled { box-shadow: none; }
html[data-theme="workshop"] :is(.send:not(:disabled), .sbox button):active { transform: translateY(2px); box-shadow: 0 1px 0 var(--brand-hover); }
html[data-theme="workshop"] :is(.btn, .btn-primary, .g-more, .where-set, .where-go) {
  border-radius: 2px; font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
html[data-theme="workshop"] :is(.btn-1, .btn-primary, .where-go) { box-shadow: 0 3px 0 var(--brand-hover); }
html[data-theme="workshop"] :is(.btn-2, .g-more, .where-set) { background: var(--surface); border: 2px solid var(--ink); color: var(--ink); }
html[data-theme="workshop"] :is(.btn-2, .g-more, .where-set):hover { background: var(--ink); color: var(--on-ink); }
html[data-theme="workshop"] :is(.badge, .chip-agree, .chip-mostly, .chip-disagree, .chip-sources, .chip-unknown, .chip-q, .pill, .agree, .ask-chip) {
  border-radius: 2px; border: 1.5px solid var(--ink); font-family: var(--font-display); font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
html[data-theme="workshop"] .pill-on { background: var(--ink); color: var(--on-ink); }
html[data-theme="workshop"] .g-thumb { border-radius: 0; box-shadow: 0 0 0 2px var(--ink); }
html[data-theme="workshop"] .g-thumb::after {
  border-radius: 0; box-shadow: none;
  background:
    radial-gradient(circle at 7px 7px, var(--surface) 0 2.5px, var(--ink) 2.5px 3.5px, transparent 4px),
    radial-gradient(circle at calc(100% - 7px) 7px, var(--surface) 0 2.5px, var(--ink) 2.5px 3.5px, transparent 4px),
    radial-gradient(circle at 7px calc(100% - 7px), var(--surface) 0 2.5px, var(--ink) 2.5px 3.5px, transparent 4px),
    radial-gradient(circle at calc(100% - 7px) calc(100% - 7px), var(--surface) 0 2.5px, var(--ink) 2.5px 3.5px, transparent 4px);
}
html[data-theme="workshop"] .row-sf {
  border-radius: 0; border: 2px solid var(--ink);
  background: repeating-linear-gradient(-45deg, var(--lip) 0 6px, var(--ink) 6px 12px) left top / 10px 100% no-repeat, var(--brand-soft);
}
html[data-theme="workshop"] .topbar { background: color-mix(in srgb, var(--bg) 92%, transparent); border-bottom: 3px solid var(--ink); box-shadow: 0 4px 0 var(--lip); }
html[data-theme="workshop"] body {
  background-color: var(--bg); background-attachment: fixed;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E"),
    radial-gradient(1200px 700px at 50% -10%, var(--bg-glow) 0%, transparent 70%),
    radial-gradient(800px 500px at 100% 100%, var(--glow-2) 0%, transparent 60%);
}
html[data-theme="workshop"] body::before {
  content: ''; position: fixed; inset: 0 0 auto 0; height: 6px; z-index: 30; pointer-events: none;
  background: repeating-linear-gradient(-45deg, var(--lip) 0 10px, var(--ink) 10px 20px);
}
html[data-theme="workshop"] :is(.sec-label, .guides-label) { font: 700 15px/1.2 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
html[data-theme="workshop"] :is(.sec-label, .guides-label)::before {
  content: ''; display: inline-block; width: 14px; height: 14px; margin-right: 10px; vertical-align: -1px;
  background: repeating-linear-gradient(-45deg, var(--lip) 0 3px, var(--ink) 3px 6px);
}
html[data-theme="workshop"] .topic-name { text-transform: uppercase; letter-spacing: .03em; font-weight: 700; }
html[data-theme="workshop"] :is(.g-title, .r-name) { font-weight: 700; letter-spacing: .01em; }

/* Wide display faces: keep the home page's "See what each AI says" on one line. */
html:is([data-theme="retro"], [data-theme="terminal"], [data-theme="aurora"]) .explore-head { font-size: 18px; }

/* Dark mode (html[data-mode="dark"]) for the original look and the first seven themes.
   Shared first: the warning, care and error colors every dark theme uses unless it sets its own. */
:root[data-mode="dark"] {
  color-scheme: dark;
  --agree: #7FD1A8; --agree-bg: #16302A;
  --mixed: #F2C66D; --mixed-bg: #3A2E12; --mixed-line: #6B5420; --warn: #F2C66D;
  --disagree: #FF9C7A; --disagree-bg: #3D1E14; --disagree-line: #8A3F28;
  --error: #FF9B9B; --error-bg: #3A1A1A; --danger: #FF8A7A;
  --care: #9CC3F0; --care-bg: #17283D;
  --hold-bg: #33290F; --hold-line: #5E4A1A; --hold-disc: #4A3B15;
  --ad-bg: #1E1E1E; --ad-line: #4A4A4A;
  --thumb-shine: rgba(255, 255, 255, .08);
}

/* ============ Original, at night ============ */
html[data-mode="dark"][data-theme="original"], :is(html[data-mode="dark"], .tl-dark) .tl-sw[data-theme="original"] {
  --bg: #121816; --bg-glow: #18231F; --surface: #1A2320;
  --ink: #E6ECE8; --ink-2: #B4C0BA; --ink-3: #8C9A94;
  --line: #2C3833; --line-strong: #6F7E78;
  --brand: #6CC4A1; --brand-hover: #8BD5B7; --brand-ink: #0C1A14;
  --brand-soft: #183229; --brand-edge: #2C5546; --visited: #B9A6E0;
  --skel: #1E2925; --skel-hi: #26332E; --focus: #7FB0FF;
  --ring: rgba(108, 196, 161, .22); --pulse: rgba(232, 160, 60, .30);
  --shadow-box: 0 6px 24px rgba(0, 0, 0, .45), 0 1px 2px rgba(0, 0, 0, .3);
  --dot-1: #6CC4A1; --dot-2: #E8A03C; --dot-3: #C9B48A; --dot-4: #7FA89B;
  --agree: #7FD1A8; --agree-bg: #183229; --vote-off: #2C3833; --find-rule: rgba(108, 196, 161, .2);
  --t0: #183229; --t0-end: #1E3D32; --t1: #3A2A16; --t1-end: #4A361C;
  --t2: #2E2A1E; --t2-end: #3A3526; --t3: #1A2D2F; --t3-end: #21393C;
}

/* ============ Gazette: the night edition ============ */
html[data-theme="gazette"][data-mode="dark"], :is(html[data-mode="dark"], .tl-dark) .tl-sw[data-theme="gazette"] {
  --bg: #16140F; --bg-glow: #1F1C16; --surface: #1F1C17;
  --ink: #EDE9DF; --ink-2: #C4BFB2; --ink-3: #9A9587;
  --line: #3A362D; --line-strong: #8A8475;
  --brand: #E0707C; --brand-hover: #EA8C96; --brand-ink: #1A0B0D;
  --brand-soft: #3A1E21; --brand-edge: #6A3A40; --visited: #C9A3D1;
  --skel: #26231C; --skel-hi: #302C24; --focus: #7FB0FF;
  --ring: rgba(224, 112, 124, .25);
  --dot-1: #E0707C; --dot-2: #EDE9DF; --dot-3: #D9AE5F; --dot-4: #8E9AA6;
  --agree: #8FD1A4; --agree-bg: #1B2E22; --vote-off: #3A362D; --find-rule: rgba(224, 112, 124, .25);
  --t0: #3A2A28; --t0-end: #4A3431; --t1: #3A3424; --t1-end: #4A412B;
  --t2: #263039; --t2-end: #2F3A45; --t3: #2E2E26; --t3-end: #3A3A30;
  --on-ink: #16140F; --glow-2: #221F18;
}

/* ============ Swiss: departures board ============ */
html[data-theme="swiss"][data-mode="dark"], :is(html[data-mode="dark"], .tl-dark) .tl-sw[data-theme="swiss"] {
  --bg: #0D1117; --bg-glow: #121A2B; --surface: #161B22;
  --ink: #E6EDF3; --ink-2: #B1BAC4; --ink-3: #8B949E;
  --line: #2A313C; --line-strong: #6E7681;
  --brand: #6E9BFF; --brand-hover: #8DB0FF; --brand-ink: #0A1330;
  --brand-soft: #16244A; --brand-edge: #2B4380; --visited: #B69CFF;
  --skel: #1C222B; --skel-hi: #252C36; --focus: #FF8A4C;
  --ring: rgba(110, 155, 255, .28);
  --shadow-box: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 24px -14px rgba(0, 0, 0, .6);
  --dot-1: #6E9BFF; --dot-2: #E6EDF3; --dot-3: #FF6B5E; --dot-4: #8B949E;
  --agree: #6FD49A; --agree-bg: #12291D; --vote-off: #2A313C; --find-rule: rgba(110, 155, 255, .22);
  --t0: #16244A; --t0-end: #1E3060; --t1: #3A1E1C; --t1-end: #4A2724;
  --t2: #1C222B; --t2-end: #262E39; --t3: #15302A; --t3-end: #1C3D35;
}
html[data-theme="swiss"][data-mode="dark"] body {
  background-image: linear-gradient(to right, rgba(110, 155, 255, .06) 1px, transparent 1px);
}

/* ============ Brutal: the poster under a streetlight. Light borders, yellow hard shadows. ============ */
html[data-theme="brutal"][data-mode="dark"], :is(html[data-mode="dark"], .tl-dark) .tl-sw[data-theme="brutal"] {
  --bg: #141414; --bg-glow: #1C1C1C; --surface: #1F1F1F;
  --ink: #F7F3E3; --ink-2: #D6D1BC; --ink-3: #ABA68F;
  --line: #3D3A2A; --line-strong: #F7F3E3;
  --brand: #FF6FA3; --brand-hover: #FF8DB7; --brand-ink: #1A0610;
  --brand-soft: #3A1626; --brand-edge: #7A2E4E; --visited: #C9A6FF;
  --skel: #2A2818; --skel-hi: #3A3720; --focus: #6FA8FF;
  --lip: #FFE14D;
  --dot-1: #FF6FA3; --dot-2: #FFE14D; --dot-3: #6FA8FF; --dot-4: #F7F3E3;
  --agree: #7EE0A6; --agree-bg: #1F1F1F; --vote-off: #3D3A2A; --find-rule: #FFE14D;
  --t0: #3A1626; --t0-end: #4D1D33; --t1: #18284D; --t1-end: #20356A;
  --t2: #2A2A2A; --t2-end: #363636; --t3: #15392A; --t3-end: #1D4D38;
}

/* ============ Seaglass: a tide pool at dusk ============ */
html[data-theme="soft"][data-mode="dark"], :is(html[data-mode="dark"], .tl-dark) .tl-sw[data-theme="soft"] {
  --bg: #0E1A1B; --bg-glow: #10302F; --surface: #142426;
  --ink: #E3F2F1; --ink-2: #B3CCCB; --ink-3: #8AA8A7;
  --line: #22393A; --line-strong: #5E8D8D;
  --brand: #4FD1C5; --brand-hover: #74DDD3; --brand-ink: #062322;
  --brand-soft: #133A3A; --brand-edge: #22605F; --visited: #B7A6F0;
  --skel: #172C2D; --skel-hi: #1F393A; --focus: #FFA25C;
  --ring: rgba(79, 209, 197, .22); --pulse: rgba(242, 153, 74, .30);
  --shadow-box: 0 10px 30px -8px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .3);
  --dot-1: #4FD1C5; --dot-2: #F2994A; --dot-3: #F28B9B; --dot-4: #9BB8F0;
  --agree: #6FD8A0; --agree-bg: #12301F; --vote-off: #22393A; --find-rule: rgba(79, 209, 197, .22);
  --t0: #133A3A; --t0-end: #18494A; --t1: #3A2A1C; --t1-end: #4A3523;
  --t2: #3A1E26; --t2-end: #4A2631; --t3: #1E2640; --t3-end: #283150;
  --hl: #1B4E4C; --glow-2: #2A2018;
}

/* ============ Terracotta: the kiln after hours ============ */
html[data-theme="terra"][data-mode="dark"], :is(html[data-mode="dark"], .tl-dark) .tl-sw[data-theme="terra"] {
  --bg: #1B1410; --bg-glow: #2A1C13; --surface: #241B15;
  --ink: #F2E6D8; --ink-2: #CDBBA8; --ink-3: #A38D79;
  --line: #3D2E24; --line-strong: #8A6E58;
  --brand: #F08A5D; --brand-hover: #F5A47F; --brand-ink: #2A1208;
  --brand-soft: #3D2216; --brand-edge: #6E3B24; --visited: #D9A6C4;
  --skel: #2A2019; --skel-hi: #352920; --focus: #7FB8E6;
  --ring: rgba(240, 138, 93, .22); --pulse: rgba(217, 164, 65, .30);
  --lip: #0E0A08; --lip-2: #8A3A1C;
  --dot-1: #F08A5D; --dot-2: #D9A441; --dot-3: #8FAE83; --dot-4: #7FA3B8;
  --agree: #A6CC94; --agree-bg: #23301C; --vote-off: #3D2E24; --find-rule: rgba(240, 138, 93, .22);
  --t0: #3D2216; --t0-end: #4D2B1C; --t1: #3A3018; --t1-end: #4A3D1F;
  --t2: #26301D; --t2-end: #303D25; --t3: #1E2A30; --t3-end: #26363D;
}

/* ============ Gallery: the museum after closing ============ */
html[data-theme="gallery"][data-mode="dark"], :is(html[data-mode="dark"], .tl-dark) .tl-sw[data-theme="gallery"] {
  --bg: #121212; --bg-glow: #161616; --surface: #1A1A1A;
  --ink: #EDEDEA; --ink-2: #C4C4BF; --ink-3: #9A9A95;
  --line: #2E2E2C; --line-strong: #77776F;
  --brand: #EDEDEA; --brand-hover: #FFFFFF; --brand-ink: #121212;
  --brand-soft: #262624; --brand-edge: #3D3D3A; --visited: #BDB6C4;
  --skel: #222220; --skel-hi: #2C2C2A; --focus: #7FA6FF;
  --dot-1: #EDEDEA; --dot-2: #8C8C87; --dot-3: #FF5A3D; --dot-4: #4A4A47;
  --agree: #D6D6D2; --agree-bg: #262624; --vote-off: #2E2E2C; --find-rule: rgba(237, 237, 234, .2);
  --t0: #222220; --t0-end: #2C2C2A; --t1: #26241F; --t1-end: #302D27;
  --t2: #1F2224; --t2-end: #292D30; --t3: #262320; --t3-end: #302C28;
  --on-ink: #121212;
}

/* ============ Confetti: the after-party ============ */
html[data-theme="pop"][data-mode="dark"], :is(html[data-mode="dark"], .tl-dark) .tl-sw[data-theme="pop"] {
  --bg: #120D26; --bg-glow: #1E1640; --surface: #1B1436;
  --ink: #EDE9FF; --ink-2: #C4BCEB; --ink-3: #9C93C9;
  --line: #2E2557; --line-strong: #7A6FC0;
  --brand: #A48BFF; --brand-hover: #BBA8FF; --brand-ink: #140A33;
  --brand-soft: #261B55; --brand-edge: #4A3A99; --visited: #E3A1EE;
  --skel: #1F1840; --skel-hi: #2A2152; --focus: #FF9D5C;
  --ring: rgba(164, 139, 255, .25); --pulse: rgba(255, 180, 0, .30);
  --lip: #5B34D6;
  --dot-1: #A48BFF; --dot-2: #FFB400; --dot-3: #FF4F8B; --dot-4: #12B5CB;
  --agree: #6FE0A6; --agree-bg: #12301F; --vote-off: #2E2557; --find-rule: rgba(164, 139, 255, .25);
  --t0: #261B55; --t0-end: #31236B; --t1: #3A3014; --t1-end: #4A3D1A;
  --t2: #3A1626; --t2-end: #4A1D31; --t3: #12313A; --t3-end: #183F4A;
}
