/* Tech News — terminal-newspaper UI. Dark default, light via [data-theme="light"]. */

:root {
  --bg: #0b0c0e;
  --bg-2: #0f1113;
  --panel: #121417;
  --elev: #171a1e;
  --hover: #1a1d22;
  --border: #22262c;
  --border-2: #2c3138;
  --text: #e8eaee;
  --text-2: #a4aab4;
  --text-3: #6d737d;
  --text-4: #4b5059;
  --accent: #8ab4ff;
  --fund: #3ddc97;
  --fund-bg: rgba(61, 220, 151, 0.1);
  --fund-line: rgba(61, 220, 151, 0.35);
  --watch: #f5b83d;
  --watch-bg: rgba(245, 184, 61, 0.12);
  --watch-line: rgba(245, 184, 61, 0.55);
  --danger: #ff7a7a;
  --yc: #ff8a4c;                       /* YC orange: text, badges */
  --yc-mark: #e0662a;                  /* YC orange: chart marks (validated vs --bg with --yc-cool) */
  --yc-cool: #5b8ce0;                  /* diverging pole for "losing share" */
  --yc-bg: rgba(255, 138, 76, 0.11);
  --yc-line: rgba(255, 138, 76, 0.38);
  --sel: rgba(138, 180, 255, 0.07);
  --sel-line: rgba(138, 180, 255, 0.55);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  --skel-a: #15181b;
  --skel-b: #1d2126;

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --topbar-h: 56px;
  --side-w: 236px;
  --pulse-w: 312px;
  --radius: 8px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f6f5f1;
  --bg-2: #f1efea;
  --panel: #fbfaf7;
  --elev: #ffffff;
  --hover: #efede7;
  --border: #e3e0d8;
  --border-2: #d6d2c8;
  --text: #17191d;
  --text-2: #4b5059;
  --text-3: #7e838c;
  --text-4: #a8acb3;
  --accent: #2f5fd0;
  --fund: #0d7d55;
  --fund-bg: rgba(13, 125, 85, 0.09);
  --fund-line: rgba(13, 125, 85, 0.35);
  --watch: #b26b00;
  --watch-bg: rgba(214, 140, 20, 0.15);
  --watch-line: rgba(196, 124, 0, 0.6);
  --danger: #c4372f;
  --yc: #c24a08;
  --yc-mark: #c94f0b;
  --yc-cool: #2f5fd0;
  --yc-bg: rgba(226, 98, 20, 0.1);
  --yc-line: rgba(201, 79, 11, 0.4);
  --sel: rgba(47, 95, 208, 0.06);
  --sel-line: rgba(47, 95, 208, 0.5);
  --shadow: 0 10px 40px rgba(30, 30, 20, 0.14);
  --skel-a: #ebe8e1;
  --skel-b: #e1ddd4;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 14px/1.5 var(--sans);
  font-feature-settings: "cv11", "ss01", "tnum" 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
kbd {
  font: 500 11px/1 var(--mono);
  padding: 3px 5px;
  border: 1px solid var(--border-2);
  border-bottom-width: 2px;
  border-radius: 4px;
  color: var(--text-2);
  background: var(--elev);
}
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.mono { font-family: var(--mono); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--elev); padding: 6px 10px; border-radius: 6px; }
.skip:focus { left: 8px; }

