/* Sightline — CDO Intelligence Desk (Mobile-First + Desktop Editorial)
   8px spacing grid · 12px minimum font size · Apple HIG 44px mobile touch targets
   Zero italics in body prose · zero border-left accents */

@font-face {
  font-family: 'Geist';
  src: url('./fonts/geist-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geist Mono';
  src: url('./fonts/geist-mono-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Iowan Old Style', 'New York', Georgia, 'Times New Roman', serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --bg: #F7F6F2;
  --bg-elevated: #FFFFFF;
  --bg-subtle: #F1EFE9;
  --bg-hover: #E9E6DD;
  --bg-nav: rgba(247, 246, 242, 0.88);

  --ink: #141416;
  --ink-secondary: #3F3F46;
  --ink-muted: #6C6B73;
  --ink-inverse: #FAF9F6;

  --border: #E5E3DC;
  --border-strong: #D4D1C8;

  --accent: #1D3B5C;
  --accent-soft: #EAF0F6;
  --accent-ink: #17314D;

  --verified-bg: #E6F4EC;
  --verified-fg: #136F48;
  --verified-dot: #16A34A;

  --promising-bg: #FDF2DB;
  --promising-fg: #924A08;
  --promising-dot: #D97706;

  --early-bg: #EFECE6;
  --early-fg: #57534E;
  --early-dot: #78716C;

  --missed-bg: #FBE9E7;
  --missed-fg: #9F2D20;
  --missed-dot: #DC2626;

  --shadow-sm: 0 1px 2px rgba(20, 20, 22, 0.04);
  --shadow-card: 0 1px 2px rgba(20, 20, 22, 0.03), 0 8px 24px rgba(20, 20, 22, 0.035);
  --shadow-drawer: -12px 0 40px rgba(20, 20, 22, 0.14);
  --shadow-modal: 0 24px 64px rgba(20, 20, 22, 0.22);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-pill: 999px;
}

[data-theme='dark'] {
  --bg: #0D0E10;
  --bg-elevated: #151619;
  --bg-subtle: #1C1E23;
  --bg-hover: #24272F;
  --bg-nav: rgba(13, 14, 16, 0.88);

  --ink: #F5F4F0;
  --ink-secondary: #C2C2CA;
  --ink-muted: #8B8B96;
  --ink-inverse: #141416;

  --border: #25272E;
  --border-strong: #353842;

  --accent: #7FB0E0;
  --accent-soft: #1B2938;
  --accent-ink: #A8CDEF;

  --verified-bg: rgba(22, 163, 74, 0.16);
  --verified-fg: #6EE7B7;
  --verified-dot: #34D399;

  --promising-bg: rgba(217, 119, 6, 0.16);
  --promising-fg: #FCD34D;
  --promising-dot: #F59E0B;

  --early-bg: rgba(168, 162, 158, 0.15);
  --early-fg: #D6D3D1;
  --early-dot: #A8A29E;

  --missed-bg: rgba(220, 38, 38, 0.16);
  --missed-fg: #FCA5A5;
  --missed-dot: #F87171;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.35), 0 12px 28px rgba(0, 0, 0, 0.28);
  --shadow-drawer: -12px 0 48px rgba(0, 0, 0, 0.55);
  --shadow-modal: 0 24px 64px rgba(0, 0, 0, 0.65);
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-style: normal;
  overflow-x: hidden;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border-strong);
}

.mono {
  font-family: var(--font-mono);
}

.mobile-only { display: none; }
.desktop-only { display: inline-flex; }

/* ── TOP NAVIGATION ──────────────────────────────────────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top);
}

.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand-group {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}

.brand-sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
}

.nav-pills {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}

.nav-pill {
  border: none;
  background: transparent;
  color: var(--ink-secondary);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.nav-pill:hover { color: var(--ink); }
.nav-pill.active {
  background: var(--bg-elevated);
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.btn:hover { background: var(--bg-subtle); }
.btn-primary {
  background: var(--ink);
  color: var(--ink-inverse);
  border-color: var(--ink);
}
.btn-primary:hover { opacity: 0.9; background: var(--ink); }
.btn-subtle { background: var(--bg-subtle); border-color: var(--border); }
.btn-icon { width: 36px; padding: 0; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12px; }

/* ── DYNAMIC REYN & MARKET / CPG TICKER RIBBON ─────────────────────────────── */

.market-ribbon {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.market-ribbon-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 9px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.reyn-spotlight {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.reyn-spotlight:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
}

.ticker-sym {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.ticker-price {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.ticker-chg {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.ticker-chg.up { color: var(--verified-fg); }
.ticker-chg.down { color: var(--missed-fg); }

.spark-svg {
  display: block;
  width: 44px;
  height: 16px;
  flex-shrink: 0;
}

.ribbon-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
  flex-shrink: 0;
}

.ticker-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.ticker-switch-btn {
  border: none;
  background: transparent;
  color: var(--ink-muted);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.ticker-switch-btn.active {
  background: var(--bg-elevated);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.ticker-marquee {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-width: 0;
  mask-image: linear-gradient(to right, transparent 0%, #000 3%, #000 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 3%, #000 95%, transparent 100%);
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
  will-change: transform;
  animation: sightline-marquee 34s linear infinite;
}

.ticker-marquee:hover .ticker-track,
.ticker-marquee:active .ticker-track,
.ticker-marquee:focus-within .ticker-track {
  animation-play-state: paused;
}

@keyframes sightline-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .ticker-marquee { overflow-x: auto; scrollbar-width: none; }
  .ticker-marquee::-webkit-scrollbar { display: none; }
}

/* Full-Text Source Citation Pills (Trust Architecture) */
.tile-citations {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.source-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-secondary);
  text-decoration: none;
  max-width: 100%;
  transition: border-color 120ms ease, color 120ms ease, background 120ms ease;
}

.source-pill:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
  color: var(--accent-ink);
}

.box-cite-foot {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-size: 12px;
  color: var(--ink-muted);
}

.box-cite-foot span {
  white-space: nowrap;
  flex-shrink: 0;
}

.box-cite-foot a {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-ink);
  text-decoration: none;
}
.box-cite-foot a:hover {
  text-decoration: underline;
}

.ticker-group-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
  padding: 2px 0;
}

.ticker-chip:hover .ticker-sym {
  color: var(--accent-ink);
}

.ticker-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-muted);
  white-space: nowrap;
  flex-shrink: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
}

