/* see·e·o · v0.3 styles */
:root {
  --bg: #0a0a0b;
  --bg-elev: #131316;
  --bg-elev-2: #1b1b20;
  --bg-elev-3: #232328;
  --line: #26262d;
  --line-soft: #1e1e23;
  --text: #ececf0;
  --text-dim: #b5b5be;     /* was #a0a0aa, bumped for description / summary text */
  --text-soft: #8c8c96;    /* was #6f6f78, bumped for sublines / source channels */
  --text-faint: #7a7a82;   /* was #4a4a52, bumped a lot — axis ticks, timestamps, photo credits */
  --accent: #e6ff5a;
  --accent-dim: #c5da3a;
  --good: #6ee7b7;
  --warn: #fbbf24;
  --bad: #f87171;
  --info: #93c5fd;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --maxw: 1100px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  --font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: env(safe-area-inset-bottom);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* ── topbar ─────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10,10,11,0.92);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.bar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: baseline;
  gap: 18px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}
.bar::-webkit-scrollbar { display: none; }
.bar .brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-right: 4px;
  flex-shrink: 0;
}
.bar .brand::after { content: "·"; margin-left: 6px; color: var(--accent); }
.bar a.sector {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  padding: 2px 0;
  border-bottom: 2px solid transparent;
  transition: color 120ms ease;
}
.bar a.sector:hover { color: var(--text); }
.bar a.sector.is-active {
  color: var(--text);
  border-bottom-color: var(--accent);
}
.bar .crumb { display: none; }  /* breadcrumb replaced by second nav row */

/* ── bar-2: CEO pills for current sector ─── */
.bar-2 {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 18px 10px 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
  border-top: 1px solid var(--line-soft);
  padding-top: 9px;
}
.bar-2::-webkit-scrollbar { display: none; }

/* ── CEO pill (used in bar-2 + posters) ─── */
.ceo-pill {
  --pill-c: #888;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 4px 9px;
  font-size: 12.5px;
  font-weight: 500;
  border-radius: 5px;
  border-bottom: 2px solid transparent;
  background: color-mix(in srgb, var(--pill-c) 12%, transparent);
  color: var(--text);
  white-space: nowrap;
  transition: background 120ms ease, color 120ms ease;
}
.ceo-pill:hover {
  background: color-mix(in srgb, var(--pill-c) 22%, transparent);
  color: var(--text);
}
.ceo-pill.is-active {
  background: color-mix(in srgb, var(--pill-c) 26%, transparent);
  color: var(--text);
  border-bottom-color: var(--pill-c);
}
.ceo-pill.is-empty {
  background: color-mix(in srgb, var(--pill-c) 9%, transparent);
  opacity: 0.82;
}
.ceo-pill.sector-pill {
  --pill-c: #ffffff;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-weight: 700;
}
.ceo-pill.sector-pill.is-active {
  background: rgba(255,255,255,0.16);
  border-bottom-color: #fff;
  color: #fff;
}
.ceo-pill .pill-nm { color: var(--text); }
.ceo-pill .pill-tk {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-dim);
}

/* ── layout ─────────────────────────────── */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 18px 80px 18px;
}

/* ── home: poster grid ─────────────────── */
.posters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.poster {
  background: #000;
  border: 10px solid #fff;
  display: flex;
  flex-direction: column;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  transition: transform 140ms ease;
}
.poster-title {
  background: #fff;
  color: #000;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 14px;
  padding: 14px 8px 16px 8px;
  display: block;
  text-decoration: none;
  transition: background 100ms ease;
}
.poster-title:hover { background: #f0f0f0; }
.poster-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  padding: 14px 14px;
  gap: 6px;
  background: #000;
}
.poster-list a {
  display: block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: #fff;
  padding: 5px 6px;
  border-radius: 4px;
  transition: background 120ms ease, color 120ms ease;
}
.poster-list a:hover {
  background: rgba(255,255,255,0.08);
  color: var(--accent);
}
.poster-list a.is-empty { color: var(--text-faint); }

