@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&family=Inter:wght@300..900&display=swap');

/* ───────────────────────────────────────────────
   TOKENS
─────────────────────────────────────────────── */
:root {
  --bg:          #050c18;
  --bg-2:        #07101f;
  --panel:       rgba(9, 16, 32, 0.92);
  --panel-2:     rgba(13, 22, 44, 0.95);
  --panel-3:     rgba(18, 30, 58, 0.93);
  --text:        #eef4ff;
  --muted:       #8fa4cc;
  --muted-2:     #6b80a8;
  --line:        rgba(150, 175, 255, 0.1);
  --line-strong: rgba(120, 160, 255, 0.22);

  --cyan:        #38d9f5;
  --cyan-dim:    rgba(56, 217, 245, 0.14);
  --cyan-glow:   rgba(56, 217, 245, 0.24);
  --gold:        #e8a03a;
  --gold-dim:    rgba(232, 160, 58, 0.12);
  --purple:      #a78bfa;
  --purple-dim:  rgba(167, 139, 250, 0.12);

  --good:        #10b981;
  --good-dim:    rgba(16, 185, 129, 0.14);
  --warn:        #f59e0b;
  --warn-dim:    rgba(245, 158, 11, 0.14);
  --bad:         #ef4444;
  --bad-dim:     rgba(239, 68, 68, 0.14);

  --radius-sm:   14px;
  --radius:      20px;
  --radius-lg:   28px;
  --shadow:      0 24px 60px rgba(0,0,0,0.52);
  --shadow-soft: 0 12px 28px rgba(0,0,0,0.32);

  --font-display: 'Fraunces', Georgia, serif;
  --font-ui:      'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

/* ───────────────────────────────────────────────
   RESET & BASE
─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(ellipse 70% 38% at 50% 0%, rgba(56, 217, 245, 0.08) 0%, transparent 100%),
    radial-gradient(ellipse 40% 28% at 92% 8%, rgba(167, 139, 250, 0.1) 0%, transparent 100%),
    linear-gradient(180deg, #060f1e 0%, #050c18 40%, #040810 100%);
  min-height: 100vh;
}

button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: rgba(255,255,255,0.07);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.9em;
}

/* ───────────────────────────────────────────────
   LAYOUT SHELL
─────────────────────────────────────────────── */
.app-shell {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 18px 80px;
}

.app-shell-product {
  display: grid;
  gap: 20px;
}

/* ───────────────────────────────────────────────
   HERO / TOPBAR  (slimmed)
─────────────────────────────────────────────── */
.topbar {
  padding: 24px 4px 18px;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.topbar-right {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.topbar-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(56, 217, 245, 0.28);
  background: rgba(56, 217, 245, 0.07);
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  white-space: nowrap;
  flex-shrink: 0;
}

.topbar-kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
  animation: pulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.topbar-headline {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0;
  color: #f5f9ff;
}

.topbar-headline em {
  font-style: italic;
  color: var(--cyan);
}

.topbar-pill {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Legacy compatibility */
.eyebrow, .section-kicker {
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 700;
  margin: 0 0 10px;
}

.topbar-meta { display: flex; gap: 10px; flex-wrap: wrap; }
.topbar-title {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

/* ───────────────────────────────────────────────
   TRENDING STRIP
─────────────────────────────────────────────── */
.trending-strip {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(10,18,36,0.97), rgba(7,12,22,0.99));
  padding: 16px 20px 20px;
  overflow: hidden;
}

.trending-strip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.trending-strip-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--cyan);
}

.trending-strip-nav {
  display: flex;
  gap: 6px;
}

.strip-nav-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 140ms ease;
}

.strip-nav-btn:hover {
  border-color: var(--line-strong);
  background: rgba(255,255,255,0.08);
  color: var(--text);
}

.trending-strip-track-wrap {
  overflow: hidden;
}

.trending-strip-track {
  display: grid;
  grid-template-columns: repeat(4, calc(25% - 12px));
  gap: 14px;
  transition: transform 380ms cubic-bezier(0.4,0,0.2,1);
  /* wide enough for all cards — set dynamically by JS */
}

