:root {
  --paper: #f5f3ee;
  --surface: #ffffff;
  --surface-2: #faf9f6;
  --ink: #13202a;
  --ink-2: #34424d;
  --muted: #66727c;
  --faint: #98a2aa;
  --line: #e6e2da;
  --line-2: #efece6;
  --brand: #0d5c63;
  --brand-2: #127c85;
  --brand-tint: #e3f0f0;
  --accent: #c8781c;
  --accent-tint: #fbf0e1;
  --a: #0f7b62;
  --a-tint: #e2f2ec;
  --b: #d49327;
  --b-tint: #fbf1de;
  --c: #9aa4ad;
  --c-tint: #eef0f2;
  --bd1: #3b5bdb;
  --bd1-tint: #e7ecfd;
  --bd2: #d6336c;
  --bd2-tint: #fce6ee;
  --lock: #7a6a4f;
  --shadow: 0 1px 2px rgba(19, 32, 42, .06), 0 8px 24px rgba(19, 32, 42, .06);
  --shadow-lg: 0 24px 60px rgba(19, 32, 42, .18);
  --r: 14px;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--paper); color: var(--ink); font: 14px/1.45 var(--sans); -webkit-font-smoothing: antialiased; overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }
svg.i { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- header ---------- */
.top { height: 60px; display: flex; align-items: center; gap: 18px; padding: 0 20px; background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 210px; }
.brand .mark { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); display: grid; place-items: center; color: #fff; }
.brand .mark svg { width: 18px; height: 18px; }
.brand b { font: 600 17px/1 var(--serif); letter-spacing: -.01em; display: block; white-space: nowrap; }
.brand small { color: var(--muted); font-size: 11.5px; display: block; margin-top: 3px; }
.tabs { display: flex; gap: 2px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 11px; padding: 3px; }
.tabs button { border: 0; background: transparent; padding: 7px 14px; border-radius: 8px; font-weight: 500; color: var(--ink-2); display: flex; gap: 7px; align-items: center; white-space: nowrap; }
.tabs button:hover { background: var(--surface); }
.tabs button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.tabs .pill { font-size: 11px; padding: 1px 6px; border-radius: 99px; background: var(--accent-tint); color: var(--accent); font-weight: 600; }
.spacer { flex: 1; }
.search { position: relative; width: 300px; min-width: 160px; flex: 0 1 300px; }
.search input { width: 100%; height: 36px; border: 1px solid var(--line); background: var(--surface-2); border-radius: 10px; padding: 0 12px 0 34px; font: inherit; outline: none; }
.search input:focus { border-color: var(--brand-2); background: #fff; box-shadow: 0 0 0 3px var(--brand-tint); }
.search > svg { position: absolute; left: 11px; top: 10px; color: var(--faint); }
.search kbd { position: absolute; right: 9px; top: 8px; font: 11px var(--sans); color: var(--faint); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; background: #fff; }
.results { position: absolute; top: 42px; left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); max-height: 420px; overflow: auto; display: none; padding: 6px; }
.results.on { display: block; }
.results .hd { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); padding: 8px 10px 4px; }
.results button { display: flex; width: 100%; text-align: left; gap: 10px; align-items: center; border: 0; background: none; padding: 8px 10px; border-radius: 8px; }
.results button:hover, .results button.sel { background: var(--brand-tint); }
.results .sub { color: var(--muted); font-size: 12px; }
.region-btn { white-space: nowrap; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-weight: 500; }
.region-btn:hover { border-color: var(--brand-2); }
.cart-btn { white-space: nowrap; position: relative; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 500; }
.cart-btn .badge { background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; border-radius: 99px; padding: 1px 7px; }
.cart-btn.zero .badge { background: var(--c); }

.menu { position: absolute; top: 52px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px; width: 340px; display: none; z-index: 40; }
.menu.on { display: block; }
.menu .grp { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); padding: 10px 10px 4px; }
.menu button { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: 9px; text-align: left; }
.menu button:hover:not(:disabled) { background: var(--brand-tint); }
.menu button.on { background: var(--brand-tint); font-weight: 600; }
.menu button:disabled { color: var(--faint); cursor: default; }
.menu .tag { font-size: 11px; padding: 2px 7px; border-radius: 99px; background: var(--c-tint); color: var(--muted); white-space: nowrap; }
.menu .tag.deep { background: var(--a-tint); color: var(--a); }
.menu .cnt { color: var(--muted); font-size: 12px; margin-left: auto; }