/* ── sector timeline (scrolls with content) ─────────────────── */
.timeline {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: relative;
  margin: 0;
  padding: 0;
}
.tl-stage {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 18px 14px 18px;
  position: relative;
}
.tl-wm {
  position: absolute;
  top: 0; left: 18px; right: 18px; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  pointer-events: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(50px, 12vw, 120px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: rgba(255,255,255,0.032);
  white-space: nowrap;
  text-transform: uppercase;
  overflow: hidden;
}
.tl-legend {
  position: relative;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}
.tl-leg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  padding: 2px 0;
}
.tl-leg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;     /* keeps the dot in the brand color */
  display: inline-block;
  flex-shrink: 0;
}
.tl-leg-nm,
.tl-leg-tk { color: var(--text) !important; }
.tl-leg-tk { color: var(--text-dim) !important; }
.tl-leg.is-empty .tl-leg-dot {
  background: transparent;
  border: 1.2px dashed currentColor;
  box-sizing: border-box;
}
/* no opacity on the label itself — keep text fully legible; the hollow dot signals empty */
.tl-leg.is-current .tl-leg-nm,
.tl-leg.is-current .tl-leg-tk { font-weight: 700; }
.tl-leg.is-current .tl-leg-dot { box-shadow: 0 0 0 2px rgba(255,255,255,0.25); }

.tl-svg-wrap {
  position: relative;
  width: 100%;
}
/* timeline axis labels and grid use raw hex in inline SVG — bump those too */
.tl-svg {
  display: block;
  width: 100%;
  height: 220px;
  position: relative;
  z-index: 1;
}
.tl-dot {
  cursor: pointer;
  transition: r 100ms ease;
}
.tl-dot:hover { r: 7; }
.tl-dot.is-current { r: 7; }