.trending-strip-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.015));
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease;
  min-width: 0;
}

.trending-strip-card:hover {
  border-color: rgba(56,217,245,0.3);
  background: linear-gradient(180deg, rgba(56,217,245,0.06), rgba(255,255,255,0.02));
}

.strip-card-verdict {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.strip-card-verdict.accurate  { color: var(--good); }
.strip-card-verdict.misleading { color: var(--warn); }
.strip-card-verdict.false     { color: var(--bad); }
.strip-card-verdict.mixed     { color: var(--warn); }
.strip-card-verdict.developing,
.strip-card-verdict.unverifiable { color: var(--muted); }

.strip-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
  color: #eef4ff;
}

.strip-card-summary {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trending-strip-skeleton {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01));
  min-height: 120px;
  animation: shimmer 1.6s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@media (max-width: 759px) {
  .topbar-inner { flex-direction: column; align-items: flex-start; }
  .topbar-left  { flex-direction: column; align-items: flex-start; gap: 10px; }
  .trending-strip-track { grid-template-columns: repeat(4, calc(75vw - 28px)); }
}

/* ───────────────────────────────────────────────
   PANELS
─────────────────────────────────────────────── */
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(10, 18, 36, 0.96) 0%, rgba(7, 12, 22, 0.98) 100%);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  padding: 24px;
}

.panel-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.panel-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
  max-width: 62ch;
}

.panel-head-split {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.panel-badge-cluster {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ───────────────────────────────────────────────
   SEARCH SURFACE
─────────────────────────────────────────────── */
.search-surface {
  border-color: rgba(56, 217, 245, 0.14);
  background: linear-gradient(160deg, rgba(10, 20, 40, 0.97) 0%, rgba(7, 13, 26, 0.99) 100%);
}

.workspace-search { min-height: 100%; }
.workspace-result { min-height: 100%; }

.workspace-grid {
  display: grid;
  gap: 20px;
  align-items: start;
}

/* ───────────────────────────────────────────────
   MODE TABS
─────────────────────────────────────────────── */
.mode-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.mode-tab {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 150ms ease;
}

.mode-tab:hover {
  border-color: var(--line-strong);
  background: rgba(255,255,255,0.06);
  color: var(--text);
}

.mode-tab.active {
  border-color: rgba(56, 217, 245, 0.48);
  color: #cef5ff;
  background: linear-gradient(135deg, rgba(56, 217, 245, 0.14), rgba(167, 139, 250, 0.1));
  font-weight: 600;
}

/* ───────────────────────────────────────────────
   TAB PANELS & SEARCH CARDS
─────────────────────────────────────────────── */
.tab-panels { margin-top: 14px; }
.search-panels-grid { display: grid; gap: 14px; margin-top: 18px; }

.tab-panel { display: block; }
.search-panels-grid .tab-panel:not(.active) { opacity: 0.6; }
.search-panels-grid .tab-panel.active { opacity: 1; }

.search-panel-card {
  display: block;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
}

.search-label {
  display: block;
  color: var(--muted);
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.search-row { display: flex; gap: 10px; flex-direction: column; }

.search-row-inline {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
  gap: 10px;
}

.search-row input,
.sorters select,
textarea,
#imageInput {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(3, 8, 18, 0.55);
  color: var(--text);
  padding: 15px 18px;
  font-size: 15px;
  transition: border-color 150ms ease;
}

.search-row input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(56, 217, 245, 0.4);
  box-shadow: 0 0 0 3px rgba(56, 217, 245, 0.08);
}

.search-row input::placeholder,
textarea::placeholder { color: var(--muted-2); }

textarea {
  min-height: 115px;
  resize: vertical;
  border-radius: var(--radius-sm);
}

#searchBtn, #factCheckBtn, #imageAnalyzeBtn {
  border: 0;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #5eead4, #38d9f5, #818cf8);
  color: #050e1c;
  font-weight: 800;
  font-size: 14px;
  padding: 0 22px;
  cursor: pointer;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(56, 217, 245, 0.28), 0 2px 8px rgba(0,0,0,0.3);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

#searchBtn:hover, #factCheckBtn:hover, #imageAnalyzeBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(56, 217, 245, 0.36), 0 2px 8px rgba(0,0,0,0.3);
}

