:root {
  --canvas: #ffffff;
  --sidebar: #ffffff;
  --card: #ffffff;
  --card-strong: #1c1916;
  --text: #1c1915;
  --muted-v2: #6f6b64;
  --quiet: #99948b;
  --border: #e2ded7;
  --accent: #ef5747;
  --sidebar-w: 248px;
  --ui: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
html { scroll-behavior: smooth; }
body { color: var(--text); background: var(--canvas); font-family: var(--ui); font-size: 16px; line-height: 1.5; }
.topline { display: none; }
.shell { width: min(1120px, calc(100% - 64px)); }
.header { position: fixed; z-index: 20; inset: 0 auto 0 0; width: var(--sidebar-w); border: 0; border-right: 1px solid var(--border); color: var(--text); background: var(--sidebar); }
.header .shell { width: 100%; margin: 0; }
.header-inner { height: 100%; padding: 17px 13px 16px; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; }
.brand { min-height: 42px; padding: 0 4px; gap: 10px; }
.brand-mark { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; background: transparent; box-shadow: none; overflow: hidden; }
.brand-mark img { display: block; width: 31px; height: 31px; border-radius: 9px; }
.brand-name { color: var(--text); font: 600 16px/1 var(--ui); letter-spacing: -.025em; }
.side-nav { display: grid; gap: 3px; margin-top: 29px; }
.side-nav::before { content: "Workspace"; padding: 0 9px 8px; color: var(--quiet); font-size: 10px; letter-spacing: .02em; }
.side-nav a { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 10px; border-radius: 9px; color: #56524c; font-size: 13px; }
.side-nav a span { width: 17px; color: #77726b; font-size: 14px; text-align: center; }
.side-nav a:hover { background: #efede8; }
.side-nav a.active { color: var(--text); background: #e9e7e2; }
.side-foot { margin-top: auto; padding: 15px 10px 2px; border-top: 1px solid var(--border); display: grid; gap: 3px; }
.side-foot span { color: #514d47; font-size: 12px; }
.side-foot small { color: var(--quiet); font-size: 10px; }
main { min-height: calc(100vh - 62px); margin-left: var(--sidebar-w); padding: 0 0 60px; }
.intro { width: auto; margin: 0; padding: 47px 0 35px; color: var(--text); text-align: left; background: transparent; }
.intro::before, .intro::after { display: none; }
.workspace-label { margin-bottom: 15px; color: var(--quiet); font-size: 11px; letter-spacing: .01em; }
h1 { color: var(--text); font: 600 clamp(38px, 5vw, 52px)/1.04 var(--ui); letter-spacing: -.04em; }
.index-facts { width: 100%; margin: 0 0 22px; overflow: visible; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.fact { min-height: 128px; align-content: space-between; justify-items: start; padding: 18px; border: 1px solid var(--border); border-radius: 12px; text-align: left; background: var(--card); }
.fact + .fact { border-left: 1px solid var(--border); }
.fact:first-child { color: #fff; border-color: var(--card-strong); background: var(--card-strong); }
.fact-value { color: inherit; font: 500 32px/1 var(--ui); letter-spacing: -.04em; }
.fact-label { color: var(--muted-v2); font-size: 11px; letter-spacing: 0; text-transform: none; }
.fact:first-child .fact-label { color: #aaa49c; }
.demo-banner { margin: 0 0 22px; padding: 13px 15px; border: 1px solid var(--border); border-radius: 10px; color: #655f58; background: rgba(252,251,249,.72); font-size: 12px; }
.demo-banner svg { color: var(--accent); }
.leaderboard { border: 1px solid var(--border); border-radius: 12px; background: var(--card); box-shadow: none; }
.board-toolbar { min-height: 82px; padding: 17px 18px; border-bottom-color: var(--border); }
.board-title h2 { font: 600 20px/1.2 var(--ui); letter-spacing: -.025em; }
.count-pill { border-color: var(--border); color: #5d5952; background: #f1efeb; font-size: 10px; }
.search { width: min(275px, 27vw); }
.search input, .sort { height: 40px; border-color: var(--border); border-radius: 9px; color: var(--text); background: #fff; }
.search input:focus, .sort:focus { border-color: #aaa49a; box-shadow: 0 0 0 3px rgba(28,25,22,.07); }
thead { background: #f2f0ec; }
th { height: 44px; color: #7d7870; font-size: 9px; letter-spacing: .07em; }
th:nth-child(4) { color: var(--text); background: #ece9e4; border-bottom-color: var(--card-strong); }
td { height: 76px; border-top-color: #ece9e3; color: #514d47; font-size: 12px; }
td:nth-child(4) { background: #f7f5f1; }
.source-badge { border-color: var(--border); border-radius: 7px; color: #554f48; background: #f3f1ed; }
.source-badge:hover { border-color: #bdb7ae; background: #ece9e4; }
tbody tr:hover { background: #f2f0ec; }
tbody tr:hover td:nth-child(4) { background: #ece9e4; }
.rank { border-color: var(--border); color: #77726b; background: #f3f1ed; }
.company-mark { border: 1px solid var(--border); border-radius: 9px; color: #fff !important; background: var(--card-strong) !important; font: 500 15px/1 var(--ui); }
.company-name { color: var(--text); font-size: 13px; }
.company-name:hover { color: var(--accent); }
.company-description, .founder { color: var(--muted-v2); }
.estimate { color: var(--text); font-size: 13px; }
.board-foot { border-top-color: var(--border); color: var(--quiet); }
.method-note { max-width: 100%; margin: 18px 0 0; border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 8px; color: var(--muted-v2); background: rgba(252,251,249,.68); }
.method-note svg { color: var(--accent); }
footer { margin-left: var(--sidebar-w); padding: 18px 0 22px; border-top-color: var(--border); color: var(--quiet); background: var(--canvas); }
.footer-brand { color: #5d5851; font-family: var(--ui); }
@media (max-width: 900px) {
  :root { --sidebar-w: 0px; }
  .header { position: static; width: auto; height: 64px; border-right: 0; border-bottom: 1px solid var(--border); }
  .header-inner { height: 64px; padding: 0 20px; flex-direction: row; align-items: center; }
  .side-nav, .side-foot { display: none; }
  main, footer { margin-left: 0; }
  .shell { width: min(100% - 32px, 760px); }
  .intro { padding: 38px 0 30px; }
  .tools { width: 100%; }
  .search { flex: 1; width: auto; }
}
@media (max-width: 680px) {
  h1 { font-size: 38px; }
  .index-facts { grid-template-columns: 1fr; gap: 9px; }
  .fact { min-height: 96px; }
  .board-toolbar { align-items: stretch; }
  .tools { flex-direction: column; align-items: stretch; }
  .sort { width: 100%; }
  tbody { padding: 0 12px; }
  tbody tr { border-top-color: var(--border); }
  td[data-label]::before { color: var(--quiet); }
  td:nth-child(4) { background: transparent; }
  .company-mark { width: 34px; height: 34px; }
}

/* V8 white canvas and individual company mark colors */
:root { --canvas: #fff; --sidebar: #fff; --card: #fff; }
html, body, main, footer, .header, header, .index-facts, .fact, .leaderboard, .demo-banner, thead, td:nth-child(4), .method-note { background-color: #fff !important; }
.fact:first-child { color: var(--text) !important; border-color: var(--border) !important; }
.fact:first-child .fact-label { color: var(--muted-v2) !important; }
th:nth-child(4) { background-color: #fff !important; }
tbody tr:hover, tbody tr:hover td:nth-child(4) { background-color: #fff !important; }
tbody tr:nth-child(1) .company-mark { color: #5663d8 !important; background: #eceeff !important; border-color: #d9ddff !important; }
tbody tr:nth-child(2) .company-mark { color: #25846d !important; background: #e5f5ef !important; border-color: #d1ebdf !important; }
tbody tr:nth-child(3) .company-mark { color: #a85536 !important; background: #fff0e8 !important; border-color: #f5ddcf !important; }
tbody tr:nth-child(4) .company-mark { color: #3974b6 !important; background: #eaf2fc !important; border-color: #d5e4f5 !important; }
tbody tr:nth-child(5) .company-mark { color: #8a6b25 !important; background: #f8f1dd !important; border-color: #eee2bc !important; }
tbody tr:nth-child(6) .company-mark { color: #ca5a56 !important; background: #fcece9 !important; border-color: #f2d8d4 !important; }
tbody tr:nth-child(7) .company-mark { color: #7350a8 !important; background: #f1ebf9 !important; border-color: #e2d8f0 !important; }
tbody tr:nth-child(8) .company-mark { color: #33754a !important; background: #e8f4e9 !important; border-color: #d4e8d7 !important; }

/* V10: full-width top navigation, flat ranks, and vivid company icons */
:root { --sidebar-w: 0px; }
.header {
  position: sticky; inset: auto; top: 0; z-index: 30; width: 100%; height: auto;
  border-right: 0; border-bottom: 1px solid var(--border); background: #fff;
}
.header .shell { width: min(1120px, calc(100% - 64px)); margin: 0 auto; }
.header-inner {
  height: 68px; padding: 0; display: flex; flex-direction: row;
  align-items: center; justify-content: space-between;
}
.side-nav { display: flex !important; align-items: center; gap: 17px; margin: 0 0 0 auto; }
.side-nav::before { display: none; content: none; }
.side-nav a { min-height: 38px; padding: 0 4px; border-radius: 0; background: transparent; }
.side-nav a span { width: auto; }
.side-nav a.active { color: var(--text); background: transparent; border-bottom: 2px solid var(--accent); }
.side-nav a:hover { background: #f7f6f3; }
.side-foot { display: none !important; }
main, footer { margin-left: 0; }
.rank {
  width: 30px !important; height: 30px !important;
  padding-left: 22px !important; border: 0 !important; border-radius: 0 !important;
  color: #858078 !important; background: transparent !important; text-align: left !important;
  font-size: 12px !important;
}
.rank[data-position] { border-color: transparent !important; background: transparent !important; }
.rank-mobile {
  width: auto !important; height: auto !important; flex-basis: auto !important;
  border: 0 !important; border-radius: 0 !important; color: var(--quiet) !important;
  background: transparent !important; font-size: 10px !important;
}
tbody tr:nth-child(1) .company-mark { color: #fff !important; background: #4f46e5 !important; border-color: #4f46e5 !important; }
tbody tr:nth-child(2) .company-mark { color: #fff !important; background: #008b6e !important; border-color: #008b6e !important; }
tbody tr:nth-child(3) .company-mark { color: #fff !important; background: #d35428 !important; border-color: #d35428 !important; }
tbody tr:nth-child(4) .company-mark { color: #fff !important; background: #1976d2 !important; border-color: #1976d2 !important; }
tbody tr:nth-child(5) .company-mark { color: #fff !important; background: #b77900 !important; border-color: #b77900 !important; }
tbody tr:nth-child(6) .company-mark { color: #fff !important; background: #d93d4e !important; border-color: #d93d4e !important; }
tbody tr:nth-child(7) .company-mark { color: #fff !important; background: #7341c6 !important; border-color: #7341c6 !important; }
tbody tr:nth-child(8) .company-mark { color: #fff !important; background: #27834a !important; border-color: #27834a !important; }

@media (max-width: 900px) {
  .header { position: sticky; width: 100%; height: auto; border-right: 0; }
  .header .shell { width: min(100% - 32px, 760px); }
  .header-inner { height: 64px; padding: 0; flex-direction: row; }
  .side-nav { display: flex !important; }
}
@media (max-width: 680px) {
  .header-inner { min-height: 64px; height: auto; padding: 9px 0; flex-wrap: wrap; gap: 8px; }
  .side-nav { order: 2; width: 100%; margin: 0; justify-content: space-between; gap: 8px; }
  .side-nav a { min-height: 30px; padding: 0 2px; font-size: 11px; white-space: nowrap; }
  .side-nav a span { display: none; }
  main, footer { margin-left: 0; }
}

/* V24: pure white page canvas */
:root { --canvas: #fff; --sidebar: #fff; }
html, body, main, footer, header, .header { background-color: #fff !important; }
.intro, .index-facts { background-color: transparent !important; }
.brand-name { font-size: 24px !important; }

/* V13 update: centered title, recent listings, founder portraits, and MRR-only table */
.intro { text-align: center !important; }
.intro h1 { max-width: 1000px; margin-right: auto; margin-left: auto; text-align: center; }
.recently-listed { margin: 0 0 22px; padding: 17px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.recently-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 13px; }
.recently-heading { display: flex; align-items: center; gap: 10px; min-width: 0; }
.recently-heading h2 { margin: 0; color: var(--text); font: 500 18px/1.2 var(--ui); letter-spacing: -.02em; white-space: nowrap; }
.recently-heading > span { color: var(--quiet); font-size: 11px; }
.recently-search { width: min(320px, 40%); }
.recent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.recent-card { display: flex; align-items: center; gap: 9px; min-width: 0; min-height: 63px; padding: 9px 10px; border: 1px solid var(--border); border-radius: 9px; background: #fff; transition: border-color .16s ease, background .16s ease; }
.recent-card:hover { border-color: #c8c2b8; background: #f8f7f4; }
.recent-card[hidden] { display: none; }
.recent-card .company-mark { width: 32px; height: 32px; flex: 0 0 32px; border: 0; border-radius: 9px; color: #fff !important; font-size: 13px; }
.recent-card:nth-child(1) .company-mark { background: #4f46e5 !important; }
.recent-card:nth-child(2) .company-mark { background: #008b6e !important; }
.recent-card:nth-child(3) .company-mark { background: #d35428 !important; }
.recent-card:nth-child(4) .company-mark { background: #1976d2 !important; }
.recent-card:nth-child(5) .company-mark { background: #b77900 !important; }
.recent-card:nth-child(6) .company-mark { background: #d93d4e !important; }
.recent-copy { display: grid; gap: 3px; min-width: 0; flex: 1; }
.recent-name { overflow: hidden; color: var(--text); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.recent-founder { display: flex; align-items: center; gap: 6px; overflow: hidden; color: var(--muted-v2); font-size: 9px; white-space: nowrap; }
.recent-founder .founder-photo { width: 19px; height: 19px; flex-basis: 19px; }
.recent-mrr { color: var(--muted-v2); font-size: 9px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.founder { display: flex; align-items: center; gap: 8px; }
.founder-photo { display: block; width: 30px; height: 30px; flex: 0 0 30px; border: 1px solid var(--border); border-radius: 50%; object-fit: cover; }
th:nth-child(4) { min-width: 185px; color: var(--text); text-align: right; padding-right: 25px; background: #ece9e4 !important; border-bottom-color: var(--card-strong); }
td:nth-child(4) { padding-right: 25px; text-align: right; background: #f7f5f1 !important; }
th:last-child { min-width: 130px; }
td:nth-child(5) { text-align: left; background: #fff !important; }
tbody tr:hover td:nth-child(4) { background: #ece9e4 !important; }
.board-toolbar .tools { width: auto; }
@media (max-width: 900px) {
  .recently-search { width: min(320px, 45%); }
}
@media (max-width: 680px) {
  .recently-listed { padding: 13px; }
  .recently-head { align-items: stretch; flex-direction: column; gap: 12px; }
  .recently-heading { justify-content: space-between; }
  .recently-search { width: 100%; }
  .recent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recent-card { flex-wrap: wrap; }
  .recent-mrr { margin-left: 41px; }
  .founder { gap: 7px; }
  .founder-photo { width: 26px; height: 26px; flex-basis: 26px; }
  td:nth-child(4) { padding-right: 4px; text-align: left; background: transparent !important; }
  td:nth-child(5) { background: transparent !important; }
  th:nth-child(4) { text-align: left; }
}
@media (max-width: 430px) {
  .recent-grid { grid-template-columns: 1fr; }
  .recent-card { flex-wrap: nowrap; }
  .recent-mrr { margin-left: 0; }
}

/* V21: move search to a centered row above the leaderboard table */
.board-search { display: flex; justify-content: center; padding: 14px 20px; border-bottom: 1px solid var(--border); background: var(--card); }
.board-search .search { width: min(420px, 100%); }
@media (max-width: 680px) {
  .board-search { padding: 12px 16px; }
}

/* V23: turn today's listings into a scannable card grid */
.today-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
  padding: 14px; background: #fff;
}
.today-card {
  min-width: 0; display: grid; grid-template-rows: auto 1fr auto; gap: 12px;
  padding: 15px; border: 1px solid #e7e5df; border-radius: 12px; background: #fff;
  box-shadow: 0 3px 12px rgba(35, 42, 36, .045); transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.today-card:hover { transform: translateY(-2px); border-color: #d4d9d1; box-shadow: 0 8px 20px rgba(35, 42, 36, .08); }
.today-brand { min-width: 0; display: flex; align-items: center; gap: 10px; }
.today-brand .company-mark { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 11px; color: #fff !important; font-size: 15px; }
.today-card:nth-child(1) .company-mark { background: #4f46e5 !important; border-color: #4f46e5 !important; }
.today-card:nth-child(2) .company-mark { background: #008b6e !important; border-color: #008b6e !important; }
.today-card:nth-child(3) .company-mark { background: #d35428 !important; border-color: #d35428 !important; }
.today-card:nth-child(4) .company-mark { background: #1976d2 !important; border-color: #1976d2 !important; }
.today-card:nth-child(5) .company-mark { background: #b77900 !important; border-color: #b77900 !important; }
.today-card:nth-child(6) .company-mark { background: #d93d4e !important; border-color: #d93d4e !important; }
.today-brand-copy { min-width: 0; display: grid; gap: 3px; }
.today-brand-copy strong { overflow: hidden; color: var(--text); font-size: 13px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.today-brand-copy small { overflow: hidden; color: var(--quiet); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.today-rank { align-self: start; margin-left: auto; color: #aaa59d; font-size: 10px; font-variant-numeric: tabular-nums; }
.today-card-metrics { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 12px 0; border-top: 1px solid #efede8; border-bottom: 1px solid #efede8; }
.today-founder { min-width: 0; display: flex; align-items: center; gap: 8px; color: var(--muted-v2); }
.today-founder .founder-photo { width: 29px; height: 29px; flex: 0 0 29px; }
.today-founder-copy { min-width: 0; display: grid; gap: 2px; }
.today-founder-copy small, .today-mrr > span { color: var(--quiet); font-size: 8px; letter-spacing: .06em; text-transform: uppercase; }
.today-founder-copy strong { overflow: hidden; color: var(--text); font-size: 10px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.today-mrr { display: grid; justify-items: end; gap: 4px; padding: 8px 10px; border-radius: 8px; color: #ae4a2a; background: #fff4ef; text-align: right; white-space: nowrap; }
.today-mrr strong { font-size: 14px; font-weight: 400; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.today-mrr > span { color: #9e6a58; font-size: 7px; }
.today-card-source { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--quiet); font-size: 9px; }
.today-card-source .source-badge { white-space: nowrap; }
.today-card a:focus-visible { outline: 3px solid rgba(78, 92, 255, .22); outline-offset: 3px; border-radius: 4px; }
@media (max-width: 900px) {
  .today-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .today-grid { grid-template-columns: 1fr; gap: 10px; padding: 11px; }
  .today-card { padding: 14px; }
}
@media (max-width: 360px) {
  .today-card-metrics { grid-template-columns: 1fr; }
  .today-mrr { justify-items: start; text-align: left; }
}

/* V22: source line and leaderboard-style daily listings */
.hero-sources {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 7px;
  margin: 17px auto 0; color: var(--muted-v2); font-size: 11px; line-height: 1.4;
}
.hero-sources .source-label { margin-right: 1px; color: var(--text); font-weight: 500; }
.source-chip {
  display: inline-flex; align-items: center; min-height: 28px; padding: 4px 10px;
  border: 1px solid #cfe2f3; border-radius: 7px; color: #315f7e;
  background: #eef7ff; font-weight: 400; white-space: nowrap;
}
.today-listings {
  margin: 0 0 22px; overflow: hidden; border: 1px solid var(--border);
  border-radius: 12px; background: #fff;
}
.today-list-top {
  min-height: 73px; display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding: 15px 18px; border-bottom: 1px solid var(--border);
}
.today-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.today-heading h2 { margin: 0; color: var(--text); font: 500 19px/1.2 var(--ui); letter-spacing: -.025em; }
.today-heading time { color: var(--quiet); font-size: 11px; }
.today-count {
  display: inline-flex; align-items: center; min-height: 25px; padding: 0 9px;
  border: 1px solid #f2d8cd; border-radius: 99px; color: #b54b29;
  background: #fff4ef; font-size: 10px; white-space: nowrap;
}
.today-list { width: 100%; }
.today-columns, .today-row {
  display: grid; grid-template-columns: minmax(220px, 1.7fr) minmax(160px, 1.1fr) minmax(125px, .8fr) minmax(125px, .75fr);
  align-items: center; column-gap: 18px;
}
.today-columns {
  min-height: 39px; padding: 0 18px; color: #7d7870; background: #f2f0ec;
  font-size: 9px; letter-spacing: .07em; text-transform: uppercase;
}
.today-row {
  min-height: 68px; padding: 10px 18px; border-top: 1px solid #ece9e3;
  color: #514d47; font-size: 12px; transition: background .16s ease;
}
.today-row:first-of-type { border-top: 0; }
.today-row:hover { background: #f8f7f4; }
.today-row[hidden] { display: none; }
.today-company { min-width: 0; display: flex; align-items: center; gap: 11px; }
.today-company .company-mark { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 9px; color: #fff !important; font-size: 14px; }
.today-row:nth-child(2) .company-mark { background: #4f46e5 !important; border-color: #4f46e5 !important; }
.today-row:nth-child(3) .company-mark { background: #008b6e !important; border-color: #008b6e !important; }
.today-row:nth-child(4) .company-mark { background: #d35428 !important; border-color: #d35428 !important; }
.today-row:nth-child(5) .company-mark { background: #1976d2 !important; border-color: #1976d2 !important; }
.today-row:nth-child(6) .company-mark { background: #b77900 !important; border-color: #b77900 !important; }
.today-row:nth-child(7) .company-mark { background: #d93d4e !important; border-color: #d93d4e !important; }
.today-company > span:last-child { min-width: 0; display: grid; gap: 3px; }
.today-company strong { overflow: hidden; color: var(--text); font-size: 12px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.today-company small { overflow: hidden; color: var(--quiet); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.today-founder { min-width: 0; display: flex; align-items: center; gap: 8px; color: var(--muted-v2); white-space: nowrap; }
.today-founder .founder-photo { width: 27px; height: 27px; flex-basis: 27px; }
.today-mrr { color: var(--text); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.today-source { justify-self: start; white-space: nowrap; }
@media (max-width: 760px) {
  .hero-sources { max-width: 520px; padding: 0 16px; font-size: 11px; }
  .today-list-top { min-height: 66px; padding: 13px 14px; }
  .today-columns { display: none; }
  .today-row {
    grid-template-columns: minmax(0, 1fr) auto; gap: 9px 14px;
    min-height: 104px; padding: 14px;
  }
  .today-company { grid-column: 1; grid-row: 1; }
  .today-founder { grid-column: 1; grid-row: 2; padding-left: 47px; }
  .today-mrr { grid-column: 2; grid-row: 1; text-align: right; }
  .today-source { grid-column: 2; grid-row: 2; justify-self: end; }
}
@media (max-width: 430px) {
  .today-heading { gap: 5px 9px; }
  .today-heading h2 { font-size: 17px; }
  .today-count { font-size: 9px; }
  .today-row { grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; }
  .today-company small { max-width: 150px; }
}

/* Keep the V23 card styling ahead of legacy daily-list selectors. */
.today-card-head { display: flex; align-items: flex-start; gap: 8px; }
.today-card .today-founder { color: var(--muted-v2); white-space: nowrap; }
.today-card .today-founder .founder-photo { width: 29px; height: 29px; flex: 0 0 29px; }
.today-card .today-mrr { color: #ae4a2a; font-size: 14px; }
.today-card .today-mrr strong { font-size: 14px; }
.today-card .today-mrr > span { color: #9e6a58; font-size: 7px; }

/* V25: larger daily card text and a calm green MRR highlight */
.today-list-top { flex-wrap: wrap; }
.today-heading h2 { font-size: 25px; }
.today-heading time { font-size: 14px; }
.today-count { min-height: 29px; padding: 0 11px; font-size: 13px; }
.today-card .today-brand .company-mark { width: 48px; height: 48px; flex-basis: 48px; font-size: 20px; }
.today-card .today-brand-copy strong { font-size: 17px; }
.today-card .today-brand-copy small { font-size: 12px; }
.today-card .today-rank { font-size: 13px; }
.today-card .today-founder-copy small { font-size: 10px; }
.today-card .today-founder-copy strong { font-size: 13px; }
.today-card .today-mrr { padding: 9px 12px; border: 1px solid #d6e9db; color: #256b45; background: #eff8f1; }
.today-card .today-mrr strong { font-size: 18px; }
.today-card .today-mrr > span { color: #507b5e; font-size: 9px; }
.today-card .today-card-source { font-size: 12px; }
.today-card .today-card-source .source-badge { padding: 6px 11px; font-size: 13px; }

/* V26: larger leaderboard typography with green estimated MRR pills */
th { font-size: 13px; }
td { font-size: 17px; }
.rank { font-size: 13px !important; }
.rank-mobile { font-size: 13px !important; }
.company-mark { width: 48px; height: 48px; flex-basis: 48px; font-size: 20px; }
.company-name { font-size: 17px; }
.company-description { font-size: 13px; }
.founder { font-size: 16px; }
.source-badge { padding: 6px 11px; font-size: 13px; }
.estimate {
  align-items: baseline; padding: 9px 12px; border: 1px solid #d6e9db; border-radius: 8px;
  color: #256b45; background: #eff8f1; font-size: 18px; white-space: nowrap;
}
.estimate small { color: #507b5e; font-size: 12px; }
.board-foot { font-size: 13px; }
@media (max-width: 760px) {
  td { font-size: 17px; }
  td[data-label]::before { font-size: 10px; }
  .company-mark { width: 44px; height: 44px; flex-basis: 44px; font-size: 19px; }
  .estimate { font-size: 16px; }
  .estimate small { font-size: 11px; }
  .board-foot { font-size: 12px; }
}

/* V27: reduce text inside the daily listings and leaderboard by 10% */
.today-listings .today-heading h2 { font-size: 22.5px; }
.today-listings .today-heading time { font-size: 12.6px; }
.today-listings .today-count { font-size: 11.7px; }
.today-listings .today-card .today-brand .company-mark { font-size: 18px; }
.today-listings .today-card .today-brand-copy strong { font-size: 15.3px; }
.today-listings .today-card .today-brand-copy small { font-size: 10.8px; }
.today-listings .today-card .today-rank { font-size: 11.7px; }
.today-listings .today-card .today-founder { font-size: 10.8px; }
.today-listings .today-card .today-founder-copy small { font-size: 9px; }
.today-listings .today-card .today-founder-copy strong { font-size: 11.7px; }
.today-listings .today-card .today-mrr { font-size: 12.6px; }
.today-listings .today-card .today-mrr strong { font-size: 16.2px; }
.today-listings .today-card .today-mrr > span { font-size: 8.1px; }
.today-listings .today-card .today-card-source { font-size: 10.8px; }
.today-listings .today-card .today-card-source .source-badge { font-size: 11.7px; }

.leaderboard .board-title h2 { font-size: 18.9px; }
.leaderboard .count-pill { font-size: 9px; }
.leaderboard .search input { font-size: 10.8px; }
.leaderboard .sort { font-size: 9.9px; }
.leaderboard th { font-size: 11.7px; }
.leaderboard td { font-size: 15.3px; }
.leaderboard .rank,
.leaderboard .rank-mobile { font-size: 11.7px !important; }
.leaderboard .company-mark { font-size: 18px; }
.leaderboard .company-name { font-size: 15.3px; }
.leaderboard .company-description { font-size: 11.7px; }
.leaderboard .founder { font-size: 14.4px; }
.leaderboard .source-badge { font-size: 11.7px; }
.leaderboard .estimate { font-size: 16.2px; }
.leaderboard .estimate small { font-size: 10.8px; }
.leaderboard .empty-row { font-size: 10.8px; }
.leaderboard .board-foot { font-size: 11.7px; }
@media (max-width: 760px) {
  .leaderboard .company-mark { font-size: 17.1px; }
  .leaderboard td[data-label]::before { font-size: 9px; }
  .leaderboard .estimate { font-size: 14.4px; }
  .leaderboard .estimate small { font-size: 9.9px; }
  .leaderboard .board-foot { font-size: 10.8px; }
}

/* V28: enlarge other listing and leaderboard text by 10%; keep MRR values steady */
.today-listings .today-heading h2 { font-size: 24.75px; }
.today-listings .today-heading time { font-size: 13.86px; }
.today-listings .today-count { font-size: 12.87px; }
.today-listings .today-card .today-brand .company-mark { font-size: 19.8px; }
.today-listings .today-card .today-brand-copy strong { font-size: 16.83px; }
.today-listings .today-card .today-brand-copy small { font-size: 11.88px; }
.today-listings .today-card .today-rank { font-size: 12.87px; }
.today-listings .today-card .today-founder { font-size: 11.88px; }
.today-listings .today-card .today-founder-copy small { font-size: 9.9px; }
.today-listings .today-card .today-founder-copy strong { font-size: 12.87px; }
.today-listings .today-card .today-mrr { font-size: 13.86px; }
.today-listings .today-card .today-mrr strong { font-size: 16.2px; }
.today-listings .today-card .today-mrr > span { font-size: 8.91px; }
.today-listings .today-card .today-card-source { font-size: 11.88px; }
.today-listings .today-card .today-card-source .source-badge { font-size: 12.87px; }

.leaderboard .board-title h2 { font-size: 20.79px; }
.leaderboard .count-pill { font-size: 9.9px; }
.leaderboard .search input { font-size: 11.88px; }
.leaderboard .sort { font-size: 10.89px; }
.leaderboard th { font-size: 12.87px; }
.leaderboard td { font-size: 16.83px; }
.leaderboard .rank,
.leaderboard .rank-mobile { font-size: 12.87px !important; }
.leaderboard .company-mark { font-size: 19.8px; }
.leaderboard .company-name { font-size: 16.83px; }
.leaderboard .company-description { font-size: 12.87px; }
.leaderboard .founder { font-size: 15.84px; }
.leaderboard .source-badge { font-size: 12.87px; }
.leaderboard .estimate { font-size: 16.2px; }
.leaderboard .estimate small { font-size: 10.8px; }
.leaderboard .empty-row { font-size: 11.88px; }
.leaderboard .board-foot { font-size: 12.87px; }
@media (max-width: 760px) {
  .leaderboard .company-mark { font-size: 18.81px; }
  .leaderboard td[data-label]::before { font-size: 9.9px; }
  .leaderboard .estimate { font-size: 14.4px; }
  .leaderboard .estimate small { font-size: 9.9px; }
  .leaderboard .board-foot { font-size: 11.88px; }
}

/* V28 mobile repair: prevent enlarged content from crowding narrow screens */
@media (max-width: 680px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  .shell, .header .shell { width: min(100% - 28px, 600px); }
  .header-inner { padding: 10px 0; gap: 9px; }
  .brand { min-width: 0; }
  .brand-name { font-size: 22px !important; }
  .side-nav {
    width: 100%; justify-content: flex-start; gap: 7px; overflow-x: auto;
    padding: 0 0 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .side-nav::-webkit-scrollbar { display: none; }
  .side-nav a { flex: 0 0 auto; padding: 0 7px; font-size: 10px; }
  .intro { padding: 40px 14px 48px; }
  .intro h1 { font-size: clamp(32px, 9.5vw, 42px); line-height: 1.08; }
  .hero-sources { padding: 0; gap: 6px; }
  .source-chip { min-height: 26px; padding: 3px 8px; }

  .today-list-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 13px 14px; gap: 8px 12px; }
  .today-heading { min-width: 0; gap: 4px 8px; }
  .today-listings .today-heading h2 { font-size: 21px; }
  .today-listings .today-heading time { font-size: 12px; }
  .today-count { align-self: center; }
  .today-grid { grid-template-columns: 1fr; gap: 10px; padding: 10px; }
  .today-card { min-width: 0; padding: 13px; }
  .today-brand-copy { min-width: 0; }
  .today-brand-copy strong, .today-brand-copy small { max-width: 100%; }
  .today-card-source { flex-wrap: wrap; }
  .today-card-source .source-badge { max-width: 100%; white-space: normal; text-align: right; }

  .board-toolbar { padding: 14px; }
  .board-title { display: flex; flex-wrap: wrap; margin-bottom: 10px; }
  .tools { display: block; }
  .sort { width: 100%; min-width: 0; }
  .board-search { padding: 11px 14px; }
  .leaderboard tbody { padding: 0 10px; }
  .leaderboard tbody tr {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4px 10px; padding: 14px 3px;
  }
  .leaderboard td { min-width: 0; padding: 5px 3px; overflow-wrap: anywhere; }
  .leaderboard td:nth-child(2) { grid-column: 1 / -1; padding-bottom: 9px; }
  .leaderboard td:nth-child(3) { grid-column: 1 / -1; padding-left: 3px; }
  .leaderboard td:nth-child(4) { grid-column: 1; }
  .leaderboard td:nth-child(5) { grid-column: 2; }
  .leaderboard .company-cell { min-width: 0; align-items: flex-start; }
  .leaderboard .company-info { min-width: 0; }
  .leaderboard .company-description { max-width: 100%; overflow-wrap: anywhere; }
  .leaderboard .founder { display: flex; flex-wrap: wrap; padding-left: 3px; white-space: normal; }
  .leaderboard .founder::before { flex: 0 0 100%; }
  .leaderboard .estimate { max-width: 100%; padding: 8px 9px; }
  .leaderboard .source-cell { min-width: 0; }
  .leaderboard .source-badge { max-width: 100%; padding: 6px 8px; white-space: normal; line-height: 1.3; }
  .leaderboard .board-foot { min-height: 0; flex-wrap: wrap; gap: 4px 12px; padding: 12px 14px; }
}

@media (max-width: 460px) {
  .shell, .header .shell { width: calc(100% - 22px); }
  .today-list-top { grid-template-columns: 1fr; }
  .today-count { justify-self: start; }
  .today-card-metrics { grid-template-columns: 1fr; align-items: stretch; }
  .today-card .today-mrr { justify-items: start; text-align: left; }
  .leaderboard .company-mark { width: 40px; height: 40px; flex-basis: 40px; }
  .leaderboard .rank-mobile { margin-left: 5px; }
  .leaderboard .founder-photo { width: 27px; height: 27px; flex-basis: 27px; }
  .leaderboard td:nth-child(4), .leaderboard td:nth-child(5) { grid-column: 1 / -1; }
  .leaderboard .estimate, .leaderboard .source-badge { width: auto; }
}

/* V29: replace the spreadsheet table with a ranked card leaderboard */
.leaderboard { overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.leaderboard .board-toolbar {
  min-height: 88px; padding: 17px 20px; border: 1px solid var(--border); border-radius: 14px 14px 0 0;
  background: #fff;
}
.leaderboard .board-title { min-width: 0; align-items: flex-start; margin: 0; }
.board-title-copy { min-width: 0; display: grid; gap: 5px; }
.board-title-copy p { margin: 0; color: var(--quiet); font-size: 11.88px; line-height: 1.4; }
.leaderboard .count-pill { margin-top: 2px; }
.leaderboard .board-search { border-right: 1px solid var(--border); border-left: 1px solid var(--border); }
.leaderboard .table-scroll {
  overflow: visible; padding: 14px; border-right: 1px solid var(--border); border-left: 1px solid var(--border);
  background: #f7f6f3;
}
.leaderboard table, .leaderboard tbody { display: block; width: 100%; }
.leaderboard thead { display: none; }
.leaderboard tbody { display: grid; gap: 10px; padding: 0; }
.leaderboard tbody tr {
  position: relative; display: grid; grid-template-columns: 52px minmax(180px, 1.4fr) minmax(140px, .9fr) minmax(112px, .65fr) minmax(150px, .95fr) minmax(120px, .75fr);
  align-items: center; width: 100%; min-height: 94px; overflow: hidden; border: 1px solid #e3e0d9; border-left: 4px solid #d8d4cc;
  border-radius: 12px; background: #fff; box-shadow: 0 3px 10px rgba(36, 34, 31, .035);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.leaderboard tbody tr:nth-child(1) { border-left-color: #4f46e5; }
.leaderboard tbody tr:nth-child(2) { border-left-color: #008b6e; }
.leaderboard tbody tr:nth-child(3) { border-left-color: #d35428; }
.leaderboard tbody tr:hover {
  z-index: 1; transform: translateY(-2px); border-color: #cfcbc3;
  box-shadow: 0 9px 22px rgba(36, 34, 31, .075);
}
.leaderboard tbody tr > td {
  display: block !important; width: auto !important; height: auto; min-width: 0; padding: 15px 13px;
  border: 0; color: #514d47; background: transparent !important; white-space: normal;
}
.leaderboard tbody tr > td.rank {
  display: grid !important; width: auto !important; height: auto !important; padding: 0 0 0 18px !important;
  color: #8b867e !important; font-size: 22px !important; font-variant-numeric: tabular-nums;
}
.leaderboard .company-cell { min-width: 0; }
.leaderboard .company-mark { width: 48px; height: 48px; flex-basis: 48px; }
.leaderboard .company-description { max-width: 340px; line-height: 1.45; }
.leaderboard .founder { min-width: 0; padding-left: 8px; white-space: normal; }
.leaderboard .estimate { justify-content: center; min-width: 0; padding: 9px 11px; }
.leaderboard .source-cell { padding-right: 18px; }
.leaderboard .source-badge { width: 100%; text-align: center; line-height: 1.3; white-space: normal; }
.leaderboard .board-foot {
  min-height: 50px; padding: 0 20px; border: 1px solid var(--border); border-radius: 0 0 14px 14px; background: #fff;
}

@media (max-width: 1240px) {
  .leaderboard tbody tr {
    grid-template-columns: minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1fr);
    gap: 2px 10px; padding: 12px 14px 12px 68px;
  }
  .leaderboard tbody tr > td.rank { position: absolute; top: 22px; left: 0; width: 58px !important; padding-left: 17px !important; }
  .leaderboard tbody tr > td:nth-child(2) { grid-column: 1 / -1; padding: 4px 5px 12px; }
  .leaderboard tbody tr > td:nth-child(3) { grid-column: 1; padding: 9px 5px; }
  .leaderboard tbody tr > td:nth-child(4) { grid-column: 2; padding: 9px 5px; }
  .leaderboard tbody tr > td:nth-child(5) { grid-column: 3; padding: 9px 5px; }
  .leaderboard tbody tr > td:nth-child(6) { grid-column: 1 / -1; padding: 8px 5px 4px; }
  .leaderboard .source-cell { padding-right: 5px; }
}

@media (max-width: 680px) {
  .leaderboard .board-toolbar { display: grid; gap: 13px; border-radius: 12px 12px 0 0; }
  .leaderboard .board-title { flex-wrap: wrap; gap: 8px 12px; }
  .leaderboard .tools { width: 100%; }
  .leaderboard .table-scroll { padding: 10px; }
  .leaderboard tbody { gap: 9px; }
  .leaderboard tbody tr { grid-template-columns: 1fr 1fr; gap: 4px 10px; padding: 13px 11px; }
  .leaderboard tbody tr > td.rank { display: none !important; }
  .leaderboard tbody tr > td:nth-child(2) { grid-column: 1 / -1; padding: 3px 2px 9px; }
  .leaderboard tbody tr > td:nth-child(3) { grid-column: 1; padding: 5px 2px; }
  .leaderboard tbody tr > td:nth-child(4) { grid-column: 2; padding: 5px 2px; }
  .leaderboard tbody tr > td:nth-child(5) { grid-column: 1; padding: 6px 2px; }
  .leaderboard tbody tr > td:nth-child(6) { grid-column: 2; padding: 6px 2px; }
  .leaderboard .company-mark { width: 42px; height: 42px; flex-basis: 42px; }
  .leaderboard .founder { padding-left: 2px; }
  .leaderboard .estimate { justify-content: flex-start; width: max-content; max-width: 100%; }
  .leaderboard .source-badge { width: auto; max-width: 100%; }
}

@media (max-width: 460px) {
  .board-title-copy p { font-size: 10.8px; }
  .leaderboard .table-scroll { padding: 8px; }
  .leaderboard tbody tr { grid-template-columns: 1fr; padding: 12px 10px; }
  .leaderboard tbody tr > td:nth-child(2),
  .leaderboard tbody tr > td:nth-child(3),
  .leaderboard tbody tr > td:nth-child(4),
  .leaderboard tbody tr > td:nth-child(5),
  .leaderboard tbody tr > td:nth-child(6) { grid-column: 1; }
  .leaderboard .estimate, .leaderboard .source-badge { width: fit-content; }
  .leaderboard .board-foot { align-items: flex-start; flex-direction: column; padding: 11px 14px; }
}

/* V29 category column: center it between Founder and MRR */
.leaderboard .category-cell { padding-left: 8px; }
.category-table-chip {
  display: inline-flex; min-height: 38px; align-items: center; justify-content: center;
  padding: 7px 11px; border: 1px solid #b8d5f5; border-radius: 8px;
  color: #24598e; background: #eaf3ff; font-size: 16.2px; line-height: 1.2; white-space: nowrap;
}
@media (max-width: 760px) {
  .category-table-chip { min-height: 34px; padding: 6px 9px; font-size: 14.4px; }
}

/* V29 alignment and matching text size for founder, category, and revenue */
.leaderboard tbody tr { grid-template-columns: 52px minmax(180px, 1.35fr) minmax(150px, 1fr) minmax(108px, .65fr) minmax(155px, 1fr) minmax(120px, .75fr); }
.leaderboard tbody tr > td.category-cell { padding-left: 0; padding-right: 0; text-align: center; }
.leaderboard .founder, .leaderboard .estimate, .category-table-chip { font-size: 15.84px; }
.category-table-chip { min-height: 38px; }
.leaderboard tbody tr > td.category-cell .category-table-chip { margin-inline: auto; }
@media (max-width: 1240px) {
  .leaderboard tbody tr { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .leaderboard .founder, .leaderboard .estimate, .category-table-chip { font-size: 15.84px; }
  .category-table-chip { min-height: 36px; }
}

/* V29 category tags */
.category-chip {
  display: inline-flex; width: fit-content; max-width: 100%; align-items: center; justify-self: start;
  padding: 3px 8px; border: 1px solid #d8e4f2; border-radius: 999px; color: #42617f;
  background: #f0f6fc; font-size: 10px; font-weight: 500; line-height: 1.25; white-space: nowrap;
}
.today-brand-copy .category-chip { padding: 2px 7px; font-size: 9px; }
.leaderboard .company-info .category-chip { margin-top: 1px; }

@media (max-width: 460px) {
  .today-brand-copy .category-chip { font-size: 9px; }
  .leaderboard .company-info .category-chip { font-size: 10px; }
}

/* V29 mobile repair after adding the Category column */
@media (max-width: 680px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  .shell, .header .shell { width: calc(100% - 28px); }
  .leaderboard .board-toolbar { padding: 14px; }
  .leaderboard .board-title { margin: 0; }
  .leaderboard .tools { display: block; }
  .leaderboard .sort { width: 100%; }
  .leaderboard .board-search { padding: 11px 14px; }
  .leaderboard .search { width: 100%; }
  .leaderboard .table-scroll { padding: 9px; }
  .leaderboard tbody { gap: 10px; padding: 0; }
  .leaderboard tbody tr {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4px 12px; min-height: 0; padding: 13px 12px 14px;
  }
  .leaderboard tbody tr > td.rank { display: none !important; }
  .leaderboard tbody tr > td:nth-child(2) { grid-column: 1 / -1; padding: 2px 0 10px; }
  .leaderboard tbody tr > td:nth-child(3) { grid-column: 1 / -1; padding: 7px 0; }
  .leaderboard tbody tr > td:nth-child(4) { grid-column: 1; padding: 7px 0; text-align: left; }
  .leaderboard tbody tr > td:nth-child(5) { grid-column: 2; padding: 7px 0; }
  .leaderboard tbody tr > td:nth-child(6) { grid-column: 1 / -1; padding: 7px 0 1px; }
  .leaderboard .company-cell { align-items: center; gap: 10px; }
  .leaderboard .company-info { min-width: 0; }
  .leaderboard .company-description { max-width: 100%; }
  .leaderboard .founder { padding-left: 0; }
  .leaderboard tbody tr > td.category-cell .category-table-chip { margin-inline: 0; }
  .category-table-chip { max-width: 100%; min-height: 36px; padding: 7px 10px; white-space: normal; }
  .leaderboard .estimate { width: fit-content; max-width: 100%; justify-content: flex-start; white-space: normal; }
  .leaderboard .source-badge { width: fit-content; max-width: 100%; text-align: left; }
}

@media (max-width: 460px) {
  .shell, .header .shell { width: calc(100% - 22px); }
  .leaderboard tbody tr { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 12px 11px 13px; }
  .leaderboard tbody tr > td:nth-child(2),
  .leaderboard tbody tr > td:nth-child(3),
  .leaderboard tbody tr > td:nth-child(4),
  .leaderboard tbody tr > td:nth-child(5),
  .leaderboard tbody tr > td:nth-child(6) { grid-column: 1 / -1; }
  .leaderboard tbody tr > td:nth-child(4),
  .leaderboard tbody tr > td:nth-child(5),
  .leaderboard tbody tr > td:nth-child(6) { padding-top: 6px; padding-bottom: 6px; }
  .leaderboard .company-mark { width: 40px; height: 40px; flex-basis: 40px; }
  .leaderboard .board-foot { align-items: flex-start; flex-direction: column; gap: 4px; }
}

/* V31: two-column company directory leaderboard */
.leaderboard .table-scroll { padding: 16px; background: #f3f2ee; }
.leaderboard tbody {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px; padding: 0;
}
.leaderboard tbody tr {
  position: relative; display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto auto auto;
  gap: 6px 16px; min-width: 0; min-height: 250px; padding: 20px;
  overflow: hidden; border: 1px solid #dfdcd5; border-top: 4px solid #d8d4cc;
  border-left: 1px solid #dfdcd5; border-radius: 16px; background: #fff;
  box-shadow: 0 4px 14px rgba(36, 34, 31, .045);
}
.leaderboard tbody tr:nth-child(1) { border-top-color: #4f46e5; }
.leaderboard tbody tr:nth-child(2) { border-top-color: #008b6e; }
.leaderboard tbody tr:nth-child(3) { border-top-color: #d35428; }
.leaderboard tbody tr:nth-child(4) { border-top-color: #1976d2; }
.leaderboard tbody tr:nth-child(5) { border-top-color: #b77900; }
.leaderboard tbody tr:nth-child(6) { border-top-color: #d93d4e; }
.leaderboard tbody tr:nth-child(7) { border-top-color: #7341c6; }
.leaderboard tbody tr:nth-child(8) { border-top-color: #27834a; }
.leaderboard tbody tr:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(36, 34, 31, .09); }
.leaderboard tbody tr > td { display: block !important; width: auto !important; min-width: 0; height: auto; padding: 0; }
.leaderboard tbody tr > td.rank {
  position: absolute; top: 18px; right: 18px; left: auto;
  display: block !important; width: auto !important; padding: 0 !important;
  color: #aaa59d !important; background: transparent !important;
  font-size: 18px !important; line-height: 1;
}
.leaderboard tbody tr > td:nth-child(2) { grid-column: 1 / -1; grid-row: 1; padding: 0 48px 14px 0; }
.leaderboard tbody tr > td:nth-child(3) { grid-column: 1; grid-row: 2; padding: 5px 0; }
.leaderboard tbody tr > td:nth-child(4) { grid-column: 1; grid-row: 3; padding: 5px 0; text-align: left; }
.leaderboard tbody tr > td:nth-child(5) { grid-column: 2; grid-row: 2 / 4; display: flex !important; align-items: center; justify-content: flex-end; }
.leaderboard tbody tr > td:nth-child(6) {
  grid-column: 1 / -1; grid-row: 4; display: flex !important;
  align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 8px; padding-top: 14px; border-top: 1px solid #ece9e3;
}
.leaderboard .company-cell { align-items: center; gap: 12px; }
.leaderboard .company-mark { width: 52px; height: 52px; flex-basis: 52px; border-radius: 13px; }
.leaderboard .company-name { font-size: 18px; }
.leaderboard .company-description { max-width: 330px; font-size: 12.87px; line-height: 1.45; }
.leaderboard .rank-mobile { display: none !important; }
.leaderboard .founder {
  display: grid !important; grid-template-columns: 30px minmax(0, 1fr);
  align-items: center; gap: 4px 9px; padding-left: 0; font-size: 15.84px;
}
.leaderboard .founder::before,
.leaderboard .category-cell::before,
.leaderboard tbody tr > td:nth-child(5)::before,
.leaderboard .source-cell::before {
  content: attr(data-label); display: block; color: #918c84;
  font-size: 9px; letter-spacing: .07em; line-height: 1.2; text-transform: uppercase;
}
.leaderboard .founder::before { grid-column: 1 / -1; }
.leaderboard .founder-photo { width: 30px; height: 30px; flex-basis: 30px; }
.leaderboard .category-cell .category-table-chip { margin: 3px 0 0; }
.leaderboard .category-table-chip { min-height: 36px; font-size: 15.84px; }
.leaderboard tbody tr > td:nth-child(5) { flex-wrap: wrap; gap: 5px; }
.leaderboard tbody tr > td:nth-child(5)::before { flex: 0 0 100%; text-align: right; }
.leaderboard .estimate { width: fit-content; font-size: 15.84px; }
.leaderboard .source-cell::before { margin-right: auto; }
.leaderboard .source-badge { width: auto; padding: 7px 11px; }

@media (max-width: 1060px) {
  .leaderboard tbody { grid-template-columns: minmax(0, 1fr); }
  .leaderboard tbody tr { min-height: 230px; }
}

@media (max-width: 680px) {
  .leaderboard .table-scroll { padding: 10px; }
  .leaderboard tbody { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .leaderboard tbody tr {
    grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px;
    min-height: 0; padding: 16px; border-radius: 13px;
  }
  .leaderboard tbody tr > td.rank { display: block !important; top: 16px; right: 15px; }
  .leaderboard tbody tr > td:nth-child(2) { grid-column: 1 / -1; padding: 0 42px 12px 0; }
  .leaderboard tbody tr > td:nth-child(3) { grid-column: 1; grid-row: 2; padding: 5px 0; }
  .leaderboard tbody tr > td:nth-child(4) { grid-column: 1; grid-row: 3; padding: 5px 0; }
  .leaderboard tbody tr > td:nth-child(5) { grid-column: 2; grid-row: 2 / 4; padding: 5px 0; }
  .leaderboard tbody tr > td:nth-child(6) { grid-column: 1 / -1; grid-row: 4; padding-top: 12px; }
  .leaderboard .company-mark { width: 44px; height: 44px; flex-basis: 44px; }
}

@media (max-width: 480px) {
  .leaderboard tbody tr { grid-template-columns: minmax(0, 1fr); gap: 3px; padding: 15px 14px; }
  .leaderboard tbody tr > td:nth-child(2),
  .leaderboard tbody tr > td:nth-child(3),
  .leaderboard tbody tr > td:nth-child(4),
  .leaderboard tbody tr > td:nth-child(5),
  .leaderboard tbody tr > td:nth-child(6) { grid-column: 1 / -1; }
  .leaderboard tbody tr > td:nth-child(2) { grid-row: 1; }
  .leaderboard tbody tr > td:nth-child(3) { grid-row: 2; }
  .leaderboard tbody tr > td:nth-child(4) { grid-row: 3; }
  .leaderboard tbody tr > td:nth-child(5) { grid-row: 4; justify-content: flex-start; padding: 7px 0; }
  .leaderboard tbody tr > td:nth-child(6) { grid-row: 5; align-items: flex-start; flex-direction: column; }
  .leaderboard tbody tr > td:nth-child(5)::before { text-align: left; }
  .leaderboard .source-cell::before { margin-right: 0; }
  .leaderboard .estimate { white-space: normal; }
}

/* V31: flat row leaderboard */
.leaderboard .table-scroll {
  padding: 0;
  overflow-x: auto;
  background: #fff;
}
.leaderboard table {
  display: table;
  width: 100%;
  min-width: 960px;
  border-collapse: collapse;
  table-layout: fixed;
}
.leaderboard thead {
  position: static;
  display: table-header-group;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: #f6f5f1;
}
.leaderboard thead th {
  height: 46px;
  padding: 0 14px;
  border-bottom: 1px solid #dedbd4;
  color: #777f79;
  background: transparent;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .075em;
  text-align: left;
}
.leaderboard thead th:nth-child(1) { width: 7%; text-align: center; }
.leaderboard thead th:nth-child(2) { width: 28%; }
.leaderboard thead th:nth-child(3) { width: 18%; }
.leaderboard thead th:nth-child(4) { width: 13%; }
.leaderboard thead th:nth-child(5) { width: 18%; text-align: left; }
.leaderboard thead th:nth-child(6) { width: 16%; }
.leaderboard tbody {
  display: table-row-group;
  padding: 0;
}
.leaderboard tbody tr,
.leaderboard tbody tr:nth-child(n) {
  position: static;
  display: table-row;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  transform: none;
}
.leaderboard tbody tr:nth-child(even) { background: #fcfbf8; }
.leaderboard tbody tr:hover {
  background: #f7f7f3;
  box-shadow: none;
  transform: none;
}
.leaderboard tbody tr > td,
.leaderboard tbody tr > td:nth-child(n) {
  position: static;
  display: table-cell !important;
  width: auto !important;
  height: 82px;
  padding: 14px;
  border: 0;
  border-bottom: 1px solid #ebe9e3;
  color: #46524b;
  background: transparent;
  text-align: left;
  vertical-align: middle;
}
.leaderboard tbody tr > td.rank {
  display: table-cell !important;
  width: auto !important;
  padding: 14px !important;
  color: #8c918c !important;
  background: transparent !important;
  font-size: 13px !important;
  line-height: 1;
  text-align: center;
}
.leaderboard tbody td::before { display: none !important; }
.leaderboard .company-cell { gap: 12px; }
.leaderboard .company-mark {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
  border-radius: 11px;
}
.leaderboard .company-name { font-size: 15px; }
.leaderboard .company-description { max-width: 280px; font-size: 11.7px; }
.leaderboard .founder {
  font-size: 14.4px;
  white-space: nowrap;
}
.leaderboard .category-cell .category-table-chip { margin: 0; }
.leaderboard .category-table-chip {
  min-height: 34px;
  padding-inline: 11px;
  font-size: 14.4px;
}
.leaderboard .estimate { font-size: 15.84px; white-space: nowrap; }
.leaderboard .source-cell { white-space: nowrap; }
.leaderboard .source-badge { padding: 7px 10px; }

@media (max-width: 760px) {
  .leaderboard .table-scroll { padding: 0 14px; overflow: visible; }
  .leaderboard table { display: block; min-width: 0; }
  .leaderboard thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
  .leaderboard tbody { display: block; }
  .leaderboard tbody tr,
  .leaderboard tbody tr:nth-child(n) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(150px, .7fr);
    gap: 5px 18px;
    padding: 17px 2px;
    border-bottom: 1px solid #dfddd7;
    background: transparent;
  }
  .leaderboard tbody tr:hover { background: transparent; }
  .leaderboard tbody tr > td,
  .leaderboard tbody tr > td:nth-child(n) {
    display: block !important;
    width: 100% !important;
    height: auto;
    padding: 5px 0;
    border: 0;
    white-space: normal;
  }
  .leaderboard tbody tr > td.rank { display: none !important; }
  .leaderboard tbody tr > td:nth-child(2),
  .leaderboard tbody tr > td:nth-child(3),
  .leaderboard tbody tr > td:nth-child(6) { grid-column: 1 / -1; }
  .leaderboard tbody tr > td:nth-child(2) { padding-bottom: 9px; }
  .leaderboard tbody tr > td:nth-child(4) { grid-column: 1; }
  .leaderboard tbody tr > td:nth-child(5) { grid-column: 2; }
  .leaderboard tbody td::before {
    content: attr(data-label);
    display: block !important;
    margin-bottom: 5px;
    color: #918c84;
    font-size: 9px;
    letter-spacing: .07em;
    line-height: 1.2;
    text-transform: uppercase;
  }
  .leaderboard tbody tr > td:nth-child(2)::before { display: none !important; }
  .leaderboard .founder { display: grid !important; grid-template-columns: 30px minmax(0, 1fr); }
  .leaderboard .founder::before { grid-column: 1 / -1; }
  .leaderboard .source-cell { display: flex !important; align-items: center; justify-content: space-between; gap: 12px; }
  .leaderboard .source-cell::before { margin: 0; }
}

@media (max-width: 480px) {
  .leaderboard .table-scroll { padding: 0 12px; }
  .leaderboard tbody tr,
  .leaderboard tbody tr:nth-child(n) { grid-template-columns: minmax(0, 1fr); gap: 3px; padding: 15px 0; }
  .leaderboard tbody tr > td:nth-child(2),
  .leaderboard tbody tr > td:nth-child(3),
  .leaderboard tbody tr > td:nth-child(4),
  .leaderboard tbody tr > td:nth-child(5),
  .leaderboard tbody tr > td:nth-child(6) { grid-column: 1; }
  .leaderboard .source-cell { align-items: flex-start; flex-direction: column; }
}

/* Keep the leaderboard as true rows on phones; scroll horizontally for all columns. */
@media (max-width: 760px) {
  .leaderboard .table-scroll {
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .leaderboard table {
    display: table;
    width: 100%;
    min-width: 820px;
    table-layout: fixed;
  }
  .leaderboard thead {
    position: static;
    display: table-header-group;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }
  .leaderboard tbody { display: table-row-group; }
  .leaderboard tbody tr,
  .leaderboard tbody tr:nth-child(n) {
    display: table-row;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }
  .leaderboard tbody tr:nth-child(even) { background: #fcfbf8; }
  .leaderboard tbody tr > td,
  .leaderboard tbody tr > td:nth-child(n),
  .leaderboard tbody tr > td.rank,
  .leaderboard .founder,
  .leaderboard .source-cell {
    display: table-cell !important;
    width: auto !important;
    height: 78px;
    padding: 12px !important;
    border: 0;
    border-bottom: 1px solid #ebe9e3;
    text-align: left;
    vertical-align: middle;
    white-space: normal;
  }
  .leaderboard tbody tr > td.rank {
    padding-inline: 8px !important;
    text-align: center;
  }
  .leaderboard tbody td::before { display: none !important; }
  .leaderboard .company-mark { width: 40px; height: 40px; flex-basis: 40px; }
  .leaderboard .company-name { font-size: 14px; }
  .leaderboard .company-description { font-size: 10.8px; }
  .leaderboard .founder-photo { margin-right: 7px; vertical-align: middle; }
  .leaderboard .category-cell .category-table-chip { margin: 0; }
  .leaderboard .source-badge { white-space: nowrap; }
}

/* Compact, full-width mobile rows without cards or horizontal scrolling. */
@media (max-width: 760px) {
  .leaderboard .table-scroll {
    padding: 0 14px;
    overflow: visible;
    background: #fff;
  }
  .leaderboard table {
    display: block;
    width: 100%;
    min-width: 0;
  }
  .leaderboard thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
  .leaderboard tbody { display: block; }
  .leaderboard tbody tr,
  .leaderboard tbody tr:nth-child(n) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 14px;
    width: 100%;
    padding: 17px 2px 16px;
    border: 0;
    border-bottom: 1px solid #dfddd7;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
  }
  .leaderboard tbody tr:hover { background: #faf9f6; }
  .leaderboard tbody tr > td,
  .leaderboard tbody tr > td:nth-child(n),
  .leaderboard .founder,
  .leaderboard .source-cell {
    display: block !important;
    width: auto !important;
    height: auto;
    padding: 0 !important;
    border: 0;
    background: transparent;
    text-align: left;
    white-space: normal;
  }
  .leaderboard tbody tr > td.rank { display: none !important; }
  .leaderboard tbody tr > td:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 1;
    padding-bottom: 5px !important;
  }
  .leaderboard tbody tr > td:nth-child(3) {
    grid-column: 1;
    grid-row: 2;
    align-self: center;
  }
  .leaderboard tbody tr > td:nth-child(4) {
    grid-column: 1;
    grid-row: 3;
    align-self: center;
  }
  .leaderboard tbody tr > td:nth-child(5) {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    min-width: 118px;
    text-align: right;
  }
  .leaderboard tbody tr > td:nth-child(6) {
    grid-column: 2;
    grid-row: 3;
    align-self: center;
    text-align: right;
  }
  .leaderboard tbody td::before { display: none !important; }
  .leaderboard tbody tr > td:nth-child(5)::before {
    content: attr(data-label);
    display: block !important;
    margin-bottom: 4px;
    color: #918c84;
    font-size: 8px;
    letter-spacing: .07em;
    line-height: 1.2;
    text-transform: uppercase;
  }
  .leaderboard .company-cell { gap: 11px; }
  .leaderboard .company-mark { width: 43px; height: 43px; flex-basis: 43px; }
  .leaderboard .company-name { font-size: 15px; }
  .leaderboard .company-description { max-width: none; font-size: 11px; line-height: 1.4; }
  .leaderboard .founder {
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
  }
  .leaderboard .founder-photo { width: 28px; height: 28px; flex-basis: 28px; margin: 0; }
  .leaderboard .category-table-chip { min-height: 30px; padding: 5px 10px; font-size: 12.5px; }
  .leaderboard .estimate { justify-content: flex-end; font-size: 14.5px; }
  .leaderboard .source-cell { display: block !important; }
  .leaderboard .source-badge { display: inline-block; padding: 6px 9px; font-size: 9px; }
}

/* V31 final leaderboard: every company stays on one horizontal line. */
.leaderboard .table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.leaderboard table {
  display: table;
  min-width: 980px;
  table-layout: fixed;
}
.leaderboard thead {
  position: static;
  display: table-header-group;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}
.leaderboard tbody { display: table-row-group; }
.leaderboard tbody tr,
.leaderboard tbody tr:nth-child(n) {
  display: table-row;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}
.leaderboard tbody tr > td,
.leaderboard tbody tr > td:nth-child(n),
.leaderboard tbody tr > td.rank,
.leaderboard .founder,
.leaderboard .source-cell {
  display: table-cell !important;
  width: auto !important;
  height: 70px;
  padding: 11px 13px !important;
  border: 0;
  border-bottom: 1px solid #ebe9e3;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}
.leaderboard tbody tr > td.rank {
  padding-inline: 8px !important;
  text-align: center;
}
.leaderboard tbody td::before { display: none !important; }
.leaderboard .company-cell { gap: 10px; min-width: 0; }
.leaderboard .company-mark { width: 39px; height: 39px; flex-basis: 39px; }
.leaderboard .company-info {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
  overflow: hidden;
}
.leaderboard .company-name { flex: 0 0 auto; font-size: 14px; }
.leaderboard .company-description {
  display: block;
  max-width: 150px;
  overflow: hidden;
  font-size: 10.5px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.leaderboard .company-description::before { content: "— "; }
.leaderboard .founder-photo { margin-right: 7px; vertical-align: middle; }
.leaderboard .category-table-chip { min-height: 31px; padding: 5px 10px; font-size: 13px; }
.leaderboard .estimate { font-size: 14.5px; white-space: nowrap; }
.leaderboard .source-badge { white-space: nowrap; }

@media (max-width: 760px) {
  .leaderboard .table-scroll {
    padding: 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }
  .leaderboard table { display: table; width: 900px; min-width: 900px; }
  .leaderboard thead { display: table-header-group; }
  .leaderboard tbody { display: table-row-group; }
  .leaderboard tbody tr,
  .leaderboard tbody tr:nth-child(n) { display: table-row; }
  .leaderboard tbody tr > td,
  .leaderboard tbody tr > td:nth-child(n),
  .leaderboard tbody tr > td.rank,
  .leaderboard .founder,
  .leaderboard .source-cell {
    display: table-cell !important;
    width: auto !important;
    height: 64px;
    padding: 9px 11px !important;
    white-space: nowrap;
  }
  .leaderboard tbody tr > td.rank { display: table-cell !important; }
  .leaderboard .company-info { display: flex; }
  .leaderboard .company-description { max-width: 125px; }
  .leaderboard .founder { font-size: 12.5px; }
  .leaderboard .founder-photo { width: 27px; height: 27px; flex-basis: 27px; }
  .leaderboard .category-table-chip { min-height: 29px; font-size: 12px; }
  .leaderboard .estimate { font-size: 13.5px; }
}

/* Fit the complete mobile leaderboard into the viewport on one line per company. */
@media (max-width: 760px) {
  .leaderboard .table-scroll {
    width: 100%;
    padding: 0;
    overflow: hidden;
  }
  .leaderboard table {
    display: table;
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }
  .leaderboard thead { display: table-header-group; }
  .leaderboard thead th {
    height: 35px;
    padding: 0 3px;
    overflow: hidden;
    font-size: 7px;
    letter-spacing: .035em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .leaderboard thead th:nth-child(1),
  .leaderboard tbody tr > td:nth-child(1) { display: none !important; }
  .leaderboard thead th:nth-child(2) { width: 25%; }
  .leaderboard thead th:nth-child(3) { width: 25%; }
  .leaderboard thead th:nth-child(4) { width: 16%; }
  .leaderboard thead th:nth-child(5) { width: 25%; }
  .leaderboard thead th:nth-child(6) { width: 9%; text-align: center; }
  .leaderboard tbody { display: table-row-group; }
  .leaderboard tbody tr,
  .leaderboard tbody tr:nth-child(n) { display: table-row; }
  .leaderboard tbody tr > td,
  .leaderboard tbody tr > td:nth-child(n),
  .leaderboard .founder,
  .leaderboard .source-cell {
    display: table-cell !important;
    width: auto !important;
    height: 55px;
    padding: 5px 3px !important;
    overflow: hidden;
    border-bottom: 1px solid #ebe9e3;
    font-size: 9.5px;
    line-height: 1.15;
    text-align: left;
    text-overflow: ellipsis;
    vertical-align: middle;
    white-space: nowrap;
  }
  .leaderboard .company-cell { gap: 4px; overflow: hidden; }
  .leaderboard .company-mark {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
    border-radius: 7px;
    font-size: 11px;
  }
  .leaderboard .company-info { display: block; overflow: hidden; }
  .leaderboard .company-name {
    display: block;
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .leaderboard .company-description { display: none; }
  .leaderboard .founder { font-size: 9.5px; }
  .leaderboard .founder-photo {
    width: 18px;
    height: 18px;
    margin-right: 3px;
    vertical-align: middle;
  }
  .leaderboard .category-table-chip {
    min-height: 22px;
    max-width: 100%;
    padding: 4px 5px;
    overflow: hidden;
    border-radius: 5px;
    font-size: 8.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .leaderboard .estimate {
    display: block;
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .leaderboard .estimate small { display: none; }
  .leaderboard .source-cell { text-align: center; }
  .leaderboard .source-badge {
    width: 23px;
    height: 23px;
    padding: 0;
    border-radius: 6px;
    font-size: 0;
    line-height: 21px;
    text-align: center;
  }
  .leaderboard .source-badge::after { content: "↗"; font-size: 12px; }
}

/* V31 controls and rank alignment */
.leaderboard-search {
  display: flex;
  justify-content: center;
  margin: 0 0 14px;
}
.leaderboard-search .search { width: min(460px, 100%); }
.leaderboard thead th:first-child,
.leaderboard tbody tr > td.rank {
  text-align: center !important;
}
.leaderboard tbody tr > td.rank { padding-left: 0 !important; padding-right: 0 !important; }
@media (max-width: 760px) {
  .leaderboard-search { margin: 0 0 12px; }
  .leaderboard-search .search { width: 100%; }
  .leaderboard thead th:nth-child(1),
  .leaderboard tbody tr > td:nth-child(1) {
    display: table-cell !important;
  }
  .leaderboard thead th:nth-child(1) { width: 6% !important; text-align: center !important; }
  .leaderboard thead th:nth-child(2) { width: 25% !important; }
  .leaderboard thead th:nth-child(3) { width: 23% !important; }
  .leaderboard thead th:nth-child(4) { width: 14% !important; }
  .leaderboard thead th:nth-child(5) { width: 26% !important; }
  .leaderboard thead th:nth-child(6) { width: 6% !important; }
  .leaderboard tbody tr > td.rank {
    display: table-cell !important;
    width: 6% !important;
    padding: 5px 1px !important;
    font-size: 8px !important;
    text-align: center !important;
  }
  .leaderboard .company-mark { width: 20px; height: 20px; flex-basis: 20px; font-size: 9px; }
  .leaderboard .company-cell { gap: 3px; }
  .leaderboard .company-name { font-size: 9px; }
  .leaderboard tbody tr > td:nth-child(n) { padding-left: 2px !important; padding-right: 2px !important; }
  .leaderboard .founder { font-size: 8.5px; }
  .leaderboard .founder-photo { width: 16px; height: 16px; flex-basis: 16px; margin-right: 2px; }
  .leaderboard .category-table-chip { padding-inline: 3px; font-size: 7.5px; }
  .leaderboard .estimate { font-size: 9px; }
  .leaderboard .source-badge { width: 18px; height: 18px; line-height: 16px; }
}
@media (max-width: 360px) {
  .leaderboard .company-mark { display: none; }
}


/* V46: daily update label under the dashboard heading */
.updated-daily { margin: 12px auto 0; color: var(--muted-v2); text-align: center; font-size: 13px; line-height: 1.3; font-weight: 500; }


/* V50: 30-row leaderboard pagination */
.leaderboard-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 16px 6px;
  color: var(--ink-v2);
  font-size: 13px;
  font-weight: 700;
}
.leaderboard-pagination[hidden] { display: none; }
.pagination-arrow {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #c9d6cf;
  border-radius: 999px;
  color: #176a45;
  background: #fff;
  font: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.pagination-arrow.pagination-step {
  display: inline-flex;
  width: auto;
  min-width: 104px;
  padding: 0 14px;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.pagination-pages { display: flex; align-items: center; gap: 6px; }
.pagination-page {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #176a45;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.pagination-page:hover { border-color: #c9d6cf; background: #f2faf5; }
.pagination-page.is-current { border-color: #176a45; color: #fff; background: #176a45; }
.pagination-page:focus-visible { outline: 3px solid rgba(23, 106, 69, .2); outline-offset: 2px; }
.pagination-arrow:hover:not(:disabled) { border-color: #85b89c; background: #f2faf5; }
.pagination-arrow:focus-visible { outline: 3px solid rgba(23, 106, 69, .2); outline-offset: 2px; }
.pagination-arrow:disabled { opacity: .35; cursor: default; }
@media (max-width: 520px) {
  .leaderboard-pagination { gap: 6px; padding-right: 8px; padding-left: 8px; }
  .pagination-arrow.pagination-step { min-width: 70px; padding: 0 8px; font-size: 10px; }
  .pagination-pages { gap: 2px; }
  .pagination-page { width: 30px; height: 34px; font-size: 11px; }
}
.founder-initials {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  color: #176a45;
  background: #e7f4ec;
  font-size: 10px;
  font-weight: 800;
}
