:root { --ink: #153333; --muted: #4d6462; --paper: #fffdf8; --ground: #f2eee4; --line: #d9ddd2; --teal: #2c7f7b; --coral: #ec7657; --green: #118a72; --red: #b65043; --gold: #d3aa45; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: radial-gradient(circle at 85% 5%, #e2f0df 0, transparent 22rem), var(--ground); font-family: Manrope, sans-serif; }
button, select { font: inherit; }
button { cursor: pointer; }
.app-shell { max-width: 1600px; margin: auto; padding: 0 42px 48px; }
.view-tabs { display: flex; gap: 4px; }.view-tab { padding: 7px 9px; border: 0; border-bottom: 2px solid transparent; color: var(--muted); background: transparent; font-size: 11px; font-weight: 800; cursor: pointer; }.view-tab:hover { color: var(--teal); }.view-tab.active { border-color: var(--teal); color: var(--teal); }
.eyebrow, .metric p, .score-block p, .trend p, .map-note, .caveat { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.topics-panel, .sources-panel { min-height: 300px; }.topic-heading { align-items: flex-end; }.sort-label { width: 122px; }.topic-table-wrap { overflow-x: auto; margin-top: 20px; }.topics-toggle-wrap { margin-top: 12px; }.show-more-toggle { padding: 7px 10px; border: 1px solid #cdd5cd; border-radius: 3px; color: var(--teal); background: transparent; font-size: 11px; font-weight: 800; cursor: pointer; }.show-more-toggle:hover { background: #f1f8f4; border-color: var(--teal); }.review-table-wrap { overflow: auto; max-height: calc(100vh - 320px); margin-top: 20px; border: 1px solid #e3e3dc; }.review-table-wrap table { width: 100%; }.review-table-wrap thead th { position: sticky; top: 0; background: #fff; z-index: 1; }.review-pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; font-size: 12px; color: var(--muted); }.review-pagination button { padding: 6px 14px; border: 1px solid #d6d6cf; border-radius: 6px; background: #fff; cursor: pointer; font-size: 12px; }.review-pagination button:disabled { opacity: .4; cursor: not-allowed; }table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; }th { padding: 0 8px 9px; color: var(--muted); font-size: 10px; letter-spacing: .07em; text-transform: uppercase; }td { padding: 11px 8px; border-top: 1px solid #e3e3dc; white-space: nowrap; }td:first-child { padding-left: 0; white-space: normal; }td:last-child { padding-right: 0; }td b, td span { display: block; }td span { margin-top: 3px; color: var(--muted); font-size: 10px; }.topic-row { cursor: pointer; }.topic-row:hover td, .topic-row.selected td { background: #edf5f0; }.score-dot { display: inline-block; width: 7px; height: 7px; margin: 0 5px 0 0; border-radius: 50%; }.low-sample { color: var(--gold) !important; font-style: italic; }.empty { color: var(--muted); text-align: center; }
.sentiment-score { font-weight: 800; }
.data-review-view { padding-top: 46px; }.review-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 24px; }.review-heading h1 { margin: 0; font-size: 38px; }.review-heading-side { display: flex; align-items: center; gap: 14px; }.lede { margin: 8px 0 0; max-width: 62ch; color: var(--muted); font-size: 15px; line-height: 1.55; }.source-count { padding: 5px 10px; border: 1px solid #d6d6cf; border-radius: 999px; color: var(--muted); font-size: 11px; letter-spacing: .04em; white-space: nowrap; }.review-source-toggle { display: flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }.review-source-toggle select { padding: 5px 8px; border: 1px solid #d6d6cf; border-radius: 4px; background: #fff; font-size: 12px; font-family: inherit; }.review-panel { padding: 10px 22px; }.post-link { color: var(--teal); font-weight: 800; white-space: nowrap; }.review-details-toggle { padding: 4px 10px; border: 1px solid #bed6d0; border-radius: 4px; background: #f1f8f4; color: var(--ink); font-size: 11px; cursor: pointer; }
/* Data review feed: a conversation-first reading surface. Each record is a
   full-width article separated by a thin rule, not a table row. */
.review-search { display: flex; align-items: center; gap: 12px; padding: 4px 4px 18px; border-bottom: 1px solid #e3e3dc; }
.review-search-input { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid #d6d6cf; border-radius: 6px; background: #fff; font-family: inherit; font-size: 13px; color: var(--ink); }
.review-search-input::placeholder { color: var(--muted); }
.review-search-status { color: var(--muted); font-size: 11px; white-space: nowrap; }
.review-feed { display: flex; flex-direction: column; }
.feed-item { padding: 22px 4px; border-top: 1px solid #e3e3dc; }
.feed-item:first-child { border-top: 0; }
.feed-meta { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: .02em; color: var(--muted); }
.feed-dot { opacity: .6; }
.feed-text { max-width: 68ch; margin: 0 0 14px; font-size: 15px; line-height: 1.6; color: var(--ink); }
.feed-analysis { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 12px; color: var(--muted); }
.feed-sentiment-label { font-weight: 700; color: var(--ink); }
.feed-topics, .feed-tools { position: relative; padding-left: 12px; }
.feed-topics::before, .feed-tools::before { content: '·'; position: absolute; left: 0; }
.feed-actions { display: flex; align-items: center; gap: 14px; }
.review-details-row td { white-space: normal; background: #f8f8f4; }.review-details-card { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 20px; padding: 16px 4px 4px; margin-top: 14px; border-top: 1px dashed #e3e3dc; }.review-details-card div b { display: block; margin-bottom: 3px; color: var(--muted); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; }.review-details-card div span { display: block; font-size: 12px; line-height: 1.5; }.review-details-rationale { grid-column: 1 / -1; }

/* Premium dashboard theme overrides */
:root {
  --bg-primary: #0a0a0a; --bg-secondary: #1a1a1a; --bg-tertiary: #252525;
  --text-primary: #ffffff; --text-secondary: #b3b3b3; --text-muted: #808080;
  --border-subtle: #333333; --border-normal: #404040;
  --sentiment-positive: #10b981; --sentiment-negative: #ef4444; --sentiment-neutral: #9ca3af; --sentiment-mixed: #f59e0b;
  --sentiment-positive-bg: rgba(16, 185, 129, .15); --sentiment-negative-bg: rgba(239, 68, 68, .15); --sentiment-neutral-bg: rgba(156, 163, 175, .15); --sentiment-mixed-bg: rgba(245, 158, 11, .15);
  --accent-primary: #3b82f6; --accent-highlight: #60a5fa;
  --ink: var(--text-primary); --muted: var(--text-secondary); --paper: var(--bg-secondary); --ground: var(--bg-primary); --line: var(--border-subtle); --teal: var(--accent-highlight); --green: var(--sentiment-positive); --red: var(--sentiment-negative); --gold: var(--sentiment-mixed);
}
body { background: var(--bg-primary); line-height: 1.6; }
.app-shell { max-width: 1680px; }
.view-tab:hover, .view-tab.active { color: var(--text-primary); }.bluesky-refresh { background: var(--accent-primary); }.view-tab.active { border-color: var(--accent-primary); }
.review-source-toggle select { border-color: var(--border-normal); color: var(--text-primary); background: var(--bg-tertiary); }
.review-search { border-color: var(--border-subtle); }
.review-search-input { border-color: var(--border-normal); color: var(--text-primary); background: var(--bg-tertiary); }
.feed-item { border-color: var(--border-subtle); }
.feed-text { color: var(--text-primary); }
.feed-sentiment-label { color: var(--text-primary); }
.review-details-card { border-color: var(--border-subtle); }
.lede { color: var(--text-secondary); }
.source-count { border-color: var(--border-subtle); color: var(--text-secondary); background: var(--bg-tertiary); }
.panel { padding: clamp(24px, 3vw, 40px); border-color: var(--border-normal); background: var(--bg-secondary); }.review-details-toggle { border-color: var(--border-normal); color: var(--text-primary); background: var(--bg-tertiary); }
.section-animate { opacity: 0; transform: translateY(24px); transition: opacity 900ms cubic-bezier(.22, 1, .36, 1), transform 900ms cubic-bezier(.22, 1, .36, 1); }.section-animate.visible { opacity: 1; transform: translateY(0); }
button:focus-visible, select:focus-visible, a:focus-visible { outline: 2px solid var(--accent-highlight); outline-offset: 3px; }

/* Story chapters: one insight per section, data as the design */
.chapter { display: flex; flex-direction: column; align-items: center; padding: clamp(88px, 17vh, 190px) 0; border-top: 1px solid var(--border-subtle); text-align: center; }
.chapter-label { margin: 0; color: var(--text-muted); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.chapter-question { max-width: 34ch; margin: 18px 0 clamp(48px, 7vh, 88px); color: var(--text-primary); font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 600; line-height: 1.3; letter-spacing: -.025em; }

.sentiment-figure { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.sentiment-value { font-family: 'DM Mono', monospace; font-size: clamp(8rem, 010vw + 5rem, 16rem); font-weight: 500; line-height: .85; letter-spacing: -.06em; transition: color 700ms ease; }
.sentiment-scale { font-size: .16em; font-weight: 500; letter-spacing: -.02em; opacity: .5; }
.sentiment-caption { margin: 0; color: var(--text-muted); font-family: 'DM Mono', monospace; font-size: 13px; letter-spacing: .06em; }

.data-freshness { margin: 0; padding: 32px 0 clamp(48px, 8vh, 96px); color: var(--text-muted); font-family: 'DM Mono', monospace; font-size: 12px; letter-spacing: .04em; text-align: center; }

.topic-cloud { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: .5em 1em; width: 100%; max-width: 900px; padding: 0 8px; }
.topic-word { max-width: 100%; color: rgb(255 255 255 / var(--tone, .6)); font-size: min(var(--size, 1rem), 9vw); font-weight: 600; line-height: 1.15; letter-spacing: -.02em; overflow-wrap: anywhere; cursor: default; transition: color 260ms ease, transform 260ms ease; }
.topic-word:hover { color: #fff; transform: translateY(-2px); }

.emotion-spectrum { display: grid; gap: 18px; width: min(680px, 100%); text-align: left; }
.emotion-row { display: grid; grid-template-columns: 116px 1fr 48px; align-items: center; gap: 18px; }
.emotion-name { color: var(--text-secondary); font-size: 14px; font-weight: 500; }
.emotion-track { height: 2px; background: var(--border-subtle); }
.emotion-track i { display: block; width: var(--fill, 0%); height: 100%; background: var(--text-muted); transition: width 900ms cubic-bezier(.22, 1, .36, 1); }
.emotion-share { color: var(--text-muted); font-family: 'DM Mono', monospace; font-size: 13px; text-align: right; }
.emotion-row.is-leading .emotion-name { color: var(--text-primary); font-weight: 700; }
.emotion-row.is-leading .emotion-track i, .emotion-row.is-leading .emotion-share { background: var(--text-primary); color: var(--text-primary); }
.emotion-row.is-leading .emotion-share { background: none; }

/* Trend: one line, one metric, one question. No secondary data layer. */
.trend-control { display: flex; align-items: center; gap: 10px; margin-bottom: clamp(36px, 5vh, 56px); }
.trend-topic-label { color: var(--text-muted); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.trend-topic { padding: 7px 30px 7px 12px; border: 1px solid var(--border-subtle); border-radius: 999px; background: transparent url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6' fill='none' stroke='%23808080' stroke-width='1.4'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 12px center/9px; color: var(--text-primary); font-family: inherit; font-size: 13px; cursor: pointer; appearance: none; transition: border-color 200ms ease, color 200ms ease; }
.trend-topic:hover { border-color: var(--border-normal); }
.trend-topic option { background: #0d0d0d; color: var(--text-primary); }
.trend-chart { position: relative; width: min(1000px, 100%); transition: opacity 200ms ease; }
.trend-chart.is-swapping { opacity: 0; }
.trend-summary { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: clamp(28px, 4vh, 44px); }
.trend-score { font-family: 'DM Mono', monospace; font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 500; line-height: .9; letter-spacing: -.05em; transition: color 700ms ease; }
.trend-scale { font-size: .32em; font-weight: 500; letter-spacing: -.02em; opacity: .5; }
.trend-meta { color: var(--text-muted); font-family: 'DM Mono', monospace; font-size: 13px; letter-spacing: .04em; }
.trend-svg { display: block; width: 100%; height: clamp(200px, 30vh, 320px); overflow: visible; }
.trend-line { fill: none; stroke: url(#trendStroke); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.trend-dot { fill: url(#trendStroke); }
.trend-baseline { stroke: var(--border-subtle); stroke-width: 1; vector-effect: non-scaling-stroke; }
.trend-axis { display: flex; justify-content: space-between; margin-top: 18px; padding: 0 5.6%; color: var(--text-muted); font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: .05em; }
.trend-empty { margin: 0; color: var(--text-muted); font-size: 14px; }
.trend-hit { cursor: pointer; outline: none; }
.trend-marker { transition: opacity 160ms ease; pointer-events: none; }
.trend-guide { stroke: var(--border-normal); stroke-width: 1; vector-effect: non-scaling-stroke; transition: opacity 160ms ease; pointer-events: none; }
.trend-hit:focus-visible { outline: 1px solid var(--text-secondary); outline-offset: -1px; }
.trend-tooltip { position: absolute; z-index: 2; display: grid; gap: 3px; padding: 10px 12px; border: 1px solid var(--border-normal); border-radius: 8px; background: #0d0d0d; color: var(--text-secondary); font-size: 12px; line-height: 1.45; text-align: left; white-space: nowrap; transform: translateX(-50%); pointer-events: none; }
.trend-tooltip[hidden] { display: none; }
.trend-tooltip b { color: var(--text-primary); font-size: 12px; font-weight: 700; }
.trend-tooltip em { font-style: normal; font-weight: 700; }
.trend-tooltip span { font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: .03em; }
@media (prefers-reduced-motion: reduce) { .trend-marker, .trend-guide { transition: none; } }

/* Landing: near-black editorial product introduction */
.landing { display: flex; flex-direction: column; align-items: center; gap: clamp(20px, 3vw, 32px); padding: clamp(64px, 12vh, 148px) 0 clamp(56px, 9vh, 112px); border-bottom: 1px solid var(--border-subtle); text-align: center; }
.landing-title { max-width: 14ch; margin: 0; color: var(--text-primary); font-size: clamp(2.75rem, 7vw, 5.25rem); font-weight: 800; line-height: 1.04; letter-spacing: -.045em; }
.landing-subtitle { max-width: 56ch; margin: 0; color: var(--text-secondary); font-size: clamp(1.0625rem, 1.6vw, 1.3125rem); font-weight: 400; line-height: 1.6; }
.landing .view-tabs { justify-content: center; gap: 8px; }
.landing .view-tab { padding: 8px 14px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.landing .view-tab.active { border-color: var(--text-primary); }
.landing-example { display: flex; flex-direction: column; align-items: center; gap: clamp(16px, 2.5vw, 24px); max-width: 62ch; margin: clamp(16px, 4vh, 40px) 0 0; transition: opacity 500ms ease; }
.landing-example.is-fading { opacity: 0; }
.landing-quote { max-width: 40ch; min-height: calc(1.2 * 3 * clamp(1.75rem, 4vw, 3rem)); margin: 0; color: var(--text-primary); font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 700; line-height: 1.2; letter-spacing: -.03em; display: flex; align-items: center; }
.landing-author { margin: clamp(-8px, -1vw, -4px) 0 0; color: var(--text-secondary); font-family: 'DM Mono', monospace; font-size: 13px; letter-spacing: .02em; }
.landing-analysis { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; width: 100%; min-height: 1.4em; gap: 10px 20px; color: var(--text-muted); font-family: 'DM Mono', monospace; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.landing-analysis span + span { position: relative; padding-left: 20px; }
.landing-analysis span + span::before { content: ''; position: absolute; left: 0; top: 50%; width: 1px; height: 12px; background: var(--border-normal); transform: translateY(-50%); }

@media (max-width: 680px) {
  .app-shell { padding: 0 18px 32px; }
  .view-tab { padding: 6px 7px; font-size: 10px; }
  .chapter { padding: 64px 0; }
  .chapter-question { margin-bottom: 40px; font-size: clamp(1.25rem, 5.5vw, 1.5rem); }
  .sentiment-value { font-size: clamp(6rem, 34vw, 9rem); }
  .topic-cloud { gap: .4em .7em; }
  .emotion-row { grid-template-columns: 88px 1fr 40px; gap: 12px; }
  .emotion-name { font-size: 13px; }
  .trend-control { margin-bottom: 32px; }
  .trend-topic { max-width: 60vw; }
  .trend-svg { height: 200px; }
  .trend-axis { font-size: 10px; gap: 12px; }
  .panel { padding: 18px; }
  .panel-heading { align-items: flex-start; flex-direction: column; }
  .review-heading { flex-direction: column; }
  .review-heading h1 { font-size: 26px; }
  .review-source-toggle { width: 100%; }

  /* Responsive Data review feed: keep the same reading order and inline
     analysis disclosure on narrow screens; no table-to-card reformatting. */
  .review-search { flex-direction: column; align-items: stretch; gap: 8px; }
  .review-search-status { text-align: right; }
  .feed-item { padding: 18px 0; }
  .feed-actions { flex-wrap: wrap; gap: 10px 16px; }
}

@media (max-width: 680px) {
  .landing { padding: 48px 0 40px; gap: 20px; }
  .landing-title { max-width: none; font-size: clamp(2.25rem, 11vw, 3rem); }
  .landing-subtitle { font-size: 15px; }
  .landing-quote { max-width: none; font-size: clamp(1.5rem, 7vw, 2rem); min-height: calc(1.2 * 3 * clamp(1.5rem, 7vw, 2rem)); }
  .landing-analysis { flex-direction: column; gap: 8px; }
  .landing-analysis span + span { padding-left: 0; }
  .landing-analysis span + span::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .section-animate { opacity: 1; transform: none; transition: none !important; }
  .landing-example { transition: none !important; }
}