#searchBtn:active, #factCheckBtn:active, #imageAnalyzeBtn:active {
  transform: translateY(0);
}

.ghost-btn {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  padding: 9px 16px;
  font-size: 13px;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease;
}

.ghost-btn:hover {
  background: rgba(255,255,255,0.07);
  border-color: var(--line-strong);
}

.stack-sm { display: flex; flex-direction: column; gap: 10px; margin-top: 0; }
.compact-stack { margin-top: 0; }

/* ───────────────────────────────────────────────
   QUICK PROMPTS & CHIPS
─────────────────────────────────────────────── */
.quick-prompts, .chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.quick-prompts button, .chip {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 140ms ease;
}

.quick-prompts button:hover, .chip:hover {
  border-color: var(--line-strong);
  background: rgba(255,255,255,0.06);
  color: var(--text);
}

.chip.active {
  border-color: rgba(56, 217, 245, 0.45);
  color: #cef5ff;
  background: var(--cyan-dim);
}

/* ───────────────────────────────────────────────
   TOOLBAR
─────────────────────────────────────────────── */
.toolbar {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(8, 14, 28, 0.96), rgba(6, 10, 20, 0.97));
  box-shadow: var(--shadow-soft);
}

.toolbar-inline { margin-top: 16px; }

.toolbar-right-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toolbar-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-2);
  font-weight: 600;
}

/* ───────────────────────────────────────────────
   RESULT PANEL
─────────────────────────────────────────────── */
.unified-result-panel {
  position: relative;
  overflow: hidden;
  border-color: rgba(56, 217, 245, 0.16);
  background:
    radial-gradient(ellipse 60% 34% at top right, rgba(56, 217, 245, 0.09), transparent),
    radial-gradient(ellipse 40% 28% at bottom left, rgba(167, 139, 250, 0.07), transparent),
    linear-gradient(160deg, rgba(9, 17, 33, 0.99), rgba(6, 11, 20, 0.99));
}

.unified-result-panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 217, 245, 0.4), transparent);
  pointer-events: none;
}

.result-meta-row,
.summary-meta,
.feed-tags,
.actor-tags,
.detail-links,
.trending-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ───────────────────────────────────────────────
   TRUST BAR
─────────────────────────────────────────────── */
.trust-bar {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.trust-item {
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  background: rgba(255,255,255,0.025);
}

.trust-item-emphasis {
  border-left-color: var(--cyan);
  background: linear-gradient(135deg, rgba(56, 217, 245, 0.08), rgba(255,255,255,0.02));
}

.trust-item-good { border-left-color: var(--good); }
.trust-item-warn { border-left-color: var(--warn); }
.trust-item-bad  { border-left-color: var(--bad);  }

.trust-label {
  display: block;
  margin-bottom: 6px;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-2);
  font-weight: 700;
}

.trust-item strong {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ───────────────────────────────────────────────
   META PILLS
─────────────────────────────────────────────── */
.meta-pill, .hero-meta-pill {
  padding: 7px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.hero-meta-pill {
  border-color: rgba(56, 217, 245, 0.16);
  background: rgba(56, 217, 245, 0.06);
  color: #c8eeff;
}

/* ───────────────────────────────────────────────
   RESULT & VERDICT
─────────────────────────────────────────────── */
.result-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(56, 217, 245, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(12, 22, 44, 0.99), rgba(7, 12, 22, 0.98));
  min-height: 320px;
  box-shadow: var(--shadow-soft);
}

.muted-state {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0.9;
}

.result-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.result-section-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 15px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  box-shadow: var(--shadow-soft);
}

.result-sections-grid { display: grid; gap: 12px; margin-top: 14px; }

/* Verdict spotlight */
.verdict-spotlight {
  display: grid;
  gap: 14px;
  margin: 4px 0 18px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.07);
  background: linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.018));
}

.verdict-copy { display: grid; gap: 8px; }

.verdict-line {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #f0f5ff;
}

.verdict-sidecar {
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-sm);
  padding: 14px;
  background: rgba(0,0,0,0.15);
}

