/* Karifi stylesheet. Hand-written on the semantic tokens the SPA used
   (ink = surfaces, fg = text, pool = brand, gold = accent). Themes only set
   the tokens; nothing here names a color. No em dashes anywhere. */

:root {
  /* the dark-mode text ladder; light themes define their own (this file loads first) */
  --fg-max: 255 255 255;
  --fg-50: 248 250 252; --fg-100: 241 245 249; --fg-200: 226 232 240; --fg-300: 203 213 225; --fg-400: 148 163 184; --fg-500: 100 116 139;
  --fg-600: 71 85 105; --fg-700: 51 65 85; --fg-800: 30 41 59; --fg-900: 15 23 42; --fg-950: 2 6 23;
  --panel-shadow-a: 0.35; --glass-tint: 0.35; --glass-rim: 0.30; --glass-sheen: 0.18;
  --font-ui: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --rail-w: 236px;
  --rail-docked-w: 56px;
  --chat-w: 320px;
  --radius: 12px;
  --radius-sm: 8px;
  --hairline: rgb(var(--fg-max) / 0.08);
  --surface: rgb(var(--ink-850));
  --surface-2: rgb(var(--ink-800));
  --bg: rgb(var(--ink-950));
  --text: rgb(var(--fg-100));
  --text-2: rgb(var(--fg-400));
  --text-3: rgb(var(--fg-500));
  --brand: rgb(var(--pool-500));
  --brand-strong: rgb(var(--pool-600));
  --brand-soft: rgb(var(--pool-500) / 0.12);
  /* text on the brand colour: white unless the theme says its brand is light (pool-ink) */
  --on-brand: rgb(var(--pool-ink, 255 255 255));
  --gold: rgb(var(--gold-400));
  --shadow: 0 10px 30px rgb(0 0 0 / var(--panel-shadow-a));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  min-height: 100dvh;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
svg { width: 18px; height: 18px; flex: none; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.01em; color: rgb(var(--fg-max)); }
h1 { font-size: clamp(30px, 5vw, 56px); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(22px, 3vw, 34px); font-weight: 750; letter-spacing: -0.02em; }
h3 { font-size: 16px; font-weight: 650; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: var(--radius-sm); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 0; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }
/* 16px or larger, or iOS zooms into every field it focuses */
@media (max-width: 1023px) { input, select, textarea { font-size: 16px !important; } }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--brand); color: var(--on-brand); padding: 8px 12px; border-radius: var(--radius-sm); }
.skip:focus { left: 8px; }
.muted { color: var(--text-2); }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); }
.lede { font-size: 18px; color: var(--text-2); max-width: 56ch; }
.micro { font-size: 13px; color: var(--text-3); }
.meta { font-size: 13px; color: var(--text-2); }
.hairline { border-color: var(--hairline); }

/* ---- Buttons and pills ------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 10px; font-weight: 650; line-height: 1;
  border: 1px solid transparent; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-strong); }
.btn-ghost { border-color: var(--hairline); color: var(--text); background: rgb(var(--fg-max) / 0.03); }
.btn-ghost:hover { background: rgb(var(--fg-max) / 0.07); }
.btn-lg { padding: 14px 22px; font-size: 16px; }
.icon-btn { display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--radius-sm); color: var(--text-2); }
.icon-btn:hover { background: rgb(var(--fg-max) / 0.06); color: var(--text); }
.pill { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgb(var(--fg-max) / 0.07); color: var(--text-2); letter-spacing: 0.02em; }
.pill-live { background: var(--brand-soft); color: var(--brand); }
.badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-size: 10.5px; font-weight: 800; }

/* ---- The command deck -------------------------------------------------- */
body.deck {
  display: grid;
  grid-template-columns: var(--rail-w) minmax(0, 1fr);
  grid-template-areas: "broadcast broadcast" "rail main" "foot foot";
  grid-template-rows: auto 1fr auto;
}
body.deck.docked { grid-template-columns: var(--rail-docked-w) minmax(0, 1fr); }
body.deck.with-chat { grid-template-columns: var(--rail-w) minmax(0, 1fr) var(--chat-w); grid-template-areas: "broadcast broadcast broadcast" "rail main chat" "foot foot foot"; }
body.deck.with-chat.docked { grid-template-columns: var(--rail-docked-w) minmax(0, 1fr) var(--chat-w); }
.broadcast { grid-area: broadcast; background: var(--gold); color: rgb(var(--ink-950)); font-weight: 650; text-align: center; padding: 8px 16px; }
.rail { grid-area: rail; position: sticky; top: 0; height: 100dvh; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; padding: 10px 8px; border-right: 1px solid var(--hairline); background: var(--surface); }
.content { grid-area: main; min-width: 0; }
.chat { grid-area: chat; position: sticky; top: 0; height: 100dvh; overflow-y: auto; border-left: 1px solid var(--hairline); background: var(--surface); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.site-foot { grid-area: foot; display: flex; flex-wrap: wrap; gap: 14px; padding: 18px 24px; font-size: 13px; color: var(--text-3); border-top: 1px solid var(--hairline); }
.site-foot a { color: var(--text-2); }

.rail-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.02em; color: rgb(var(--fg-max)); font-size: 17px; }
.brand:hover { text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--brand); color: var(--on-brand); font-size: 15px; }
.rail-home, .rail .group summary, .rail .group ul a, .rail-signin, .theme-link, .user-chip {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--text-2); font-weight: 550; cursor: pointer; user-select: none;
}
.rail-home:hover, .rail .group summary:hover, .rail .group ul a:hover, .rail-signin:hover, .theme-link:hover, .user-chip:hover { background: rgb(var(--fg-max) / 0.06); color: var(--text); text-decoration: none; }
.rail .active { background: var(--brand-soft); color: var(--brand); }
.rail .group summary { list-style: none; margin-top: 2px; padding: 7px 10px; font-size: 13.5px; font-weight: 650; letter-spacing: 0; text-transform: none; color: var(--text-2); cursor: pointer; }
.rail .group summary::after { content: ""; margin-left: auto; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); opacity: 0.6; transition: transform 160ms ease; }
.rail .group[open] > summary::after { transform: rotate(45deg); }
.rail .group[open] > summary { color: var(--text-3); font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 8px; padding-bottom: 2px; }
.rail .group summary svg { width: 14px; height: 14px; }
.rail .group summary::-webkit-details-marker { display: none; }
.rail .group summary:hover { background: rgb(var(--fg-max) / 0.06); color: var(--text); }
.rail .group ul a { padding-left: 22px; }
.rail .group.owner > summary { color: var(--brand); }
.rail .group ul { margin: 0 0 2px; display: flex; flex-direction: column; gap: 1px; }
.rail .group ul a { padding: 7px 10px; font-size: 14px; }
.onair { display: flex; align-items: center; gap: 10px; margin: 2px 0 8px; padding: 9px 10px; border-radius: 10px; background: var(--brand); color: var(--on-brand); }
.onair:hover { background: var(--brand-strong); text-decoration: none; }
.onair .live-dot { background: #fff; width: 9px; height: 9px; }
.onair-text { display: grid; line-height: 1.2; min-width: 0; }
.onair-label { font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; }
.onair-title { font-size: 13.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail .group .badge { margin-left: auto; }
.group-label { flex: 1; }
.lock { color: var(--text-3); }
.rail-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 2px; }
.user-chip .avatar { width: 30px; height: 30px; border-radius: 999px; object-fit: cover; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 800; }
.user-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.user-name { color: var(--text); font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-handle { font-size: 12px; color: var(--text-3); }
.theme-link { font-size: 13.5px; }

/* Docked: a single icon column; an open group slides its list over the content. */
body.docked .rail { padding: 10px 6px; overflow: visible; }
body.docked .brand-name, body.docked .group-label, body.docked .rail-home span, body.docked .rail-signin span, body.docked .theme-link span, body.docked .user-text, body.docked .onair-text { display: none; }
body.docked .rail-home, body.docked .rail .group summary, body.docked .rail-signin, body.docked .theme-link, body.docked .user-chip { justify-content: center; padding: 10px 0; }
body.docked .rail .group summary { margin-top: 2px; border-radius: 9px; color: var(--text-2); }
body.docked .rail .group summary svg { width: 18px; height: 18px; }
body.docked .rail .group summary:hover { background: rgb(var(--fg-max) / 0.06); color: var(--text); }
body.docked .rail .group.owner > summary { background: var(--brand-soft); color: var(--brand); }
body.docked .onair { justify-content: center; padding: 10px 0; }
body.docked .rail .group { position: relative; }
body.docked .rail .group ul {
  position: absolute; left: calc(100% + 6px); top: 0; z-index: 40; min-width: 220px; margin: 0; padding: 6px; display: flex;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); box-shadow: var(--shadow);
}
body.docked .rail .group .badge { position: absolute; top: 4px; right: 4px; }
body.docked .rail-head { justify-content: center; flex-direction: column; gap: 6px; }

/* ---- Chat column -------------------------------------------------------- */
.chat-head { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); padding-bottom: 10px; border-bottom: 1px solid var(--hairline); }
.channels li a { display: block; padding: 6px 8px; border-radius: 8px; color: var(--text-2); }
.channels li a:hover { background: rgb(var(--fg-max) / 0.06); color: var(--text); text-decoration: none; }

