@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@500;600;700&family=Manrope:wght@400;500;600;700;800&display=optional');

/* ═══════════════════════════════════════════════════
   Sahara — Warm Minimalism
   North Star: Sun-Baked Simplicity
   Luxurious warmth, disciplined whitespace, editorial calm.
   ═══════════════════════════════════════════════════ */

:root {
  /* Sun-baked warm surfaces */
  --bg0: #faf5ee;
  --bg1: #fffaf4;
  --bg2: #f5ede3;
  --bg3: #eadccd;

  /* Metin */
  --fg: #3a302a;
  --fg-strong: #241b16;
  --muted: #766a61;
  --muted2: #a2968c;

  /* Aksanlar */
  --accent: #c2652a;
  --accent-soft: rgba(194,101,42,.11);
  --accent2: #8c3c3c;
  --green: #7b6a38;
  --green-soft: rgba(123,106,56,.09);
  --amber: #c2652a;
  --rose: #8c3c3c;

  /* Yüzeyler */
  --border: rgba(216,208,200,.60);
  --border-accent: rgba(194,101,42,.28);
  --glass: rgba(112,83,62,.035);
  --card: #fffaf4;
  --card-hover: #fbf1e8;
  --shadow: 0 2px 16px rgba(58,48,42,.04);
  --shadow-lg: 0 8px 26px rgba(58,48,42,.055);

  /* Geometri */
  --radius: 8px;
  --radius-lg: 12px;
  --sidebar-w: 310px;
  --topbar-h: 56px;
  --content-max: 960px;

  /* Tipografi — editorial serif + geometric sans */
  --heading: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --body: 'Manrope', -apple-system, system-ui, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'SF Mono', Consolas, 'Liberation Mono', Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100%;
  color: var(--fg);
  font: 16px/1.75 var(--body);
  letter-spacing: 0;
  background: var(--bg0);
  -webkit-font-smoothing: antialiased;
}

body.live-page {
  overflow-x: hidden;
}

html.site-booting *,
html.site-booting *::before,
html.site-booting *::after {
  transition: none !important;
  animation: none !important;
}

html.site-booting .sidebar,
html.site-booting [data-ai-live-home],
html.site-booting .live-session-list,
html.site-booting .live-event-feed,
html.site-booting [data-live-console-feed],
html.site-booting [data-live-event-log-feed],
html.site-booting [data-live-vote-board],
html.site-booting [data-live-panel-strip],
html.site-booting .live-now-card [data-live-archive-status],
html.site-booting .live-now-card [data-live-archive-title],
html.site-booting .live-now-card [data-live-archive-meta] {
  visibility: hidden;
}

::selection {
  background: rgba(194,101,42,.18);
  color: var(--fg-strong);
}

/* ── Links ────────────────────────────────────── */
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--green); }
a.wikilink {
  color: var(--accent2);
  border-bottom: 1px dashed rgba(140,60,60,.36);
  transition: all .2s;
}
a.wikilink:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(194,101,42,.07);
  border-radius: 2px;
  padding: 0 2px;
}

/* ── Topbar ───────────────────────────────────── */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  background: rgba(250,245,238,.92);
  backdrop-filter: blur(14px) saturate(1.05);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.topbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
}
.topbar-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--fg);
  font-size: 18px;
  padding: 5px 10px;
  cursor: pointer;
}
.topbar-name {
  font: 700 14px/1.2 var(--body);
  color: var(--fg-strong);
  letter-spacing: .01em;
}
.topbar-sub {
  max-width: min(56vw, 720px);
  font: 12px/1.2 var(--body);
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-links {
  margin-left: auto;
  display: flex;
  gap: 14px;
  font: 12px/1 var(--body);
  flex-shrink: 0;
}
.topbar-links a {
  color: var(--muted);
  transition: color .2s;
}
.topbar-links a:hover,
.topbar-links a.active {
  color: var(--accent);
  text-decoration: none;
}
.topbar-links a.active {
  font-weight: 700;
}

/* ── Layout ───────────────────────────────────── */
.layout {
  display: flex;
  min-height: calc(100vh - var(--topbar-h));
  padding-top: var(--topbar-h);
}

/* ── Sidebar ──────────────────────────────────── */
.sidebar {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  overflow-y: auto;
  padding: 18px 12px 28px;
  background: #f7efe5;
  border-right: 1px solid var(--border);
  z-index: 50;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--muted2); border-radius: 4px; }

.sidebar-header { margin-bottom: 14px; }
.sidebar-logo {
  font: 600 13px/1 var(--body);
  color: var(--fg-strong) !important;
  text-decoration: none !important;
  letter-spacing: .02em;
}
.sidebar-tools {
  display: grid;
  gap: 8px;
  margin: 12px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.sidebar-search {
  display: grid;
  gap: 6px;
}
.sidebar-search-label {
  font: 600 10px/1 var(--body);
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.sidebar-search-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fffaf4;
  color: var(--fg);
  font: 13px/1.2 var(--body);
  padding: 11px 12px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.sidebar-search-input:focus {
  outline: none;
  border-color: var(--border-accent);
  box-shadow: 0 0 0 3px rgba(194,101,42,.12);
  background: var(--bg1);
}
.sidebar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.sidebar-tool {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg1);
  color: var(--muted);
  font: 500 12px/1 var(--body);
  padding: 8px 10px;
  cursor: pointer;
  transition: all .15s;
}
.sidebar-tool:hover {
  color: var(--accent);
  border-color: var(--border-accent);
  background: var(--accent-soft);
}
.sidebar-status {
  font: 11.5px/1.3 var(--body);
  color: var(--muted2);
}
.sidebar-overview {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font: 500 13px/1.2 var(--body);
  color: var(--fg);
  margin-bottom: 6px;
  transition: all .15s;
}
.sidebar-overview:hover,
.sidebar-overview.active {
  background: var(--accent-soft);
  color: var(--accent);
  text-decoration: none;
}

.sidebar-sections {
  display: grid;
  gap: 16px;
}
.sidebar-block {
  display: grid;
  gap: 6px;
}
.sidebar-block[hidden] { display: none; }
.sidebar-block-title {
  padding: 0 12px;
  font: 600 10px/1 var(--body);
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.sidebar-block-body {
  display: grid;
  gap: 4px;
}
.sidebar-group { margin-bottom: 0; }
.sidebar-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border: none;
  border-radius: 10px;
  background: none;
  color: var(--fg);
  font: 600 12.5px/1.2 var(--body);
  cursor: pointer;
  transition: background .15s;
  letter-spacing: .01em;
}
.sidebar-cat:hover,
.sidebar-cat.open {
  background: var(--glass);
}
.sidebar-cat-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.sidebar-cat-label::before {
  content: "›";
  color: var(--accent);
  font-weight: 700;
}
.sidebar-cat.open .sidebar-cat-label::before { content: "⌄"; }
.sidebar-cat-meta {
  display: none;
}

.sidebar-items {
  display: none;
  padding: 3px 0 8px 10px;
  margin-left: 12px;
  border-left: 1px solid var(--border);
}
.sidebar-items.open { display: block; }

.sidebar-link {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  font: 12.5px/1.5 var(--body);
  color: var(--muted);
  text-decoration: none !important;
  white-space: normal;
  word-break: break-word;
  transition: all .15s;
}
.sidebar-link:hover { background: var(--card-hover); color: var(--fg); }
.sidebar-link.is-match {
  background: rgba(194,101,42,.08);
  color: var(--green);
}
.sidebar-link.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 500;
}
.sidebar-live-group .sidebar-cat {
  border: 1px solid rgba(140,60,60,.18);
  background: rgba(140,60,60,.055);
  color: var(--accent2);
}
.sidebar-live-group .sidebar-link.active,
.sidebar-live-group .sidebar-link:hover {
  background: rgba(140,60,60,.08);
  color: var(--accent2);
}
.sidebar-link[hidden] { display: none !important; }
.sidebar-more {
  width: calc(100% - 10px);
  margin: 8px 0 0 10px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: var(--bg1);
  color: var(--muted);
  font: 500 12px/1.2 var(--body);
  padding: 8px 10px;
  cursor: pointer;
  transition: all .15s;
}
.sidebar-more:hover {
  background: var(--accent-soft);
  border-style: solid;
}
.sidebar-more[hidden] { display: none; }

/* ── Main Content ─────────────────────────────── */
.content {
  flex: 1;
  margin-left: var(--sidebar-w);
  padding: 30px 44px 84px;
  max-width: var(--content-max);
}

body.live-page .layout {
  display: block;
  min-height: calc(100vh - var(--topbar-h));
}

body.live-page .sidebar {
  display: none;
}

body.live-page .menu-toggle {
  display: none;
}

body.live-page .content,
body.live-page .live-content {
  margin-left: 0;
  width: 100%;
  max-width: none;
  padding-left: clamp(28px, 4vw, 72px);
  padding-right: clamp(28px, 4vw, 72px);
}

