/* YouTubePilot — v3 visual pass.
 * Keeps the founder's warm-neutral palette and Geist, but makes the data visible:
 * outlier badges on every thumbnail, coverage as avatars, quotes as pull-quotes with a
 * play timestamp, and one deliberate motion moment per interaction. */

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f7f7f5;
  --sidebar: #f6f6f4;

  --ink: #171716;
  --ink-hover: #2e2d2a;
  --text: #2b2a28;
  --text-2: #4a4945;
  --muted: #6b6a66;
  --faint: #8f8e89;
  --placeholder: #a7a6a0;

  --line: #e6e4df;
  --line-2: #eeece7;
  --line-strong: #d8d6d0;
  --hover: #f1f0ec;
  --row-hover: #fbfaf8;
  --row-sel: #f5f4f0;
  --nav-hover: #e9e8e3;
  --nav-active: #e3e2dc;
  --dot-off: #e2e0da;

  --red: #d9342b;
  --red-bg: #fdecea;
  --red-ink: #b4231b;
  --amber: #b86a12;
  --amber-bg: #fbf1e2;
  --green: #2f7d4f;
  --green-bg: #eaf5ee;
  --me: #2b2a28;

  --font: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-card: 14px;
  --r-ctl: 9px;
  --shadow-card: 0 1px 2px rgba(23, 23, 22, .04);
  --shadow-pop: 0 12px 32px rgba(23, 23, 22, .12), 0 1px 2px rgba(23, 23, 22, .06);
  --shadow-drawer: -24px 0 60px rgba(23, 23, 22, .10);

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);

  color-scheme: light;
}

/* ------------------------------------------------------------------ base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'tnum' 1, 'cv11' 1;
}
body.has-drawer { overflow: hidden; }
a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--line-strong); }
a:hover { color: var(--red); text-decoration-color: currentColor; }
button { font-family: inherit; color: inherit; font-size: inherit; }
button:disabled { cursor: default; opacity: .55; }
input:focus { outline: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
input:focus-visible { outline: none; }
h1, h2, h3 { overflow-wrap: anywhere; }
p { margin: 0; }
[hidden] { display: none !important; }
img { color: transparent; }

@keyframes nwpulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes slidein { from { transform: translateX(32px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes sheetin { from { transform: translateY(24px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------------ atoms */

/* the BulkTranscripts family mark (speech-bubble stack), lettered Y P */
.logo {
  width: 24px; height: 24px; border-radius: 0; flex-shrink: 0; display: inline-block;
  background: url('/logo-mark.png') center / contain no-repeat;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-name { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }

/* avatars: initials circle, or the channel image on top of it */
.av {
  position: relative; border-radius: 50%; color: #fff; font-weight: 600;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  overflow: hidden; line-height: 1; user-select: none;
}
.av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.av-56 { width: 56px; height: 56px; font-size: 18px; }
.av-36 { width: 36px; height: 36px; font-size: 12px; }
.av-28 { width: 28px; height: 28px; font-size: 11px; }
.av-24 { width: 24px; height: 24px; font-size: 9px; }
.av-20 { width: 20px; height: 20px; font-size: 8.5px; }
.av-16 { width: 16px; height: 16px; font-size: 0; }
.av-14 { width: 14px; height: 14px; font-size: 0; }
.av-12 { width: 12px; height: 12px; font-size: 0; }
.chip .av-24 { font-size: 10px; }

.stack { display: flex; }
.stack .av { border: 2px solid var(--surface); box-sizing: content-box; }
.stack .av-20 { margin-right: -7px; font-size: 7.5px; }
.stack .av-24 { margin-right: -8px; font-size: 8.5px; }
.stack .av-16 { margin-right: -6px; }

.new-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); flex-shrink: 0; }
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex-shrink: 0;
  animation: nwpulse 1s infinite;
}