/* ---- Mobile bottom bar and menu sheet ---------------------------------- */
.bottombar { display: none; }
.wheel { display: none; }
.sheet { display: none; }
@media (max-width: 1023px) {
  body.deck, body.deck.docked, body.deck.with-chat, body.deck.with-chat.docked { grid-template-columns: minmax(0, 1fr); grid-template-areas: "broadcast" "main" "foot"; padding-bottom: 64px; }
  .rail, .chat { display: none; }
  .bottombar {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: var(--surface); border-top: 1px solid var(--hairline); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .bottombar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; font-size: 10.5px; color: var(--text-3); border-radius: 8px; }
  .bottombar a.active { color: var(--brand); }
  .bottombar a.live { color: var(--brand); }
  .bottombar a.live .live-dot { position: absolute; top: 4px; right: calc(50% - 16px); width: 7px; height: 7px; background: var(--brand); }
  .bottombar a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .bottombar a:hover { text-decoration: none; }
  .bottombar .badge { position: absolute; top: 2px; right: calc(50% - 18px); }
  .sheet { display: block; position: fixed; inset: 0; z-index: 60; visibility: hidden; }
  .sheet:target { visibility: visible; }
  .sheet-backdrop { position: absolute; inset: 0; background: rgb(0 0 0 / 0.45); }
  .sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88dvh; overflow-y: auto; overscroll-behavior: contain; background: rgb(var(--ink-950) / 0.86); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); border-radius: 22px 22px 0 0; padding: 8px 14px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -12px 40px rgb(0 0 0 / 0.28); }
  @supports not (backdrop-filter: blur(1px)) { .sheet-panel { background: var(--bg); } }
  .sheet:target .sheet-panel { animation: sheet-up 240ms cubic-bezier(0.2, 0.8, 0.2, 1); }
  @keyframes sheet-up { from { transform: translateY(28px); } to { transform: none; } }
  .sheet-grip { width: 40px; height: 5px; border-radius: 999px; background: rgb(var(--fg-max) / 0.18); margin: 2px auto 10px; }
  .sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 0 10px; }
  .sheet-me { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; color: var(--text); border-radius: 14px; padding: 4px; }
  .sheet-me:hover { text-decoration: none; background: rgb(var(--fg-max) / 0.05); }
  .sheet-me .avatar { width: 44px; height: 44px; border-radius: 999px; object-fit: cover; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-size: 15px; font-weight: 800; flex: none; }
  .sheet-me b { display: block; font-size: 16px; line-height: 1.2; }
  .sheet-me .meta { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sheet-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 12px; }
  .sheet-cta .btn { justify-content: center; }
  .sheet-onair { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 10px 12px; border-radius: 14px; background: var(--brand); color: var(--on-brand); }
  .sheet-onair:hover { text-decoration: none; filter: brightness(1.05); }
  .sheet-onair .live-dot { background: #fff; flex: none; }
  .sheet-onair b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.85; }
  .sheet-onair .meta { display: block; color: var(--on-brand); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sheet-onair svg { width: 18px; height: 18px; margin-left: auto; flex: none; }
  .sheet-group { display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); padding: 14px 4px 8px; }
  .sheet-group svg { width: 14px; height: 14px; }
  .sheet-group .badge { margin-left: 2px; }
  .sheet-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  @media (min-width: 560px) { .sheet-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
  .sheet-tiles .tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-height: 78px; padding: 10px 4px; border-radius: 16px; background: var(--surface); border: 1px solid var(--hairline); color: var(--text-2); font-size: 11.5px; font-weight: 600; text-align: center; line-height: 1.15; }
  .sheet-tiles .tile svg { width: 24px; height: 24px; color: var(--text); }
  .sheet-tiles .tile span:not(.badge) { max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .sheet-tiles .tile:hover { text-decoration: none; background: rgb(var(--fg-max) / 0.05); }
  .sheet-tiles .tile.active { background: var(--brand-soft); border-color: transparent; color: var(--brand); }
  /* the journeys as compact cards, two across, like the console map */
  .sheet-map { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
  @media (min-width: 560px) { .sheet-map { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  .sheet-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px; padding: 10px 12px 6px; display: grid; align-content: start; min-width: 0; }
  .sheet-card h3 { margin: 0 0 4px; display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
  .sheet-card h3 svg { width: 14px; height: 14px; }
  .sheet-card a { display: block; padding: 7px 0; border-top: 1px solid var(--hairline); color: var(--text); font-size: 14px; font-weight: 600; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sheet-card a:first-of-type { border-top: 0; }
  .sheet-card a.active { color: var(--brand); }
  .sheet-card a .meta { font-weight: 400; font-size: 11px; }
  .sheet-card.owner { grid-column: 1 / -1; }
  .sheet-tiles .tile.active svg { color: var(--brand); }
  .sheet-tiles .tile .badge { position: absolute; top: 6px; right: 6px; }
  .sheet-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 18px 4px 0; font-size: 12.5px; color: var(--text-3); }
  .sheet-foot a { color: var(--text-3); }
  .sheet-foot form { margin-left: auto; }
  .sheet-foot button { background: none; border: 1px solid var(--hairline); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--text-2); cursor: pointer; }

  /* the thumb wheel: a hub at the bottom centre; the journeys fan out on a half circle above it, no scripts */
  html[data-nav="wheel"] .bottombar { display: none; }
  html[data-nav="wheel"] .wheel { display: block; position: fixed; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); width: 0; height: 0; z-index: 55; }
  .wheel-hub { position: absolute; left: -32px; bottom: 0; width: 64px; height: 64px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; box-shadow: 0 6px 20px rgb(0 0 0 / 0.25); cursor: pointer; z-index: 2; }
  .wheel-hub svg { position: absolute; width: 26px; height: 26px; transition: transform 200ms ease, opacity 200ms ease; }
  .wheel-hub .x { opacity: 0; transform: rotate(-90deg) scale(0.6); }
  .wheel-toggle:checked ~ .wheel-hub .menu { opacity: 0; transform: rotate(90deg) scale(0.6); }
  .wheel-toggle:checked ~ .wheel-hub .x { opacity: 1; transform: none; }
  .wheel-toggle:focus-visible ~ .wheel-hub { outline: 3px solid var(--brand); outline-offset: 3px; }
  .wheel-backdrop { position: fixed; inset: 0; background: rgb(0 0 0 / 0.5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transition: opacity 200ms ease, visibility 0s 200ms; }
  .wheel-toggle:checked ~ .wheel-backdrop { opacity: 1; visibility: visible; transition-delay: 0s; }
  /* the ring: twelve slots 30deg apart, the first six across the top half; the second radio turns the whole ring by half a turn */
  .wheel-items { list-style: none; margin: 0; padding: 0; position: absolute; left: 0; bottom: 32px; width: 0; height: 0; transition: transform 460ms cubic-bezier(0.3, 0.7, 0.2, 1); }
  .wheel-page:checked#wheel-p2 ~ .wheel-items { transform: rotate(180deg); }
  .wheel-items li { --a: calc(-165deg + (360deg / var(--n)) * var(--i)); position: absolute; left: -31px; bottom: -31px; width: 62px; height: 62px; transform: rotate(var(--a)) translate(0) rotate(calc(-1 * var(--a))) scale(0.3); opacity: 0; visibility: hidden; transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 160ms ease, visibility 0s 260ms; }
  .wheel-toggle:checked ~ .wheel-items li { transform: rotate(var(--a)) translate(128px) rotate(calc(-1 * var(--a))) scale(1); opacity: 1; visibility: visible; transition-delay: calc(mod(var(--i), 6) * 28ms), calc(mod(var(--i), 6) * 28ms), 0s; }
  /* labels stay upright after the half turn; the half below the hub is out of reach for fingers and keyboards alike */
  .wheel-page:checked#wheel-p2 ~ .wheel-toggle:checked ~ .wheel-items li, .wheel-toggle:checked ~ .wheel-page:checked#wheel-p2 ~ .wheel-items li { transform: rotate(var(--a)) translate(128px) rotate(calc(-1 * var(--a) - 180deg)) scale(1); }
  .wheel-page:checked#wheel-p1 ~ .wheel-items li.p2, .wheel-page:checked#wheel-p2 ~ .wheel-items li:not(.p2) { visibility: hidden !important; opacity: 0 !important; }
  /* the spin tab sits on the hub's shoulder and only while the wheel is open */
  .wheel-spin { position: absolute; left: 30px; bottom: 44px; width: 38px; height: 38px; border-radius: 50%; background: var(--surface-2); border: 1px solid rgb(var(--fg-max) / 0.16); box-shadow: 0 4px 14px rgb(0 0 0 / 0.18); color: var(--brand); display: grid; place-items: center; cursor: pointer; z-index: 3; opacity: 0; visibility: hidden; transition: opacity 160ms ease, visibility 0s 160ms; }
  .wheel-spin svg { width: 18px; height: 18px; transform: rotate(-90deg); }
  .wheel-spin.back svg { transform: rotate(90deg); }
  .wheel-toggle:checked ~ .wheel-spin.next, .wheel-toggle:checked ~ .wheel-spin.back { visibility: visible; opacity: 1; transition-delay: 0s; }
  .wheel-page:checked#wheel-p2 ~ .wheel-spin.next, .wheel-page:checked#wheel-p1 ~ .wheel-spin.back { visibility: hidden !important; opacity: 0 !important; }
  .wheel-page:focus-visible ~ .wheel-spin { outline: 3px solid var(--brand); outline-offset: 2px; }
  /* the Back disc on the other shoulder: the page you came from, while the wheel is open */
  .wheel-back { position: absolute; left: -68px; bottom: 44px; width: 38px; height: 38px; border-radius: 50%; background: var(--surface-2); border: 1px solid rgb(var(--fg-max) / 0.16); box-shadow: 0 4px 14px rgb(0 0 0 / 0.18); color: var(--brand); display: grid; place-items: center; z-index: 3; opacity: 0; visibility: hidden; transition: opacity 160ms ease, visibility 0s 160ms; }
  .wheel-back svg { width: 18px; height: 18px; transform: rotate(180deg); }
  .wheel-toggle:checked ~ .wheel-back { visibility: visible; opacity: 1; transition-delay: 0s; }
  body.docked .wheel-back { display: none; }
  .wheel-items a { position: relative; display: grid; justify-items: center; align-content: center; gap: 3px; width: 62px; height: 62px; border-radius: 50%; background: var(--surface-2); border: 1px solid rgb(var(--fg-max) / 0.16); box-shadow: 0 6px 18px rgb(0 0 0 / 0.35); color: var(--text); font-size: 10px; font-weight: 650; line-height: 1; text-align: center; }
  .wheel-items a:hover { text-decoration: none; }
  .wheel-items a svg { width: 20px; height: 20px; }
  .wheel-items a span { max-width: 56px; font-size: 9.5px; line-height: 1.05; white-space: normal; }
  .wheel-items a.active { background: var(--brand); color: var(--on-brand); border-color: transparent; }
  .wheel-items a.active .live-dot { background: var(--on-brand); }
  .wheel-items a.live { color: var(--brand); }
  .wheel-items a.live.active { color: var(--on-brand); }
  .wheel-items a .live-dot { position: absolute; top: 8px; right: 12px; width: 7px; height: 7px; background: var(--brand); }
  .wheel-items .badge { position: absolute; top: -4px; right: -4px; }
}

/* the ring on the desktop: with the rail docked to icons and the wheel chosen, the journeys leave the rail
   and fan out from a hub at its foot into a quarter circle over the page; the same markup, no scripts */
@media (min-width: 1024px) {
  html[data-nav="wheel"] body.docked .rail-home, html[data-nav="wheel"] body.docked .rail .group { display: none; }
  html[data-nav="wheel"] body.docked .wheel { display: block; position: fixed; left: calc(var(--rail-docked-w) / 2); bottom: 132px; width: 0; height: 0; z-index: 55; }
  html[data-nav="wheel"] body.docked .wheel-hub { position: absolute; left: -24px; bottom: 0; width: 48px; height: 48px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; box-shadow: 0 6px 20px rgb(0 0 0 / 0.25); cursor: pointer; z-index: 2; }
  html[data-nav="wheel"] body.docked .wheel-hub svg { position: absolute; width: 22px; height: 22px; transition: transform 200ms ease, opacity 200ms ease; }
  html[data-nav="wheel"] body.docked .wheel-hub .x { opacity: 0; transform: rotate(-90deg) scale(0.6); }
  html[data-nav="wheel"] body.docked .wheel-toggle:checked ~ .wheel-hub .menu { opacity: 0; transform: rotate(90deg) scale(0.6); }
  html[data-nav="wheel"] body.docked .wheel-toggle:checked ~ .wheel-hub .x { opacity: 1; transform: none; }
  html[data-nav="wheel"] body.docked .wheel-toggle:focus-visible ~ .wheel-hub { outline: 3px solid var(--brand); outline-offset: 3px; }
  html[data-nav="wheel"] body.docked .wheel-backdrop { position: fixed; inset: 0; background: rgb(0 0 0 / 0.25); opacity: 0; visibility: hidden; transition: opacity 200ms ease, visibility 0s 200ms; }
  html[data-nav="wheel"] body.docked .wheel-toggle:checked ~ .wheel-backdrop { opacity: 1; visibility: visible; transition-delay: 0s; }
  html[data-nav="wheel"] body.docked .wheel-items { list-style: none; margin: 0; padding: 0; position: absolute; left: 0; bottom: 24px; width: 0; height: 0; }
  /* six on a wide arc, from nearly straight up round to below straight right, clear of the rail; the second six take the same seats */
  html[data-nav="wheel"] body.docked .wheel-items li { --a: calc(-76deg + 22deg * mod(var(--i), 6)); position: absolute; left: -31px; bottom: -31px; width: 62px; height: 62px; transform: rotate(var(--a)) translate(0) rotate(calc(-1 * var(--a))) scale(0.3); opacity: 0; visibility: hidden; transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 160ms ease, visibility 0s 260ms; }
  html[data-nav="wheel"] body.docked .wheel-toggle:checked ~ .wheel-items li { transform: rotate(var(--a)) translate(184px) rotate(calc(-1 * var(--a))) scale(1); opacity: 1; visibility: visible; transition-delay: calc(mod(var(--i), 6) * 28ms), calc(mod(var(--i), 6) * 28ms), 0s; }
  html[data-nav="wheel"] body.docked .wheel-page:checked#wheel-p1 ~ .wheel-items li.p2, html[data-nav="wheel"] body.docked .wheel-page:checked#wheel-p2 ~ .wheel-items li:not(.p2) { visibility: hidden !important; opacity: 0 !important; }
  html[data-nav="wheel"] body.docked .wheel-spin { position: absolute; left: 26px; bottom: -8px; width: 34px; height: 34px; border-radius: 50%; background: var(--surface); border: 1px solid var(--hairline); box-shadow: 0 4px 14px rgb(0 0 0 / 0.18); color: var(--brand); display: grid; place-items: center; cursor: pointer; z-index: 3; opacity: 0; visibility: hidden; transition: opacity 160ms ease, visibility 0s 160ms; }
  html[data-nav="wheel"] body.docked .wheel-spin svg { width: 16px; height: 16px; }
  html[data-nav="wheel"] body.docked .wheel-spin.back svg { transform: rotate(180deg); }
  html[data-nav="wheel"] body.docked .wheel-toggle:checked ~ .wheel-spin.next, html[data-nav="wheel"] body.docked .wheel-toggle:checked ~ .wheel-spin.back { visibility: visible; opacity: 1; transition-delay: 0s; }
  html[data-nav="wheel"] body.docked .wheel-page:checked#wheel-p2 ~ .wheel-spin.next, html[data-nav="wheel"] body.docked .wheel-page:checked#wheel-p1 ~ .wheel-spin.back { visibility: hidden !important; opacity: 0 !important; }
  html[data-nav="wheel"] body.docked .wheel-items a { position: relative; display: grid; justify-items: center; align-content: center; gap: 3px; width: 62px; height: 62px; border-radius: 50%; background: var(--surface); border: 1px solid var(--hairline); box-shadow: 0 4px 14px rgb(0 0 0 / 0.18); color: var(--text-2); font-size: 10px; font-weight: 650; line-height: 1; text-align: center; }
  html[data-nav="wheel"] body.docked .wheel-items a:hover { text-decoration: none; color: var(--text); }
  html[data-nav="wheel"] body.docked .wheel-items a svg { width: 20px; height: 20px; }
  html[data-nav="wheel"] body.docked .wheel-items a span { max-width: 56px; font-size: 9.5px; line-height: 1.05; white-space: normal; }
  html[data-nav="wheel"] body.docked .wheel-items a.active { color: var(--brand); border-color: var(--brand); }
  html[data-nav="wheel"] body.docked .wheel-items a.live { color: var(--brand); }
  html[data-nav="wheel"] body.docked .wheel-items a .live-dot { position: absolute; top: 8px; right: 12px; width: 7px; height: 7px; background: var(--brand); }
  html[data-nav="wheel"] body.docked .wheel-items .badge { position: absolute; top: -4px; right: -4px; }
}

/* ---- Page blocks --------------------------------------------------------- */
.block { padding: 36px clamp(16px, 4vw, 48px) 48px; max-width: 1180px; margin: 0 auto; width: 100%; }
.block.narrow, .content.narrow { max-width: 760px; }
.block.wide { max-width: 1320px; }
.block.band { background: rgb(var(--fg-max) / 0.025); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); max-width: none; }
.block.band > * { max-width: 1084px; margin-left: auto; margin-right: auto; }
.block-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 6px 16px; margin-bottom: 22px; }
.block-head .kicker { grid-column: 1 / -1; }
.block-head .more { font-weight: 650; }
.block h2 + .steps, .block h2 + .safeguards { margin-top: 26px; }
.block .kicker + h2 { margin-top: 10px; }