/* hover popup (kept) */
.tl-pop {
  position: fixed;
  z-index: 70;
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  width: 240px;
  pointer-events: none;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  font-size: 12px;
  transform: translate(-50%, calc(-100% - 14px));
}
.tl-pop[hidden] { display: none; }
.tl-pop-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.tl-pop-av {
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: 10px; color: #000;
  background: currentColor; flex-shrink: 0;
}
.tl-pop-nm { font-weight: 600; color: var(--text); font-size: 13px; line-height: 1.1; }
.tl-pop-co { color: var(--text-soft); font-size: 10.5px; font-family: var(--font-mono); }
.tl-pop-date { color: var(--text-soft); font-family: var(--font-mono); font-size: 10px; margin-top: 6px; }
.tl-pop-title {
  color: var(--text-dim); font-size: 12px; line-height: 1.35; margin-top: 3px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.tl-pop-score { margin-top: 6px; font-family: var(--font-mono); font-size: 10.5px; color: var(--text-soft); }
.tl-pop-score b { color: var(--text); }

/* ── profile head: mobile = magazine-style float; desktop = 3-column grid ── */
.profile-head {
  /* mobile default — photo floats left, bio flows around it */
  display: block;
  margin: 6px 0 18px 0;
}
.profile-head::after { content: ""; display: block; clear: both; }
.ph-left {
  float: left;
  display: block;
  margin: 0 14px 6px 0;
}
.ph-left > .ph-photo + .ph-photo-cred { margin-top: 4px; }
.ph-photo {
  width: 88px;
  height: 88px;
  border-radius: 12px;
  background: var(--bg-elev-2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}
.ph-photo .initials {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: currentColor;
}
.ph-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-photo-cred {
  font-size: 9.5px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  max-width: 88px;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.ph-photo-cred a { color: var(--text-soft); text-decoration: underline; text-decoration-color: var(--line); }

.ph-meta {
  min-width: 0;
}
.ph-meta > * + * { margin-top: 6px; }
.ph-name {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.05;
  color: var(--text);
}
.ph-role {
  color: var(--text-dim);
  font-size: 14px;
  margin: 0;
}
.ticker {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text);     /* always neutral, brand color stays on the chrome */
  background: color-mix(in srgb, currentColor 14%, transparent);
  border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
  padding: 2px 6px;
  border-radius: 5px;
  letter-spacing: 0.04em;
  width: max-content;
}

/* ── inline quote (sparkline + % change) ─── */
.quote {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  vertical-align: middle;
  margin-left: 6px;
}
.quote.up   { color: var(--good); }
.quote.down { color: var(--bad); }
.quote.flat { color: var(--text-soft); }
.quote svg { display: block; }
.quote-pct { white-space: nowrap; }
.quote-host { display: inline-flex; vertical-align: middle; }
.quote-host:empty { display: none; }

.feed-quote-line {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  font-size: 10.5px;
}
.ph-bio {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.55;
  margin: 4px 0 0 0;
}

/* ── traits card — compact, sits inside profile head as right column ─── */
.traits-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  width: 100%;
  clear: both;
  margin-top: 14px;
}
.traits-h {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}
.traits-h b { color: currentColor; font-weight: 700; }
.trait {
  display: grid;
  grid-template-columns: 92px 1fr 28px;
  align-items: center;
  gap: 8px;
  padding: 2px 0;
}
.trait-name { font-size: 12px; color: var(--text-dim); }
.trait-bar { height: 4px; background: var(--bg-elev-2); border-radius: 999px; overflow: hidden; }
.trait-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: currentColor;
  transition: width 600ms cubic-bezier(.2,.7,.2,1);
}
.trait-val {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text);
  text-align: right;
}
.traits-spark {
  border-top: 1px solid var(--line-soft);
  margin-top: 10px;
  padding-top: 8px;
}
.traits-spark-h {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  display: flex;
  justify-content: space-between;
  margin-bottom: 2px;
}
.traits-spark-h b { color: currentColor; font-weight: 700; }
.traits-spark svg { width: 100%; height: 42px; display: block; color: currentColor; }

