:root {
  color-scheme: light;
  --bg: #f7f6f3;
  --surface: #ffffff;
  --ink: #1a1916;
  --ink-2: #3d3a35;
  --muted: #74706a;
  --faint: #b0aca6;
  --border: #e8e5e0;
  --hair: #efece7;
  --wash: #f2f0ec;
  --analyst: #2a78d6;
  --analyst-wash: rgba(42, 120, 214, 0.12);
  --bu: #eb6834;
  --bu-wash: rgba(235, 104, 52, 0.13);
  --up: #1a7a3a;
  --down: #b5402f;
  --font: 'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r: 20px;
}
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--ink);
  font: 400 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
button { font: inherit; color: inherit; }
a { color: inherit; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-weight: 500; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.small-text { font-size: 12px; }
[hidden] { display: none !important; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 1000; background: rgba(247, 246, 243, 0.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--border); }
.top-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-size: 15px; letter-spacing: -0.01em; justify-self: start; }
.brand b { font-weight: 600; }
.brand .j { width: 22px; height: 22px; border-radius: 6px; background: var(--ink); color: var(--bg); display: grid; place-items: center; }
.asof { justify-self: end; font-size: 11px; color: var(--muted); }

/* ---------- segmented control ---------- */
.seg { display: inline-flex; gap: 2px; padding: 3px; background: #ebe8e3; border-radius: 999px; }
.seg button { border: 0; background: transparent; padding: 7px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; white-space: nowrap; }
.seg button:hover { color: var(--ink); }
.seg button[aria-selected="true"], .seg button[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(26,25,22,.08), 0 1px 8px rgba(26,25,22,.05); }
.seg button:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.seg.small button { padding: 5px 12px; font-size: 13px; }
.seg.on-map { background: rgba(235,232,227,.92); backdrop-filter: blur(8px); }

/* ---------- cards & grid ---------- */
main { padding-bottom: 28px; }
.view { animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
h2 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
h2 .muted { font-weight: 400; }
.grid { display: grid; gap: 16px; }
.eyebrow { font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fineprint { font-size: 11.5px; color: var(--muted); line-height: 1.45; }
.hint { font-size: 12.5px; color: var(--muted); }

/* ---------- overview ---------- */
.hero { text-align: center; padding: 36px 0 26px; }
h1 { font-size: clamp(30px, 4.6vw, 48px); font-weight: 500; line-height: 1.06; letter-spacing: -0.035em; }
.sub { margin: 12px auto 0; max-width: 40ch; font-size: clamp(16px, 1.8vw, 19px); font-weight: 300; color: var(--muted); }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.fig { padding: 20px 22px 18px; }
.fig .k { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--muted); }
.fig .k i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.fig .v { margin-top: 6px; font-size: clamp(30px, 3.4vw, 40px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.fig .v small { font-size: .5em; font-weight: 400; color: var(--muted); letter-spacing: 0; margin-right: 4px; }
.fig .d { margin-top: 4px; font-size: 13px; color: var(--muted); }
.delta.up { color: var(--up); } .delta.down { color: var(--down); }

.scale-card { padding: 22px 26px 18px; }
.scale { position: relative; height: 150px; }
.scale svg { width: 100%; height: 100%; overflow: visible; display: block; }
.scale-foot { display: flex; align-items: center; gap: 14px; margin-top: 8px; flex-wrap: wrap; }

.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.door { position: relative; display: grid; grid-template-columns: 1fr 46%; align-items: center; gap: 14px; padding: 18px 22px; min-height: 118px; text-decoration: none; overflow: hidden; transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s; }
.door:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(26,25,22,.07); }
.door:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--ink); }
.door-text { display: flex; flex-direction: column; gap: 3px; }
.door-text strong { font-size: 19px; font-weight: 500; letter-spacing: -0.02em; }
.door-text .muted { font-size: 13px; }
.door-viz { width: 100%; height: 76px; }
.arrow { position: absolute; right: 18px; top: 14px; font-size: 16px; color: var(--faint); transition: transform .3s, color .3s; }
.door:hover .arrow { color: var(--ink); transform: translateX(3px); }

/* ---------- market ---------- */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin: 18px 0 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); }
.stat { padding: 14px 18px; border-left: 1px solid var(--hair); min-width: 0; }
.stat:first-child { border-left: 0; }
.stat .k { font-size: 12px; color: var(--muted); }
.stat .v { margin-top: 2px; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; white-space: nowrap; }
.stat .v small { font-size: 13px; font-weight: 400; color: var(--muted); }
.stat .d { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.market-grid { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; }
.chart-card { padding: 18px 20px 16px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 4px; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .line { width: 16px; height: 2px; border-radius: 2px; }
.legend .dot { width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--ink); background: var(--surface); }
.chart { position: relative; height: clamp(260px, 42vh, 380px); touch-action: pan-y; }
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart text, .scale text, .strip text, .bridge text { font-family: var(--font); }
.milestones { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 8px; }
.milestones li a, .milestones li button { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 4px 5px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: 12px; color: var(--ink-2); text-decoration: none; cursor: pointer; transition: border-color .15s, background .15s; }
.milestones li a:hover, .milestones li a.on { border-color: var(--ink); }
.milestones .n { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); color: #fff; font: 500 10px var(--mono); }
.milestones .when { color: var(--muted); font: 500 10.5px var(--mono); }

.head-controls { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.analyst-card { padding: 16px 18px 8px; display: flex; flex-direction: column; }
.analyst-card .card-head { flex-wrap: wrap; row-gap: 6px; }
.track-intro { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; margin: 12px 0 6px; }
.track tr.bench td { color: var(--muted); font-style: italic; background: var(--wash); }
.rank { font: 500 11px var(--mono); color: var(--muted); }
.missbar { display: inline-block; height: 4px; border-radius: 4px; background: var(--analyst); vertical-align: middle; margin-right: 6px; opacity: .7; }
.strip { height: 74px; margin: 6px 0 4px; }
.strip svg { width: 100%; height: 100%; display: block; overflow: visible; }
.table-scroll { overflow: auto; max-height: calc(clamp(260px, 42vh, 380px) + 60px); margin: 0 -18px; padding: 0 18px; }
.table-scroll.tall { max-height: 470px; margin: 0; padding: 0; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { position: sticky; top: 0; background: var(--surface); text-align: left; font-size: 11px; font-weight: 500; color: var(--muted); padding: 8px 6px; border-bottom: 1px solid var(--border); z-index: 1; }
td { padding: 7px 6px; border-bottom: 1px solid var(--hair); vertical-align: middle; }
tbody tr { cursor: default; transition: background .12s; }
tbody tr:hover, tbody tr.on { background: var(--wash); }
td a.src { text-decoration: none; color: var(--muted); font-size: 12px; margin-left: 4px; }
td a.src:hover { color: var(--ink); }
.pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 500; white-space: nowrap; }
.pill.buy { background: #e3f1e6; color: #1c5b2d; }
.pill.hold { background: #efede9; color: #5b5751; }
.pill.sell { background: #f8e4df; color: #8a3020; }
td .date { font: 500 11px var(--mono); color: var(--muted); white-space: nowrap; }
td .date.stale { color: #a4620b; }

/* ---------- bottom-up ---------- */
.controls { display: flex; align-items: center; gap: 22px; padding: 12px 18px; margin: 18px 0 16px; flex-wrap: wrap; }
.sliders { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 8px 22px; flex: 1; }
.slider { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; }
.slider label { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.slider output { font: 500 12px var(--mono); color: var(--ink); text-align: right; min-width: 48px; }
.slider input { grid-column: 1 / -1; width: 100%; }
input[type=range] { -webkit-appearance: none; appearance: none; height: 22px; background: transparent; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(to right, var(--ink) 0 var(--p, 50%), #e4e1dc var(--p, 50%) 100%); }
input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: #e4e1dc; }
input[type=range]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--ink); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%; background: var(--surface); border: 1px solid #cfcac2; box-shadow: 0 1px 4px rgba(26,25,22,.18); }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 1px solid #cfcac2; box-shadow: 0 1px 4px rgba(26,25,22,.18); }
input[type=range]:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }

.bu-grid { grid-template-columns: minmax(0, 1fr) 400px; align-items: stretch; }
.map-card { position: relative; overflow: hidden; min-height: 540px; }
#map { position: absolute; inset: 0; background: #e4eaec; }
.place span { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; pointer-events: none; }
.place.land span { font: 500 10px var(--font); letter-spacing: .14em; text-transform: uppercase; color: #aaa59d; }
.place.sea span { font: italic 400 12px var(--font); letter-spacing: .04em; color: #93a4ab; }
.map-top { position: absolute; z-index: 500; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; pointer-events: none; }
.map-top > * { pointer-events: auto; }
.map-legend { display: flex; flex-direction: column; gap: 4px; padding: 8px 11px; background: rgba(255,255,255,.9); backdrop-filter: blur(8px); border: 1px solid var(--border); border-radius: 12px; font-size: 11.5px; color: var(--ink-2); }
.map-legend span { display: inline-flex; align-items: center; gap: 7px; }
.map-legend i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.leaflet-container { font-family: var(--font); background: #e4eaec; }
.leaflet-control-attribution { font-size: 10px; background: rgba(255,255,255,.75) !important; }
.leaflet-control-zoom { border: 1px solid var(--border) !important; border-radius: 12px !important; overflow: hidden; box-shadow: none !important; }
.leaflet-control-zoom a { color: var(--ink) !important; }
.wf-label { font: 500 11px var(--font); color: var(--ink-2); white-space: nowrap; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 2px #fff; pointer-events: none; }
.leaflet-tooltip.wf-tip { background: var(--ink); color: #fff; border: 0; border-radius: 8px; padding: 5px 9px; font: 500 12px var(--font); box-shadow: 0 6px 20px rgba(26,25,22,.2); }
.leaflet-tooltip.wf-tip::before { display: none; }

.project-card { position: absolute; z-index: 600; left: 12px; bottom: 12px; width: min(360px, calc(100% - 24px)); background: rgba(255,255,255,.97); backdrop-filter: blur(10px); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px 12px; box-shadow: 0 12px 40px rgba(26,25,22,.12); animation: rise .25s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.project-card .pc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.project-card h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.project-card .pc-sub { font-size: 12px; color: var(--muted); margin-top: 1px; }
.project-card .x { border: 0; background: var(--wash); width: 26px; height: 26px; border-radius: 50%; cursor: pointer; color: var(--muted); font-size: 15px; line-height: 1; flex: none; }
.project-card .x:hover { color: var(--ink); }
.pc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 10px; margin: 10px 0 8px; }
.pc-grid div { min-width: 0; }
.pc-grid .k { font-size: 11px; color: var(--muted); }
.pc-grid .v { font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-cf { height: 64px; margin-top: 4px; }
.pc-cf svg { width: 100%; height: 100%; display: block; overflow: visible; }
.pc-foot { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.pc-foot a { color: var(--muted); }
.pc-foot a:hover { color: var(--ink); }

.side-card { padding: 16px 18px 12px; display: flex; flex-direction: column; }
.value-hero { margin: 14px 0 6px; }
.value-hero .k { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.value-hero .k i { width: 10px; height: 10px; border-radius: 50%; background: var(--bu); }
.value-hero .v { font-size: 52px; font-weight: 500; letter-spacing: -0.04em; line-height: 1.05; }
.value-hero .v small { font-size: 20px; font-weight: 400; color: var(--muted); letter-spacing: 0; margin-right: 6px; }
.value-hero .d { font-size: 13px; color: var(--muted); }
.bridge { margin-top: 8px; }
.bridge svg { width: 100%; display: block; overflow: visible; }
.bridge .row-hit { cursor: default; }
.projects td:first-child { max-width: 170px; }
.projects .pname { font-weight: 500; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.projects .pmeta { display: block; font-size: 11px; color: var(--muted); }
.projects .bar { display: block; height: 4px; border-radius: 4px; background: var(--bu); opacity: .75; margin-top: 3px; }
.projects tr { cursor: pointer; }
.projects tr.group td { background: var(--surface); font-size: 11px; font-weight: 500; color: var(--muted); padding-top: 12px; cursor: default; }

.method { margin-top: 16px; }
.method summary, .note summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 14px 20px; font-size: 14px; font-weight: 500; color: var(--muted); border-radius: var(--r); }
.method summary::-webkit-details-marker, .note summary::-webkit-details-marker { display: none; }
.method summary:hover, .note summary:hover { color: var(--ink); }
.chev { display: inline-block; font-size: 18px; line-height: 1; transform: translateY(-1px); transition: transform .25s; }
details[open] > summary .chev { transform: rotate(90deg) translateX(-1px); }
.method-body { padding: 0 24px 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 28px; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.method-body h4 { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.method-body p + p { margin-top: 6px; }
.method-body table { font-size: 12px; margin-top: 4px; }
.method-body td, .method-body th { padding: 4px 4px; position: static; }

/* ---------- tooltip ---------- */
.tooltip { position: fixed; z-index: 2000; pointer-events: none; background: var(--ink); color: #fff; border-radius: 10px; padding: 8px 11px; font-size: 12.5px; line-height: 1.45; box-shadow: 0 10px 30px rgba(26,25,22,.22); max-width: 280px; }
.tooltip .t { font: 500 10.5px var(--mono); color: #c9c5be; margin-bottom: 3px; }
.tooltip .r { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.tooltip .r span { display: inline-flex; align-items: center; gap: 6px; color: #d8d4cd; }
.tooltip .r b { font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.tooltip .key { width: 12px; height: 2px; border-radius: 2px; display: inline-block; }
.tooltip .desc { color: #d8d4cd; margin-top: 2px; }

/* ---------- footer ---------- */
footer { margin-top: auto; }
.foot { border-top: 1px solid var(--border); padding: 10px 20px 34px; display: flex; flex-direction: column; gap: 10px; }
.note { border: 1px solid transparent; border-radius: 18px; transition: background .2s, border-color .2s; align-self: center; width: 100%; max-width: 720px; }
.note summary { justify-content: center; }
.note[open] { background: var(--surface); border-color: var(--border); }
.note-body { max-width: 62ch; margin: 0 auto; padding: 0 28px 22px; font-size: 15px; font-weight: 300; line-height: 1.65; color: var(--ink-2); }
.note-body p + p { margin-top: 10px; }
.note-body .sig { margin-top: 12px; font-size: 14px; font-weight: 500; color: var(--ink); }
.disclaimer { font-size: 11.5px; line-height: 1.45; color: var(--muted); text-align: center; max-width: 82ch; margin: 0 auto; }
.foot-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--faint); }
.foot-row a { color: var(--faint); }
.foot-row a:hover { color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .market-grid, .bu-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(4) { border-left: 0; }
  .stat:nth-child(n+4) { border-top: 1px solid var(--hair); }
  .table-scroll { max-height: none; }
  .map-card { min-height: 0; height: 62vh; max-height: 560px; }
  .method-body { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 14px; }
  .top-row { grid-template-columns: 1fr auto; height: auto; padding-top: 10px; padding-bottom: 10px; row-gap: 10px; }
  .top-row .views { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; display: grid; grid-template-columns: repeat(3, 1fr); }
  .top-row .views button { padding: 8px 6px; }
  .asof { grid-row: 1; grid-column: 2; }
  .hero { padding: 22px 0 18px; }
  .trio { grid-template-columns: 1fr; gap: 10px; }
  .fig { padding: 14px 18px; display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 12px; }
  .fig .k { grid-column: 1 / -1; }
  .fig .v { font-size: 30px; }
  .fig .d { text-align: right; }
  .scale-card { padding: 16px 14px 14px; }
  .scale { height: 168px; }
  .doors { grid-template-columns: 1fr; gap: 10px; }
  .stats { grid-template-columns: 1fr 1fr; margin-top: 14px; }
  .stat { border-left: 0 !important; border-top: 1px solid var(--hair); }
  .stat:first-child { grid-column: 1 / -1; border-top: 0; }
  .stat:nth-child(2) { border-top: 1px solid var(--hair); }
  .stat:nth-child(odd):not(:first-child) { border-left: 1px solid var(--hair) !important; }
  .chart-card, .analyst-card, .side-card { padding-left: 14px; padding-right: 14px; }
  .table-scroll { margin: 0 -14px; padding: 0 14px; }
  .controls { padding: 12px 14px; gap: 12px; margin-top: 14px; }
  .sliders { grid-template-columns: 1fr 1fr; gap: 6px 16px; }
  .map-card { height: 58vh; }
  .value-hero .v { font-size: 44px; }
  .method-body { grid-template-columns: 1fr; padding: 0 18px 18px; }
  .project-card { left: 8px; right: 8px; bottom: 8px; width: auto; }
  .hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- map markers, legend, project list (v2) ---------- */
.wf-mark { background: none; border: 0; }
.wf-mark svg { display: block; transition: transform .15s; }
.wf-mark:hover svg { transform: scale(1.15); }
.map-legend { gap: 2px; padding: 6px 6px 8px; min-width: 168px; }
.lg-row { display: flex; align-items: center; gap: 7px; width: 100%; border: 0; background: transparent; padding: 4px 6px; border-radius: 7px; font: 500 11.5px var(--font); color: var(--ink-2); cursor: pointer; text-align: left; }
.lg-row:hover { background: var(--wash); }
.lg-row.off { color: var(--faint); }
.lg-row.off .glyph { opacity: .35; }
.lg-row .lg-n { margin-left: auto; font: 500 10.5px var(--mono); color: var(--muted); }
.lg-shapes { display: flex; gap: 10px; padding: 6px 6px 0; margin-top: 4px; border-top: 1px solid var(--hair); font-size: 11px; color: var(--muted); }
.lg-shapes span { display: inline-flex; align-items: center; gap: 4px; }
.lg-note { padding: 3px 6px 0; font-size: 10.5px; color: var(--faint); }
.glyph { width: 12px; height: 12px; flex: none; overflow: visible; vertical-align: -1px; margin-right: 6px; }
.lg-row .glyph, .lg-shapes .glyph { margin-right: 0; }
.projects tr.dim { opacity: .45; }
.projects sup.est { font: 500 9px var(--mono); color: var(--muted); margin-left: 1px; }
.projects td:nth-child(2), .projects td:nth-child(3) { white-space: nowrap; font-size: 12px; color: var(--ink-2); }
.pc-note { font-size: 12px; line-height: 1.45; color: var(--ink-2); margin: 2px 0 8px; }
.pc-note.muted { color: var(--muted); margin: 8px 0 0; }
.pc-foot .sq { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; }
.pc-foot span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-card { max-height: calc(100% - 24px); overflow: auto; }
@media (max-width: 760px) { .map-legend { min-width: 0; } .lg-shapes, .lg-note { display: none; } }
.targets td.broker { max-width: 140px; white-space: nowrap; }
.targets .bname { display: inline-block; max-width: 112px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.targets td { padding: 6px 5px; }
.targets .pill { font-size: 11px; padding: 1px 7px; }
.targets .chg { font-size: 8px; margin-right: 4px; vertical-align: 1px; }
.targets .chg.up { color: var(--up); } .targets .chg.down { color: var(--down); }
.targets tr.old td { color: var(--faint); }
.targets tr.old .pill { opacity: .5; }
.value-hero .implied { margin-top: 6px; font-size: 12.5px; color: var(--muted); min-height: 19px; }
.value-hero .implied b { color: var(--ink); font-weight: 600; }
#targetTable { table-layout: fixed; }
#targetTable th:nth-child(1) { width: 41%; } #targetTable th:nth-child(2) { width: 27%; }
#targetTable th:nth-child(3) { width: 14%; } #targetTable th:nth-child(4) { width: 18%; }
.targets td.broker { max-width: none; overflow: hidden; text-overflow: ellipsis; }
.targets .bname { max-width: calc(100% - 16px); }
#targetTable .pill { max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.milestones { gap: 5px; }
.milestones li a { font-size: 11.5px; padding: 3px 9px 3px 4px; }
.milestones .when { display: none; }

@media (max-width: 760px) {
  .fig { display: block; }
  .fig .v { font-size: 32px; }
  .fig .d { text-align: left; }
  .chart-card .card-head { flex-wrap: wrap; row-gap: 8px; }
  .chart-card h2 .muted { display: none; }
  .head-controls { width: 100%; justify-content: space-between; }
  .chart { height: 300px; }
  .bu-grid .side-card { order: -1; }
  .lg-row .lg-n { display: none; }
  .controls .seg { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); }
}
#projectTable { table-layout: fixed; }
#projectTable th:nth-child(1) { width: 52%; } #projectTable th:nth-child(2) { width: 15%; }
#projectTable th:nth-child(3) { width: 18%; } #projectTable th:nth-child(4) { width: 15%; }
.projects td:first-child { max-width: none; overflow: hidden; }
.projects .pmeta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.table-scroll.tall { overflow-x: hidden; }
/* track record: info icons in the header, current target column */
.analyst-card { container-type: inline-size; }
#trackTable { table-layout: fixed; margin-top: 8px; }
#trackTable th { white-space: nowrap; }
#trackTable th:nth-child(1) { width: 24px; } #trackTable th:nth-child(3) { width: 58px; } #trackTable th:nth-child(4) { width: 88px; }
#trackTable th:nth-child(5) { width: 84px; } #trackTable th:nth-child(6) { width: 58px; }
#trackTable td.tname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#trackTable td.faded { color: var(--faint); }
button.info { display: inline-grid; place-items: center; width: 14px; height: 14px; margin-left: 4px; padding: 0; border: 1px solid #cfcac2; border-radius: 50%; background: var(--surface); color: var(--muted); font: italic 600 9px/1 Georgia, serif; vertical-align: 1px; cursor: help; transition: color .15s, border-color .15s; }
button.info:hover, button.info:focus-visible { color: var(--ink); border-color: var(--ink); outline: none; }
th.num button.info { margin-right: -2px; }
@container (max-width: 440px) { #trackTable .missbar { display: none; } #trackTable th:nth-child(4) { width: 60px; } #trackTable th:nth-child(5) { width: 80px; } #trackTable th:nth-child(3) { width: 56px; } }
@container (max-width: 440px) { #trackTable th:nth-child(1) { width: 18px; } #trackTable th:nth-child(3) { width: 44px; } #trackTable th:nth-child(4) { width: 50px; } #trackTable th:nth-child(5) { width: 72px; } #trackTable th:nth-child(6) { width: 46px; } #trackTable th { padding-left: 3px; padding-right: 3px; font-size: 10.5px; } #trackTable td { padding-left: 3px; padding-right: 3px; } #trackTable button.info { margin-left: 2px; } }
/* ---------- project card v3: docked right, more air; controls stacked left ---------- */
.map-top { right: auto; flex-direction: column; align-items: flex-start; gap: 8px; }
.project-card { left: auto; right: 12px; top: 12px; bottom: 12px; width: 360px; max-height: none; padding: 20px 22px 18px; border-radius: 18px; overflow-y: auto; overscroll-behavior: contain; animation: slidein .28s cubic-bezier(.2,.7,.2,1); }
@keyframes slidein { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.project-card .pc-head { gap: 14px; }
.project-card h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.project-card .pc-sub { font-size: 12.5px; margin-top: 3px; line-height: 1.4; }
.project-card .x { width: 30px; height: 30px; font-size: 17px; margin: -4px -6px 0 0; }
.pc-grid { grid-template-columns: 1fr 1fr 1fr; gap: 14px 12px; margin: 18px 0 4px; padding-top: 16px; border-top: 1px solid var(--hair); }
.pc-grid .k { font-size: 11px; margin-bottom: 2px; }
.pc-grid .v { font-size: 14px; }
.pc-sec { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--hair); }
.pc-sec-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; font-weight: 600; }
.pc-sec-h .muted { font-size: 11px; font-weight: 400; }
.pc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 6px; }
.pc-price { background: var(--wash); border-radius: 12px; padding: 10px 12px; }
.pc-price .k { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.pc-price .k i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.pc-price .v { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; margin-top: 2px; }
.pc-price .sub { font-size: 11.5px; color: var(--muted); }
.pc-chart { height: 92px; margin: 8px 0 4px; }
.pc-chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.project-card .pc-note { margin: 8px 0 0; font-size: 12px; line-height: 1.5; }
.project-card .pc-foot { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--hair); }
.projects td.price { line-height: 1.25; }
.projects td.price .then { display: block; font-size: 10.5px; color: var(--bu); white-space: nowrap; }
@media (max-width: 760px) {
  .project-card { left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; max-height: 72%; padding: 16px 16px 14px; animation: rise .25s ease; }
  .map-top { right: 12px; flex-direction: row; justify-content: space-between; }
}
.sl-head { display: inline-flex; align-items: center; min-width: 0; }
.sl-head label { overflow: hidden; text-overflow: ellipsis; }
.map-card .leaflet-bottom { z-index: 550; }
@media (max-width: 760px) { .map-card.card-open .map-legend { display: none; } }