.hero { padding: clamp(40px, 8vw, 96px) clamp(16px, 4vw, 48px) 40px; max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.hero h1 .line { display: block; }
.hero-onair { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px; background: var(--brand); color: var(--on-brand); max-width: 760px; width: 100%; }
.hero-onair:hover { background: var(--brand-strong); text-decoration: none; }
.hero-onair .live-dot { background: #fff; width: 10px; height: 10px; }
.hero-onair b { font-size: 16px; }
.hero-onair .meta { color: rgb(255 255 255 / 0.8); }
.hero-onair .btn { margin-left: auto; background: #fff; color: var(--brand); }
.hero .lede { max-width: 62ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Search: big, central, Amazon school. Never collapses to an icon. */
.search {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; width: 100%; max-width: 760px;
  padding: 6px 6px 6px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--hairline); box-shadow: var(--shadow);
}
.search svg { color: var(--text-3); width: 20px; height: 20px; }
.search input { width: 100%; min-width: 0; padding: 12px 6px; border: 0; background: transparent; color: var(--text); font-size: 17px; outline: none; }
.search input::placeholder { color: var(--text-3); }
.search:focus-within { border-color: var(--brand); }

.grid.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; transition: transform 120ms ease, box-shadow 120ms ease; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card-link { display: flex; flex-direction: column; gap: 10px; padding: 16px; color: inherit; height: 100%; }
.card-link:hover { text-decoration: none; }
.card header { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.card .logo { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.card .logo.initials { display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px; }
.card-title h3 { font-size: 16.5px; }
.card .one-liner { color: var(--text-2); font-size: 14px; }
.card .paid-back { font-size: 13px; color: var(--brand); margin: 0; }
.score-inline { color: var(--brand); font-weight: 600; }
.card.idea .ready { color: var(--brand); font-weight: 600; }
/* discussions: the list rows and the thread */
/* the feed: one column of posts, the box on top */
.block.feed { max-width: 760px; }
.welcome-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 16px; margin-bottom: 14px; border: 1px solid var(--hairline); border-radius: var(--radius); background: var(--surface); }
.welcome-strip p { margin: 0; }
.welcome-strip .row { display: inline-flex; align-items: center; gap: 10px; }
.post-box { margin: 0 0 12px; border: 1px solid var(--hairline); border-radius: var(--radius); background: var(--surface); }
.post-box summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; }
.post-box summary::-webkit-details-marker { display: none; }
.post-box summary .prompt { flex: 1; color: var(--text-3); }
.post-box[open] summary .prompt, .post-box[open] summary .btn { display: none; }
.post-box .form { padding: 0 12px 12px; display: grid; gap: 8px; }
.post-box .form .row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.post-box .form .row .btn { margin-left: auto; }
.post-box textarea { min-height: 64px; }
/* the feed bar: one scrolling strip of board tabs, the sort as quiet text under it */
.feed-bar { margin: 0 0 12px; }
.tabs.boards { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin: 0 calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding: 0 max(16px, env(safe-area-inset-left, 0px)); border-bottom: 1px solid var(--hairline); }
.tabs.boards::-webkit-scrollbar { display: none; }
.tabs.boards .tab { flex: 0 0 auto; padding: 10px 12px 9px; font-size: 14.5px; font-weight: 600; color: var(--text-2); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs.boards .tab.on { color: var(--text); border-bottom-color: var(--brand); }
.tabs.boards .tab:hover { text-decoration: none; color: var(--text); }
.sort { display: flex; align-items: center; gap: 14px; padding: 8px 2px 0; font-size: 13px; }
.sort a { color: var(--text-3); font-weight: 600; }
.sort a.on { color: var(--brand); }
.sort .board-blurb { margin-left: 4px; }
.sort .follow { margin-left: auto; }
@media (min-width: 700px) { .tabs.boards { margin: 0; padding: 0; } }
.board-blurb { align-self: center; }
.posts { display: grid; gap: 10px; }
.post-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 12px 14px 10px; display: grid; gap: 8px; min-width: 0; }
.post-card.pinned { border-color: rgb(var(--fg-max) / 0.2); }
.post-card .meta.top { margin: 0; }
.post-card .board-tag { font-weight: 650; color: var(--brand); }
.post-title { margin: 0; font-size: 18px; line-height: 1.25; }
.post-title a { color: var(--text); }
.post-media { display: grid; gap: 4px; border-radius: 10px; overflow: hidden; max-height: 560px; background: rgb(var(--fg-max) / 0.04); }
.post-media img { width: 100%; max-height: 560px; object-fit: contain; display: block; }
.post-media.many { grid-template-columns: 1fr 1fr; }
.post-media.embed { aspect-ratio: 16 / 9; max-height: none; background: #000; }
.post-media.embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.post-media.clip video { width: 100%; max-height: 560px; display: block; background: #000; }
.post-audio audio { width: 100%; display: block; }
.post-actions .act.on, .linklike.on { color: var(--brand); }
.post-actions .act.linklike { text-decoration: none; font: inherit; font-size: 13px; font-weight: 600; }
.chips .follow { margin-left: auto; }
.post-media.many img { aspect-ratio: 1; object-fit: cover; max-height: none; }
.link-card { display: grid; grid-template-columns: minmax(0, 1fr); border: 1px solid var(--hairline); border-radius: 10px; overflow: hidden; color: var(--text); background: var(--surface-2); }
.link-card img { width: 100%; max-height: 320px; object-fit: cover; display: block; }
.link-card .link-text { display: grid; gap: 2px; padding: 10px 12px; }
.link-card .link-text b { font-size: 15px; line-height: 1.3; }
.link-card:hover { text-decoration: none; border-color: rgb(var(--fg-max) / 0.25); }
.post-excerpt { margin: 0; color: var(--text-2); font-size: 15px; }
.post-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.post-actions .act { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.post-actions .act svg { width: 16px; height: 16px; }
.post-actions .vote { display: inline-flex; align-items: center; gap: 4px; }
.post-actions .vote b { min-width: 2ch; text-align: center; }
.discuss-thread .post-media { margin: 10px 0 0; }
.thread-actions { margin: 12px 0 4px; }
.thread-actions { line-height: 1.2; }
.thread-actions > *, .thread-actions .share, .thread-actions .more-actions { display: inline-flex; align-items: center; }
.thread-actions .share > summary, .thread-actions .more-actions > summary { display: inline-flex; align-items: center; background: none; border: 0; padding: 0; margin: 0; font: inherit; font-size: 13px; font-weight: 600; line-height: 1.2; color: var(--text-2); }
.thread-actions .vote-btn { line-height: 1.2; }
.thread-actions .share, .thread-actions .more-actions, .thread-actions .inline-form { margin: 0; }
.thread-actions .share > summary:hover { color: var(--text); }
.more-actions { position: relative; display: inline-block; }
.more-actions > summary { list-style: none; cursor: pointer; }
.more-actions > summary::-webkit-details-marker { display: none; }
.more-sheet { position: absolute; left: 0; top: calc(100% + 8px); z-index: 20; min-width: 240px; padding: 10px 12px; border: 1px solid var(--hairline); border-radius: 12px; background: var(--surface); box-shadow: 0 12px 32px rgb(0 0 0 / 0.18); display: grid; gap: 8px; }
.more-sheet .linklike { text-decoration: none; font-size: 14px; color: var(--text); }
.discuss-thread .link-card { margin: 10px 0 0; }

.threads { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.thread-row { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 14px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); }
.threads.compact { margin-top: 0; }
.threads.compact .thread-row { padding: 10px 12px; }
.thread-row .score { display: grid; justify-items: center; line-height: 1.1; }
.thread-row .score b { font-size: 18px; }
.thread-row .score span { font-size: 10.5px; color: var(--text-3); }
.thread-title { font-weight: 700; font-size: 16px; color: var(--text); }
.thread-main .meta { margin: 2px 0 0; }
.post .post-body { margin: 10px 0 14px; }
.vote-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.vote { display: inline-flex; align-items: center; gap: 6px; }
.city-backers { margin: 8px 0 0; }
.faces { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; }
.faces .face .avatar { width: 32px; height: 32px; }
.quiet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px 16px; margin-bottom: 10px; }
.page-actions .search.sm { margin: 0; max-width: 320px; padding: 2px 4px 2px 10px; }
.page-actions .search.sm input { font-size: 14px; }
.places tr.mine td { background: var(--brand-soft); }
.places td.num, .places th.num { text-align: right; }
.league tr.mine td { background: var(--brand-soft); }
.league td.num, .league th.num { text-align: right; }
.record .founder-score { margin-bottom: 20px; }
.record .steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.score-trend { display: flex; align-items: center; gap: 10px; margin: 8px 0 0; font-size: 13px; color: var(--text-2); }
.share { position: relative; display: inline-block; }
.share > summary { list-style: none; cursor: pointer; }
.share > summary::-webkit-details-marker { display: none; }
.share-sheet { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: min(360px, 90vw); padding: 12px; border: 1px solid var(--hairline); border-radius: 12px; background: var(--surface); box-shadow: 0 12px 32px rgb(0 0 0 / 0.18); display: grid; gap: 10px; }
.share-card { width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--hairline); }
.share-links { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.share-url { display: grid; gap: 4px; font-size: 12px; color: var(--text-3); }
.share-url input { width: 100%; font-size: 13px; }
.discuss-thread .share { margin-top: 0; }
.discuss-thread .share-sheet { right: auto; left: 0; }
@media (max-width: 1023px) { .share-sheet, .discuss-thread .share-sheet { position: fixed; left: 12px; right: 12px; top: auto; bottom: calc(84px + env(safe-area-inset-bottom)); width: auto; max-height: 70dvh; overflow: auto; } }
.flag-it{display:inline-block}.flag-it>summary{list-style:none;cursor:pointer}.flag-it>summary::-webkit-details-marker{display:none}.flag-it form{display:flex;gap:.4rem;flex-wrap:wrap;margin-top:.4rem}.flag-it input{flex:1 1 12rem;min-width:0}
.vote-btn { background: var(--surface-2); border: 1px solid var(--hairline); border-radius: 8px; padding: 2px 8px; font-size: 12px; color: var(--text-2); cursor: pointer; }
.vote-btn.on { background: var(--brand-soft); color: var(--brand); border-color: var(--brand); }
.replies { display: grid; gap: 10px; margin: 22px 0; }
.reply { padding: 12px 14px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); }
.reply .reply { margin: 10px 0 0 14px; padding: 10px 0 0 12px; border: 0; border-left: 2px solid var(--hairline); border-radius: 0; background: transparent; }
.reply .reply .reply .reply .reply { margin-left: 4px; padding-left: 8px; }
@media (max-width: 700px) { .reply .reply { margin-left: 6px; padding-left: 10px; } }
.reply > summary { list-style: none; cursor: pointer; display: block; }
.reply > summary::-webkit-details-marker { display: none; }
.reply > summary .meta { display: block; }
.reply > summary .meta::before { content: "▾ "; color: var(--text-3); font-size: 11px; }
.reply:not([open]) > summary .meta::before { content: "▸ "; }
.reply > summary .folded { display: none; color: var(--text-3); }
.reply:not([open]) > summary .folded { display: inline; }
.reply .body { margin: 6px 0 8px; }
.reply-to summary { cursor: pointer; }
.reply-to .form { margin-top: 8px; }
.early { margin: 10px 0 0; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--hairline); font-size: 13.5px; color: var(--text-2); }
.early.mine { border-color: var(--brand-soft); color: var(--text); }
code.invite { display: block; padding: 10px 12px; font-size: 14px; word-break: break-all; }
.terms-ready .stats.tiles { margin: 10px 0 14px; }
.terms-ready .two-up { margin-bottom: 10px; }
.founder-score { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--hairline); border-radius: var(--radius-sm); background: var(--surface-2); }
.score-head { display: flex; align-items: baseline; gap: 10px; margin: 0; }
.score-head b { font-size: 28px; line-height: 1; color: var(--brand); letter-spacing: -0.02em; }
.score-head span { font-size: 13px; font-weight: 600; color: var(--text-2); }
.score-lines { margin: 8px 0 6px; padding-left: 18px; font-size: 13px; color: var(--text-2); display: grid; gap: 2px; }
.founder-score .micro { margin: 0; }
.stat.paid b { color: var(--brand); }
.paid-back-panel { border-color: var(--brand-soft); }
.paid-back-panel .lede-sm { font-size: 15px; color: var(--text-2); margin: 0 0 10px; }
.bar { height: 6px; border-radius: 6px; background: rgb(var(--fg-max) / 0.08); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--brand); }
.numbers { font-size: 14px; color: var(--text-2); }
.numbers b { color: var(--text); font-size: 16px; }
.drop-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.drop-img.placeholder { opacity: 0.85; }
.card.sold-out .drop-img { filter: grayscale(0.6); opacity: 0.7; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; counter-reset: step; }
.steps li { display: grid; gap: 8px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--hairline); }
.step-n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-weight: 800; }
.steps p { color: var(--text-2); font-size: 14.5px; }
.safeguards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.safeguards li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.safeguards svg { color: var(--brand); width: 22px; height: 22px; margin-top: 2px; }
.safeguards p { color: var(--text-2); font-size: 14.5px; margin-top: 4px; }
.cta { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; padding-bottom: 72px; }

