/* ════════════════════════════════════════════════════════════════════
   Investors tab — per-investor monthly NAV / return time series.
   Two stacked tables: fund-level summary + per-investor grid. The grid
   is sticky-headered both axes so an investor's name + the month
   header track as the user scrolls a wide year-of-history.
   ════════════════════════════════════════════════════════════════════ */

#investors-card { padding: 0; }
#investors-content { padding: 18px; }

.inv-section + .inv-section { margin-top: 22px; }

.inv-section-head {
  display: flex; align-items: baseline;
  gap: 12px; flex-wrap: wrap;
  margin-bottom: 10px;
}
.inv-section-title {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: .1em;
}

.inv-empty {
  padding: 28px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: var(--surface-tinted);
}

.inv-scroll {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-tinted);
  overflow: auto;
  max-height: 70vh;
}

.inv-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  font-family: var(--font-mono);
  font-size: 12px;
}
.inv-table th,
.inv-table td {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 6px 10px;
  background: var(--input);
  vertical-align: middle;
  white-space: nowrap;
}
.inv-table tr:last-child td,
.inv-table tr:last-child th { border-bottom: 0; }
.inv-table th:last-child,
.inv-table td:last-child { border-right: 0; }
.inv-table thead th {
  position: sticky;
  top: 0; z-index: 3;
  background: color-mix(in srgb, var(--foreground) 4%, var(--input));
  font-weight: 500;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 10px;
  text-align: right;
  padding: 8px 10px 6px 10px;
}
.inv-table tbody td { text-align: right; }
.inv-table tbody td.is-pos { color: var(--profit); }
.inv-table tbody td.is-neg { color: var(--loss); }

/* Fund summary specifics — left-aligned date column. */
.inv-fs-date  { text-align: left !important; font-family: var(--font-mono); }
/* Inline qualifier on a column header (e.g. "(period)") — keeps the
   parenthetical at small size + lower contrast so the header reads
   as one phrase, not two. */
.inv-th-hint  { font-size: 9px; opacity: .65; margin-left: 3px; text-transform: none; letter-spacing: 0; }

/* Projected (pre-BS) rows — dimmed so the operator can tell at-a-glance
   which months are forward extrapolations vs. auditor-confirmed.
   Live (in-progress month) rows use the same dim treatment but a
   green badge to signal "right now" instead of "extrapolated". */
.inv-row-projected td,
.inv-row-live td { color: var(--muted-foreground); font-style: italic; }
.inv-projected-tag,
.inv-live-tag {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 9px;
  font-style: normal;
  letter-spacing: .05em;
  text-transform: uppercase;
  vertical-align: middle;
}
.inv-projected-tag {
  background: color-mix(in srgb, var(--status-dev) 16%, transparent);
  color: var(--status-dev);
}
.inv-live-tag {
  background: color-mix(in srgb, var(--profit) 16%, transparent);
  color: var(--profit);
}

/* ── Per-investor grid ──
   Investors are rows, months are columns. Investor name + slab columns
   are sticky on the left, month header is sticky on top — same z-index
   layering used in the capital-calls grid. */
.inv-table-grid thead th.inv-th-name,
.inv-table-grid thead th.inv-th-slab {
  position: sticky;
  z-index: 4;
  text-align: left;
  background: color-mix(in srgb, var(--foreground) 4%, var(--input));
}
.inv-table-grid thead th.inv-th-name { left: 0; min-width: 200px; }
.inv-table-grid thead th.inv-th-slab { left: 200px; min-width: 60px; }
.inv-table-grid thead th.inv-th-itd  { min-width: 120px; }
.inv-table-grid thead th.inv-th-month { min-width: 110px; }

.inv-table-grid tbody th.inv-name {
  position: sticky; left: 0; z-index: 2;
  background: var(--input);
  text-align: left;
  font-weight: 500;
  padding: 0;
}
.inv-table-grid tbody td.inv-slab {
  position: sticky; left: 200px; z-index: 2;
  background: var(--input);
  text-align: center;
}
.inv-table-grid tbody th.inv-name::after {
  /* Solid divider between the sticky investor column and the data cells. */
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 1px;
  background: var(--border);
}