.kicker, .mono-note { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.lbl { font-size: 12px; font-weight: 500; color: var(--faint); letter-spacing: .01em; }
.cap { font-size: 12px; font-weight: 500; color: var(--faint); }
.tag {
  font-family: var(--mono); font-size: 11px; padding: 3px 7px; border-radius: 6px;
  background: var(--hover); color: var(--text-2); white-space: nowrap;
}
.tag.is-hot { color: var(--red-ink); background: var(--red-bg); }

/* red mono timestamp that plays the moment on YouTube */
.ts {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--mono); font-size: 11.5px; color: var(--red); text-decoration: none; white-space: nowrap;
  padding: 1px 6px; border-radius: 5px; background: var(--red-bg); line-height: 1.5;
  transition: background 120ms ease, color 120ms ease;
}
.ts::before { content: ''; width: 0; height: 0; border-left: 5px solid currentColor; border-top: 3.5px solid transparent; border-bottom: 3.5px solid transparent; }
a.ts:hover { background: var(--red); color: #fff; text-decoration: none; }
.ts.is-plain { background: none; padding: 0; }
.plain-link { color: inherit; text-decoration: none; }
.plain-link:hover { color: var(--red); }

/* outlier badge: views against the channel's own median */
.xb {
  display: inline-flex; align-items: center; gap: 3px;
  font-family: var(--mono); font-size: 11px; font-weight: 500; line-height: 1;
  padding: 4px 6px; border-radius: 5px; white-space: nowrap;
  background: rgba(23, 23, 22, .82); color: #fff;
}
.xb.is-hot { background: var(--red); }
.xb.is-warm { background: var(--amber); }
.xb.is-new { background: rgba(255, 255, 255, .92); color: var(--ink); }
.thumb .xb { position: absolute; left: 6px; bottom: 6px; }
.xb-inline { background: var(--hover); color: var(--text-2); }
.xb-inline.is-hot { background: var(--red-bg); color: var(--red-ink); }
.xb-inline.is-warm { background: var(--amber-bg); color: var(--amber); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 34px; padding: 0 14px; border-radius: var(--r-ctl);
  font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: transform 140ms var(--ease-out), background 120ms ease, border-color 120ms ease, color 120ms ease;
}
.btn:active:not(:disabled), .ob-find-btn:active:not(:disabled), .btn-add:active:not(:disabled), .ask-btn:active:not(:disabled), .btn-refresh:active:not(:disabled) { transform: scale(.97); }
.btn-dark { border: none; background: var(--ink); color: #fff; }
.btn-dark:hover:not(:disabled) { background: var(--ink-hover); color: #fff; }
.btn-light { border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); }
.btn-light:hover:not(:disabled) { background: var(--hover); color: var(--ink); }
.btn-ghost { border: none; background: transparent; color: var(--muted); padding: 0 10px; }
.btn-ghost:hover:not(:disabled) { background: var(--hover); color: var(--ink); }
.btn-sm { height: 30px; padding: 0 11px; border-radius: 8px; font-size: 12.5px; }
.btn-xs { height: 30px; padding: 0 12px; border-radius: 8px; }
.btn-36 { height: 36px; }
.btn-lg { height: 48px; border-radius: 10px; font-size: 15px; padding: 0 18px; }
.btn-xl { height: 52px; border-radius: 12px; font-size: 15px; padding: 0 18px; gap: 10px; }
.btn-50 { height: 50px; border-radius: 12px; font-size: 15px; }
.btn-block { width: 100%; }
.btn .red-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.btn svg { width: 14px; height: 14px; }

.link-btn {
  border: none; background: none; padding: 0; font-size: 13px; color: var(--muted);
  cursor: pointer; text-align: left; transition: color 120ms ease;
}
.link-btn:hover:not(:disabled) { color: var(--ink); }
.link-btn.is-mono { font-family: var(--mono); font-size: 12px; }
.link-btn.is-red { color: var(--red); }

.kbd {
  display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 5px; border: 1px solid var(--line-strong); background: var(--surface);
  font-family: var(--mono); font-size: 10.5px; color: var(--faint); line-height: 1;
}

/* skeletons */
.skel {
  display: block; border-radius: 6px;
  background: linear-gradient(90deg, var(--line-2) 0%, #f6f5f1 50%, var(--line-2) 100%);
  background-size: 200% 100%; animation: shimmer 1.4s linear infinite;
}
.skel-line { height: 12px; }
.skel-circle { border-radius: 50%; flex-shrink: 0; }

/* notices */
.note {
  font-size: 13px; line-height: 1.5; border-radius: 10px; padding: 10px 12px; overflow-wrap: anywhere;
}
.note-soft { color: var(--amber); background: var(--amber-bg); }
.note-err { color: var(--red-ink); background: var(--red-bg); }
.note strong { font-weight: 600; }
.note .link-btn { color: inherit; text-decoration: underline; text-underline-offset: 2px; font-size: inherit; }
.field-err { font-size: 13px; line-height: 1.45; color: var(--red-ink); margin: 0; overflow-wrap: anywhere; }

.toasts {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 80;
  display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none;
  width: max-content; max-width: calc(100vw - 32px);
}
.toast {
  background: var(--ink); color: #fff; font-size: 13px; line-height: 1.4; padding: 9px 14px;
  border-radius: 10px; box-shadow: var(--shadow-pop); overflow-wrap: anywhere;
  opacity: 1; transform: none; transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
  @starting-style { opacity: 0; transform: translateY(8px); }
}
.toast.is-error { background: var(--red-ink); }

.boot {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; color: var(--faint);
}
.fatal { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.fatal-card { max-width: 440px; display: flex; flex-direction: column; gap: 14px; }
.fatal-card h1 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.fatal-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }

/* thumbnails */
.thumb {
  position: relative; display: block; flex-shrink: 0; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px;
  background: linear-gradient(135deg, #e9e7e1, #f3f2ee);
}
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(23, 23, 22, .06); pointer-events: none; }
.thumb .dur {
  position: absolute; right: 6px; bottom: 6px; background: rgba(23, 23, 22, .82); color: #fff;
  padding: 2px 5px; border-radius: 4px; font-family: var(--mono); font-size: 10px; line-height: 1.3;
}
.thumb-56 { width: 56px; border-radius: 5px; }
.thumb-56 .dur, .thumb-56 .xb, .thumb-72 .dur { display: none; }
.thumb-72 { width: 72px; border-radius: 6px; }
.thumb-72 .xb { left: 4px; bottom: 4px; padding: 3px 5px; font-size: 10px; }
.thumb-88 { width: 88px; border-radius: 6px; }
.thumb-88 .dur { display: none; }
.thumb-88 .xb { left: 5px; bottom: 5px; padding: 3px 5px; font-size: 10px; }
.thumb-132 { width: 132px; }
.thumb-160 { width: 160px; }
.thumb-240 { flex: 0 0 240px; max-width: 100%; border-radius: 10px; align-self: flex-start; }
.thumb-fill { width: 100%; }
a.thumb { transition: transform 160ms var(--ease-out); }
a.thumb:hover { transform: translateY(-1px); }

/* ------------------------------------------------------------------ onboarding */

.ob { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.ob-top { display: flex; align-items: center; justify-content: space-between; padding: 20px 32px; gap: 16px; }
.ob-top-right { display: flex; align-items: center; gap: 16px; }
.ob-step { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.ob-body { flex: 1; display: flex; justify-content: center; padding: 48px 24px 80px; }
.ob-col { width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 28px; animation: rise 260ms var(--ease-out); }
.ob-result { display: contents; }
.ob-head { display: flex; flex-direction: column; gap: 10px; }
.ob-head .link-btn { margin-bottom: 4px; align-self: flex-start; }
.ob-h1 { margin: 0; font-size: 34px; font-weight: 600; letter-spacing: -0.028em; line-height: 1.1; }
.ob-lead { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.ob-find { display: flex; gap: 8px; }
.ob-input {
  flex: 1; min-width: 0; height: 46px; padding: 0 16px; border: 1px solid var(--line-strong);
  border-radius: 10px; font-size: 15px; font-family: inherit; background: var(--surface); color: var(--ink);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.ob-input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23, 23, 22, .06); }
.ob-input::placeholder, .ask-input::placeholder { color: var(--placeholder); }
.ob-find-btn {
  height: 46px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--surface); font-size: 14px; font-weight: 500; cursor: pointer; flex-shrink: 0;
  transition: transform 140ms var(--ease-out), background 120ms ease;
}
.ob-find-btn:hover:not(:disabled) { background: var(--hover); }
.ob-field { display: flex; flex-direction: column; gap: 8px; }

.found-card {
  display: flex; flex-direction: column; gap: 14px; padding: 16px;
  border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-card);
  animation: rise 240ms var(--ease-out);
}
.found-row { display: flex; align-items: center; gap: 16px; }
.found-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.found-title { font-weight: 600; font-size: 16px; overflow-wrap: anywhere; }
.found-stats { display: flex; gap: 4px 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.found-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.found-strip .thumb { width: 100%; border-radius: 6px; }
.found-strip .thumb .dur, .found-strip .thumb .xb { display: none; }
.pill-found {
  font-family: var(--mono); font-size: 11px; color: var(--green); background: var(--green-bg);
  padding: 4px 8px; border-radius: 6px; flex-shrink: 0;
}

.ob-section { display: flex; flex-direction: column; gap: 10px; }
.ob-row-between { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ob-label { font-size: 13px; font-weight: 600; }
.ob-count { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: flex; align-items: center; gap: 8px; padding: 5px 6px 5px 5px; max-width: 100%;
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px;
  animation: rise 200ms var(--ease-out);
}
.chip-name { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.chip-x {
  width: 22px; height: 22px; border-radius: 50%; border: none; background: transparent;
  color: var(--faint); cursor: pointer; font-size: 14px; line-height: 1; flex-shrink: 0; padding: 0;
}
.chip-x:hover { background: var(--hover); color: var(--ink); }
.chips-empty { font-size: 13px; color: var(--faint); padding: 6px 0; }

.ob-add { display: flex; gap: 8px; }
.ob-add .ob-input { height: 40px; font-size: 14px; padding: 0 14px; }
.ob-add .ob-find-btn { height: 40px; font-size: 13px; padding: 0 14px; }

.list-card { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); overflow: hidden; box-shadow: var(--shadow-card); }
.sugg { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line-2); animation: rise 220ms var(--ease-out) both; }
.sugg:first-child { border-top: none; }
.sugg:nth-child(2) { animation-delay: 30ms; } .sugg:nth-child(3) { animation-delay: 60ms; } .sugg:nth-child(4) { animation-delay: 90ms; }
.sugg:nth-child(5) { animation-delay: 120ms; } .sugg:nth-child(6) { animation-delay: 150ms; } .sugg:nth-child(7) { animation-delay: 180ms; } .sugg:nth-child(8) { animation-delay: 210ms; }
.sugg-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sugg-name-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sugg-name { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sugg-sub { font-size: 12px; color: var(--faint); line-height: 1.4; overflow-wrap: anywhere; }
.size-tag {
  font-family: var(--mono); font-size: 10.5px; padding: 2px 6px; border-radius: 5px;
  background: var(--hover); color: var(--text-2); white-space: nowrap; flex-shrink: 0;
}
.sugg-caption { font-family: var(--mono); font-size: 11.5px; color: var(--faint); display: flex; align-items: center; gap: 8px; }
.sugg-empty { padding: 16px 14px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.sugg-empty .link-btn { text-decoration: underline; text-underline-offset: 2px; color: var(--ink); }
.btn-add {
  height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-strong);
  background: var(--surface); font-size: 13px; font-weight: 500; cursor: pointer; flex-shrink: 0;
  transition: transform 140ms var(--ease-out), background 120ms ease;
}
.btn-add:hover:not(:disabled) { background: var(--hover); }

/* ------------------------------------------------------------------ analyzing */

.an { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--bg); }
.an-col { width: 100%; max-width: 520px; display: flex; flex-direction: column; gap: 30px; animation: rise 260ms var(--ease-out); }
.an-head { display: flex; flex-direction: column; gap: 8px; }
.an-h1 { margin: 0; font-size: 32px; font-weight: 600; letter-spacing: -0.028em; line-height: 1.1; }
.an-steps { display: flex; flex-direction: column; gap: 12px; }
.an-row { display: flex; align-items: center; gap: 14px; opacity: .32; transition: opacity 400ms ease; }
.an-row.is-done, .an-row.is-active, .an-row.is-failed { opacity: 1; }
.an-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dot-off); flex-shrink: 0; transition: background 200ms ease; }
.an-row.is-done .an-dot { background: var(--ink); }
.an-row.is-active .an-dot { background: var(--red); animation: nwpulse 1s infinite; }
.an-row.is-failed .an-dot { background: var(--red); }
.an-label { flex: 1; font-size: 15px; color: var(--ink); min-width: 0; }
.an-val { font-family: var(--mono); font-size: 13px; color: var(--muted); white-space: nowrap; }
.an-row.is-failed .an-val { color: var(--red-ink); }
.bar { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.bar-fill { height: 100%; width: 0; background: var(--ink); transition: width 600ms var(--ease-in-out); }
.an-mosaic { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; min-height: 0; }
.an-mosaic .thumb { width: 100%; border-radius: 4px; animation: rise 300ms var(--ease-out) both; }
.an-mosaic .thumb .dur, .an-mosaic .thumb .xb { display: none; }
.an-mosaic-cap { font-family: var(--mono); font-size: 11px; color: var(--faint); margin-top: -18px; }
.an-foot { display: flex; flex-direction: column; gap: 12px; }
.an-hint { font-size: 12.5px; color: var(--faint); line-height: 1.5; margin: 0; }
.an-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.an-actions .btn { flex: 1; }

/* ------------------------------------------------------------------ app shell */

.app { display: flex; min-height: 100vh; background: var(--bg); }

.sb {
  width: 236px; flex-shrink: 0; border-right: 1px solid var(--line); background: var(--sidebar);
  display: flex; flex-direction: column; gap: 22px; padding: 18px 12px 12px;
  position: sticky; top: 0; height: 100vh; overflow: auto;
}
.sb-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 8px; }
.sb-chan-btn { display: none; }
.nav { display: flex; flex-direction: column; gap: 1px; }
.nav-btn {
  display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border: none;
  border-radius: 8px; background: transparent; color: var(--text-2); font-size: 14px; font-weight: 500;
  cursor: pointer; text-align: left; transition: background 120ms ease, color 120ms ease;
}
.nav-btn:hover { background: var(--nav-hover); color: var(--ink); }
.nav-btn.is-active { background: var(--nav-active); color: var(--ink); font-weight: 600; }
.nav-label { flex: 1; }
.nav-count { font-family: var(--mono); font-size: 11px; color: var(--faint); font-weight: 400; }
.nav-btn .kbd { opacity: 0; transition: opacity 120ms ease; }
.nav:hover .nav-btn .kbd { opacity: 1; }

.sb-panel { display: flex; flex-direction: column; gap: 22px; flex: 1; min-height: 0; }
.sb-comps { display: flex; flex-direction: column; gap: 2px; }
.sb-h { padding: 0 10px 6px; font-size: 12px; font-weight: 500; color: var(--faint); }
.comp {
  display: flex; align-items: center; gap: 9px; height: 32px; padding: 0 10px; border-radius: 8px;
  cursor: pointer; border: none; background: transparent; width: 100%; text-align: left;
  transition: background 120ms ease;
}
.comp:hover { background: var(--nav-hover); }
.comp.is-active { background: var(--nav-active); }
.comp-name { flex: 1; font-size: 13px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.comp-age { font-family: var(--mono); font-size: 10.5px; color: var(--faint); white-space: nowrap; }
.comp.has-error .comp-name { color: var(--faint); }
.comp-none { padding: 0 10px; font-size: 12.5px; color: var(--faint); line-height: 1.45; }

.sb-foot {
  margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding: 12px 8px 0;
  border-top: 1px solid var(--line); position: relative;
}
.me { display: flex; align-items: center; gap: 10px; }
.me-text { min-width: 0; flex: 1; }
.me-name { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-sub { font-size: 11px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn {
  width: 28px; height: 28px; border-radius: 8px; border: none; background: transparent; color: var(--muted);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; padding: 0;
  transition: background 120ms ease, color 120ms ease;
}
.icon-btn:hover, .icon-btn[aria-expanded="true"] { background: var(--nav-hover); color: var(--ink); }
.icon-btn svg { width: 16px; height: 16px; }

.refresh { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.btn-refresh {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 7px;
  border: 1px solid var(--line-strong); background: var(--surface); font-size: 12px; font-weight: 500; cursor: pointer;
  transition: transform 140ms var(--ease-out), background 120ms ease;
}
.btn-refresh:hover:not(:disabled) { background: var(--hover); }
.btn-refresh svg { width: 12px; height: 12px; }
.refresh-meta { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10.5px; color: var(--faint); white-space: nowrap; min-width: 0; }
.refresh-run { display: flex; flex-direction: column; gap: 6px; }
.refresh-line { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; color: var(--text-2); min-width: 0; }
.refresh-line span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.refresh-line .pulse-dot { width: 6px; height: 6px; }
.refresh-msg { font-size: 11.5px; line-height: 1.4; overflow-wrap: anywhere; }
.refresh-msg.is-warn { color: var(--amber); }
.refresh-msg.is-err { color: var(--red-ink); }

.menu {
  position: absolute; left: 6px; right: 6px; bottom: calc(100% + 6px); z-index: 30;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-pop);
  padding: 6px; display: flex; flex-direction: column; gap: 1px; max-height: 60vh; overflow: auto;
  transform-origin: bottom left; animation: menuin 140ms var(--ease-out);
}
@keyframes menuin { from { opacity: 0; transform: scale(.96) translateY(4px); } to { opacity: 1; transform: none; } }
.menu .sb-h { padding: 6px 8px 4px; }
.menu-item {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 32px; padding: 6px 8px; border: none;
  background: none; border-radius: 8px; font-size: 13px; text-align: left; cursor: pointer; color: var(--ink);
}
.menu-item:hover { background: var(--hover); }
.menu-item .mi-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-item .mi-check { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.menu-sep { height: 1px; background: var(--line); margin: 5px 2px; }

.main { flex: 1; min-width: 0; display: flex; justify-content: center; padding: 36px 40px 96px; }
.page { width: 100%; max-width: 1120px; display: flex; flex-direction: column; gap: 30px; min-width: 0; }
.page.is-entering { animation: rise 180ms var(--ease-out); }
.page-head { display: flex; flex-direction: column; gap: 6px; }
.h1 { margin: 0; font-size: 32px; font-weight: 600; letter-spacing: -0.028em; line-height: 1.12; }
.lead { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.5; max-width: 62ch; text-wrap: pretty; }
.report-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.report-meta .pulse-dot { width: 6px; height: 6px; }
.h2 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }

/* empty / loading blocks */
.empty {
  border: 1px dashed var(--line-strong); border-radius: 16px; background: transparent;
  padding: 44px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
}
.empty-title { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.empty-text { margin: 0; font-size: 14px; color: var(--muted); max-width: 440px; line-height: 1.55; text-wrap: pretty; }
.empty .btn { margin-top: 6px; }
.empty .note { text-align: left; max-width: 440px; }
.empty-run { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--text-2); }
.loading-block { display: flex; flex-direction: column; gap: 12px; }
.skel-card { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); padding: 18px; display: flex; flex-direction: column; gap: 10px; }

/* ------------------------------------------------------------------ overview */

.ov-head { display: flex; flex-direction: column; gap: 8px; }
.ov-pulse { font-size: 15px; color: var(--muted); line-height: 1.5; max-width: 70ch; text-wrap: pretty; }
.ov-pulse b { font-weight: 600; color: var(--ink); }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat {
  text-align: left; display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 14px;
  border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); cursor: pointer; color: var(--ink);
  box-shadow: var(--shadow-card); min-width: 0;
  transition: border-color 140ms ease, transform 160ms var(--ease-out);
}
.stat:hover { border-color: var(--line-strong); }
.stat:active { transform: scale(.985); }
.stat-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.stat-n { font-size: 34px; font-weight: 600; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-n.is-hot { color: var(--red); }
.stat-label { font-size: 13.5px; font-weight: 500; color: var(--ink); }
.stat-sub { font-size: 12.5px; color: var(--faint); line-height: 1.4; }
.spark { width: 72px; height: 28px; flex-shrink: 0; overflow: visible; }
.spark rect { fill: var(--line-strong); }
.spark rect.is-today { fill: var(--ink); }
.spark rect.is-hot { fill: var(--red); }

/* 7-day upload strip: the memorable element — one column per day, real thumbnails */
.week { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-card); overflow: hidden; }
.week-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 18px 10px; }
.week-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--line-2); border-top: 1px solid var(--line-2); }
.day { background: var(--surface); padding: 10px 10px 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; min-height: 132px; }
.day.is-today { background: var(--surface-2); }
.day-h { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.day-name { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.day.is-today .day-name { color: var(--ink); font-weight: 500; }
.day-n { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.day-vids { display: flex; flex-direction: column; gap: 5px; }
.day-v { display: block; position: relative; border-radius: 5px; overflow: hidden; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #e9e7e1, #f3f2ee); border: none; padding: 0; cursor: pointer; width: 100%; text-align: left; }
.day-v img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 200ms var(--ease-out); }
.day-v:hover img { transform: scale(1.04); }
.day-v .av { position: absolute; left: 4px; top: 4px; border: 1.5px solid #fff; }
.day-v .xb { position: absolute; right: 4px; bottom: 4px; padding: 2px 4px; font-size: 9.5px; }
.day-v.is-hot::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 2px var(--red); border-radius: inherit; pointer-events: none; }
.day-more { font-family: var(--mono); font-size: 10.5px; color: var(--faint); text-align: center; padding: 2px 0; }
.day-empty { flex: 1; border-radius: 5px; background: repeating-linear-gradient(135deg, transparent 0 6px, var(--line-2) 6px 7px); opacity: .6; }

.two-col { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.section { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }

.att-list { display: flex; flex-direction: column; gap: 8px; }
.att {
  display: flex; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 12px;
  cursor: pointer; background: var(--surface); width: 100%; text-align: left; color: var(--ink); box-shadow: var(--shadow-card);
  transition: border-color 140ms ease, transform 160ms var(--ease-out);
}
.att:hover { border-color: var(--line-strong); }
.att:active { transform: scale(.99); }
.att-vis { flex-shrink: 0; width: 96px; display: flex; align-items: flex-start; }
.att-vis .thumb { width: 96px; border-radius: 6px; }
.att-vis .thumb .dur { display: none; }
.att-vis .thumb .xb { left: 5px; bottom: 5px; padding: 3px 5px; font-size: 10px; }
.att-vis .av-56 { width: 48px; height: 48px; font-size: 16px; }
.att-vis .stack { padding-top: 2px; flex-wrap: wrap; gap: 4px 0; }
.att-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.att-kind { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; color: var(--faint); }
.att-kind::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.att-kind.is-hot { color: var(--red); }
.att-kind.is-hot::before { background: var(--red); }
.att-text { font-size: 14px; line-height: 1.45; text-wrap: pretty; overflow-wrap: anywhere; color: var(--ink); }
.att-meta { font-size: 12px; color: var(--faint); }
.att-empty { padding: 18px 16px; font-size: 13.5px; color: var(--muted); line-height: 1.5; border: 1px dashed var(--line-strong); border-radius: 12px; }

.rec-list { display: flex; flex-direction: column; gap: 2px; }
.rec { display: flex; gap: 12px; padding: 8px; border: none; background: none; width: 100%; text-align: left; font: inherit; border-radius: 10px; cursor: pointer; color: var(--ink); text-decoration: none; transition: background 120ms ease; }
.rec:hover { background: var(--hover); color: var(--ink); }
.rec .thumb-132 { width: 124px; }
.rec-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; justify-content: center; }
.rec-title { font-size: 13.5px; font-weight: 500; line-height: 1.35; text-wrap: pretty; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rec-meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--faint); min-width: 0; flex-wrap: wrap; }
.rec-empty { font-size: 13.5px; color: var(--muted); padding: 8px; }
.more-link { border: none; background: none; font-size: 13px; color: var(--muted); cursor: pointer; padding: 0; white-space: nowrap; }
.more-link:hover { color: var(--ink); }

/* ------------------------------------------------------------------ ideas */

.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip {
  height: 32px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--text-2); font-size: 13px; font-weight: 500; cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease, transform 140ms var(--ease-out);
}
.fchip:hover { background: var(--hover); }
.fchip:active { transform: scale(.97); }
.fchip.is-on, .fchip.is-on:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.fchip .n { font-family: var(--mono); font-size: 11px; opacity: .6; margin-left: 5px; }

.ideas { display: flex; flex-direction: column; gap: 16px; }
.idea {
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 22px 24px 18px;
  display: flex; flex-direction: column; gap: 18px; min-width: 0; scroll-margin-top: 24px; box-shadow: var(--shadow-card);
}
.idea.is-focus { border-color: var(--ink); }
.idea-top { display: flex; justify-content: space-between; gap: 12px 20px; align-items: flex-start; }
.idea-rank { font-family: var(--mono); font-size: 12px; color: var(--faint); padding-top: 7px; width: 22px; flex-shrink: 0; }
.idea-title-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.idea-title { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.022em; line-height: 1.22; max-width: 640px; text-wrap: pretty; }
.idea-tagline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--faint); }
.conf { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.conf-bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 11px; }
.conf-bars i { display: block; width: 3px; background: var(--dot-off); border-radius: 1px; }
.conf-bars i:nth-child(1) { height: 5px; } .conf-bars i:nth-child(2) { height: 8px; } .conf-bars i:nth-child(3) { height: 11px; }
.conf.is-high i { background: var(--ink); }
.conf.is-medium i:nth-child(-n+2) { background: var(--ink); }
.conf.is-low i:nth-child(1) { background: var(--ink); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }

.idea-mid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; }
.why { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.why p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--text); text-wrap: pretty; overflow-wrap: anywhere; }
.signals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; align-self: start; }
.sig { display: flex; flex-direction: column; gap: 1px; min-width: 0; padding: 8px 0 8px 12px; border-left: 2px solid var(--line); }
.sig.is-hot { border-left-color: var(--red); }
.sig-v { font-size: 17px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.sig.is-hot .sig-v { color: var(--red); }
.sig-k { font-size: 12px; color: var(--faint); line-height: 1.3; }

/* evidence filmstrip: always visible */
.strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.strip-item { display: flex; flex-direction: column; gap: 7px; min-width: 0; color: inherit; text-decoration: none; }
.strip-item .thumb { width: 100%; }
.strip-t { font-size: 12.5px; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.strip-m { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--faint); min-width: 0; }
.strip-m span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.strip-m .is-mine { color: var(--ink); font-weight: 500; }

/* quotes revealed under the strip */
.quotes { display: flex; flex-direction: column; gap: 8px; animation: rise 200ms var(--ease-out); }
.q {
  display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 10px 12px 10px 10px;
  background: var(--surface-2); border-radius: 10px; border: 1px solid var(--line-2);
}
.q-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.q-meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--faint); flex-wrap: wrap; min-width: 0; }
.q-ch { color: var(--ink); font-weight: 500; }
.q-text { font-size: 13.5px; line-height: 1.55; color: var(--text); overflow-wrap: anywhere; text-wrap: pretty; }
.q-text.is-note { color: var(--muted); }
.q-text .ts { margin-left: 6px; vertical-align: 1px; }