/* ── Site switcher (▾ next to the title; list mirrors the trackers' kit) ── */
.sw-btn svg { transition: transform .15s; }
.sw-btn.open svg { transform: rotate(180deg); }
.sw-pop {
  position: absolute; left: 0; top: calc(100% + 12px); z-index: 60;
  width: min(20rem, calc(100vw - 2rem));
  background: var(--elev); border: 1px solid var(--border-2); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.sw-pop[hidden] { display: none; }
.sw-head { padding: 8px 12px; border-bottom: 1px solid var(--border); font-size: 12px; color: var(--text-3); }
.sw-foot { padding: 6px 12px; border-top: 1px solid var(--border); font-size: 11px; color: var(--text-3); }
.sw-list { list-style: none; margin: 0; padding: 4px 0; }
.sw-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 12px; text-align: left; color: var(--text); }
.sw-row:hover { background: var(--hover); }
.sw-row.here { background: var(--sel); }
.sw-mark {
  width: 22px; height: 22px; border-radius: 6px; flex: none;
  display: inline-grid; place-items: center;
  font: 700 10px/1 var(--mono); color: #fff;
}
.sw-text { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.sw-name { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.sw-name-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-here { padding: 0 6px; border-radius: 4px; background: var(--sel); border: 1px solid var(--sel-line); color: var(--accent); font-size: 11px; font-weight: 400; }
.sw-blurb { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-row kbd.sw-kbd { flex: none; }

/* ── Top bar ───────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 30;
  height: var(--topbar-h);
  display: flex; align-items: center; gap: 16px;
  padding: 0 20px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
/* position: relative so the site switcher's popup opens flush with the title's left edge. */
.brand-wrap {
  position: relative; display: flex; align-items: center; gap: 2px;
  width: calc(var(--side-w) - 36px);
  flex: none;
}
.brand {
  display: flex; align-items: center; gap: 9px; white-space: nowrap;
  font: 700 17px/1 var(--mono);
  letter-spacing: -0.02em;
  flex: none;
}
.brand-mark {
  width: 14px; height: 14px; border-radius: 50%;
  border: 3px solid var(--fund);
  box-shadow: 0 0 12px var(--fund-line);
}
.search {
  position: relative; flex: 1; min-width: 0; max-width: 560px;
  display: flex; align-items: center;
}
.search > svg { position: absolute; left: 11px; color: var(--text-3); width: 16px; height: 16px; pointer-events: none; }
.search input {
  width: 100%; min-width: 0; height: 34px;
  padding: 0 34px 0 34px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.search input::placeholder { color: var(--text-3); }
.search input:focus { border-color: var(--border-2); background: var(--elev); box-shadow: 0 0 0 3px var(--sel); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-kbd { position: absolute; right: 9px; pointer-events: none; }
.search input:focus ~ .search-kbd, .search input:not(:placeholder-shown) ~ .search-kbd { opacity: 0; }
.top-actions { margin-left: auto; flex: none; display: flex; align-items: center; gap: 4px; }
.updated { font: 400 12px/1 var(--mono); color: var(--text-3); margin-right: 8px; white-space: nowrap; }
.updated.stale { color: var(--watch); }
.icon-btn {
  width: 34px; height: 34px; border-radius: 8px;
  display: inline-grid; place-items: center;
  color: var(--text-2);
  transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--hover); color: var(--text); }
.icon-btn.small { width: 28px; height: 28px; border-radius: 6px; }
.icon-btn.small svg { width: 15px; height: 15px; }
.icon-btn .fill { fill: currentColor; stroke: none; }
.icon-btn.spinning svg { animation: spin .9s linear infinite; }
.menu-btn { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Layout ────────────────────────────────────────────── */
.layout {
  display: grid;
  grid-template-columns: var(--side-w) minmax(0, 1fr) var(--pulse-w);
  grid-template-areas: "side main pulse";
  max-width: 1480px;
  margin: 0 auto;
  min-height: calc(100vh - var(--topbar-h));
}

/* ── Sidebar ───────────────────────────────────────────── */
.sidebar {
  grid-area: side;
  position: sticky; top: var(--topbar-h);
  height: calc(100vh - var(--topbar-h));
  overflow-y: auto;
  padding: 18px 12px 40px 20px;
  border-right: 1px solid var(--border);
  scrollbar-width: thin;
  scrollbar-color: var(--border-2) transparent;
}
.side-sec + .side-sec { margin-top: 22px; }
.side-h {
  display: flex; align-items: baseline; justify-content: space-between;
  font: 600 10.5px/1 var(--mono);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-3);
  padding: 0 8px 8px;
}
.side-note { font-weight: 400; letter-spacing: .04em; color: var(--text-4); text-transform: none; }
.side-item {
  width: 100%;
  display: flex; align-items: center; gap: 8px;
  padding: 5px 8px;
  border-radius: 6px;
  color: var(--text-2);
  text-align: left;
  font-size: 13.5px;
  transition: background .12s, color .12s;
}
.side-item:hover { background: var(--hover); color: var(--text); }
.side-item.active { background: var(--elev); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.side-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-4); flex: none; }
.side-item.active .dot { background: var(--text); }
.side-item .lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-item .cnt { font: 400 11.5px/1 var(--mono); color: var(--text-3); }
.side-item .badge-n {
  font: 600 10.5px/1 var(--mono);
  padding: 3px 6px; border-radius: 99px;
  background: var(--watch-bg); color: var(--watch);
}
.side-item .err-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--danger); flex: none; }
.side-item[data-view="deals"] .dot { background: var(--fund); }
.side-item[data-view="watchlist"] .dot { background: var(--watch); }
.side-item[data-view="saved"] .dot { background: var(--accent); }
.side-item[data-view="yc"] .dot { background: var(--yc); border-radius: 2px; }
.side-empty { padding: 4px 8px; color: var(--text-3); font-size: 12.5px; }
.side-skel {
  display: block; height: 14px; margin: 9px 8px; border-radius: 4px;
  background: linear-gradient(90deg, var(--skel-a), var(--skel-b), var(--skel-a));
  background-size: 200% 100%; animation: shimmer 1.4s infinite;
}
.side-skel:nth-child(2) { width: 70%; }
.side-skel:nth-child(3) { width: 82%; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 4px; }
.tag-cloud .side-skel { width: 100%; margin: 4px; }
.tag-btn {
  font: 400 12px/1 var(--mono);
  padding: 5px 7px; border-radius: 5px;
  color: var(--text-2);
  border: 1px solid var(--border);
  transition: all .12s;
}
.tag-btn .cnt { color: var(--text-4); margin-left: 3px; }
.tag-btn:hover { border-color: var(--border-2); color: var(--text); }
.tag-btn.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.tag-btn.active .cnt { color: var(--bg); opacity: .6; }

.watch-form { display: flex; gap: 4px; padding: 0 0 6px 4px; }
.watch-form input {
  flex: 1; min-width: 0; height: 28px; padding: 0 8px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 6px; outline: none;
  font-size: 12.5px;
}
.watch-form input:focus { border-color: var(--watch-line); }
.watch-list li { display: flex; align-items: center; }
.watch-list .side-item { flex: 1; }
.watch-list .side-item .dot { background: var(--watch); }
.watch-x { opacity: 0; transition: opacity .12s; color: var(--text-3); }
.watch-list li:hover .watch-x, .watch-x:focus-visible { opacity: 1; }
@media (hover: none) { .watch-x { opacity: 1; } }

/* ── Main column ───────────────────────────────────────── */
.main { grid-area: main; min-width: 0; padding: 0 28px 80px; position: relative; }
.main-head {
  position: sticky; top: var(--topbar-h); z-index: 10;
  background: var(--bg);
  padding: 18px 0 10px;
}
.main-title-row { display: flex; align-items: baseline; gap: 12px; }
.main-title { font: 650 22px/1.2 var(--sans); letter-spacing: -0.02em; }
.main-count { font: 400 12px/1 var(--mono); color: var(--text-3); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips:not(:empty) { margin-top: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font: 500 12px/1 var(--mono);
  padding: 5px 6px 5px 9px;
  border-radius: 99px;
  background: var(--elev);
  border: 1px solid var(--border);
  color: var(--text-2);
  animation: pop .18s var(--ease);
}
.chip b { font-weight: 500; color: var(--text); }
.chip svg { width: 13px; height: 13px; }
.chip:hover { border-color: var(--border-2); color: var(--text); }
.chip.clear { padding: 5px 9px; background: none; border-style: dashed; }

.new-pill {
  position: sticky; top: calc(var(--topbar-h) + 64px); z-index: 12;
  display: block; margin: 0 auto 8px;
  padding: 7px 14px; border-radius: 99px;
  background: var(--text); color: var(--bg);
  font: 600 12.5px/1 var(--sans);
  box-shadow: var(--shadow);
  animation: drop .3s var(--ease);
}
.new-pill[hidden] { display: none; }
.new-pill:hover { transform: translateY(-1px); }

.day-h {
  display: flex; align-items: center; gap: 10px;
  font: 600 10.5px/1 var(--mono);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-3);
  padding: 22px 0 8px;
}
.day-h::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.day-h .n { font-weight: 400; letter-spacing: .04em; color: var(--text-4); }
.feed > .day-h:first-child { padding-top: 6px; }

/* Article card */
.card {
  position: relative;
  padding: 14px 16px 13px;
  margin: 0 -16px;
  border-radius: var(--radius);
  transition: background .15s, opacity .2s;
  animation: fadein .25s var(--ease) both;
}
.card + .card::before {
  content: ""; position: absolute; top: 0; left: 16px; right: 16px; height: 1px;
  background: var(--border); transition: opacity .15s;
}
.card:hover { background: var(--hover); }
.card:hover::before, .card:hover + .card::before, .card.selected::before, .card.selected + .card::before { opacity: 0; }
.card.selected { background: var(--sel); box-shadow: inset 0 0 0 1px var(--sel-line); }
.card.watched::after {
  content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 2px;
  border-radius: 2px; background: var(--watch);
}
.card.read .title, .card.read .summary { color: var(--text-3); }
.card.read .badge { opacity: .55; }
.meta {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font: 400 11.5px/1.4 var(--mono);
  color: var(--text-3);
  margin-bottom: 5px;
}
.meta .src { color: var(--text-2); font-weight: 500; }
.meta .sep { color: var(--text-4); }
.meta .also { color: var(--text-4); }
.meta .spacer { flex: 1; }
.meta .badge, .meta .watch-flag { margin-left: 2px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 10.5px/1 var(--mono);
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 7px; border-radius: 4px;
  color: var(--fund);
  background: var(--fund-bg);
  box-shadow: inset 0 0 0 1px var(--fund-line);
  white-space: nowrap;
}
.badge .amt { font-size: 11.5px; letter-spacing: 0; }
.badge.yc { color: var(--yc); background: var(--yc-bg); box-shadow: inset 0 0 0 1px var(--yc-line); letter-spacing: .04em; }
a.badge.yc:hover { background: color-mix(in srgb, var(--yc) 20%, transparent); }
.badge.neutral { color: var(--text-2); background: var(--elev); box-shadow: inset 0 0 0 1px var(--border-2); }
.watch-flag {
  font: 600 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--watch); padding: 4px 6px; border-radius: 4px; background: var(--watch-bg);
}
.title {
  font: 600 15.5px/1.38 var(--sans);
  letter-spacing: -0.012em;
  color: var(--text);
  text-wrap: pretty;
}
.title a:hover { text-decoration: underline; text-decoration-color: var(--text-4); text-underline-offset: 3px; }
mark {
  background: var(--watch-bg); color: var(--watch);
  border-radius: 3px; padding: 0 2px; margin: 0 -1px;
}
.summary {
  margin-top: 4px;
  color: var(--text-2);
  font-size: 13.5px; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  overflow-wrap: anywhere;
}
.foot {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 8px;
  font: 400 12px/1.4 var(--mono);
  color: var(--text-3);
}
.foot .tags { display: flex; gap: 8px; flex-wrap: wrap; }
.foot .tag { color: var(--text-3); }
.foot .tag:hover { color: var(--text); }
.foot .inv { color: var(--text-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.foot .inv::before { content: "◆ "; color: var(--text-4); font-size: 9px; vertical-align: 1px; }
.actions { display: flex; gap: 0; margin: -6px -8px -6px 2px; }
.act {
  width: 28px; height: 28px; border-radius: 6px;
  display: grid; place-items: center;
  color: var(--text-4);
  transition: color .12s, background .12s, transform .12s;
}
.act svg { width: 16px; height: 16px; }
.act:hover { color: var(--text); background: var(--elev); }
.act:active { transform: scale(.9); }
.act.on.save { color: var(--watch); }
.act.on.save svg { fill: currentColor; }
.act.on.readt { color: var(--fund); }
.card:not(:hover):not(.selected) .act:not(.on) { opacity: .55; }

/* Skeletons */
.skel-card { padding: 16px 0; border-bottom: 1px solid var(--border); }
.sk {
  display: block; height: 11px; border-radius: 4px; margin: 7px 0;
  background: linear-gradient(90deg, var(--skel-a), var(--skel-b), var(--skel-a));
  background-size: 200% 100%; animation: shimmer 1.4s infinite;
}
.sk.t { height: 15px; width: 78%; margin: 10px 0; }
.sk.s { width: 30%; }
.sk.l { width: 94%; }
.sk.m { width: 62%; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* Empty / error */
.state {
  text-align: center; padding: 64px 20px;
  color: var(--text-3);
  animation: fadein .3s var(--ease);
}
.state .glyph { font: 400 28px/1 var(--mono); color: var(--text-4); margin-bottom: 14px; letter-spacing: .1em; }
.state h3 { font: 600 15px/1.4 var(--sans); color: var(--text); margin-bottom: 4px; }
.state p { font-size: 13px; max-width: 380px; margin: 0 auto; }
.state.err .glyph { color: var(--danger); }
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px; padding: 7px 14px; border-radius: 7px;
  font: 500 13px/1 var(--sans);
  border: 1px solid var(--border-2); background: var(--elev); color: var(--text);
  transition: border-color .15s, background .15s;
}
.btn:hover { border-color: var(--text-3); }
.btn[disabled] { opacity: .5; cursor: default; }
.feed-foot { display: flex; justify-content: center; padding: 20px 0; }
.feed-foot[hidden] { display: none; }
.feed-foot .btn { margin: 0; }
.feed-foot .end { font: 400 11.5px/1 var(--mono); color: var(--text-4); letter-spacing: .1em; }

/* ── Deals table ───────────────────────────────────────── */
.table-wrap { overflow-x: auto; margin: 4px -4px 0; padding: 0 4px; }
.deals {
  width: 100%; border-collapse: collapse;
  font-size: 13px;
}
.deals th {
  position: sticky; top: 0;
  text-align: left;
  font: 600 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-3);
  padding: 10px 10px;
  border-bottom: 1px solid var(--border-2);
  white-space: nowrap;
  background: var(--bg);
}
.deals th.sortable { cursor: pointer; user-select: none; }
.deals th.sortable:hover { color: var(--text); }
.deals th .arr { display: inline-block; width: 10px; color: var(--text-4); }
.deals th.sorted { color: var(--text); }
.deals th.sorted .arr { color: var(--fund); }
.deals th.num, .deals td.num { text-align: right; }
.deals td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.deals tr { transition: background .12s; }
.deals tbody tr { cursor: pointer; }
.deals tbody tr:hover { background: var(--hover); }
.deals tbody tr.selected { background: var(--sel); box-shadow: inset 2px 0 0 var(--sel-line); }
.deals tbody tr.watched td:first-child { box-shadow: inset 2px 0 0 var(--watch); }
.deals tbody tr.read td { color: var(--text-3); }
.deals .d-date { font-family: var(--mono); font-size: 12px; color: var(--text-3); white-space: nowrap; }
.deals td.d-co { font-weight: 600; color: var(--text); width: 100%; max-width: 0; }
.deals .d-co > a, .deals .d-co > span:first-child { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deals .d-co small { display: block; font-weight: 400; color: var(--text-3); font-size: 12px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deals .d-co a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--text-4); }
.deals .r-inline { display: none; }
.deals .d-amt { font: 600 13px/1.4 var(--mono); color: var(--fund); white-space: nowrap; }
.deals .d-amt.na { color: var(--text-4); font-weight: 400; }
.deals .d-lead { color: var(--text-2); white-space: nowrap; max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
.deals .d-src { font-family: var(--mono); font-size: 12px; color: var(--text-3); white-space: nowrap; max-width: 130px; overflow: hidden; text-overflow: ellipsis; }

/* ── Pulse panel ───────────────────────────────────────── */
.pulse {
  grid-area: pulse;
  position: sticky; top: var(--topbar-h);
  height: calc(100vh - var(--topbar-h));
  overflow-y: auto;
  padding: 18px 20px 40px;
  border-left: 1px solid var(--border);
  scrollbar-width: thin;
  scrollbar-color: var(--border-2) transparent;
}
.p-sec + .p-sec { margin-top: 24px; }
.p-h {
  display: flex; justify-content: space-between; align-items: baseline;
  font: 600 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 12px;
}
.p-h .seg { display: inline-flex; gap: 2px; }
.p-h .seg button {
  font: 500 10.5px/1 var(--mono); letter-spacing: .04em; color: var(--text-4);
  padding: 3px 5px; border-radius: 4px;
}
.p-h .seg button:hover { color: var(--text-2); }
.p-h .seg button.on { color: var(--text); background: var(--elev); }
.p-big { font: 600 30px/1.05 var(--mono); letter-spacing: -0.03em; color: var(--fund); }
.p-sub { margin-top: 6px; font: 400 12px/1.4 var(--mono); color: var(--text-3); }
.p-sub b { color: var(--text-2); font-weight: 500; }
.bars { display: grid; gap: 6px; }
.bar-row {
  display: grid; grid-template-columns: 74px 1fr 26px; align-items: center; gap: 10px;
  font: 400 12px/1 var(--mono); color: var(--text-2);
  text-align: left; width: 100%;
  padding: 2px 0; border-radius: 4px;
}
.bar-row:hover .bar-lbl { color: var(--text); }
.bar-row.active .bar-lbl { color: var(--fund); }
.bar-lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { display: block; height: 8px; border-radius: 2px; background: var(--elev); overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--fund); border-radius: 2px; transform-origin: left; animation: grow .6s var(--ease) both; opacity: .85; }
.bar-n { text-align: right; color: var(--text-3); }
.rank { display: grid; gap: 1px; counter-reset: r; }
.rank-row {
  display: flex; align-items: baseline; gap: 10px;
  padding: 5px 0;
  font-size: 13px; color: var(--text-2);
  border-bottom: 1px dashed var(--border);
  text-align: left; width: 100%;
}
.rank-row:last-child { border-bottom: 0; }
.rank-row::before {
  counter-increment: r; content: counter(r, decimal-leading-zero);
  font: 400 10.5px/1 var(--mono); color: var(--text-4);
}
.rank-row .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-row:hover .nm { color: var(--text); }
.rank-row .v { font: 500 12px/1 var(--mono); color: var(--text-3); }
.rank-row .v.money { color: var(--fund); }
.deal-row .nm small { display: block; font: 400 11px/1.3 var(--mono); color: var(--text-3); margin-top: 2px; }
.p-empty { color: var(--text-3); font-size: 12.5px; }
.p-skel .sk { height: 10px; }
.p-skel .sk.big { height: 28px; width: 60%; }

/* ── Overlays ──────────────────────────────────────────── */
.overlay {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  animation: fadein .15s ease;
}
.overlay[hidden] { display: none; }
.dialog {
  width: 100%; max-width: 420px; max-height: calc(100vh - 32px); overflow-y: auto;
  background: var(--elev); border: 1px solid var(--border-2); border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 18px 20px 20px;
  animation: pop .2s var(--ease);
}
.dialog-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.dialog-head h2 { font: 600 15px/1 var(--sans); }
.keys { display: grid; grid-template-columns: auto 1fr; gap: 9px 18px; margin: 0; align-items: center; }
.keys dt { white-space: nowrap; }
.keys dd { margin: 0; color: var(--text-2); font-size: 13px; }
.toast {
  position: fixed; left: 50%; bottom: 20px; z-index: 70;
  transform: translate(-50%, 20px); opacity: 0;
  padding: 9px 14px; border-radius: 8px;
  background: var(--text); color: var(--bg);
  font: 500 13px/1.3 var(--sans);
  box-shadow: var(--shadow);
  pointer-events: none;
  transition: opacity .2s, transform .25s var(--ease);
  max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--danger); color: #fff; }
.scrim { display: none; }

@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ── Tablet: pulse becomes a horizontal strip ─────────── */
@media (max-width: 1099px) {
  .layout {
    grid-template-columns: var(--side-w) minmax(0, 1fr);
    grid-template-areas: "side pulse" "side main";
    grid-template-rows: auto 1fr;
  }
  .sidebar { grid-row: 1 / span 2; }
  .pulse {
    position: static; height: auto; overflow: visible;
    border-left: 0; border-bottom: 1px solid var(--border);
    padding: 16px 28px;
    display: grid; grid-template-columns: minmax(190px, 0.8fr) 1.2fr 1fr; gap: 28px;
  }
  .p-sec + .p-sec { margin-top: 0; }
  .pulse .p-sec.tops { display: none; }
  .pulse .rank-row:nth-child(n+6) { display: none; }
  .p-big { font-size: 24px; }
  .main-head { top: var(--topbar-h); }
}

/* ── Phone: single column, drawer sidebar ─────────────── */
@media (max-width: 760px) {
  :root { --topbar-h: 52px; }
  .topbar { padding: 0 12px 0 8px; gap: 8px; }
  .menu-btn { display: inline-grid; }
  .brand-wrap { width: auto; }
  .brand { font-size: 15px; gap: 7px; }
  .sw-pop { width: min(20rem, calc(100vw - 62px)); top: calc(100% + 10px); }
  .sw-kbd { display: none; }
  .search input { padding-right: 10px; }
  .updated, #helpBtn { display: none; }
  .search-kbd { display: none; }
  .layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "pulse" "main"; }
  .sidebar {
    position: fixed; z-index: 50; top: 0; left: 0; bottom: 0;
    width: min(300px, 86vw); height: 100%;
    background: var(--panel);
    border-right: 1px solid var(--border);
    padding: 20px 14px calc(40px + env(safe-area-inset-bottom)) 14px;
    transform: translateX(-102%);
    transition: transform .28s var(--ease);
    box-shadow: var(--shadow);
  }
  .sidebar.open { transform: none; }
  .scrim {
    display: block; position: fixed; inset: 0; z-index: 45;
    background: rgba(0, 0, 0, 0.45);
    animation: fadein .2s ease;
  }
  .scrim[hidden] { display: none; }
  .pulse {
    grid-template-columns: 1fr; gap: 12px;
    padding: 14px 16px;
  }
  .pulse .p-sec.rounds, .pulse .p-sec.investors { display: none; }
  .pulse.expanded .p-sec.rounds, .pulse.expanded .p-sec.investors { display: block; }
  .p-more { display: inline; }
  .main { padding: 0 16px 80px; }
  .card { margin: 0 -10px; padding: 13px 10px 12px; }
  .title { font-size: 15px; }
  .main-title { font-size: 19px; }
  .deals .col-src, .deals .col-lead, .deals .col-round { display: none; }
  .deals .r-inline { display: inline; color: var(--fund); font-family: var(--mono); font-size: 11px; margin-right: 6px; }
  .deals td, .deals th { padding-left: 6px; padding-right: 6px; }
  .new-pill { top: calc(var(--topbar-h) + 58px); }
}
.p-more { display: none; font: 500 11px/1 var(--mono); color: var(--text-3); text-decoration: underline; text-underline-offset: 3px; margin-left: 8px; }

