/* One stylesheet for the whole site. No external assets.
   Neutral, dense, modern: Vercel/Apple-style surfaces with Ant Design-style tags, stats and tables. */
:root {
  --bg: #fafafa; --surface: #ffffff; --fg: #0a0a0a; --muted: #666666; --faint: #8f8f8f;
  --line: #ebebeb; --line-strong: #d4d4d4; --hover: #f5f5f5;
  --primary: #0a0a0a; --primary-fg: #ffffff; --link: #0a0a0a; --link-hover: #0070f3;
  --red: #cf1322; --red-bg: #fff1f0; --red-line: #ffccc7;
  --gold: #ad6800; --gold-bg: #fffbe6; --gold-line: #ffe58f;
  --green: #389e0d; --green-bg: #f6ffed; --green-line: #b7eb8f;
  --tag-bg: #f5f5f5; --tag-line: #e5e5e5;
  --focus: #0070f3; --radius: 8px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 1px 1px rgba(0,0,0,.02);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a; --surface: #111111; --fg: #ededed; --muted: #a1a1a1; --faint: #7a7a7a;
    --line: #232323; --line-strong: #333333; --hover: #1a1a1a;
    --primary: #ededed; --primary-fg: #0a0a0a; --link: #ededed; --link-hover: #52a8ff;
    --red: #ff7875; --red-bg: #2a1215; --red-line: #58181c;
    --gold: #ffc53d; --gold-bg: #2b2111; --gold-line: #594214;
    --green: #95de64; --green-bg: #162312; --green-line: #274916;
    --tag-bg: #1a1a1a; --tag-line: #2e2e2e; --focus: #52a8ff;
    --shadow: none;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 14px/1.5 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01";
}
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--surface); color: var(--fg); padding: 8px 12px; z-index: 20; }
.skip:focus { left: 8px; top: 8px; }
.muted { color: var(--faint); }

/* Header: sticky, translucent, hairline border */
header.site {
  position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
}
header.site .wrap { display: flex; align-items: center; gap: 8px 28px; height: 56px; }
.brand { white-space: nowrap; flex: none; font-weight: 650; font-size: 15px; letter-spacing: -0.01em; color: var(--fg); display: inline-flex; align-items: center; gap: 8px; }
.brand::before { content: ""; width: 16px; height: 16px; border-radius: 4px; background: var(--primary);
  box-shadow: inset 0 0 0 4px var(--primary), inset 0 0 0 8px var(--primary-fg); }
header.site nav { flex: 1 1 auto; overflow-x: auto; scrollbar-width: none; }
header.site ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
header.site nav a { color: var(--muted); padding: 6px 10px; border-radius: 6px; display: inline-block; white-space: nowrap; font-size: 14px; }
header.site nav a:hover { color: var(--fg); background: var(--hover); }

main { padding-top: 20px; padding-bottom: 64px; }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; margin: 0 0 12px; padding: 0; font-size: 13px; color: var(--faint); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--fg); }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--line-strong); }
h1 { font-size: clamp(22px, 3.2vw, 30px); line-height: 1.2; margin: 0 0 4px; letter-spacing: -0.025em; font-weight: 650; text-wrap: balance; max-width: 30ch; }
h2 { font-size: 16px; line-height: 1.3; margin: 32px 0 10px; font-weight: 600; letter-spacing: -0.01em; }
.updated { color: var(--faint); font-size: 13px; margin: 0 0 20px; }
.note { color: var(--muted); font-size: 13px; margin: 0 0 10px; }
.summary { font-size: 14px; color: var(--muted); max-width: 90ch; margin: 0 0 24px; }
.summary strong { color: var(--fg); font-weight: 600; }
.prose p, .prose ul, .explain p { max-width: 72ch; color: var(--muted); }
.prose h2 { color: var(--fg); }
.explain { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 24px 0; }
.explain h2 { margin: 0 0 6px; font-size: 14px; }
.explain p { margin: 0; font-size: 13px; }

