/* Futures of Maths: design tokens */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/static/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/static/fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #f6f6fb;
  --surface: #ffffff;
  --surface-2: #eff0f7;
  --text: #12131a;
  --muted: #5c6070;
  --border: #e3e4ee;
  --accent: #4f46e5;
  --accent-strong: #3b3fb6;
  --accent-soft: #ecebff;
  --accent-text: #ffffff;
  --brand-gradient: linear-gradient(135deg, #5b5ef0 0%, #a046e0 100%);
  --agree: #0f8a62;
  --agree-soft: #def6ec;
  --disagree: #d23c50;
  --disagree-soft: #fde4e8;
  --notice-bg: #e6f6ee;
  --error: #c42f45;
  --shadow: 0 1px 2px rgb(16 18 40 / 0.04), 0 10px 30px -14px rgb(16 18 40 / 0.16);
  --radius: 18px;
  --radius-sm: 12px;
  --tabbar-h: 0px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1016;
    --surface: #161922;
    --surface-2: #1d212c;
    --text: #eceef5;
    --muted: #9aa0b4;
    --border: #272b38;
    --accent: #8b8cf8;
    --accent-strong: #a9aafb;
    --accent-soft: #24264a;
    --accent-text: #0e1016;
    --agree: #34d399;
    --agree-soft: #12332a;
    --disagree: #fb7185;
    --disagree-soft: #3d1a24;
    --notice-bg: #12332a;
    --error: #fb7185;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 10px 30px -14px rgb(0 0 0 / 0.6);
  }
}