.ticker-status:hover {
  background: var(--bg-subtle);
  color: var(--ink);
}

.live-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--verified-dot);
}
.live-pulse-dot.ref {
  background: var(--early-dot);
}

/* ── THE NEWSSTAND (TECH / AI & CPG HEADLINES) ───────────────────────────── */

.wire-section {
  margin-top: 28px;
  scroll-margin-top: 84px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
}

.news-jump-link {
  border: none;
  background: transparent;
  padding: 0;
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wire-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}

.wire-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  color: var(--ink);
}

.wire-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.wire-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}

.wire-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}

.wire-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wire-thumb-wrap {
  width: 100px;
  height: 76px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  flex-shrink: 0;
  margin-top: 2px;
}

.wire-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 220ms ease;
}

.wire-row:hover .wire-thumb {
  transform: scale(1.04);
}

.wire-row:hover .wire-headline {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wire-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}

.wire-outlet {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.wire-outlet.cpg {
  color: var(--verified-fg);
}

.wire-headline {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.38;
  color: var(--ink);
}

.wire-blurb {
  font-size: 13px;
  line-height: 1.46;
  color: var(--ink-muted);
}

/* ── BOTTOM TAB BAR (MOBILE NATIVE NAV) ──────────────────────────────────── */

.bottom-tabs {
  display: none;
}

/* ── PAGE SHELL & MASTHEAD ───────────────────────────────────────────────── */

.shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 24px 96px 24px;
}

