/* StockTransit — light · trader-punchy. Tokens from the Flaik Marketplace design. */
:root {
  --ink: #14130f;
  --ink-2: #3b3a34;
  --muted: #6b6960;
  --muted-2: #9a978d;
  --paper: #f6f5f2;
  --paper-2: #faf9f6;
  --canvas: #ebe9e3;
  --line: #e6e4dd;
  --line-2: #dcdad3;
  --line-3: #f0eee8;
  --track: #efede7;
  --white: #fff;
  --green: oklch(0.55 0.16 150);
  --green-ink: oklch(0.45 0.14 150);
  --green-deep: oklch(0.35 0.12 150);
  --green-bg: oklch(0.95 0.04 150);
  --green-soft: oklch(0.85 0.08 150);
  --green-dot: oklch(0.72 0.17 150);
  --green-mid: oklch(0.8 0.08 150);
  --amber: oklch(0.75 0.15 75);
  --amber-ink: oklch(0.5 0.12 75);
  --amber-bg: oklch(0.97 0.03 75);
  --amber-line: oklch(0.85 0.1 75);
  --avatar: oklch(0.9 0.05 80);
  --sans: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --r-sm: 6px; --r: 10px; --r-lg: 12px; --r-xl: 14px; --r-2xl: 16px;
  --shadow: 0 2px 12px rgba(0,0,0,.06);
  --shadow-lg: 0 12px 40px rgba(20,19,15,.08);
  --nav-h: 60px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ink-2); }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