/* ── YC Radar ──────────────────────────────────────────── */
.yc[hidden] { display: none; }
.yc { padding-bottom: 8px; }
.yc .spacer { flex: 1; }
.yc .sep { color: var(--text-4); }
.yc-anim .yc-body-wrap { animation: fadein .25s var(--ease) both; }
.yc:not(.yc-anim) .bar-fill, .yc:not(.yc-anim) .yc-score-fill, .yc:not(.yc-anim) .yc-col-bar, .yc:not(.yc-anim) .yc-lift-fill, .yc:not(.yc-anim) .yc-mini-fill { animation: none; }

/* Header strip */
.yc-strip {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--panel);
  margin: 6px 0 16px;
  overflow: hidden;
  gap: 1px; background: var(--border); /* 1px gaps draw the cell dividers */
}
.yc-stat { padding: 12px 14px 11px; min-width: 0; display: flex; flex-direction: column; gap: 5px; background: var(--panel); }
.yc-stat-l { font: 600 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
.yc-stat-v { font: 600 21px/1.05 var(--mono); letter-spacing: -0.03em; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yc-stat.accent .yc-stat-v { color: var(--yc); }
.yc-stat.stale .yc-stat-v { color: var(--watch); }
.yc-stat-s { font: 400 11.5px/1.2 var(--mono); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yc-stat .sk { margin: 0; }
.yc-stat .sk.big { height: 20px; width: 64%; }
.yc-strip-err { background: var(--panel); display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.yc-strip-err .yc-strip-msg { flex: 1; min-width: 0; font: 400 12.5px/1.4 var(--mono); color: var(--text-3); }
.yc-strip-err .btn { margin: 0; }

/* Tabs */
.yc-tabs {
  display: flex; gap: 2px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
  overflow-x: auto; scrollbar-width: none;
}
.yc-tabs::-webkit-scrollbar { display: none; }
.yc-tab {
  position: relative; flex: none;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 12px 11px;
  font: 500 13.5px/1 var(--sans); color: var(--text-3);
  transition: color .12s;
}
.yc-tab:hover { color: var(--text); }
.yc-tab.on { color: var(--text); }
.yc-tab.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--yc); }
.yc-tab .lbl-short { display: none; }
.yc-tab .n { font: 400 11px/1 var(--mono); color: var(--text-4); }
.yc-tab.on .n { color: var(--text-3); }
.yc-note { font-size: 12.5px; color: var(--text-3); margin: 0 0 12px; max-width: 70ch; }
.yc-note b { font: 500 12px/1 var(--mono); color: var(--text-2); }

/* Logos */
.yc-logo {
  width: var(--s); height: var(--s); flex: none;
  border-radius: 8px; object-fit: cover;
  background: var(--elev);
  box-shadow: inset 0 0 0 1px var(--border);
}
.yc-ava {
  display: grid; place-items: center;
  font: 600 calc(var(--s) * .42)/1 var(--sans); color: hsl(var(--h) 45% 72%);
  background: hsl(var(--h) 28% 17%);
  box-shadow: inset 0 0 0 1px hsl(var(--h) 25% 26%);
}
[data-theme="light"] .yc-ava { color: hsl(var(--h) 45% 32%); background: hsl(var(--h) 40% 91%); box-shadow: inset 0 0 0 1px hsl(var(--h) 30% 82%); }

/* Shared bits */
.yc-hiring {
  display: inline-flex; align-items: center; gap: 5px;
  font: 500 11px/1 var(--mono); color: var(--fund); white-space: nowrap;
}
.yc-hiring::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--fund); box-shadow: 0 0 0 3px var(--fund-bg); }
.yc-tags { display: flex; gap: 4px 10px; flex-wrap: wrap; min-width: 0; }
.yc-tag { font: 400 12px/1.4 var(--mono); color: var(--text-3); white-space: nowrap; }
.yc-tag::before { content: "#"; color: var(--text-4); }
.yc-tag:hover, .yc-tag.on { color: var(--text); }
.yc-links { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; font: 400 12px/1.4 var(--mono); min-width: 0; }
.yc-link { color: var(--text-2); white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.yc-link:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--text-4); text-underline-offset: 3px; }
.yc-link.hn { color: var(--yc); }
.yc-watch {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  height: 28px; padding: 0 10px; border-radius: 6px;
  font: 500 12px/1 var(--sans); color: var(--text-2);
  border: 1px solid var(--border-2);
  transition: color .12s, border-color .12s, background .12s;
}
.yc-watch svg { width: 15px; height: 15px; }
.yc-watch:hover { color: var(--text); border-color: var(--text-3); }
.yc-watch.on { color: var(--watch); background: var(--watch-bg); border-color: var(--watch-line); }
.yc-watch.compact { width: 28px; padding: 0; justify-content: center; border-color: transparent; color: var(--text-4); }
.yc-watch.compact:hover { color: var(--text); background: var(--elev); }
.yc-watch.compact.on { color: var(--watch); border-color: transparent; }