.verdict-sidecar p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.58;
  font-size: 14px;
}

.verdict-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.verdict-accurate, .verdict-good {
  border-color: rgba(16, 185, 129, 0.3);
  background: var(--good-dim);
  color: #6ee7b7;
}
.verdict-misleading, .verdict-mixed {
  border-color: rgba(245, 158, 11, 0.3);
  background: var(--warn-dim);
  color: #fcd34d;
}
.verdict-false, .verdict-bad {
  border-color: rgba(239, 68, 68, 0.3);
  background: var(--bad-dim);
  color: #fca5a5;
}

.status-good { color: #6ee7b7; }
.status-bad  { color: #fca5a5; }

/* ───────────────────────────────────────────────
   PROMOTION PANEL
─────────────────────────────────────────────── */
.promotion-panel { margin-top: 18px; }

.promotion-card {
  border: 1px solid rgba(232, 160, 58, 0.2);
  border-radius: var(--radius);
  padding: 20px;
  background:
    radial-gradient(circle at top right, rgba(232, 160, 58, 0.09), transparent 34%),
    linear-gradient(180deg, rgba(11, 19, 38, 0.96), rgba(10, 18, 31, 0.97));
  box-shadow: var(--shadow-soft);
}

.promotion-card::before {
  display: none;
}

.promotion-grid {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}

.promotion-block {
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-sm);
  padding: 14px;
  background: rgba(255,255,255,0.03);
}

.promotion-label {
  display: block;
  margin-bottom: 8px;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-2);
  font-weight: 700;
}

.promotion-block p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
  font-size: 14px;
}

/* ───────────────────────────────────────────────
   SUMMARY PANEL
─────────────────────────────────────────────── */
.summary-panel {
  border-color: rgba(56, 217, 245, 0.12);
  background:
    radial-gradient(ellipse 50% 40% at top left, rgba(56, 217, 245, 0.1), transparent),
    linear-gradient(140deg, rgba(16, 28, 56, 0.98), rgba(9, 17, 34, 0.98));
}

.summary-panel h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.summary-panel p { margin: 0 0 14px; color: var(--muted); line-height: 1.62; }

.summary-hero-grid { display: grid; gap: 18px; }

.summary-scorecard { display: grid; gap: 10px; }

.summary-score-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  background: rgba(255,255,255,0.03);
}

.summary-score-label, .command-label {
  display: block;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-2);
  margin-bottom: 8px;
  font-weight: 700;
}

.summary-score-item strong, .command-card strong {
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.summary-lenses { display: grid; gap: 12px; margin-top: 18px; }

.summary-lens-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 15px;
  background: rgba(255,255,255,0.028);
}

.summary-lens-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

/* ───────────────────────────────────────────────
   CARDS: CLAIM, FEED, ACTOR, TRENDING, ETC.
─────────────────────────────────────────────── */
.claim-grid, .summary-cards, .actors, .feed,
.notes-list, .ideas-list, .trending-list,
.workflow-steps, .trending-highlights {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.claim-card, .summary-card, .actor-card, .feed-item, .note-card,
.detail-card, .trending-card, .workflow-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  box-shadow: var(--shadow-soft);
  transition: border-color 150ms ease, background 150ms ease;
}

.claim-card:hover, .feed-item:hover, .trending-card:hover {
  border-color: var(--line-strong);
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.022));
}

.claim-card h3, .summary-card h3, .actor-card h3, .feed-item h3,
.note-card h3, .detail-card h3, .trending-card h3,
.result-card h3, .result-section-card h4 {
  margin: 0 0 8px;
  font-size: 1rem;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.claim-card p, .summary-card p, .actor-card p, .feed-item p, .note-card p,
.detail-card p, .trending-card p, .result-card p, .result-section-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.claim-top, .feed-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }

.summary-card {
  position: relative;
  overflow: hidden;
}

.summary-card::after {
  content: "";
  position: absolute;
  inset: auto -14% -28% auto;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(56, 217, 245, 0.1), transparent 70%);
  pointer-events: none;
}

.idea-card {
  border-color: rgba(167, 139, 250, 0.18);
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.07), rgba(255,255,255,0.02));
}