body.plain { display: grid; place-items: start center; }

/* ---- Public pages (slice 1) ---------------------------------------------- */
/* The one page head: kicker, title, a line of intro on the left; the primary action on the right. */
.page-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 20px; align-items: end; margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--hairline); }
.page-head > .kicker, .page-head > h1, .page-head > .lede, .page-head > .meta, .page-head > .notice { grid-column: 1; }
.page-head .page-title { display: grid; gap: 6px; min-width: 0; }
.page-head .page-title.with-logo { grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; align-items: center; }
.page-head .page-title.with-logo > .logo, .page-head .page-title.with-logo > .avatar { grid-row: 1 / span 3; }
.page-head h1 { font-size: clamp(26px, 4vw, 40px); }
.page-head .lede { font-size: 17px; }
.page-head .meta { max-width: 70ch; }
.page-actions { grid-column: 2; grid-row: 1 / span 4; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; align-self: center; }
.page-head.plain { border-bottom: 0; padding-bottom: 0; }
@media (max-width: 700px) { .page-head { grid-template-columns: 1fr; } .page-actions { grid-column: 1; grid-row: auto; justify-content: flex-start; } }
.count { font-size: 0.6em; font-weight: 700; color: var(--text-3); vertical-align: middle; margin-left: 6px; }
.section-h { font-size: 18px; margin: 34px 0 14px; display: flex; align-items: center; gap: 8px; }
.section-h .swatch { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.empty { padding: 28px 0; }
.empty-state { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 40px 20px; margin: 8px 0 18px; border: 1px dashed var(--hairline); border-radius: var(--radius); background: var(--surface); }
.empty-state svg { width: 30px; height: 30px; color: var(--text-3); }
.empty-state p { margin: 0; max-width: 440px; color: var(--text-2); }
.panel .empty-state { margin: 0; padding: 28px 16px; background: transparent; }
.block .search { margin: 6px 0 14px; }
.page-head + .search { margin: 0 0 22px; max-width: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 18px; }
.chips.small { margin-top: -8px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--hairline); color: var(--text-2); font-size: 13px; font-weight: 550; }
.chips.small .chip { padding: 4px 10px; font-size: 12px; }
.chip:hover { text-decoration: none; border-color: var(--text-3); color: var(--text); }
.chip.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.chip .count { margin-left: 2px; font-size: 11px; }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--text-3); margin-bottom: 14px; }
.panel { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 10px; align-content: start; }
.panel h2 { font-size: 19px; }
.panel h3 { font-size: 15px; margin-top: 6px; }
.panel p { color: var(--text-2); font-size: 14.5px; }
.panel.highlight { border-color: var(--brand); background: var(--brand-soft); }
.panel.highlight p { color: var(--text); }
.two-up { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.narratives { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.stats { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.stat { display: grid; gap: 2px; }
.stat b { font-size: 20px; color: rgb(var(--fg-max)); letter-spacing: -0.01em; }
.stat span { font-size: 12.5px; color: var(--text-3); }
.stats.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.stats.tiles .stat { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 16px 18px; }
.stats.tiles .stat b { font-size: 26px; }
@media (max-width: 600px) { .stats.tiles { grid-template-columns: 1fr 1fr; gap: 8px; } .stats.tiles .stat { padding: 10px 12px; } .stats.tiles .stat b { font-size: 22px; } .console-map { grid-template-columns: 1fr; } }
.ticks { display: grid; gap: 8px; padding-left: 0; }
.ticks li { padding-left: 24px; position: relative; color: var(--text-2); font-size: 14.5px; }
.ticks li::before { content: "\2713"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
.ticks.warn li::before { content: "!"; color: var(--gold); }
.numbered { list-style: decimal; padding-left: 22px; display: grid; gap: 8px; color: var(--text-2); font-size: 14.5px; }
.funds { display: grid; gap: 8px; }
.funds li { display: grid; grid-template-columns: minmax(90px, 1fr) 2fr auto; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-2); }
.funds li b { color: var(--text); font-variant-numeric: tabular-nums; }
.milestones { display: grid; gap: 8px; }
.milestones li { display: flex; align-items: center; gap: 10px; color: var(--text-3); font-size: 14px; }
.milestones li .dot { width: 10px; height: 10px; border-radius: 999px; border: 2px solid var(--text-3); }
.milestones li.hit { color: var(--text); }
.milestones li.hit .dot { background: var(--brand); border-color: var(--brand); }
.deck { display: grid; gap: 10px; padding: 0; }
.deck .slide { border: 1px solid var(--hairline); border-radius: 10px; padding: 12px 14px; display: grid; gap: 6px; }
.deck .slide ul { list-style: disc; padding-left: 18px; color: var(--text-2); font-size: 14px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.gallery figure { margin: 0; display: grid; gap: 4px; }
.gallery img, .gallery .ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.gallery figcaption { font-size: 12px; color: var(--text-3); }
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.team li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.team li b { display: block; color: var(--text); }
.team li p { font-size: 13.5px; }
.avatar { width: 36px; height: 36px; border-radius: 999px; object-fit: cover; display: grid; place-items: center; background: var(--brand-soft); color: #fff; font-weight: 800; font-size: 13px; flex: none; }
.avatar.lg { width: 48px; height: 48px; font-size: 16px; }
.avatar.xl { width: 84px; height: 84px; font-size: 28px; }
.person { display: flex; align-items: center; gap: 10px; color: inherit; }
.person:hover { text-decoration: none; }
.person b { display: block; }
.person .meta { display: block; }
.qa { display: grid; gap: 14px; }
.qa .q { color: var(--text); font-weight: 600; }
.qa .a { margin-top: 6px; padding: 10px 12px; border-left: 3px solid var(--brand); background: rgb(var(--fg-max) / 0.03); border-radius: 0 8px 8px 0; }
.timeline { display: grid; gap: 14px; }
.timeline li { display: grid; gap: 4px; padding-left: 18px; border-left: 2px solid var(--hairline); }
.timeline li .pill { justify-self: start; }
.timeline.wins li b { color: var(--text); font-size: 16px; }
.terms { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 14px; }
.terms dt { color: var(--text-3); }
.terms dd { margin: 0; color: var(--text); font-weight: 600; }
.docs { display: grid; gap: 8px; font-size: 14px; }
.verdict { display: grid; gap: 6px; }
.verdict-bar { height: 8px; border-radius: 6px; background: rgb(var(--fg-max) / 0.1); overflow: hidden; }
.verdict-bar i { display: block; height: 100%; background: var(--brand); }
.raise-panel .coverage { margin: 0 0 12px; }
.dossier-card .numbers.muted { font-weight: 400; }
.coverage-note { margin: 4px 0 12px; }

.room-head { display: grid; gap: 16px; padding-bottom: 12px; }
.logo.lg { width: 64px; height: 64px; border-radius: 16px; font-size: 22px; }
.logo.initials { display: grid; place-items: center; color: #fff; font-weight: 800; }
.raise-panel { display: grid; gap: 14px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); }
.raise-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.room-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; padding-top: 0; align-items: start; }
.room-main { display: grid; gap: 16px; min-width: 0; }
.room-side { display: grid; gap: 16px; align-content: start; position: sticky; top: 12px; max-height: calc(100dvh - 24px); overflow-y: auto; scrollbar-width: thin; }
.room-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-width: 0; max-width: 100%; position: sticky; top: 0; z-index: 5; padding: 10px 0; margin: -10px 0 0; background: var(--bg); border-bottom: 1px solid var(--hairline); }
.room-nav a { padding: 7px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.room-nav a:hover { background: rgb(var(--fg-max) / 0.06); color: var(--text); text-decoration: none; }
.room-nav .to-chat { margin-left: auto; color: var(--brand); display: inline-flex; align-items: center; gap: 6px; }
.room-section { display: grid; gap: 16px; scroll-margin-top: 64px; }
.room-section + .room-section { margin-top: 20px; }
.room-section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.room-section-head h2 { font-size: 22px; letter-spacing: -0.01em; }
.room-section-head .meta { font-size: 14px; }
.narratives .panel h3 { font-size: 18px; margin-top: 0; }
.dossier h4 { font-size: 14px; margin-top: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-2); }
.terms-panel .kicker + .person { margin-top: 2px; }
.room video, .drop-page video { width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; background: #000; border: 1px solid var(--hairline); }
@media (max-width: 900px) {
  .room-body { grid-template-columns: 1fr; }
  .room-side { order: -1; position: static; max-height: none; overflow: visible; }
  .room-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .room-nav .to-chat { margin-left: 0; }
}

.grid.cards.wide { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
.drop-img.wide { aspect-ratio: 2 / 1; }
.drop-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr); gap: 24px; align-items: start; }
.drop-media { display: grid; gap: 10px; }
.drop-hero { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.thumbs img, .thumbs .ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.drop-buy h2 { font-size: 26px; }
.price b { font-size: 28px; color: rgb(var(--fg-max)); }
.auction { display: grid; gap: 6px; padding: 14px; border-radius: 10px; background: rgb(var(--gold-500) / 0.08); border: 1px solid rgb(var(--gold-500) / 0.3); }
.body { display: grid; gap: 10px; }
.body p, .body li { color: var(--text-2); font-size: 15px; line-height: 1.65; }
.body h2 { font-size: 20px; margin-top: 10px; }
.body h3 { font-size: 16px; }
.body ul { list-style: disc; padding-left: 20px; display: grid; gap: 6px; }
.prose .page-head { margin-bottom: 18px; }
.prose .body p { font-size: 16px; }
.page-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--hairline); font-size: 13.5px; }
.page-links a { color: var(--text-3); }
.page-links a.on { color: var(--text); font-weight: 650; }
@media (max-width: 900px) { .drop-layout { grid-template-columns: 1fr; } }

.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.person-card { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.person-card b { color: var(--text); }
.min0 { min-width: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.tag { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: rgb(var(--fg-max) / 0.06); color: var(--text-2); }
a.tag:hover { text-decoration: none; background: var(--brand-soft); color: var(--brand); }
.verified { color: var(--brand); font-size: 0.8em; }
.profile .page-head h1 { font-size: 28px; }
.profile .stats { margin: 18px 0; }
.profile .panel { margin-top: 14px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badges li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--hairline); font-size: 13px; }
.badges .emoji { font-size: 16px; }

.article-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.article-list h3 { font-size: 16px; }
.horizons { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 18px; }
.horizons li { gap: 4px; }
.horizons li b { font-size: 17px; color: var(--text); }
.horizons li .count { margin: 0; font-size: 12px; }
.emoji-lg { font-size: 26px; line-height: 1; }
.idea-page h1 { display: flex; align-items: center; gap: 10px; }
.idea-page .panel, .idea-page .two-up, .idea-page .stats { margin-top: 16px; }
.card.idea header { grid-template-columns: auto 1fr; }

.poster { position: relative; aspect-ratio: 5 / 2; border-radius: 10px; display: flex; align-items: flex-start; justify-content: space-between; padding: 10px; }
.poster.tall { aspect-ratio: 3 / 1; margin-bottom: 16px; }
/* the live and den pages lead with the room on air: poster beside the words, one big Watch */
.card.lead { margin-top: 6px; border-color: var(--brand-soft); }
.card.lead .card-link { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; align-items: center; padding: 18px; }
.card.lead .poster { aspect-ratio: 16 / 9; }
.card.lead .lead-body { display: grid; gap: 10px; justify-items: start; min-width: 0; }
.card.lead .lead-body .kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); }
.card.lead h2 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.15; letter-spacing: -0.01em; }
.card.lead .blurb { color: var(--text-2); max-width: 52ch; }
.card.lead .btn { margin-top: 4px; }
@media (max-width: 760px) { .card.lead .card-link { grid-template-columns: 1fr; gap: 14px; padding: 14px; } .card.lead .poster { aspect-ratio: 5 / 2; } }
.poster .pill { background: rgb(0 0 0 / 0.45); color: #fff; }
.poster .pill-live { background: var(--brand); }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 999px; background: currentColor; animation: pulse 1.4s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.event-page .body, .event-page .panel { margin-top: 16px; }
.event-page .poster.tall { margin: 0 0 20px; }

.movers { display: grid; gap: 10px; }
.movers .card-link { display: grid; grid-template-columns: auto 1fr auto auto; gap: 14px; align-items: center; padding: 12px 16px; }
.movers .logo { width: 40px; height: 40px; border-radius: 10px; }
.spark { width: 120px; height: 40px; }
.spark.up, .mark.up { color: var(--brand); }
.spark.down, .mark.down { color: rgb(var(--gold-500)); }
.mark { font-variant-numeric: tabular-nums; font-size: 16px; }
.hits { display: grid; gap: 8px; margin-top: 10px; }
.hits a { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--hairline); border-radius: 10px; background: var(--surface); color: inherit; }
.hits a:hover { text-decoration: none; border-color: var(--brand); }
.hits a .meta { grid-column: 2; }