/* Opportunity cards */
.yc-opps { list-style: none; margin: 0; padding: 0; }
.yc-card {
  position: relative;
  display: grid; grid-template-columns: 22px 40px minmax(0, 1fr); gap: 0 14px; align-items: start;
  padding: 16px 16px 15px; margin: 0 -16px;
  border-radius: var(--radius);
  transition: background .15s;
}
.yc-card + .yc-card::before { content: ""; position: absolute; top: 0; left: 16px; right: 16px; height: 1px; background: var(--border); }
.yc-card:hover { background: var(--hover); }
.yc-card:hover::before, .yc-card:hover + .yc-card::before { opacity: 0; }
.yc-card.watched::after, .yc-row.watched::after {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; background: var(--watch);
}
.yc-rank { font: 400 11px/40px var(--mono); color: var(--text-4); text-align: right; }
.yc-body { min-width: 0; }
.yc-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 28px; }
.yc-name { font: 600 16px/1.3 var(--sans); letter-spacing: -0.015em; min-width: 0; overflow-wrap: anywhere; }
.yc-name a:hover, .yc-row-name:hover { text-decoration: underline; text-decoration-color: var(--text-4); text-underline-offset: 3px; }
.yc-one { margin-top: 3px; color: var(--text); font-size: 14px; line-height: 1.5; text-wrap: pretty; overflow-wrap: anywhere; }
.yc-meta { margin-top: 3px; font: 400 11.5px/1.45 var(--mono); color: var(--text-3); overflow-wrap: anywhere; }
.yc-score { display: flex; align-items: center; gap: 10px; margin-top: 10px; max-width: 420px; }
.yc-score-n { font: 600 15px/1 var(--mono); color: var(--text); min-width: 24px; letter-spacing: -0.02em; }
.yc-score-track { flex: 1; height: 8px; border-radius: 4px; background: var(--yc-bg); overflow: hidden; }
.yc-score-fill { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--yc-mark); transform-origin: left; animation: grow .6s var(--ease) both; }
.yc-score-max { font: 400 11px/1 var(--mono); color: var(--text-4); }
.yc-reasons { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; list-style: none; padding: 0; }
.yc-reason {
  display: inline-flex; align-items: center; gap: 6px;
  font: 500 11.5px/1 var(--mono); padding: 4px 7px; border-radius: 4px;
  color: var(--fund); background: var(--fund-bg); box-shadow: inset 0 0 0 1px var(--fund-line);
  max-width: 100%; overflow-wrap: anywhere;
}
.yc-reason b { font-weight: 600; opacity: .7; }
.yc-reason.neg { color: var(--text-3); background: transparent; box-shadow: inset 0 0 0 1px var(--border-2); }
.yc-news { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 9px; font-size: 13px; color: var(--text-2); min-width: 0; }
.yc-news-k { font: 600 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-4); }
.yc-news a { min-width: 0; overflow-wrap: anywhere; }
.yc-news a:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--text-4); text-underline-offset: 3px; }
.yc-news time { font: 400 11.5px/1 var(--mono); color: var(--text-3); }
.yc-foot { display: flex; align-items: center; gap: 6px 16px; flex-wrap: wrap; margin-top: 10px; }