.inv-name-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent;
  border: 0;
  padding: 8px 10px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  color: var(--foreground);
  font: inherit;
  font-weight: 500;
}
.inv-name-btn:hover { background: var(--hover-tint); }
.inv-caret {
  font-size: 9px;
  color: var(--muted-foreground);
  display: inline-block;
  width: 10px;
}
.inv-row.is-expanded .inv-name-btn { background: var(--hover-tint); }
.inv-name-text { font-family: var(--font-mono); }

.inv-slab-pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; height: 20px;
  padding: 0 6px;
  border: 1px solid var(--ring);
  border-radius: 999px;
  background: var(--surface-tinted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--foreground);
}
.inv-slab-pill.is-unassigned {
  border-style: dashed;
  border-color: var(--border);
  color: var(--muted-foreground);
}

/* Stacked-cell for one (investor, month) pair: NAV on top line, monthly
   return % on bottom line. An inner flex wrapper lays out an optional
   capital-flow badge on the LEFT alongside the NAV/return stack on the
   right — that way a cap-call month doesn't add a third row that pushes
   the values up out of vertical alignment with the rest. We can't put
   `display: flex` directly on <td> because that strips the table-cell
   role and breaks the row grid; the .inv-cell-inner wrapper gets it
   instead. */
.inv-cell {
  padding: 4px 10px;
}
.inv-cell-inner {
  display: flex;
  align-items: center;
  gap: 6px;
}
.inv-cell-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  margin-left: auto;
  min-width: 0;
}
/* Pre-investment cells — cross-hatch the same way the capital-calls
   grid does for unfunded (investor, month) pairs. Reads as "not in
   the fund yet" without a misleading $0 / 0% display. */
.inv-cell.is-empty {
  background-image: repeating-linear-gradient(
    -45deg,
    transparent 0,
    transparent 6px,
    var(--border) 6px,
    var(--border) 7px
  );
}
.inv-cell-nav {
  font-size: 12px;
  color: var(--foreground);
  font-weight: 500;
}
.inv-cell-ret {
  font-size: 11px;
  color: var(--muted-foreground);
}
.inv-cell.is-pos .inv-cell-ret { color: var(--profit); }
.inv-cell.is-neg .inv-cell-ret { color: var(--loss); }
/* Capital-flow badge — first child in the cell's flex row, so it sits
   on the LEFT and the NAV/return stack pushes itself to the right via
   margin-left: auto. Doesn't grow the cell's height (single line). */
.inv-cell-flow {
  flex: 0 0 auto;
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 9px;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--profit) 18%, transparent);
  color: var(--profit);
}
.inv-cell-flow.is-neg {
  background: color-mix(in srgb, var(--loss) 18%, transparent);
  color: var(--loss);
}

/* ITD column — same shape as a month cell, but the gradient and the
   border emphasize it as the rollup. */
.inv-itd {
  background: color-mix(in srgb, var(--foreground) 5%, var(--input)) !important;
  text-align: right;
  padding: 4px 10px;
  border-left: 1px solid var(--border);
}

/* Per-investor expand-row — full-width detail breakdown beneath the
   compact stacked-cell grid. */
.inv-detail-row > td { padding: 0 !important; background: var(--surface-tinted) !important; }
.inv-detail {
  padding: 10px 14px 14px 14px;
  border-top: 1px solid var(--border);
}
.inv-detail .inv-table { font-size: 11px; }
.inv-detail .inv-table thead th { background: var(--surface-tinted); }

/* ── What-if modelling pane ──
   Lower-section editor that overrides one future month's gross AUM
   and re-runs the per-LP fee + return table on the fly. Reset goes
   back to the BS + live projection defaults. */
.inv-section-model {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-tinted);
}
.inv-section-model .inv-section-head { margin-bottom: 14px; }

.inv-model-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 18px;
  margin-bottom: 14px;
}
.inv-model-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 140px;
}
.inv-model-field-label {
  font-size: 10px;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.inv-model-select,
.inv-model-input {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--input);
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 8px;
}
.inv-model-select:focus,
.inv-model-input:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--ring) 28%, transparent);
}
.inv-model-input-wrap {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--input);
  overflow: hidden;
}
.inv-model-input-wrap:focus-within {
  border-color: var(--ring);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--ring) 28%, transparent);
}
.inv-model-input-prefix {
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-foreground);
  background: color-mix(in srgb, var(--foreground) 4%, var(--input));
  border-right: 1px solid var(--border);
}
.inv-model-input-wrap .inv-model-input {
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: right;
  min-width: 160px;
}
.inv-model-input-wrap .inv-model-input:focus { box-shadow: none; }