.masthead {
  margin-bottom: 22px;
}

.masthead-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.dot-sep { opacity: 0.45; }

.masthead-title {
  margin: 0 0 10px 0;
  font-family: var(--font-serif);
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--ink);
  text-wrap: balance;
}

.masthead-lead {
  margin: 0 0 12px 0;
  font-size: 15.5px;
  line-height: 1.58;
  color: var(--ink-secondary);
  max-width: 740px;
}

.masthead-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-muted);
}

/* ── AUDIO BRIEFING BAR ──────────────────────────────────────────────────── */

.audio-bar {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
}

.audio-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.audio-play-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--ink);
  color: var(--ink-inverse);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}

.audio-info { flex: 1; min-width: 0; }

.audio-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.audio-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audio-sub {
  font-size: 12px;
  color: var(--ink-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.audio-progress {
  height: 6px;
  background: var(--bg-subtle);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.audio-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: var(--radius-pill);
  transition: width 240ms ease;
}

.audio-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.audio-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.audio-chapters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.chapter-pill {
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--ink-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.chapter-pill.active {
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-color: transparent;
  font-weight: 600;
}

.audio-voice-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.voice-select {
  height: 32px;
  max-width: 195px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--ink-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

/* ── PERSISTENT FLOATING MINI-PLAYER ─────────────────────────────────────── */

.mini-player {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%) translateY(140%);
  z-index: 48;
  width: min(680px, calc(100vw - 24px));
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 8px 12px 8px 10px;
  box-shadow: 0 14px 40px rgba(20, 20, 22, 0.18);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: transform 180ms ease, opacity 180ms ease;
}

.mini-player.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mini-meta { flex: 1; min-width: 0; }
.mini-title {
  font-size: 13px; font-weight: 600; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mini-sub {
  font-size: 12px; color: var(--ink-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ── GRADE BADGES & FILTERS ──────────────────────────────────────────────── */

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.filter-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.filter-pills::-webkit-scrollbar { display: none; }

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--ink-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.filter-pill.active {
  background: var(--ink);
  color: var(--ink-inverse);
  border-color: var(--ink);
}

.filter-noise {
  font-size: 12px;
  color: var(--ink-muted);
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.caught-up-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-secondary);
}

.caught-up-pill.done {
  background: var(--verified-bg);
  border-color: transparent;
  color: var(--verified-fg);
  font-weight: 600;
}

.read-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--verified-bg);
  color: var(--verified-fg);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Reader Depth Dial (30s Scan / 2m Brief / Full Audit) */
.depth-dial {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  margin: 14px 0 18px 0;
}

.depth-btn {
  border: none;
  background: transparent;
  color: var(--ink-secondary);
  height: 34px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.depth-btn.active {
  background: var(--ink);
  color: var(--ink-inverse);
  box-shadow: var(--shadow-sm);
}

/* Compact 4-Factor Proof Strip inside Reader */
.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.proof-chip {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.proof-chip-k {
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.25;
}

.proof-chip-v {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}
.proof-chip.pass .proof-chip-v { color: var(--verified-fg); }
.proof-chip.warn .proof-chip-v { color: var(--promising-fg); }
.proof-chip.no .proof-chip-v { color: var(--early-fg); }

.pin-btn-active {
  background: var(--accent-soft) !important;
  color: var(--accent-ink) !important;
  border-color: transparent !important;
  font-weight: 600;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.badge-verified { background: var(--verified-bg); color: var(--verified-fg); }
.badge-verified .badge-dot { background: var(--verified-dot); }
.badge-promising { background: var(--promising-bg); color: var(--promising-fg); }
.badge-promising .badge-dot { background: var(--promising-dot); }
.badge-early { background: var(--early-bg); color: var(--early-fg); }
.badge-early .badge-dot { background: var(--early-dot); }
.badge-missed { background: var(--missed-bg); color: var(--missed-fg); }
.badge-missed .badge-dot { background: var(--missed-dot); }

/* ── 5-SECOND BENTO BRIEF GRID (WEEKLY VIEW) ─────────────────────────────── */

.bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 24px;
}

.brief-tile {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  transition: border-color 140ms ease, transform 120ms ease, box-shadow 140ms ease;
}

.brief-tile:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(20, 20, 22, 0.06);
}

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

.tile-tag {
  font-size: 12px;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tile-headline {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 600;
  color: var(--ink);
  text-wrap: balance;
}

.tile-summary {
  margin: 0;
  font-size: 14px;
  line-height: 1.54;
  color: var(--ink-secondary);
}

.tile-reynolds {
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  font-size: 13px;
  line-height: 1.48;
  color: var(--ink);
}

.tile-reynolds strong {
  color: var(--accent-ink);
  font-weight: 600;
}

.tile-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.tile-read-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-ink);
}

/* ── BOTTOM COMMAND STRIP ON TODAY VIEW ──────────────────────────────────── */

.command-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Inline Today Breaking Flash Banner */
.today-flash-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-card);
}

.today-flash-title {
  margin: 8px 0 8px 0;
  font-family: var(--font-serif);
  font-size: 21px;
  line-height: 1.26;
  font-weight: 600;
  color: var(--ink);
  text-wrap: balance;
}

/* Collapsible Monthly Strategic Horizon Drawer */
.horizon-drawer {
  margin-top: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.horizon-toggle {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
}

.horizon-toggle:hover {
  background: var(--bg-subtle);
}

.horizon-body {
  padding: 0 22px 22px 22px;
  border-top: 1px solid var(--border);
}

.cmd-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.cmd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 14px;
}

.mini-bar-row {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 4px 0;
  margin-bottom: 8px;
  cursor: pointer;
}
.mini-bar-row:last-child { margin-bottom: 0; }
.mini-bar-top {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 5px;
  color: var(--ink);
}
.mini-track { height: 6px; background: var(--bg-subtle); border-radius: var(--radius-pill); overflow: hidden; }
.mini-fill { height: 100%; background: var(--accent); border-radius: var(--radius-pill); }

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.42;
}
.check-row:first-of-type { border-top: none; padding-top: 0; }
.check-btn {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid var(--border-strong);
  background: var(--bg-elevated);
  flex-shrink: 0;
  margin-top: 1px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.check-btn.done { background: var(--verified-dot); border-color: var(--verified-dot); color: #fff; }
.check-done { text-decoration: line-through; color: var(--ink-muted); }

/* ── FOCUSED EDITORIAL READER SHEET (DESKTOP MODAL + MOBILE BOTTOM SHEET) ─ */

.reader-modal {
  position: fixed;
  inset: 0;
  z-index: 75;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.reader-modal.open { display: flex; }

.reader-sheet {
  width: 840px;
  max-width: 100%;
  max-height: 90vh;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-modal);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.reader-sticky-head {
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
}

.reader-scroll {
  padding: 26px 30px 32px 30px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.reader-headline {
  margin: 0 0 12px 0;
  font-family: var(--font-serif);
  font-size: 29px;
  line-height: 1.22;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--ink);
  text-wrap: balance;
}

.confidence-meter {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  margin: 18px 0;
}

.conf-step {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  opacity: 0.48;
}

.conf-step.lit {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
  opacity: 1;
  box-shadow: var(--shadow-sm);
}

.conf-title {
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.conf-sub {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 3px;
  line-height: 1.35;
}

.evidence-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.evidence-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.box-eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.box-eyebrow.useful { color: var(--verified-fg); }
.box-eyebrow.stops { color: var(--early-fg); }
.box-eyebrow.reynolds { color: var(--accent-ink); }

.box-body {
  margin: 0;
  font-size: 14px;
  line-height: 1.56;
  color: var(--ink-secondary);
}

.nugget-list {
  margin: 0;
  padding-left: 17px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 14px;
  line-height: 1.52;
  color: var(--ink-secondary);
}

.nugget-list strong {
  color: var(--ink);
  font-weight: 600;
}

@keyframes iconSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.icon-spin {
  animation: iconSpin 0.9s linear infinite;
}

/* Action Timeframe Pill & Suggested CDO Moves */
.timeframe-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--ink-secondary);
}

.timeframe-pill.now {
  background: var(--verified-bg);
  color: var(--verified-fg);
  border-color: transparent;
}

.timeframe-pill.quarter,
.timeframe-pill.watch {
  background: var(--promising-bg);
  color: var(--promising-fg);
  border-color: transparent;
}

.timeframe-pill.hold {
  background: var(--early-bg);
  color: var(--early-fg);
  border-color: transparent;
}

.tile-reynolds-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.flash-moves-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 12px;
}

.flash-moves-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.cdo-moves-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-top: 14px;
}

.cdo-moves-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.cdo-moves-list {
  margin: 0;
}

.reynolds-box {
  background: var(--accent-soft);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 18px;
}
.reynolds-box .box-body { color: var(--ink); }

.reader-sub-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 14px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.panel-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}