/* ---- Accounts (slice 2) -------------------------------------------------- */
.auth { max-width: 560px; }
.form { display: grid; gap: 14px; margin-top: 18px; }
.form label { display: grid; gap: 6px; font-size: 13.5px; color: var(--text-2); }
.form label > span { font-weight: 650; color: var(--text); }
.form small { color: var(--text-3); }
.form input:not([type=checkbox]), .form select, .form textarea { width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--hairline); background: var(--surface); color: var(--text); font: inherit; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand); }
.form .check { grid-template-columns: auto 1fr; align-items: center; }
.form .hp { position: absolute; left: -9999px; }
.form .two-up { gap: 12px; }
.notice { padding: 10px 14px; border-radius: 10px; font-size: 14px; margin: 10px 0; }
.notice.ok { background: var(--brand-soft); color: var(--brand); }
.notice.bad { background: rgb(var(--gold-500) / 0.12); color: rgb(var(--gold-300)); }
.me .panel { margin-top: 16px; }
.sessions { display: grid; gap: 10px; }
.sessions li { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--hairline); }
.sessions li b { font-weight: 550; font-size: 13.5px; color: var(--text); word-break: break-all; }
form.inline { display: inline; }
.signout button { width: 100%; }

/* ---- Chat (slice 3) ------------------------------------------------------ */
.bell { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px; color: var(--text-2); position: relative; }
.bell:hover { background: rgb(var(--fg-max) / 0.06); text-decoration: none; }
.bell.has { color: var(--text); }
.bell .badge { position: absolute; left: 22px; top: 2px; }
body.docked .bell .badge { left: 26px; }
.chat .more { margin-left: auto; font-size: 12px; font-weight: 600; }
.channels li a.active { background: var(--brand-soft); color: var(--brand); }
.channels li a .badge { float: right; }
.threads-mini li a { display: flex; align-items: center; gap: 8px; }
.avatar.sm { width: 22px; height: 22px; font-size: 9px; }
.online { display: inline-block; width: 8px; height: 8px; border-radius: 999px; background: var(--brand); vertical-align: middle; margin-left: 4px; }