.inv-model-reset,
.inv-model-calc {
  height: 32px;
  padding: 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  background: var(--input);
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.inv-model-reset:not([disabled]):hover,
.inv-model-calc:not([disabled]):hover {
  background: var(--hover-tint);
  border-color: var(--ring);
}
.inv-model-reset[disabled],
.inv-model-calc[disabled] {
  opacity: .45;
  cursor: not-allowed;
}

/* Calculate gets the accent treatment when it's enabled — it's the
   action that moves the panel forward, so it should stand out next to
   the more passive Reset. */
.inv-model-calc:not([disabled]) {
  background: color-mix(in srgb, var(--ring) 14%, var(--input));
  border-color: color-mix(in srgb, var(--ring) 55%, var(--border));
  color: var(--foreground);
}
.inv-model-calc:not([disabled]):hover {
  background: color-mix(in srgb, var(--ring) 22%, var(--input));
}

.inv-model-default { margin-left: auto; }
.inv-model-help {
  margin: -4px 0 14px 0;
  padding: 8px 10px;
  border-left: 2px solid var(--ring);
  background: color-mix(in srgb, var(--ring) 6%, transparent);
  border-radius: 0 6px 6px 0;
  line-height: 1.5;
}
.inv-model-help strong { color: var(--foreground); font-weight: 600; }
.inv-model-override-tag {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 9px;
  letter-spacing: .05em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--status-dev) 18%, transparent);
  color: var(--status-dev);
}

/* KPI strip above the per-LP table — gross/net return, fees, totals. */
.inv-model-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.inv-model-kpi {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.inv-model-kpi-label {
  font-size: 9px;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.inv-model-kpi-value {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
}
.inv-model-kpi-value.is-pos { color: var(--profit); }
.inv-model-kpi-value.is-neg { color: var(--loss); }

/* Per-LP modelling table — same shape as the fund summary, sorted by
   net return ascending. The worst row is bolded + flagged so the eye
   lands on it immediately. */
.inv-model-scroll { max-height: 50vh; }
.inv-model-worst td { font-weight: 600; background: color-mix(in srgb, var(--loss) 8%, var(--input)) !important; }
.inv-model-worst-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 9px;
  letter-spacing: .05em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--loss) 22%, transparent);
  color: var(--loss);
}

/* State badge in the form's "Default" row — one of:
   live projection (default base render) / override active (post-calc
   what-if) / not calculated (extra month, awaiting Calculate) /
   calculating… (fetch in flight). Colour-coded so the operator can
   tell at a glance whether what they're looking at is live data,
   an override, or stale. */
.inv-model-state-tag {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 9px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.inv-model-state-base {
  background: color-mix(in srgb, var(--profit) 16%, transparent);
  color: var(--profit);
}
.inv-model-state-pending {
  background: color-mix(in srgb, var(--muted-foreground) 16%, transparent);
  color: var(--muted-foreground);
}
.inv-model-state-loading {
  background: color-mix(in srgb, var(--ring) 18%, transparent);
  color: var(--ring);
}

/* Loading row that replaces the KPI strip during a fetch. Stays
   in-flow so the section height doesn't jump when the spinner appears
   or disappears. */
.inv-model-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 12px;
  margin-bottom: 12px;
  background: color-mix(in srgb, var(--ring) 6%, var(--input));
  border: 1px solid color-mix(in srgb, var(--ring) 28%, var(--border));
  border-radius: 6px;
  font-size: 12px;
  color: var(--muted-foreground);
}
.inv-model-empty {
  padding: 12px;
  margin-bottom: 12px;
  background: var(--input);
  border: 1px dashed var(--border);
  border-radius: 6px;
  line-height: 1.5;
}
.inv-model-empty strong {
  color: var(--foreground);
  font-weight: 600;
}

/* Spinner — used both in the loading row (size: 14px) and inline on
   the Calculate button (size: 11px). Plain CSS keyframes; if the
   site-wide stylesheet already defines `spin`, redefining it here is
   harmless (same animation). */
.inv-model-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid color-mix(in srgb, var(--foreground) 22%, transparent);
  border-top-color: var(--ring);
  border-radius: 50%;
  animation: inv-model-spin 0.7s linear infinite;
  flex: 0 0 auto;
}
.inv-model-spinner-sm {
  width: 11px;
  height: 11px;
  border-width: 1.5px;
  vertical-align: -1px;
}
@keyframes inv-model-spin {
  to { transform: rotate(360deg); }
}