/* Stat cards (Ant Statistic) */
.kpis, .tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0; margin: 0 0 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.kpi, .tile { padding: 14px 18px; border-right: 1px solid var(--line); margin: 0; background: none; border-radius: 0; border-top: 0; border-bottom: 0; border-left: 0; }
.kpi:last-child, .tile:last-child { border-right: 0; }
.kpi dt, .tile dt { color: var(--muted); font-size: 12px; }
.kpi dd, .tile dd { margin: 4px 0 0; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.kpi.warn dd { color: var(--red); }

/* Call to action: quiet card, black button */
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 20px; margin: 24px 0 8px; }
.cta > div { flex: 1 1 320px; }
.cta h2 { margin: 0 0 2px; font-size: 15px; }
.cta p { margin: 0; color: var(--muted); font-size: 13px; }
.button { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 6px;
  background: var(--primary); color: var(--primary-fg); font-weight: 500; font-size: 14px; white-space: nowrap;
  transition: opacity .15s; }
.button:hover { color: var(--primary-fg); opacity: .85; }
.button.small { height: 32px; padding: 0 12px; font-size: 13px; }

/* Filter input (Ant Input) */
.filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.filter input { font: inherit; font-size: 14px; color: var(--fg); background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 6px; height: 34px; padding: 0 11px; width: min(100%, 340px); transition: border-color .15s, box-shadow .15s; }
.filter input:hover { border-color: var(--faint); }
.filter input:focus { outline: 0; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 18%, transparent); }
.filter output { color: var(--faint); font-size: 13px; }

/* Table (Ant Table, small) */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; }
th, td { text-align: left; vertical-align: top; padding: 8px 12px; border-bottom: 1px solid var(--line); }
thead th { background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 500; white-space: nowrap;
  position: sticky; top: 0; border-bottom: 1px solid var(--line-strong); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .1s; }
tbody tr:hover { background: var(--hover); }
td a { font-weight: 500; }
table.opps { min-width: 820px; }
table.opps td:first-child { min-width: 320px; overflow-wrap: anywhere; }
table.opps td:nth-child(2) { color: var(--muted); }
td.date { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--muted); }
table:not(.opps) td:first-child { min-width: 220px; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.meta { display: flex; flex-wrap: wrap; gap: 2px 12px; color: var(--faint); font-size: 12px; margin-top: 2px; }
.meta a { color: var(--muted); font-weight: 400; }
th button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; white-space: nowrap; }
th button:hover { color: var(--fg); }
th button::after { content: " \2195"; color: var(--line-strong); }
th[aria-sort="ascending"] button::after { content: " \2191"; color: var(--fg); }
th[aria-sort="descending"] button::after { content: " \2193"; color: var(--fg); }

/* Tags (Ant Tag) */
.tag { display: inline-block; font-size: 12px; line-height: 20px; padding: 0 7px; border-radius: 4px; white-space: nowrap;
  background: var(--tag-bg); border: 1px solid var(--tag-line); color: var(--fg); font-weight: 400; }
.tag-green { background: var(--green-bg); border-color: var(--green-line); color: var(--green); }
.tag-gold { background: var(--gold-bg); border-color: var(--gold-line); color: var(--gold); }
.tag-red { background: var(--red-bg); border-color: var(--red-line); color: var(--red); }
td.date .tag { margin-left: 4px; }

/* Related links as chips */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; font-size: 13px; }
.chips li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; transition: border-color .15s; }
.chips li:hover { border-color: var(--line-strong); }
.chips .n { color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; margin-left: 2px; }
.related h2 { font-size: 13px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }

footer.site { border-top: 1px solid var(--line); color: var(--faint); font-size: 12px; padding: 24px 0 40px; }
footer.site p { max-width: 90ch; margin: 0 0 6px; }
footer.site a { color: var(--muted); }

@media (max-width: 700px) {
  .wrap { padding: 0 16px; }
  header.site .button.small { display: none; }
  header.site .wrap { gap: 12px; }
  .kpi, .tile { border-right: 0; border-bottom: 1px solid var(--line); }
  .kpis, .tiles { grid-template-columns: repeat(3, 1fr); }
  .kpi, .tile { padding: 10px 12px; border-right: 1px solid var(--line); }
  .kpi:nth-child(3n), .tile:nth-child(3n) { border-right: 0; }
  .kpi dt, .tile dt { font-size: 11px; line-height: 1.3; }
  .kpi dd, .tile dd { font-size: 19px; }
  .button { white-space: normal; }
}
@media print {
  header.site, .cta, .filter, footer.site .wrap p:last-child { display: none; }
  .table-wrap { overflow: visible; border: 0; box-shadow: none; }
}