body.live-page .site-footer {
  margin-left: 0;
}

body.live-page .footer-inner {
  max-width: none;
}

article {
  line-height: 1.8;
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 34px 36px 42px;
  box-shadow: var(--shadow);
}
article > :first-child { margin-top: 0 !important; }

.page-title {
  font: 700 34px/1.2 var(--heading);
  margin: 0;
  color: var(--fg-strong);
  letter-spacing: -0.01em;
}

.tags { margin-bottom: 24px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font: 500 11px/1 var(--body);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(194,101,42,.22);
  color: var(--accent);
  background: var(--accent-soft);
  letter-spacing: .02em;
}

/* Başlıklar — serif, otorite hissi */
article h1 {
  font: 700 26px/1.3 var(--heading);
  margin: 40px 0 14px;
  color: var(--fg-strong);
}
article h2 {
  font: 600 22px/1.3 var(--heading);
  margin: 40px 0 14px;
  color: var(--fg-strong);
}
article h3 {
  font: 600 16px/1.4 var(--body);
  margin: 24px 0 8px;
  color: var(--fg-strong);
}
article h4 {
  font: 600 15px/1.35 var(--body);
  margin: 22px 0 8px;
  color: var(--muted);
}

/* Paragraflar — rahat okuma */
article p {
  margin: 0 0 16px;
  color: var(--fg);
  font-size: 15.25px;
}
article strong { color: var(--fg-strong); }

article ul, article ol {
  margin: 0 0 18px;
  padding-left: 22px;
}
article li {
  margin: 6px 0;
  color: var(--fg);
  line-height: 1.7;
}
article li::marker { color: var(--accent); }

/* Tablolar — temiz, aydınlık */
article table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
  background: var(--bg1);
}
article th {
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
  font: 600 13px/1.2 var(--body);
  color: var(--accent);
  letter-spacing: .02em;
}
article td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  color: var(--fg);
}
article tr:nth-child(even) td { background: rgba(0,0,0,.02); }
article tr:hover td { background: var(--card-hover); }

/* Kod — yumuşak arka plan */
article code {
  font: 13px/1.4 var(--mono);
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--accent);
}
article pre {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  overflow-x: auto;
  margin: 20px 0;
}
article pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--fg);
  font-size: 13px;
  line-height: 1.6;
}

/* Alıntı — sol kenarlık daha kalın, daha sıcak */
article blockquote {
  margin: 20px 0;
  padding: 14px 20px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--fg);
  font-style: normal;
}

/* ── Index Cards ──────────────────────────────── */
.index-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.index-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fcfdff;
  padding: 18px 16px;
  transition: all .2s;
}
.index-card:hover {
  border-color: var(--border-accent);
  background: var(--bg1);
}
.index-card h3 {
  font: 600 15px/1.3 var(--body);
  color: var(--fg-strong);
  margin: 0 0 8px;
  border: none;
  padding: 0;
}
.index-card p {
  margin: 0 0 10px;
  font: 14px/1.6 var(--body);
  color: var(--muted);
}
.index-card ul { list-style: none; padding: 0; margin: 0; }
.index-card li { margin: 6px 0; }
.index-card a {
  font: 13.5px/1.4 var(--body);
  color: var(--fg);
  transition: color .15s;
}
.index-card a:hover { color: var(--accent); }

/* ── Huni Level Cards ─────────────────────────── */
.huni-level {
  margin: 36px 0 22px;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid;
  position: relative;
  overflow: hidden;
}
.huni-level::before {
  content: attr(data-icon);
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 44px;
  opacity: 0.12;
}
.huni-level h1 {
  margin: 0 !important;
  font-size: 21px !important;
  border: none !important;
  padding: 0 !important;
  font-family: var(--heading) !important;
}
.huni-level .huni-sub {
  font: 13.5px/1.5 var(--body);
  margin-top: 6px;
  opacity: 0.75;
}

.huni-0 { border-color: rgba(194,101,42,.24); background: linear-gradient(135deg, rgba(194,101,42,.08), rgba(194,101,42,.02)); }
.huni-1 { border-color: rgba(123,106,56,.24); background: linear-gradient(135deg, rgba(123,106,56,.08), rgba(123,106,56,.02)); }
.huni-2 { border-color: rgba(198,151,73,.24); background: linear-gradient(135deg, rgba(198,151,73,.08), rgba(198,151,73,.02)); }
.huni-3 { border-color: rgba(140,60,60,.22); background: linear-gradient(135deg, rgba(140,60,60,.07), rgba(140,60,60,.02)); }
.huni-4 { border-color: rgba(123,106,56,.24); background: linear-gradient(135deg, rgba(123,106,56,.08), rgba(123,106,56,.02)); }
.huni-5 { border-color: rgba(140,60,60,.22); background: linear-gradient(135deg, rgba(140,60,60,.07), rgba(140,60,60,.02)); }
.huni-6 { border-color: rgba(194,101,42,.24); background: linear-gradient(135deg, rgba(194,101,42,.08), rgba(194,101,42,.02)); }
.huni-7 { border-color: rgba(140,60,60,.22); background: linear-gradient(135deg, rgba(140,60,60,.07), rgba(140,60,60,.02)); }

/* ── Info Boxes ──────────────────────────────── */
.info-box {
  padding: 14px 16px;
  border-radius: var(--radius);
  margin: 18px 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.info-box .info-icon { font-size: 18px; flex-shrink: 0; line-height: 1.3; }
.info-box .info-text { font: 14.5px/1.7 var(--body); }
.info-tip { background: rgba(194,101,42,.055); border: 1px solid rgba(194,101,42,.14); }
.info-warn { background: rgba(198,151,73,.065); border: 1px solid rgba(198,151,73,.16); }
.info-key { background: rgba(140,60,60,.045); border: 1px solid rgba(140,60,60,.13); }

/* ── Concept Grid ────────────────────────────── */
.concept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.concept-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: #fcfdff;
  transition: all .2s;
}
.concept-card:hover {
  border-color: var(--border-accent);
  background: var(--bg1);
}
.concept-card .cc-icon { font-size: 26px; margin-bottom: 8px; }
.concept-card .cc-title {
  font: 600 14px/1.25 var(--body);
  color: var(--fg-strong);
  margin-bottom: 6px;
}
.concept-card .cc-desc {
  font: 13px/1.5 var(--body);
  color: var(--muted);
}

/* ── Stat Banner ─────────────────────────────── */
.stat-banner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin: 20px 0 0;
}
.stat-item {
  text-align: left;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fcfdff;
  transition: all .2s;
}
.stat-item:hover { border-color: var(--border-accent); background: var(--bg1); }
.stat-num {
  font: 700 24px/1 var(--heading);
  color: var(--accent);
  display: block;
}
.stat-label {
  font: 11.5px/1.4 var(--body);
  color: var(--muted);
  margin-top: 6px;
  display: block;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ── Section Images ──────────────────────────── */
.section-img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 20px 0;
  opacity: 0.8;
  transition: opacity .3s;
}
.section-img:hover { opacity: 1; }

.img-caption {
  font: 11px/1.3 var(--body);
  color: var(--muted2);
  text-align: center;
  margin: -12px 0 18px;
}

.hero-img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-accent);
  margin: 24px 0;
  box-shadow: var(--shadow-lg);
}

/* ── Footer ───────────────────────────────────── */
.site-footer {
  margin-left: var(--sidebar-w);
  padding: 18px 44px 32px;
  background: transparent;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  font: 12px/1 var(--body);
  color: var(--muted2);
  max-width: var(--content-max);
}

