/* growth4 (wave 4): /whales, /w, /liquidations, /new, /pro, /ref, /v. Same tokens as the board (design/tokens.css). */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); }
.g4-subnav { display: flex; gap: var(--space-2); overflow-x: auto; padding: var(--space-4) 0 0; scrollbar-width: none; }
.g4-subnav::-webkit-scrollbar { display: none; }
.g4-subnav a { flex: none; font-size: var(--fs-14); padding: 6px 12px; min-height: 36px; display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--text-dim); }
.g4-subnav a[aria-current="page"] { color: var(--text); border-color: var(--text-dim); font-weight: 600; }
.g4-hero { padding-top: var(--space-6); }
.g4-title { font-size: clamp(2.25rem, 3vw + 1.25rem, 3.75rem); }
.g4-mono { font-variant-numeric: tabular-nums; letter-spacing: 0; }
.g4-fulladdr code { font-size: var(--fs-12); color: var(--text-dim); word-break: break-all; }
.g4-tabs { display: inline-flex; margin-top: var(--space-6); border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; }
.g4-tabs a { padding: 8px 14px; min-height: 40px; display: inline-flex; align-items: center; text-decoration: none; font-size: var(--fs-14); color: var(--text-dim); }
.g4-tabs a + a { border-left: 1px solid var(--line); }
.g4-tabs a[aria-current="page"] { background: var(--surface); color: var(--text); font-weight: 700; }
.g4-fixture { margin-top: var(--space-3); }
.g4-section { margin-top: var(--space-8); }
.g4-h2 { font-size: var(--fs-20); font-weight: 800; font-stretch: 75%; margin-bottom: var(--space-3); }
.g4-h3 { font-size: var(--fs-16); font-weight: 700; margin: var(--space-6) 0 var(--space-2); }
.g4-dim { color: var(--text-dim); font-weight: 400; }
.g4-dex, .g4-tag { display: inline-block; font-size: var(--fs-12); padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-dim); font-weight: 500; vertical-align: 1px; }
.g4-tag-new { color: var(--closed); border-color: color-mix(in srgb, var(--closed) 45%, transparent); }
.g4-addr { font-variant-numeric: tabular-nums; font-weight: 600; }
.g4-addr-lg { font-size: var(--fs-20); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.g4-side { font-weight: 600; text-transform: capitalize; }
.g4-long { color: var(--up); }
.g4-short { color: var(--down); }

.g4-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 12px; border-radius: var(--radius-s);
  border: 1px solid var(--line); background: transparent; color: var(--text); font: inherit; font-size: var(--fs-14); font-weight: 600;
  text-decoration: none; white-space: nowrap; cursor: pointer; }
.g4-btn:hover { border-color: var(--text-dim); text-decoration: none; }
.g4-btn-mirror { background: var(--btn-bg, var(--text)); color: var(--btn-fg, var(--bg)); border-color: transparent; }
.g4-btn-mirror:hover { background: color-mix(in srgb, var(--btn-bg, var(--text)) 86%, var(--bg)); }
.g4-mirror { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.g4-act { text-align: right; }

.g4-events { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.g4-event { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.g4-ev-main { display: flex; flex-wrap: wrap; gap: 4px var(--space-4); align-items: baseline; min-width: 0; }
.g4-ev-fig { font-variant-numeric: tabular-nums; font-weight: 600; }

.g4-whales { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.g4-whale { padding: var(--space-4); }
.g4-whale-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2) var(--space-4); }
.g4-rank { color: var(--text-dim); font-weight: 700; font-variant-numeric: tabular-nums; }
.g4-stats { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); margin: 0; }
.g4-stats div { min-width: 0; }
.g4-stats dt { font-size: var(--fs-12); color: var(--text-dim); }
.g4-stats dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.g4-whale .g4-stats { margin-left: auto; }
.g4-stats-lg dd { font-size: var(--fs-20); }
.g4-last { width: 100%; font-size: var(--fs-14); }
.g4-flat { margin-top: var(--space-2); font-size: var(--fs-14); }
.g4-pos { margin-top: var(--space-3); }
.g4-pos summary { cursor: pointer; font-size: var(--fs-14); color: var(--text-dim); min-height: 32px; display: list-item; }
.g4-table { width: 100%; border-collapse: collapse; font-size: var(--fs-14); margin-top: var(--space-2); }
.g4-table th, .g4-table td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.g4-table thead th { font-weight: 600; color: var(--text-dim); font-size: var(--fs-12); }
.g4-table th.num, .g4-table td.num { text-align: right; }
.g4-api td:first-child { width: 4.5em; }
.g4-api code { word-break: break-all; }

.g4-cascades { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-3); }
.g4-cascade { padding: var(--space-4); display: flex; flex-direction: column; gap: 2px; }
.g4-cas-coin { font-weight: 700; }
.g4-cas-big { font-size: var(--fs-28); font-weight: 800; font-stretch: 75%; font-variant-numeric: tabular-nums; }