.question-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  line-height: 1.52;
  color: var(--ink);
}

.receipt-grid {
  display: grid;
  grid-template-columns: 155px 1fr;
  gap: 8px 14px;
  font-size: 13px;
  line-height: 1.5;
}
.receipt-key { font-weight: 600; color: var(--ink-muted); }
.receipt-val { color: var(--ink-secondary); }

/* ── OTHER VIEWS (DAILY, MONTHLY, SHELF, RADAR) ──────────────────────────── */

.flash-card, .signal-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  margin-bottom: 16px;
}
.flash-card.quiet { background: var(--bg-subtle); box-shadow: none; }

.signal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.signal-meta-left { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pillar-tag {
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--ink-muted);
}
.signal-headline {
  margin: 0 0 10px 0;
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.25;
  font-weight: 600;
  color: var(--ink);
  text-wrap: balance;
}
.signal-short { margin: 0 0 16px 0; font-size: 15px; line-height: 1.6; color: var(--ink-secondary); }

.section-heading {
  margin: 24px 0 12px 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.horizon-grid, .allocation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.horizon-card, .allocation-card, .draft-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.horizon-label { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--accent-ink); margin-bottom: 6px; }
.horizon-theme { margin: 0 0 8px 0; font-size: 16px; font-weight: 600; }
.allocation-list { margin: 12px 0 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; line-height: 1.5; color: var(--ink-secondary); }
.draft-stack { display: flex; flex-direction: column; gap: 14px; }