/* New companies: filters + dense list */
.yc-filters { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.yc-select {
  height: 30px; max-width: 220px; padding: 0 26px 0 10px;
  font: 500 12.5px/1 var(--sans); color: var(--text-2);
  background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237d838c' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 7px center / 14px;
  border: 1px solid var(--border); border-radius: 7px;
  appearance: none; -webkit-appearance: none; cursor: pointer;
  text-overflow: ellipsis;
}
.yc-select:hover { border-color: var(--border-2); color: var(--text); }
.yc-select.set { color: var(--text); border-color: var(--yc-line); background-color: var(--yc-bg); }
.yc-select option { background: var(--elev); color: var(--text); }
.yc-toggle {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px;
  font: 500 12.5px/1 var(--sans); color: var(--text-2);
  border: 1px solid var(--border); border-radius: 7px; background: var(--panel);
}
.yc-toggle .dot { width: 7px; height: 7px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--text-4); }
.yc-toggle:hover { border-color: var(--border-2); color: var(--text); }
.yc-toggle.on { color: var(--fund); border-color: var(--fund-line); background: var(--fund-bg); }
.yc-toggle.on .dot { background: var(--fund); box-shadow: none; }
.yc-clear { font: 500 12px/1 var(--mono); color: var(--text-3); padding: 0 6px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--text-4); }
.yc-clear:hover { color: var(--text); }
.seg { display: inline-flex; align-items: center; gap: 2px; }
.seg button { font: 500 11.5px/1 var(--mono); color: var(--text-3); padding: 6px 7px; border-radius: 5px; }
.seg button:hover { color: var(--text); }
.seg button.on { color: var(--text); background: var(--elev); box-shadow: inset 0 0 0 1px var(--border); }
.seg-l { font: 600 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-4); margin-right: 4px; }
.yc-list { list-style: none; margin: 0; padding: 0; }
.yc-row {
  position: relative;
  display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 0 12px; align-items: start;
  padding: 11px 12px; margin: 0 -12px;
  border-radius: var(--radius);
  border-bottom: 1px solid var(--border);
  transition: background .12s;
}
.yc-row:hover { background: var(--hover); }
.yc-row.watched::after { top: 10px; bottom: 10px; }
.yc-row-main { min-width: 0; }
.yc-row-head { display: flex; align-items: center; gap: 7px; min-width: 0; }
.yc-row-name { font: 600 14px/1.35 var(--sans); color: var(--text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yc-row-head .badge { padding: 3px 5px; }
.yc-row-one { margin-top: 1px; font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yc-row-foot { display: flex; align-items: center; gap: 2px 14px; flex-wrap: wrap; margin-top: 4px; }
.yc-row-foot .yc-tag, .yc-row-foot .yc-links { font-size: 11.5px; }
.yc-row-side { display: flex; align-items: center; gap: 14px; padding-top: 1px; font: 400 11.5px/1 var(--mono); color: var(--text-3); white-space: nowrap; }
.yc-row-stat { min-width: 44px; text-align: right; }
.yc-mini { display: inline-flex; align-items: center; gap: 7px; }
.yc-mini-track { width: 48px; height: 6px; border-radius: 3px; background: var(--yc-bg); overflow: hidden; }
.yc-mini-fill { display: block; height: 100%; background: var(--yc-mark); border-radius: 0 3px 3px 0; transform-origin: left; animation: grow .5s var(--ease) both; }
.yc-mini-n { color: var(--text-2); min-width: 18px; text-align: right; }
.yc-skel-row { padding: 12px 0; }

/* Panels (trends, batches) */
.yc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.yc-panel {
  min-width: 0;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--panel);
  padding: 14px 16px 12px;
}
.yc-panel.wide { grid-column: 1 / -1; }
.yc-panel .p-h { margin-bottom: 4px; }
.yc-panel .p-h-n { font-weight: 400; letter-spacing: .04em; color: var(--text-4); }
.yc-panel.rising .p-h { color: var(--yc); }
.yc-panel.cooling .p-h { color: var(--yc-cool); }
.yc-panel-d { font-size: 12.5px; color: var(--text-3); margin-bottom: 10px; }
.yc-panel.p-skel { padding: 16px; }
.yc-sub-h { margin: 22px 0 10px; }
.yc-trow-h, .yc-trow {
  display: grid; grid-template-columns: minmax(0, 1fr) 120px 40px 64px; gap: 10px; align-items: center;
}
.yc-trow-h { font: 500 9.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-4); padding: 0 0 6px; border-bottom: 1px solid var(--border); }
.yc-trow-h .axis { display: flex; justify-content: space-between; text-transform: none; letter-spacing: 0; }
.yc-trow-h .c, .yc-trow-h > span:nth-child(3) { text-align: right; }
.yc-trows { list-style: none; margin: 0; padding: 0; }
.yc-trow { width: 100%; padding: 7px 0; text-align: left; border-bottom: 1px dashed var(--border); border-radius: 0; }
.yc-trows li:last-child .yc-trow { border-bottom: 0; }
.yc-trow:hover .yc-trow-tag { color: var(--text); text-decoration: underline; text-decoration-color: var(--text-4); text-underline-offset: 3px; }
.yc-trow-l { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.yc-trow-tag { font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yc-trow-ex { font: 400 11px/1.3 var(--mono); color: var(--text-4); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yc-trow-x { font: 500 12px/1 var(--mono); color: var(--text-2); text-align: right; }
.yc-trow-c { font: 400 11.5px/1 var(--mono); color: var(--text-3); text-align: right; white-space: nowrap; }
.yc-trow-c b { font-weight: 500; color: var(--text-2); }
.yc-trow-c .vs { color: var(--text-4); }
.yc-lift { position: relative; display: block; height: 8px; }
.yc-lift-mid { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--border-2); }
.yc-lift-fill { position: absolute; top: 0; bottom: 0; animation: grow .6s var(--ease) both; }
.yc-lift-fill.up { background: var(--yc-mark); border-radius: 0 4px 4px 0; transform-origin: left; }
.yc-lift-fill.down { background: var(--yc-cool); border-radius: 4px 0 0 4px; transform-origin: right; }

/* Batches */
.yc-chart { margin: 8px 0 0; }
.yc-plot { position: relative; height: 200px; margin: 18px 0 0 34px; }
.yc-grid-lines { position: absolute; inset: 0 0 22px 0; pointer-events: none; }
.yc-grid-lines .gl { position: absolute; left: 0; right: 0; height: 1px; background: var(--border); }
.yc-grid-lines .tick { position: absolute; right: calc(100% + 8px); top: -6px; font: 400 10.5px/1 var(--mono); color: var(--text-4); }
.yc-cols { position: absolute; inset: 0; display: flex; align-items: stretch; }
.yc-col { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; border-radius: 4px; }
.yc-col::before { content: ""; flex: 1; }
.yc-col-bar {
  position: relative; display: block; width: min(24px, 60%);
  background: var(--yc-mark); border-radius: 4px 4px 0 0;
  transform-origin: bottom; animation: rise .6s var(--ease) both;
  margin-bottom: 0;
}
.yc-cols { bottom: 0; }
.yc-col { padding-bottom: 22px; position: relative; }
.yc-col-x { position: absolute; bottom: 0; left: 0; right: 0; height: 22px; display: grid; place-items: center; font: 500 11px/1 var(--mono); color: var(--text-3); }
.yc-col-v { position: absolute; bottom: calc(100% + 5px); left: 50%; transform: translateX(-50%); font: 500 11px/1 var(--mono); color: var(--text-2); white-space: nowrap; }
.yc-col:hover { background: var(--hover); }
.yc-col:hover .yc-col-x, .yc-col.on .yc-col-x { color: var(--text); }
.yc-col:hover .yc-col-bar { filter: brightness(1.12); }
.yc-cap { margin-top: 10px; font-size: 12px; color: var(--text-3); }
.yc-batch-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.yc-batch-name { display: inline-flex; align-items: center; gap: 8px; font: 600 14px/1.2 var(--sans); color: var(--text); }
.yc-batch-name:hover { text-decoration: underline; text-decoration-color: var(--text-4); text-underline-offset: 3px; }
.yc-batch-n { font: 400 11.5px/1 var(--mono); color: var(--text-3); }
.yc-bar-row { grid-template-columns: minmax(0, 118px) 1fr 28px; }
.yc-bar-row .bar-fill { background: var(--yc-mark); border-radius: 0 4px 4px 0; }
.yc-bar-row:hover .bar-lbl { color: var(--text); }
.yc-batch-ind { margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--border); font: 400 11.5px/1.5 var(--mono); color: var(--text-3); }
@keyframes rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }

@media (max-width: 1099px) {
  .yc-view .pulse { display: none; } /* funding pulse strip is news-only; give YC Radar the room */
  .yc-strip { grid-template-columns: minmax(0, 1.1fr) repeat(2, minmax(0, 1fr)); }
  .yc-stat:first-child { grid-row: span 2; justify-content: center; }
  .yc-stat:first-child .yc-stat-v { font-size: 30px; }
  .yc-stat-v { font-size: 18px; }
}
@media (max-width: 900px) {
  .yc-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .yc-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yc-stat { padding: 10px 12px; }
  .yc-tab { padding: 9px 10px 11px; }
  .yc-tab .lbl-long { display: none; }
  .yc-tab .lbl-short { display: inline; }
  .yc-stat:first-child { grid-column: 1 / -1; grid-row: auto; }
  .yc-stat:first-child .yc-stat-v { font-size: 21px; }
  .yc-card { grid-template-columns: 40px minmax(0, 1fr); gap: 0 12px; margin: 0 -10px; padding: 14px 10px; }
  .yc-card + .yc-card::before { left: 10px; right: 10px; }
  .yc-rank { display: none; }
  .yc-head .yc-watch:not(.compact) { width: 28px; padding: 0; justify-content: center; }
  .yc-head .yc-watch span { display: none; }
  .yc-filters .spacer { display: none; }
  .yc-select { flex: 1 1 140px; max-width: none; min-width: 0; }
  .yc-sort { width: 100%; margin-top: 2px; }
  .yc-row { grid-template-columns: 32px minmax(0, 1fr); margin: 0 -10px; padding: 11px 10px; }
  .yc-row-side { grid-column: 2; margin-top: 7px; gap: 12px; }
  .yc-row-stat { min-width: 0; text-align: left; }
  .yc-row-side .yc-watch { margin-left: auto; }
  .yc-panel { padding: 12px 12px 10px; }
  .yc-trow-h, .yc-trow { grid-template-columns: minmax(0, 1fr) 64px 34px 52px; gap: 8px; }
  .yc-plot { height: 170px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