.g4-heat { overflow-x: auto; margin-top: var(--space-3); --cl: var(--up); --cs: var(--down); }
.g4-heat-row { display: grid; grid-template-columns: 96px repeat(var(--bands, 20), minmax(14px, 1fr)); gap: 2px; align-items: stretch; min-width: 420px; }
.g4-heat-row + .g4-heat-row { margin-top: 2px; }
.g4-heat-coin { min-width: 0; overflow: hidden; text-overflow: ellipsis; display: flex; flex-direction: column; justify-content: center; font-weight: 700; font-size: var(--fs-14); padding-right: 6px; }
.g4-heat-coin a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g4-heat-coin small { font-weight: 400; color: var(--text-dim); font-size: var(--fs-12); font-variant-numeric: tabular-nums; }
.g4-heat-ax { font-size: 10px; color: var(--text-dim); white-space: nowrap; overflow: visible; }
.g4-cell { position: relative; min-height: 34px; background: color-mix(in srgb, var(--surface) 70%, transparent); border-radius: 2px; overflow: hidden; }
.g4-cell.g4-zero { box-shadow: inset 2px 0 0 var(--text-dim); }
.g4-heat-ax.g4-zero { color: var(--text); font-weight: 600; }
.g4-heat-ax:last-child { text-align: right; }
.g4-cell i, .g4-legend i { position: absolute; inset: 0; }
.g4-cl { background: var(--cl); }
.g4-cs { background: var(--cs); }
.g4-legend { display: flex; gap: var(--space-6); font-size: var(--fs-12); color: var(--text-dim); margin-top: var(--space-2); }
.g4-legend span { display: inline-flex; align-items: center; gap: 6px; }
.g4-legend i { position: static; display: inline-block; width: 12px; height: 12px; border-radius: 2px; }
.g4-legend-split { display: grid; grid-template-columns: 96px 1fr 1fr; gap: 2px; min-width: 420px; }
.g4-legend-split .g4-heat-coin { padding: 0; }
.g4-legend-split .g4-leg-l { justify-content: flex-end; padding-right: var(--space-2); text-align: right; }
.g4-legend-split .g4-leg-s { justify-content: flex-start; padding-left: var(--space-2); }
.g4-legend-split > span { display: block; white-space: nowrap; }
.g4-legend-split .g4-leg-x { display: inline; }
.g4-legend-split i { vertical-align: -2px; margin-right: 6px; }
@media (max-width: 640px) { .g4-legend-split span.g4-leg-x { display: none; } .g4-legend-split .g4-leg-l, .g4-legend-split .g4-leg-s { padding: 0 4px; } }
.g4-heat-notes { margin: var(--space-3) 0 0; padding-left: 1.1em; font-size: var(--fs-14); color: var(--text-dim); }
.g4-heat-notes li + li { margin-top: 4px; }
.g4-heat-why { font-size: var(--fs-12); margin-top: var(--space-2); max-width: 72ch; }

.g4-listings { list-style: none; margin: var(--space-6) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-3); }
.g4-listing { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); }
.g4-l-head { display: flex; justify-content: space-between; gap: var(--space-2); flex-wrap: wrap; }
.g4-l-name strong { font-size: var(--fs-20); }
.g4-stats-wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: var(--space-2) var(--space-4); }
.g4-l-foot { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); flex-wrap: wrap; font-size: var(--fs-14); margin-top: auto; }