svg { display: block; }
img { max-width: 100%; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.muted-2 { color: var(--muted-2); }
.green { color: var(--green-ink); }
.amber { color: var(--amber-ink); }
.ink { color: var(--ink); }
.strong { font-weight: 600; }
.right { text-align: right; }
.hide { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- layout ---------- */
.wrap { max-width: 1280px; margin: 0 auto; }
.pad { padding: 0 32px; }
.page { padding: 28px 32px 48px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-main { grid-template-columns: 1fr 380px; align-items: start; }
.grid-main-wide { grid-template-columns: 1fr 400px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 10px; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.baseline { align-items: baseline; }
.end { align-items: flex-end; }
.start { align-items: flex-start; }
.grow { flex: 1; min-width: 0; }
.mt-4 { margin-top: 4px; } .mt-6 { margin-top: 6px; } .mt-8 { margin-top: 8px; } .mt-10 { margin-top: 10px; } .mt-12 { margin-top: 12px; } .mt-14 { margin-top: 14px; } .mt-16 { margin-top: 16px; } .mt-18 { margin-top: 18px; } .mt-20 { margin-top: 20px; } .mt-26 { margin-top: 26px; }
.mb-4 { margin-bottom: 4px; } .mb-6 { margin-bottom: 6px; } .mb-8 { margin-bottom: 8px; } .mb-10 { margin-bottom: 10px; } .mb-12 { margin-bottom: 12px; } .mb-14 { margin-bottom: 14px; } .mb-16 { margin-bottom: 16px; } .mb-18 { margin-bottom: 18px; } .mb-20 { margin-bottom: 20px; } .mb-22 { margin-bottom: 22px; } .mb-26 { margin-bottom: 26px; }

/* ---------- type ---------- */
.eyebrow { font: 500 11px var(--mono); color: var(--muted); letter-spacing: .02em; text-transform: uppercase; }
.eyebrow-12 { font: 500 12px var(--mono); color: var(--muted); }
.h-hero { font-size: 56px; line-height: 1.02; font-weight: 700; letter-spacing: -.03em; text-wrap: pretty; }
.h-page { font-size: 34px; font-weight: 700; letter-spacing: -.025em; }
.h-deal { font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.h-section { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.h-how { font-size: 28px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; text-wrap: pretty; }
.h-step { font-size: 30px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.h-card { font-weight: 600; font-size: 16px; }
.h-card-sm { font-weight: 600; font-size: 15px; }
.h-modal { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.lede { font-size: 18px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.sub { font-size: 13px; color: var(--muted); }
.sub-12 { font-size: 12px; color: var(--muted); }
.sub-11 { font-size: 11px; color: var(--muted); }
.fine { font-size: 11px; color: var(--muted-2); line-height: 1.5; }
.num-xl { font: 600 34px var(--mono); letter-spacing: -.02em; }
.num-lg { font: 600 30px var(--mono); letter-spacing: -.02em; }
.num-28 { font: 600 28px var(--mono); letter-spacing: -.02em; }
.num-24 { font: 600 24px var(--mono); letter-spacing: -.02em; }
.num-22 { font: 600 22px var(--mono); letter-spacing: -.02em; }
.num-18 { font: 600 18px var(--mono); }
.num-14 { font: 600 14px var(--mono); }
.num-13 { font: 500 13px var(--mono); }
.num-12 { font: 500 12px var(--mono); }
.num-11 { font: 500 11px var(--mono); }
.num-40 { font: 600 40px var(--mono); letter-spacing: -.03em; }
.num-64 { font: 600 64px var(--mono); letter-spacing: -.04em; line-height: 1; }
.label-12 { font-size: 12px; font-weight: 500; }

/* ---------- surfaces ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); }
.card-pad { padding: 20px 22px; }
.card-pad-sm { padding: 18px; }
.card-strong { background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r-xl); }
.card-ink { background: var(--ink); color: var(--white); border-radius: var(--r-xl); }
.card-ink .muted { color: rgba(255,255,255,.55); }
.card-amber { border: 1px solid var(--amber-line); background: var(--amber-bg); border-radius: var(--r-lg); }
.card-green { background: var(--green-bg); border-radius: var(--r-lg); }
.divider { border-top: 1px solid var(--line); }
.divider-dash { border-top: 1px dashed var(--line-2); }
.hover-line:hover { border-color: var(--ink); }
.hover-bg:hover { background: var(--paper-2); }

/* ---------- nav ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 0 32px; height: var(--nav-h); border-bottom: 1px solid var(--line); background: var(--white); }
.nav-left { display: flex; align-items: center; gap: 36px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.brand-mark { width: 26px; height: 26px; display: grid; place-items: center; flex: none; }
.brand-mark svg { display: block; }
.brand-crumb { font-size: 14px; color: var(--muted); margin-left: 8px; font-weight: 400; }
.nav-links { display: flex; gap: 26px; font-size: 14px; font-weight: 500; align-items: center; height: var(--nav-h); }
.nav-links a { color: var(--muted); height: var(--nav-h); display: flex; align-items: center; border-bottom: 2px solid transparent; padding-top: 2px; }
.nav-links a.on { color: var(--ink); border-bottom-color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.search { display: flex; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; height: 36px; width: 260px; color: var(--muted-2); font-size: 13px; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 13px; color: var(--ink); }
.search input::placeholder { color: var(--muted-2); }
.search kbd { font: 500 10px var(--mono); border: 1px solid var(--line-2); border-radius: 4px; padding: 1px 5px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--avatar); display: grid; place-items: center; font-weight: 600; font-size: 13px; color: var(--ink); }
.bell { position: relative; width: 34px; height: 34px; border-radius: 8px; background: var(--paper); border: 1px solid var(--line-2); display: grid; place-items: center; }
.bell svg { width: 16px; height: 16px; }
.bell.has { border-color: var(--ink); }
.bell b { position: absolute; top: -4px; right: -4px; width: 16px; height: 16px; border-radius: 50%; background: var(--green); color: #fff; font: 600 9px var(--mono); display: grid; place-items: center; }

/* user menu */
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu[open] > summary { outline: 2px solid var(--ink); outline-offset: 1px; }
.menu-pop { position: absolute; right: 0; top: 42px; width: 220px; background: var(--white); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 60; }
.menu-pop a, .menu-pop button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--ink); }
.menu-pop a:hover, .menu-pop button:hover { background: var(--paper); }
.menu-head { padding: 8px 10px 10px; font-size: 13px; }
.menu-sep { border-top: 1px solid var(--line); margin: 6px 4px; }
.offer.muted { opacity: .55; }

/* icon buttons + sheets (search / burger) */
.icon-btn { width: 36px; height: 36px; border-radius: 10px; background: var(--white); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); }
.icon-btn svg { width: 16px; height: 16px; }
.search { cursor: text; }
.sheet { position: fixed; inset: 0; z-index: 80; background: rgba(20,19,15,.35); display: flex; align-items: flex-start; justify-content: center; padding: 8vh 16px 16px; }
.sheet[hidden] { display: none; }
.sheet-box { width: 100%; max-width: 560px; background: var(--white); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; max-height: 84vh; display: flex; flex-direction: column; }
.sheet-search { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--line); }
.sheet-search input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 16px; height: 44px; background: none; -webkit-appearance: none; appearance: none; }
input[type=search]::-webkit-search-cancel-button, input[type=search]::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.sheet-close { width: 36px; height: 36px; border-radius: 8px; color: var(--muted); display: grid; place-items: center; font-size: 14px; }
.sheet-close:hover { background: var(--paper); }
.sheet-list { overflow: auto; padding: 6px; }
.sheet-list a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: 13px; }
.sheet-list a:hover, .sheet-list a.active { background: var(--paper); }
.sheet-list a[hidden] { display: none; }
.sheet-list .sheet-add { color: var(--muted); font-weight: 500; justify-content: center; margin-top: 4px; }
.menu-box { padding: 12px; }
.menu-user { display: flex; align-items: center; gap: 12px; padding: 10px 8px 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; font-size: 14px; }
.menu-links { display: flex; flex-direction: column; }
.menu-links a { display: flex; flex-direction: column; padding: 12px 10px; border-radius: 10px; font-size: 17px; font-weight: 600; gap: 2px; }
.menu-links a .sub-12 { font-weight: 400; }
.menu-links a.on { background: var(--paper); }
.menu-links a:hover { background: var(--paper-2); }
.menu-foot { display: flex; flex-direction: column; gap: 8px; padding: 12px 4px 4px; border-top: 1px solid var(--line); margin-top: 8px; }
.menu-foot .btn { height: 46px; }
body.sheet-open { overflow: hidden; }

/* ---------- ticker ---------- */
.ticker { border-bottom: 1px solid var(--line); background: var(--white); overflow: hidden; font: 500 12px var(--mono); position: relative; }
.ticker-track { display: flex; width: max-content; animation: ticker var(--ticker-duration, 60s) linear infinite; }
.ticker:hover .ticker-track, .ticker.paused .ticker-track { animation-play-state: paused; }
.ticker a { display: flex; gap: 8px; align-items: center; padding: 9px 18px; border-right: 1px solid var(--line); white-space: nowrap; }
.ticker a:hover { background: var(--paper-2); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } .ticker { overflow-x: auto; scrollbar-width: none; } }
.ticker .sym { font-weight: 600; }
.ticker .val { color: var(--muted); }
.ticker .sig.green { color: var(--green-ink); }
.ticker .sig.amber { color: var(--amber-ink); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: var(--r); font-size: 14px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.btn:hover { color: inherit; filter: brightness(.97); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { color: #fff; background: #000; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { color: #fff; }
.btn-white { background: var(--white); border-color: var(--line-2); color: var(--ink); }
.btn-ghost { background: none; color: var(--muted); font-weight: 600; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn-xl { height: 50px; font-size: 15px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; font-weight: 500; }
.btn-xs { height: 30px; padding: 0 10px; font-size: 12px; font-weight: 500; border-radius: 7px; border: 1px solid var(--line-2); }
.btn-block { display: flex; width: 100%; }
.btn-text { font-size: 13px; font-weight: 600; text-decoration: underline; }
.btn-38 { height: 38px; padding: 0 14px; font-size: 13px; border-radius: 9px; }

/* ---------- badges, pills, tiles ---------- */
.badge { display: inline-flex; align-items: center; font: 500 10px var(--mono); padding: 3px 7px; border-radius: 5px; white-space: nowrap; letter-spacing: .01em; }
.badge-11 { font-size: 11px; padding: 4px 8px; border-radius: 6px; }
.badge-green { background: var(--green-bg); color: var(--green-ink); }
.badge-amber { background: var(--amber-bg); color: var(--amber-ink); }
.badge-muted { background: var(--line-3); color: var(--muted); }
.badge-line { background: var(--paper); border: 1px solid var(--line); color: var(--muted); }
.pill { font: 500 11px var(--mono); padding: 4px 8px; border-radius: 5px; background: var(--paper); color: var(--muted); }
.pill.on { background: var(--ink); color: #fff; }
.chip { font-size: 13px; font-weight: 500; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--white); color: var(--muted); white-space: nowrap; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.tile { border-radius: 10px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; overflow: hidden; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-28 { width: 28px; height: 28px; font-size: 12px; border-radius: 8px; }
.tile-30 { width: 30px; height: 30px; font-size: 12px; border-radius: 8px; }
.tile-32 { width: 32px; height: 32px; font-size: 14px; border-radius: 9px; }
.tile-36 { width: 36px; height: 36px; font-size: 15px; }
.tile-44 { width: 44px; height: 44px; font-size: 18px; border-radius: 12px; }
.tile-52 { width: 52px; height: 52px; font-size: 22px; border-radius: 14px; }
.tile-64 { width: 64px; height: 64px; font-size: 26px; border-radius: 16px; }
.tile-26 { width: 26px; height: 26px; font-size: 12px; border-radius: 7px; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: var(--green-dot); flex: none; }
.dot.amber { background: var(--amber); }
.who { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 600 10px var(--mono); color: #fff; flex: none; }
.who-24 { width: 24px; height: 24px; font-size: 9px; }
.who-22 { width: 22px; height: 22px; font-size: 8px; }
.who-grey { background: var(--track); color: var(--muted); }
.who.fo { background: oklch(0.5 0.1 260); } .who.vc { background: oklch(0.55 0.12 30); } .who.a { background: oklch(0.5 0.1 150); } .who.ee { background: oklch(0.55 0.1 80); } .who.b { background: var(--muted); } .who.sp { background: var(--muted); }

/* ---------- bars ---------- */
.bar { height: 6px; background: var(--track); border-radius: 3px; overflow: hidden; display: flex; }
.bar > i { display: block; height: 100%; background: var(--green); }
.bar > i.pending { background: var(--green-soft); }
.bar > i.amber { background: var(--amber); }
.bar > i.soft { background: var(--green-mid); }
.bar-5 { height: 5px; } .bar-10 { height: 10px; border-radius: 5px; } .bar-12 { height: 12px; border-radius: 6px; } .bar-14 { height: 14px; } .bar-16 { height: 16px; }
.bar-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2px 12px; font: 500 11px var(--mono); color: var(--muted); margin-top: 8px; }
.bar-meta .fill { color: var(--ink); font-weight: 600; }
.bar-meta-12 { font-size: 12px; }
.bucket { display: grid; grid-template-columns: 52px 1fr 56px; gap: 8px; align-items: center; font: 500 12px var(--mono); }
.bucket .lbl { color: var(--muted); }
.bucket.hot .lbl { color: var(--ink); font-weight: 600; }
.bucket .amt { text-align: right; color: var(--muted); }
.buckets { display: flex; flex-direction: column; gap: 6px; }

/* ---------- tables ---------- */
.thead { display: grid; padding: 10px 18px; background: var(--paper); font: 500 11px var(--mono); color: var(--muted); border-bottom: 1px solid var(--line); text-transform: uppercase; }
.trow { display: grid; padding: 12px 18px; border-bottom: 1px solid var(--line-3); font-size: 13px; align-items: center; }
.trow:last-child { border-bottom: 0; }
.cols-companies { grid-template-columns: 2fr 1.1fr 1.3fr 1.3fr 1.2fr 1fr; }
.cols-rounds { grid-template-columns: 1fr 1fr 1fr 1.2fr 1.5fr; }
.cols-buyers { grid-template-columns: 1.6fr 1fr .9fr .8fr; }
.cols-compare { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-3); font-size: 13px; }
.kv:last-child { border-bottom: 0; }
.kv .k { color: var(--muted); }
.kv .v { font-weight: 500; text-align: right; }
.kv .v.mono { font: 600 13px var(--mono); }
.kv-9 { padding: 9px 0; }
.kv-10 { padding: 10px 0; }

/* ---------- forms ---------- */
.field { font-size: 12px; font-weight: 500; margin-bottom: 6px; display: block; }
.field-muted { font-size: 12px; color: var(--muted); margin-bottom: 6px; display: block; }
.input { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line-2); border-radius: var(--r); padding: 0 14px; height: 50px; background: var(--white); width: 100%; }
.input.on, .input:focus-within { border-color: var(--ink); }
.input input, .input select { flex: 1; min-width: 0; width: 100%; border: 0; outline: 0; background: none; height: 100%; font-size: 14px; }
.input select { -webkit-appearance: none; appearance: none; cursor: pointer; }
.input .hint { font: 500 12px var(--mono); color: var(--muted); white-space: nowrap; text-align: right; line-height: 1.3; }
.input-big { height: 56px; }
.input-big input { font: 600 28px var(--mono); letter-spacing: -.02em; }
.input-md input { font: 600 20px var(--mono); }
.input-text input { font-size: 14px; }
.prefix { font: 600 28px var(--mono); color: var(--muted-2); letter-spacing: -.02em; }
.input-md .prefix { font-size: 20px; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; font: 500 11px var(--mono); }
.quick button, .quick span { padding: 5px 8px; border-radius: 6px; background: var(--paper); color: var(--muted); cursor: pointer; }
.quick .on { background: var(--ink); color: #fff; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; border: 1px solid var(--line-2); border-radius: var(--r); padding: 12px; line-height: 1.4; cursor: pointer; background: var(--white); }
.check > input[type=checkbox] { position: absolute; opacity: 0; width: 0; height: 0; }
.check .box { width: 16px; height: 16px; border-radius: 4px; border: 1px solid var(--muted-2); flex: none; margin-top: 1px; display: grid; place-items: center; font-size: 11px; color: #fff; }
.check > input:checked ~ .box { background: var(--ink); border-color: var(--ink); }
.check > input:checked ~ .box::after { content: '✓'; }
.check.center { align-items: center; }
.check.center .box { margin-top: 0; }
.radio { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line-2); cursor: pointer; background: var(--white); }
.radio > input[type=radio] { position: absolute; opacity: 0; width: 0; height: 0; }
.radio .rb { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--muted-2); flex: none; }
.radio > input:checked ~ .rb { border: 6px solid var(--ink); }
.radio:has(> input:checked) { border-color: var(--ink); background: var(--paper); }
.radio-card { align-items: flex-start; padding: 14px; border-radius: 12px; gap: 14px; }
.radio-card .rb { margin-top: 2px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); border-radius: var(--r); padding: 4px; font-size: 12px; font-weight: 600; text-align: center; }
.seg span, .seg label { padding: 8px 4px; border-radius: 7px; color: var(--muted); cursor: pointer; }
.seg .on { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.seg3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg3 label { border: 1px solid var(--line-2); border-radius: var(--r); padding: 12px; font-size: 13px; text-align: center; color: var(--muted); cursor: pointer; background: var(--white); }
.seg3 label:has(input:checked) { border-color: var(--ink); color: var(--ink); font-weight: 600; }
.seg3 input[type=radio] { position: absolute; opacity: 0; }
.drop { border: 1.5px dashed #b8b5aa; border-radius: var(--r-lg); padding: 26px; text-align: center; background: var(--white); cursor: pointer; }
.drop input { display: none; }
.textarea { width: 100%; border: 1px solid var(--line-2); border-radius: 8px; padding: 10px 12px; font-size: 13px; min-height: 44px; resize: vertical; outline: 0; background: var(--white); }
.textarea:focus { border-color: var(--ink); }
.error { background: var(--amber-bg); border: 1px solid var(--amber-line); color: var(--amber-ink); border-radius: 8px; padding: 10px 12px; font-size: 13px; margin-bottom: 14px; }
.flash { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 13px; box-shadow: var(--shadow-lg); z-index: 50; max-width: min(560px, calc(100vw - 32px)); }
.flash.info { background: var(--ink-2); }
.form-note { font-size: 12px; color: var(--muted); line-height: 1.5; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.help-callout { display: flex; align-items: center; gap: 8px; background: var(--green-bg); border-radius: 8px; padding: 10px 12px; font-size: 12.5px; color: var(--green-deep); }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; padding: 64px 32px 56px; align-items: center; }
.hero-live { display: inline-flex; align-items: center; gap: 8px; font: 500 12px var(--mono); color: var(--muted); margin-bottom: 22px; }
.hero-cta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hero-card { background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r-2xl); padding: 22px; box-shadow: var(--shadow-lg); }
.avatars { display: flex; align-items: center; }
.avatars .who { border: 2px solid #fff; margin-right: -8px; }
.how { margin: 0 32px; padding: 40px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 320px 1fr; gap: 48px; }
.model { margin: 0 32px; padding: 0 0 48px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 16px; }
.section-white { background: var(--white); border-top: 1px solid var(--line); padding: 32px 32px 40px; }
.deal-card { display: block; background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r-xl); padding: 18px; }
.deal-card:hover { border-color: var(--ink); color: inherit; }
.footer { display: flex; justify-content: space-between; align-items: center; padding: 22px 32px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); gap: 12px; flex-wrap: wrap; }

/* ---------- company ---------- */
.crumbs { font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.crumbs .here { color: var(--ink); }
.co-head { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.co-head .actions { display: flex; gap: 10px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; }
.stat .k { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.stat .v { font: 600 22px var(--mono); letter-spacing: -.02em; }
.stat .s { font-size: 12px; margin-top: 4px; color: var(--muted); }
.stat .s.green { color: var(--green-ink); } .stat .s.ink { color: var(--ink); } .stat .s.amber { color: var(--amber-ink); }
.stat-24 .v { font-size: 24px; }
.people .p { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-3); font-size: 13px; }
.news .n { padding: 8px 0; border-bottom: 1px solid var(--line-3); }
.news .n:last-child, .people .p:last-child { border-bottom: 0; }
.rail-deal { display: block; padding: 14px 18px; border-bottom: 1px solid var(--line-3); }
.rail-deal:hover { background: var(--paper-2); color: inherit; }
.alert-box { display: flex; gap: 8px; }
.alert-box input { flex: 1; min-width: 0; background: rgba(255,255,255,.1); border: 0; border-radius: 8px; padding: 10px 12px; font-size: 13px; color: #fff; outline: 0; }
.alert-box input::placeholder { color: rgba(255,255,255,.6); }
.alert-box button { background: #fff; color: var(--ink); border-radius: 8px; padding: 10px 14px; font-size: 13px; font-weight: 600; }

/* ---------- deal ---------- */
.sticky { position: sticky; top: 16px; }
.buy-panel { background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r-xl); padding: 20px; box-shadow: 0 8px 30px rgba(20,19,15,.06); }
.legend { display: flex; gap: 16px; font: 500 11px var(--mono); color: var(--muted); margin: 8px 0 18px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; vertical-align: middle; margin-right: 6px; border-radius: 2px; background: var(--green); }
.legend i.pending { background: var(--green-soft); }
.qa .q { padding: 12px 0; border-bottom: 1px solid var(--line-3); }
.qa .a { font-size: 13px; color: var(--ink-2); line-height: 1.5; padding-left: 12px; border-left: 2px solid var(--line-2); }
.timeline .t { display: flex; gap: 10px; font-size: 13px; padding: 5px 0; }
.timeline .t i { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex: none; background: var(--line-2); }
.timeline .t.done i { background: var(--green); }
.timeline .t span.l { flex: 1; color: var(--muted); }
.timeline .t.done span.l { color: var(--ink); }
.vcheck { width: 18px; height: 18px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--amber-bg); color: var(--amber-ink); }
.vcheck.ok { background: var(--green-bg); color: var(--green-ink); }
.vcheck.na { background: var(--line-3); color: var(--muted); }

/* ---------- flows ---------- */
.modal { width: 100%; max-width: 440px; background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r-2xl); padding: 24px; box-shadow: var(--shadow); margin: 0 auto; }
.modal.amber { border-color: var(--amber-line); }
.flow-wrap { padding: 40px 32px 64px; display: flex; justify-content: center; }
.steps { display: flex; gap: 6px; align-items: center; }
.steps span { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; padding: 6px 12px; border-radius: 20px; background: var(--white); color: var(--muted); }
.steps span.on { background: var(--ink); color: #fff; }
.steps span b { font: 600 10px var(--mono); }
.sell-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); min-height: 640px; }
.deal-cols { grid-template-columns: 1.3fr 1fr; }
.sell-col { padding: 40px 48px; }
.sell-col + .sell-col { border-left: 1px solid var(--line); }
.sell-col.single { grid-column: 1 / -1; max-width: 640px; }
.progress-bar { display: flex; gap: 4px; }
.progress-bar span { flex: 1; height: 3px; background: var(--line-2); border-radius: 2px; }
.progress-bar span.on { background: var(--ink); }
.preview-card { background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r-xl); padding: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { font-size: 12px; padding: 6px 10px; border-radius: 6px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.chips span.off { background: var(--white); color: var(--muted-2); }
.chips span.green { background: var(--green-bg); color: var(--green-ink); border-color: var(--green-bg); }
.done-box { display: flex; gap: 12px; align-items: flex-start; background: var(--green-bg); border-radius: var(--r-lg); padding: 14px; }
.done-box .tick { width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.done-box a { color: var(--green-deep); text-decoration: underline; }

/* ---------- workspace ---------- */
.ws-grid { display: grid; grid-template-columns: 1fr 380px; min-height: calc(100vh - var(--nav-h)); }
.ws-main { padding: 28px 32px 40px; min-width: 0; }
.drawer { background: var(--white); border-left: 1px solid var(--line-2); box-shadow: -16px 0 40px rgba(20,19,15,.06); display: flex; flex-direction: column; }
.drawer .n { display: flex; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line-3); }
.drawer .n.unread { background: var(--green-bg); }
.drawer .n i { width: 8px; height: 8px; border-radius: 50%; flex: none; margin-top: 6px; background: var(--line-2); }
.drawer .n.unread i { background: var(--green); }
.drawer .n i.amber { background: var(--amber); }
.drawer .n i.ink { background: var(--ink); }
.tabs { display: flex; gap: 18px; padding: 14px 20px 0; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.tabs a { padding-bottom: 12px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--ink); }
.bid { padding: 16px 20px; border-bottom: 1px solid var(--line-3); }
.bid-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; font-size: 12px; }
.bid-grid .k { color: var(--muted); display: block; font-size: 11px; }
.bid-grid .v { font: 600 14px var(--mono); }
.offer { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--line-3); font-size: 13px; }
.offer .grow { min-width: 0; }
.offer .grow > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.offer .size { font: 600 14px var(--mono); text-align: right; white-space: nowrap; }
.offer .px { font: 500 12px var(--mono); text-align: right; white-space: nowrap; }
.offer form { display: flex; gap: 6px; }
.offer button { font-size: 12px; font-weight: 600; padding: 6px 9px; border-radius: 7px; white-space: nowrap; }
.offer .accept { background: var(--green); color: #fff; }
.offer .counter { background: var(--paper); color: var(--ink); }
.offer .wait { background: var(--paper); color: var(--muted); }
.offer .pass { border: 1px solid var(--line-2); font-weight: 500; }

/* ---------- auth ---------- */
.auth { min-height: calc(100vh - var(--nav-h)); display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 40px 16px; }
.auth .modal { width: 100%; max-width: 420px; }
.auth .input { margin-bottom: 10px; }
.auth label.field { margin-top: 6px; }

/* ---------- mobile tab bar ---------- */
.tabbar { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .grid-main, .grid-main-wide { grid-template-columns: 1fr; }
  .co-grid { display: flex; flex-direction: column; }
  .co-rail { order: -1; }
  .co-rail { display: flex; flex-direction: column; }
  .sticky { position: static; }
  .ws-grid { grid-template-columns: 1fr; }
  .drawer { border-left: 0; border-top: 1px solid var(--line-2); box-shadow: none; }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 48px 32px 40px; }
  .h-hero { font-size: 44px; }
  .how { grid-template-columns: 1fr; gap: 24px; }
  .model { grid-template-columns: 1fr; }
  .search { width: 200px; }
}
@media (max-width: 860px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .sell-grid { grid-template-columns: minmax(0,1fr); min-height: 0; }
  .sell-col + .sell-col { border-left: 0; border-top: 1px solid var(--line); }
  .sell-col { padding: 28px 24px; }
  .steps span em { display: none; }
  .nav-links { display: none; }
  .nav-right { gap: 8px; }
  .nav .only-m { display: grid !important; }
  .nav .hide-m { display: none !important; }
  .sheet { padding: 0; align-items: stretch; }
  .sheet-box { max-width: none; border-radius: 0; max-height: none; border: 0; }
  .menu-box { padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); }
  .cols-companies { grid-template-columns: 2fr 1.1fr 1.3fr 1.3fr; }
  .cols-companies > :nth-child(5), .cols-companies > :nth-child(6) { display: none; }
  .cols-rounds { grid-template-columns: 1fr 1fr 1fr 1fr; }
  .cols-rounds > :nth-child(5) { display: none; }
}
@media (max-width: 640px) {
  body { padding-bottom: 76px; }
  .nav { padding: 0 16px; height: 56px; }
  .pad, .page, .section-white { padding-left: 16px; padding-right: 16px; }
  .page { padding-top: 20px; padding-bottom: 32px; }
  .hero { padding: 26px 16px 18px; gap: 20px; }
  .h-hero { font-size: 32px; line-height: 1.05; }
  .lede { font-size: 14px; }
  .hero-cta .btn-lg { flex: 1; height: 46px; padding: 0 12px; font-size: 14px; }
  .hero-cta .sub { flex-basis: 100%; }
  .hero-card { padding: 16px; }
  .how, .model { margin: 0 16px; }
  .how { padding: 28px 0; }
  .model { padding-bottom: 28px; }
  .grid-2, .grid-3, .grid-4, .grid-5, .deal-cols, .form-grid { grid-template-columns: 1fr; }
  .how { padding: 28px 0 8px; gap: 18px; }
  .model { gap: 20px; padding-bottom: 32px; }
  .carousel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin: 0 -16px; padding: 0 16px 4px; }
  .carousel::-webkit-scrollbar { display: none; }
  .carousel > * { flex: 0 0 82%; min-width: 0; scroll-snap-align: center; overflow-wrap: anywhere; }
  .carousel .kv .v { font-size: 12px; }
  .carousel > *:last-child { margin-right: 16px; }
  .dots { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
  .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); display: block; transition: background .15s; }
  .dots i.on { background: var(--ink); }
  body.has-sheet { padding-bottom: 110px; }
  .sell-col { padding: 20px 16px 28px; }
  .sell-col.single { max-width: none; }
  .grid-5 { grid-template-columns: 1fr 1fr; }
  .grid-5 .stat:last-child { grid-column: 1 / -1; }
  .h-page { font-size: 26px; }
  .h-deal { font-size: 22px; }
  .h-section { font-size: 18px; }
  .h-how { font-size: 22px; }
  .h-step { font-size: 28px; }
  .co-head { flex-wrap: wrap; gap: 12px; }
  .co-head .actions { width: 100%; }
  .co-head .actions .btn { flex: 1; padding: 0 10px; }
  .cols-companies { grid-template-columns: 2fr 1.2fr 1.2fr; padding-left: 14px; padding-right: 14px; }
  .cols-companies > :nth-child(2), .cols-companies > :nth-child(5), .cols-companies > :nth-child(6) { display: none; }
  .cols-buyers { grid-template-columns: 1.6fr 1fr .9fr; }
  .cols-buyers > :nth-child(4) { display: none; }
  .cols-compare { grid-template-columns: 1.4fr 1fr 1fr 1fr; font-size: 12px; padding-left: 14px; padding-right: 14px; }
  .between.wrap-m { flex-wrap: wrap; }
  .modal { padding: 20px 16px; border-radius: 14px; }
  .flow-wrap { padding: 20px 16px 40px; }
  .buy-panel { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; border-radius: 24px 24px 0 0; padding: 10px 18px 28px; transform: translateY(calc(100% - 100px)); transition: transform .25s ease; box-shadow: 0 -8px 30px rgba(20,19,15,.12); max-height: 92vh; overflow: auto; }
  .buy-panel.open { transform: none; }
  .buy-panel .handle { width: 36px; height: 4px; border-radius: 2px; background: var(--line-2); margin: 0 auto 14px; display: block; }
  .buy-panel .peek { display: flex; }
  .peek { display: none; }
  .bid-grid { grid-template-columns: repeat(3, 1fr); }
  .bid-grid > :last-child { grid-column: 1 / -1; text-align: left; }
  .offer { flex-wrap: wrap; }
  .offer form { width: 100%; justify-content: flex-end; }
  .ws-main { padding: 18px 16px 32px; }
  .drawer { max-height: none; }
  .tabbar { display: grid; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); grid-template-columns: repeat(4, 1fr); padding: 8px 8px calc(10px + env(safe-area-inset-bottom)); font-size: 11px; font-weight: 500; text-align: center; }
  .tabbar a { padding: 6px; color: var(--muted-2); }
  .tabbar a.on { color: var(--ink); }
  .tabbar a i { display: block; font-size: 16px; font-style: normal; }
  .offer .badge { display: none; }
  .footer { padding: 18px 16px 24px; }
  .flash { bottom: 84px; }
  .step-nav { flex-direction: column-reverse; gap: 8px; }
  .step-nav .btn { width: 100%; }
  .steps { display: none; }
  .hide-m { display: none !important; }
  .thead.cols-companies { padding-left: 14px; padding-right: 14px; }
}
@media (min-width: 641px) {
  .only-m { display: none !important; }
}