/* Subtle dim on the section while a fetch is in flight — keeps the
   old table visible but makes clear the displayed numbers are about
   to be replaced. */
.inv-section-model.is-loading .inv-model-kpis,
.inv-section-model.is-loading .inv-model-scroll {
  opacity: .55;
  pointer-events: none;
  transition: opacity .15s ease-out;
}

/* ── Both share classes in one grid ────────────────────────────────────
   The USD and BTC classes share the table (and so every column width):
   the header row on top, then each class under a full-width title row,
   the BTC class repeating the column labels as its subheader. The grid
   pane is a size container so the title rows and drawers can hold to its
   VISIBLE width (100cqw) while the table scrolls sideways under them. */
.inv-scroll-grid {
  container-type: inline-size;
  /* Reserve the vertical scrollbar's gutter, so 100cqw is the visible width
     whether or not the pane scrolls (an open drawer makes it scroll). */
  scrollbar-gutter: stable;
}

/* Fixed-width investor column: the sticky slab column sits at left 200px,
   so a long name must ellipsize rather than run under it. */
.inv-table-grid th.inv-th-name,
.inv-table-grid tbody th.inv-name {
  width: 200px; min-width: 200px; max-width: 200px;
  box-sizing: border-box;
}
.inv-table-grid .inv-name-btn { min-width: 0; }
.inv-table-grid .inv-name-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inv-table-grid tbody tr.inv-group-head > th {
  padding: 10px 10px 8px;
  text-align: left;
  background: var(--surface-tinted);
  border-right: 0;
  white-space: normal;
}
.inv-table-grid tbody.inv-group-btc tr.inv-group-head > th {
  /* The break between the classes. */
  border-top: 1px solid var(--border-strong);
}
.inv-group-label {
  position: sticky; left: 10px;
  display: inline-flex; align-items: center; flex-wrap: wrap;
  gap: 6px 12px;
  /* The pane's visible width, not the content's: a short note then sits
     beside the title instead of wrapping under it. */
  width: calc(100cqw - 20px);
  box-sizing: border-box;
  font-weight: 400;
}
.inv-group-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--foreground);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.inv-group-label .muted.small { flex: 1 1 320px; min-width: 0; }
/* On a phone-width pane the BTC unit toggle wraps inside the label rather
   than spilling past it (the label is sticky, so a spill never scrolls in). */
.inv-group-label .inv-toggle { flex: 0 1 auto; flex-wrap: wrap; max-width: 100%; }

/* The BTC class's subheader: the header row's look, scrolling with the
   table (only the real header is sticky on top), name + slab sticky left. */
.inv-table-grid tbody tr.inv-subhead > th {
  background: color-mix(in srgb, var(--foreground) 4%, var(--input));
  font-weight: 500;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 10px;
  text-align: right;
  padding: 6px 10px;
}
.inv-table-grid tbody tr.inv-subhead > th.inv-th-name,
.inv-table-grid tbody tr.inv-subhead > th.inv-th-slab {
  position: sticky; z-index: 2;
  text-align: left;
}
.inv-table-grid tbody tr.inv-subhead > th.inv-th-name { left: 0; }
.inv-table-grid tbody tr.inv-subhead > th.inv-th-slab { left: 200px; }

/* Segmented toggles — ITD / YTD in the header, the BTC unit on its title
   row (the Live Overview Monthly Performance toggle's look). */