/* on wider screens, switch to a 3-column grid: photo | bio | traits */
@media (min-width: 760px) {
  .profile-head {
    display: grid;
    grid-template-columns: auto 1fr 320px;
    gap: 22px;
    align-items: start;
  }
  .profile-head::after { display: none; }
  .ph-left {
    float: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  .ph-photo { width: 96px; height: 96px; border-radius: 14px; }
  .ph-photo-cred { max-width: 110px; }
  .ph-meta { display: flex; flex-direction: column; gap: 6px; }
  .ph-meta > * + * { margin-top: 0; }
  .traits-card {
    clear: none;
    margin-top: 0;
    max-width: 320px;
  }
}

/* ── facts ───────────────────────────── */
.fact-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 8px;
  margin-bottom: 18px;
}
@media (min-width: 760px) { .fact-row { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.fact {
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.fact-k { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-soft); }
.fact-v { font-size: 13.5px; color: var(--text); margin-top: 3px; font-weight: 500; }

/* ── coaching ───────────────────────── */
.coach {
  padding: 12px 14px;
  background: var(--bg-elev);
  border: 1px solid color-mix(in srgb, currentColor 22%, var(--line));
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 18px;
}
.coach strong {
  display: block;
  color: currentColor;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

/* ─── Financials section ──────────────────────────────────────────────── */
.fin {
  margin: 4px 0 22px;
  color: var(--text);
}
.fin-loading,
.fin-empty,
.fin-chart-empty {
  font-size: 12.5px;
  color: var(--text-soft);
  padding: 10px 12px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.fin-h {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 4px 0 8px;
}
.fin-price-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px 6px;
  margin-bottom: 10px;
}
.fin-price-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
  font-size: 12.5px;
}
.fin-price-label {
  color: var(--text-soft);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.fin-price-now {
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.fin-delta {
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-left: auto;
}
.fin-delta.up { color: #4ade80; }
.fin-delta.dn { color: #f87171; }
.fin-chart {
  display: block;
  width: 100%;
  height: 160px;
}
.fin-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.fin-tick { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.fin-tick-lbl { font-size: 9px; fill: var(--text-faint); }
.fin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 8px;
}
.fin-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.fin-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.fin-sub {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.fin-bars {
  width: 100%;
  height: 64px;
  display: block;
}
.fin-axis { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.fin-bar.up { fill: #4ade80; opacity: 0.9; }
.fin-bar.dn { fill: #f87171; opacity: 0.9; }
.fin-foot {
  font-size: 11.5px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  border-top: 1px solid var(--line);
  padding-top: 5px;
  margin-top: 1px;
}
.fin-meta {
  font-size: 11px;
  color: var(--text-faint);
}
.fin-meta a {
  color: var(--text-soft);
  text-decoration: none;
}
.fin-meta a:hover { color: var(--text); text-decoration: underline; }

@media (max-width: 720px) {
  .fin-grid { grid-template-columns: 1fr; }
  .fin-chart { height: 130px; }
}

/* ── appearance card ─────────────────── */
.app-list { display: flex; flex-direction: column; gap: 12px; }
.appearance {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.appearance.is-open {
  border-color: color-mix(in srgb, currentColor 50%, var(--line));
}
.app-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  cursor: pointer;
}
.app-head:hover { background: var(--bg-elev-2); }
.app-score {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  background: var(--bg-elev-2);
  border: 1.5px solid var(--line);
  color: var(--text);
}
.app-score.is-trivial { border-style: dashed; opacity: 0.82; }
.app-h-meta { flex: 1; min-width: 0; }
.app-title { font-size: 15px; font-weight: 600; line-height: 1.3; margin: 0 0 4px 0; color: var(--text); }
.app-sub {
  font-size: 12px;
  color: var(--text-soft);
  font-family: var(--font-mono);
  display: flex; gap: 6px; flex-wrap: wrap; align-items: center;
}
.app-sub .dot { color: var(--text-faint); }

.app-body { border-top: 1px solid var(--line-soft); display: none; }
.appearance.is-open .app-body { display: block; }

.app-player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}
.app-player img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; display: block; }
.app-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play-btn {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.5) 100%);
  cursor: pointer;
}
.play-btn::before {
  content: ""; width: 58px; height: 58px; border-radius: 50%;
  background: rgba(255,255,255,0.95);
}
.play-btn::after {
  content: ""; position: absolute;
  width: 0; height: 0;
  border-left: 16px solid #111;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  margin-left: 5px;
}

.app-summary {
  padding: 16px 18px 12px 18px;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
  border-bottom: 1px solid var(--line-soft);
}
.app-summary strong {
  display: block;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  margin-bottom: 4px;
  font-weight: 600;
}

.app-quotes { padding: 12px 18px; border-bottom: 1px solid var(--line-soft); }
.app-quotes-h {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-soft); margin-bottom: 6px; font-weight: 600;
}
.app-quote {
  border-left: 2px solid currentColor;
  padding: 4px 12px; margin: 6px 0;
  color: var(--text); font-size: 14px; line-height: 1.5; font-style: italic;
}

/* ── transcript ─────────────────────── */
.transcript { padding: 4px 0 14px 0; }
.tx-section { border-bottom: 1px solid var(--line-soft); }
.tx-section:last-child { border-bottom: 0; }
.tx-section-head {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 18px; cursor: pointer; user-select: none;
}
.tx-section-head:hover { background: var(--bg-elev-2); }
.tx-caret {
  flex-shrink: 0; width: 14px; margin-top: 3px;
  color: var(--text-soft); font-family: var(--font-mono);
  transition: transform 160ms ease;
}
.tx-section.is-open .tx-caret { transform: rotate(90deg); }
.tx-section-meta { flex: 1; min-width: 0; }
.tx-h { font-size: 13.5px; font-weight: 600; color: var(--text); margin: 0 0 2px 0; line-height: 1.35; }
.tx-tldr { font-size: 13px; color: var(--text-dim); line-height: 1.5; margin: 0; }
.tx-chunks { padding: 0 18px 14px 42px; }
.tx-chunks.is-wide { padding-left: 28px; padding-right: 18px; }
.tx-chunk {
  display: flex; gap: 10px; padding: 6px 0;
  font-size: 13.5px; line-height: 1.55; color: var(--text-dim);
}
.tx-chunk.is-key { color: var(--text); }
.tx-ts {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  background: transparent; border: 0;
  padding: 1px 4px; cursor: pointer;
  flex-shrink: 0; text-align: right; min-width: 34px;
  align-self: flex-start; margin-top: 2px;
  border-radius: 4px;
}
.tx-ts:hover { color: var(--accent); background: rgba(230,255,90,0.08); }
.tx-speaker {
  font-family: var(--font-mono);
  font-size: 11px;
  flex-shrink: 0;
  width: 130px;
  text-align: right;
  align-self: flex-start;
  margin-top: 2px;
  padding: 1px 4px;
  color: var(--text-soft);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.3;
}
.tx-speaker.is-subject { color: currentColor; }
.tx-text { flex: 1; }
.tx-tags { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: 6px; vertical-align: middle; }
.tx-tag {
  display: inline-flex; align-items: center; gap: 3px;
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 1px 5px; border-radius: 3px;
  border: 1px solid currentColor;
  color: var(--text-soft); white-space: nowrap;
}
.tx-tag-aging-badly  { color: var(--bad); background: rgba(248,113,113,0.08); }
.tx-tag-aging-well   { color: var(--good); background: rgba(110,231,183,0.08); }
.tx-tag-candid       { color: var(--good); background: rgba(110,231,183,0.06); }
.tx-tag-hedge        { color: var(--warn); background: rgba(251,191,36,0.07); }
.tx-tag-bold-claim   { color: var(--info); background: rgba(147,197,253,0.08); }
.tx-tag-key-claim    { color: var(--info); background: rgba(147,197,253,0.06); }
.tx-tag-factual      { color: var(--text-dim); }
.tx-tag-good-response{ color: var(--good); background: rgba(110,231,183,0.06); }
.tx-tag-evasive      { color: var(--warn); background: rgba(251,191,36,0.07); }

.tx-section:not(.is-open) .tx-chunks { display: none; }
.tx-section.has-key:not(.is-open) .tx-chunks { display: block; padding-bottom: 10px; }
.tx-section.has-key:not(.is-open) .tx-chunk:not(.is-key) { display: none; }

/* ── empty state ─────────────────────── */
.empty {
  background: var(--bg-elev);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 22px;
  color: var(--text-dim);
  text-align: center;
  font-size: 13.5px;
  line-height: 1.6;
  margin-top: 12px;
}
.empty strong { color: currentColor; }

/* ── user chip / sign-in ────────────── */
.bar { gap: 14px; align-items: center; }
.bar-spacer { flex: 1; }
.signin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}
.signin-btn:hover { border-color: var(--accent); color: var(--accent); }
.signin-btn::before {
  content: "G";
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
}
.user-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  padding: 3px 8px 3px 3px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  cursor: pointer;
  flex-shrink: 0;
}
.user-chip-av {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-elev-2);
  object-fit: cover;
}
.user-chip-name {
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
}
.user-chip-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px;
  min-width: 140px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
  z-index: 100;
  display: none;
}
.user-chip.is-open .user-chip-menu { display: block; }
.user-chip-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--text-dim);
  padding: 6px 10px;
  font-size: 12.5px;
  border-radius: 5px;
  cursor: pointer;
}
.user-chip-menu button:hover { background: var(--bg-elev-2); color: var(--text); }
.user-chip-email {
  padding: 8px 10px 6px 10px;
  font-size: 11px;
  color: var(--text-soft);
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 4px;
}