.idea-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 2px; }
.idea-chans { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.chan-line { font-size: 12.5px; color: var(--faint); margin-left: 8px; white-space: nowrap; }
.dot-sep { color: var(--faint); font-size: 12.5px; }
.idea-chans .link-btn { font-size: 12.5px; color: var(--text-2); font-weight: 500; white-space: nowrap; }
.idea-chans .link-btn:hover { color: var(--ink); }
.btns { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-empty { font-size: 14px; color: var(--muted); padding: 8px 2px; }

/* ------------------------------------------------------------------ gaps */

.gaps-wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); gap: 20px; align-items: start; }
.gtable { min-width: 0; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); overflow: auto; box-shadow: var(--shadow-card); }
.grow { display: grid; grid-template-columns: minmax(150px, 1.4fr) minmax(130px, 1fr) 118px 96px; gap: 12px; min-width: 520px; }
.ghead { padding: 10px 16px; font-size: 12px; font-weight: 500; color: var(--faint); border-bottom: 1px solid var(--line-2); }
.gitem {
  align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line-2); cursor: pointer; background: var(--surface);
  transition: background 120ms ease;
}
.gitem:last-child { border-bottom: none; }
.gitem:hover { background: var(--row-hover); }
.gitem.is-sel { background: var(--row-sel); box-shadow: inset 2px 0 0 var(--ink); }
.gitem:focus-visible { outline-offset: -2px; }
.g-topic { font-size: 14px; font-weight: 500; overflow-wrap: anywhere; line-height: 1.3; }
.g-comp { display: flex; align-items: center; gap: 8px; min-width: 0; }
.g-avs { display: flex; gap: 3px; flex-wrap: wrap; max-width: 120px; }
.g-avs .av { opacity: .18; filter: grayscale(1); transition: opacity 120ms ease; }
.g-avs .av.is-on { opacity: 1; filter: none; }
.g-count { font-family: var(--mono); font-size: 11.5px; color: var(--faint); white-space: nowrap; }
.g-cov { font-size: 12.5px; color: var(--text-2); }
.g-cov.is-none { color: var(--red-ink); font-weight: 500; }
.opp { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; white-space: nowrap; color: var(--text-2); }
.opp-meter { display: inline-flex; gap: 2px; }
.opp-meter i { width: 10px; height: 6px; border-radius: 2px; background: var(--dot-off); display: block; }
.opp-high .opp-meter i { background: var(--red); }
.opp-medium .opp-meter i:nth-child(-n+2) { background: var(--amber); }
.opp-low .opp-meter i:nth-child(1) { background: var(--faint); }
.opp-high { color: var(--red-ink); }
.opp-medium { color: var(--amber); }

.gpanel {
  min-width: 0; border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--surface); padding: 22px; display: flex; flex-direction: column; gap: 20px;
  position: sticky; top: 24px; scroll-margin-top: 120px; box-shadow: var(--shadow-card);
  animation: fadein 160ms ease-out;
}
.gp-head { display: flex; flex-direction: column; gap: 6px; }
.gp-kicker { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; color: var(--faint); }
.gp-title { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.022em; line-height: 1.2; }
.gp-sec { display: flex; flex-direction: column; gap: 8px; }
.gp-sec.is-videos { gap: 12px; }
.bullet { display: flex; gap: 10px; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; color: var(--text); }
.bullet::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--ink); margin-top: 9px; flex-shrink: 0; }
.sv { display: flex; flex-direction: column; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.sv:last-child { border-bottom: none; padding-bottom: 0; }
.sv-top { display: flex; gap: 10px; }
.sv-text { min-width: 0; display: flex; flex-direction: column; gap: 3px; justify-content: center; }
.sv-title { font-size: 13px; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sv-meta { font-size: 12px; color: var(--faint); }
.pq { font-size: 13.5px; line-height: 1.55; color: var(--text); padding: 2px 0 2px 12px; border-left: 2px solid var(--line-strong); overflow-wrap: anywhere; text-wrap: pretty; }
.pq.is-note { color: var(--muted); }
.pq .ts { margin-left: 6px; vertical-align: 1px; }
.gp-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; padding-top: 4px; border-top: 1px solid var(--line-2); padding-top: 16px; }
.gp-quiet { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; min-width: 0; }
.gp-quiet .save-btn { margin-left: -10px; }

/* ------------------------------------------------------------------ feed */

.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  border: none; background: none; padding: 0 0 10px; font-size: 14px; font-weight: 500; color: var(--faint);
  cursor: pointer; white-space: nowrap; flex-shrink: 0; position: relative; transition: color 120ms ease;
}
.tab:hover { color: var(--ink); }
.tab.is-on { color: var(--ink); }
.tab.is-on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); border-radius: 2px 2px 0 0; }
.tab .n { font-family: var(--mono); font-size: 11px; color: var(--faint); margin-left: 5px; font-weight: 400; }
.feed-filter { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); flex-wrap: wrap; margin-top: -12px; }
.feed-filter .chip { padding-right: 4px; animation: none; }