.g4-disclose { margin-top: var(--space-8); padding: var(--space-4); border-left: 3px solid var(--line); color: var(--text-dim); font-size: var(--fs-14); max-width: 80ch; }
.g4-method { font-size: var(--fs-12); margin-top: var(--space-3); max-width: 80ch; }
.g4-warming { margin-top: var(--space-6); }

.g4-panel { padding: var(--space-6); max-width: 760px; }
.g4-panel [hidden] { display: none !important; }
.g4-error { color: var(--down); font-weight: 600; margin-top: var(--space-3); }
.g4-key code { word-break: break-all; font-size: var(--fs-14); }
.g4-keylist { padding-left: 1.2em; font-size: var(--fs-14); }
.g4-links { list-style: none; padding: 0; display: grid; gap: var(--space-2); }
.g4-links li { display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }
.g4-links code { word-break: break-all; font-size: var(--fs-14); }
.g4-claim { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; margin-top: var(--space-4); }
.g4-claim label { width: 100%; font-size: var(--fs-14); color: var(--text-dim); }
.g4-claim input { min-height: 36px; padding: 0 10px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; }
.g4-pre { overflow-x: auto; padding: var(--space-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); font-size: var(--fs-14); }
.g4-prose { padding-top: 0; }
.g4-prose .g4-h2 { margin-top: var(--space-6); }

.g4-kind { font-size: var(--fs-12); color: var(--text-dim); font-weight: 600; }
.g4-verdict { display: inline-flex; align-items: center; gap: 8px; margin-top: var(--space-4); padding: 8px 14px; border-radius: 999px; font-weight: 700; border: 1px solid var(--line); }
.g4-verdict svg { width: 18px; height: 18px; }
.g4-ok { color: var(--up); border-color: color-mix(in srgb, var(--up) 50%, transparent); }
.g4-bad { color: var(--down); border-color: color-mix(in srgb, var(--down) 50%, transparent); }
.g4-unk { color: var(--text-dim); }
.g4-card-img { width: 100%; height: auto; max-width: 900px; border-radius: var(--radius-m); border: 1px solid var(--line); display: block; }
.g4-share { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }

