:root{
  --bg-0:#05070d;
  --glass:rgba(21,32,58,0.46);
  --glass-hi:rgba(30,44,78,0.6);
  --glass-border:rgba(154,178,255,0.14);
  --glass-border-hi:rgba(154,178,255,0.28);
  --hair:rgba(154,178,255,0.09);
  --signal:#3fe8c9;
  --signal-dim:rgba(63,232,201,0.14);
  --amber:#ffb454;
  --amber-dim:rgba(255,180,84,0.14);
  --coral:#ff6b81;
  --coral-dim:rgba(255,107,129,0.14);
  --violet:#9aa3ff;
  --text-hi:#f2f5ff;
  --text-mid:#a7b2cf;
  --text-low:#5c6785;
  --radius:20px;
  --ease:cubic-bezier(.16,.84,.32,1);
}

*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
body{
  background:var(--bg-0);
  color:var(--text-hi);
  font-family:'Manrope',sans-serif;
  min-height:100vh;
  -webkit-font-smoothing:antialiased;
}

.atmosphere{ position:fixed; inset:0; z-index:0; pointer-events:none; background:var(--bg-0); }
.blob{ position:absolute; border-radius:50%; filter:blur(90px); animation:drift 34s var(--ease) infinite alternate; }
.blob.b1{ width:640px; height:640px; top:-220px; left:-160px; background:radial-gradient(circle at 30% 30%, rgba(63,232,201,0.20), transparent 70%); }
.blob.b2{ width:720px; height:720px; bottom:-300px; right:-220px; background:radial-gradient(circle at 60% 40%, rgba(90,110,255,0.18), transparent 70%); animation-duration:41s; animation-delay:-8s; }
.blob.b3{ width:520px; height:520px; top:30%; right:8%; background:radial-gradient(circle at 50% 50%, rgba(255,180,84,0.08), transparent 70%); animation-duration:29s; animation-delay:-4s; }
@keyframes drift{ 0%{ transform:translate(0,0) scale(1); } 100%{ transform:translate(40px,-30px) scale(1.08); } }
.grain{
  position:fixed; inset:0; z-index:1; pointer-events:none; opacity:.035; mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* topbar */
.topbar{ position:relative; z-index:5; display:flex; align-items:center; justify-content:space-between; padding:26px 44px 0 44px; flex-wrap:wrap; gap:14px; }
.wordmark{ display:flex; align-items:center; text-decoration:none; }
.wordmark img{ height:28px; width:auto; display:block; }
.topbar-right{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.live-chip{ display:flex; align-items:center; gap:8px; font-family:'IBM Plex Mono',monospace; font-size:.68rem; letter-spacing:.1em; color:var(--text-mid); text-transform:uppercase; background:var(--glass); border:1px solid var(--glass-border); border-radius:999px; padding:7px 14px 7px 10px; backdrop-filter:blur(18px); }
.pulse-dot{ width:7px; height:7px; border-radius:50%; background:var(--signal); box-shadow:0 0 0 0 rgba(63,232,201,0.6); animation:pulse 2.2s ease-out infinite; }
.pulse-dot.err{ background:var(--coral); animation:none; }
@keyframes pulse{ 0%{ box-shadow:0 0 0 0 rgba(63,232,201,0.55); } 70%{ box-shadow:0 0 0 9px rgba(63,232,201,0); } 100%{ box-shadow:0 0 0 0 rgba(63,232,201,0); } }

/* rail */
.rail{ position:fixed; left:22px; top:50%; transform:translateY(-50%); z-index:5; display:flex; flex-direction:column; gap:6px; background:var(--glass); border:1px solid var(--glass-border); border-radius:20px; padding:10px; backdrop-filter:blur(18px); }
.rail a{ width:42px; height:42px; border-radius:13px; border:none; cursor:pointer; background:transparent; color:var(--text-low); display:flex; align-items:center; justify-content:center; transition:all .25s var(--ease); text-decoration:none; }
.rail a svg{ width:18px; height:18px; }
.rail a:hover{ color:var(--text-hi); background:rgba(255,255,255,0.04); }
.rail a.active{ color:var(--bg-0); background:var(--signal); box-shadow:0 0 20px rgba(63,232,201,0.4); }

.stage{ position:relative; z-index:2; max-width:1180px; margin:0 auto; padding:34px 44px 120px 110px; }
@media (max-width:960px){ .rail{ display:none; } .stage{ padding-left:44px; } .topbar{ padding-left:44px; padding-right:44px; } }

.eyebrow{ font-family:'IBM Plex Mono',monospace; font-size:.72rem; letter-spacing:.16em; text-transform:uppercase; color:var(--signal); display:flex; align-items:center; gap:10px; margin-bottom:18px; }
.eyebrow .dot{ width:5px; height:5px; border-radius:50%; background:var(--text-low); }
.eyebrow span.dim{ color:var(--text-low); }

h1.brief-headline{ font-family:'Fraunces',serif; font-weight:560; font-style:normal; font-size:clamp(2rem,3.6vw,3.15rem); line-height:1.15; letter-spacing:-0.015em; margin:0 0 20px 0; max-width:820px; color:var(--text-hi); }
p.brief-body{ font-size:1.05rem; line-height:1.75; color:var(--text-mid); max-width:680px; margin:0 0 26px 0; }
p.brief-body b{ color:var(--text-hi); font-weight:700; }

.meta-row{ display:flex; flex-wrap:wrap; gap:10px; }
.meta-chip{ font-family:'IBM Plex Mono',monospace; font-size:.72rem; color:var(--text-mid); background:var(--glass); border:1px solid var(--glass-border); border-radius:999px; padding:8px 14px; backdrop-filter:blur(14px); }
.meta-chip b{ color:var(--text-hi); font-weight:600; }

.breadcrumb{ font-family:'IBM Plex Mono',monospace; font-size:.72rem; color:var(--text-low); letter-spacing:.08em; text-transform:uppercase; margin-bottom:22px; }
.breadcrumb a{ color:var(--text-low); text-decoration:none; }
.breadcrumb span{ color:var(--text-hi); }

.brief-panel{ background:var(--glass); border:1px solid var(--glass-border); border-radius:24px; padding:36px 38px; backdrop-filter:blur(22px); margin-bottom:28px; position:relative; overflow:hidden; }
.brief-panel::after{ content:''; position:absolute; top:-40%; right:-10%; width:420px; height:420px; border-radius:50%; background:radial-gradient(circle, rgba(63,232,201,0.14), transparent 70%); pointer-events:none; }
.analyst-tag{ display:inline-flex; align-items:center; gap:8px; font-family:'IBM Plex Mono',monospace; font-size:.68rem; letter-spacing:.1em; text-transform:uppercase; color:var(--signal); background:var(--signal-dim); border:1px solid rgba(63,232,201,0.25); border-radius:999px; padding:6px 13px 6px 10px; margin-bottom:20px; }

.health-row{ display:flex; align-items:center; gap:16px; margin-bottom:18px; }
.health-gauge{ flex:1; max-width:280px; height:10px; border-radius:999px; background:rgba(255,255,255,0.06); overflow:hidden; }
.health-gauge-fill{ height:100%; border-radius:999px; transition:width .5s var(--ease); }
.health-score-num{ font-family:'IBM Plex Mono',monospace; font-size:1.1rem; font-weight:700; color:var(--text-hi); white-space:nowrap; }
.health-score-num span{ font-size:.68rem; font-weight:400; color:var(--text-low); margin-left:4px; }

.key-issues{ display:flex; flex-wrap:wrap; gap:12px; margin-top:18px; }
.key-issue{ flex:1; min-width:240px; border-radius:14px; padding:14px 16px; font-size:.86rem; line-height:1.6; }
.key-issue-label{ display:block; font-family:'IBM Plex Mono',monospace; font-size:.66rem; text-transform:uppercase; letter-spacing:.08em; margin-bottom:6px; }
.key-issue.positive{ background:var(--signal-dim); border:1px solid rgba(63,232,201,0.25); color:var(--text-hi); }
.key-issue.positive .key-issue-label{ color:var(--signal); }
.key-issue.negative{ background:var(--coral-dim); border:1px solid rgba(255,107,129,0.25); color:var(--text-hi); }
.key-issue.negative .key-issue-label{ color:var(--coral); }

.readout-row{ display:flex; flex-wrap:wrap; gap:12px; margin:26px 0 6px 0; }
.readout{ background:rgba(255,255,255,0.03); border:1px solid var(--hair); border-radius:14px; padding:14px 18px; min-width:140px; }
.readout .label{ font-size:.68rem; color:var(--text-low); text-transform:uppercase; letter-spacing:.1em; margin-bottom:6px; font-family:'IBM Plex Mono',monospace; }
.readout .value{ font-family:'IBM Plex Mono',monospace; font-size:1.3rem; font-weight:600; color:var(--text-hi); display:flex; align-items:baseline; gap:8px; }
.readout .value .d{ font-size:.72rem; font-weight:600; }
.readout .value .d.bad{ color:var(--coral); }
.readout .value .d.good{ color:var(--signal); }
.readout .value.good{ color:var(--signal); }
.readout .value.bad{ color:var(--coral); }

.section-label{ display:flex; align-items:center; justify-content:space-between; margin:0 0 18px 0; flex-wrap:wrap; gap:8px; }
.section-label h2{ font-family:'Manrope',sans-serif; font-weight:700; font-size:.95rem; color:var(--text-hi); margin:0; }
.section-label .sub{ font-size:.78rem; color:var(--text-low); font-family:'IBM Plex Mono',monospace; }

.evidence-title{ display:flex; align-items:center; gap:14px; margin:8px 0 16px 0; }
.evidence-title .line{ flex:1; height:1px; background:linear-gradient(90deg, var(--hair), transparent); }
.evidence-title h3{ font-size:.78rem; letter-spacing:.14em; text-transform:uppercase; color:var(--text-low); margin:0; font-weight:700; }

.accordion{ border:1px solid var(--glass-border); border-radius:18px; background:var(--glass); backdrop-filter:blur(18px); margin-bottom:14px; overflow:hidden; }
.acc-head{ display:flex; align-items:center; justify-content:space-between; padding:20px 24px; cursor:pointer; }
.acc-head-left{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.acc-head .idx{ font-family:'IBM Plex Mono',monospace; font-size:.72rem; color:var(--text-low); }
.acc-head h4{ margin:0; font-size:.98rem; font-weight:700; color:var(--text-hi); }
.acc-head .hint{ font-size:.78rem; color:var(--text-low); font-weight:400; }
.chev{ width:11px; height:11px; transition:transform .35s var(--ease); color:var(--text-mid); flex-shrink:0; }
.accordion.open .chev{ transform:rotate(180deg); }
.acc-body{ max-height:0; overflow:hidden; transition:max-height .5s var(--ease); }
.accordion.open .acc-body{ max-height:2400px; }
.acc-body-inner{ padding:0 24px 26px 24px; }

.state-msg{ font-family:'IBM Plex Mono',monospace; font-size:.8rem; color:var(--text-low); padding:20px 0; }
.state-msg.error{ color:var(--coral); }

.trend-chart{ width:100%; height:280px; }

.card-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:16px; margin-bottom:46px; }
.signal-card{ background:var(--glass); border:1px solid var(--glass-border); border-radius:var(--radius); padding:20px; backdrop-filter:blur(20px); cursor:pointer; transition:transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease); position:relative; overflow:hidden; text-decoration:none; color:inherit; display:block; }
.signal-card:hover{ transform:translateY(-4px); border-color:var(--glass-border-hi); background:var(--glass-hi); }
.signal-card .topic-name{ font-weight:700; font-size:.95rem; margin-bottom:4px; color:var(--text-hi); }
.signal-card .topic-cat{ font-size:.72rem; color:var(--text-low); margin-bottom:16px; font-family:'IBM Plex Mono',monospace; }
.signal-card .num-row{ display:flex; align-items:baseline; justify-content:space-between; }
.signal-card .count{ font-family:'IBM Plex Mono',monospace; font-size:1.32rem; font-weight:600; color:var(--text-hi); }
.delta{ font-family:'IBM Plex Mono',monospace; font-size:.76rem; font-weight:600; padding:3px 8px; border-radius:7px; }
.delta.bad{ color:var(--coral); background:var(--coral-dim); }
.delta.good{ color:var(--signal); background:var(--signal-dim); }

.entity-card{ border:1px solid var(--hair); border-left:3px solid var(--text-low); border-radius:14px; padding:14px 16px; margin-bottom:10px; background:rgba(255,255,255,0.02); }
.entity-card:last-child{ margin-bottom:0; }
.entity-card.sent-negative{ border-left-color:var(--coral); }
.entity-card.sent-positive{ border-left-color:var(--signal); }
.entity-card.sent-mixed{ border-left-color:var(--amber); }
.entity-top{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:8px; flex-wrap:wrap; }
.entity-name{ font-weight:700; font-size:.92rem; color:var(--text-hi); }
.entity-type{ font-family:'IBM Plex Mono',monospace; font-size:.66rem; color:var(--text-low); text-transform:uppercase; letter-spacing:.08em; }
.entity-meta{ display:flex; gap:14px; flex-wrap:wrap; font-family:'IBM Plex Mono',monospace; font-size:.74rem; color:var(--text-mid); }
.sent-tag{ font-family:'IBM Plex Mono',monospace; font-size:.66rem; padding:3px 9px; border-radius:8px; text-transform:uppercase; }
.sent-tag.negative{ color:var(--coral); background:var(--coral-dim); }
.sent-tag.positive{ color:var(--signal); background:var(--signal-dim); }
.sent-tag.mixed{ color:var(--amber); background:var(--amber-dim); }
.sent-tag.neutral{ color:var(--text-mid); background:rgba(255,255,255,0.05); }

.sentiment-bar{ display:flex; height:14px; border-radius:8px; overflow:hidden; margin-bottom:16px; }
.sentiment-bar div:nth-child(1){ background:var(--coral); }
.sentiment-bar div:nth-child(2){ background:rgba(255,255,255,0.12); }
.sentiment-bar div:nth-child(3){ background:var(--signal); }
.sentiment-legend{ display:flex; gap:22px; flex-wrap:wrap; font-family:'IBM Plex Mono',monospace; font-size:.74rem; color:var(--text-mid); }
.sentiment-legend span.k{ display:inline-block; width:8px; height:8px; border-radius:2px; margin-right:6px; }

.subtopic-card{ border:1px solid var(--hair); border-radius:14px; padding:16px 18px; margin-bottom:10px; background:rgba(255,255,255,0.02); }
.subtopic-card:last-child{ margin-bottom:0; }
.subtopic-top{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:6px; flex-wrap:wrap; }
.subtopic-name{ font-weight:700; font-size:.92rem; color:var(--text-hi); }
.subtopic-text{ font-size:.86rem; color:var(--text-mid); line-height:1.6; }
.subtopic-meta{ display:flex; gap:14px; flex-wrap:wrap; font-family:'IBM Plex Mono',monospace; font-size:.72rem; color:var(--text-low); margin-top:8px; }

.post-card{ background:rgba(255,255,255,0.025); border:1px solid var(--hair); border-radius:14px; padding:16px 18px; margin-bottom:10px; }
.post-card:last-child{ margin-bottom:0; }
.post-top{ display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; gap:10px; flex-wrap:wrap; }
.post-source{ font-family:'IBM Plex Mono',monospace; font-size:.68rem; padding:3px 9px; border-radius:7px; background:rgba(255,255,255,0.05); color:var(--text-mid); text-transform:uppercase; }
.post-time{ font-size:.72rem; color:var(--text-low); font-family:'IBM Plex Mono',monospace; white-space:nowrap; }
.post-text{ font-size:.88rem; color:var(--text-mid); line-height:1.6; }
.post-eng{ margin-top:10px; display:flex; gap:16px; font-family:'IBM Plex Mono',monospace; font-size:.72rem; color:var(--text-low); }
.post-link{ font-family:'IBM Plex Mono',monospace; font-size:.7rem; color:var(--signal); text-decoration:none; }

/* command bar */
.command-bar{ position:fixed; left:50%; bottom:26px; transform:translateX(-50%); z-index:20; width:min(700px,calc(100vw - 140px)); background:var(--glass-hi); border:1px solid var(--glass-border-hi); border-radius:22px; backdrop-filter:blur(28px); box-shadow:0 20px 60px rgba(0,0,0,0.45); padding:14px 16px; }
.command-input-row{ display:flex; align-items:center; gap:12px; margin-bottom:10px; }
.command-input-row svg{ width:16px; height:16px; color:var(--signal); flex:none; }
.command-input-row input{ flex:1; background:transparent; border:none; outline:none; color:var(--text-hi); font-family:'Manrope',sans-serif; font-size:.92rem; }
.command-input-row input::placeholder{ color:var(--text-low); }
.command-input-row .go{ width:30px; height:30px; border-radius:50%; border:none; background:var(--signal); color:var(--bg-0); display:flex; align-items:center; justify-content:center; cursor:pointer; transition:transform .25s var(--ease), opacity .25s var(--ease); flex:none; }
.command-input-row .go:hover{ transform:scale(1.08); }
.command-input-row .go:disabled{ opacity:.5; cursor:default; transform:none; }
.command-input-row .go svg{ width:13px; height:13px; }
.command-answer{ display:none; max-height:220px; overflow-y:auto; margin-bottom:12px; padding:12px 14px; background:rgba(255,255,255,0.03); border:1px solid var(--hair); border-radius:14px; font-size:.86rem; line-height:1.6; color:var(--text-mid); }
.command-answer.visible{ display:block; }
.command-answer .q{ color:var(--text-hi); font-weight:700; margin-bottom:6px; }
.command-answer.loading{ color:var(--text-low); font-family:'IBM Plex Mono',monospace; font-size:.78rem; }
.command-answer.error{ color:var(--coral); }
.suggest-row{ display:flex; gap:8px; flex-wrap:wrap; }
.suggest-row a{ font-family:'IBM Plex Mono',monospace; font-size:.7rem; color:var(--text-mid); background:rgba(255,255,255,0.04); border:1px solid var(--hair); border-radius:999px; padding:6px 12px; cursor:pointer; transition:all .25s var(--ease); text-decoration:none; }
.suggest-row a:hover{ color:var(--text-hi); border-color:var(--glass-border-hi); background:rgba(255,255,255,0.07); }

/* forms (topic management + login) */
.btn{ font-family:'Manrope',sans-serif; font-weight:700; font-size:.82rem; color:var(--bg-0); background:var(--signal); border:none; border-radius:12px; padding:10px 20px; cursor:pointer; transition:transform .2s var(--ease); }
.btn:hover{ transform:scale(1.03); }
.btn.ghost{ background:transparent; color:var(--text-mid); border:1px solid var(--glass-border); }
.field{ margin-bottom:16px; }
.field label{ display:block; font-family:'IBM Plex Mono',monospace; font-size:.7rem; letter-spacing:.08em; text-transform:uppercase; color:var(--text-low); margin-bottom:8px; }
.field input, .field textarea, .field select{
  width:100%; background:rgba(255,255,255,0.03); border:1px solid var(--hair); border-radius:10px; color:var(--text-hi);
  font-family:'Manrope',sans-serif; font-size:.92rem; padding:11px 14px; outline:none;
}
.field input:focus, .field textarea:focus, .field select:focus{ border-color:var(--glass-border-hi); }

/* ── AI features grid (topic detail) — static icon+label buttons, no data preview.
   Clicking opens the shared detail modal (see .modal-* below). ──────────────────── */
.feature-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:14px; margin-bottom:46px; }
.feature-btn{
  all:unset; box-sizing:border-box; position:relative; display:flex; flex-direction:column; align-items:center;
  gap:10px; text-align:center; cursor:pointer; padding:24px 16px; background:var(--glass); border:1px solid var(--glass-border);
  border-radius:18px; backdrop-filter:blur(18px); transition:border-color .25s var(--ease), background .25s var(--ease), transform .2s var(--ease);
}
.feature-btn:hover{ border-color:var(--glass-border-hi); background:var(--glass-hi); transform:translateY(-2px); }
.feature-icon{ width:40px; height:40px; border-radius:12px; background:rgba(255,255,255,0.06); display:flex; align-items:center; justify-content:center; color:var(--text-hi); }
.feature-icon svg{ width:19px; height:19px; }
.feature-label{ font-size:.82rem; font-weight:700; color:var(--text-hi); }
.feature-status{ position:absolute; top:14px; right:14px; width:7px; height:7px; border-radius:50%; background:var(--text-low); }
.feature-status.loading{ background:var(--text-low); animation:pulse 1.4s ease-out infinite; }
.feature-status.ready{ background:var(--signal); }
.feature-status.empty{ background:var(--text-low); }
.feature-status.error{ background:var(--coral); }