/* ── interactive trait bars ─────────── */
.trait { position: relative; }
.trait[data-clickable] .trait-bar { cursor: pointer; position: relative; height: 8px; }
.trait[data-clickable] .trait-bar:hover .trait-bar-fill { opacity: 0.6; }
.trait-bar-mark {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 3px;
  margin-left: -1.5px;
  background: var(--accent);
  border-radius: 1px;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(10,10,11,0.5);
}
.trait-mine-badge {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--accent);
  margin-left: 4px;
}
.traits-note {
  font-size: 10.5px;
  color: var(--text-soft);
  text-align: center;
  margin-top: 8px;
  font-family: var(--font-mono);
}
.traits-note a { color: var(--accent); text-decoration: underline; }

/* ── comments section ──────────────── */
.comments-section {
  padding: 14px 18px 16px 18px;
  border-top: 1px solid var(--line-soft);
}
.comments-h {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
}
.comment-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}
.comment-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.comment-av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-elev-2);
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--line);
}
.comment-av-fallback {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-elev-2);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
}
.comment-meta { flex: 1; min-width: 0; }
.comment-head {
  font-size: 11.5px;
  color: var(--text-soft);
  margin-bottom: 2px;
}
.comment-head b { color: var(--text); font-weight: 600; }
.comment-text {
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.comment-empty {
  font-size: 12.5px;
  color: var(--text-soft);
  font-style: italic;
  padding: 6px 0;
}
.comment-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}
.comment-form textarea {
  width: 100%;
  min-height: 64px;
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 13.5px;
  resize: vertical;
}
.comment-form textarea:focus { outline: 1px solid var(--accent); }
.comment-form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.comment-form button {
  background: var(--accent);
  color: #000;
  border: 0;
  padding: 6px 14px;
  font-weight: 700;
  font-size: 12px;
  border-radius: 5px;
  cursor: pointer;
}
.comment-form button:disabled { opacity: 0.4; cursor: not-allowed; }
.comment-form .form-hint {
  font-size: 11px;
  color: var(--text-soft);
  font-family: var(--font-mono);
}
.comment-error {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--bad);
  margin-top: 6px;
  padding: 6px 8px;
  background: rgba(248,113,113,0.06);
  border: 1px solid rgba(248,113,113,0.25);
  border-radius: 5px;
}
.comment-error:empty { display: none; }
.signin-prompt {
  font-size: 12.5px;
  color: var(--text-soft);
  text-align: center;
  padding: 8px 0;
}
.signin-prompt a {
  color: var(--accent);
  text-decoration: underline;
}