.note-card, .idea-card { padding: 13px 15px; }

/* ───────────────────────────────────────────────
   METERS & TAGS
─────────────────────────────────────────────── */
.meter {
  min-width: 88px;
  text-align: center;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.meter.good  { background: var(--good-dim); color: #6ee7b7; border: 1px solid rgba(16,185,129,0.2); }
.meter.mixed { background: var(--warn-dim); color: #fcd34d; border: 1px solid rgba(245,158,11,0.2); }
.meter.bad   { background: var(--bad-dim);  color: #fca5a5; border: 1px solid rgba(239,68,68,0.2);  }

.tag {
  font-size: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: var(--muted);
}

/* ───────────────────────────────────────────────
   ACTOR
─────────────────────────────────────────────── */
.actor-score {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--cyan);
}

/* ───────────────────────────────────────────────
   MISC CONTENT
─────────────────────────────────────────────── */
.summary-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: opacity 150ms;
}
.summary-link:hover { opacity: 0.75; }

.detail-section { margin-top: 16px; }
.detail-section h4, .detail-section h5 { margin: 0 0 8px; font-size: 14px; font-weight: 600; }
.detail-section ul { margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.6; }

.search-note, .mini-note { color: var(--muted); margin-top: 12px; font-size: 13px; line-height: 1.5; }

/* ───────────────────────────────────────────────
   ROUTE PANEL
─────────────────────────────────────────────── */
.route-wrap { display: flex; flex-direction: column; gap: 16px; }
.route-text { margin: 0; color: var(--muted); line-height: 1.6; }
.route-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.tab-search-panel, .live-panel, .route-panel { margin-top: 18px; }

/* ───────────────────────────────────────────────
   BOARD LAYOUT
─────────────────────────────────────────────── */
.board-layout { display: grid; gap: 20px; margin-top: 20px; }
.primary-column, .secondary-column { display: grid; gap: 20px; }

/* ───────────────────────────────────────────────
   LOADING & ERROR
─────────────────────────────────────────────── */
.loading-state {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 120px;
}

.loading-state-rich { min-height: 160px; }

.spinner {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--cyan);
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-copy { font-size: 14.5px; color: var(--muted); }
.loading-timer { margin-top: 6px !important; font-size: 13px; }

.error-card {
  border: 1px solid rgba(239, 68, 68, 0.32);
  background: rgba(239, 68, 68, 0.07);
  color: #fecaca;
  border-radius: var(--radius-sm);
  padding: 14px;
}

/* ───────────────────────────────────────────────
   CITATIONS
─────────────────────────────────────────────── */
.citation-list { display: grid; gap: 10px; margin-top: 12px; }

.citation-item {
  display: grid;
  gap: 4px;
  text-decoration: none;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.025);
  transition: border-color 140ms ease, background 140ms ease;
}

.citation-item:hover {
  border-color: var(--line-strong);
  background: rgba(255,255,255,0.04);
}

.citation-item span { color: var(--muted); font-size: 13px; }

.detail-toggle summary {
  cursor: pointer;
  color: var(--cyan);
  font-size: 13.5px;
  font-weight: 500;
}

/* ───────────────────────────────────────────────
   MATCH CARDS
─────────────────────────────────────────────── */
.match-cards { display: grid; gap: 10px; }

.match-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: rgba(255,255,255,0.025);
  color: var(--text);
  display: grid;
  gap: 5px;
  cursor: pointer;
  text-align: left;
  transition: all 140ms ease;
}

.match-card:hover:not(:disabled) {
  border-color: rgba(56, 217, 245, 0.4);
  background: rgba(56, 217, 245, 0.07);
}

.match-card:disabled { opacity: 0.6; cursor: default; }

.match-card-type {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
  font-weight: 700;
}

.match-card span, .match-card em { color: var(--muted); font-style: normal; font-size: 13px; }