/* Platform mix + emotion + intent share: same horizontal-bar-list pattern */
.mix-row{ display:flex; align-items:center; gap:10px; margin-bottom:10px; }
.mix-row:last-child{ margin-bottom:0; }
.mix-label{ flex:0 0 74px; font-size:.76rem; color:var(--text-mid); text-transform:capitalize; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mix-bar-track{ flex:1; height:8px; border-radius:999px; background:rgba(255,255,255,0.06); overflow:hidden; }
.mix-bar-fill{ height:100%; border-radius:999px; }
.mix-value{ flex:0 0 auto; font-family:'IBM Plex Mono',monospace; font-size:.72rem; color:var(--text-hi); font-weight:600; min-width:34px; text-align:right; }

/* Peak hours: 24-segment strip */
.hour-strip{ display:flex; align-items:flex-end; gap:3px; height:160px; margin-bottom:8px; }
.hour-bar{ flex:1; background:var(--signal); border-radius:2px 2px 0 0; min-height:2px; opacity:.55; transition:opacity .2s var(--ease); }
.hour-bar.peak{ opacity:1; background:var(--amber); }
.hour-labels{ display:flex; justify-content:space-between; font-family:'IBM Plex Mono',monospace; font-size:.62rem; color:var(--text-low); }

/* Risk event timeline */
.risk-timeline{ position:relative; padding-left:22px; }
.risk-timeline::before{ content:''; position:absolute; left:5px; top:6px; bottom:6px; width:1px; background:var(--hair); }
.risk-event-row{ position:relative; margin-bottom:16px; }
.risk-event-row:last-child{ margin-bottom:0; }
.risk-dot{ position:absolute; left:-22px; top:5px; width:10px; height:10px; border-radius:50%; border:2px solid var(--bg-0); }
.risk-dot.high{ background:var(--coral); }
.risk-dot.medium{ background:var(--amber); }
.risk-dot.low{ background:var(--signal); }
.risk-card{ background:rgba(255,255,255,0.02); border:1px solid var(--hair); border-radius:12px; padding:12px 16px; }
.risk-date{ font-family:'IBM Plex Mono',monospace; font-size:.68rem; color:var(--text-low); margin-bottom:6px; }
.risk-desc{ font-size:.86rem; color:var(--text-hi); font-weight:600; line-height:1.5; margin-bottom:8px; }
.risk-pills{ display:flex; gap:6px; flex-wrap:wrap; margin-bottom:8px; }
.risk-pill{ font-family:'IBM Plex Mono',monospace; font-size:.64rem; padding:3px 9px; border-radius:7px; text-transform:capitalize; }
.risk-pill.sev-high{ background:var(--coral-dim); color:var(--coral); }
.risk-pill.sev-medium{ background:var(--amber-dim); color:var(--amber); }
.risk-pill.sev-low{ background:var(--signal-dim); color:var(--signal); }
.risk-pill.cat{ background:rgba(154,163,255,0.14); color:var(--violet); }
.risk-pill.sent{ background:rgba(255,255,255,0.06); color:var(--text-mid); }
.risk-impressions{ font-family:'IBM Plex Mono',monospace; font-size:.7rem; color:var(--text-low); }

/* Sentiment accordion sub-sections */
.sent-subhead{ font-family:'IBM Plex Mono',monospace; font-size:.66rem; letter-spacing:.08em; text-transform:uppercase; color:var(--text-low); margin:20px 0 10px 0; }
.sent-subhead:first-child{ margin-top:0; }

/* Platform mix — icon pills (full width, above the At-a-glance grid) */
.platform-pills{ display:flex; gap:10px; margin-bottom:36px; }
.platform-pill{ flex:1; display:flex; align-items:center; justify-content:center; gap:12px; background:var(--glass); border:1px solid var(--glass-border); border-radius:16px; padding:14px 12px; backdrop-filter:blur(14px); min-width:0; }
.platform-pill-icon{ width:32px; height:32px; border-radius:9px; background:rgba(255,255,255,0.07); display:flex; align-items:center; justify-content:center; flex:none; }
.platform-pill-icon svg{ width:16px; height:16px; overflow:visible; }
.platform-pill-count{ font-family:'IBM Plex Mono',monospace; font-weight:700; font-size:1.05rem; color:var(--text-hi); }
@media (max-width:720px){ .platform-pills{ flex-wrap:wrap; } .platform-pill{ flex:1 1 calc(33.333% - 10px); } }

/* Volume trend — hover points + tooltip */
.trend-wrap{ position:relative; }
.trend-legend{ display:flex; gap:18px; margin-bottom:10px; font-family:'IBM Plex Mono',monospace; font-size:.72rem; color:var(--text-mid); }
.trend-legend .k{ display:inline-block; width:8px; height:8px; border-radius:2px; margin-right:6px; }
.trend-point{ fill:#3fe8c9; stroke:var(--bg-0); stroke-width:1.5; cursor:pointer; transition:r .15s var(--ease); }
.trend-point.reach{ fill:#9aa3ff; }
.trend-point:hover{ r:6; }
.trend-axis-label{ font-family:'IBM Plex Mono',monospace; font-size:9px; }
.trend-tooltip{
  position:absolute; pointer-events:none; z-index:5; opacity:0; transition:opacity .12s var(--ease);
  background:var(--glass-hi); border:1px solid var(--glass-border-hi); border-radius:10px; padding:8px 12px;
  font-family:'IBM Plex Mono',monospace; font-size:.72rem; color:var(--text-hi); white-space:nowrap; backdrop-filter:blur(16px);
  box-shadow:0 8px 24px rgba(0,0,0,0.4); transform:translate(-50%,-100%);
}
.trend-tooltip.visible{ opacity:1; }
.trend-tooltip .tt-date{ color:var(--text-low); margin-bottom:2px; }
.trend-tooltip .tt-val b{ color:var(--signal); }

/* Modal */
.modal-overlay{
  display:none; position:fixed; inset:0; z-index:100; background:rgba(3,5,12,0.7); backdrop-filter:blur(6px);
  align-items:flex-start; justify-content:center; padding:60px 20px;
}
.modal-overlay.open{ display:flex; }
.modal-panel{
  width:min(720px, 100%); max-height:calc(100vh - 120px); overflow-y:auto; background:var(--glass-hi);
  border:1px solid var(--glass-border-hi); border-radius:22px; backdrop-filter:blur(28px);
  box-shadow:0 30px 80px rgba(0,0,0,0.5); animation:modalIn .25s var(--ease);
}
@keyframes modalIn{ from{ opacity:0; transform:translateY(10px) scale(.98); } to{ opacity:1; transform:translateY(0) scale(1); } }
.modal-head{ display:flex; align-items:center; justify-content:space-between; padding:22px 26px; border-bottom:1px solid var(--hair); position:sticky; top:0; background:var(--glass-hi); backdrop-filter:blur(28px); z-index:1; }
.modal-head h3{ font-family:'Fraunces',serif; font-weight:560; font-size:1.3rem; color:var(--text-hi); margin:0; }
.modal-close{ all:unset; cursor:pointer; width:30px; height:30px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:var(--text-mid); transition:all .2s var(--ease); }
.modal-close:hover{ background:rgba(255,255,255,0.08); color:var(--text-hi); }
.modal-close svg{ width:15px; height:15px; }
.modal-body{ padding:24px 26px 28px; }

.modal-emotion-row{ border:1px solid var(--hair); border-radius:14px; padding:16px 18px; margin-bottom:12px; }
.modal-emotion-row:last-child{ margin-bottom:0; }
.modal-emotion-top{ display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
.modal-emotion-name{ font-weight:700; font-size:.95rem; color:var(--text-hi); }
.modal-emotion-pct{ font-family:'IBM Plex Mono',monospace; font-weight:700; }
.modal-emotion-desc{ font-size:.86rem; color:var(--text-mid); line-height:1.6; margin-bottom:10px; }
.modal-emotion-meta{ font-family:'IBM Plex Mono',monospace; font-size:.7rem; color:var(--text-low); }

.modal-persona-card{ border:1px solid var(--hair); border-radius:14px; padding:16px 18px; margin-bottom:12px; }
.modal-persona-card:last-child{ margin-bottom:0; }
.modal-persona-top{ display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; gap:10px; }
.modal-persona-name{ font-weight:700; font-size:.95rem; color:var(--text-hi); }
.modal-persona-pct{ font-family:'IBM Plex Mono',monospace; font-weight:700; color:var(--signal); flex:none; }
.modal-persona-desc{ font-size:.86rem; color:var(--text-mid); line-height:1.65; }

.modal-issue-group{ margin-bottom:16px; }
.modal-issue-group:last-child{ margin-bottom:0; }
.modal-issue-group-label{ font-family:'IBM Plex Mono',monospace; font-size:.68rem; text-transform:uppercase; letter-spacing:.08em; margin-bottom:8px; display:flex; align-items:center; gap:7px; }
.modal-issue-row{ display:flex; justify-content:space-between; align-items:center; gap:12px; padding:8px 0; border-bottom:1px solid var(--hair); font-size:.84rem; }
.modal-issue-row:last-child{ border-bottom:none; }
.modal-issue-row .txt{ color:var(--text-mid); }
.modal-issue-row .num{ font-family:'IBM Plex Mono',monospace; color:var(--text-hi); font-weight:600; white-space:nowrap; }