/* ---------- answer strip ---------- */
.strip { display: flex; gap: 12px; padding: 14px 20px 12px; align-items: stretch; }
.stat { flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; cursor: pointer; transition: border-color .15s, transform .15s; min-width: 0; }
.stat:hover { border-color: var(--brand-2); transform: translateY(-1px); }
.stat .v { font: 600 28px/1.05 var(--serif); letter-spacing: -.02em; }
.stat .l { color: var(--muted); font-size: 12.5px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat.hero { flex: 1.35; background: linear-gradient(135deg, #0d5c63, #0f7b72); color: #fff; border: 0; }
.stat.hero .l { color: rgba(255, 255, 255, .8); }
.stat .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }

/* ---------- views ---------- */
.view { display: none; height: calc(100vh - 60px); padding: 16px 20px 20px; }
.view.on { display: flex; gap: 16px; }
.view.full { height: calc(100vh - 60px); padding-top: 18px; overflow: auto; display: none; }
.view.full.on { display: block; }

.mapcol { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; overflow: auto; padding-right: 2px; }
.mapwrap { position: relative; flex: 1; min-height: 420px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: #e9eef0; box-shadow: var(--shadow); }
#map, #bdmap { position: absolute; inset: 0; }
.legend { position: absolute; left: 12px; bottom: 12px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 12px; box-shadow: var(--shadow); }
.legend .lrow { display: flex; align-items: center; gap: 8px; margin: 3px 0; }
.legend .sw { width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.legend .t { font-weight: 600; margin-bottom: 4px; }
.maptools { position: absolute; right: 12px; top: 12px; display: flex; flex-direction: column; gap: 8px; }
.seg { display: flex; background: rgba(255, 255, 255, .95); border: 1px solid var(--line); border-radius: 10px; padding: 3px; box-shadow: var(--shadow); }
.seg button { border: 0; background: none; padding: 5px 10px; border-radius: 7px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.seg button.on { background: var(--ink); color: #fff; }
.maphint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); background: rgba(19, 32, 42, .86); color: #fff; padding: 6px 12px; border-radius: 99px; font-size: 12.5px; pointer-events: none; transition: opacity .4s; }
.landmark { font: italic 500 12.5px var(--serif); color: #4b5a64; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 6px #fff; pointer-events: none; white-space: nowrap; letter-spacing: .01em; }
.maplibregl-popup-content { border-radius: 12px !important; padding: 10px 12px !important; box-shadow: var(--shadow-lg) !important; font: 13px/1.4 var(--sans); }
.pop b { display: block; font-weight: 600; }
.pop .sub { color: var(--muted); font-size: 12px; }
.pop .why { margin-top: 5px; font-size: 12px; color: var(--ink-2); }

.charts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.card h3 { margin: 0 0 2px; font: 600 15px/1.25 var(--serif); }
.card .cap { color: var(--muted); font-size: 12px; margin-bottom: 10px; }
.bars .b { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 4px 6px; margin: 0 -6px; border-radius: 7px; cursor: pointer; font-size: 12.5px; }
.bars .b:hover { background: var(--surface-2); }
.bars .b.on { background: var(--brand-tint); }
.bars .track { grid-column: 1 / -1; height: 6px; border-radius: 4px; background: var(--line-2); overflow: hidden; display: flex; }
.bars .fill { height: 100%; background: var(--brand-2); }
.bars .fill.a { background: var(--a); }
.bars .fill.b { background: var(--b); }
.bars .fill.c { background: var(--c); }
.bars .n { color: var(--muted); }

/* ---------- list panel ---------- */
.panel { width: 460px; flex: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow); }
.filters { padding: 12px 14px 10px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 9px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chips .lab { font-size: 11.5px; color: var(--muted); margin-right: 2px; min-width: 66px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 4px 11px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.chip:hover { border-color: var(--brand-2); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .d { width: 8px; height: 8px; border-radius: 50%; }
.selects { display: flex; gap: 6px; }
.selects select, .sortsel { flex: 1; min-width: 0; height: 32px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font: 12.5px var(--sans); padding: 0 8px; color: var(--ink-2); }
.more { display: none; flex-direction: column; gap: 9px; padding-top: 4px; }
.more.on { display: flex; }
.linkbtn { border: 0; background: none; color: var(--brand-2); font-weight: 500; font-size: 12.5px; padding: 0; display: inline-flex; gap: 5px; align-items: center; }
.listhead { display: flex; align-items: center; justify-content: space-between; padding: 9px 14px; border-bottom: 1px solid var(--line-2); font-size: 12.5px; color: var(--muted); gap: 8px; }
.listhead b { color: var(--ink); }
.list { overflow: auto; flex: 1; }
.row { display: flex; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); cursor: pointer; transition: background .12s; }
.row:hover, .row.hl { background: var(--surface-2); }
.row.sel { background: var(--brand-tint); }
.row .main { min-width: 0; flex: 1; }
.row .nm { font-weight: 600; font-size: 14px; display: flex; gap: 8px; align-items: center; }
.row .nm span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .meta { color: var(--muted); font-size: 12px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .why { font-size: 12.5px; margin-top: 5px; color: var(--ink-2); display: flex; gap: 6px; align-items: flex-start; }
.row .why svg { margin-top: 2px; color: var(--accent); width: 14px; height: 14px; }
.row .tags { display: flex; gap: 5px; margin-top: 7px; flex-wrap: wrap; }
.tag { font-size: 11px; padding: 2px 8px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.tag.ph { background: var(--accent-tint); border-color: transparent; color: #8a5210; font-weight: 600; }
.tag.bd1 { background: var(--bd1-tint); color: var(--bd1); border-color: transparent; font-weight: 600; }
.tag.bd2 { background: var(--bd2-tint); color: var(--bd2); border-color: transparent; font-weight: 600; }
.tag.pub { background: var(--brand-tint); color: var(--brand); border-color: transparent; }
.ring { width: 44px; height: 44px; flex: none; position: relative; }
.ring svg { width: 44px; height: 44px; transform: rotate(-90deg); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 600 14px var(--serif); }
.empty { padding: 40px 24px; text-align: center; color: var(--muted); }

/* ---------- drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(19, 32, 42, .18); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 50; }
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 620px; max-width: 100vw; background: var(--paper); box-shadow: var(--shadow-lg); transform: translateX(105%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); z-index: 60; display: flex; flex-direction: column; }
.drawer.on { transform: none; }
.dhead { background: var(--surface); padding: 20px 24px 16px; border-bottom: 1px solid var(--line); position: relative; }
.dhead h2 { margin: 0; font: 600 26px/1.15 var(--serif); letter-spacing: -.015em; padding-right: 90px; }
.dhead .about { font: italic 500 14.5px/1.45 var(--serif); color: var(--ink-2); margin-top: 6px; padding-right: 90px; }
.dhead .sub { color: var(--muted); margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 13px; }
.dhead .sub span { display: inline-flex; gap: 5px; align-items: center; }
.dhead .bigring { position: absolute; right: 64px; top: 18px; }
.x { position: absolute; right: 16px; top: 16px; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; }
.x:hover { border-color: var(--ink); }
.dbody { overflow: auto; padding: 16px 24px 40px; display: flex; flex-direction: column; gap: 14px; }
.sec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.sec h4 { margin: 0 0 10px; font: 600 15px var(--serif); display: flex; align-items: center; gap: 8px; }
.sec h4 .r { margin-left: auto; font: 500 12px var(--sans); color: var(--muted); }
.why-l { display: flex; flex-direction: column; gap: 8px; }
.why-l .w { display: flex; gap: 10px; align-items: flex-start; }
.why-l .ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.ic.raise { background: var(--a-tint); color: var(--a); }
.ic.trial { background: var(--bd1-tint); color: var(--bd1); }
.ic.grant { background: var(--accent-tint); color: var(--accent); }
.ic.cash { background: var(--brand-tint); color: var(--brand); }
.why-l .s { color: var(--muted); font-size: 12px; }
.pitch { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pitch .p { border: 1px solid var(--line); border-radius: 11px; padding: 10px; opacity: .45; }
.pitch .p.on { opacity: 1; border-color: var(--accent); background: var(--accent-tint); }
.pitch .p b { font: 600 14px var(--serif); display: block; }
.pitch .p ul { margin: 6px 0 0; padding-left: 15px; font-size: 11.5px; color: var(--ink-2); }
.pitch-why { margin-top: 10px; font-size: 13px; color: var(--ink-2); }
.parts .pt { display: grid; grid-template-columns: 150px 1fr 48px; gap: 10px; align-items: center; margin: 7px 0; font-size: 12.5px; }
.parts .bar { height: 8px; border-radius: 5px; background: var(--line-2); overflow: hidden; }
.parts .bar i { display: block; height: 100%; background: var(--brand-2); border-radius: 5px; }
.parts .val { text-align: right; color: var(--muted); }
.ppl .p { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.ppl .p:first-of-type { border-top: 0; padding-top: 2px; }
.ppl .pn { font-weight: 600; }
.ppl .pt { color: var(--ink-2); font-size: 12.5px; }
.ppl .ps { color: var(--faint); font-size: 11.5px; }
.grp { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--surface-2); color: var(--muted); margin-left: 6px; vertical-align: 1px; }
.grp.Science { background: #e8f1ff; color: #2756b8; }
.grp.CEO { background: #f1e9ff; color: #6c3fc4; }
.grp.Development { background: #e3f4ee; color: #0f7b62; }
.locks { display: flex; gap: 6px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.lockf { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 4px 9px; border-radius: 8px; background: repeating-linear-gradient(135deg, #f6f2ea, #f6f2ea 6px, #f1ece2 6px, #f1ece2 12px); color: var(--lock); border: 1px dashed #d9cfbd; white-space: nowrap; }
.lockf svg { width: 13px; height: 13px; }
.addbtn { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 4px 9px; font-size: 12px; font-weight: 600; display: inline-flex; gap: 5px; align-items: center; color: var(--ink-2); }
.addbtn:hover { border-color: var(--accent); color: var(--accent); }
.addbtn.on { background: var(--accent); border-color: var(--accent); color: #fff; }
table.t { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.t th { text-align: left; font-weight: 600; color: var(--muted); font-size: 11.5px; padding: 6px 8px; border-bottom: 1px solid var(--line); }
table.t td { padding: 7px 8px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.money { display: flex; gap: 10px; flex-wrap: wrap; }
.money .m { flex: 1; min-width: 120px; background: var(--surface-2); border-radius: 10px; padding: 10px 12px; }
.money .m b { font: 600 20px var(--serif); display: block; }
.money .m span { font-size: 12px; color: var(--muted); }
.timeline { display: flex; align-items: flex-end; gap: 6px; height: 90px; margin-top: 12px; padding-top: 10px; border-bottom: 1px solid var(--line); }
.timeline .tb { flex: 1; max-width: 46px; background: linear-gradient(180deg, var(--a), #13a07f); border-radius: 5px 5px 0 0; position: relative; min-height: 3px; }
.timeline .tb span { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); font-size: 10.5px; color: var(--ink-2); white-space: nowrap; padding-bottom: 2px; }
.tl-x { display: flex; gap: 6px; font-size: 10.5px; color: var(--muted); }
.tl-x span { flex: 1; max-width: 46px; text-align: center; }
textarea.msg { width: 100%; min-height: 170px; border: 1px solid var(--line); border-radius: 10px; padding: 12px; font: 13px/1.55 var(--sans); background: var(--surface-2); resize: vertical; color: var(--ink); }
.btn { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 7px 13px; font-weight: 600; font-size: 13px; }
.btn:hover { border-color: var(--ink); }
.btn.pri { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.pri:hover { background: #000; }
.btn.acc { background: var(--accent); color: #fff; border-color: var(--accent); }
.srcs a { display: flex; gap: 8px; align-items: center; padding: 6px 0; font-size: 13px; }
.srcs .d { color: var(--muted); font-size: 12px; margin-left: auto; }
.owner { display: flex; gap: 6px; align-items: center; }
.owner .seg button.on.bd1 { background: var(--bd1); }
.owner .seg button.on.bd2 { background: var(--bd2); }
.note { font-size: 12px; color: var(--muted); }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

/* ---------- people / BD / news / coverage ---------- */
.page { max-width: 1240px; margin: 0 auto; padding-bottom: 60px; }
.page h1 { font: 600 30px/1.15 var(--serif); letter-spacing: -.02em; margin: 6px 0 4px; }
.page .lede { color: var(--muted); font-size: 14.5px; max-width: 760px; margin: 0 0 18px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.ptable { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.ptable table { width: 100%; border-collapse: collapse; }
.ptable th { text-align: left; font-size: 11.5px; color: var(--muted); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); position: sticky; top: 0; }
.ptable td { padding: 10px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; font-size: 13px; }
.ptable tr:hover td { background: var(--surface-2); }
.ptable .co { cursor: pointer; font-weight: 500; }
.ptable .co:hover { color: var(--brand-2); }
.tierdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }

.bdgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bdcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; border-top: 4px solid var(--bd1); }
.bdcard.b2 { border-top-color: var(--bd2); }
.bdcard input.bdname { font: 600 20px var(--serif); border: 0; border-bottom: 1px dashed var(--line); width: 100%; padding: 2px 0; outline: none; background: none; }
.bdcard input.bdname:focus { border-bottom-color: var(--ink); }
.bdstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0; }
.bdstats div { background: var(--surface-2); border-radius: 10px; padding: 8px 10px; }
.bdstats b { font: 600 19px var(--serif); display: block; }
.bdstats span { font-size: 11.5px; color: var(--muted); }
.bdlist { max-height: 420px; overflow: auto; margin: 0 -18px; border-top: 1px solid var(--line-2); }
.bdlist .row { padding: 9px 18px; }
.rules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.rule { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; text-align: left; }
.rule:hover { border-color: var(--brand-2); }
.rule.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.rule b { display: block; font: 600 14.5px var(--serif); margin-bottom: 3px; }
.rule span { font-size: 12px; color: var(--muted); }
.balance { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; margin-bottom: 16px; display: grid; grid-template-columns: 1.2fr 2fr; gap: 20px; align-items: center; }
.balbar { display: flex; height: 12px; border-radius: 7px; overflow: hidden; margin: 6px 0 3px; }
.balrows { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.balrows .lbl { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; }
.verdict { font: 600 16px var(--serif); }
.verdict.ok { color: var(--a); }
.verdict.warn { color: var(--accent); }
.bdmapwrap { position: relative; height: 340px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); margin-bottom: 16px; }
.areas-assign { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.areas-assign button { border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px; background: #fff; font-size: 12.5px; font-weight: 500; }
.areas-assign button.b1 { background: var(--bd1-tint); border-color: var(--bd1); color: var(--bd1); }
.areas-assign button.b2 { background: var(--bd2-tint); border-color: var(--bd2); color: var(--bd2); }

.feed { display: flex; flex-direction: column; gap: 4px; }
.feed .mon { font: 600 13px var(--serif); color: var(--muted); margin: 16px 0 6px; }
.feed .ev { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; cursor: pointer; }
.feed .ev:hover { border-color: var(--brand-2); }
.feed .ev .c { font-weight: 600; min-width: 220px; }
.feed .ev .tx { flex: 1; color: var(--ink-2); }
.feed .ev .dt { color: var(--muted); font-size: 12px; white-space: nowrap; }

.cov { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.cov .card p { margin: 6px 0; color: var(--ink-2); font-size: 13px; }
.cov ul { margin: 6px 0; padding-left: 18px; color: var(--ink-2); font-size: 13px; }
.cov li { margin: 4px 0; }
.srcgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.srcgrid .card b { font: 600 22px var(--serif); display: block; margin-top: 4px; }
.reg { width: 100%; border-collapse: collapse; font-size: 13px; }
.reg td, .reg th { padding: 7px 8px; border-bottom: 1px solid var(--line-2); text-align: left; }
.reg th { color: var(--muted); font-weight: 600; font-size: 11.5px; }

/* ---------- unlock list ---------- */
.cart { position: fixed; top: 0; right: 0; bottom: 0; width: 480px; max-width: 100vw; background: #fff; box-shadow: var(--shadow-lg); transform: translateX(105%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); z-index: 70; display: flex; flex-direction: column; }
.cart.on { transform: none; }
.cart .ch { padding: 20px 22px 14px; border-bottom: 1px solid var(--line); position: relative; }
.cart .ch h2 { margin: 0; font: 600 22px var(--serif); }
.cart .cb { flex: 1; overflow: auto; padding: 10px 22px; }
.cart .cf { border-top: 1px solid var(--line); padding: 16px 22px; background: var(--surface-2); }
.cart .it { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.cart .it .n { font-weight: 600; }
.cart .it .s { color: var(--muted); font-size: 12px; }
.cart .opt { display: flex; gap: 6px; align-items: center; }
.cart .opt label { font-size: 12px; display: inline-flex; gap: 4px; align-items: center; color: var(--ink-2); }
.cart .opt .rm { border: 0; background: none; color: var(--faint); padding: 2px; }
.total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.total b { font: 600 26px var(--serif); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 500; opacity: 0; transition: all .25s; z-index: 90; pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* tune */
.tune { width: 360px; right: 20px; }
.tune .sl { display: grid; grid-template-columns: 130px 1fr 34px; gap: 8px; align-items: center; font-size: 12.5px; margin: 8px 6px; }
.tune input[type=range] { width: 100%; accent-color: var(--brand-2); }

.loading { position: fixed; inset: 0; background: var(--paper); display: grid; place-items: center; z-index: 100; transition: opacity .4s; }
.loading.off { display: none; }
.loading .in { text-align: center; }
.loading .in b { font: 600 22px var(--serif); display: block; margin-top: 14px; }
.loading .in span { color: var(--muted); }
.spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand-2); animation: sp 0.9s linear infinite; margin: 0 auto; }
@keyframes sp { to { transform: rotate(360deg); } }

@media (max-width: 1520px) {
  .tabs button { padding: 7px 11px; }
  .search { flex-basis: 220px; }
  .brand { min-width: 0; }
  .brand small { display: none; }
}
@media (max-width: 1280px) and (min-width: 981px) {
  .top { gap: 10px; padding: 0 14px; }
  .brand > div:last-child { display: none; }
  .tabs button svg { display: none; }
  .tabs button { padding: 7px 10px; }
  .search { flex: 1 1 140px; }
  .search kbd { display: none; }
  .region-btn > svg:first-child, .cart-btn .lbl { display: none; }
}
@media (max-width: 1280px) {
  .charts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search { width: 220px; }
  .brand small { display: none; }
}
@media (max-width: 980px) {
  body { overflow: auto; }
  .top { flex-wrap: wrap; height: auto; padding: 10px 16px; gap: 10px; }
  .tabs { order: 3; width: 100%; overflow-x: auto; }
  .search { order: 4; width: 100%; flex: 1 1 100%; }
  .strip { flex-wrap: wrap; padding: 12px 16px; }
  .stat { flex: 1 1 40%; }
  .stat.hero { flex: 1 1 100%; }
  .maphint { display: none; }
  .drawer .dhead h2 { font-size: 22px; padding-right: 110px; }
  .pitch { grid-template-columns: 1fr 1fr; }
  .ppl .p { grid-template-columns: 1fr; }
  .locks { justify-content: flex-start; }
  .view.on { flex-direction: column; height: auto; padding: 12px 16px 16px; }
  .mapwrap { height: 60vh; }
  .panel { width: 100%; max-height: 80vh; }
  .view.full { height: auto; }
  .bdgrid, .cov, .rules, .srcgrid, .charts, .balance { grid-template-columns: 1fr; }
}

.tag.st-contacted { background: #e8f1ff; color: #2756b8; border-color: transparent; font-weight: 600; }
.tag.st-meeting { background: var(--a-tint); color: var(--a); border-color: transparent; font-weight: 600; }
.tag.st-proposal { background: #f1e9ff; color: #6c3fc4; border-color: transparent; font-weight: 600; }
.tag.st-nofit { background: var(--c-tint); color: var(--muted); border-color: transparent; }
.progress .seg button { font-size: 12px; padding: 5px 9px; }

/* ---------- home ---------- */
.home { max-width: 1180px; }
.hero { padding: 26px 0 8px; }
.eyebrow { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.home h1 { font: 500 40px/1.15 var(--serif); letter-spacing: -.025em; margin: 12px 0 0; }
.home h1 em { font-style: italic; color: var(--brand); }
.home h1 span { font-variant-numeric: tabular-nums; }
.funnel { margin: 26px 0 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px 10px; box-shadow: var(--shadow); }
.ftop { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.frow { display: grid; grid-template-columns: minmax(0, 1fr) 70px minmax(220px, 300px) 96px; align-items: center; gap: 14px; width: 100%; border: 0; background: none; padding: 7px 6px; border-radius: 10px; text-align: left; }
.frow:hover { background: var(--surface-2); }
.frow:hover .fgo { opacity: 1; }
.fbar { height: 16px; background: var(--line-2); border-radius: 9px; overflow: hidden; }
.fbar i { display: block; height: 100%; width: 0; border-radius: 9px; transition: width 1.1s cubic-bezier(.2, .8, .2, 1) var(--d); }
.funnel.go .fbar i { width: var(--w); }
.fbar .t0 { background: linear-gradient(90deg, #a9c6c8, #8fb4b7); }
.fbar .t1 { background: linear-gradient(90deg, #e4b45f, var(--b)); }
.fbar .t2 { background: linear-gradient(90deg, #2c9b80, var(--a)); }
.fbar .t3 { background: linear-gradient(90deg, var(--brand-2), var(--brand)); }
.fn { font: 600 22px/1 var(--serif); text-align: right; }
.fl { color: var(--ink-2); }
.fgo { font-size: 12.5px; color: var(--brand-2); font-weight: 500; opacity: .55; text-align: right; transition: opacity .15s; }
.hsec { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 34px 0 12px; }
.hsec h2 { font: 600 22px/1.2 var(--serif); letter-spacing: -.015em; margin: 0; }
.hsec p { margin: 4px 0 0; color: var(--muted); }
.picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pick { display: flex; gap: 14px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; transition: transform .15s, box-shadow .15s, border-color .15s; animation: rise .5s both; }
.pick:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: #d6d0c4; }
.pick:nth-child(2) { animation-delay: .04s } .pick:nth-child(3) { animation-delay: .08s } .pick:nth-child(4) { animation-delay: .12s } .pick:nth-child(5) { animation-delay: .16s }
.pick:nth-child(6) { animation-delay: .2s } .pick:nth-child(7) { animation-delay: .24s } .pick:nth-child(8) { animation-delay: .28s } .pick:nth-child(9) { animation-delay: .32s } .pick:nth-child(10) { animation-delay: .36s }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.rank { font: 500 26px/1 var(--serif); color: var(--faint); width: 28px; flex: none; padding-top: 2px; }
.pbody { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.pn { font-weight: 600; font-size: 15px; display: flex; justify-content: space-between; gap: 10px; }
.psc { font: 600 15px/1 var(--serif); }
.pa { color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pw { display: flex; gap: 7px; align-items: flex-start; font-size: 13px; color: var(--ink-2); }
.pw svg { margin-top: 2px; color: var(--accent); }
.pf { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.pf b { color: var(--ink); font-weight: 600; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; position: relative; }
.tile[data-v], .tile[data-go] { cursor: pointer; transition: border-color .15s, transform .15s; }
.tile[data-v]:hover, .tile[data-go]:hover { border-color: #d6d0c4; transform: translateY(-2px); }
.tile h3 { font: 600 17px/1.2 var(--serif); margin: 0; }
.tile > p { margin: 0 0 6px; color: var(--muted); font-size: 12.5px; }
.hb { position: relative; display: flex; justify-content: space-between; align-items: center; border: 0; background: var(--surface-2); border-radius: 8px; padding: 7px 10px; text-align: left; overflow: hidden; font-size: 13px; }
.hb > * { position: relative; z-index: 1; }
.hb i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--brand-tint); opacity: .9; z-index: 0; border-radius: 8px; }
.hb em { font-style: normal; color: var(--muted); font-size: 12px; }
.hb:hover { outline: 1px solid var(--line); }
.big { font: 600 30px/1.1 var(--serif); display: flex; flex-direction: column; margin: 2px 0 6px; }
.big small { font: 400 12.5px var(--sans); color: var(--muted); }
.mr { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 4px 0; border-top: 1px solid var(--line-2); }
.mr span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tgo { margin-top: auto; padding-top: 8px; font-size: 12.5px; color: var(--brand-2); font-weight: 500; }
.maptile { padding: 0; overflow: hidden; min-height: 300px; }
#hmap { position: absolute; inset: 0; }
.mapcap { position: absolute; left: 10px; right: 10px; top: 10px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(6px); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); }
.mapcap p { margin: 0; font-size: 12.5px; color: var(--muted); }
.mapcap .btn { align-self: flex-start; }
.lb { border: 0; background: none; padding: 0; color: var(--brand-2); font-size: 12.5px; }
.lb:hover { text-decoration: underline; }
.bdq { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 2px; }
.bdq div { display: flex; flex-direction: column; }
.bdq b { font: 600 28px/1 var(--serif); }
.bdq div:first-child b { color: var(--bd1); } .bdq div:last-child b { color: var(--bd2); }
.bdq span { font-size: 12.5px; color: var(--muted); }
.hfoot { margin: 28px 0 0; text-align: center; }
.aboutlink { border: 0; background: none; color: var(--muted); font-size: 12.5px; padding: 6px 4px; white-space: nowrap; }
.aboutlink:hover { color: var(--ink); text-decoration: underline; }

/* ---------- explore ---------- */
.fside { width: 260px; flex: none; overflow: auto; padding: 4px 6px 20px 2px; display: flex; flex-direction: column; gap: 18px; }
.fhead { display: flex; justify-content: space-between; align-items: center; font-size: 15px; }
.fhead b { font: 600 18px var(--serif); }
.fg { display: flex; flex-direction: column; gap: 4px; }
.fg .lab { font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 3px; }
.fg select { width: 100%; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font: inherit; font-size: 13px; color: var(--ink); }
.opt { display: flex; align-items: center; gap: 8px; border: 1px solid transparent; background: none; padding: 6px 8px; border-radius: 8px; text-align: left; font-size: 13.5px; }
.opt:hover { background: var(--surface); }
.opt.on { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow); font-weight: 500; }
.opt .d { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.opt .n { margin-left: auto; color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.pills { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.pill { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 3px 10px; font-size: 12.5px; color: var(--ink-2); }
.pill.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.tunebtn { align-self: flex-start; display: flex; gap: 6px; align-items: center; }
.rcol { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.rhead { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.rcount { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.rcount b { font: 600 18px var(--serif); color: var(--ink); }
.actv { display: flex; gap: 5px; flex-wrap: wrap; }
.af { border: 0; background: var(--brand-tint); color: var(--brand); border-radius: 99px; padding: 3px 10px; font-size: 12px; font-weight: 500; }
.af:hover { background: #d3e7e7; }
.rhead .sortsel { width: auto; flex: none; }
.rcol .list { flex: 1; overflow: auto; }
.rcol .mapwrap { border: 0; border-radius: 0; box-shadow: none; min-height: 0; }
.rcol [hidden] { display: none !important; }
#mode button { display: inline-flex; gap: 6px; align-items: center; }
.row .ab { color: var(--muted); font-size: 12.5px; margin: 2px 0 4px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- company card ---------- */
.ctrl { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.ctrl label { display: inline-flex; gap: 8px; align-items: center; }
.ctrl select { padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font: inherit; font-size: 12.5px; color: var(--ink); }
.bigring { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.bigring > span { font-size: 11px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.leadp { border: 1px solid var(--a); background: var(--a-tint); border-radius: 12px; padding: 2px 12px; margin-bottom: 6px; position: relative; }
.leadp::before { content: 'Start with'; position: absolute; top: -9px; left: 12px; background: var(--a); color: #fff; font-size: 10.5px; font-weight: 600; padding: 1px 8px; border-radius: 99px; letter-spacing: .03em; }
.leadp .p { border: 0; }
.pitch2 { display: flex; flex-direction: column; gap: 6px; }
.pp { border-left: 3px solid var(--c); background: var(--surface-2); border-radius: 0 8px 8px 0; padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; }
.pp b { color: var(--c); font-size: 13.5px; }
.pp span { font-size: 13px; color: var(--ink-2); }
#draftBtn { margin-top: 10px; display: inline-flex; gap: 6px; align-items: center; }
.more-h { font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 22px 0 6px; }
details.acc { border-top: 1px solid var(--line); }
details.acc:last-child { border-bottom: 1px solid var(--line); }
details.acc summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px 2px; cursor: pointer; font-weight: 600; font-size: 14px; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary .h { margin-left: auto; color: var(--muted); font-weight: 400; font-size: 12.5px; }
details.acc summary .chev { width: 14px; height: 14px; color: var(--faint); transition: transform .2s; }
details.acc[open] summary .chev { transform: rotate(90deg); }
details.acc summary:hover { color: var(--brand); }
.ab2 { padding: 0 2px 16px; animation: rise .25s both; }

@media (max-width: 1280px) {
  .picks { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fside { width: 228px; }
}
@media (max-width: 980px) {
  .home h1 { font-size: 28px; }
  .frow { grid-template-columns: minmax(0, 1fr) 56px; }
  .frow .fl { grid-column: 1 / -1; order: -1; font-size: 13px; }
  .frow .fgo { display: none; }
  .tiles { grid-template-columns: 1fr; }
  .fside { width: 100%; flex-direction: row; flex-wrap: wrap; gap: 12px; }
  .fside .fg { min-width: 160px; flex: 1; }
  .rcol { min-height: 70vh; }
  .rhead { flex-wrap: wrap; }
  .hsec { flex-direction: column; align-items: flex-start; }
}

/* ---------- home v3: map banner + nested funnel ---------- */
.banner { position: relative; height: 430px; margin-top: 18px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #f4f1eb; box-shadow: var(--shadow); }
#heromap { position: absolute; inset: 0; }
.bfade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, #f4f1eb 0%, rgba(244, 241, 235, .97) 36%, rgba(244, 241, 235, .6) 50%, rgba(244, 241, 235, 0) 64%); }
.btext { position: absolute; left: 34px; top: 30px; bottom: 28px; width: min(540px, 46%); display: flex; flex-direction: column; pointer-events: none; }
.btext h1 { font-size: 36px; margin-top: 12px; }
.btext h1 em { display: block; margin-top: 6px; }
.bsub { color: var(--muted); margin: 14px 0 0; font-size: 13.5px; max-width: 440px; }
.blegend { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--ink-2); pointer-events: auto; }
.blegend span { display: inline-flex; gap: 6px; align-items: center; cursor: default; }
.blegend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; position: relative; }
.blegend i.pulse::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid currentColor; color: #0b4f55; animation: ping 1.8s infinite; }
@keyframes ping { from { transform: scale(.6); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }
.bmap { position: absolute; right: 16px; top: 16px; display: inline-flex; gap: 6px; align-items: center; background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); }
.funnel2 { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 26px; align-items: center; margin-top: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 22px; box-shadow: var(--shadow); }
.nest { width: 100%; display: block; }
.nest .lvl { cursor: pointer; transition: opacity .2s; }
.nest .lvl circle { transition: fill-opacity .2s, stroke-width .2s; }
.nest .lvl.hot circle { stroke-width: 3; }
.nest .lvl.dim { opacity: .35; }
.nest text { font: 600 17px var(--serif); text-anchor: middle; pointer-events: none; }
.frows { display: flex; flex-direction: column; gap: 2px; }
.frows .ftop { margin-bottom: 6px; }
.frow2 { position: relative; display: grid; grid-template-columns: 74px minmax(0, 1fr) minmax(140px, 36%) 84px; align-items: center; gap: 14px; border: 0; background: none; padding: 9px 8px 9px calc(8px + var(--ind)); border-radius: 10px; text-align: left; }
.frow2:hover, .frow2.hot { background: var(--surface-2); }
.frow2:hover .fgo, .frow2.hot .fgo { opacity: 1; }
.elbow { position: absolute; left: calc(var(--ind) - 14px); top: -6px; width: 12px; height: 26px; border-left: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line); border-bottom-left-radius: 7px; }
.fnum { font: 600 26px/1 var(--serif); color: var(--c); text-align: right; }
.ftxt { display: flex; flex-direction: column; min-width: 0; }
.ftxt b { font-weight: 500; color: var(--ink); }
.ftxt small { color: var(--muted); font-size: 12px; }
.fbar2 { height: 14px; background: var(--line-2); border-radius: 8px; overflow: hidden; }
.fbar2 .parent { display: block; height: 100%; background: color-mix(in srgb, var(--c) 18%, white); border-radius: 8px; overflow: hidden; }
.fbar2 .parent i { display: block; height: 100%; background: var(--c); border-radius: 8px; animation: grow 1.1s cubic-bezier(.2, .8, .2, 1) both; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } }

/* ---------- explore v3: list + map side by side ---------- */
.rbody { flex: 1; min-height: 0; display: flex; }
.listpane { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.rbody.both .listpane { flex: 0 0 min(560px, 52%); border-right: 1px solid var(--line); }
.rbody .mapwrap { flex: 1; }
.phead { display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 16px; border-bottom: 1px solid var(--line-2); font-size: 12.5px; color: var(--muted); }
.phead .sortsel { width: auto; }
.pclose { margin-left: auto; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 3px 9px; font-size: 12px; color: var(--muted); }
.pclose:hover { color: var(--ink); border-color: #cfc8bb; }
.pclose.onmap { position: absolute; left: 12px; top: 12px; z-index: 3; box-shadow: var(--shadow); }
.listpane .list { flex: 1; overflow: auto; }
.rbody [hidden], .rhead [hidden] { display: none !important; }

/* ---------- BD split v3 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; display: flex; gap: 14px; box-shadow: var(--shadow); }
.sn { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 600 14px var(--serif); flex: none; }
.sb { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1; }
.sb h3 { font: 600 17px var(--serif); margin: 2px 0 0; }
.sb > p { margin: 0; color: var(--muted); font-size: 12.5px; }
.sb select, .sb input[type=number] { padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font: inherit; font-size: 13px; color: var(--ink); }
.custom { font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.custom input { width: 76px; }
.sgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sres { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line-2); color: var(--muted); font-size: 13px; display: flex; gap: 8px; align-items: baseline; }
.sres b { font: 600 24px var(--serif); color: var(--ink); }
.nbd { display: flex; align-items: center; gap: 10px; }
.nbd b { font: 600 26px var(--serif); min-width: 22px; text-align: center; }
.nbd span { color: var(--muted); margin-right: 6px; }
.nbd .btn { width: 32px; height: 32px; padding: 0; justify-content: center; font-size: 17px; }
.names { display: flex; flex-wrap: wrap; gap: 6px; }
.names input { width: 104px; border: 1.5px solid var(--c); color: var(--c); background: color-mix(in srgb, var(--c) 8%, white); border-radius: 99px; padding: 4px 10px; font: 600 12.5px var(--sans); outline: none; }
.groups { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 14px; }
.groups button { border: 1px solid var(--c); background: color-mix(in srgb, var(--c) 9%, white); color: var(--ink-2); border-radius: 99px; padding: 4px 11px; font-size: 12.5px; }
.groups button b { color: var(--c); font-weight: 600; }
.balance2 { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; margin-bottom: 14px; display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; gap: 20px; align-items: center; }
.bdn { font: 600 20px var(--serif); margin-bottom: 4px; }
.tag.bdt { border-color: transparent; font-weight: 600; }
@media (max-width: 1280px) { .steps { grid-template-columns: 1fr 1fr; } .btext h1 { font-size: 30px; } }
@media (max-width: 980px) {
  .banner { height: auto; display: flex; flex-direction: column; }
  #heromap { position: relative; height: 300px; order: 2; }
  .bfade { display: none; }
  .btext { position: relative; inset: auto; width: auto; padding: 22px 18px 14px; }
  .btext h1 { font-size: 26px; }
  .blegend { margin-top: 14px; }
  .bmap { top: auto; bottom: 14px; }
  .funnel2 { grid-template-columns: 1fr; }
  .nestwrap { max-width: 220px; margin: 0 auto; }
  .frow2 { grid-template-columns: 56px minmax(0, 1fr); padding-left: 8px; }
  .frow2 .fbar2, .frow2 .fgo, .elbow { display: none; }
  .rbody { flex-direction: column; }
  .rbody.both .listpane { flex: none; border-right: 0; max-height: 60vh; }
  .rbody .mapwrap { min-height: 360px; }
  .steps, .balance2 { grid-template-columns: 1fr; }
}
.sgrid select { min-width: 0; width: 100%; }
.rcol .maphint { bottom: auto; top: 12px; }