.notice-banner, .radar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.notice-text { font-size: 13.5px; line-height: 1.5; color: var(--ink-secondary); }

.segment-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.seg-kpi {
  text-align: left;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  cursor: pointer;
}
.seg-kpi.active { border-color: var(--ink); box-shadow: var(--shadow-card); }
.seg-name { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 8px; line-height: 1.3; }
.seg-stat-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.seg-num { font-family: var(--font-mono); font-size: 21px; font-weight: 600; }
.seg-sub { font-size: 12px; color: var(--ink-muted); }
.meter { height: 6px; background: var(--bg-subtle); border-radius: var(--radius-pill); overflow: hidden; }
.meter-fill { height: 100%; background: var(--accent); border-radius: var(--radius-pill); }

.prompt-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 12px;
}
.prompt-q { margin: 10px 0 12px 0; font-size: 15.5px; font-weight: 600; line-height: 1.4; }
.prompt-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 13.5px; line-height: 1.5; color: var(--ink-secondary); }
.prompt-detail-box { background: var(--bg-subtle); border-radius: var(--radius-sm); padding: 12px 14px; }

.source-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.source-card {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 16px; display: flex; flex-direction: column; gap: 8px;
}
.source-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.source-name { font-size: 14.5px; font-weight: 600; }
.source-desc { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-secondary); }
.source-bias { font-size: 12px; line-height: 1.45; color: var(--ink-muted); }