/* ── sector hero ─────────────────────── */
.sector-hero {
  margin: 6px 0 22px 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}
.sector-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 6vw, 44px);
  letter-spacing: -0.02em;
  margin: 0 0 4px 0;
  line-height: 1.05;
  text-transform: uppercase;
}
.sector-meta {
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  margin: 0;
  letter-spacing: 0.02em;
}

/* ── feed ────────────────────────────── */
.feed-section { margin-top: 32px; }
.feed-h {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  margin: 0 0 12px 0;
}
.feed { display: flex; flex-direction: column; gap: 6px; }

.feed-item {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-left: 3px solid var(--pill-c);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: background 120ms ease;
  cursor: pointer;
}
.feed-item:hover { background: var(--bg-elev-2); }
.feed-row {
  display: flex;
  gap: 12px;
  padding: 9px 12px 9px 9px;
  align-items: stretch;
}
.feed-thumb {
  width: 130px;
  flex-shrink: 0;
  aspect-ratio: 16 / 9;
  position: relative;
  background: #000;
  border-radius: 5px;
  overflow: hidden;
  border: 0;
}
.feed-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.feed-thumb .feed-play {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.45));
  transition: background 140ms ease;
}
.feed-thumb:hover .feed-play {
  background: linear-gradient(180deg, rgba(0,0,0,0.1), rgba(0,0,0,0.5));
}
.feed-thumb .feed-play::before {
  content: ""; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.95);
}
.feed-thumb .feed-play::after {
  content: ""; position: absolute;
  width: 0; height: 0;
  border-left: 11px solid #111;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  margin-left: 4px;
}
.feed-thumb-empty {
  background: var(--bg-elev-2);
  display: grid; place-items: center;
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: default;
  letter-spacing: 0.06em;
}
.feed-empty { color: var(--pill-c); opacity: 0.8; }