details.more { margin: -16px 0 24px; font-size: 13px; color: var(--muted); max-width: 90ch; }
details.more summary { cursor: pointer; color: var(--fg); font-weight: 500; list-style: none; display: inline-flex; gap: 6px; align-items: center; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: "\203A"; display: inline-block; transition: transform .15s; color: var(--faint); }
details.more[open] summary::before { transform: rotate(90deg); }
details.more p { margin: 8px 0 0; }

/* ===================== Variant B (experiment site-design-v2): branded, attention-first ===================== */
.v2 {
  --brand: #ff5b1f; --brand-2: #ff8a3d; --brand-ink: #0b0d12; --mint: #10b981; --violet: #7c5cff;
  --bg: #f7f7f8; --link-hover: #ff5b1f; --primary: #0b0d12; --focus: #ff5b1f;
}
@media (prefers-color-scheme: dark) { .v2 { --bg: #08090c; --surface: #0f1116; --line: #1c1f27; --primary: #ffffff; --primary-fg: #0b0d12; } }
.v2 header.site { background: color-mix(in srgb, var(--brand-ink) 88%, transparent); border-bottom-color: #ffffff14; }
.v2 header.site nav a { color: #a8adb8; } .v2 header.site nav a:hover { color: #fff; background: #ffffff12; }
.v2 .brand { color: #fff; } .v2 .brand::before { background: linear-gradient(135deg, var(--brand), var(--violet)); box-shadow: none; }
.v2 header.site .button.small { background: var(--brand); color: #fff; }
.v2 h1 { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; max-width: none; margin: 0; }
.v2 .updated { display: none; }

.hero { position: relative; overflow: hidden; isolation: isolate; margin: 12px 0 16px; padding: 36px 32px 28px;
  border-radius: 16px; background: var(--brand-ink); color: #f4f5f7; }
.hero .mesh { position: absolute; inset: -40%; z-index: -1; filter: blur(60px); opacity: .55;
  background: radial-gradient(35% 35% at 20% 30%, var(--brand) 0, transparent 70%),
              radial-gradient(30% 30% at 80% 20%, var(--violet) 0, transparent 70%),
              radial-gradient(30% 30% at 60% 90%, var(--mint) 0, transparent 70%);
  animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate3d(6%, -4%, 0) rotate(12deg) scale(1.08); } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .18;
  background-image: linear-gradient(#ffffff10 1px, transparent 1px), linear-gradient(90deg, #ffffff10 1px, transparent 1px);
  background-size: 32px 32px; mask-image: radial-gradient(ellipse at top, #000 30%, transparent 75%); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 4px 10px 4px 8px; border-radius: 999px;
  background: #ffffff14; border: 1px solid #ffffff1f; font-size: 12px; color: #d9dbe1; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 var(--mint); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.headline { font-size: clamp(28px, 4.6vw, 52px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 700; margin: 0 0 18px; max-width: 22ch; text-wrap: balance; }
.headline .count { background: linear-gradient(90deg, #fff, #ffd3bf); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.headline .hot, .gate .hot { color: var(--brand-2); }
.hstats { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0 0 22px; }
.hstats div { display: flex; align-items: baseline; gap: 6px; font-size: 13px; color: #a8adb8; }
.hstats b { font-size: 20px; color: #fff; font-weight: 650; font-variant-numeric: tabular-nums; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.v2 .button.primary { height: 44px; padding: 0 20px; font-size: 15px; font-weight: 600; color: #fff;
  background: linear-gradient(180deg, var(--brand-2), var(--brand)); box-shadow: 0 8px 24px -8px var(--brand), inset 0 1px 0 #ffffff40; }
.v2 .button.primary:hover { opacity: 1; transform: translateY(-1px); }
.v2 .button.ghost { height: 44px; padding: 0 18px; background: #ffffff10; color: #fff; border: 1px solid #ffffff26; }
.v2 .button { transition: transform .15s, opacity .15s; }
.spots { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.spot { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 12px; color: #f4f5f7;
  background: #ffffff0d; border: 1px solid #ffffff1a; backdrop-filter: blur(8px); transition: border-color .2s, transform .2s, background .2s; }
.spot:hover { color: #fff; border-color: #ffffff40; background: #ffffff16; transform: translateY(-2px); }
.spot strong { font-size: 14px; font-weight: 600; line-height: 1.35; }
.spot > span:last-child { font-size: 12px; color: #a8adb8; }
.pill { align-self: flex-start; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; letter-spacing: .02em; }
.pill.new { background: color-mix(in srgb, var(--mint) 20%, transparent); color: #6ee7b7; border: 1px solid color-mix(in srgb, var(--mint) 45%, transparent); }
.pill.urgent { background: color-mix(in srgb, var(--brand) 20%, transparent); color: #ffb08a; border: 1px solid color-mix(in srgb, var(--brand) 50%, transparent); }

.feed { margin: 0 0 24px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); display: flex; align-items: center; }
.feed h2 { margin: 0; padding: 0 14px; font-size: 12px; font-weight: 600; white-space: nowrap; color: var(--brand); text-transform: uppercase; letter-spacing: .06em; border-right: 1px solid var(--line); align-self: stretch; display: flex; align-items: center; position: relative; z-index: 1; background: var(--surface); }
.feed ul { display: flex; gap: 32px; list-style: none; margin: 0; padding: 12px 16px; white-space: nowrap; animation: marquee 50s linear infinite; }
.feed:hover ul { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.feed li { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.feed li a { font-weight: 500; } .feed li em { font-style: normal; color: var(--faint); font-size: 12px; }
.feed .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }

.v2 #opps-h { font-size: 20px; letter-spacing: -0.02em; }
.v2 td a { font-weight: 600; }
tr.locked td { filter: blur(0); }
.sk { display: block; height: 10px; border-radius: 4px; margin: 4px 0; background: linear-gradient(90deg, var(--line) 0, var(--hover) 50%, var(--line) 100%); background-size: 200% 100%; animation: shimmer 1.6s infinite; }
.sk.w70 { width: 70%; } .sk.w60 { width: 60%; } .sk.w50 { width: 50%; } .sk.w40 { width: 40%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.gate { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
  padding: 18px 20px; margin-top: -60px; padding-top: 72px; font-size: 14px;
  background: linear-gradient(180deg, transparent, var(--surface) 55%); }
.gate > div { flex: 1 1 320px; max-width: 70ch; color: var(--muted); } .gate strong { color: var(--fg); }
.v2 .gate .button { background: linear-gradient(180deg, var(--brand-2), var(--brand)); color: #fff; height: 40px; }
.v2 .cta { border: 0; background: linear-gradient(120deg, color-mix(in srgb, var(--brand) 10%, var(--surface)), var(--surface) 60%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 25%, var(--line)); }
.v2 .cta .button { background: var(--brand); color: #fff; }

.toast { position: fixed; left: 16px; bottom: 16px; z-index: 30; display: flex; align-items: center; gap: 12px; max-width: min(440px, calc(100vw - 32px));
  padding: 12px 14px; border-radius: 12px; background: var(--brand-ink); color: #f4f5f7; border: 1px solid #ffffff1f;
  box-shadow: 0 20px 50px -12px #000a; font-size: 13px; }
.toast div { display: flex; flex-direction: column; min-width: 0; } .toast strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.toast div span { color: #a8adb8; font-size: 12px; }
.toast a { color: #fff; background: var(--brand); padding: 6px 10px; border-radius: 6px; font-weight: 600; white-space: nowrap; }
.toast button { background: none; border: 0; color: #a8adb8; font-size: 18px; cursor: pointer; padding: 0 2px; }
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (max-width: 700px) { .hero { padding: 24px 18px 18px; border-radius: 12px; } .hstats { gap: 6px 16px; } .toast { left: 8px; right: 8px; bottom: 8px; } }
@media (prefers-reduced-motion: reduce) { .hero .mesh, .feed ul, .live, .sk { animation: none; } .reveal { opacity: 1; transform: none; } }

footer.site .links { display: flex; gap: 16px; }
.spot > span:not(.pill) { font-size: 12px; color: #a8adb8; }
.feed li time { color: var(--faint); font-size: 12px; }
.feed li em::after { content: ""; display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); margin: 0 0 2px 8px; vertical-align: middle; }
.v2 .back { margin: 4px 0 0; font-size: 13px; }
.v2 .back a { color: var(--muted); } .v2 .back a:hover { color: var(--brand); }
.v2 h1.headline { font-size: clamp(30px, 4.8vw, 54px); color: inherit; font-weight: 700; letter-spacing: -0.035em; margin: 0 0 18px; max-width: 20ch; }