.toggle {
  position: relative; width: 42px; height: 24px; border-radius: var(--radius-pill);
  border: none; background: var(--border-strong); cursor: pointer; flex-shrink: 0;
}
.toggle::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; transition: transform 140ms ease;
}
.toggle.on { background: var(--verified-dot); }
.toggle.on::after { transform: translateX(18px); }

.sec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.sec-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px; }
.sec-ticker { font-family: var(--font-mono); font-size: 15px; font-weight: 700; }
.sec-name { font-size: 13px; font-weight: 500; color: var(--ink-secondary); margin: 3px 0; }
.sec-role { font-size: 12px; color: var(--ink-muted); }

.live-feed-box {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 18px; margin-bottom: 20px;
}
.live-item { padding: 12px 0; border-top: 1px solid var(--border); }
.live-item:first-child { border-top: none; padding-top: 0; }

/* ── OVERLAYS (BACKDROP, ASK DRAWER, EMAIL MODAL) ────────────────────────── */

.backdrop {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(12, 13, 15, 0.45);
  backdrop-filter: blur(4px);
  display: none;
}
.backdrop.open { display: block; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 75;
  width: 480px; max-width: 100vw;
  background: var(--bg-elevated); border-left: 1px solid var(--border);
  box-shadow: var(--shadow-drawer);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 200ms ease;
}
.drawer.open { transform: translateX(0); }

.drawer-header {
  padding: 18px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.drawer-title { margin: 0; font-family: var(--font-serif); font-size: 20px; font-weight: 600; }

.drawer-body {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 18px 20px; display: flex; flex-direction: column; gap: 14px;
}

.starter-grid { display: flex; flex-direction: column; gap: 8px; }
.starter-btn {
  text-align: left; padding: 13px 14px; background: var(--bg-subtle);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  font-size: 14px; color: var(--ink); cursor: pointer; line-height: 1.4;
}

.chat-msg { padding: 13px 15px; border-radius: var(--radius-md); font-size: 14px; line-height: 1.56; white-space: pre-wrap; }
.chat-msg.user { background: var(--ink); color: var(--ink-inverse); align-self: flex-end; max-width: 88%; }
.chat-msg.assistant { background: var(--bg-subtle); border: 1px solid var(--border); color: var(--ink); }

.citation-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.citation-chip {
  font-family: var(--font-mono); font-size: 12px; padding: 3px 9px;
  border-radius: var(--radius-pill); background: var(--bg-elevated);
  border: 1px solid var(--border); color: var(--ink-muted);
}

.drawer-footer {
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)) 16px;
  border-top: 1px solid var(--border); display: flex; gap: 8px;
}
.ask-input {
  flex: 1; height: 42px; padding: 0 14px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong); background: var(--bg); color: var(--ink);
  font-size: 16px; outline: none; /* 16px prevents iOS Safari zoom */
}
.ask-input:focus { border-color: var(--accent); }