.feed-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.feed-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.feed-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.feed-cm {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  padding: 1px 5px;
  border-radius: 4px;
}
.feed-who {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
}
.feed-tk {
  font-family: var(--font-mono);
  font-size: 10.5px;
  margin-left: 4px;
  color: var(--text-dim);
}
.feed-score {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text);
  background: var(--bg-elev-2);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.feed-score.is-trivial { opacity: 0.72; border-style: dashed; }
.feed-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feed-sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-soft);
  letter-spacing: 0.02em;
}
.feed-sum {
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.5;
  margin: 2px 0 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feed-quote {
  font-size: 12px;
  font-style: italic;
  color: var(--text-dim);
  border-left: 2px solid var(--pill-c);
  padding-left: 8px;
  margin-top: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feed-comments {
  margin-top: 6px;
  padding-top: 5px;
  border-top: 1px dashed var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.feed-comment {
  font-size: 11.5px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}
.feed-comment-name {
  color: var(--text);
  font-weight: 600;
  margin-right: 4px;
}
.feed-comment-name::after { content: ":"; color: var(--text-soft); margin-left: 1px; }
.feed-comment-body { color: var(--text-dim); }
.feed-comment-age {
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  margin-left: 6px;
}
.feed-player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-top: 1px solid var(--line-soft);
}
.feed-player iframe {
  width: 100%; height: 100%;
  border: 0;
  position: absolute;
  inset: 0;
}

@media (max-width: 640px) {
  .feed-thumb { width: 96px; }
  .feed-row { padding: 8px 10px 8px 8px; gap: 10px; }
}

/* ── overlay video player (DOM-stable, position-tracked) ───────────── */
#player-overlay {
  position: fixed;
  z-index: 100;
  background: #000;
  display: block;
  /* size + top/left set inline by JS when overlaying a slot */
}
#player-overlay[hidden] { display: none; }
#player-overlay iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
#player-overlay.is-mini {
  bottom: 14px !important;
  right: 14px !important;
  top: auto !important;
  left: auto !important;
  width: 280px !important;
  height: 158px !important;
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.55);
  overflow: hidden;
}
.player-overlay-close {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0,0,0,0.65);
  border: 0;
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  z-index: 10;
  display: none;
  font-family: var(--font);
}
.player-overlay-close:hover { background: rgba(248,113,113,0.85); }
#player-overlay.is-mini .player-overlay-close { display: block; }
.player-overlay-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.78);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 5px 30px 5px 8px;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: none;
}
#player-overlay.is-mini .player-overlay-title { display: block; }
.player-overlay-title:hover { color: var(--accent); }

/* Hide thumbnail + play button when the iframe is overlaying the slot */
.app-player.has-overlay > img,
.app-player.has-overlay > .play-btn,
.feed-thumb.has-overlay > img,
.feed-thumb.has-overlay > .feed-play { visibility: hidden; }
@media (max-width: 640px) {
  #player-overlay.is-mini { width: 200px; height: 113px; bottom: 10px; right: 10px; }
}

/* ── foot ────────────────────────────── */
.foot {
  text-align: center;
  color: var(--text-soft);
  font-size: 11px;
  padding: 24px 18px 36px 18px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