/* Tag colours: --tc-bg/--tc-fg for chips, --tc-solid for accents */
.tc-none { --tc-bg: var(--surface-2); --tc-fg: var(--muted); --tc-solid: var(--muted); }
.tc-0 { --tc-bg: #e8e9ff; --tc-fg: #3b3fb6; --tc-solid: #5b5ef0; }
.tc-1 { --tc-bg: #fff1d6; --tc-fg: #8a5a00; --tc-solid: #e5a00d; }
.tc-2 { --tc-bg: #d8f5f0; --tc-fg: #0b6b5e; --tc-solid: #14a38f; }
.tc-3 { --tc-bg: #ffe1e8; --tc-fg: #a8234a; --tc-solid: #e0475a; }
.tc-4 { --tc-bg: #f1e4ff; --tc-fg: #6e2bb5; --tc-solid: #9b5de5; }
.tc-5 { --tc-bg: #ddf6e4; --tc-fg: #17703f; --tc-solid: #22a35a; }
.tc-6 { --tc-bg: #ddf0ff; --tc-fg: #0b5c99; --tc-solid: #1e88e5; }
.tc-7 { --tc-bg: #ffe6d6; --tc-fg: #a2440c; --tc-solid: #f0762b; }
.tc-8 { --tc-bg: #ecf6cf; --tc-fg: #4f6a07; --tc-solid: #7fae0f; }
.tc-9 { --tc-bg: #fde0f7; --tc-fg: #9b1f86; --tc-solid: #d63cb8; }
@media (prefers-color-scheme: dark) {
  .tc-0 { --tc-bg: #262a5c; --tc-fg: #b9bcff; }
  .tc-1 { --tc-bg: #3d2f12; --tc-fg: #f7c873; }
  .tc-2 { --tc-bg: #11342f; --tc-fg: #6fe0cd; }
  .tc-3 { --tc-bg: #43182a; --tc-fg: #ff9bb5; }
  .tc-4 { --tc-bg: #2f1d4a; --tc-fg: #d3a8ff; }
  .tc-5 { --tc-bg: #133524; --tc-fg: #7fe0a4; }
  .tc-6 { --tc-bg: #12304a; --tc-fg: #8ccaff; }
  .tc-7 { --tc-bg: #42230f; --tc-fg: #ffb07f; }
  .tc-8 { --tc-bg: #2b3410; --tc-fg: #c9e77c; }
  .tc-9 { --tc-bg: #3f1739; --tc-fg: #f6a0e6; }
}

/* Base */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16.5px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-wrap: break-word;
}
.wrap { max-width: 780px; margin: 0 auto; padding: 0 16px; }
.wrap.wide { max-width: 1140px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--surface); padding: 8px; z-index: 40; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3, h4 { letter-spacing: -0.015em; }
h1 { font-size: 2rem; line-height: 1.15; font-weight: 750; margin: 1.6rem 0 0.75rem; }
h2 { font-size: 1.2rem; line-height: 1.3; font-weight: 680; margin: 0 0 0.5rem; }
h3 { font-size: 1.05rem; font-weight: 650; margin: 1rem 0 0.4rem; }
h4 { font-size: 1rem; font-weight: 650; margin: 1rem 0 0.4rem; }
.lead { font-size: 1.12rem; color: var(--muted); }
.muted, .note { color: var(--muted); }
.small { font-size: 0.9rem; }
main { padding-bottom: 48px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; margin: 16px 0; box-shadow: var(--shadow);
}
.notice { background: var(--notice-bg); border-radius: var(--radius-sm); padding: 14px 18px; margin: 16px 0; }
.notice p { margin: 0.4rem 0; }
.error { color: var(--error); font-weight: 600; }
.crumbs { margin: 1.25rem 0 0; font-size: 0.9rem; color: var(--muted); }
.crumbs a { text-decoration: none; }

/* Hero */
.hero { padding: 28px 0 8px; }
.hero h1 {
  font-size: clamp(2rem, 6vw, 3rem); line-height: 1.05; letter-spacing: -0.03em; margin-top: 0.5rem;
  background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow { display: inline-block; font-size: 0.78rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 0.9rem;
}

/* Header and navigation */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; min-height: 60px; padding-top: 8px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 720; letter-spacing: -0.02em; text-decoration: none; color: var(--text); font-size: 1.05rem; }
.logo { width: 30px; height: 30px; flex: none; }
.badge { font-size: 0.72rem; font-weight: 650; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 1px 8px; letter-spacing: 0; }
nav.topnav, nav.tabs { display: flex; flex-wrap: wrap; gap: 2px; padding: 4px; border-radius: 999px; background: var(--surface-2); }
nav.topnav a, nav.tabs a {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--muted);
  padding: 7px 14px; border-radius: 999px; min-height: 36px; font-size: 0.92rem; font-weight: 550;
}
nav.topnav a:hover, nav.tabs a:hover { color: var(--text); }
nav.topnav a[aria-current], nav.tabs a[aria-current] { color: var(--text); background: var(--surface); box-shadow: 0 1px 3px rgb(16 18 40 / 0.12); }
.icon { width: 22px; height: 22px; flex: none; }
nav.tabs .icon { display: none; }

/* Phones: participant navigation becomes a bottom tab bar */
@media (max-width: 719px) {
  /* A backdrop filter would trap the fixed tab bar inside the header. */
  .site-header { position: static; backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  body.has-tabs { --tabbar-h: 66px; padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom)); }
  nav.tabs {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-radius: 0; padding: 0 0 var(--safe-bottom);
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-top: 1px solid var(--border);
  }
  nav.tabs a {
    flex-direction: column; justify-content: center; gap: 3px; border-radius: 0;
    height: var(--tabbar-h); padding: 6px 2px; font-size: 0.7rem; text-align: center;
  }
  nav.tabs a[aria-current] { background: transparent; box-shadow: none; color: var(--accent); }
  nav.tabs .icon { display: block; }
  h1 { font-size: 1.65rem; }
  .card { padding: 18px; border-radius: 16px; }
}

/* Footer and cookie notice */
.site-footer { border-top: 1px solid var(--border); padding: 22px 0 32px; font-size: 0.88rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--muted); }
.cookie-banner {
  background: var(--accent-soft); border-bottom: 1px solid var(--border);
  padding: 10px 16px; display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap;
}
.cookie-banner p { margin: 0; max-width: 640px; font-size: 0.9rem; }
.cookie-banner button { min-height: 36px; padding: 6px 16px; }
[hidden] { display: none !important; }

/* Buttons and inputs */
.button, button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-weight: 620; cursor: pointer; text-decoration: none; letter-spacing: -0.005em;
  background: var(--accent); color: var(--accent-text); border: 1px solid transparent;
  padding: 10px 20px; border-radius: 12px; min-height: 46px; touch-action: manipulation;
  box-shadow: 0 1px 2px rgb(16 18 40 / 0.1), inset 0 1px 0 rgb(255 255 255 / 0.12);
  transition: transform 0.08s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.button:hover, button:hover { background: var(--accent-strong); }
.button:active, button:active { transform: translateY(1px); }
.button.primary-gradient { background: var(--brand-gradient); color: #fff; }
button.secondary, .button.secondary { background: var(--surface); color: var(--text); border-color: var(--border); box-shadow: none; }
button.secondary:hover, .button.secondary:hover { background: var(--surface-2); }
button.danger { background: var(--disagree); color: #fff; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }
input[type="email"], input[type="text"], textarea, select, .pass-link {
  font: inherit; font-size: 16px; color: var(--text); background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 11px 14px; max-width: 100%; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input[type="email"]:focus, input[type="text"]:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); outline: none; }
textarea { width: 100%; resize: vertical; }
.pass-link { width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.82rem; background: var(--surface-2); }
.inline-form label { display: block; margin-bottom: 6px; font-weight: 550; }
.inline-form input { width: min(100%, 360px); margin: 0 8px 8px 0; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.sticky-actions {
  position: sticky; bottom: calc(var(--tabbar-h) + var(--safe-bottom)); z-index: 5;
  background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 12px 0; margin-top: 8px;
}
@media (max-width: 479px) {
  .sticky-actions button, .vote-buttons button { flex: 1 1 auto; }
}

/* Questions */
fieldset.question { border: 0; padding: 0; margin: 0 0 32px; min-width: 0; }
fieldset.question:last-child { margin-bottom: 0; }
fieldset.question legend { font-weight: 650; padding: 0; margin-bottom: 12px; font-size: 1.02rem; }
.choices { display: grid; gap: 8px; }
.choice {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; cursor: pointer;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface); transition: border-color 0.15s ease, background-color 0.15s ease;
}
.choice:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice input { margin-top: 3px; flex: none; width: 20px; height: 20px; accent-color: var(--accent); }
.other { display: block; margin-top: 6px; font-size: 0.95rem; }
.other input { width: 100%; margin-top: 6px; }

/* 1–5 scales as large tap targets */
.scale { display: grid; grid-template-columns: repeat(5, minmax(44px, 1fr)); gap: 6px; max-width: 420px; }
.scale-end { font-size: 0.8rem; color: var(--muted); }
.scale-end:first-child { grid-column: 1 / 3; grid-row: 2; }
.scale-end:last-child { grid-column: 4 / 6; grid-row: 2; text-align: right; }
.scale-point { position: relative; grid-row: 1; }
.scale-point input { position: absolute; inset: 0; opacity: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.scale-point > span {
  display: flex; align-items: center; justify-content: center; height: 46px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); font-weight: 650; color: var(--muted);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
@media (hover: hover) {
  .scale-point:hover input:not(:checked) + span { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); color: var(--text); }
}
.scale-point input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-text); box-shadow: 0 4px 14px -6px var(--accent); }
.scale-point input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }
.likert-row { padding: 14px 0; border-top: 1px solid var(--border); }
.likert-label { display: block; margin-bottom: 8px; }
@media (min-width: 720px) {
  .likert-row { display: grid; grid-template-columns: 1fr 360px; gap: 20px; align-items: center; }
  .likert-label { margin: 0; }
}

/* Survey overview */
.area-list { margin-top: 8px; }
.area {
  position: relative; display: flex; gap: 14px; align-items: flex-start; cursor: pointer; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 18px 18px 22px; margin: 12px 0;
  box-shadow: var(--shadow); transition: border-color 0.15s ease, opacity 0.15s ease;
}
.area::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--tc-solid); }
.area:not(:has(input:checked)) { opacity: 0.6; box-shadow: none; }
.area input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.area-body { display: grid; gap: 4px; }
.area-title { font-weight: 680; font-size: 1.05rem; }
.area-intro { color: var(--muted); font-size: 0.95rem; }
.area-meta { font-size: 0.85rem; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.area-heading { display: flex; align-items: center; gap: 12px; }
.area-heading::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--tc-solid); flex: none; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); font-size: 0.78rem; font-weight: 600; }
.ok-pill { background: var(--agree-soft); color: var(--agree); }
.muted-pill { text-decoration: line-through; }
progress.progress { width: 100%; height: 6px; appearance: none; border: 0; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin: 4px 0 8px; }
progress.progress::-webkit-progress-bar { background: var(--surface-2); }
progress.progress::-webkit-progress-value { background: var(--brand-gradient); border-radius: 3px; }
progress.progress::-moz-progress-bar { background: var(--brand-gradient); border-radius: 3px; }

/* Guide */
.guide { list-style: none; padding: 0; counter-reset: guide; display: grid; gap: 4px; }
.guide li { counter-increment: guide; }
.guide h2 { display: flex; align-items: center; gap: 10px; }
.guide h2::before {
  content: counter(guide); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-size: 0.85rem; font-weight: 700; flex: none;
}
.guide a { text-decoration: none; color: var(--text); }
.guide a:hover h2 { color: var(--accent); }
.guide p { margin-bottom: 0; color: var(--muted); }
@media (min-width: 720px) {
  .guide { grid-template-columns: 1fr 1fr; gap: 0 16px; }
}

/* Statements and tags */
.statement-card { position: relative; padding-top: 24px; }
.statement-card blockquote { font-size: 1.4rem; line-height: 1.35; font-weight: 600; letter-spacing: -0.015em; margin: 12px 0 22px; }
.vote-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.vote-buttons .agree { background: var(--agree); color: #fff; }
.vote-buttons .disagree { background: var(--disagree); color: #fff; }
@media (prefers-color-scheme: dark) {
  .vote-buttons .agree, .vote-buttons .disagree { color: #0e1016; }
}
.vote-buttons .agree:hover { background: color-mix(in srgb, var(--agree) 85%, #000); }
.vote-buttons .disagree:hover { background: color-mix(in srgb, var(--disagree) 85%, #000); }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 0.78rem; font-weight: 620; padding: 3px 11px; border-radius: 999px; background: var(--tc-bg, var(--accent-soft)); color: var(--tc-fg, var(--accent)); }
.filter { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; margin: 0 -2px; scrollbar-width: none; }
.filter::-webkit-scrollbar { display: none; }
.filter a {
  flex: none; text-decoration: none; color: var(--text); border: 1px solid var(--border); background: var(--surface);
  border-radius: 999px; padding: 6px 14px; font-size: 0.88rem; font-weight: 560; min-height: 36px; display: inline-flex; align-items: center; gap: 8px;
}
.filter a[class^="tc-"]::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tc-solid); }
.filter a[aria-current] { background: var(--text); border-color: var(--text); color: var(--bg); }
@media (min-width: 720px) {
  .filter { flex-wrap: wrap; overflow: visible; }
}
.add-statement summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.add-statement summary::-webkit-details-marker { display: none; }
.add-statement summary::after {
  content: "+"; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-size: 1.3rem; font-weight: 600; flex: none;
}
.add-statement[open] summary::after { content: "–"; }
.add-statement summary h2 { margin: 0; }
.tag-picker { border: 0; padding: 0; margin: 16px 0 0; min-width: 0; }
.tag-picker legend { font-weight: 650; padding: 0; margin-bottom: 10px; }
.chip-options { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-option { position: relative; }
.chip-option input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip-option span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); font-size: 0.9rem; font-weight: 560;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.chip-option span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tc-solid); }
@media (hover: hover) {
  .chip-option:hover span { background: var(--tc-bg); }
}
.chip-option input:checked + span { background: var(--tc-fg); border-color: var(--tc-fg); color: var(--surface); }
.chip-option input:checked + span::before { content: "✓"; width: auto; height: auto; background: none; font-size: 0.85rem; }
.chip-option input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }
.new-tag { display: block; margin-top: 14px; font-size: 0.95rem; }
.new-tag input { display: block; width: min(100%, 360px); margin-top: 6px; }

/* Ranking */
.rank-list { padding-left: 0; list-style: none; }
.rank-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.rank-label { flex: 1 1 220px; }
.rank-buttons { display: none; gap: 6px; }
.rank-list.enhanced .rank-buttons { display: inline-flex; }
.rank-list.enhanced .rank-select { position: absolute; left: -9999px; }
.rank-list.enhanced li[data-ranked="0"] .rank-label { color: var(--muted); }
.rank-list.enhanced { counter-reset: rank; }
.rank-list.enhanced li[data-ranked="1"] .rank-label::before {
  content: counter(rank); counter-increment: rank; display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 10px;
  border-radius: 50%; background: var(--brand-gradient); color: #fff; font-weight: 700; font-size: 0.82rem;
}
.rank-buttons button { min-width: 44px; min-height: 40px; padding: 6px 12px; background: var(--surface); color: var(--text); border-color: var(--border); box-shadow: none; }
.rank-buttons button:hover { background: var(--surface-2); }
.rank-list.enhanced li[data-ranked="0"] button[data-move="up"],
.rank-list.enhanced li[data-ranked="0"] button[data-move="down"] { display: none; }

/* Session and admin */
.danger-zone { border-color: color-mix(in srgb, var(--disagree) 50%, var(--border)); }
.mod-row { border-top: 1px solid var(--border); padding: 16px 0; }
.mod-row textarea { margin-bottom: 4px; }
.mod-row .actions { margin-top: 12px; }
.proposed-tag { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.proposed-tag .choice { border: 0; background: none; padding: 0; }
.proposed-tag input[type="text"] { width: min(100%, 360px); margin-top: 6px; }
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; display: block; overflow-x: auto; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-weight: 650; color: var(--muted); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; }
.prose h1 { margin-top: 0.5rem; }
.prose h2 { margin-top: 1.6rem; }

/* Verification forms */
.form-stack { display: grid; gap: 8px; }
.form-stack label { font-weight: 550; margin-top: 8px; }
.form-stack input[type="email"], .form-stack input[type="text"] { width: 100%; }
.form-stack .note { margin: 0; font-size: 0.9rem; }
.form-stack button { justify-self: start; margin-top: 8px; }
.form-stack label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form-stack label.check input { margin-top: 4px; flex: none; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; }
.callout { background: var(--notice-bg); border-radius: var(--radius-sm); padding: 12px 16px; margin: 16px 0; }
.callout p { margin: 0 0 8px; }
.callout.error { background: var(--disagree-soft); color: var(--error); font-weight: 550; }
.callout.error ul { margin: 0; padding-left: 20px; }
.small-details { margin-top: 12px; font-size: 0.92rem; }
.small-details summary { cursor: pointer; color: var(--accent); }