.feed { display: flex; flex-direction: column; gap: 26px; max-width: 860px; }
.fday { display: flex; flex-direction: column; gap: 10px; }
.fday-h { display: flex; align-items: baseline; gap: 10px; font-size: 13px; font-weight: 600; color: var(--ink); }
.fday-h .n { font-family: var(--mono); font-size: 11px; color: var(--faint); font-weight: 400; }
.fday-list { display: flex; flex-direction: column; gap: 10px; }
.fcard {
  position: relative; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 14px;
  display: flex; gap: 16px; min-width: 0; box-shadow: var(--shadow-card);
  transition: border-color 140ms ease;
}
.fcard:hover { border-color: var(--line-strong); }
.fcard.is-important { border-left: 3px solid var(--red); padding-left: 12px; }
.fcard .thumb-240 { flex-basis: 220px; }
.fbody { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.fhead { display: flex; flex-direction: column; gap: 4px; }
.fmeta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--faint); flex-wrap: wrap; }
.fch { color: var(--ink); font-weight: 500; }
.imp { font-family: var(--mono); font-size: 10.5px; color: var(--red); }
.ftitle { margin: 0; font-size: 16.5px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; text-wrap: pretty; }
.fwhy { font-size: 14px; line-height: 1.55; color: var(--text); overflow-wrap: anywhere; text-wrap: pretty; }
.fwhy b { font-weight: 600; color: var(--ink); }
.ftopics { font-size: 12.5px; color: var(--faint); line-height: 1.5; overflow-wrap: anywhere; }
.ftopics b { color: var(--text-2); font-weight: 500; }
.fnone { font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
.factions { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin-top: 2px; }
.factions-quiet { display: flex; align-items: center; gap: 6px 16px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ ask */

.ask-empty {
  display: flex; flex-direction: column; align-items: center; gap: 26px; padding-top: 10vh;
  max-width: 720px; width: 100%; align-self: center;
}
.ask-h1 { margin: 0; font-size: 34px; font-weight: 600; letter-spacing: -0.028em; text-align: center; line-height: 1.12; }
.ask-sub { margin: -14px 0 0; font-size: 14.5px; color: var(--muted); text-align: center; max-width: 52ch; text-wrap: pretty; }
.ask-box {
  width: 100%; display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 18px;
  border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface);
  box-shadow: 0 1px 2px rgba(23, 23, 22, .04), 0 8px 24px rgba(23, 23, 22, .04);
  transition: border-color 120ms ease, box-shadow 160ms ease;
}
.ask-box:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23, 23, 22, .06), 0 8px 24px rgba(23, 23, 22, .05); }
.ask-input { flex: 1; min-width: 0; height: 44px; border: none; font-size: 16px; font-family: inherit; background: transparent; color: var(--ink); }
.ask-btn {
  height: 40px; padding: 0 16px; border-radius: 10px; border: none; background: var(--ink); color: #fff;
  font-size: 14px; font-weight: 500; cursor: pointer; flex-shrink: 0; transition: transform 140ms var(--ease-out), background 120ms ease;
}
.ask-btn:hover:not(:disabled) { background: var(--ink-hover); }
.ask-groups { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 640px; }
.ask-group { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.ask-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ask-chip {
  min-height: 34px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-size: 13px; color: var(--text-2); cursor: pointer; line-height: 1.35; text-align: center; max-width: 100%;
  transition: border-color 120ms ease, color 120ms ease, transform 140ms var(--ease-out);
}
.ask-chip:hover { border-color: var(--line-strong); color: var(--ink); }
.ask-chip:active { transform: scale(.97); }
.ask-note { font-family: var(--mono); font-size: 11.5px; color: var(--faint); text-align: center; }

.ans-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: start; }
.ans-main { min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.ans-q { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -0.024em; line-height: 1.2; text-wrap: pretty; }
.ans-paras { display: flex; flex-direction: column; gap: 16px; max-width: 66ch; }
.ans-p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--text); text-wrap: pretty; overflow-wrap: anywhere; animation: rise 320ms var(--ease-out) both; }
.ans-p:nth-child(2) { animation-delay: 60ms; } .ans-p:nth-child(3) { animation-delay: 120ms; } .ans-p:nth-child(4) { animation-delay: 180ms; } .ans-p:nth-child(n+5) { animation-delay: 240ms; }
.cites { white-space: nowrap; }
.cite {
  position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 4px;
  margin-left: 3px; border-radius: 5px; background: var(--hover); font-family: var(--mono); font-size: 10.5px;
  color: var(--text-2); vertical-align: 2px; text-decoration: none; line-height: 1; transition: background 120ms ease, color 120ms ease;
}
a.cite:hover, a.cite:focus-visible { background: var(--ink); color: #fff; }
.cite-pop {
  position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%) scale(.97); transform-origin: bottom center;
  width: 300px; max-width: 80vw; padding: 10px 12px; background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: var(--shadow-pop); font-family: var(--font); font-size: 12.5px; line-height: 1.5;
  text-align: left; white-space: normal; display: flex; gap: 10px; opacity: 0; pointer-events: none; z-index: 20;
  transition: opacity 140ms var(--ease-out), transform 140ms var(--ease-out);
}
.cite:hover .cite-pop, .cite:focus-visible .cite-pop { opacity: 1; transform: translateX(-50%) scale(1); }
.cite-pop .thumb { width: 72px; border-radius: 5px; }
.cite-pop .thumb .dur, .cite-pop .thumb .xb { display: none; }
.cite-pop-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cite-pop-t { font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cite-pop-q { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cite-pop-m { font-family: var(--mono); font-size: 11px; color: var(--red); }

.ans-loading { display: flex; flex-direction: column; gap: 18px; }
.ans-stages { display: flex; flex-direction: column; gap: 8px; }
.ans-stage { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; color: var(--faint); transition: color 200ms ease; }
.ans-stage .an-dot { width: 7px; height: 7px; }
.ans-stage.is-active { color: var(--ink); }
.ans-stage.is-active .an-dot { background: var(--red); animation: nwpulse 1s infinite; }
.ans-stage.is-done { color: var(--muted); }
.ans-stage.is-done .an-dot { background: var(--ink); }
.ans-stage .elapsed { margin-left: auto; color: var(--faint); }
.followups { display: flex; flex-direction: column; gap: 8px; }
.fu-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fu {
  min-height: 32px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-size: 13px; color: var(--text-2); cursor: pointer; text-align: left; line-height: 1.35; max-width: 100%;
  transition: border-color 120ms ease, transform 140ms var(--ease-out);
}
.fu:hover { border-color: var(--line-strong); }
.fu:active { transform: scale(.97); }
.ask-again { display: flex; gap: 8px; }

.sources { min-width: 0; display: flex; flex-direction: column; gap: 10px; position: sticky; top: 24px; }
.src-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 0 2px 2px; }
.src-title-h { font-size: 14px; font-weight: 600; }
.src-stats { font-family: var(--mono); font-size: 11.5px; color: var(--faint); white-space: nowrap; }
.src {
  display: flex; gap: 10px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  color: var(--ink); text-decoration: none; scroll-margin-top: 24px; box-shadow: var(--shadow-card);
  transition: border-color 140ms ease;
}
a.src:hover { border-color: var(--line-strong); color: var(--ink); }
.src.is-flash { border-color: var(--ink); }
.src .thumb-72 { width: 76px; }
.src-n { position: absolute; }
.src-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; justify-content: center; flex: 1; }
.src-t { font-size: 12.5px; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.src-t .n { font-family: var(--mono); font-size: 10.5px; color: var(--faint); margin-right: 5px; }
.src-meta { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--faint); flex-wrap: wrap; }
.src-none { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ------------------------------------------------------------------ drawers */

.scrim { position: fixed; inset: 0; background: rgba(23, 23, 22, .32); z-index: 40; animation: fadein 200ms ease-out; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(600px, 100%); background: var(--surface);
  border-left: 1px solid var(--line); z-index: 41; display: flex; flex-direction: column;
  box-shadow: var(--shadow-drawer); animation: slidein 320ms var(--ease-drawer);
}
.drawer.no-anim { animation: none; }
.drawer:focus { outline: none; }
.dr-head { display: flex; align-items: flex-start; gap: 12px; padding: 20px 24px 18px; border-bottom: 1px solid var(--line-2); }
.dr-head-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.dr-kicker { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.dr-title { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; text-wrap: pretty; }
.dr-close {
  width: 32px; height: 32px; border-radius: 8px; border: none; background: transparent; color: var(--muted);
  font-size: 20px; line-height: 1; cursor: pointer; flex-shrink: 0; margin: -4px -8px 0 0; transition: background 120ms ease;
}
.dr-close:hover { background: var(--hover); color: var(--ink); }
.dr-body { flex: 1; overflow: auto; padding: 22px 24px 28px; display: flex; flex-direction: column; gap: 24px; overscroll-behavior: contain; }
.dr-foot { padding: 14px 24px; border-top: 1px solid var(--line-2); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.dr-sec { display: flex; flex-direction: column; gap: 8px; }
.dr-p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text); overflow-wrap: anywhere; text-wrap: pretty; }
.dr-hook { font-size: 17px; line-height: 1.5; font-weight: 500; color: var(--ink); padding-left: 14px; border-left: 3px solid var(--red); }
.dr-loading { display: flex; flex-direction: column; gap: 22px; }
.dr-status { display: flex; flex-direction: column; gap: 6px; }
.dr-status-line { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; }
.dr-status-sub { font-size: 13px; color: var(--muted); line-height: 1.5; padding-left: 18px; }

.outline { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; counter-reset: ol; }
.outline > li { display: flex; gap: 12px; counter-increment: ol; }
.outline > li::before {
  content: counter(ol); font-family: var(--mono); font-size: 11px; color: var(--faint); width: 16px;
  flex-shrink: 0; padding-top: 3px;
}
.ol-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ol-h { font-size: 14.5px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.ol-points { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.ol-points li { display: flex; gap: 8px; font-size: 14px; line-height: 1.5; color: var(--text-2); overflow-wrap: anywhere; }
.ol-points li::before { content: '–'; color: var(--faint); flex-shrink: 0; }
.titles { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.titles li { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1.45; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; overflow-wrap: anywhere; }
.titles .copy-mini { margin-left: auto; }
.copy-mini { border: none; background: none; color: var(--faint); font-family: var(--mono); font-size: 11px; cursor: pointer; padding: 2px 6px; border-radius: 5px; flex-shrink: 0; }
.copy-mini:hover { background: var(--hover); color: var(--ink); }
.thumb-texts { display: flex; flex-wrap: wrap; gap: 6px; }
.thumb-text { font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 6px; background: var(--ink); color: #fff; letter-spacing: .02em; text-transform: uppercase; }

.tr-list { display: flex; flex-direction: column; gap: 14px; }
.tr-p { display: flex; gap: 14px; }
.tr-p .ts { font-size: 11.5px; flex-shrink: 0; align-self: flex-start; margin-top: 2px; min-width: 58px; justify-content: center; }
.tr-text { font-size: 14.5px; line-height: 1.6; color: var(--text); margin: 0; overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ account + plan */

.plan-line { font-size: 11.5px; color: var(--faint); line-height: 1.4; }
.plan-line .link-btn { font-size: 11.5px; color: var(--ink); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--line-strong); }
.acct {
  display: flex; align-items: center; gap: 9px; width: calc(100% + 12px); margin: 0 -6px; padding: 6px;
  border: none; background: none; border-radius: 9px; cursor: pointer; text-align: left; color: var(--ink);
  transition: background 120ms ease;
}
.acct:hover, .acct[aria-expanded="true"] { background: var(--nav-hover); }
.acct-email { flex: 1; min-width: 0; font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan-badge {
  font-size: 11px; font-weight: 500; line-height: 1.5; padding: 1px 7px; border-radius: 6px; white-space: nowrap; flex-shrink: 0;
  background: var(--surface); border: 1px solid var(--line); color: var(--text-2);
}
.plan-badge.is-paid { background: var(--ink); border-color: var(--ink); color: #fff; }
.plan-badge.is-due { background: var(--red-bg); border-color: transparent; color: var(--red-ink); }
.acct-head { display: flex; flex-direction: column; gap: 2px; padding: 8px 8px 6px; min-width: 0; }
.acct-name { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-mail { font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-plan { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0 2px; }
.acct-note { font-size: 11.5px; color: var(--faint); }
.ob-cap { margin: 0; font-size: 13px; color: var(--muted); }
.ob-cap .link-btn { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--line-strong); }

/* paywall: a modal, above drawers */
body.has-modal { overflow: hidden; }
.pw-layer { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 24px; }
.pw-scrim { position: absolute; inset: 0; background: rgba(23, 23, 22, .36); animation: fadein 200ms ease-out; }
.pw {
  position: relative; width: min(780px, 100%); max-height: calc(100vh - 48px); overflow: auto; overscroll-behavior: contain;
  background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-pop); padding: 28px;
  display: flex; flex-direction: column; gap: 20px; animation: pwin 260ms var(--ease-out);
}
.pw.no-anim { animation: none; }
.pw:focus { outline: none; }
@keyframes pwin { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.pw-close { position: absolute; top: 16px; right: 16px; margin: 0; }
.pw-head { display: flex; flex-direction: column; gap: 8px; padding-right: 36px; }
.pw-title { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; text-wrap: pretty; }
.pw-sub { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.5; max-width: 58ch; text-wrap: pretty; }
.seg { display: inline-flex; align-self: flex-start; padding: 3px; gap: 2px; border-radius: 11px; background: var(--nav-active); }
.seg-btn {
  height: 32px; padding: 0 13px; border: none; border-radius: 8px; background: transparent; color: var(--text-2);
  font-size: 13px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 140ms ease, color 140ms ease, box-shadow 140ms ease;
}
.seg-btn:hover { color: var(--ink); }
.seg-btn[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(23, 23, 22, .1); }
.seg-save { font-size: 11px; color: var(--green); background: var(--green-bg); padding: 1px 6px; border-radius: 5px; }
.pw-plans { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; }
.pw-plan {
  display: flex; flex-direction: column; gap: 10px; padding: 16px; text-align: left; min-width: 0;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms var(--ease-out);
}
.pw-plan:hover { border-color: var(--line-strong); }
.pw-plan:active { transform: scale(.99); }
.pw-plan.is-on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.pw-plan-top { display: flex; align-items: center; gap: 8px; }
.pw-radio { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-strong); flex-shrink: 0; transition: border 140ms ease; }
.pw-plan.is-on .pw-radio { border: 5px solid var(--ink); }
.pw-name { font-size: 15px; font-weight: 600; }
.pw-pop { margin-left: auto; font-size: 11px; font-weight: 500; color: #fff; background: var(--ink); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.pw-price b { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pw-price span { font-size: 13px; color: var(--faint); }
.pw-lines { display: flex; flex-direction: column; gap: 5px; padding-top: 10px; border-top: 1px solid var(--line-2); }
.pw-line { font-size: 13px; line-height: 1.35; color: var(--text-2); }
.pw-foot { display: flex; flex-direction: column; gap: 10px; }
.pw-fine { font-size: 12px; color: var(--faint); text-align: center; }

/* ------------------------------------------------------------------ v4: explained numbers */

.info {
  position: relative; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 15px; height: 15px; padding: 0; margin-left: 5px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--faint);
  font-family: var(--mono); font-size: 9.5px; font-weight: 500; line-height: 1; cursor: help; vertical-align: 1px;
  transition: color 120ms ease, border-color 120ms ease;
}
.info::before { content: ''; position: absolute; inset: -9px; } /* a 33px tap target around a 15px mark */
.info:hover, .info[aria-describedby] { color: var(--ink); border-color: var(--ink); }
.refresh-meta .info, .report-meta .info { margin-left: 0; }
.tip {
  position: fixed; z-index: 95; max-width: min(280px, calc(100vw - 16px)); padding: 8px 11px;
  background: var(--ink); color: #fff; font-family: var(--font); font-size: 12.5px; line-height: 1.45; font-weight: 400;
  border-radius: 8px; box-shadow: var(--shadow-pop); pointer-events: none; text-wrap: pretty;
  opacity: 0; transform: scale(.97); transition: opacity 125ms var(--ease-out), transform 125ms var(--ease-out);
}
.tip.is-on { opacity: 1; transform: none; }
.tip.is-instant { transition: none; }
[data-tip]:not(.info) { cursor: help; }
a [data-tip], button [data-tip] { cursor: inherit; }

.stat-wrap { position: relative; display: flex; min-width: 0; }
.stat-wrap .stat { flex: 1; }
.stat-wrap > .info { position: absolute; top: 14px; right: 14px; margin: 0; }

.ov-new { margin-top: -2px; }
.inline-link {
  display: inline-flex; align-items: center; gap: 7px; border: none; background: none; padding: 0; cursor: pointer;
  font: inherit; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px;
}
.inline-link:hover { text-decoration-color: currentColor; }
.inline-link b { font-weight: 600; }
.new-dot.is-inline { display: inline-block; margin-right: 8px; vertical-align: 2px; }
.rec-title .new-dot.is-inline { vertical-align: 1px; margin-right: 6px; }
.ov-hint {
  display: flex; align-items: center; gap: 10px; align-self: flex-start; max-width: 100%;
  padding: 7px 6px 7px 12px; margin-top: 4px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-2);
  font-size: 13px; line-height: 1.45; color: var(--text-2);
}

.x-btn {
  width: 30px; height: 30px; flex-shrink: 0; padding: 0; border: none; border-radius: 8px; background: none;
  color: var(--faint); font-size: 18px; line-height: 1; cursor: pointer;
  transition: background 120ms ease, color 120ms ease, transform 140ms var(--ease-out);
}
.x-btn:hover { background: var(--hover); color: var(--ink); }
.x-btn:active { transform: scale(.94); }

/* ------------------------------------------------------------------ v4: saved / dismissed */

.idea-acts { display: flex; align-items: center; gap: 2px; flex-shrink: 0; margin: -4px -10px 0 0; }
.save-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; flex-shrink: 0;
  border: none; border-radius: 8px; background: none; color: var(--muted); font-size: 12.5px; font-weight: 500; cursor: pointer;
  transition: background 120ms ease, color 120ms ease, transform 140ms var(--ease-out);
}
.save-btn svg { width: 15px; height: 15px; }
.save-btn:hover { background: var(--hover); color: var(--ink); }
.save-btn:active { transform: scale(.96); }
.save-btn.is-saved { color: var(--ink); }
.save-btn.is-saved svg path, .g-saved svg path, .nav-saved svg path { fill: currentColor; }
.states { display: inline-flex; align-self: flex-start; gap: 2px; padding: 2px; border-radius: 9px; background: var(--nav-active); max-width: 100%; }
.st-btn {
  height: 26px; padding: 0 10px; border: none; border-radius: 7px; background: transparent; white-space: nowrap;
  font-size: 12px; font-weight: 500; color: var(--text-2); cursor: pointer; transition: background 120ms ease, color 120ms ease;
}
.st-btn:hover { color: var(--ink); }
.st-btn[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(23, 23, 22, .1); }
.gone {
  display: flex; align-items: center; gap: 8px; min-width: 0; padding: 12px 16px;
  border: 1px dashed var(--line-strong); border-radius: 12px; font-size: 13px; color: var(--muted);
}
.gone-label { color: var(--muted); font-size: 13px; }
.gone .gone-undo { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.gone-t { color: var(--faint); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gpanel .gone { padding: 10px 12px; }
.earlier { font-family: var(--mono); font-size: 11px; color: var(--faint); background: var(--hover); padding: 2px 7px; border-radius: 6px; }
.idea.is-earlier .idea-rank { color: var(--line-strong); }
.idea.is-dismissed { background: var(--surface-2); box-shadow: none; }
.idea.is-dismissed .idea-title { color: var(--text-2); }
.ftoggle {
  height: 32px; padding: 0 6px; margin-left: auto; border: none; background: none; cursor: pointer;
  font-size: 13px; color: var(--faint); transition: color 120ms ease;
}
.ftoggle:hover, .ftoggle[aria-pressed="true"] { color: var(--ink); }
.nav-saved { display: inline-flex; align-items: center; gap: 2px; margin-left: 4px; }
.nav-saved svg { width: 10px; height: 10px; margin-left: 3px; }
.nav-btn .new-dot { margin-right: -2px; }

.gcol { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.gcol .ftoggle { align-self: flex-start; margin-left: 0; padding: 0 2px; height: 28px; }
.gtable-empty { padding: 18px 16px; font-size: 13.5px; color: var(--muted); }
.g-topic { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; }
.g-saved { display: inline-flex; color: var(--ink); }
.g-saved svg { width: 13px; height: 13px; }
.gitem.is-dismissed { opacity: .5; }
.gp-head .states { margin-top: 6px; }

.oyl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.oyl-item {
  display: flex; align-items: center; gap: 14px; min-width: 0; padding: 8px; text-align: left; cursor: pointer; font: inherit;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-card);
  transition: border-color 140ms ease, transform 160ms var(--ease-out);
}
.oyl-item:hover { border-color: var(--line-strong); }
.oyl-item:active { transform: scale(.985); }
.oyl-item .thumb { width: 128px; flex-shrink: 0; border-radius: 7px; }
.oyl-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 0 2px; }
.oyl-t { font-size: 13.5px; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.oyl-m { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--faint); flex-wrap: wrap; }
.oyl-empty { font-size: 13.5px; color: var(--muted); padding: 2px 0; }
.state-pill {
  font-family: var(--mono); font-size: 10.5px; line-height: 1.5; padding: 1px 6px; border-radius: 5px; white-space: nowrap;
  background: var(--nav-active); color: var(--text-2);
}
.state-pill.is-making { background: var(--ink); color: #fff; }
.state-pill.is-done { background: var(--green-bg); color: var(--green); }

/* ------------------------------------------------------------------ v4: feed card */

.ftitle-link { cursor: pointer; }
.tab .new-dot { display: inline-block; margin-right: 6px; vertical-align: 2px; }
.watch {
  display: inline-flex; align-items: center; gap: 5px; margin-left: 10px; vertical-align: 2px;
  font-family: var(--font); font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--muted); text-decoration: none; white-space: nowrap;
}
.watch::before { content: ''; width: 0; height: 0; border-left: 6px solid currentColor; border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.watch:hover { color: var(--red); }

/* ------------------------------------------------------------------ v4: ask threads */

.ask-layout { display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 36px; align-items: start; }
.ask-col { min-width: 0; display: flex; flex-direction: column; }
.ask-col .ask-empty { padding-top: 6vh; }
.ask-rail {
  position: sticky; top: 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0;
  max-height: calc(100vh - 48px); overflow: auto; overscroll-behavior: contain;
}
.rail-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-left: 10px; }
.rail-h { font-size: 12px; font-weight: 500; color: var(--faint); }
.rail-list { display: flex; flex-direction: column; gap: 1px; }
.rail-item { display: flex; align-items: flex-start; border-radius: 9px; transition: background 120ms ease; }
.rail-item:hover { background: var(--hover); }
.rail-item.is-on { background: var(--nav-active); }
.rail-open {
  flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 8px 4px 8px 10px;
  border: none; background: none; text-align: left; cursor: pointer; color: var(--ink); border-radius: 9px;
}
.rail-t { font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rail-item.is-on .rail-t { font-weight: 500; }
.rail-m { font-family: var(--mono); font-size: 10.5px; color: var(--faint); }
.rail-del {
  flex-shrink: 0; width: 26px; height: 26px; margin: 6px 5px 0 0; padding: 0; border: none; border-radius: 7px;
  background: none; color: var(--faint); font-size: 16px; line-height: 1; cursor: pointer; opacity: 0;
  transition: opacity 120ms ease, background 120ms ease, color 120ms ease;
}
.rail-item:hover .rail-del, .rail-del:focus-visible { opacity: 1; }
.rail-del:hover { background: var(--nav-hover); color: var(--ink); }
.rail-del.is-confirm { opacity: 1; width: auto; padding: 0 8px; font-size: 12px; font-weight: 500; color: var(--red-ink); background: var(--red-bg); }
.rail-empty { font-size: 13px; color: var(--muted); line-height: 1.5; padding: 0 10px; }
.drawer .rail-del { opacity: 1; }
.drawer .rail-open { padding: 11px 6px 11px 10px; }

.ask-bar { display: none; }
.thread { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.q-row { display: flex; justify-content: flex-end; scroll-margin-top: 24px; }
.q-bubble {
  max-width: min(560px, 88%); padding: 10px 14px; border-radius: 16px 16px 5px 16px; background: var(--nav-active);
  font-size: 15px; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; white-space: pre-wrap;
}
.skel-bubble { border-radius: 16px 16px 5px 16px; }
.thread .ans-wrap { grid-template-columns: minmax(0, 1fr) 264px; gap: 28px; }
.thread .ans-wrap + .q-row { padding-top: 18px; border-top: 1px solid var(--line-2); }
.composer {
  position: sticky; bottom: 0; z-index: 6; margin-top: 4px; padding: 14px 0 calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--bg) 16px);
}
.composer-box {
  display: flex; align-items: flex-end; gap: 8px; padding: 6px 6px 6px 16px; max-width: 760px;
  border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface);
  box-shadow: 0 1px 2px rgba(23, 23, 22, .04), 0 8px 24px rgba(23, 23, 22, .06);
  transition: border-color 120ms ease, box-shadow 160ms ease;
}
.composer-box:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23, 23, 22, .06), 0 8px 24px rgba(23, 23, 22, .06); }
.composer-input {
  flex: 1; min-width: 0; min-height: 40px; max-height: 160px; padding: 9px 0; resize: none; overflow-y: auto;
  border: none; outline: none; background: transparent; color: var(--ink); font-family: inherit; font-size: 15px; line-height: 1.45;
}
.composer-input::placeholder { color: var(--placeholder); }
.composer .ask-btn { height: 40px; }
.composer-hint { margin-top: 6px; padding-left: 4px; font-family: var(--mono); font-size: 11px; color: var(--faint); }

/* ------------------------------------------------------------------ v4: shortcuts sheet, account, analyzing */

.keys {
  position: relative; width: min(440px, 100%); background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-pop);
  padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 14px;
}
.keys:focus { outline: none; }
.pw-scrim.no-anim { animation: none; }
.keys-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.keys-title { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.keys-head .dr-close { margin: -4px -8px 0 0; }
.keys-list { margin: 0; display: flex; flex-direction: column; }
.keys-row { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line-2); }
.keys-row dt { display: flex; align-items: center; gap: 4px; color: var(--faint); font-size: 12px; }
.keys-row dd { margin: 0; font-size: 13.5px; color: var(--text); }
.keys-row .kbd { min-width: 22px; height: 22px; font-size: 11.5px; color: var(--ink); }

.menu-item .kbd { margin-left: auto; }
.mi-toggle { align-items: center; gap: 10px; }
.mi-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.mi-name { font-size: 13px; }
.mi-sub { font-size: 11.5px; line-height: 1.35; color: var(--faint); }
.mi-state { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.switch {
  position: relative; flex-shrink: 0; width: 30px; height: 18px; border-radius: 999px; background: var(--line-strong);
  transition: background 160ms ease;
}
.switch::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(23, 23, 22, .25); transition: transform 180ms var(--ease-out);
}
.switch.is-on { background: var(--ink); }
.switch.is-on::after { transform: translateX(12px); }

.an-notify {
  display: inline; padding: 0; border: none; background: none; cursor: pointer;
  font: inherit; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--line-strong);
}
.an-notify:hover:not(:disabled) { text-decoration-color: currentColor; }
.an-hint.is-set { color: var(--text-2); }
.an-hint.is-set:focus { outline: none; }
.an-hint b { font-weight: 600; color: var(--ink); }

@media (hover: none) {
  .only-keyboard, .composer-hint { display: none; }
  .rail-del { opacity: 1; }
}

/* ------------------------------------------------------------------ responsive */

@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ask-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 28px; }
  .thread .ans-wrap { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .ans-wrap { grid-template-columns: 1fr; }
  .sources { position: static; }
  .gaps-wrap { grid-template-columns: 1fr; }
  .gpanel { position: static; }
}