.modal {
  position: fixed; inset: 0; z-index: 80; display: none;
  align-items: center; justify-content: center; padding: 20px;
}
.modal.open { display: flex; }
.modal-card {
  width: 760px; max-width: 100%; height: 86vh; background: var(--bg-elevated);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal); display: flex; flex-direction: column; overflow: hidden;
}
.modal-header {
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.email-chrome {
  padding: 10px 18px; background: var(--bg-subtle); border-bottom: 1px solid var(--border);
  font-size: 13px; color: var(--ink-secondary); display: grid; grid-template-columns: 64px 1fr; gap: 4px 8px;
}
.email-frame { flex: 1; width: 100%; border: none; background: #F6F5F1; }

.footer-note {
  margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px; font-size: 12px; color: var(--ink-muted);
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE-FIRST IPHONE FLAGSHIP ADAPTATION (<= 820px)
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 820px) {
  .desktop-nav, .desktop-only { display: none !important; }
  .mobile-only { display: inline; }

  .topbar-inner {
    padding: 10px 16px;
  }
  .market-ribbon-inner {
    padding: 8px 16px;
    gap: 10px;
  }
  .reyn-spotlight {
    padding: 5px 10px;
    gap: 7px;
  }
  .spark-svg { width: 32px; }
  .ticker-status-text { display: none; }
  .wire-section { padding: 18px; border-radius: 16px; }
  .wire-list { grid-template-columns: 1fr; }
  .wire-thumb-wrap { width: 82px; height: 82px; border-radius: 12px; }
  .brand-mark { font-size: 21px; }
  .brand-sub { font-size: 12px; }
  .btn { height: 38px; padding: 0 14px; }
  .btn-icon { width: 38px; padding: 0; }

  /* Native iOS 4-Item Bottom Tab Bar */
  .bottom-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    background: var(--bg-nav);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid var(--border);
    padding: 6px 4px calc(8px + env(safe-area-inset-bottom)) 4px;
  }

  .bottom-tab {
    border: none;
    background: transparent;
    color: var(--ink-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 46px;
    padding: 4px 2px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
  }

  .bottom-tab.active {
    color: var(--ink);
    font-weight: 600;
  }

  .shell {
    padding: 20px 16px calc(108px + env(safe-area-inset-bottom)) 16px;
  }

  .masthead { margin-bottom: 18px; }
  .masthead-title { font-size: 28px; line-height: 1.16; }
  .masthead-lead { font-size: 15px; }

  .audio-bar { padding: 14px; border-radius: 16px; }
  .audio-top { gap: 10px; }
  .audio-play-pill { height: 42px; padding: 0 14px; }
  .audio-sub { display: none; }
  .audio-footer-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .audio-chapters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
  .audio-chapters::-webkit-scrollbar { display: none; }
  .audio-voice-meta { justify-content: space-between; }
  .voice-select { max-width: 100%; flex: 1; height: 36px; }

  .filter-bar { flex-direction: column; align-items: stretch; gap: 8px; }
  .filter-noise { justify-content: flex-start; }
  .proof-strip { grid-template-columns: 1fr 1fr; gap: 6px; }

  .bento-grid, .command-strip, .evidence-grid, .horizon-grid, .allocation-grid, .source-grid, .prompt-cols {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .brief-tile { padding: 18px; border-radius: 16px; gap: 12px; }
  .tile-headline { font-size: 20px; }

  .segment-kpis, .sec-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .notice-banner, .radar-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .notice-banner .btn, .radar-toolbar .btn { width: 100%; height: 44px; }

  .confidence-meter { grid-template-columns: 1fr; gap: 6px; padding: 10px; }
  .conf-step:not(.lit) { display: none; }

  .receipt-grid { grid-template-columns: 1fr; gap: 4px; }
  .receipt-key { margin-top: 6px; }

  /* Floating Mini-Player docks cleanly ABOVE the Bottom Tab Bar on mobile */
  .mini-player {
    bottom: calc(68px + env(safe-area-inset-bottom));
    width: calc(100vw - 20px);
    border-radius: 16px;
    padding: 8px 10px;
  }

  /* Native iOS Bottom Sheet for Brief Reader */
  .reader-modal {
    padding: 0;
    align-items: flex-end;
  }
  .reader-sheet {
    width: 100%;
    max-height: 92dvh;
    border-radius: 22px 22px 0 0;
    border-bottom: none;
  }
  .reader-sticky-head { padding: 14px 16px; }
  .reader-scroll { padding: 18px 18px calc(28px + env(safe-area-inset-bottom)) 18px; }
  .reader-headline { font-size: 24px; }

  /* Full-height Bottom Sheet for Ask Sightline on mobile */
  .drawer {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 90dvh;
    border-left: none;
    border-top: 1px solid var(--border);
    border-radius: 22px 22px 0 0;
    transform: translateY(100%);
  }
  .drawer.open { transform: translateY(0); }

  /* Full-screen Email Preview on mobile */
  .modal { padding: 0; align-items: flex-end; }
  .modal-card { width: 100%; height: 92dvh; border-radius: 22px 22px 0 0; }
}