@media (max-width: 639px) {
  .g4-whale .g4-stats { margin-left: 0; width: 100%; }
  .g4-table { font-size: var(--fs-12); }
  .g4-pos .g4-table thead { display: none; }
  .g4-pos .g4-table, .g4-pos .g4-table tbody, .g4-pos .g4-table tr { display: block; }
  .g4-pos .g4-table tr { display: grid; grid-template-columns: 1fr auto auto; gap: 2px 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .g4-pos .g4-table th, .g4-pos .g4-table td { border: 0; padding: 0; }
  .g4-pos .g4-table td:nth-child(5), .g4-pos .g4-table td:nth-child(6) { display: none; }
  .g4-pos .g4-act { grid-column: 1 / -1; text-align: left; margin-top: 4px; }
  .g4-table-full td:nth-child(5), .g4-table-full th:nth-child(5) { display: none; }
  .g4-api td:nth-child(3) { display: none; }
  .g4-event .g4-mirror { width: 100%; }
  .g4-heat-row { grid-template-columns: 64px repeat(var(--bands, 20), minmax(10px, 1fr)); min-width: 320px; }
  .g4-panel { padding: var(--space-4); }
}
/* /v landing (fixA W4): pitch + prefilled trade above the fold */
.g4-pitch { color: var(--text-dim); margin: var(--space-2) 0 0; max-width: 60ch; }
.g4-cta { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.g4-btn-primary { min-height: 44px; font-weight: 700; }
.g4-share-note { flex-basis: 100%; margin: var(--space-1) 0 0; font-size: 0.9em; }
@media (max-width: 639px) { .g4-cta .g4-btn-primary { flex: 1 1 100%; justify-content: center; text-align: center; } }

/* W5 fix: /pro pilot form, unbroken dataset ids */
.g4-nowrap { white-space: nowrap; }
.g4-form input, .g4-form textarea { width: 100%; max-width: 560px; box-sizing: border-box; font: inherit; padding: 6px 8px;
  border: 1px solid var(--line, #8884); border-radius: var(--radius-s); background: transparent; color: inherit; }
.g4-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---- redesign10: the same dense system as the board (13px UI type, 1px rules, compact controls) ---------------- */
.card { border-radius: var(--radius-s); }
.g4-subnav { gap: 2px; padding: 8px 0 0; }
.g4-subnav a { font-size: var(--fs-13, 0.8125rem); padding: 0 10px; min-height: 28px; border-color: transparent; border-radius: var(--radius-s); }
.g4-subnav a[aria-current="page"] { border-color: var(--line); background: var(--surface); font-weight: 600; }
.g4-hero { padding-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.g4-hero .g4-title { flex-basis: 100%; }
.g4-hero .lede { flex-basis: 100%; margin-top: 0; font-size: var(--fs-13, 0.8125rem); max-width: 100ch; }
.g4-title { font-size: 1.75rem; }
.g4-tabs { margin-top: 4px; }
.g4-tabs a { padding: 0 10px; min-height: 28px; font-size: var(--fs-12); }
.g4-tabs a[aria-current="page"] { font-weight: 600; }
.g4-section { margin-top: 16px; }
.g4-h2 { font-size: var(--fs-13, 0.8125rem); font-weight: 700; font-stretch: 100%; margin-bottom: 6px; }
.g4-h2 .g4-dim { font-size: var(--fs-12); }
.g4-dex, .g4-tag { font-size: var(--fs-11, 0.6875rem); padding: 0 5px; border-radius: 2px; }
.g4-btn { min-height: 26px; padding: 0 9px; font-size: var(--fs-12); }
.g4-event { padding: 5px 0; gap: 8px; font-size: var(--fs-13, 0.8125rem); flex-wrap: nowrap; }
.g4-event:hover { background: color-mix(in srgb, var(--surface) 70%, transparent); }
.g4-ev-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, 220px) 110px; gap: 2px 16px; flex: 1; align-items: baseline; }
.g4-ev-main time { text-align: right; font-size: var(--fs-12); }
.g4-ev-fig { text-align: right; }
.g4-addr-lg { font-size: var(--fs-14); }
.g4-whales { gap: 8px; }
.g4-whale { padding: 10px 12px; }
.g4-stats { gap: 2px 20px; }
.g4-stats dt { font-size: var(--fs-11, 0.6875rem); }
.g4-stats dd { font-size: var(--fs-13, 0.8125rem); }
.g4-last { font-size: var(--fs-12); }
.g4-pos summary { font-size: var(--fs-12); min-height: 24px; }
.g4-table { font-size: var(--fs-13, 0.8125rem); }
.g4-table th, .g4-table td { padding: 5px 10px 5px 0; }
.g4-table thead th { font-size: var(--fs-11, 0.6875rem); font-weight: 500; }
.g4-cas-big { font-size: 1.5rem; font-stretch: 87.5%; }
.g4-cascade { padding: 10px 12px; }
.g4-method { font-size: var(--fs-11, 0.6875rem); }
@media (max-width: 639px) {
  .g4-title { font-size: 1.375rem; }
  .g4-hero .lede { font-size: var(--fs-12); }
  .g4-tabs { overflow-x: auto; max-width: 100%; }
  .g4-tabs a { flex: none; }
  .g4-event { flex-wrap: wrap; }
  .g4-ev-main { grid-template-columns: minmax(0, 1fr) auto; }
  .g4-ev-main .g4-ev-what { grid-column: 1 / -1; }
  .g4-ev-main time { text-align: right; }
  .g4-ev-fig { text-align: left; }
}

.g4-event { min-height: 34px; }
.g4-event .g4-btn { min-height: 24px; }
@media (max-width: 639px) {
  .g4-event { flex-wrap: nowrap; align-items: center; }
  .g4-event > .g4-mirror { flex: none; }
}