.chat-page { display: flex; flex-direction: column; height: 100dvh; max-width: 1180px; margin: 0 auto; padding: 14px clamp(12px, 3vw, 32px) 0; }
body.deck:has(.chat-page) .site-foot { display: none; }
@media (max-width: 1023px) { .chat-page { height: calc(100dvh - 64px); } body.deck:has(.chat-page) { padding-bottom: 0; } }
.chat-page .page-head { margin-bottom: 0; padding-bottom: 10px; }
.chat-page .page-head h1 { font-size: 22px; }
.chat-page .page-head .person h1 { display: inline; }
.chat-head-side { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.chan-tabs { display: flex; gap: 4px; overflow-x: auto; padding: 8px 0; border-bottom: 1px solid var(--hairline); scrollbar-width: none; }
.chan-tabs a { white-space: nowrap; padding: 5px 10px; border-radius: 999px; font-size: 13px; color: var(--text-2); }
.chan-tabs a:hover { background: rgb(var(--fg-max) / 0.06); text-decoration: none; }
.chan-tabs a.on { background: var(--brand-soft); color: var(--brand); }
@media (min-width: 1024px) { .chan-tabs { display: none; } }
.messages { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column-reverse; gap: 2px; padding: 10px 0; overscroll-behavior: contain; }
.msg { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 8px 10px; border-radius: 10px; }
.msg:hover { background: rgb(var(--fg-max) / 0.03); }
.msg.question { border-left: 3px solid var(--gold); background: rgb(var(--gold-500) / 0.05); }
.msg.question.resolved { border-left-color: var(--brand); background: var(--brand-soft); }
.msg.system { opacity: 0.8; font-size: 13px; }
.msg-body { min-width: 0; }
.msg-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; }
.msg-head .name { font-weight: 700; color: var(--text); }
.msg-head time { color: var(--text-3); font-size: 12px; }
.msg .text { font-size: 15px; line-height: 1.5; word-break: break-word; }
.msg .quote { font-size: 12.5px; color: var(--text-3); border-left: 2px solid var(--hairline); padding-left: 8px; margin-bottom: 4px; }
.msg .answer { margin-top: 6px; padding: 8px 10px; border-left: 3px solid var(--brand); background: rgb(var(--fg-max) / 0.03); border-radius: 0 8px 8px 0; font-size: 14px; }
.mention { font-weight: 650; color: var(--brand); }
.msg-images { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.msg-images img { max-height: 180px; border-radius: 8px; }
.reactions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; align-items: center; }
.react { font-size: 12.5px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--hairline); color: var(--text-2); }
.react.mine { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.react-add summary { list-style: none; cursor: pointer; font-size: 13px; padding: 1px 8px; border-radius: 999px; border: 1px dashed var(--hairline); color: var(--text-3); }
.react-add summary::-webkit-details-marker { display: none; }
.react-add form { display: flex; gap: 2px; padding: 4px; }
.react-add form button { font-size: 16px; padding: 2px 4px; border-radius: 6px; }
.react-add form button:hover { background: rgb(var(--fg-max) / 0.08); }
.msg-actions { display: flex; gap: 10px; align-items: center; margin-top: 4px; font-size: 12px; opacity: 0; transition: opacity 120ms; }
.msg:hover .msg-actions, .msg:focus-within .msg-actions { opacity: 1; }
.msg-actions button { color: var(--text-3); padding: 2px 4px; border-radius: 6px; }
.msg-actions button:hover { color: var(--text); background: rgb(var(--fg-max) / 0.06); }
.answer-box summary { cursor: pointer; color: var(--brand); font-weight: 600; }
.answer-box form { display: grid; gap: 6px; margin-top: 6px; }
.answer-box textarea, .edit-form textarea, .composer textarea { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--hairline); background: var(--surface); color: var(--text); font: inherit; resize: vertical; }
.edit-form { display: grid; gap: 6px; margin-top: 4px; }
.row { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.composer { display: grid; gap: 8px; padding: 10px 0 12px; background: var(--bg); border-top: 1px solid var(--hairline); }
.composer textarea:focus { outline: none; border-color: var(--brand); }
.composer .row { justify-content: space-between; }
.composer .check { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--text-2); }
.composer .replying { font-size: 12.5px; color: var(--text-3); }
.composer .replying button { color: var(--brand); margin-left: 6px; }
.composer-locked { padding: 14px 0; }


.dms { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column-reverse; gap: 6px; padding: 12px 0; }
.dm { display: grid; gap: 2px; max-width: 72%; align-self: flex-start; }
.dm.mine { align-self: flex-end; text-align: right; }
.dm .bubble { padding: 9px 12px; border-radius: 14px 14px 14px 4px; background: var(--surface); border: 1px solid var(--hairline); font-size: 15px; line-height: 1.45; text-align: left; word-break: break-word; }
.dm.mine .bubble { background: var(--brand); color: var(--on-brand); border-color: transparent; border-radius: 14px 14px 4px 14px; }
.dm.mine .bubble a { color: var(--on-brand); text-decoration: underline; }
.dm time { font-size: 11px; color: var(--text-3); }
.threads { display: grid; gap: 6px; }
.threads li a { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; color: inherit; border: 1px solid var(--hairline); background: var(--surface); }
.threads li a:hover { text-decoration: none; border-color: var(--brand); }
.threads b { display: block; color: var(--text); }
.threads .meta { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notifs { display: grid; gap: 6px; }
.notifs li a { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; color: inherit; border: 1px solid var(--hairline); background: var(--surface); }
.notifs li.unread a { border-color: var(--brand); }
.notifs li a:hover { text-decoration: none; }
.notifs .emoji { font-size: 20px; }
.notifs b { display: block; color: var(--text); }
.notifs time { font-size: 12px; color: var(--text-3); white-space: nowrap; }

/* ---- Capital (slice 4) ---------------------------------------------------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th, .table td { padding: 8px 10px; border-bottom: 1px solid var(--hairline); text-align: left; vertical-align: top; }
.table th { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); font-weight: 700; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table td b { color: var(--text); }
.table code, .portfolio code { font-family: var(--font-mono); font-size: 12.5px; background: rgb(var(--fg-max) / 0.06); padding: 2px 6px; border-radius: 6px; }
.up { color: var(--brand); }
.down { color: rgb(var(--gold-400)); }
.btn.sm { padding: 6px 10px; font-size: 13px; border-radius: 8px; }
.btn.on { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.row-form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.row-form input, .row-form select { padding: 8px 10px; border-radius: 8px; border: 1px solid var(--hairline); background: var(--surface); color: var(--text); font: inherit; max-width: 160px; }

.commit-panel { display: grid; gap: 10px; }
.commit-panel .held { color: var(--text); font-size: 14.5px; }
.commit-panel .pending-note { font-size: 13.5px; color: var(--text-2); padding: 8px 12px; border-radius: 8px; background: rgb(var(--gold-500) / 0.08); }
.commit-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.commit-form label { display: grid; gap: 4px; font-size: 13px; color: var(--text-2); }
.commit-form label span { font-weight: 650; color: var(--text); }
.commit-form input { padding: 12px 14px; font-size: 18px; border-radius: 10px; border: 1px solid var(--hairline); background: var(--surface); color: var(--text); font: inherit; font-weight: 700; width: 100%; }
.commit-form input:focus { outline: none; border-color: var(--brand); }
@media (max-width: 560px) { .commit-form { grid-template-columns: 1fr; } }
.checks summary { cursor: pointer; font-size: 13.5px; color: var(--text-2); }
.checks ul { display: grid; gap: 6px; margin-top: 8px; }
.checks li { display: grid; grid-template-columns: 1fr; gap: 1px; padding: 6px 10px 6px 26px; position: relative; font-size: 13px; color: var(--text-2); }
.checks li b { color: var(--text); font-size: 13.5px; }
.checks li::before { position: absolute; left: 6px; top: 7px; font-weight: 800; }
.checks li.pass::before { content: "\2713"; color: var(--brand); }
.checks li.fail::before { content: "\00d7"; color: rgb(var(--gold-400)); }
.checks li.soft::before { content: "\2013"; color: var(--text-3); }
.verdict-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.verdict-form input { width: 130px; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--hairline); background: var(--surface); color: var(--text); font: inherit; }

.dossier h3 { margin-top: 0; font-size: 18px; }
.edge { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.edge > div { padding: 12px 14px; border-radius: 10px; border: 1px solid var(--hairline); display: grid; gap: 4px; }
.edge .infused { border-color: var(--brand); background: var(--brand-soft); }
.edge .infused p { color: var(--text); }
.fom .target { color: var(--brand); font-weight: 700; }
.field tr.us td { background: var(--brand-soft); }
.refs { display: grid; gap: 10px; }
.refs li { font-size: 14px; color: var(--text-2); }
.refs li b { color: var(--text); }
.refs li p { font-size: 13.5px; margin-top: 2px; }

.book { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.book .side { font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 11.5px; }
.book .side.bid { color: var(--brand); }
.book .side.ask { color: rgb(var(--gold-400)); }
.orders { display: grid; gap: 4px; }
.orders li { display: grid; grid-template-columns: 56px 64px 1fr auto; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 8px; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.orders li:nth-child(odd) { background: rgb(var(--fg-max) / 0.03); }
.orders li b { color: var(--text); }
.order-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; align-items: end; padding-top: 6px; border-top: 1px solid var(--hairline); }
.order-form label { display: grid; gap: 4px; font-size: 12.5px; color: var(--text-2); }
.order-form input, .order-form select { padding: 9px 10px; border-radius: 8px; border: 1px solid var(--hairline); background: var(--surface); color: var(--text); font: inherit; width: 100%; }

.pledges { display: grid; gap: 12px; }
.pledge { display: grid; gap: 8px; padding: 12px 14px; border: 1px solid var(--hairline); border-radius: 10px; }
.pledge.closed { opacity: 0.85; }
.pledge-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.pledge-head b { color: var(--text); font-size: 15px; }
.pledge p { font-size: 14px; }
.distribute summary, .new-pledge summary { cursor: pointer; color: var(--brand); font-weight: 600; font-size: 13.5px; }
.new-pledge .form { margin-top: 10px; }

.portfolio .stat b.up { color: var(--brand); }
.portfolio .stat b.down { color: rgb(var(--gold-400)); }
.portfolio .panel, .admin .panel, .pitch-edit .panel { margin-top: 16px; }
.pitch-edit .form { max-width: 880px; }
.pitch-edit .panel { display: grid; gap: 14px; }
.queue { display: grid; gap: 12px; }
.queue li { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--hairline); }
@media (max-width: 760px) { .queue li { grid-template-columns: 1fr; } }
.audit td code { white-space: pre-wrap; word-break: break-all; }
.bar.thin { height: 3px; opacity: 0.7; }

/* ---- Commerce (slice 5) --------------------------------------------------- */
.checkout summary { list-style: none; cursor: pointer; }
.checkout summary::-webkit-details-marker { display: none; }
.checkout .form { margin-top: 14px; }
.rails { border: 1px solid var(--hairline); border-radius: 10px; padding: 10px 12px; display: grid; gap: 6px; margin: 0; }
.rails legend { font-size: 13px; font-weight: 650; padding: 0 4px; }
.rails .check { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.bid-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.bid-form input { padding: 12px 14px; font-size: 18px; font-weight: 700; border-radius: 10px; border: 1px solid var(--hairline); background: var(--surface); color: var(--text); font: inherit; width: 100%; }
.ladder { display: grid; gap: 4px; margin-top: 8px; }
.ladder li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-size: 13.5px; padding: 4px 8px; border-radius: 8px; }
.ladder li:first-child { background: var(--brand-soft); }
.ladder li.mine { outline: 1px solid var(--brand); }
.ladder li b { color: var(--text); font-variant-numeric: tabular-nums; }
.order-list { display: grid; gap: 8px; }
.order-list li a { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--hairline); background: var(--surface); color: inherit; }
.order-list li a:hover { text-decoration: none; border-color: var(--brand); }
.order-list img, .order-list .ph { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: rgb(var(--fg-max) / 0.08); display: block; }
.order-list b { display: block; color: var(--text); }
.order-list .meta { display: block; }
.journey { display: grid; gap: 10px; }
.journey li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding-left: 18px; border-left: 2px solid var(--brand); font-size: 14px; }
.journey li b { color: var(--text); text-transform: capitalize; }
.journey li span { grid-column: 1; color: var(--text-2); font-size: 13.5px; }
.journey li time { grid-row: 1; grid-column: 2; font-size: 12.5px; color: var(--text-3); white-space: nowrap; }
.bench { display: grid; gap: 10px; }
.bench-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.bench-row b a { color: var(--text); }
.row.wrap { flex-wrap: wrap; justify-content: flex-start; }
@media (max-width: 760px) { .bench-row { grid-template-columns: 1fr; } }