.inv-toggle {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-tinted, transparent);
  flex: none;
  vertical-align: middle;
}
.inv-toggle-btn {
  background: transparent;
  border: 0;
  border-radius: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: .12em;
  cursor: pointer;
  transition: background .12s ease, color .12s ease;
}
.inv-toggle-btn:hover { color: var(--foreground); }
.inv-toggle-btn:focus-visible { outline: 1px solid var(--ring); outline-offset: 1px; }
.inv-toggle-btn.is-active {
  color: var(--foreground);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
/* The header's ITD / YTD toggle has to fit the 120px summary column. */
.inv-table-grid thead th.inv-th-itd { padding: 5px 8px; }
.inv-table-grid thead th.inv-th-itd .inv-toggle-btn { padding: 3px 7px; letter-spacing: .08em; }

.inv-slab-pill.is-poppable { cursor: help; }
.inv-slab-pill.is-poppable:hover,
.inv-slab-pill.is-poppable:focus-visible {
  border-color: var(--foreground);
  outline: none;
}

/* Drawers hold to the pane's visible width, so a grid scrolled to the
   latest months still opens its drawer in view; a wide drawer scrolls on
   its own. */
.inv-table-grid .inv-detail {
  position: sticky; left: 0;
  width: 100cqw;
  box-sizing: border-box;
  overflow-x: auto;
}
.inv-detail-foot {
  margin-top: 8px;
  white-space: normal;
  line-height: 1.5;
  text-align: left;
}
.inv-detail .inv-table td.inv-detail-src {
  text-align: left;
  color: var(--muted-foreground);
}

.inv-btc-mtd {
  font-size: 8px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  padding: 0 3px;
  margin-left: 4px;
  vertical-align: 1px;
}

/* ── Fee slabs ─────────────────────────────────────────────────────────
   One row per slab per class, mgmt + perf over four periods; the title
   rows reuse the grid's. Short, so no sticky header. */
.inv-scroll-slabs { max-height: none; container-type: inline-size; }
.inv-table-slabs thead th { position: static; }
/* Two header rows: the rowspan cells sit in the first, which keeps the
   default bottom rule the second row loses; match the other tables (none). */
.inv-table-slabs thead th[rowspan] { border-bottom: 0; }
.inv-table-slabs thead th.inv-th-slabname,
.inv-table-slabs thead th.inv-th-terms { text-align: left; }
.inv-table-slabs thead th.inv-th-count { text-align: center; }
.inv-table-slabs thead th.inv-th-period { text-align: center; }
.inv-table-slabs tbody tr.inv-group-head > th {
  padding: 10px 10px 8px;
  text-align: left;
  background: var(--surface-tinted);
  border-right: 0;
  white-space: normal;
}
.inv-table-slabs tbody.inv-group + tbody.inv-group tr.inv-group-head > th { border-top: 1px solid var(--border-strong); }
.inv-table-slabs th.inv-th-slabname { width: 64px; }
.inv-table-slabs th.inv-th-terms { width: 300px; }
.inv-table-slabs th.inv-th-count { width: 84px; }
.inv-table-slabs td.inv-slab-cell { text-align: center; }
.inv-table-slabs td.inv-slab-terms { text-align: left; color: var(--muted-foreground); }
.inv-table-slabs td.inv-slab-count { text-align: center; }
.inv-table-slabs tr.inv-slab-total td {
  font-weight: 600;
  background: color-mix(in srgb, var(--foreground) 4%, var(--input));
}
.inv-table-slabs tr.inv-slab-total td:first-child {
  text-align: left;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 10px;
}

/* The slab popup — the hint component's floating surface (hint.css
   .hint-tip.is-floating), placed by investors.js. Its table has four
   columns, not the five the shared .tip-table widths assume. */
.hint-tip.inv-slab-pop .tip-table th:nth-child(1) { width: 34%; }
.hint-tip.inv-slab-pop .tip-table th:nth-child(2),
.hint-tip.inv-slab-pop .tip-table th:nth-child(3),
.hint-tip.inv-slab-pop .tip-table th:nth-child(4) { width: 22%; }
.hint-tip.inv-slab-pop .tip-table th.num { text-align: right; }
.hint-tip.inv-slab-pop .tip-rows { margin-bottom: 4px; }
.hint-tip.inv-slab-pop .tip-rows > .tip-row { column-gap: 12px; }
/* Phone: hint.css makes it a bottom sheet. Let the numbers size their own
   columns (no ellipsis on a 6-place BTC fee) and keep the top on screen. */
@media (max-width: 720px) {
  /* pointer-events back on (is-floating turns them off) so the sheet can
     scroll; investors.js keeps it open through the tap that opened it and
     closes it on a tap ON it, which never reaches what lies underneath. */
  .hint-tip.inv-slab-pop {
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
    pointer-events: auto;
  }
  .hint-tip.inv-slab-pop .tip-table { table-layout: auto; }
  .hint-tip.inv-slab-pop .tip-table th:nth-child(n) { width: auto; }
  .hint-tip.inv-slab-pop .tip-table th,
  .hint-tip.inv-slab-pop .tip-table td { overflow: visible; text-overflow: clip; }
  .hint-tip.inv-slab-pop .tip-table td:first-child { white-space: normal; }
}