/* ── Home ─────────────────────────────────────── */
.ai-debate-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 24px;
  padding: 16px 18px;
  border: 1px solid rgba(194,101,42,.22);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(194,101,42,.08), rgba(140,60,60,.045)),
    var(--bg1);
  box-shadow: var(--shadow);
}
.ai-debate-box-main {
  min-width: 0;
  display: grid;
  gap: 8px;
}
.ai-debate-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 11px/1 var(--body);
  color: var(--accent2);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ai-debate-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(194,101,42,.12);
}
.ai-debate-title {
  margin: 0;
  max-width: 680px;
  color: var(--fg-strong);
  font: 600 15px/1.55 var(--body);
}
.ai-live-panel {
  display: grid;
  gap: 8px;
  max-width: 760px;
  margin-top: 4px;
}
.ai-live-status {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  border: 1px solid rgba(194,101,42,.22);
  background: rgba(255,250,244,.76);
  color: var(--accent2);
  font: 700 11px/1 var(--body);
  padding: 7px 9px;
}
.ai-live-status.is-offline {
  color: var(--muted);
  border-color: var(--border);
}
.ai-live-topic {
  color: var(--fg-strong);
  font: 700 13px/1.45 var(--body);
}
.ai-live-turns {
  display: grid;
  gap: 7px;
}
.ai-live-turn {
  border-left: 2px solid rgba(194,101,42,.24);
  padding-left: 10px;
  color: var(--muted);
  font: 13px/1.55 var(--body);
}
.ai-live-speaker {
  color: var(--fg-strong);
  font-weight: 700;
}
.ai-debate-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 10px 13px;
  border: 1px solid rgba(194,101,42,.24);
  border-radius: 999px;
  background: rgba(255,250,244,.72);
  color: var(--accent2);
  font: 700 12px/1 var(--body);
  white-space: nowrap;
  transition: all .15s;
}
.ai-debate-link:hover {
  border-color: var(--accent2);
  background: #fff;
  color: var(--green);
  text-decoration: none;
}
.live-archive-header {
  margin-bottom: 12px;
}
.live-content {
  width: 100%;
  max-width: none;
  padding-right: clamp(22px, 3vw, 46px);
}
.live-article {
  width: 100%;
  max-width: none;
  background: #fdfefe;
}
.live-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted2);
  font: 12px/1.3 var(--body);
}
.live-breadcrumb a {
  color: var(--muted);
}
.live-breadcrumb span::before {
  content: "/";
  margin-right: 8px;
  color: var(--muted2);
}
.live-session-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted2);
  font: 800 11px/1.3 var(--body);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.live-session-nav a {
  color: var(--accent2);
}
.live-session-nav span::before {
  content: "/";
  margin-right: 8px;
  color: var(--muted2);
}
.live-now-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  margin: 0 0 18px;
  padding: 18px 20px;
  border: 1px solid rgba(194,101,42,.18);
  border-radius: 14px;
  background: #fffaf4;
  overflow: hidden;
}
.live-now-main {
  min-width: 0;
}
.live-session-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.live-session-meta {
  margin: 0;
  color: var(--muted);
  font: 800 12px/1.35 var(--body);
  letter-spacing: .02em;
}
.live-reader-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: min(430px, 100%);
}
.live-font-controls,
.live-tone-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,250,244,.72);
  box-shadow: var(--shadow);
}
.live-tone-controls {
  gap: 5px;
}
.live-control-label {
  padding: 0 4px 0 2px;
  color: var(--muted);
  font: 800 11px/1 var(--body);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.live-font-button,
.live-tone-button {
  min-width: 38px;
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: 800 13px/1 var(--body);
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.live-tone-button {
  padding: 0 10px;
  min-width: auto;
  font-size: 12px;
}
.live-font-button:hover,
.live-font-button.active,
.live-tone-button:hover,
.live-tone-button.active {
  border-color: var(--border-accent);
  background: rgba(194,101,42,.10);
  color: var(--accent);
}
.live-reader-button {
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.74);
  color: var(--muted);
  font: 700 12px/1 var(--body);
  padding: 10px 13px;
  cursor: pointer;
  transition: all .15s;
}
.live-reader-button:hover,
.live-reader-button.active {
  border-color: rgba(194,101,42,.28);
  background: rgba(194,101,42,.08);
  color: var(--accent2);
}
.live-export-tools {
  align-content: start;
  align-items: flex-start;
}
.live-export-tools .live-reader-button {
  border-color: rgba(194,101,42,.24);
  background: rgba(194,101,42,.10);
  color: var(--accent2);
  font-weight: 900;
}
.live-export-tools .live-reader-button:disabled {
  cursor: wait;
  opacity: .55;
}
.live-export-status {
  display: block;
  width: 100%;
  color: var(--muted);
  font: 800 11px/1.35 var(--body);
  text-align: right;
}
.live-current-title {
  max-width: min(1120px, 100%);
  margin: 0;
  font: 700 clamp(28px, 3.2vw, 44px)/1.06 var(--heading);
  color: var(--fg-strong);
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.live-now-card p {
  margin: 0;
  color: var(--muted);
  font: 14px/1.6 var(--body);
}
.live-now-card .live-session-meta {
  font: 800 12px/1.35 var(--body);
  letter-spacing: .02em;
}
.live-panel-strip {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}
.live-panel-title {
  color: var(--muted);
  font: 800 10.5px/1 var(--body);
  letter-spacing: .09em;
  text-transform: uppercase;
}
.live-panel-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
  max-height: 112px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.live-panel-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  max-width: min(100%, 360px);
  min-height: 36px;
  border: 1px solid rgba(216,208,200,.82);
  border-radius: 8px;
  background: #fff;
  color: var(--fg-strong);
  padding: 7px 11px 7px 9px;
  font: 800 12px/1.1 var(--body);
}
.live-panel-chip .live-speaker-mark {
  width: 9px;
  height: 9px;
  background: var(--speaker-color, #3949ab);
}
.live-panel-name {
  color: var(--speaker-color, #3949ab);
  font-size: 13px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.live-panel-model {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  min-width: 0;
  overflow-wrap: anywhere;
}
.live-panel-empty {
  color: var(--muted);
  font: 700 12px/1.4 var(--body);
}
.live-topic-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 10px 12px;
  align-items: center;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(194,101,42,.18);
  border-radius: 10px;
  background: rgba(255,255,255,.72);
}
.live-topic-card[hidden] {
  display: none !important;
}
.live-topic-label {
  color: var(--accent2);
  font: 900 10.5px/1 var(--body);
  letter-spacing: .10em;
  text-transform: uppercase;
  white-space: nowrap;
}
.live-topic-text {
  min-width: 0;
  color: var(--fg-strong);
  font: 700 14px/1.5 var(--body);
}
.live-topic-text p,
.live-topic-text .live-text-list {
  margin: 0;
  text-align: left;
}
.live-topic-share {
  min-height: 34px;
  border: 1px solid rgba(194,101,42,.24);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  padding: 8px 12px;
  font: 800 12px/1 var(--body);
  cursor: pointer;
}
.live-topic-share:hover {
  background: var(--accent2);
}
.live-topic-share-status {
  min-width: 70px;
  color: var(--muted);
  font: 800 11.5px/1 var(--body);
}
.live-highlight-strip {
  flex: 1 1 100%;
  width: 100%;
  display: grid;
  gap: 8px;
  margin-top: 2px;
  padding: 10px;
  border: 1px solid rgba(194,101,42,.18);
  border-radius: 10px;
  background: rgba(255,255,255,.78);
}
.live-current-title + .live-highlight-strip {
  margin-top: 12px;
}
.live-highlight-strip[hidden] {
  display: none !important;
}
.live-highlight-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--accent2);
  font: 900 10.5px/1 var(--body);
  letter-spacing: .10em;
  text-transform: uppercase;
}
.live-highlight-head span:last-child {
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
}
.live-highlight-list {
  display: grid;
  gap: 7px;
  max-height: 230px;
  margin: 0;
  padding: 0 2px 0 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
}
.live-highlight-list li {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  min-width: 0;
  min-height: 72px;
  overflow: visible;
  padding: 8px;
  border: 1px solid rgba(216,208,200,.78);
  border-radius: 8px;
  background: #fffaf4;
}
.live-highlight-list li.is-rejected {
  background: rgba(255,255,255,.66);
}
.live-highlight-list li > div {
  min-width: 0;
}
.live-highlight-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: 900 11px/1 var(--body);
}
.live-highlight-list strong {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  color: var(--muted);
  font: 900 10.5px/1.25 var(--body);
}
.live-highlight-list strong span {
  color: var(--accent2);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.live-highlight-list li.is-rejected strong span {
  color: #7b6a38;
}
.live-highlight-list strong em {
  color: var(--muted);
  font-style: normal;
  font-weight: 850;
}
.live-highlight-text {
  min-width: 0;
  margin-top: 3px;
  color: var(--fg-strong);
  font: 750 12.5px/1.42 var(--body);
  overflow-wrap: anywhere;
}
.live-highlight-text p,
.live-highlight-text .live-text-list {
  margin: 0;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.live-vote-board {
  display: grid;
  gap: 9px;
  margin: 10px;
  padding: 10px;
  border: 1px solid rgba(167,243,208,.16);
  border-radius: 12px;
  background: #10141c;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025);
  max-height: min(38vh, 340px);
  overflow: hidden;
}
.live-vote-board[hidden] {
  display: none !important;
}
.live-vote-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.live-vote-kicker {
  display: block;
  margin-bottom: 3px;
  color: #a7f3d0;
  font: 900 9.5px/1 var(--body);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.live-vote-head h3 {
  margin: 0;
  color: #f8fafc;
  font: 900 15px/1.16 var(--body);
}
.live-vote-status {
  flex: 0 0 auto;
  border: 1px solid rgba(167,243,208,.20);
  border-radius: 999px;
  background: rgba(167,243,208,.08);
  color: #a7f3d0;
  padding: 6px 9px;
  font: 900 11px/1 var(--body);
}
.live-vote-picker {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}
.live-vote-picker[hidden] {
  display: none !important;
}
.live-vote-picker span {
  color: #94a3b8;
  font: 900 10px/1 var(--body);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.live-vote-picker select {
  min-width: 0;
  width: 100%;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: #08090c;
  color: #f8fafc;
  padding: 7px 9px;
  font: 800 12px/1.2 var(--body);
}
.live-vote-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  max-height: 260px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 3px;
}
.live-vote-section {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 7px;
}
.live-vote-section-title {
  color: #94a3b8;
  font: 900 10px/1 var(--body);
  letter-spacing: .10em;
  text-transform: uppercase;
}
.live-vote-candidates {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
.live-vote-candidate {
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  background: rgba(255,255,255,.04);
}
.live-vote-candidate.is-accepted {
  border-color: rgba(167,243,208,.36);
  background: rgba(167,243,208,.08);
}
.live-vote-candidate-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}
.live-vote-id,
.live-vote-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  border-radius: 999px;
  font: 900 11px/1 var(--body);
}
.live-vote-id {
  min-width: 26px;
  background: #c2652a;
  color: #fff;
}
.live-vote-count {
  padding: 0 8px;
  background: rgba(167,243,208,.08);
  color: #a7f3d0;
}
.live-vote-candidate-text {
  color: #e5e7eb;
  font: 700 12px/1.42 var(--body);
  max-height: 76px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.live-vote-candidate-text p,
.live-vote-candidate-text .live-text-list {
  margin: 0 0 8px;
  text-align: left;
}
.live-vote-candidate-text p:last-child,
.live-vote-candidate-text .live-text-list:last-child {
  margin-bottom: 0;
}
.live-vote-origin {
  color: #94a3b8;
  font: 800 10.5px/1.35 var(--body);
}
.live-vote-cast {
  display: grid;
  gap: 5px;
}
.live-vote-row {
  display: grid;
  grid-template-columns: minmax(72px, .8fr) auto minmax(44px, auto);
  gap: 6px;
  align-items: center;
  padding: 6px 7px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 7px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--speaker-color, #60a5fa) 13%, transparent), rgba(255,255,255,.035));
}
.live-vote-row.is-pass {
  opacity: .72;
}
.live-vote-row.is-error {
  border-color: rgba(178,58,47,.32);
}
.live-vote-speaker {
  color: color-mix(in srgb, var(--speaker-color, #60a5fa) 68%, white);
  font: 900 12px/1.2 var(--body);
  overflow-wrap: anywhere;
}
.live-vote-model {
  display: none;
  color: #94a3b8;
  font: 800 10.5px/1.2 var(--body);
  overflow-wrap: anywhere;
}
.live-vote-arrow {
  color: #a7f3d0;
  font: 900 13px/1 var(--body);
}
.live-vote-choice {
  color: #f8fafc;
  font: 900 12px/1.2 var(--body);
  overflow-wrap: anywhere;
}
.live-key-board {
  display: grid;
  gap: 9px;
  margin: 0 10px 10px;
  padding: 11px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  background: rgba(255,255,255,.055);
}
.live-key-board[hidden] {
  display: none !important;
}
.live-key-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #cbd5e1;
  font: 900 10px/1 var(--body);
  letter-spacing: .10em;
  text-transform: uppercase;
}
.live-key-head span:last-child {
  color: #a7f3d0;
  letter-spacing: 0;
  text-transform: none;
}
.live-key-feed {
  display: grid;
  gap: 7px;
  max-height: 230px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.live-key-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 8px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--speaker-color, #60a5fa) 14%, transparent), rgba(255,255,255,.04));
}
.live-key-row time {
  color: #a7f3d0;
  font: 800 11.5px/1.35 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.live-key-row strong {
  display: block;
  color: #f8fafc;
  font: 900 13.5px/1.3 var(--body);
}
.live-key-body {
  display: block;
  margin-top: 5px;
  color: #e2e8f0;
  font: 750 14px/1.5 var(--body);
  overflow-wrap: anywhere;
}
.live-key-body p,
.live-key-body .live-text-list {
  margin: 0;
  color: inherit;
  font: inherit;
  text-align: left;
}
.live-key-body p + p {
  margin-top: 4px;
}
.live-console-stack {
  position: sticky;
  top: calc(var(--topbar-h) + 10px);
  z-index: 80;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  align-items: start;
  gap: 10px;
  margin: 0 0 22px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.live-main-stream {
  min-width: 0;
  display: grid;
  gap: 10px;
}
.live-main-stream .live-key-board {
  margin: 0;
  background: #0f1115;
  box-shadow: 0 18px 46px rgba(20,18,16,.16);
}
.live-console {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: #0f1115;
  color: #f8fafc;
  box-shadow: 0 18px 46px rgba(20,18,16,.20);
}
.live-console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  background: #090a0d;
  color: #f8fafc;
  font: 800 12px/1 var(--body);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.live-console-head span:last-child {
  color: #a7f3d0;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
.live-console-feed {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - var(--topbar-h) - 150px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.live-main-stream .live-console-feed {
  max-height: none;
  overflow: visible;
}
.live-console-message {
  display: grid;
  gap: 8px;
  padding: 14px 16px 15px;
  border-bottom: 1px solid rgba(255,255,255,.075);
  background: linear-gradient(90deg, color-mix(in srgb, var(--speaker-color, #60a5fa) 11%, transparent), transparent 42%);
}
.live-console-message:first-child {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--speaker-color, #60a5fa) 23%, transparent), transparent 48%),
    rgba(255,255,255,.045);
}
.live-console-message:last-child {
  border-bottom: 0;
}
.live-console-message-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.live-console-time {
  color: #a7f3d0;
  font: 800 12px/1.35 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.live-console-speaker {
  color: color-mix(in srgb, var(--speaker-color, #60a5fa) 72%, white);
  font-weight: 900;
}
.live-console-phase {
  color: #cbd5e1;
  font-weight: 800;
}
.live-console-model {
  color: #d6e3f3;
  font-weight: 800;
}
.live-console-body {
  color: #f8fafc;
  max-width: 112ch;
  font: 15px/1.62 var(--body);
  overflow-wrap: anywhere;
}
.live-console-body p,
.live-console-body .live-text-list {
  margin: 0 0 10px;
  color: #f8fafc;
  text-align: left;
  overflow-wrap: anywhere;
}
.live-console-body p:last-child,
.live-console-body .live-text-list:last-child {
  margin-bottom: 0;
}
.live-console-body h3 {
  margin: 0 0 8px;
  color: #fff;
  font: 900 15px/1.35 var(--body);
}
.live-console-body .live-math-block,
.live-console-body mjx-container[display="true"] {
  overflow-x: auto;
  max-width: 100%;
  margin: 10px 0;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(255,255,255,.055);
}
.live-console-empty {
  padding: 14px 16px;
  color: #cbd5e1;
  font: 700 13px/1.4 var(--body);
}
.live-event-log {
  border-color: rgba(167,243,208,.16);
  background: #08090c;
  box-shadow: 0 12px 30px rgba(20,18,16,.16);
}
.live-event-log .live-console-head {
  background: #050609;
}
.live-event-log-feed {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - var(--topbar-h) - 150px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.live-event-log-row {
  display: grid;
  grid-template-columns: 70px minmax(98px, 132px) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 9px 14px;
  border-bottom: 1px solid rgba(255,255,255,.065);
  background: linear-gradient(90deg, color-mix(in srgb, var(--speaker-color, #60a5fa) 8%, transparent), transparent 34%);
  color: #e5e7eb;
  font: 12.5px/1.4 var(--body);
}
.live-event-log-row:first-child {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--speaker-color, #60a5fa) 16%, transparent), transparent 40%),
    rgba(255,255,255,.035);
}
.live-event-log-row:last-child {
  border-bottom: 0;
}
.live-event-log-name {
  color: #f8fafc;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px;
  padding: 2px 6px;
  overflow-wrap: anywhere;
  font: 800 12px/1.35 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.live-event-log-speaker {
  color: color-mix(in srgb, var(--speaker-color, #60a5fa) 68%, white);
  font-weight: 900;
  overflow-wrap: anywhere;
  display: none;
}
.live-event-log-text {
  color: #cbd5e1;
  overflow-wrap: anywhere;
}
.live-archive-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
}
.live-session-column {
  position: static;
}
.live-session-column,
.live-event-column {
  display: grid;
  gap: 10px;
}
.live-session-column {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.live-column-title {
  font: 700 11px/1 var(--body);
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.live-session-list,
.live-event-feed {
  display: grid;
  gap: 14px;
}
.live-session-list {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 10px;
}
.live-session-picker {
  display: grid;
  grid-template-columns: auto minmax(280px, 560px);
  gap: 10px;
  align-items: center;
  width: 100%;
}
.live-session-picker-label {
  color: var(--muted);
  font: 700 11px/1 var(--body);
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.live-session-select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--fg-strong);
  font: 700 13px/1.2 var(--body);
  padding: 0 42px 0 12px;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.live-session-select:focus {
  outline: none;
  border-color: var(--border-accent);
  box-shadow: 0 0 0 3px rgba(194,101,42,.12);
}
.live-event-feed {
  max-width: none;
  width: 100%;
}
.live-session-button {
  display: block;
  width: auto;
  min-width: min(340px, 100%);
  max-width: 520px;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fcfdff;
  color: var(--fg);
  padding: 12px 14px;
  cursor: pointer;
  text-decoration: none !important;
}
.live-session-button:hover,
.live-session-button.active {
  border-color: var(--border-accent);
  background: var(--accent-soft);
  color: var(--fg);
}
.live-session-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--fg-strong);
  font: 700 13px/1.45 var(--body);
}
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(194,101,42,.12);
}
.live-session-meta {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font: 11.5px/1.35 var(--body);
}
.live-event-card {
  position: relative;
  width: 100%;
  border: 1px solid rgba(15,23,42,.075);
  border-left: 4px solid hsl(var(--speaker-hue, 184) 48% 42%);
  border-radius: 16px;
  background: #fff;
  padding: 16px 18px 14px;
  box-shadow: 0 8px 22px rgba(15,23,42,.035);
}
.live-event-card.is-highlight {
  border-left-color: #b45309;
  background: #fff7ec;
}
.live-event-card.is-system {
  border-left-color: var(--muted2);
  background: #fafbfc;
}
.live-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font: 700 11px/1.35 var(--body);
  letter-spacing: .02em;
  margin-bottom: 10px;
}
.live-event-speaker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: hsl(var(--speaker-hue, 184) 44% 31%);
  font-weight: 800;
}
.live-speaker-mark {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: hsl(var(--speaker-hue, 184) 50% 44%);
  box-shadow: 0 0 0 4px hsl(var(--speaker-hue, 184) 50% 44% / .11);
}
.live-event-model {
  color: var(--muted2);
  font-weight: 700;
}
.live-event-text {
  color: var(--fg);
  font: 15px/1.75 var(--body);
  letter-spacing: 0;
  overflow-wrap: anywhere;
  max-width: none;
}
.live-event-text p,
.live-event-text .live-text-list {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
.live-event-text p,
.live-event-text h3,
.live-event-text .live-text-list {
  margin: 0 0 12px;
}
.live-event-text p:last-child,
.live-event-text h3:last-child,
.live-event-text .live-text-list:last-child {
  margin-bottom: 0;
}
.live-event-text h3 {
  font: 800 14px/1.45 var(--body);
  color: var(--fg-strong);
}
.live-text-list {
  padding-left: 12px;
  border-left: 2px solid rgba(15,23,42,.08);
  color: var(--fg);
}
.live-math-block {
  display: block;
  max-width: 100%;
  margin: 12px 0;
  padding: 14px 16px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fbf1e8;
  color: var(--fg-strong);
}
.live-math-inline {
  color: var(--fg-strong);
}
.live-empty {
  display: grid;
  gap: 5px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  background: #fcfdff;
  padding: 16px;
  color: var(--muted);
  font: 13px/1.5 var(--body);
}
.live-empty strong {
  color: var(--fg-strong);
}
.home-hero {
  display: grid;
  gap: 16px;
}
.home-kicker {
  font: 600 11px/1 var(--body);
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.home-lede {
  margin: 0;
  max-width: 760px;
  font: 17px/1.7 var(--body);
  color: var(--fg);
}
.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.home-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg1);
  color: var(--fg-strong);
  font: 600 13px/1 var(--body);
  transition: all .15s;
}
.home-action:hover {
  border-color: var(--border-accent);
  background: var(--accent-soft);
  color: var(--accent);
  text-decoration: none;
}
.home-action-primary {
  background: var(--fg-strong);
  border-color: var(--fg-strong);
  color: #fff;
}
.home-action-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.home-note { margin-top: 18px; }
.home-paths {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 16px 0 6px;
}
.home-path-card {
  display: block;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fcfdff;
  color: var(--fg);
  transition: all .15s;
}
.home-path-card:hover {
  border-color: var(--border-accent);
  background: var(--bg1);
  color: var(--fg);
  text-decoration: none;
}
.home-path-card-live {
  border-color: rgba(194,101,42,.18);
  background: linear-gradient(135deg, rgba(194,101,42,.06), rgba(140,60,60,.035)), #fffaf4;
}
.home-path-kicker {
  display: block;
  margin-bottom: 10px;
  font: 600 11px/1 var(--body);
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.home-path-card h3 {
  margin: 0 0 8px;
  font: 600 17px/1.35 var(--body);
  color: var(--fg-strong);
}
.home-path-card p {
  margin: 0;
  font: 14px/1.65 var(--body);
  color: var(--muted);
}
.home-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin: 16px 0 24px;
}
.home-section-grid-compact {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  margin-bottom: 18px;
}
.home-section-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fcfdff;
  padding: 18px 16px;
}
.home-section-card .home-path-kicker {
  margin-bottom: 9px;
}
.home-section-card h3 {
  margin: 0 0 8px;
  font: 600 15px/1.35 var(--body);
  color: var(--fg-strong);
}
.home-section-card p {
  margin: 0 0 10px;
  font: 14px/1.6 var(--body);
  color: var(--muted);
}
.home-section-card ul {
  margin: 0;
  padding-left: 18px;
}
.home-section-card li { margin: 6px 0; }
.home-section-meta {
  margin-top: 12px;
  font: 12px/1.55 var(--body);
  color: var(--muted2);
}
.home-outline {
  display: grid;
  gap: 10px;
  margin: 16px 0 24px;
}
.home-outline-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
.home-outline-item:first-child {
  border-top: none;
  padding-top: 0;
}
.home-outline-label {
  font: 600 13px/1.5 var(--body);
  color: var(--fg-strong);
}
.home-outline-copy {
  font: 14px/1.7 var(--body);
  color: var(--muted);
}
.home-source {
  margin-top: 28px;
}
.home-source .info-text {
  color: var(--muted);
}

/* ── Two-door landing ─────────────────────────── */
body.gate-page {
  --credit-h: 34px;
  min-height: 100vh;
  background: var(--bg0);
}

.site-credit-banner {
  display: none;
}

.gate-page .site-credit-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  display: flex;
  justify-content: center;
  min-height: var(--credit-h);
  padding: 9px 16px;
  border-bottom: 1px solid rgba(216,208,200,.7);
  background: #2b211c;
  color: #fffaf4;
  font: 800 12px/1.35 var(--body);
  letter-spacing: .02em;
  text-align: center;
}

.gate-page .topbar {
  top: var(--credit-h);
  background: rgba(250,245,238,.94);
}

.gate-main {
  min-height: 100vh;
  padding: calc(var(--topbar-h) + var(--credit-h) + 56px) clamp(22px, 5vw, 84px) 64px;
}

.gate-hero {
  max-width: 960px;
  margin: 0 auto 34px;
  text-align: center;
}

.gate-kicker,
.gate-door-kicker {
  color: var(--muted);
  font: 800 11px/1 var(--body);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.gate-hero h1 {
  max-width: 900px;
  margin: 14px auto 16px;
  color: var(--fg-strong);
  font: 700 clamp(48px, 7vw, 94px)/.9 var(--heading);
  letter-spacing: 0;
}

.gate-hero p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
  font: 18px/1.65 var(--body);
}

.gate-doors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 34px);
  max-width: 1360px;
  margin: 0 auto;
}

.gate-door {
  display: grid;
  grid-template-rows: minmax(260px, 38vh) 1fr;
  overflow: hidden;
  min-height: 620px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  color: var(--fg);
  box-shadow: var(--shadow);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.gate-door:hover {
  transform: translateY(-3px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-lg);
  color: var(--fg);
  text-decoration: none;
}

.gate-door-media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--bg2);
}

.gate-door-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(58,48,42,.10);
}

.gate-door-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.92) sepia(.10) contrast(.95);
  transition: transform .22s ease;
}

.gate-door:hover .gate-door-media img {
  transform: scale(1.025);
}

.gate-door-copy {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: clamp(28px, 4vw, 44px);
}

.gate-door-title {
  color: var(--fg-strong);
  font: 700 clamp(36px, 4vw, 58px)/.95 var(--heading);
  letter-spacing: 0;
}

.gate-door-text {
  max-width: 52ch;
  color: var(--muted);
  font: 16px/1.7 var(--body);
}

/* ── AI debate landing ────────────────────────── */
body.debate-landing-page {
  min-height: 100vh;
  background: var(--bg0);
}

.debate-landing-main {
  min-height: 100vh;
  padding: calc(var(--topbar-h) + 28px) clamp(18px, 5vw, 78px) 64px;
}

.debate-landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, auto);
  align-items: center;
  gap: 24px 34px;
  max-width: 1320px;
  margin: 0 auto 22px;
  padding: clamp(20px, 2.5vw, 30px) clamp(22px, 3.2vw, 38px);
  border: 1px solid rgba(216,208,200,.72);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(194,101,42,.08), rgba(255,250,244,.34)),
    rgba(255,250,244,.72);
  text-align: left;
  box-shadow: var(--shadow);
}

.debate-landing-hero h1 {
  max-width: 620px;
  margin: 6px 0 0;
  color: var(--fg-strong);
  font: 700 clamp(42px, 4vw, 62px)/.96 var(--heading);
  letter-spacing: 0;
}

.debate-landing-hero p {
  max-width: 640px;
  margin: 12px 0 0;
  color: var(--muted);
  font: 16px/1.65 var(--body);
}

.debate-landing-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.debate-primary-action,
.debate-secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  font: 900 13px/1 var(--body);
}

.debate-primary-action {
  background: var(--accent);
  color: #fffaf4;
}

.debate-primary-action:hover {
  background: var(--accent2);
  color: #fffaf4;
  text-decoration: none;
}

.debate-secondary-action {
  border: 1px solid rgba(194,101,42,.22);
  background: rgba(255,255,255,.52);
  color: var(--accent2);
}

.debate-secondary-action:hover {
  border-color: var(--border-accent);
  background: #fffaf4;
  color: var(--accent);
  text-decoration: none;
}

.debate-contact-strip {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  margin-top: -2px;
  padding-top: 15px;
  border-top: 1px solid rgba(194,101,42,.12);
}

.debate-contact-strip a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(194,101,42,.18);
  border-radius: 999px;
  background: rgba(255,250,244,.76);
  color: var(--accent2);
  font: 800 12px/1 var(--body);
}

.debate-contact-strip a:hover {
  border-color: var(--border-accent);
  background: #fff;
  color: var(--accent);
  text-decoration: none;
}

.debate-featured,
.debate-archive-section {
  max-width: 1320px;
  margin: 0 auto;
}

.debate-landing-board {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .72fr);
  align-items: start;
  gap: 18px;
  max-width: 1320px;
  margin: 0 auto;
}

.debate-landing-board .debate-featured {
  max-width: none;
  margin: 0;
}

.debate-feature-card {
  display: grid;
  gap: 18px;
  min-height: 118px;
  padding: 22px 24px;
  border: 1px solid rgba(194,101,42,.20);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(194,101,42,.055), rgba(140,60,60,.025)),
    var(--card);
  color: var(--fg);
  box-shadow: var(--shadow);
}

.debate-feature-card-simple {
  grid-template-columns: 1fr;
  align-items: start;
  gap: 18px;
  min-height: 300px;
}

.debate-feature-card-rich {
  grid-template-columns: minmax(136px, .26fr) minmax(0, 1fr);
  align-items: stretch;
  padding: clamp(20px, 2.5vw, 28px);
}

.debate-feature-card:hover,
.debate-session-card:hover {
  border-color: var(--border-accent);
  color: var(--fg);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.debate-feature-card:focus {
  outline: none;
}

.debate-feature-card:focus-visible {
  outline: 3px solid rgba(194,101,42,.32);
  outline-offset: 4px;
}

.debate-card-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: var(--muted);
  font: 900 11px/1 var(--body);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.debate-card-status.is-live {
  border-color: rgba(194,101,42,.28);
  background: rgba(194,101,42,.10);
  color: var(--accent);
}

.debate-card-status.is-recent {
  border-color: rgba(123,106,56,.22);
  background: rgba(123,106,56,.08);
  color: var(--green);
}

.debate-card-status.is-archive {
  border-color: rgba(216,208,200,.92);
  background: rgba(255,255,255,.60);
  color: var(--muted);
}

.debate-card-date,
.debate-card-top time {
  color: var(--muted);
  font: 800 12px/1.35 var(--body);
}

.debate-feature-meta-panel,
.debate-feature-copy,
.debate-feature-outcomes,
.debate-feature-title-block,
.debate-simple-copy {
  display: grid;
  min-width: 0;
}

.debate-simple-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.debate-feature-meta-panel {
  align-content: start;
  justify-items: start;
  gap: 10px;
  padding: 4px 0;
}

.debate-feature-copy {
  gap: 11px;
}

.debate-feature-eyebrow {
  color: var(--accent);
  font: 900 12px/1.2 var(--body);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.debate-feature-card strong {
  min-width: 0;
  color: var(--fg-strong);
  font: 700 clamp(27px, 2.55vw, 42px)/1.08 var(--heading);
}

.debate-feature-card-simple strong {
  max-width: 28ch;
  font: 800 clamp(28px, 2.7vw, 42px)/1.08 var(--heading);
  overflow-wrap: break-word;
}

.debate-feature-summary {
  max-width: 74ch;
  color: var(--fg);
  font: 500 15px/1.62 var(--body);
}

.debate-feature-outcomes {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 8px;
  margin-top: 0;
}

.debate-feature-outcomes-label {
  display: block;
  margin-top: 7px;
  padding-top: 13px;
  border-top: 1px solid rgba(194,101,42,.16);
  color: var(--accent2);
  font: 900 11px/1.2 var(--body);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.debate-feature-outcomes span {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(194,101,42,.16);
  border-radius: 12px;
  background: rgba(255,255,255,.54);
  color: var(--fg);
  font: 700 12px/1.42 var(--body);
}

.debate-feature-outcomes b,
.debate-feature-outcomes em {
  display: block;
  min-width: 0;
}

.debate-feature-outcomes b {
  margin-bottom: 4px;
  color: var(--accent2);
  font: 900 11px/1.2 var(--body);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.debate-feature-outcomes em {
  color: var(--fg);
  font-style: normal;
}

.debate-feature-title-block {
  gap: 5px;
  margin-top: 0;
  padding: 10px 12px;
  border: 1px solid rgba(194,101,42,.14);
  border-radius: 12px;
  background: rgba(255,255,255,.42);
}

.debate-feature-title-block span {
  color: var(--muted);
  font: 800 13px/1.45 var(--body);
}

.debate-feature-title-block b {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  color: var(--fg-strong);
  font: 800 15px/1.4 var(--body);
}

.debate-simple-copy {
  align-content: end;
  gap: 12px;
  margin-top: auto;
}

.debate-simple-copy > span:last-child {
  max-width: 62ch;
  color: var(--muted);
  font: 800 14px/1.55 var(--body);
}

.debate-suggest-card {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: clamp(20px, 2.3vw, 26px);
  border: 1px solid rgba(194,101,42,.20);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow);
}

.debate-suggest-card h2 {
  margin: 7px 0 8px;
  color: var(--fg-strong);
  font: 700 clamp(30px, 2.8vw, 40px)/1 var(--heading);
}

.debate-suggest-card p {
  margin: 0;
  color: var(--muted);
  font: 14px/1.6 var(--body);
}

.debate-suggest-form,
.debate-suggest-form label {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.debate-suggest-form {
  gap: 12px;
}

.debate-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.debate-suggest-form label span {
  color: var(--fg-strong);
  font: 900 11px/1.2 var(--body);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.debate-suggest-form input,
.debate-suggest-form textarea,
.debate-suggest-form select {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(216,208,200,.9);
  border-radius: 10px;
  background: #fffdfa;
  color: var(--fg);
  font: 500 14px/1.45 var(--body);
}

.debate-suggest-form input,
.debate-suggest-form select {
  min-height: 42px;
  padding: 0 11px;
}

.debate-suggest-form textarea {
  resize: vertical;
  padding: 10px 11px;
}

.debate-suggest-form input:focus,
.debate-suggest-form textarea:focus,
.debate-suggest-form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(194,101,42,.13);
}

.debate-suggest-form button {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fffaf4;
  cursor: pointer;
  font: 900 13px/1 var(--body);
}

.debate-suggest-form button:disabled {
  cursor: wait;
  opacity: .65;
}

.debate-suggest-status {
  min-height: 18px;
  font: 800 12px/1.45 var(--body);
}

.debate-suggest-status[data-tone="success"] {
  color: #166534;
}

.debate-suggest-status[data-tone="error"] {
  color: #9f1239;
}

.debate-suggest-status a {
  color: inherit;
  text-decoration: underline;
}

.debate-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.debate-archive-section {
  margin-top: 28px;
}

.debate-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.debate-section-head h2 {
  margin: 8px 0 0;
  color: var(--fg-strong);
  font: 700 clamp(30px, 4vw, 46px)/1 var(--heading);
}

.debate-section-head a {
  color: var(--accent2);
  font: 900 13px/1.2 var(--body);
}

.debate-session-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 12px;
}

.debate-session-card,
.debate-empty-card,
.debate-loading-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  color: var(--fg);
  padding: 16px;
  box-shadow: var(--shadow);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.debate-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.debate-session-card strong {
  color: var(--fg-strong);
  font: 700 18px/1.28 var(--body);
}

.debate-card-meta,
.debate-empty-card span,
.debate-loading-card span {
  color: var(--muted);
  font: 800 12px/1.45 var(--body);
}

.debate-empty-card strong {
  color: var(--fg-strong);
  font: 700 17px/1.35 var(--body);
}

@media (max-width: 900px) {
  .debate-landing-hero {
    grid-template-columns: 1fr;
  }

  .debate-landing-actions {
    justify-content: stretch;
  }

  .debate-primary-action,
  .debate-secondary-action {
    flex: 1 1 180px;
  }

  .debate-landing-board {
    grid-template-columns: 1fr;
  }

  .debate-feature-card-rich,
  .debate-feature-card-simple {
    grid-template-columns: 1fr;
  }

  .debate-feature-outcomes {
    grid-template-columns: 1fr;
  }

  .debate-form-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Sahara polish ────────────────────────────── */
article {
  background: var(--card);
  border-color: var(--border);
  border-radius: var(--radius-lg);
  padding: 42px 48px 50px;
  box-shadow: var(--shadow);
}

.page-title {
  font-size: clamp(40px, 4.4vw, 64px);
  line-height: .95;
  letter-spacing: 0;
}

article h1,
article h2 {
  letter-spacing: 0;
}

article h1 {
  font-size: 34px;
  line-height: 1.05;
}

article h2 {
  font-size: 28px;
  line-height: 1.1;
}

.tag,
.home-kicker,
.live-column-title,
.sidebar-section,
.sidebar-search-label,
.home-path-kicker {
  letter-spacing: .12em;
}

.tag {
  border-color: rgba(194,101,42,.22);
  color: var(--accent);
  background: rgba(194,101,42,.08);
}

.sidebar-cat,
.sidebar-link,
.sidebar-tool,
.sidebar-more,
.sidebar-search-input {
  border-radius: var(--radius);
}

.sidebar-link.active,
.sidebar-cat.open,
.sidebar-cat:hover,
.sidebar-link:hover,
.sidebar-link.is-match {
  color: var(--accent);
  background: rgba(194,101,42,.09);
}

.sidebar-live-group .sidebar-cat {
  color: var(--accent2);
  border-color: rgba(140,60,60,.18);
  background: rgba(140,60,60,.055);
}

.sidebar-live-group .sidebar-link.active,
.sidebar-live-group .sidebar-link:hover {
  color: var(--accent2);
  background: rgba(140,60,60,.08);
}

.home-action,
.ai-debate-link,
.live-reader-button {
  border-radius: var(--radius);
}

.home-action-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fffaf4;
}

.home-action-primary:hover {
  background: #a94f1c;
  border-color: #a94f1c;
  color: #fffaf4;
}

.home-action:hover,
.ai-debate-link:hover,
.live-reader-button:hover,
.live-reader-button.active {
  border-color: var(--border-accent);
  background: rgba(194,101,42,.09);
  color: var(--accent);
}

.ai-debate-box,
.live-now-card,
.home-path-card,
.home-section-card,
.live-session-button,
.live-empty,
.index-card,
.concept-card,
.info-box {
  border-color: var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
}

.ai-debate-box,
.home-path-card-live,
.live-event-card.is-highlight {
  background:
    linear-gradient(135deg, rgba(194,101,42,.075), rgba(140,60,60,.045)),
    var(--card);
}

.home-path-card,
.home-section-card {
  padding: 24px;
}

.live-article {
  background: var(--card);
}

.live-now-card {
  padding: 22px 24px;
}

.live-session-button:hover,
.live-session-button.active {
  border-color: var(--border-accent);
  background: rgba(194,101,42,.08);
}

.live-dot,
.ai-debate-dot {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(194,101,42,.12);
}

.live-event-card {
  border-color: var(--border);
  border-left-width: 7px;
  border-left-color: var(--speaker-color, #3949ab);
  border-radius: 10px;
  background: var(--card);
  padding: 22px 24px 20px;
  box-shadow: var(--shadow);
}

.live-event-card.is-system {
  border-left-color: var(--muted2);
  background: #f7efe5;
}

.live-event-card.is-highlight {
  border-left-color: #b45309;
  background: #fff7ec;
}

.live-event-card.is-thinking {
  border-left-color: var(--speaker-color, #3949ab);
  background: color-mix(in srgb, var(--speaker-color, #3949ab) 5%, #fffaf4);
}

.live-event-card.is-quiet {
  border-left-color: var(--muted2);
  background: #fbf6ef;
}

.live-event-card.is-compact {
  padding: 13px 16px;
}

.live-event-card.is-compact .live-event-meta {
  margin-bottom: 7px;
}

.live-event-card.is-compact .live-event-speaker {
  font-size: 15px;
}

.live-event-card.is-compact .live-event-text {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.45;
}

.live-event-card.is-compact .live-event-text p {
  text-align: left;
}

.live-event-meta {
  gap: 9px;
  margin-bottom: 14px;
}

.live-event-time {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(58,48,42,.08);
  color: #4b4038;
  font: 800 12px/1.15 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.live-event-speaker {
  gap: 9px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--speaker-color, #3949ab);
  font-size: 20px;
  line-height: 1.12;
  letter-spacing: 0;
}

.live-speaker-mark {
  width: 12px;
  height: 12px;
  background: var(--speaker-color, #3949ab);
  box-shadow: none;
}

.live-event-model,
.live-event-meta > span:last-child {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,250,244,.76);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.15;
}

html[data-speaker-tone="dark"] .live-event-card,
body[data-speaker-tone="dark"] .live-event-card {
  border-left-color: var(--speaker-dark, #1e3a8a);
  background: var(--card);
}

html[data-speaker-tone="dark"] .live-event-card.is-highlight,
body[data-speaker-tone="dark"] .live-event-card.is-highlight {
  border-left-color: #78350f;
  background: #fff3df;
}

html[data-speaker-tone="dark"] .live-event-speaker,
body[data-speaker-tone="dark"] .live-event-speaker {
  color: var(--speaker-dark, #1e3a8a);
}

html[data-speaker-tone="dark"] .live-speaker-mark,
body[data-speaker-tone="dark"] .live-speaker-mark {
  background: var(--speaker-dark, #1e3a8a);
  box-shadow: none;
}

html[data-speaker-tone="dark"] .live-event-model,
html[data-speaker-tone="dark"] .live-event-meta > span:last-child,
body[data-speaker-tone="dark"] .live-event-model,
body[data-speaker-tone="dark"] .live-event-meta > span:last-child {
  background: rgba(58,48,42,.08);
  color: #4b4038;
}

.live-event-text {
  font-size: 15.5px;
  line-height: 1.78;
  max-width: none;
}

html[data-reader-font="small"] .live-event-meta,
body[data-reader-font="small"] .live-event-meta {
  font-size: 11.5px;
}

html[data-reader-font="small"] .live-event-text,
body[data-reader-font="small"] .live-event-text {
  font-size: 15.5px;
  line-height: 1.76;
}

html[data-reader-font="normal"] .live-event-meta,
body[data-reader-font="normal"] .live-event-meta {
  font-size: 12.5px;
}

html[data-reader-font="normal"] .live-event-text,
body[data-reader-font="normal"] .live-event-text {
  font-size: 17px;
  line-height: 1.8;
}

html[data-reader-font="normal"] .live-event-text h3,
body[data-reader-font="normal"] .live-event-text h3 {
  font-size: 17px;
}

html[data-reader-font="large"] .live-event-meta,
body[data-reader-font="large"] .live-event-meta {
  font-size: 14px;
}

html[data-reader-font="large"] .live-event-text,
body[data-reader-font="large"] .live-event-text {
  font-size: 21px;
  line-height: 1.82;
}

html[data-reader-font="large"] .live-event-text h3,
body[data-reader-font="large"] .live-event-text h3 {
  font-size: 21px;
  line-height: 1.35;
}

html[data-reader-font="large"] .live-event-card,
body[data-reader-font="large"] .live-event-card {
  padding: 28px 32px;
}

html[data-reader-font="large"] .live-event-text mjx-container[display="true"],
html[data-reader-font="large"] .live-math-block,
body[data-reader-font="large"] .live-event-text mjx-container[display="true"],
body[data-reader-font="large"] .live-math-block {
  font-size: 1.1em;
}

.live-event-text mjx-container[display="true"] {
  display: block;
  overflow-x: auto;
  margin: 14px 0;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fbf1e8;
}

.live-event-text code,
article code {
  background: #f3e7d9;
  border-color: rgba(216,208,200,.75);
}

.ai-live-status {
  border-color: rgba(194,101,42,.22);
  background: rgba(255,250,244,.72);
  color: var(--accent);
}

.home-lede {
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
}

/* ── Responsive ───────────────────────────────── */
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .topbar-sub { display: none; }

  .sidebar {
    transform: translateX(-100%);
    transition: transform .25s ease;
  }
  .sidebar.open { transform: translateX(0); }

  .content { margin-left: 0; padding: 20px 16px 46px; }
  .live-content { width: 100%; max-width: none; padding-right: 16px; }
  article { padding: 24px 20px 28px; border-radius: 18px; }
  .site-footer { margin-left: 0; padding: 16px 16px 24px; }
  .footer-inner { flex-direction: column; gap: 8px; }

  .index-cards { grid-template-columns: 1fr; }
  .concept-grid { grid-template-columns: 1fr 1fr; }
  .stat-banner { grid-template-columns: repeat(2, 1fr); }
  .home-paths,
  .home-section-grid { grid-template-columns: 1fr; }
  .gate-main { padding: calc(var(--topbar-h) + var(--credit-h, 0px) + 34px) 16px 34px; }
  .gate-hero { text-align: left; margin-bottom: 22px; }
  .gate-hero h1 { margin-left: 0; margin-right: 0; font-size: 46px; }
  .gate-hero p { margin-left: 0; margin-right: 0; font-size: 16px; }
  .gate-doors { grid-template-columns: 1fr; }
  .gate-door { min-height: 0; grid-template-rows: 220px 1fr; }
  .gate-door-copy { padding: 24px; }
  .live-archive-grid { grid-template-columns: 1fr; }
  .live-session-column { position: static; align-items: stretch; flex-direction: column; }
  .live-session-list { display: grid; grid-template-columns: 1fr; }
  .live-session-picker { grid-template-columns: 1fr; }
  .live-session-button { width: 100%; max-width: none; }
  .live-event-feed { max-width: none; }
  .live-now-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .live-console-stack {
    grid-template-columns: 1fr;
    top: calc(var(--topbar-h) + 8px);
  }
  .live-console-feed { max-height: 48vh; }
  .live-event-log-feed { max-height: 28vh; }
  .live-event-log-row {
    grid-template-columns: 68px minmax(118px, 180px) minmax(0, 1fr);
  }
  .live-event-log-speaker {
    display: none;
  }
  .live-reader-tools { justify-content: stretch; }
  .live-reader-tools > * { flex: 1 1 auto; }
  .live-topic-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .live-vote-grid {
    grid-template-columns: 1fr;
  }
  .live-vote-candidates {
    grid-template-columns: 1fr;
  }
  .live-vote-row {
    grid-template-columns: minmax(0, 1fr) auto minmax(54px, auto);
  }
  .live-vote-model {
    display: none;
  }
  .live-topic-share {
    border-radius: 10px;
  }
  .live-topic-share-status {
    min-width: 0;
  }
  .live-font-controls,
  .live-tone-controls { justify-content: space-between; }
  .live-font-button,
  .live-tone-button { flex: 1; }
  .home-outline-item { grid-template-columns: 1fr; gap: 4px; }
  .ai-debate-box { align-items: stretch; flex-direction: column; gap: 12px; }
  .ai-debate-link { width: 100%; border-radius: 12px; }
  .home-actions { flex-direction: column; align-items: stretch; }
  .home-action { width: 100%; border-radius: 12px; }

  .page-title { font-size: 28px; }
  article table { font-size: 12px; }
}

@media (max-width: 1180px) {
  .live-console-stack {
    position: static;
    grid-template-columns: 1fr;
  }

  .live-console-feed {
    max-height: 58vh;
  }

  .live-event-log-feed {
    max-height: 30vh;
  }
}

@media (max-width: 700px) {
  body.live-page {
    overflow-x: hidden;
  }

  body.live-page .topbar-inner {
    gap: 8px;
    padding: 0 12px;
  }

  body.live-page .topbar-info {
    flex: 1;
  }

  body.live-page .topbar-name {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.live-page .topbar-links {
    display: none;
  }

  body.live-page .content,
  body.live-page .live-content {
    padding: 12px 10px 34px;
  }

  body.live-page article.live-article {
    padding: 16px 12px 22px;
    border-radius: 14px;
  }

  .live-archive-header {
    gap: 7px;
    margin-bottom: 14px;
  }

  .live-breadcrumb {
    font-size: 11.5px;
  }

  .live-page .home-kicker {
    font-size: 10.5px;
  }

  .live-page .page-title {
    font-size: 30px;
    line-height: 1.06;
  }

  .live-page .home-lede {
    font-size: 15px;
    line-height: 1.55;
  }

  .live-now-card {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 14px;
    padding: 15px;
    border-radius: 12px;
  }

  .live-current-title {
    margin-top: 8px;
    font-size: 24px;
    line-height: 1.12;
  }

  .live-now-card p {
    font-size: 13px;
    line-height: 1.45;
  }

  .live-console-stack {
    margin-bottom: 16px;
  }

  .live-vote-board {
    padding: 12px;
    border-radius: 12px;
  }

  .live-vote-head {
    display: grid;
    gap: 10px;
  }

  .live-vote-head h3 {
    font-size: 21px;
  }

  .live-console {
    border-radius: 12px;
  }

  .live-console-head {
    padding: 10px 12px;
    font-size: 11px;
  }

  .live-console-head span:last-child {
    display: none;
  }

  .live-console-feed { max-height: 48vh; }

  .live-event-log-feed { max-height: 28vh; }

  .live-console-message {
    gap: 7px;
    padding: 11px 12px 12px;
  }

  .live-console-message-head {
    gap: 6px;
  }

  .live-console-time {
    font-size: 11px;
  }

  .live-console-speaker,
  .live-console-model,
  .live-console-phase {
    font-size: 12px;
  }

  .live-console-body {
    font-size: 13.5px;
    line-height: 1.52;
  }

  .live-event-log-row {
    grid-template-columns: 58px minmax(92px, 130px) minmax(0, 1fr);
    gap: 7px;
    padding: 8px 10px;
    font-size: 11.5px;
  }

  .live-event-log-name {
    font-size: 10.5px;
  }

  .live-reader-tools {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    width: 100%;
  }

  .live-font-controls,
  .live-tone-controls {
    width: 100%;
    justify-content: stretch;
    padding: 5px;
  }

  .live-control-label {
    min-width: 48px;
    text-align: center;
  }

  .live-font-button,
  .live-tone-button {
    min-height: 44px;
    flex: 1;
    font-size: 14px;
  }

  .live-reader-tools .ai-debate-link {
    width: 100%;
    min-height: 44px;
  }

  .live-session-column {
    gap: 9px;
    padding-bottom: 12px;
  }

  .live-column-title {
    font-size: 10.5px;
  }

  .live-session-picker {
    grid-template-columns: 1fr;
    gap: 7px;
    min-width: 0;
  }

  .live-session-select {
    min-width: 0;
    min-height: 46px;
    font-size: 12.5px;
    padding-left: 10px;
  }

  .live-event-feed {
    gap: 11px;
  }

  .live-event-card {
    min-width: 0;
    padding: 16px 14px 15px;
    border-left-width: 3px;
    border-radius: 10px;
  }

  .live-event-meta {
    gap: 6px 8px;
    margin-bottom: 12px;
    line-height: 1.35;
  }

  .live-event-time {
    min-height: 24px;
    font-size: 11px;
  }

  .live-event-speaker,
  .live-event-model {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .live-event-speaker {
    padding: 6px 9px;
    font-size: 18.5px;
    line-height: 1.14;
  }

  .live-speaker-mark {
    width: 10px;
    height: 10px;
  }

  .live-event-model,
  .live-event-meta > span:last-child {
    min-height: 24px;
    font-size: 11.5px;
  }

  .live-event-text {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .live-event-text p,
  .live-event-text .live-text-list {
    text-align: left;
  }

  .live-math-block,
  .live-event-text mjx-container[display="true"] {
    margin: 10px 0;
    padding: 12px;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  html[data-reader-font="small"] .live-event-text,
  body[data-reader-font="small"] .live-event-text {
    font-size: 15px;
    line-height: 1.68;
  }

  html[data-reader-font="normal"] .live-event-text,
  html[data-reader-font="normal"] .live-event-text h3,
  body[data-reader-font="normal"] .live-event-text,
  body[data-reader-font="normal"] .live-event-text h3 {
    font-size: 16.5px;
    line-height: 1.72;
  }

  html[data-reader-font="large"] .live-event-text,
  html[data-reader-font="large"] .live-event-text h3,
  body[data-reader-font="large"] .live-event-text,
  body[data-reader-font="large"] .live-event-text h3 {
    font-size: 19px;
    line-height: 1.74;
  }

  html[data-reader-font="large"] .live-event-card,
  body[data-reader-font="large"] .live-event-card {
    padding: 17px 15px 16px;
  }
}

@media (max-width: 500px) {
  .topbar-links { gap: 10px; font-size: 12px; }
  .concept-grid { grid-template-columns: 1fr; }
  .stat-banner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 380px) {
  body.live-page .content,
  body.live-page .live-content {
    padding-left: 7px;
    padding-right: 7px;
  }

  body.live-page article.live-article {
    padding-left: 9px;
    padding-right: 9px;
  }

  .live-page .page-title {
    font-size: 27px;
  }

  .live-now-card {
    padding: 13px;
  }
}