/* ---- Pillars (slice 6) ---------------------------------------------------- */
.two-col { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.start-venture { margin-bottom: 22px; }
.start-venture summary { list-style: none; cursor: pointer; display: inline-flex; }
.start-venture summary::-webkit-details-marker { display: none; }
.start-venture .form { margin-top: 14px; }
.ventures { display: grid; gap: 12px; }
.ventures .card header { display: flex; gap: 8px; align-items: center; grid-template-columns: none; }
.opps { display: grid; gap: 12px; }
.opps .panel h3 { font-size: 17px; }
.brief header { display: flex; gap: 8px; align-items: center; grid-template-columns: none; }
.brief .impact { margin-left: auto; color: var(--gold); letter-spacing: 2px; font-size: 10px; }
.brief.locked .card-link { opacity: 0.75; }
.brief.locked h3::before { content: "\1F512  "; font-size: 13px; }
.card-foot { padding: 0 16px 12px; }
.checkin { margin-bottom: 18px; }
.lane { margin-bottom: 14px; }
.roadmap-items { display: grid; gap: 10px; }
.roadmap-items li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.roadmap-items li b { color: var(--text); }
.roadmap-items li p { font-size: 13.5px; }
.milestones li form { margin-left: auto; }

/* ---- Live rooms (slice 7) -------------------------------------------------- */
.watch { max-width: 1180px; margin: 0 auto; padding: 18px clamp(12px, 3vw, 32px) 40px; display: grid; gap: 16px; }
.watch .page-head { margin-bottom: 0; padding-bottom: 12px; }
.watch .page-head h1 { font-size: clamp(22px, 3vw, 32px); }
.stage-wrap { display: grid; gap: 8px; }
.sticky-stage .stage-wrap { position: sticky; top: 0; z-index: 5; background: var(--bg); padding-bottom: 4px; }
.stage { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.stage video, .stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.stage .placeholder { position: absolute; inset: 0; display: grid; place-content: center; gap: 10px; text-align: center; color: #fff; padding: 20px; }
.stage .placeholder p { color: rgb(255 255 255 / 0.85); max-width: 40ch; }
.stage .overlay { position: absolute; inset: 0; pointer-events: none; }
.watermark { position: absolute; right: 14px; bottom: 44px; font-weight: 800; letter-spacing: 0.08em; color: rgb(255 255 255 / 0.55); text-shadow: 0 1px 4px rgb(0 0 0 / 0.6); font-size: 13px; }
.fingerprint { position: absolute; font-size: 11px; font-family: var(--font-mono); color: rgb(255 255 255 / 0.45); text-shadow: 0 1px 3px rgb(0 0 0 / 0.7); animation: roam 48s linear infinite; }
@keyframes roam { 0%, 20% { top: 10px; left: 12px; } 25%, 45% { top: 10px; left: auto; right: 12px; } 50%, 70% { top: auto; bottom: 48px; right: 12px; left: auto; } 75%, 95% { top: auto; bottom: 48px; left: 12px; right: auto; } 100% { top: 10px; left: 12px; } }
.pins { position: absolute; inset: 0; pointer-events: none; }
.pin { position: absolute; max-width: min(60%, 360px); pointer-events: auto; display: flex; gap: 6px; align-items: center; padding: 8px 12px; border-radius: 10px; background: rgb(10 12 16 / 0.82); color: #fff; font-size: 13.5px; font-weight: 600; backdrop-filter: blur(6px); border: 1px solid rgb(255 255 255 / 0.12); }
.pin a { color: #fff; text-decoration: underline; }
.pin button { color: rgb(255 255 255 / 0.7); font-size: 16px; line-height: 1; padding: 0 2px; }
.pin-tl { top: 12px; left: 12px; } .pin-tr { top: 12px; right: 12px; } .pin-bl { bottom: 52px; left: 12px; } .pin-br { bottom: 52px; right: 12px; }
.pin-tl ~ .pin-tl, .pin-bl ~ .pin-bl { transform: translateY(0); }
.queue { display: flex; gap: 6px; flex-wrap: wrap; counter-reset: q; }
.queue li a { display: inline-block; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--hairline); font-size: 13px; color: var(--text-2); }
.queue li.on a { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.host-console summary { cursor: pointer; font-weight: 650; }
.host-console .row-form { margin-top: 10px; }
.host-console input[name=text] { flex: 1; min-width: 200px; max-width: none; }
.sponsor { font-size: 13.5px; color: var(--text-2); }
.strip { margin-top: 4px; }
.watch > * { order: 3; }
.watch > .page-head { order: 0; }
.watch > .stage-wrap { order: 1; }
.watch > .watch-chat { order: 2; }
.watch-chat { display: flex; flex-direction: column; min-height: 320px; max-height: 70vh; }
.watch-chat .messages { flex: 1; }
.stage { max-height: 56vh; }
@media (max-width: 899px) { .sticky-stage .stage-wrap { position: static; } }

/* ---- Operator console (slice 8) ------------------------------------------- */
.queues .stat { color: inherit; }
.console-map { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin: 18px 0 24px; }
.console-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 8px; align-content: start; }
.console-card h3 { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); }
.console-card a { display: grid; gap: 1px; padding: 6px 0; border-top: 1px solid var(--hairline); color: var(--text); font-weight: 600; }
.console-card a:first-of-type { border-top: 0; }
.console-card a span { font-weight: 400; font-size: 12.5px; color: var(--text-3); }
.console-card a:hover { text-decoration: none; color: var(--brand); }
.admin .numbers { display: grid; gap: 14px; }
/* every console page: the group's pages under the head, and on long pages the sections */
.console-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 18px; }
.console-jump { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; margin: -6px 0 18px; padding-bottom: 6px; border-bottom: 1px solid var(--hairline); font-size: 13px; }
.console-jump::-webkit-scrollbar { display: none; }
.console-jump a { flex: 0 0 auto; color: var(--text-2); font-weight: 600; white-space: nowrap; }
.console-jump a:hover { color: var(--brand); text-decoration: none; }
.admin .panel { scroll-margin-top: 16px; }
.admin .panel > .kicker:first-child { margin-top: 0; }
.admin .numbers .kicker { margin: 0 0 6px; }
.queues .stat:hover { border-color: var(--brand); text-decoration: none; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding: 6px 0 22px; position: relative; }
.bar-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; position: relative; min-width: 0; }
.bar-col i { display: block; background: var(--brand); border-radius: 4px 4px 0 0; min-height: 2px; }
.bar-col span { position: absolute; top: 100%; left: 0; right: 0; font-size: 9.5px; color: var(--text-3); text-align: center; white-space: nowrap; overflow: hidden; }
.flag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 16px; }
.flag-grid .check, .form .check { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--text); }
.content-admin .editor { border: 1px solid var(--hairline); border-radius: 10px; padding: 10px 14px; }
.content-admin .editor summary { cursor: pointer; }
.content-admin .editor .form { margin-top: 12px; }
textarea.mono { font-family: var(--font-mono); font-size: 12.5px; }
.flag-box summary { cursor: pointer; color: var(--text-3); font-size: 12px; list-style: none; }
.flag-box summary::-webkit-details-marker { display: none; }
.flag-box form { display: flex; gap: 4px; margin-top: 4px; }
.flag-box input { padding: 4px 8px; border-radius: 6px; border: 1px solid var(--hairline); background: var(--surface); color: var(--text); font: inherit; font-size: 12px; width: 160px; }
.lead-form { max-width: 720px; margin: 0 auto; }
.lead-form h2 { font-size: 24px; }