/* ───────────────────────────────────────────────
   TRENDING
─────────────────────────────────────────────── */
.trending-card-top { align-items: flex-start; }
.trending-topics .mini-note strong { color: var(--text); }
.compact-head h3 { margin: 0; font-size: 1rem; font-weight: 600; }
.compact-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.trending-highlights { grid-template-columns: 1fr; }
.trending-card-lead {
  border-color: rgba(56, 217, 245, 0.14);
  background: linear-gradient(180deg, rgba(56, 217, 245, 0.07), rgba(255,255,255,0.02));
}
.trending-card-compact h3 { font-size: 0.96rem; }
.trending-card-actions { margin-top: 10px; }
.trending-queue { margin-top: 16px; }

.tag-readiness.good  { color: #6ee7b7; }
.tag-readiness.mixed { color: #fcd34d; }
.tag-readiness.bad   { color: #fca5a5; }

/* ───────────────────────────────────────────────
   WORKFLOW
─────────────────────────────────────────────── */
.workflow-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--cyan-dim);
  color: var(--cyan);
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 10px;
}

.workflow-card h3 { margin: 0 0 8px; font-size: 1rem; font-weight: 600; }
.workflow-card p  { margin: 0; color: var(--muted); line-height: 1.5; font-size: 13.5px; }
.workflow-stats   { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

/* ───────────────────────────────────────────────
   COMMAND CARDS
─────────────────────────────────────────────── */
.hero-meta-band, .hero-meters, .status-row, .hero-command-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.command-card {
  flex: 1 1 180px;
  min-width: 180px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 15px 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  box-shadow: var(--shadow-soft);
}

.command-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

/* ───────────────────────────────────────────────
   RESPONSIVE
─────────────────────────────────────────────── */
@media (min-width: 760px) {
  .workspace-grid { grid-template-columns: 0.94fr 1.06fr; }
  .search-panels-grid { grid-template-columns: 1fr; }
  .search-row { flex-direction: row; }
  .toolbar { flex-direction: row; justify-content: space-between; align-items: center; }
  .route-wrap { flex-direction: row; justify-content: space-between; align-items: center; }
  .board-layout { grid-template-columns: 1.72fr 0.88fr; }
  .result-sections-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .verdict-spotlight { grid-template-columns: 1.4fr 0.9fr; align-items: start; }
  .workflow-steps, .trending-highlights, .summary-lenses,
  .summary-scorecard, .trust-bar, .promotion-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .summary-hero-grid { grid-template-columns: 1.45fr 0.95fr; align-items: start; }
  .trust-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .promotion-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .topbar { padding: 60px 12px 44px; }
  .topbar-stats { margin-top: 12px; }
}

@media (max-width: 759px) {
  .search-row-inline { grid-template-columns: 1fr; }
  .panel-badge-cluster { justify-content: flex-start; }
  .topbar-stats { flex-direction: column; gap: 0; }
  .topbar-stat { border-right: none; border-bottom: 1px solid var(--line); padding: 10px 0; }
  .topbar-stat:last-child { border-bottom: none; }
}

/* ── Investigation Panel ─────────────────────────────────────────── */
.investigation-panel {
  border-color: rgba(232, 160, 58, 0.18);
  background:
    radial-gradient(ellipse 60% 40% at top left, rgba(232, 160, 58, 0.07), transparent),
    linear-gradient(160deg, rgba(10, 18, 36, 0.97), rgba(7, 12, 22, 0.99));
}

.investigation-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.investigation-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.015));
  transition: border-color 150ms ease;
}

.investigation-card:hover {
  border-color: var(--line-strong);
}

.investigation-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 10px;
}

.investigation-card-head h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.investigation-core-q {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.investigation-summary {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.investigation-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

@media (min-width: 760px) {
  .investigation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
  .investigation-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ── Popular Questions Panel ─────────────────────────────────────── */
.popular-q-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.popular-q-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  background: rgba(255,255,255,0.025);
  color: var(--text);
  cursor: pointer;
  transition: all 140ms ease;
}

.popular-q-item:hover {
  border-color: rgba(56, 217, 245, 0.35);
  background: rgba(56, 217, 245, 0.06);
}

.popular-q-rank {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted-2);
  min-width: 18px;
  text-align: center;
}

.popular-q-text {
  flex: 1;
  font-size: 13.5px;
  line-height: 1.4;
}

.popular-q-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan);
  white-space: nowrap;
}