@media (max-width: 859px) {
  .app { flex-direction: column; }
  .sb {
    width: auto; height: auto; position: sticky; top: 0; z-index: 20; overflow: visible;
    gap: 8px; padding: 12px 16px 0; border-right: none; border-bottom: 1px solid var(--line);
  }
  .sb-top { padding: 0; }
  .sb-chan-btn {
    display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px; border-radius: 8px;
    border: 1px solid var(--line-strong); background: var(--surface); font-size: 13px; font-weight: 500; cursor: pointer;
  }
  .sb-chan-btn:hover { background: var(--hover); }
  .sb-chan-btn svg { width: 12px; height: 12px; transition: transform 150ms; }
  .sb.is-open .sb-chan-btn svg { transform: rotate(180deg); }
  .nav { flex-direction: row; gap: 2px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 8px; }
  .nav::-webkit-scrollbar { display: none; }
  .nav-btn { flex-shrink: 0; height: 32px; }
  .nav-btn .kbd { display: none; }
  .sb-panel {
    display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 25;
    background: var(--sidebar); border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px rgba(23, 23, 22, .10);
    padding: 12px 8px 8px; gap: 14px; max-height: calc(100vh - 110px); overflow: auto;
  }
  .sb.is-open .sb-panel { display: flex; }
  .sb-foot { margin-top: 0; }
  .menu { position: static; box-shadow: none; margin-top: 4px; animation: none; }

  .main { padding: 22px 16px 64px; }
  .page { gap: 22px; }
  .week-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .day { padding: 8px 5px 10px; min-height: 96px; gap: 6px; }
  .day-name { font-size: 10px; }
  .day-n { display: none; }
  .day-v .xb, .day-v .av { display: none; }
  .idea-mid { grid-template-columns: 1fr; gap: 16px; }
  .idea-rank { display: none; }
  .drawer { width: 100%; border-left: none; box-shadow: none; animation: sheetin 260ms var(--ease-drawer); }
  .dr-head { padding: 16px 16px 14px; }
  .dr-body { padding: 18px 16px 24px; }
  .dr-foot { padding: 12px 16px; }
  .dr-foot .btn { flex: 1; }
  .cite-pop { display: none; }
  .ask-layout { grid-template-columns: 1fr; gap: 0; }
  .ask-rail { display: none; }
  .ask-bar { display: flex; justify-content: flex-end; gap: 8px; }
  .ask-empty .ask-bar { align-self: stretch; margin-bottom: -10px; }
  .composer-input { font-size: 16px; } /* 16px: iOS doesn't zoom into the field */
  .composer-hint { display: none; }
  .composer { padding-top: 10px; }
}