/* ---- Hardening (slice 9) --------------------------------------------------- */
.attach { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.attach input[type=file] { width: 1px; height: 1px; opacity: 0; position: absolute; }
.attach span::before { content: "\1F4CE "; }
.attach:has(input:valid:not([value=""])) span { color: var(--brand); }

/* ---- slice 11: avatar and logo uploads, follow actions, compliance ---- */
.avatar-row { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.avatar-row .check { grid-column: 2; }
.logo-preview { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; border: 1px solid var(--hairline); margin-bottom: 6px; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.profile-actions .inline { display: inline; }
.btn.on { border-color: var(--brand); color: var(--brand); }
.compliance .stats.tiles .stat b { text-transform: capitalize; }
.compliance .stats.tiles { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 700px) { .compliance .stats.tiles { grid-template-columns: 1fr 1fr; } }
.inline-form { margin-top: 6px; }
.table tr.mine td { background: var(--brand-soft); }
@media (max-width: 640px) {
  .profile-head { grid-template-columns: auto 1fr; }
  .profile-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .avatar-row { grid-template-columns: 1fr; }
  .avatar-row .check { grid-column: 1; }
}

/* online checkout (Paystack) */
.pay-online { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 0 0 10px; }
.pay-online .meta { max-width: 44ch; }
.pending-note form { display: inline; }
.rails-online { border: 1px solid var(--hairline); border-radius: 10px; padding: 10px 12px; display: grid; gap: 8px; }

/* ---- appearance: data attributes on <html>, set by /prefs/look ------------- */
html[data-font="humanist"] { --font-ui: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif; }
html[data-font="serif"] { --font-ui: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif; }
html[data-font="rounded"] { --font-ui: "Nunito", "Trebuchet MS", "Segoe UI Rounded", ui-rounded, system-ui, sans-serif; }
html[data-font="mono"] { --font-ui: var(--font-mono); }
html[data-size="s"] body { font-size: 14px; }
html[data-size="l"] body { font-size: 16.5px; }
html[data-radius="sharp"] { --radius: 4px; --radius-sm: 3px; }
html[data-radius="round"] { --radius: 20px; --radius-sm: 12px; }
html[data-density="compact"] body { line-height: 1.45; }
html[data-density="compact"] .panel { padding: 12px 14px; gap: 7px; }
html[data-density="compact"] .block { padding-top: 28px; padding-bottom: 28px; }
html[data-density="compact"] .bench-row { padding: 8px 0; }
html[data-density="compact"] .rail .group ul a, html[data-density="compact"] .rail-home { padding-top: 6px; padding-bottom: 6px; }
html[data-contrast="high"] { --text: rgb(var(--fg-max)); --text-2: rgb(var(--fg-200)); --text-3: rgb(var(--fg-300)); --hairline: rgb(var(--fg-max) / 0.28); }
html[data-contrast="high"] .muted, html[data-contrast="high"] .meta, html[data-contrast="high"] .micro { color: rgb(var(--fg-200)); }

.theme-head { grid-column: 1 / -1; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); padding: 8px 8px 2px; }

/* theme studio */
.three-up { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.three-up label > span { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 4px; }
.three-up input[type="color"] { width: 100%; height: 40px; border: 1px solid var(--hairline); border-radius: var(--radius-sm); background: var(--surface-2); padding: 2px; }
.theme-rows { display: grid; gap: 14px; }
.theme-row { border-top: 1px solid var(--hairline); padding-top: 12px; display: grid; gap: 8px; }
.theme-row-head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.swatches { display: inline-flex; gap: 3px; }
.swatches .swatch { width: 14px; height: 14px; border-radius: 4px; border: 1px solid rgb(0 0 0 / 0.15); display: inline-block; }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.theme-grid li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.theme-grid li form { margin-left: auto; }
@media (max-width: 700px) { .three-up { grid-template-columns: 1fr; } }

/* the appearance page: a wall of themes */
.theme-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.theme-wall .theme-head { padding: 10px 2px 0; }
.theme-tile { display: grid; gap: 4px; text-align: left; padding: 12px 14px; border: 1px solid var(--hairline); border-radius: var(--radius); background: var(--surface-2); color: var(--text); }
.theme-tile:hover { border-color: var(--brand); }
.theme-tile.current { outline: 2px solid var(--brand); outline-offset: -2px; }
.theme-tile .meta { font-size: 12.5px; }

/* brand chrome: logo, tagline, previews */
.brand-logo { height: 30px; width: auto; max-width: 150px; border-radius: 7px; display: block; }
.brand-text { display: grid; line-height: 1.1; }
.brand-tagline { font-size: 11px; font-weight: 500; letter-spacing: 0; color: var(--text-3); }
body.docked .brand-text { display: none; }
body.docked .brand-logo { height: 28px; max-width: 40px; object-fit: contain; }
.favicon-preview { width: 32px; height: 32px; border-radius: 6px; background: var(--surface-2); padding: 4px; }
.brand-logo.preview { height: 40px; max-width: 200px; }

/* navigation and sections editors */
.nav-group { border: 1px solid var(--hairline); border-radius: var(--radius-sm); padding: 8px 12px 10px; margin: 0; display: grid; gap: 6px; }
.nav-group legend { padding: 0 4px; }
.nav-group legend input { font-weight: 700; }
.nav-dest { display: grid; grid-template-columns: minmax(90px, 160px) 1fr 80px auto; gap: 8px; align-items: center; font-size: 13.5px; }
.nav-dest code { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-dest.wheel-row { grid-template-columns: 32px 1fr minmax(170px, 220px); }
@media (max-width: 700px) { .nav-dest { grid-template-columns: 1fr 1fr; } .nav-dest code { grid-column: 1 / -1; } }
@media (max-width: 700px) { .nav-dest.wheel-row { grid-template-columns: 32px 1fr; } .nav-dest.wheel-row select + select { grid-column: 2; } }

/* vocabulary grid */
.words-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.words-grid label > span { display: block; font-size: 13px; margin-bottom: 4px; }
.words-grid em { font-style: normal; }

/* inline filter forms on operator pages */
.inline-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin: 12px 0 16px; }
.inline-filters label { display: grid; gap: 4px; font-size: .85rem; }

/* treasury page */
.queue.treasury li { grid-template-columns: 1fr; }
.treasury-actions summary { list-style: none; cursor: pointer; display: inline-block; }
.treasury-actions summary::-webkit-details-marker { display: none; }
.treasury-forms { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 12px; }
.form.compact { margin-top: 0; gap: 8px; padding: 12px; border: 1px solid var(--hairline); border-radius: 12px; }
.treasury-row { flex-wrap: wrap; }
.row-form { display: flex; gap: 6px; align-items: center; }
.row-form input { padding: 6px 8px; border-radius: 8px; border: 1px solid var(--hairline); background: var(--surface); color: var(--text); font: inherit; max-width: 160px; }

/* founder updates */
.update { padding: 10px 0; border-bottom: 1px solid var(--hairline); }
.update:last-of-type { border-bottom: 0; }
.update h3 { font-size: 16px; margin: 0 0 6px; }
.prewrap { white-space: pre-wrap; }
.linklike { background: none; border: 0; padding: 0; color: var(--text-3); font: inherit; cursor: pointer; text-decoration: underline; }
form.inline { display: inline; }
.composer-details summary { list-style: none; cursor: pointer; display: inline-block; margin-top: 8px; }
.composer-details summary::-webkit-details-marker { display: none; }
.select-all { user-select: all; word-break: break-all; }

/* second factor */
.qr { display: inline-block; padding: 8px; background: #fff; border-radius: 12px; margin: 8px 0; }
.qr svg { display: block; width: 200px; height: 200px; }
.backup-codes { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; list-style: none; padding: 0; margin: 10px 0 14px; }
.backup-codes code { font-size: 15px; }

/* phrase table */
.phrases-grid { display: grid; gap: 12px; }
.phrases-grid label small { color: var(--text-3); font-size: 12px; }

/* The board's head, the best comment on a card, the card's comment box and More */
.board-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 0 0 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); }
.board-head-text { display: grid; gap: 4px; min-width: 0; }
.board-name { margin: 0; font-size: 20px; font-weight: 750; letter-spacing: -0.01em; color: rgb(var(--fg-max)); }
.board-head .meta { margin: 0; }
.board-head .follow { margin: 0; flex: 0 0 auto; }
.board-head a.chip { text-decoration: none; }
.board-rules { font-size: 13.5px; }
.board-rules summary { cursor: pointer; color: var(--brand); font-weight: 600; list-style: none; }
.board-rules summary::-webkit-details-marker { display: none; }
.board-rules summary::after { content: " ▾"; font-size: 11px; }
.board-rules[open] summary::after { content: " ▴"; }
.board-rules ol { list-style: decimal; margin: 6px 0 0; padding-left: 20px; color: var(--text-2); display: grid; gap: 3px; }
.top-comment { margin: 0; padding: 8px 10px; border-left: 2px solid var(--hairline); color: var(--text-2); font-size: 14px; line-height: 1.4; background: rgb(var(--fg-max) / 0.03); border-radius: 0 8px 8px 0; }
.top-comment a, .top-comment b { font-weight: 650; color: var(--text); }
.post-actions .quick-comment > summary { list-style: none; cursor: pointer; }
.post-actions .quick-comment > summary::-webkit-details-marker { display: none; }
.post-actions .quick-comment[open] { flex: 1 0 100%; order: 99; }
.post-actions .quick-comment .form { margin-top: 8px; display: grid; gap: 8px; }
.post-actions .quick-comment textarea { width: 100%; }
.post-actions .more-actions > summary { list-style: none; cursor: pointer; }
.post-actions .more-actions[open] { flex: 1 0 100%; order: 100; }
.post-actions .more-sheet { position: static; min-width: 0; margin-top: 6px; box-shadow: none; background: var(--surface-2); }
.post-actions .more-sheet .form.inline-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.post-actions .more-sheet .form.inline-form input { flex: 1 1 160px; min-width: 0; }
.post-card .post-actions { gap: 8px 12px; }
.profile-posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.profile-posts li { display: grid; gap: 2px; }
.profile-posts li a { font-weight: 650; color: var(--text); }
.profile-posts .meta { margin: 0; }
.comments-sort { padding: 0 2px 4px; }

/* Moderators, the board's own page, pictures that open in place */
.pill-mod { background: rgb(var(--fg-max) / 0.08); color: var(--text-2); font-size: 10.5px; padding: 2px 7px; vertical-align: 1px; }
.board-name a { color: inherit; text-decoration: none; }
.board-name a:hover { text-decoration: underline; }
.board-home .board-head { margin-bottom: 14px; }
.board-grid { display: grid; gap: 12px; margin: 0 0 16px; }
@media (min-width: 860px) { .board-grid { grid-template-columns: 1fr 1fr; } .board-grid .panel.wide { grid-column: 1 / -1; } }
.board-grid .panel { margin: 0; }
.rules-list { list-style: decimal; margin: 0; padding-left: 20px; color: var(--text-2); display: grid; gap: 4px; font-size: 14.5px; }
.mod-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mod-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mod-list li a { font-weight: 650; color: var(--text); }
.mod-list .inline-form { margin-left: auto; }
.add-mod { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.add-mod input { flex: 1 1 160px; min-width: 0; }
.edit-about { margin-top: 8px; font-size: 13.5px; }
.edit-about > summary { list-style: none; cursor: pointer; color: var(--brand); font-weight: 600; }
.edit-about > summary::-webkit-details-marker { display: none; }
.edit-about .form { margin-top: 8px; display: grid; gap: 8px; }
.report-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.report-list li { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid var(--hairline); border-radius: 10px; background: var(--surface-2); }
.report-list .meta { margin: 0; }
.report-list .row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.report-list .reason { font-style: italic; color: var(--text-2); }
.board-home .top-week { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.board-home .top-week .kicker { margin: 0; }
.post-media .zoom { display: block; margin: 0; min-width: 0; }
.post-media .zoom > summary { list-style: none; display: block; cursor: zoom-in; }
.post-media .zoom > summary::-webkit-details-marker { display: none; }
.post-media .zoom[open] > summary::after { content: ""; position: fixed; inset: 0; background: rgb(0 0 0 / 0.92); z-index: 1000; cursor: zoom-out; }
.post-media .zoom .full { position: fixed; inset: 0; margin: auto; width: auto; height: auto; max-width: min(96vw, 1400px); max-height: 94vh; aspect-ratio: auto; object-fit: contain; z-index: 1001; pointer-events: none; border-radius: 0; }

/* Polls, edits, the moderator log */
.poll { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid var(--hairline); border-radius: 10px; background: rgb(var(--fg-max) / 0.02); }
.poll .meta { margin: 0; }
.poll-vote { display: grid; gap: 6px; }
.poll-vote.again { display: flex; flex-wrap: wrap; gap: 6px; }
.poll-opt { display: block; width: 100%; text-align: left; padding: 9px 12px; border: 1px solid var(--brand); border-radius: 999px; background: transparent; color: var(--brand); font: inherit; font-weight: 600; cursor: pointer; }
.poll-opt:hover { background: var(--brand-soft); }
.poll-opt.sm { width: auto; padding: 4px 10px; font-size: 12.5px; border-color: var(--hairline); color: var(--text-2); }
.poll-opt.sm.on { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.poll-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.poll-bars li { position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 8px; overflow: hidden; background: rgb(var(--fg-max) / 0.04); font-size: 14.5px; }
.poll-bars li .bar { position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); background: var(--brand-soft); }
.poll-bars li .label, .poll-bars li .n { position: relative; }
.poll-bars li .n { font-weight: 700; color: var(--text-2); }
.poll-bars li.mine .label { font-weight: 700; }
.poll-bars li.mine .label::after { content: " ✓"; color: var(--brand); }
.poll-add > summary { list-style: none; }
.poll-add > summary::-webkit-details-marker { display: none; }
.poll-add .poll-fields { display: grid; gap: 6px; margin-top: 8px; }
@media (min-width: 560px) { .poll-add .poll-fields { grid-template-columns: 1fr 1fr; } }
.edit-reply > summary { list-style: none; cursor: pointer; }
.edit-reply > summary::-webkit-details-marker { display: none; }
.edit-reply[open] { flex: 1 0 100%; }
.edit-reply .form { margin-top: 8px; display: grid; gap: 8px; }
.mod-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.mod-log li a { font-weight: 650; color: var(--text); }
.mod-log .meta { font-size: 12.5px; }

/* The feed's pages, the poll toggle */
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 16px 0 4px; }
.pager .meta { margin: 0; }
.attach.poll-toggle span::before { content: "\1F4CA "; }