@media (max-width: 600px) {
  .ob-top { padding: 16px; }
  .ob-body { padding: 28px 16px 64px; }
  .ob-h1 { font-size: 28px; }
  .an { padding: 32px 16px; }
  .an-h1 { font-size: 27px; }
  .an-mosaic { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .h1 { font-size: 26px; }
  .ask-h1 { font-size: 27px; }
  .ans-q { font-size: 23px; }
  .ask-empty { padding-top: 5vh; }
  .stats { gap: 10px; }
  .stat { padding: 13px 14px 12px; gap: 8px; }
  .stat-n { font-size: 28px; }
  .spark { width: 56px; height: 24px; }
  .idea { padding: 18px 16px 16px; gap: 16px; }
  .idea-title { font-size: 19px; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .q { grid-template-columns: 56px minmax(0, 1fr); gap: 10px; }
  .q .thumb-72 { width: 56px; }
  .fcard { flex-direction: column; padding: 12px; gap: 12px; }
  .fcard.is-important { padding-left: 10px; }
  .fcard .thumb-240 { flex-basis: auto; width: 100%; }
  .gpanel { padding: 18px 16px; }
  .found-card { padding: 14px; gap: 12px; }
  .found-card .av-56 { width: 48px; height: 48px; font-size: 16px; }
  .found-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .idea-foot > .btn { flex: 1 1 100%; }
  .idea-top { gap: 10px; }
  .idea-acts .save-btn span { display: none; } /* phones: the star alone */
  .idea-acts .save-btn { width: 34px; padding: 0; justify-content: center; }
  .oyl-grid { grid-template-columns: 1fr; gap: 8px; }
  .oyl-item { gap: 12px; }
  .oyl-item .thumb { width: 104px; }
  .factions { gap: 10px; }
  .factions > .btn { flex: 1 1 100%; }
  .q-bubble { max-width: 92%; }
  .ov-hint { font-size: 12.5px; }
  .keys-row { grid-template-columns: 64px minmax(0, 1fr); }
  .att-vis { width: 72px; }
  .att-vis .thumb { width: 72px; }
  .att-vis .thumb .xb { display: none; }
  .rec .thumb-132 { width: 104px; }
  .pw-layer { align-items: flex-end; padding: 0; }
  .pw { border-radius: 18px 18px 0 0; max-height: 92vh; padding: 22px 16px 18px; gap: 16px; animation: sheetin 260ms var(--ease-drawer); }
  .pw-title { font-size: 22px; }
  .pw-sub { font-size: 14px; }
  .seg { align-self: stretch; }
  .seg-btn { flex: 1; }
  .pw-plans { grid-auto-flow: row; }
  .pw-plan { padding: 12px 14px; gap: 6px; }
  .pw-plan-top { flex-wrap: wrap; }
  .pw-price { order: 0; }
  .pw-price b { font-size: 21px; }
  .pw-lines { gap: 3px; padding-top: 8px; }
  .pw-line { font-size: 12px; }
  .pw-plan:not(.is-on) .pw-lines { display: none; }
}

@media (hover: none) {
  .nav-btn .kbd { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .pulse-dot, .an-row.is-active .an-dot, .ans-stage.is-active .an-dot { animation: none; }
}

/* marketing/login pages are pure white (founder call); the app keeps --bg */
body.lg { background: #fff; }

.mi-toggle.is-off { cursor: default; }
.mi-toggle.is-off:hover { background: none; }
.an-muted { color: var(--faint); }

/* validation pill: how many competitor channels proved the demand */
.val { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; color: var(--muted); white-space: nowrap; }
.val-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dot-off); flex-shrink: 0; }
.val.is-strong { color: var(--green); }
.val.is-strong .val-dot { background: var(--green); box-shadow: 0 0 0 3px var(--green-bg); }
.val.is-one .val-dot { background: var(--amber); }
.val.is-weak { color: var(--faint); }

/* overview: the make-next shortlist */
.mn-list { display: flex; flex-direction: column; gap: 8px; }
.mn-row {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 10px 12px 10px 10px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; color: var(--ink);
  box-shadow: var(--shadow-card); transition: border-color 140ms ease, transform 160ms var(--ease-out);
}
.mn-row:hover { border-color: var(--line-strong); }
.mn-row:active { transform: scale(.99); }
.mn-rank { font-family: var(--mono); font-size: 12px; color: var(--faint); width: 14px; flex-shrink: 0; text-align: center; }
.mn-row .thumb-88 { width: 96px; border-radius: 7px; }
.mn-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.mn-t { font-size: 15px; font-weight: 600; letter-spacing: -0.012em; line-height: 1.3; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mn-m { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--faint); }
@media (max-width: 600px) {
  .mn-row { gap: 10px; padding: 8px; }
  .mn-row .thumb-88 { width: 80px; }
  .mn-t { font-size: 14px; }
  .mn-m .val { white-space: normal; }
}

/* ------------------------------------------------------------------ feed cards v2: the picture is the card */
.feed { max-width: 940px; }
.fday-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.fc {
  display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 16px;
  background: var(--surface); overflow: hidden; box-shadow: var(--shadow-card);
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out), border-color 160ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .fc:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -18px rgba(23, 23, 22, .3), var(--shadow-card); border-color: var(--line-strong); }
}
.fc.is-hot { border-color: var(--red); box-shadow: 0 0 0 1px var(--red), 0 12px 28px -16px rgba(217, 52, 43, .45); }
.fc-media { position: relative; aspect-ratio: 16 / 9; background: #1a1a19; }
.fc-media .thumb { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; aspect-ratio: auto; }
.fc-media .thumb::after { display: none; }
.fc-media .thumb img { transition: transform 400ms var(--ease-out); }
.fc:hover .fc-media .thumb img { transform: scale(1.03); }
.fc-media .thumb .dur { right: 12px; bottom: 12px; font-size: 10.5px; padding: 3px 6px; }
.fc-grad {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, 0) 32%, rgba(0, 0, 0, 0) 48%, rgba(0, 0, 0, .86) 100%);
}
.fc-top {
  position: absolute; left: 12px; top: 10px; right: 76px; display: flex; align-items: center; gap: 8px; min-width: 0;
  color: #fff; font-size: 12.5px; text-shadow: 0 1px 2px rgba(0, 0, 0, .55); pointer-events: none;
}
.fc-top .av { border: 1.5px solid rgba(255, 255, 255, .85); box-sizing: content-box; }
.fc-ch { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.fc-age { opacity: .78; white-space: nowrap; }
.fc-media .xb-lg { position: absolute; left: auto; right: 12px; top: 10px; bottom: auto; font-size: 13px; padding: 6px 9px; border-radius: 7px; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.fc-title {
  position: absolute; left: 14px; right: 72px; bottom: 11px; margin: 0; color: #fff;
  font-size: 17px; font-weight: 600; line-height: 1.28; letter-spacing: -0.015em; text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-wrap: pretty;
}
.fc-title .new-dot { display: inline-block; margin-right: 8px; vertical-align: 3px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .9); }
.fc-title-link { color: #fff; text-decoration: none; cursor: pointer; }
.fc-title-link:hover { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .6); }
.fc-body { padding: 12px 14px 10px; display: flex; flex-direction: column; gap: 8px; }
.fc-why { font-size: 13.5px; line-height: 1.5; color: var(--text); overflow-wrap: anywhere; text-wrap: pretty; }
.fc-why b { font-weight: 600; color: var(--ink); }
.fc-topics { font-size: 12px; color: var(--faint); line-height: 1.45; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fc-acts { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line-2); padding-top: 9px; margin-top: 2px; }
.fc-acts-l { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.fc-acts .link-btn { font-size: 12.5px; }
.fc-acts .link-btn.is-strong { color: var(--ink); font-weight: 500; }
.fc-acts .link-btn.is-strong:hover { color: var(--red); }
.fc-views { font-family: var(--mono); font-size: 11px; color: var(--faint); white-space: nowrap; }
.fc .fnone { font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
@media (max-width: 1100px) { .fday-list { grid-template-columns: 1fr; } .feed { max-width: 640px; } }
@media (max-width: 600px) { .fc-title { font-size: 15.5px; } .fc-acts-l { gap: 12px; } }
.fc-acts { justify-content: flex-start; }
.fc-top { right: 84px; }
.fc-age + .fc-age::before { content: '·'; margin-right: 8px; opacity: .7; }

/* analysis finished: a green check draws itself, every step turns green, then the dashboard opens */
.an-check { width: 64px; height: 64px; margin-bottom: 6px; }
.an-check svg { width: 64px; height: 64px; display: block; overflow: visible; }
.an-check-ring { fill: var(--green-bg); stroke: var(--green); stroke-width: 3; stroke-dasharray: 183; stroke-dashoffset: 183; animation: an-draw 600ms var(--ease-out) forwards; }
.an-check-mark { fill: none; stroke: var(--green); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: an-draw 380ms var(--ease-out) 420ms forwards; }
@keyframes an-draw { to { stroke-dashoffset: 0; } }
.an.is-done .an-h1 { color: var(--green); }
.an.is-done .an-row.is-done .an-dot { background: var(--green); box-shadow: 0 0 0 3px var(--green-bg); }
.an.is-done .bar-fill { background: var(--green); }
.an-opening { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.an-opening .pulse-dot { background: var(--green); width: 7px; height: 7px; }
@media (prefers-reduced-motion: reduce) {
  .an-check-ring, .an-check-mark { animation: none; stroke-dashoffset: 0; }
}
