/* ════════════════════════════════════════════════════════════════════
   Live Overview tab — AUM-over-time chart shell.

   The "AUM over time" card hosts a multi-layer chart whose hero metaphor
   is the GAP between Total Capital (AUM) and Cumulative Capital Calls.
   Three visual zones, top → bottom:

     1. KPI bar              — Current AUM | Δ$ vs. calls | Δ% return
     2. Hero chart (320 px)  — AUM line + capital-calls baseline +
                                profit/loss ribbon between them, with BS /
                                PR markers and a pulsing live dot at "now".
     3. Composition strip    — thin stacked area: positions / other assets
                                / liabilities, low opacity, no chrome.

   The hero chart's tooltip is rendered out-of-canvas (Chart.js external
   handler) so it can paint richer markup than canvas text allows.
   ════════════════════════════════════════════════════════════════════ */

/* ── Status strip: per-source last-refresh ─────────────────────────── */
/* Slim one-line bar showing when each upstream sync last completed.
   Manual refresh button used to live here; removed so freshness is
   read off the data directly. The two freshness chips (live positions,
   defi wallets) update on a 30s interval client-side via setInterval. */
.liveov-status-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.liveov-freshness {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 11.5px;
}
.liveov-freshness-label {
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 9.5px;
  font-weight: 500;
}
.liveov-freshness-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
/* DeFi chip when a wallet's balances sync is stale (paintDefiStale). */
.liveov-freshness-value.is-stale {
  color: var(--destructive-foreground);
  font-weight: 600;
}
.liveov-stale-banner {
  border-color: var(--destructive-foreground);
  background: linear-gradient(180deg, color-mix(in srgb, var(--destructive-foreground) 8%, transparent), transparent);
}
.liveov-stale-banner .obfuscation-banner-title {
  color: var(--destructive-foreground);
}
.liveov-stale-banner .obfuscation-banner-body {
  max-width: none;
}
.liveov-stale-banner ul {
  margin: 6px 0 0;
  padding-left: 18px;
}
.liveov-freshness-sep {
  color: var(--muted-foreground);
  opacity: .55;
}

/* ── Landing — two big bentos, side-by-side ────────────────────────────
   LEFT bento packs Current AUM + the strategy split + AUM allocation
   donut so the high-density "what does the fund hold" read is one
   glance, no scrolling. RIGHT column stacks the Monthly Performance
   bento + the AUM-over-time chart + the NAV chart.

   The grid self-collapses to one column below ~1396px wide (two 690px
   tracks + the 16px gap). That collapse fires BEFORE the left bento
   gets narrow enough to wrap the strategy donut under its rows (see the
   @container strat-split rule): dropping the right column below the
   left bento hands the left bento the full width back, so the donut
   stays side-by-side until the viewport is genuinely tiny. The landing
   is also a query container so the chart bentos react to the same
   collapse. */
.liveov-landing {
  display: grid;
  /* auto-fit + minmax self-reflows: two columns while ≥1396px, one
     below. min(690px, 100%) keeps the lone column from overflowing a
     sub-690px viewport. */
  grid-template-columns: repeat(auto-fit, minmax(min(690px, 100%), 1fr));
  gap: 16px;
  margin-bottom: 16px;
  align-items: stretch;
  container: liveov-landing / inline-size;
}
.liveov-bento {
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
  min-width: 0;
  /* The parent `.card` class ships a 24px `margin-bottom` so loose cards
     stacked in a regular flow get breathing room. The bento columns
     control their own spacing via flex `gap`, so margin here just
     compounds with the gap and re-introduces the whitespace we're
     trying to remove. Zero out the inherited margin and let the column
     gap own the spacing. */
  margin-bottom: 0;
}
.liveov-bento-left {
  gap: 18px;
  /* Container queries below adapt the headline-block (AUM big number +
     MTD/Yield cards) based on this bento's *own* width — which, while
     it shares a row with the right column, is far below the viewport's.
     Container-query-driven so the layout adapts whether the bento is
     wide (landing collapsed to 1-col) or narrow (side-by-side). */
  container-type: inline-size;
  container-name: bento-left;
}
/* Right column — three stacked bentos: Monthly Performance, the
   AUM-over-time chart and the NAV chart. The two chart bentos flex-grow
   so a taller left bento's surplus height is absorbed by the cards
   themselves rather than parked in the gap between them; Monthly
   Performance stays content-sized. */
.liveov-right-col {
  display: flex;
  flex-direction: column;
  /* Match the `.liveov-landing` column gap (16px) so the spacing
     between the two stacked bentos reads identically to the gap
     between the left and right columns. */
  gap: 16px;
  min-width: 0;
}
/* The parent grid (`.liveov-landing`) stretches both columns to the
   taller side's height; the two right-column bentos at their natural
   sizes fall short of the taller left bento. Rather than parking that
   surplus in the gap (the old `justify-content: space-between`), both
   bentos flex-grow off a 0 basis so the slack splits 50/50 — the cards
   stretch equally and the gap between them lands at the column's
   vertical midpoint. The stretch passes down through `.aum-stage` →
   `.aum-hero` (both grow, never shrink below their `height` floor) so
   the surplus becomes a taller chart, not dead space below a
   fixed-height canvas. Reset to the default flex in the collapsed
   one-column layout — see the `@container … 1396px` block near
   `.aum-hero`. */
.liveov-right-col > .liveov-bento {
  flex: 1 1 0;
}
.liveov-right-col > .liveov-bento-perf {
  flex: none;
}
.liveov-right-col .aum-stage {
  flex: 1 0 auto;
}
.liveov-right-col .aum-hero {
  flex: 1 0 auto;
}
/* Monthly Performance — its own bento at the top of the right column:
   the USD class table over the BTC share-class table, with one Net /
   Gross toggle in the header for both. */
.liveov-bento-perf {
  gap: 12px;
  padding: 12px 18px 14px;
}
.liveov-bento-perf .liveov-mp-head { margin-bottom: 0; }
/* One share class's table. Each is a `perf-bento` container so the
   table's cqi-based fluid sizing + the stacked @container layout key off
   the block's own width. A hairline divides the two classes. */
.liveov-mp-class {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  container: perf-bento / inline-size;
}
.liveov-mp-class + .liveov-mp-class {
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.liveov-mp-class-label .muted {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
/* BTC class in Bitcoin amber, as the BTC amount under Current AUM. */
#liveov-mp-btc .liveov-mp-class-label { color: #f7931a; }
/* The Report tab's Net tables (report.css) — the same table markup,
   framed by a divider line top and bottom, no card chrome. */
.liveov-mp-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  container-type: inline-size;
  container-name: perf-bento;
}
.liveov-bento-chart {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 18px;
}

/* Headline block — top of the left bento. Holds Current AUM + the two
   delta tiles (vs capital called, return since inception) + the small
   composition sub-rows (Positions / Other / Liabilities). All in one
   tight stack so the operator gets the fund's "where are we" read in
   one visual unit.

   The delta tiles used to live above the AUM chart in the right column
   but duplicated the headline number; folding them into the headline
   removes the dupe and lets the chart focus on time-series only. */
/* The block is a 1/3 + 2/3 split — the AUM headline + delta tiles +
   composition rows live in the LEFT column (compressed into its own
   third); the RIGHT column is a reserved 2/3-width slot for an
   upcoming adjacent surface. Stacks on narrow viewports so the
   headline keeps its visual hierarchy. */
.liveov-headline-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 18px;
  min-width: 0;
}
@media (max-width: 720px) {
  .liveov-headline-block { grid-template-columns: 1fr; }
}
/* Container-query stack — when the bento itself is narrow (typical at
   1100-1500px viewport with the 2-col landing grid), the 1fr+2fr split
   compresses the left column below the AUM headline's width and the
   "$16,737,890" mono number overflows under the MTD card's surface.
   Stacking puts AUM full-width on top and MTD/Yield full-width below,
   so neither card sits in someone else's overflow. */
@container bento-left (max-width: 560px) {
  .liveov-headline-block {
    grid-template-columns: 1fr;
  }
}
/* Slightly larger threshold — even when the side-by-side layout fits,
   the 32px AUM headline crowds toward the column edge at this bento
   size. Trim it down so it breathes inside the 1fr column. */
@container bento-left (max-width: 700px) {
  .liveov-headline-value {
    font-size: 26px;
  }
}
.liveov-headline-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.liveov-headline-right {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
/* Each stacked card shares the available column height so the two
   together fill the same vertical envelope the yield card used to own
   solo. Basis is `auto` (content-sized) so when the yield card's mid
   row wraps to two lines at narrow column widths, the card can grow
   past its 130px floor — the previous `flex: 1 1 0` forced equal
   heights based purely on available space, which let the wrapped
   content overflow the card and pushed the progress bar (margin-top:
   auto) past the bento's headline divider. Grow:1 still distributes
   any surplus column height equally so the two cards stay balanced
   on wide screens. */
.liveov-headline-right > .liveov-mtd-card,
.liveov-headline-right > .liveov-yield-row {
  flex: 1 1 auto;
}
/* Bottom row of the right column: OTC Yield on the left half, Vesting
   Calendar on the right. Equal halves so neither card's hero number reads
   as the more important of the two. `align-items: stretch` keeps the two
   surfaces the same height whichever one's content is taller. */
.liveov-yield-row {
  display: grid;
  /* auto-fit rather than a breakpoint: this row's own width is a function of
     BOTH the bento's width and whether the headline block above it has
     collapsed to one column, so the two halves are not monotonic in viewport
     width (at a 560px bento the row spans the whole bento and is WIDER than
     at 700px, where it is still the 2fr column). A min track size says the
     thing we actually mean — "two up while each half clears 250px, stacked
     below that" — and holds under every combination. */
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  align-items: stretch;
  gap: 14px;
  min-width: 0;
}
.liveov-headline-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.liveov-headline-value {
  font-size: 32px;
  line-height: 1.05;
  margin-top: -2px;
}
/* BTC share-class amount under the Current AUM number: "X BTC (~$Y)".
   Smaller than the 32px headline; the qty reads in Bitcoin amber as a
   distinct denomination, the USD is muted via the inline .muted span.
   Hidden via the `hidden` attribute for funds with no BTC share class. */
.liveov-headline-btc {
  font-size: 15px;
  line-height: 1.2;
  margin-top: 3px;
  font-variant-numeric: tabular-nums;
}
.liveov-headline-btc[hidden] { display: none; }
.liveov-headline-btc .liveov-kpi-aum-btc-qty {
  font-weight: 600;
  color: #f7931a;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
/* BTC lucide glyph sits inline with the qty (replaces the "BTC" text),
   inherits the amber via currentColor on the qty span. */
.liveov-headline-btc .liveov-kpi-aum-btc-qty svg.lucide {
  width: 16px;
  height: 16px;
}
/* BTC profit share — the slice of gross AUM the admin panel carved out
   of the headline, surfaced here as a green "+$". */
.liveov-headline-btc .liveov-kpi-aum-btc-share {
  font-weight: 600;
  color: var(--profit, var(--pos, #16a34a));
}
/* Symmetric share: a losing month's absorbed slice reads red, not green. */
.liveov-headline-btc .liveov-kpi-aum-btc-share.is-negative {
  color: var(--loss, var(--neg, #dc2626));
}
.liveov-headline-btc .liveov-kpi-aum-btc-sep { padding: 0 2px; }
/* "live" pill promoted to the top of the headline stack — sits above
   the Current NAV label, left-aligned. The compound selector outranks
   `.kpi-live-tag` so it overrides the inline margin-left (the pill no
   longer trails a label); align-self stops the flex column from
   stretching the pill to full width. */
.kpi-live-tag.liveov-headline-livetag {
  align-self: flex-start;
  margin-left: 0;
}
/* Current AUM block — bumped below the Current NAV headline. Keeps the
   8px internal stack the flat headline-left layout used. The divider is
   centred in its spacer: 10px margin-top + the column's 8px flex gap =
   18px above the rule, matched by 18px padding-top below it, so the gap
   between the NAV value and the Current AUM label reads as one even
   band rather than two mismatched spaces. */
.liveov-headline-aum {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
/* Delta tiles stacked vertically (vs the previous 1fr 1fr two-up) so
   they fit cleanly inside the 1/3-width left column without squeezing
   the "vs. capital called" / "Return since inception" labels onto
   multiple lines. Sub-line under each still carries the absolute
   reference (called total, delta $) so the % reads in context. */
.liveov-headline-perf {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 0;
}
.liveov-headline-perf-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.liveov-headline-perf-item .kpi-sub-label {
  font-size: 9.5px;
}
.liveov-headline-perf-value {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--foreground);
  line-height: 1.1;
}
.liveov-headline-perf-value.is-positive { color: var(--profit, var(--pos, #16a34a)); }
.liveov-headline-perf-value.is-negative { color: var(--loss,   var(--neg, #dc2626)); }
/* Composition sub-rows — Positions / Other / Liabilities. Label left,
   value right; mono font on values so digits align across rows. */
.liveov-headline-subs {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 4px;
}
.liveov-headline-sub-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11.5px;
}
.liveov-headline-sub-row .kpi-sub-label {
  font-size: 10px;
}
.liveov-headline-sub-row .mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--foreground);
}
.liveov-headline-sub-row[hidden] { display: none; }
/* Waterfall subtotal/total rows — a hairline rule above + bolder weight so
   the eye reads Gross total / USD-gross-less-BTC / Net as running tallies
   rather than line items. */
.liveov-headline-sub-row.is-subtotal,
.liveov-headline-sub-row.is-total {
  margin-top: 2px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}
.liveov-headline-sub-row.is-subtotal .kpi-sub-label,
.liveov-headline-sub-row.is-total .kpi-sub-label,
.liveov-headline-sub-row.is-subtotal .mono,
.liveov-headline-sub-row.is-total .mono {
  font-weight: 600;
}
.liveov-headline-sub-row.is-total .kpi-sub-label,
.liveov-headline-sub-row.is-total .mono {
  color: var(--foreground);
  font-size: 12.5px;
}
/* BTC-class AUM — the same waterfall rows with two value columns: BTC
   (the class's unit) and USD at the live mark. Fixed value tracks so the
   columns line up row to row, and the USD column lands on the same right
   edge as the USD-class waterfall above. */
.liveov-btcaum {
  margin-top: 14px;
}
.liveov-btcaum[hidden] { display: none; }
.liveov-headline-sub-row.liveov-btcaum-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 10ch 12ch;
  align-items: baseline;
}
.liveov-btcaum-row > .mono,
.liveov-btcaum-col {
  text-align: right;
}
.liveov-btcaum-row > .mono {
  white-space: nowrap;
}
.liveov-btcaum-head {
  padding-bottom: 2px;
}
.liveov-btcaum-head > .kpi-sub-label {
  color: var(--foreground);
  font-weight: 600;
}
.liveov-btcaum-col {
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

/* Allocation panel — sits below the strategy rows at the bottom of the
   left bento. Two-column layout: the fund-summary stats table sits on
   the LEFT (cover date, AUM, perf, risk, sub-strategy allocation), with
   a per-section copy button that emits TSV for paste-into-Excel; the
   donut sits on the RIGHT. At narrow widths it stacks. */
.liveov-alloc-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  /* Stretch the right column to the left column's height (the
     fund-summary stats table is the taller side and sets the panel
     height). The two donut rows below flex-grow into that height so
     no whitespace is left under the token-comp donut. */
  align-items: stretch;
}
/* The Overview has no alloc-right (token composition) column, so
   when the summary is the only child collapse to single-column instead
   of stranding an empty 50% slot on the right. */
.liveov-alloc-panel:not(:has(.liveov-alloc-right)) {
  grid-template-columns: 1fr;
}
/* ...and symmetrically: the fund-summary "cover sheet" was extracted to
   the Report tab's Newsletter section, so when the donut is the only
   child collapse it too rather than stranding an empty left slot. */
.liveov-alloc-panel:not(:has(.liveov-summary)) {
  grid-template-columns: 1fr;
}
@media (max-width: 720px) {
  .liveov-alloc-panel { grid-template-columns: 1fr; }
}
.liveov-alloc-right {
  display: flex;
  flex-direction: column;
  /* Gap doubles as the visual separator between the two donut rows.
     Keep it modest — the rows themselves expand to consume the rest
     of the vertical space, so most of the breathing room is inside
     each row (taller donuts), not between them. */
  gap: 12px;
  min-width: 0;
  /* Honour the panel's stretch alignment — without an explicit
     height the inner flex children have no growth budget to share. */
  height: 100%;
  min-height: 0;
}
.liveov-alloc-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.liveov-alloc-head .liveov-alloc-toggle {
  margin-left: auto;
}
/* AUM allocation row — donut on the left, custom HTML legend sidebar
   on the right. Geometry mirrors `.liveov-token-comp-row` exactly so
   the two donuts in this column share canvas footprint (and therefore
   slice diameter, slice centring, and Spartan watermark size — the
   watermark scales off `.chart-wrap` width). The built-in Chart.js
   legend is disabled in JS so this sidebar is the only legend surface. */
.liveov-alloc-row {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: stretch;
  /* Equal flex weight with the sibling .liveov-token-comp-row so the
     two donuts split the right column's available vertical space 50/50.
     min-height keeps a 220px floor so the donut never collapses below
     a usable size when the column is short (narrow viewports or a
     trimmed-down left-side summary). */
  flex: 1 1 0;
  min-height: 220px;
  min-width: 0;
}
.liveov-alloc-canvas-wrap {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
}
.liveov-alloc-legend {
  flex: 0 0 auto;
  width: 128px;
  max-height: 100%;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  overflow-y: auto;
  align-self: center;
  font-family: var(--font-mono);
  font-size: 11px;
  scrollbar-width: thin;
}
.liveov-alloc-legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 3px 4px;
  border-radius: 4px;
  color: var(--foreground);
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Lucide pillar mark in the legend — same 21×14 footprint as the
   token-comp legend's ticker glyph so a row of allocation items lines
   up vertically with a row of token-comp items at the identical
   baseline. Color is inlined from STRATEGY_PILLAR_COLORS by the
   renderer so the icon tint matches its slice fill. */
.liveov-alloc-legend-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 21px;
  height: 14px;
  flex-shrink: 0;
}
.liveov-alloc-legend-glyph svg {
  width: 14px;
  height: 14px;
  display: block;
}
.liveov-alloc-legend-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Sub-section header for the secondary donut (Token composition) that
   sits beneath the primary AUM allocation donut. A dashed top rule
   visually separates the two without adding card padding. */
.liveov-alloc-head-sub {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

/* Token composition row — donut on the left, custom HTML legend on
   the right. The HTML legend (vs Chart.js's built-in) gives us:
   - a guaranteed single column (built-in wraps into 2+ columns when
     items overflow the donut's height — "Other" jumping into a second
     column was the bug we hit on first paint)
   - the icon + color-sliver + name pattern the operator wanted
   - click-to-toggle visibility with the same chart.toggleDataVisibility
     hook the built-in legend uses internally. */
.liveov-token-comp-row {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: stretch;
  /* Matched flex weight + min-height with .liveov-alloc-row so the two
     donuts share the column's height equally and the legend sidebar
     scroll surface grows whenever the column does. */
  flex: 1 1 0;
  min-height: 220px;
  min-width: 0;
}
.liveov-token-comp-canvas-wrap {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
}
.liveov-token-comp-legend {
  flex: 0 0 auto;
  width: 128px;
  max-height: 100%;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  overflow-y: auto;
  align-self: center;
  font-family: var(--font-mono);
  font-size: 11px;
  /* Hide the scrollbar visually but keep it scrollable on overflow —
     a long token list shouldn't dominate the donut's footprint. */
  scrollbar-width: thin;
}
.liveov-token-comp-legend-item {
  display: flex;
  align-items: center;
  /* Larger gap so the cloned glyph's color chip (the rightmost 4px of
     the icon) reads as a distinct sliver from the token name to its
     right. With the previous 6px the chip butted right up against the
     label text. */
  gap: 10px;
  padding: 3px 4px;
  cursor: pointer;
  border-radius: 4px;
  color: var(--foreground);
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.liveov-token-comp-legend-item:hover {
  background: color-mix(in srgb, var(--foreground) 6%, transparent);
}
.liveov-token-comp-legend-item.is-hidden {
  opacity: .4;
  text-decoration: line-through;
}
/* Composited icon+chip glyph — single `<img>` carrying the same
   21×14 bitmap Chart.js renders as pointStyle, replacing the
   placeholder icon-slot when the cache is warm. */
.liveov-token-comp-legend-glyph {
  width: 21px;
  height: 14px;
  flex-shrink: 0;
  object-fit: contain;
  display: inline-block;
}
/* Placeholder slot inside the legend — fillTickerIconSlots replaces
   it with the cloned canvas (icon + chip composite). Sized to the
   composite glyph so the row's geometry doesn't reflow when the
   actual icon swaps in. The Other row uses the same slot footprint
   (via .liveov-token-comp-other-slot below) so every legend row
   shares identical geometry. */
.liveov-token-comp-icon-slot {
  display: inline-block;
  width: 21px;
  height: 14px;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--foreground) 6%, transparent);
  border-radius: 2px;
}
/* Other row's slot — same 21×14 footprint as a real token's
   composite glyph, but no icon to swap in. The inline background
   color (the muted theme color) paints the slot directly so the
   visual is a single flat block rather than the icon + chip pair. */
.liveov-token-comp-other-slot {
  border-radius: 3px;
}
.liveov-token-comp-legend-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Fund-summary stats table — five compact sections stacked vertically.
   Each section title sits on a header row with a clipboard button that
   copies the section as TSV. Rows render as a two-column key/value
   table; the value column is mono so digits line up across rows. */
/* Wrap the whole summary stack (Cover + AUM + Performance + Risk +
   Sub-strategies) in a single tinted surface so it reads as one
   composed block — visually distinct from the bento card it sits in
   and from the two donuts to the right, without dressing each
   section as its own card. Tint is theme-aware via --surface-tinted
   (4% white on dark, 4% black on light), and the rounded corners
   anchor the block at the top of the left column. */
.liveov-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  background: var(--surface-tinted);
  border-radius: 8px;
  padding: 12px 14px;
}
.liveov-sum-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.liveov-sum-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 0;
  border-bottom: 1px solid var(--border);
}
.liveov-sum-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.liveov-sum-title .small {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  margin-left: 4px;
}
.liveov-sum-copy {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: background .12s ease, color .12s ease, border-color .12s ease;
  padding: 0;
}
.liveov-sum-copy:hover {
  color: var(--foreground);
  background: var(--surface, transparent);
  border-color: var(--foreground);
}
.liveov-sum-copy.is-copied {
  color: var(--profit, var(--pos, #16a34a));
  border-color: var(--profit, var(--pos, #16a34a));
}
.liveov-sum-copy svg { display: block; }
/* Two glyphs live inside the same button — default (copy) is visible
   at rest, check is hidden. `.is-copied` flips the visibility so the
   button briefly reads as a checkmark right after a successful copy,
   the industry-standard "copied!" affordance. */
.liveov-sum-copy .liveov-sum-copy-icon--check { display: none; }
.liveov-sum-copy.is-copied .liveov-sum-copy-icon--default { display: none; }
.liveov-sum-copy.is-copied .liveov-sum-copy-icon--check { display: block; }
.liveov-sum-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 11.5px;
}
.liveov-sum-table th,
.liveov-sum-table td {
  padding: 3px 0;
  vertical-align: top;
  text-align: left;
  font-weight: 400;
  border: 0;
}
.liveov-sum-table th {
  color: var(--muted-foreground);
  font-size: 11px;
  width: 58%;
}
.liveov-sum-table td {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--foreground);
  text-align: right;
}
.liveov-sum-table td.is-positive { color: var(--profit, var(--pos, #16a34a)); }
.liveov-sum-table td.is-negative { color: var(--loss,   var(--neg, #dc2626)); }
/* Combined/Split toggle — also used in the strategy head at the top of
   the bento. (The alloc-panel head no longer hosts this toggle, but the
   strategy panel still does, so the styles stay.) */
.liveov-alloc-toggle {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-tinted, transparent);
  flex: none;
}
.liveov-alloc-toggle-btn {
  background: transparent;
  border: 0;
  border-radius: 6px;
  padding: 4px 10px;
  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;
}
.liveov-alloc-toggle-btn:hover { color: var(--foreground); }
.liveov-alloc-toggle-btn.is-active {
  color: var(--foreground);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}

/* "live" pill next to the Total Positions label. Same green pulse as
   the AUM-chart dot so the language stays consistent — wherever the
   user sees that pulse, the data underneath is moving in real time. */
.kpi-live-tag {
  display: inline-flex; align-items: center; gap: 5px;
  margin-left: 8px;
  font-size: 9px;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--status-live);
  font-weight: 600;
  vertical-align: 1px;
}
.kpi-live-tag-dot {
  position: relative;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--status-live);
  box-shadow: 0 0 6px var(--status-live);
  flex: none;
}
.kpi-live-tag-dot::after {
  content: '';
  position: absolute; inset: 0; border-radius: inherit;
  background: var(--status-live);
  animation: kpi-live-pulse 2.4s cubic-bezier(.32, 0, .2, 1) infinite;
  z-index: -1;
}
@keyframes kpi-live-pulse {
  0%   { transform: scale(1);   opacity: .55; }
  80%  { transform: scale(3.2); opacity: 0; }
  100% { transform: scale(3.2); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .kpi-live-tag-dot::after,
  .mp-live-dot-pulse { animation: none; opacity: 0; }
}

/* (Removed) `.liveov-bento-right-*` rules that scoped the old single
   right bento. The right column now holds the `.liveov-bento-chart` +
   `.liveov-bento-nav` cards — see the rules near `.liveov-right-col`
   above. */

/* Header strip — title on the left, Net/Gross segmented toggle on the
   right. The toggle picks the data source for the table cells: 'net'
   shows the worst-LP net return (default), 'gross' shows fund-level
   gross return from the investor-returns fund_summary. */
.liveov-mp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.liveov-mp-head .kpi-label { margin-bottom: 0; }

.liveov-mp-toggle {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-tinted, transparent);
  flex: none;
}
.liveov-mp-toggle-btn {
  background: transparent;
  border: 0;
  border-radius: 6px;
  padding: 4px 10px;
  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;
}
.liveov-mp-toggle-btn:hover { color: var(--foreground); }
.liveov-mp-toggle-btn.is-active {
  color: var(--foreground);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}

/* Wrapper kept (was overflow-x:auto), now visible — fluid sizing below
   keeps the table inside its bento at every desktop / tablet width, and
   the @container stacked layout takes over when 13 numeric cells can't
   fit side-by-side at a legible mono size. */
.monthly-perf-scroll { overflow-x: visible; }
.monthly-perf-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  /* Font + cell metrics scale with bento width via cqi (1cqi = 1% of
     the perf-bento container's inline size). Tuned so the natural
     content width ("+12.34%" × 13 cells + year col) stays inside the
     bento across the whole fluid range; clamp pins comfortable extremes
     at both ends. The live dot is positioned absolutely (see
     .mp-live-dot) so it never adds to a cell's content width — an
     inline dot used to shove the live value past its fixed column. */
  font-size: clamp(9.5px, 1.4cqi, 11.5px);
}
.monthly-perf-table th,
.monthly-perf-table td {
  padding: clamp(5px, 0.9cqi, 8px) clamp(2.5px, 0.55cqi, 8px);
  text-align: right;
  white-space: nowrap;
}
/* Positioning context for the absolute live dot. */
.monthly-perf-table .mp-cell { position: relative; }
.monthly-perf-table thead th {
  font-weight: 500;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: clamp(.04em, 0.13cqi, .1em);
  font-size: clamp(8px, 1.2cqi, 9.5px);
  border-bottom: 1px solid var(--border);
  padding-bottom: clamp(5px, 0.8cqi, 7px);
}
.monthly-perf-table tbody tr + tr td,
.monthly-perf-table tbody tr + tr th {
  border-top: 1px dashed var(--border);
}
.monthly-perf-table .mp-year-col {
  text-align: left;
  font-weight: 600;
  color: var(--foreground);
  padding-left: clamp(1px, 0.4cqi, 4px);
  width: clamp(30px, 5cqi, 56px);
}
.monthly-perf-table thead .mp-year-col { text-transform: none; }
/* YTD column carries two values (return + annualized APY) so it gets
   its own width budget — wide enough to seat "+13.98% APY" with a
   right margin instead of jamming it against the bento edge. */
.monthly-perf-table .mp-ytd-col {
  font-weight: 600;
  border-left: 1px solid var(--border);
  padding-left: clamp(6px, 1.1cqi, 12px);
  padding-right: clamp(6px, 1.3cqi, 14px);
  width: clamp(66px, 10cqi, 104px);
}

/* Stacked layout for narrow bentos. Below 680px container width the
   13-column table can't seat "+12.34%" in every cell at a legible mono
   size, so each year row becomes a card: the year as a header, the
   months as a grid of padded tiles (muted label over the return), and
   YTD as a full-width footer. thead is hidden — month labels move onto
   the tiles via data-month → ::before. The tile grid is a fixed-count
   `repeat(N, 1fr)` (stepped down by the sub-breakpoints below) rather
   than auto-fill: a fixed count keeps every tile in a year the same
   width, and lets the year header / YTD span the row with a reliable
   `grid-column: 1 / -1`. */
@container perf-bento (max-width: 680px) {
  .monthly-perf-table { display: block; font-size: 12px; }
  .monthly-perf-table thead { display: none; }
  .monthly-perf-table tbody { display: block; }
  .monthly-perf-table tbody tr {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    padding: 15px 0 14px;
    border-top: 0;
  }
  .monthly-perf-table tbody tr + tr { border-top: 1px solid var(--border); }
  /* Loading / no-data placeholder row is one td with colspan=14 — keep
     it as a single block instead of forcing it into the tile grid. */
  .monthly-perf-table tbody tr:has(> .mp-empty) { display: block; }

  /* Year header — full-width line above the tile grid. */
  .monthly-perf-table .mp-year-col {
    grid-column: 1 / -1;
    width: auto;
    padding: 0 0 10px 3px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--foreground);
    border: 0;
  }

  /* Each month is a self-contained tile: muted label on top, the return
     below. A faint surface fill + radius turns the grid into a set of
     deliberate chips, so the live tile's green fill reads as one chip in
     a set rather than a stray highlight rectangle. */
  .monthly-perf-table .mp-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 9px 11px;
    border: 0;
    border-radius: 9px;
    background: var(--surface-elevated);
    text-align: left;
    min-width: 0;
  }
  .monthly-perf-table .mp-cell::before {
    content: attr(data-month);
    color: var(--muted-foreground);
    text-transform: uppercase;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .1em;
  }
  .monthly-perf-table .mp-cell .mp-val {
    font-size: 13.5px;
    line-height: 1;
    white-space: nowrap;
  }
  /* Empty-YTD placeholder keeps no tile chrome — just a muted dash.
     (Hidden months are dropped from the grid; see .mp-cell-hidden.) */
  .monthly-perf-table .mp-cell-empty {
    background: none;
    color: var(--muted-foreground);
    opacity: .6;
  }
  .monthly-perf-table .mp-cell-empty::after { content: '—'; }

  /* Live tile — green fill + hairline ring, consistent with the chip
     set. The pulsing dot sits in the tile's top-right corner (absolute,
     see .mp-live-dot) so it never reflows the label or value. */
  .monthly-perf-table .mp-cell.mp-cell-live:not(.mp-ytd-col) {
    background: color-mix(in srgb, var(--status-live) 13%, var(--surface-elevated));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--status-live) 30%, transparent);
  }

  /* YTD — full-width footer row under the tiles. A dashed rule sets it
     apart as the year's subtotal: label left, return next, annualized
     APY pushed to the right edge. Resets the tile chrome the .mp-cell
     base applied (column flex, radius, fill) so it reads as a row. */
  .monthly-perf-table .mp-ytd-col {
    grid-column: 1 / -1;
    width: auto;
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
    margin-top: 10px;
    padding: 14px 3px 0;
    border: 0;
    border-top: 1px dashed var(--border);
    border-radius: 0;
    background: none;
    box-shadow: none;
    font-size: 12px;
  }
  .monthly-perf-table .mp-ytd-col::before {
    content: 'YTD';
    color: var(--muted-foreground);
    text-transform: uppercase;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .1em;
  }
}
/* Tile-grid column count steps down with the container so tiles hold a
   consistent ~95–125px across the stacked range. Fixed counts (not
   auto-fill) keep every tile in a year identically sized. */
@container perf-bento (max-width: 600px) {
  .monthly-perf-table tbody tr { grid-template-columns: repeat(5, 1fr); }
}
@container perf-bento (max-width: 500px) {
  .monthly-perf-table tbody tr { grid-template-columns: repeat(4, 1fr); }
}
@container perf-bento (max-width: 400px) {
  .monthly-perf-table tbody tr { grid-template-columns: repeat(3, 1fr); }
}

.mp-cell { color: var(--foreground); }
.mp-cell.mp-cell-empty { color: var(--muted-foreground); }
.mp-cell.is-positive    { color: var(--profit, var(--pos, #16a34a)); }
.mp-cell.is-negative    { color: var(--loss,   var(--neg, #dc2626)); }

/* Hidden month cells (used by the Overview) — months that don't yet
   have data (pre-inception, future) collapse out of view while keeping
   the desktop column grid aligned to the header. On the narrow @container
   stacked layout the tile grid drops them entirely so there's no gap
   between visible months. Border is suppressed so the dashed row
   separator doesn't render an orphan segment across hidden cells. */
.mp-cell.mp-cell-hidden {
  visibility: hidden;
  border: 0 !important;
  background: transparent !important;
}
@container perf-bento (max-width: 680px) {
  .monthly-perf-table .mp-cell.mp-cell-hidden { display: none; }
}

/* YTD cell composes (1) the YTD return and (2) an annualized APY sub-
   value. Desktop stacks them vertically inside the narrow YTD column. */
.mp-ytd-col .mp-ytd-val { display: block; line-height: 1.2; }
.mp-ytd-col .mp-ytd-apy {
  display: block;
  font-size: 0.76em;
  font-weight: 500;
  color: var(--muted-foreground);
  letter-spacing: 0;
  line-height: 1.1;
  margin-top: 2px;
  white-space: nowrap;
}
.mp-ytd-col .mp-ytd-apy.is-positive { color: color-mix(in srgb, var(--profit, var(--pos, #16a34a)) 72%, var(--muted-foreground)); }
.mp-ytd-col .mp-ytd-apy.is-negative { color: color-mix(in srgb, var(--loss,   var(--neg, #dc2626)) 72%, var(--muted-foreground)); }
/* Stacked footer — return and APY sit inline on the flex row; the APY
   is pushed to the right edge so the row reads return-left / APY-right,
   framing the year's headline number against its annualized figure. */
@container perf-bento (max-width: 680px) {
  .monthly-perf-table .mp-ytd-col .mp-ytd-val {
    display: inline;
    font-size: 14.5px;
    line-height: 1;
  }
  .monthly-perf-table .mp-ytd-col .mp-ytd-apy {
    display: inline;
    margin: 0 0 0 auto;
    font-size: 11.5px;
  }
}

/* Live cell — the in-progress month. The pulsing dot is positioned
   absolutely so it contributes zero content width: in the fixed-layout
   desktop table an inline dot used to shove the live value past its
   column edge. Desktop: a subtle full-cell tint marks the column and
   the dot sits in the empty left gutter, clear of the right-aligned
   value. The dot lives inside .mp-val / .mp-ytd-val in the markup, so
   .mp-cell (its positioned ancestor) is the reference box. */
.mp-cell-live {
  background: color-mix(in srgb, var(--status-live) 8%, transparent);
}
.mp-live-dot {
  position: absolute;
  left: clamp(2px, 0.5cqi, 5px);
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--status-live);
  box-shadow: 0 0 4px var(--status-live);
}
.mp-live-dot-pulse {
  position: absolute; inset: 0; border-radius: inherit;
  background: var(--status-live);
  animation: kpi-live-pulse 2.4s cubic-bezier(.32, 0, .2, 1) infinite;
  z-index: -1;
}
/* Stacked layout — the dot moves to the live tile's top-right corner
   (the label/value stack bottom-left, so the corner is clear). The YTD
   footer row has room for an inline dot, so it keeps one before the
   return value where it reads as a prefix. */
@container perf-bento (max-width: 680px) {
  .monthly-perf-table .mp-cell:not(.mp-ytd-col) .mp-live-dot {
    left: auto; right: 8px; top: 8px; transform: none;
  }
  .monthly-perf-table .mp-ytd-col .mp-live-dot {
    position: static;
    transform: none;
    display: inline-block;
    margin-right: 7px;
    vertical-align: 2px;
  }
}

/* The live-cell pulse dot doubles as a `.hint` trigger so hovering it
   reveals the styled popover. It carries `.hint` for the popover JS +
   reveal machinery, but the `.mp-live-dot` visual (the 5px green pulse)
   must survive — `.mp-live-dot` already wins width/height/background in
   the cascade (this file loads after hint.css); only the `.hint` border
   and its surface-tinted hover/focus fill need an explicit reset. */
.monthly-perf-table .mp-live-dot.hint {
  border: 0;
  background: var(--status-live);
}
.monthly-perf-table .mp-live-dot.hint:hover,
.monthly-perf-table .mp-live-dot.hint:focus-visible,
.monthly-perf-table .mp-live-dot.hint.is-open {
  border: 0;
  background: var(--status-live);
}

.mp-empty {
  text-align: left !important;
  padding: 14px 4px !important;
}

/* ── Card chrome ────────────────────────────────────────────────────── */
/* The .aum-card class is still used by the chart bento; the chart's
   header (title + Positions-source toggle) lands in `.aum-card-head`. */
.aum-card { display: flex; flex-direction: column; gap: 12px; }
.aum-card-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.aum-card-title h3 {
  margin: 0; padding: 0;
  font-size: 14px; font-weight: 600; letter-spacing: -.01em;
  color: var(--foreground);
}
.aum-card-title p { margin: 4px 0 0; max-width: 64ch; }

/* ── KPI strip (Current AUM + deltas) ───────────────────────────────── */
.aum-kpis {
  display: flex; align-items: stretch; gap: 28px;
  margin-left: auto;
}
.aum-kpi {
  display: flex; flex-direction: column; gap: 2px;
  align-items: flex-end;
  min-width: 0;
}
.aum-kpi-label {
  font-size: 10px; color: var(--muted-foreground);
  text-transform: uppercase; letter-spacing: .12em; font-weight: 500;
}
.aum-kpi-value {
  font-family: var(--font-mono);
  font-size: 22px; font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--foreground);
  letter-spacing: -.01em;
  line-height: 1.1;
}
.aum-kpi-value.is-positive { color: var(--profit, var(--pos, #16a34a)); }
.aum-kpi-value.is-negative { color: var(--loss, var(--neg, #dc2626)); }
.aum-kpi-sub {
  font-size: 11px; color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* Primary "Current AUM" tile is the visual anchor — bigger value font. */
.aum-kpi-primary .aum-kpi-value { font-size: 28px; }

/* ── Inline legend chips ────────────────────────────────────────────── */
/* Replaces Chart.js's built-in legend so we can render mini swatches that
   actually communicate shape (diamond for BS, triangle for PR) and a
   pulsing dot for "Live now" — Chart.js's legend can't do either. */
.aum-legend {
  display: flex; flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  font-size: 11px; color: var(--muted-foreground);
  font-family: var(--font-mono);
  letter-spacing: .04em;
}
.aum-legend-chip {
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.aum-legend-swatch {
  display: inline-block; width: 14px; height: 2px;
  background: var(--foreground); flex: none;
}
.aum-legend-swatch.is-aum {
  background: var(--foreground); height: 2px;
}
/* NAV-line legend swatch — same 2px stroke as the AUM swatch but tinted
   the chart's accent (profit) colour so the chip reads as "this is the
   green NAV line." */
.aum-legend-swatch.is-nav {
  background: var(--profit, var(--pos, #16a34a));
  height: 2px;
}
/* NAV-side snapshot dot — same circle as AUM's .is-snapshot but tinted
   the NAV accent so it reads on the green line. */
.aum-legend-swatch.is-snapshot.is-snapshot-nav {
  background: var(--profit, var(--pos, #16a34a));
}
.aum-legend-swatch.is-ribbon-pos {
  width: 14px; height: 8px;
  background: color-mix(in srgb, var(--profit, var(--pos, #16a34a)) 24%, transparent);
  border: 1px solid color-mix(in srgb, var(--profit, var(--pos, #16a34a)) 60%, transparent);
  border-radius: 2px;
}
.aum-legend-swatch.is-ribbon-neg {
  width: 14px; height: 8px;
  background: color-mix(in srgb, var(--loss, var(--neg, #dc2626)) 24%, transparent);
  border: 1px solid color-mix(in srgb, var(--loss, var(--neg, #dc2626)) 60%, transparent);
  border-radius: 2px;
}
.aum-legend-swatch.is-bs {
  width: 9px; height: 9px;
  background: var(--foreground);
  transform: rotate(45deg);
  border-radius: 1px;
}
.aum-legend-swatch.is-pr {
  width: 0; height: 0;
  background: transparent;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 9px solid var(--muted-foreground);
}
/* Captured fund_aum_snapshots day marker — small filled dot at radius-2
   on the AUM line. Picks up the line colour (--foreground) so the chip
   reads as "this day is a recorded portfolio snapshot." */
.aum-legend-swatch.is-snapshot {
  width: 6px; height: 6px;
  background: var(--foreground);
  border-radius: 50%;
}
/* Composition bands — translucent fills matching the chart datasets so
   the legend chip and the rendered band read as the same colour. Token
   names mirror the dataset borderColor sources in renderAumChart. */
.aum-legend-swatch.is-band-positions {
  width: 14px; height: 8px;
  background: color-mix(in srgb, var(--chart-1, #3b82f6) 40%, transparent);
  border: 1px solid color-mix(in srgb, var(--chart-1, #3b82f6) 70%, transparent);
  border-radius: 2px;
}
.aum-legend-swatch.is-band-other {
  width: 14px; height: 8px;
  background: color-mix(in srgb, var(--chart-3, #f59e0b) 40%, transparent);
  border: 1px solid color-mix(in srgb, var(--chart-3, #f59e0b) 70%, transparent);
  border-radius: 2px;
}
.aum-legend-swatch.is-band-liabilities {
  width: 14px; height: 8px;
  background: color-mix(in srgb, var(--loss, var(--neg, #dc2626)) 32%, transparent);
  border: 1px solid color-mix(in srgb, var(--loss, var(--neg, #dc2626)) 65%, transparent);
  border-radius: 2px;
}

/* ── Positions-source toggle (Reconciled / Live backfill) ──────────── */
/* Sits between the card head and the legend. Mirrors the Net/Gross
   pill toggle on the Monthly Performance bento so the visual language
   stays consistent across the page. */
.aum-controls {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 12px;
}
.aum-control-row {
  display: inline-flex; align-items: center; gap: 8px;
}
.aum-control-label {
  font-size: 9.5px; color: var(--muted-foreground);
  text-transform: uppercase; letter-spacing: .12em; font-weight: 500;
}
.liveov-aum-toggle {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-tinted, transparent);
  flex: none;
}
.liveov-aum-toggle-btn {
  background: transparent;
  border: 0;
  border-radius: 6px;
  padding: 4px 10px;
  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;
}
.liveov-aum-toggle-btn:hover { color: var(--foreground); }
.liveov-aum-toggle-btn.is-active {
  color: var(--foreground);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}

/* ── Positions breakdown date tabs ────────────────────────────────────
   Tab strip above the breakdown table. "Live" plus one button per past
   month-end snapshot starting at the first capital-call month. Horizontal
   scroll once the list outgrows the card width (e.g. multi-year funds). */
.liveov-pb-tabs,
.liveov-ab-tabs {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 2px;
  padding: 4px;
  margin: 6px 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-tinted, transparent);
}
/* .report-cover-tab — the Report tab Newsletter card's cover-date strip
   shares this exact look (its container reuses .liveov-pb-tabs); it keeps
   its own button class so the two strips' click delegates can't cross.
   .liveov-ab-tab (What moved AUM: Today | MTD | Sep 26 ...) is the same
   look again, with its own container + button classes for the same
   reason: the breakdown strip's delegate keys on [data-pb-date], the
   bridge's on [data-ab-tab], and neither may catch the other's clicks. */
.liveov-pb-tab,
.report-cover-tab,
.liveov-ab-tab {
  background: transparent;
  border: 0;
  border-radius: 6px;
  padding: 5px 11px;
  font-size: 10px;
  font-weight: 500;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: .12em;
  cursor: pointer;
  white-space: nowrap;
  flex: none;
  transition: background .12s ease, color .12s ease;
}
.liveov-pb-tab:hover,
.report-cover-tab:hover,
.liveov-ab-tab:hover { color: var(--foreground); }
.liveov-pb-tab.is-active,
.report-cover-tab.is-active,
.liveov-ab-tab.is-active {
  color: var(--foreground);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
/* "Live now" mini dot reuses the same pulse animation as the hero
   live dot (defined further down) so the legend shows the user
   exactly what they're looking for at the chart edge. */
.aum-legend-live { display: inline-flex; align-items: center; gap: 6px; }
.aum-legend-live .aum-live-dot-mini {
  position: relative; display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--status-live);
  box-shadow: 0 0 6px var(--status-live);
}
.aum-legend-live .aum-live-dot-mini::after {
  content: '';
  position: absolute; inset: 0; border-radius: inherit;
  background: var(--status-live);
  animation: aum-live-pulse 2.4s cubic-bezier(.32, 0, .2, 1) infinite;
  z-index: -1;
}

/* ── Stage layout (hero only) ───────────────────────────────────────── */
.aum-stage {
  position: relative;
  display: flex; flex-direction: column;
}
.aum-hero {
  position: relative;
  height: 320px;
}
/* The two chart cards sit below the Monthly Performance bento in the
   right column. While the landing is two columns their floors stay
   compact (220px) so the column's minimum — perf bento with both class
   tables + two charts — lands at about the left bento's natural height;
   any surplus the left bento has still flows into the charts (flex-grow
   above). Same threshold as the grid's two-column cutoff. */
@container liveov-landing (width > 1396px) {
  .liveov-bento-chart .aum-hero,
  .liveov-bento-nav .aum-hero { height: 220px; }
}
/* Back to the full 320px once the landing collapses to one column and
   the chart bento spans the full width below the left bento. */
@container liveov-landing (max-width: 1396px) {
  .liveov-bento-chart .aum-hero { height: 320px; }
  /* Collapsed to one column — the right column now stacks below the
     left bento with no taller sibling to match, so there is no surplus
     to absorb. Drop the flex-grow stretch back to the default so each
     bento and its chart size to content, exactly as a fixed-height
     card would. */
  .liveov-right-col > .liveov-bento,
  .liveov-right-col .aum-stage,
  .liveov-right-col .aum-hero { flex: 0 1 auto; }
}
/* Funding-per-token bento — third in the right column, same compact
   sizing as the chart bento above it so the column stays balanced and
   no scroll is needed at 1100px+. */
.liveov-bento-funding {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 18px;
}
.liveov-bento-funding .aum-hero { height: 240px; }
@media (max-width: 1100px) {
  .liveov-bento-funding .aum-hero { height: 320px; }
}

/* ── Venue equity + What moved AUM row ────────────────────────────────
   Below the Positions breakdown table: the Total-equity-by-venue bento
   (left) and the What-moved-AUM bridge (right) share one row 50/50
   (Oct-2026). Same auto-fit + minmax(min(690px, 100%), 1fr) recipe as
   `.liveov-landing`, so the row splits and collapses at exactly the width
   the landing grid above does (two 690px tracks + the 16px gap = 1396px):
   the two rows of bentos change shape together instead of one stacking
   while the other is still side by side. auto-fit also means a lone
   visible child spans the whole row: the bridge section is `hidden` for
   a viewer who 403s on its endpoint, and the equity bento then reads
   full width exactly as it did before the row existed. */
/* Equity by venue takes the left third, What moved AUM the right two thirds
   (user, 2026-10-12: the bridge table needs the width, the venue tiles do
   not). Stacks to one column on narrow screens, and a lone card (the bridge
   hidden for a login without live_positions) spans the whole row. */
.liveov-venue-bridge-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 16px;
  /* The bottom spacing the standalone equity card used to carry as its
     own `.card` margin. The children's margins are zeroed below so the
     grid gap alone owns the spacing between them. */
  margin-bottom: 24px;
  /* Both cards stretch to the taller one's height so the row reads as one
     band; each card's content stays top-aligned inside it. */
  align-items: stretch;
}
.liveov-venue-bridge-row > .card {
  margin-bottom: 0;
  /* Grid items default to min-width: auto, which lets a long unbroken
     ticker / why string push a 1fr track wider than its share of the row. */
  min-width: 0;
}
.liveov-venue-bridge-row:has(> .liveov-bento-aum-bridge[hidden]) {
  grid-template-columns: minmax(0, 1fr);
}
@media (max-width: 1100px) {
  .liveov-venue-bridge-row { grid-template-columns: minmax(0, 1fr); }
}

/* Total-equity-by-venue bento: the left half of the venue / bridge row
   below the Positions breakdown table (full width when it is alone in
   the row). No chart, just a compact infographic grid of venue tiles
   that auto-fits as many tracks as its half of the page allows. A plain
   `.card` (not a `.liveov-bento`); its margin is owned by the row. */
.liveov-bento-cex-equity {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 18px;
}
.liveov-cex-eq-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.liveov-cex-eq-total {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  min-width: 0;
}
.liveov-cex-eq-total-label {
  font-size: 9.5px;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 500;
}
.liveov-cex-eq-total-value {
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--foreground);
  line-height: 1.1;
}
/* "incl. X BTC class (~$Y)" under the grand total — present only for a
   fund with a BTC share class. The headline AUM is net of that carve-out
   while this total is gross of it (the BTC sits inside the CEX tiles). */
.liveov-cex-eq-total-note {
  font-size: 10px;
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  white-space: nowrap;
  cursor: help;
}

/* Section wrapper — each group (OTC & DeFi, CEXs) gets a header strip
   with title + subtotal above its tile grid. Sections collapse via
   `hidden` when empty so the bento doesn't show a header for a
   section that has nothing in it (e.g. a fund with no DeFi wallets). */
.liveov-cex-eq-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.liveov-cex-eq-section + .liveov-cex-eq-section {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}
.liveov-cex-eq-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.liveov-cex-eq-section-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.liveov-cex-eq-section-subtotal {
  font-size: 11.5px;
  font-weight: 600;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--foreground);
}

/* Tile grid: auto-fit tracks so the layout absorbs whatever width the
   bento gets. At half of the venue / bridge row (never under ~650px of
   content once the row's 1396px collapse is honoured) the 140px floor
   still fits four tiles a row, and a "$1,234,567" 16px mono value plus
   the tile padding is ~120px, so nothing ellipsises; full width (row
   collapsed, or the bridge hidden) spreads to 6-8 tracks, a phone to 1-2. */
.liveov-cex-eq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}
/* Per-venue tile. Brand color comes in via `--cex-color` (inline on the
   wrapper at render time). ::before paints a 3px top stripe; the
   gradient background paints a fading ~10% tint of the same color into
   the surface so the card visually "belongs" to its venue without
   shouting. Mirrors `.tdd-cex-venue` from the Token DD coverage grid. */
.liveov-cex-eq-tile {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--cex-color, transparent) 10%, transparent) 0, transparent 65%),
    var(--surface-elevated, var(--bg-elev));
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  overflow: hidden;
}
.liveov-cex-eq-tile::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--cex-color, var(--border));
}
.liveov-cex-eq-tile-head {
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  margin-top: 1px;
  min-width: 0;
}
/* Override the default 24×24 cexBadge logo wrapper down to 16×16 so the
   tile header stays compact — the headline figure is the dominant
   element, not the logo. Suppress the brand name (cexBadge's
   `.tdd-cex-name`) because the operator's credential label below
   already identifies the venue, and printing both makes the head row
   wrap on narrow tiles. */
.liveov-cex-eq-tile-head .tdd-cex-logo-wrap {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}
.liveov-cex-eq-tile-head .tdd-cex-badge {
  gap: 0;
}
.liveov-cex-eq-tile-head .tdd-cex-name { display: none; }
/* OTC + DeFi tiles use a lucide pillar glyph inside a rounded chip
   tinted with the pillar color, mirroring the same icon language the
   strategy bentos use (handshake for OTC, blocks for DeFi). The chip
   sits at the same 16×16 footprint as the cexBadge logo above so all
   three tile types share an identical icon footprint. */
.liveov-cex-eq-tile-head .liveov-cex-eq-tile-lucide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  flex: 0 0 16px;
  background: color-mix(in srgb, var(--cex-color, var(--foreground)) 18%, transparent);
  color: var(--cex-color, var(--foreground));
}
.liveov-cex-eq-tile-head .liveov-cex-eq-tile-lucide svg {
  width: 12px;
  height: 12px;
  display: block;
}
/* Operator's credential label (e.g. "Binance main" / "subacc"). The
   primary disambiguator on the tile — sits next to the logo so the
   "logo + name" pair reads as one unit. */
.liveov-cex-eq-tile-label {
  font-size: 11px;
  color: var(--foreground);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
  margin-left: 7px;
}
.liveov-cex-eq-tile-head .liveov-cex-eq-tile-label {
  display: inline;
}
.liveov-cex-eq-tile-value {
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--foreground);
  line-height: 1.15;
}
.liveov-cex-eq-tile-share {
  font-size: 10px;
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

/* ── What moved AUM bento (.liveov-bento-aum-bridge) ──────────────────
   Right half of the venue / bridge row. A vertical waterfall in one
   fixed-layout table: Opening AUM, then Gross split into collapsible
   groups (--group header rows; members: token rows + Others (small
   tokens) under Token P&L, --line / --break rows with a --drill
   drill-down under the other groups), the Gross P&L (--subtotal) and
   "Gross excl. prior-month roll" (--subtotal2) rows, the below-the-line
   rows (capital flows, BTC profit share, mgmt / perf fee, EOM book vs
   administrator package) and the closing AUM, then the closure line
   (.liveov-ab-check). The markup comes
   from renderAumBridgeHtml() in pages/live-overview/aum-bridge.js, so
   every .liveov-ab-* / .ab-* class below is that module's UI contract:
   rename one here and the module's output goes unstyled. Each row is four
   cells: the token cell (span.ab-token = icon + ticker, or the line's
   label, then the .ab-chips), the why, td.ab-usd and td.ab-bar.
   NEVER give a `display` to anything that may be a <td> (.ab-token,
   .ab-why, .ab-bar): a table cell turned inline-block / flex drops out of
   the column model and every cell after it slides out of its column. The
   span-only rules below are guarded with :not(td) for that reason.
   Card chrome mirrors the equity bento beside it (same padding + gap) so
   the two halves read as one row. Colours are tokens.css tokens only. */
.liveov-bento-aum-bridge {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 18px;
  /* Query container: the column widths step with the bento's OWN width
     (half the row, the full row once it collapses, or a phone), not the
     viewport's. See the two @container blocks at the end of this
     section. */
  container: liveov-ab / inline-size;
}
.liveov-ab-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
/* Tab strip (Today | MTD | Sep 26 ...) shares .liveov-pb-tabs' look via
   the selector lists up in the "Positions breakdown date tabs" block.
   Inside this flex column the card's gap already spaces it, so the
   strip's own vertical margin goes; and it stays out of the layout until
   the module has painted its first tabs, so a cold load doesn't show an
   empty bordered bar above "Loading...". */
.liveov-ab-tabs { margin: 0; }
.liveov-ab-tabs:empty { display: none; }
.liveov-ab-body { min-width: 0; }
/* Round 4 (Oct-12 2026): "By token | By type" in the header's right end.
   The same segmented look as the tab strip, one size smaller, so it reads
   as a view switch on the card and not as another period. */
.liveov-ab-views {
  display: inline-flex;
  flex: none;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-tinted, transparent);
}
.liveov-ab-views:empty { display: none; }
.liveov-ab-view {
  background: transparent;
  border: 0;
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--muted-foreground);
  cursor: pointer;
  white-space: nowrap;
  transition: background .12s ease, color .12s ease;
}
.liveov-ab-view:hover { color: var(--foreground); }
.liveov-ab-view.is-active {
  color: var(--foreground);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.liveov-ab-view:focus-visible { outline: 1px solid var(--ring); outline-offset: -1px; }
/* At-a-glance strip under the title (both views): the biggest P&L types
   as chips with their signed amounts, wrapping onto a second line on a
   narrow card rather than scrolling. */
.liveov-ab-glance {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  min-width: 0;
  font-size: 11.5px;
  line-height: 18px;
  font-variant-numeric: tabular-nums;
}
.liveov-ab-glance:empty { display: none; }
.liveov-ab-glance .ab-glance-items {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
  min-width: 0;
}
.liveov-ab-glance .ab-glance-item { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.liveov-ab-glance .ab-glance-sep { color: var(--muted-foreground); padding: 0 4px; }
.liveov-ab-glance .ab-glance-usd { font-weight: 600; }
.liveov-ab-glance .ab-glance-usd.is-pos { color: var(--profit); }
.liveov-ab-glance .ab-glance-usd.is-neg { color: var(--loss); }
/* A type's "n smaller" fold reads muted, like Others in the token view. */
.liveov-ab-row--typeitem.is-folded > td { color: var(--muted-foreground); }

/* The waterfall table. Repo rule for sibling columns: table-layout fixed
   + explicit widths, so expanding a token's detail line or a stream tick
   repainting a longer why string never re-flows the neighbouring
   columns. `separate` with zero spacing (not `collapse`) because each row
   draws the line ABOVE itself as a border-top: under the collapse model
   the upper cell's border wins a same-width conflict, so the Gross P&L /
   closing rows could never paint their stronger rule over the muted line
   of whatever row sits above them. */
.liveov-ab-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
/* Column widths at half of the row (bento ~520-900px wide). USD and bar
   are fixed px (a "-$1,234,567" in 13px mono on the closing row is ~90px
   + padding); the why is 40% of the table; the token column (icon +
   ticker + class chips, or a label such as "Opening AUM · Sep-30") takes
   what is left, ~210px at half width, and its chips wrap under the ticker
   when two of them don't fit beside it. */
.liveov-ab-table col.ab-col-token { width: auto; }
.liveov-ab-table col.ab-col-why   { width: 40%; }
.liveov-ab-table col.ab-col-usd   { width: 104px; }
.liveov-ab-table col.ab-col-bar   { width: 76px; }
.liveov-ab-table td {
  padding: 5px 6px;
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
  vertical-align: middle;
  text-align: left;
  font-weight: 400;
  color: var(--foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.liveov-ab-table td:first-child { padding-left: 2px; }
.liveov-ab-table td:last-child { padding-right: 2px; }
/* First line of the waterfall has nothing above it to separate. */
.liveov-ab-table tbody tr:first-child > td { border-top: 0; }

/* ── Row modifiers: one per waterfall line kind ── */
/* Opening and closing are the two levels the bridge spans: flush left,
   bold. Contributors (token rows, Others) and the below-the-line
   adjustments step in 10px under them, the way the desk sketches it
   ("Opening AUM / ERA +98k / S +36k / ... / = Gross P&L / fees / AUM"). */
.liveov-ab-row--opening > td,
.liveov-ab-row--closing > td {
  font-weight: 600;
}
.liveov-ab-row--below > td:first-child { padding-left: 12px; }
/* Round 2 (Oct-2026, plan 3C): Gross is split into collapsible GROUPS
   (Prior-month roll, Token P&L, Cash yield and financing, Cash marks and
   costs, Fund expenses, Data breaks). A group header sits flush left with
   a caret; its members (token rows, Others, line and break rows) step in
   to 20px, so the hierarchy reads Opening / group / member / Gross. */
.liveov-ab-row--token > td:first-child,
.liveov-ab-row--others > td:first-child,
.liveov-ab-row--line > td:first-child,
.liveov-ab-row--break > td:first-child { padding-left: 20px; }
/* Token rows toggle their detail line, group headers their members and
   drillable line rows their drill-down, on click / Enter (delegated
   handler in aum-bridge.js keyed on [data-ab-base] / [data-ab-group] /
   [data-ab-line]). */
.liveov-ab-row--token,
.liveov-ab-row--group,
.liveov-ab-row--line.is-drill,
.liveov-ab-row--break.is-drill { cursor: pointer; }
.liveov-ab-row--token:hover > td,
.liveov-ab-row--token:focus-visible > td,
.liveov-ab-row--group:hover > td,
.liveov-ab-row--group:focus-visible > td,
.liveov-ab-row--line.is-drill:hover > td,
.liveov-ab-row--line.is-drill:focus-visible > td,
.liveov-ab-row--break.is-drill:hover > td,
.liveov-ab-row--break.is-drill:focus-visible > td { background: var(--hover-tint); }
.liveov-ab-row--token:focus-visible,
.liveov-ab-row--group:focus-visible,
.liveov-ab-row--line.is-drill:focus-visible,
.liveov-ab-row--break.is-drill:focus-visible {
  outline: 1px solid var(--ring);
  outline-offset: -1px;
}
.liveov-ab-row--token.is-expanded > td,
.liveov-ab-row--line.is-expanded > td,
.liveov-ab-row--break.is-expanded > td { background: var(--surface-2); }
/* Group header: label + subtotal in a semi-bold face. The caret is a
   CSS-drawn chevron (no glyph, so no font fallback and ASCII-only
   markup) pointing right when closed and down when open. */
.liveov-ab-row--group > td { font-weight: 600; }
/* The header's first cell spans the token + why columns; inside it a
   flex line keeps the label whole and ellipsises the muted note after
   it (a plain inline note would wrap under the label instead). */
.liveov-ab-table .ab-group-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.liveov-ab-table .ab-group-head > .ab-token { flex: none; margin-right: 0; }
.liveov-ab-table .ab-group-head > .ab-group-note {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 400;
}
.liveov-ab-table .ab-caret {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 2px 0 3px;
  border-right: 1.5px solid var(--muted-foreground);
  border-bottom: 1.5px solid var(--muted-foreground);
  transform: rotate(-45deg);
  transition: transform .15s;
  flex-shrink: 0;
}
.liveov-ab-row--group.is-open .ab-caret { transform: rotate(45deg); }
/* Line / break rows (the named lines of the non-token groups): a size
   down from the token rows, the label in plain ink. */
.liveov-ab-row--line > td,
.liveov-ab-row--break > td { font-size: 11.5px; }
.liveov-ab-row--line.is-sum > td:first-child { font-weight: 500; }
/* Round 4 (Oct-2026): reward yield sits UNDER its underlying ("USD1 yield
   (paid in WLFI)" below Stablecoin yield, and below the USD1 item in a
   drill-down), so it steps in one more level. */
.liveov-ab-row--line.is-sub > td:first-child,
.liveov-ab-row--break.is-sub > td:first-child { padding-left: 32px; }
.liveov-ab-table .ab-drill-item.is-sub { padding-left: 12px; }
.liveov-ab-table .ab-drill-src { display: inline-block; }
/* Others (small tokens): real per-token P&L of the tokens below the line
   cut (round 2; v1 also parked what no token explained here). Muted so
   the eye skips it on the way down; its (?) tip lists the tokens. The
   label cell must not clip that glyph's tip in a browser without the
   Popover API (hint.js lifts it to the top layer everywhere else). */
.liveov-ab-row--others > td { color: var(--muted-foreground); }
/* Closure break row (Oct-12 2026): shown only when the groups miss Gross
   P&L by a cent or more; the difference as its own row so the waterfall
   still reaches the closing without spreading it over the lines. Member
   indent like a line row, warn chip, loss-tinted label: a defect to fix,
   not a figure to read past. */
.liveov-ab-row--closure > td { font-size: 11.5px; }
.liveov-ab-row--closure > td:first-child {
  padding-left: 20px;
  color: color-mix(in srgb, var(--loss) 80%, var(--foreground));
}
.liveov-ab-row--others > td:first-child { overflow: visible; }
.liveov-ab-row--others .ab-ticker { font-weight: 500; }
/* Gross P&L subtotal: the identity line (equals the MTD card's Gross on
   the MTD tab). Stronger rule above + a faint band. */
.liveov-ab-row--subtotal > td {
  font-weight: 600;
  border-top-color: var(--border-strong);
  background: var(--surface-tinted);
}
/* "Gross excl. prior-month roll": the second subtotal right under Gross
   (Gross minus group P, what this month itself earned). Same band, a
   size down and muted label so it reads as a footnote to Gross. */
.liveov-ab-row--subtotal2 > td {
  font-size: 11.5px;
  font-weight: 500;
  background: var(--surface-tinted);
  border-top-color: transparent;
}
.liveov-ab-row--subtotal2 > td:first-child { color: var(--muted-foreground); }
/* Below the line: capital flows, BTC profit share, mgmt / perf fee. Read
   as adjustments, not P&L, so they sit a size down in muted ink (the
   signed USD keeps its --profit / --loss colour). */
.liveov-ab-row--below > td {
  font-size: 11.5px;
  color: var(--muted-foreground);
}
.liveov-ab-row--closing > td {
  font-size: 13px;
  padding-top: 7px;
  padding-bottom: 7px;
  border-top-color: var(--border-strong);
}
/* The expanded component line under a token row (Price moves / Discount
   accretion / New OTC deal / Funding / Trading, then end exposure and
   the price move, " · "-separated). Attached to its token row (no rule
   between them, same --surface-2 band), indented to the ticker text (12px
   row indent + 16px icon + 6px gap) and allowed to wrap, but only at the
   separators: each part is nowrap. Collapsed via the `hidden` attribute
   (base.css forces display: none). */
.liveov-ab-table .liveov-ab-row--detail > td {
  border-top: 0;
  background: var(--surface-2);
  color: var(--muted-foreground);
  font-size: 11px;
  line-height: 1.6;
  white-space: normal;
  padding: 0 8px 7px 42px;
}
.liveov-ab-table .ab-comp,
.liveov-ab-table .ab-expo,
.liveov-ab-table .ab-px { white-space: nowrap; }
.liveov-ab-table .ab-comp .ab-chip { margin-left: 4px; vertical-align: 1px; }
.liveov-ab-table .ab-comp-sub { color: var(--muted-foreground); }
/* Drill-down under a line / break row: date, amount, evidence,
   recommended fix, refs (tx hashes, bill ids), then the itemized pieces
   (B3 items, paired payables, unbooked legs). Same attached band as the
   token detail line; key / value pairs on a two-column grid that drops
   to one column on a phone. Refs are selectable mono text (the click
   handler ignores clicks inside .ab-drill so selecting a hash does not
   collapse the row). */
.liveov-ab-table .liveov-ab-row--drill > td {
  border-top: 0;
  background: var(--surface-2);
  color: var(--muted-foreground);
  font-size: 11px;
  line-height: 1.55;
  white-space: normal;
  padding: 0 8px 8px 20px;
}
.liveov-ab-table .ab-drill { display: grid; gap: 2px; cursor: auto; user-select: text; }
.liveov-ab-table .ab-drill-kv {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px;
}
.liveov-ab-table .ab-drill-k { color: var(--muted-foreground); }
.liveov-ab-table .ab-drill-v { color: var(--foreground); overflow-wrap: anywhere; }
.liveov-ab-table .ab-drill-items {
  list-style: none;
  margin: 4px 0 0;
  padding: 4px 0 0;
  border-top: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
  display: grid;
  gap: 1px;
}
.liveov-ab-table .ab-drill-item { overflow-wrap: anywhere; }
.liveov-ab-table .ab-drill-item.is-live .ab-drill-label { font-style: italic; }
.liveov-ab-table .ab-drill-date {
  display: inline-block;
  min-width: 46px;
  font-family: var(--font-mono);
  font-size: 10.5px;
}
.liveov-ab-table .ab-drill-label { color: var(--foreground); }
.liveov-ab-table .ab-drill-note,
.liveov-ab-table .ab-drill-more { color: var(--muted-foreground); }
.liveov-ab-table .ab-ref {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 0 3px;
  border-radius: 3px;
  background: var(--surface-tinted);
  color: var(--muted-foreground);
}
/* Flag text beside a line's label ("no cash leg found", "unreconciled"):
   amber ink, no fill, so it reads as a caveat next to the chips. */
.liveov-ab-table .ab-flag {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .02em;
  white-space: nowrap;
  color: color-mix(in srgb, var(--status-dev) 80%, var(--foreground));
}
.liveov-ab-table .ab-comp-label { color: var(--muted-foreground); }
.liveov-ab-table .ab-comp-usd,
.liveov-ab-table .ab-expo,
.liveov-ab-table .ab-px {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.liveov-ab-table .ab-comp-usd { color: var(--foreground); }
.liveov-ab-table .ab-comp-usd.is-pos { color: var(--profit); }
.liveov-ab-table .ab-comp-usd.is-neg { color: var(--loss); }
.liveov-ab-table .ab-expo,
.liveov-ab-table .ab-px { font-size: 10.5px; }

/* ── Cells ── */
/* Token cell: wraps (a label like "Capital flows (subs/reds)" on a narrow
   bento, or two chips that don't fit beside the ticker) instead of
   clipping; plain rows carry no title= to recover a clipped label from. */
.liveov-ab-table td:first-child { white-space: normal; }
/* span.ab-token: icon + ticker (or the label) as one inline unit, so the
   chips that follow wrap as a block rather than splitting icon from
   ticker. 16px icon instead of the shared .ticker-icon's 1em; the flex gap
   replaces its 5px margin. A missing icon still collapses to nothing via
   .ticker-icon--missing. */
.liveov-ab-table :not(td).ab-token {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  margin-right: 8px;
  vertical-align: middle;
}
.liveov-ab-table .ab-token .ticker-icon {
  width: 16px;
  height: 16px;
  margin-right: 0;
}
.liveov-ab-table td.ab-token .ticker-icon { margin-right: 6px; vertical-align: -3px; }
.liveov-ab-table .ab-ticker {
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
}
.liveov-ab-table .ab-label { min-width: 0; }
.liveov-ab-table .ab-chips {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px;
  max-width: 100%;
  vertical-align: middle;
}
.liveov-ab-table .ab-chips:empty { display: none; }
/* Class chips. The class picks the hue (--ab-chip); the background is
   that hue tinted into the card surface and the text is the hue pulled
   toward the foreground so it stays legible in both themes (--chart-1 is
   a deep blue that would sink into the dark card at full strength). */
.liveov-ab-table .ab-chip,
.liveov-ab-glance .ab-chip {
  --ab-chip: var(--muted-foreground);
  display: inline-flex;
  align-items: center;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 15px;
  white-space: nowrap;
  color: color-mix(in srgb, var(--ab-chip) 72%, var(--foreground));
  background: color-mix(in srgb, var(--ab-chip) 16%, var(--card));
  border: 1px solid color-mix(in srgb, var(--ab-chip) 34%, transparent);
}
.liveov-bento-aum-bridge .ab-chip[data-cls="directional"]        { --ab-chip: var(--chart-1); }
.liveov-bento-aum-bridge .ab-chip[data-cls="hedge_residual"]     { --ab-chip: var(--muted-foreground); }
.liveov-bento-aum-bridge .ab-chip[data-cls="discount_accretion"] { --ab-chip: var(--otc-token); }
.liveov-bento-aum-bridge .ab-chip[data-cls="new_otc_deal"]       { --ab-chip: var(--chart-4); }
.liveov-bento-aum-bridge .ab-chip[data-cls="funding"]            { --ab-chip: var(--chart-2); }
.liveov-bento-aum-bridge .ab-chip[data-cls="trading"]            { --ab-chip: var(--chart-3); }
/* Round 2 chips. "Data break" (B1 / B2 lines, unbooked deals, payments
   with no payable): --chart-4 per plan 3C. "Over limit" on the B3 line
   when it breaks the A3 limits: the amber status token. Any other class
   the engine adds falls back to the muted default above. */
.liveov-bento-aum-bridge .ab-chip[data-cls="data_break"]         { --ab-chip: var(--chart-4); }
.liveov-bento-aum-bridge .ab-chip[data-cls="warn"]               { --ab-chip: var(--status-dev); }
.liveov-bento-aum-bridge .ab-chip[data-cls="rewards"]            { --ab-chip: var(--chart-2); }
.liveov-bento-aum-bridge .ab-chip[data-cls="trading_spot"]       { --ab-chip: var(--chart-3); }
.liveov-bento-aum-bridge .ab-chip[data-cls="vest_release"]       { --ab-chip: var(--otc-token); }
.liveov-bento-aum-bridge .ab-chip[data-cls="unbooked_deal"]      { --ab-chip: var(--chart-4); }
/* Round 4: "Auto: <detector>" on a break a data-driven detector booked
   (it recurs with no registry edit) vs a registry one-off (no chip). */
.liveov-bento-aum-bridge .ab-chip[data-cls="auto"]               { --ab-chip: var(--otc-cyan); }
/* Round 4 (Oct-12 2026), the By type view: the type-only hues. The token
   types reuse their line-chip hue above (Directional is --chart-1 on a
   token row, a type row and the strip alike); the non-token groups get a
   hue each so the strip tells them apart at a glance. Tokens only. */
.liveov-bento-aum-bridge .ab-chip[data-cls="deal_costs"]         { --ab-chip: var(--chart-5); }
.liveov-bento-aum-bridge .ab-chip[data-cls="trading_fees"]       { --ab-chip: var(--chart-3); }
.liveov-bento-aum-bridge .ab-chip[data-cls="borrow_cost"]        { --ab-chip: var(--otc-hedge); }
.liveov-bento-aum-bridge .ab-chip[data-cls="class_flow"]         { --ab-chip: var(--chart-5); }
.liveov-bento-aum-bridge .ab-chip[data-cls="roll"]               { --ab-chip: var(--muted-foreground); }
.liveov-bento-aum-bridge .ab-chip[data-cls="cash_yield"]         { --ab-chip: var(--otc-cyan); }
.liveov-bento-aum-bridge .ab-chip[data-cls="cash_marks"]         { --ab-chip: var(--muted-foreground); }
.liveov-bento-aum-bridge .ab-chip[data-cls="expenses"]           { --ab-chip: var(--otc-hedge); }
/* The type rows' name as a badge (2026-10-12, replaces the colour dot):
   the type's chip hue, a size up from the line chips so it reads as the
   row label; ellipsised when the cell is narrow. */
.liveov-ab-table .ab-chip.ab-type-badge {
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  padding: 0 8px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
}
/* Why: one short plain sentence ("+17.7% (0.0664 to 0.0782) on 7.9M net
   long"); muted, one line, ellipsised by the cell rule above. The full
   text rides in title=. A span variant (inside another cell) needs its
   own box to ellipsise. */
.liveov-ab-table .ab-why {
  color: var(--muted-foreground);
  font-size: 11px;
}
.liveov-ab-table :not(td).ab-why {
  display: inline-block;
  max-width: 100%;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.liveov-ab-table td.ab-usd {
  text-align: right;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.liveov-ab-table td.ab-usd.is-pos { color: var(--profit); }
.liveov-ab-table td.ab-usd.is-neg { color: var(--loss); }
/* Diverging bar: a centre axis with a fill growing right (gain) or left
   (loss) from it. `--w` (0..1, inline on the fill) is the line's |USD|
   over the biggest signed line's, so a full-strength fill spans half the
   cell; the inset keeps it off the cell edge. The axis runs only down the
   signed rows (token lines, Others, the below-the-line rows): the
   opening, subtotal and closing rows are levels / sums with an empty bar
   cell, and a zero line through them would read as a scale they are on.
   (.ab-bar-axis is the same axis as an element, for markup that ships
   one; both land on the same pixels.) */
.liveov-ab-table td.ab-bar {
  --ab-bar-inset: 3px;
  position: relative;
}
.liveov-ab-row--token > td.ab-bar::before,
.liveov-ab-row--others > td.ab-bar::before,
.liveov-ab-row--group > td.ab-bar::before,
.liveov-ab-row--line > td.ab-bar::before,
.liveov-ab-row--break > td.ab-bar::before,
.liveov-ab-row--below > td.ab-bar::before,
.liveov-ab-row--closure > td.ab-bar::before,
.liveov-ab-table .ab-bar-axis {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(50% - 7px);
  width: 1px;
  height: 14px;
  /* --border-strong all but vanishes on the dark card; a half-strength
     muted ink reads as a quiet zero line in both themes. */
  background: color-mix(in srgb, var(--muted-foreground) 45%, transparent);
}
.liveov-ab-table .ab-bar-fill {
  position: absolute;
  top: calc(50% - 4px);
  height: 8px;
  width: calc(var(--w, 0) * (50% - var(--ab-bar-inset)));
  min-width: 1px;
}
.liveov-ab-table .ab-bar-fill.is-pos {
  left: 50%;
  border-radius: 0 2px 2px 0;
  background: var(--profit);
}
.liveov-ab-table .ab-bar-fill.is-neg {
  right: 50%;
  border-radius: 2px 0 0 2px;
  background: var(--loss);
}

/* ── States ── loading / no data, an API error, and the muted footnotes
   under the table (the frame line "Sep-30 close to now", coverage notes
   such as "Opening positions not captured; first step from <date>").
   Scoped under the bento so they outrank the generic .muted / .small the
   module also stamps on them. */
.liveov-bento-aum-bridge .liveov-ab-empty,
.liveov-bento-aum-bridge .liveov-ab-error {
  padding: 18px 4px;
  text-align: center;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted-foreground);
}
.liveov-bento-aum-bridge .liveov-ab-error {
  color: color-mix(in srgb, var(--loss) 80%, var(--muted-foreground));
}
.liveov-bento-aum-bridge .liveov-ab-note {
  margin-top: 6px;
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--muted-foreground);
}
.liveov-bento-aum-bridge .liveov-ab-note + .liveov-ab-note { margin-top: 2px; }
/* Closure line (plan A1) right under the table: the groups add up to
   Gross P&L to the cent, plus the B3 count. Muted when it closes, loss
   ink when it does not (a real engine defect, never hidden). */
.liveov-bento-aum-bridge .liveov-ab-check {
  margin-top: 6px;
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--muted-foreground);
}
.liveov-bento-aum-bridge .liveov-ab-check[data-ok="0"] {
  color: color-mix(in srgb, var(--loss) 80%, var(--muted-foreground));
}

/* Full-width bento (the row collapsed to one column below 1396px, or the
   equity bento hidden): a longer, easier to read bar and a bit more for
   the why; the token column still takes the rest. */
@container liveov-ab (min-width: 900px) {
  .liveov-ab-table col.ab-col-why { width: 42%; }
  .liveov-ab-table col.ab-col-usd { width: 112px; }
  .liveov-ab-table col.ab-col-bar { width: 160px; }
}
/* Narrow bento (a phone): the why column goes to zero width (its text
   stays in the cell's title=, and the click-open detail line carries the
   numbers behind it) and the bar slims, so the ticker + chips and the
   dollar figure keep a readable width. Width-0 rather than display:none
   on the cells: dropping a cell under table-layout fixed would slide
   every cell after it one column left. */
@container liveov-ab (max-width: 520px) {
  .liveov-ab-table col.ab-col-why { width: 0; }
  .liveov-ab-table td.ab-why {
    padding-left: 0;
    padding-right: 0;
  }
  /* 100px still holds a full-dollar "$10,234,567" on the 13px closing
     row; the bar gives up the width instead. */
  .liveov-ab-table col.ab-col-usd { width: 100px; }
  .liveov-ab-table col.ab-col-bar { width: 32px; }
  .liveov-ab-table .liveov-ab-row--detail > td { padding-left: 12px; }
  .liveov-ab-table .liveov-ab-row--drill > td { padding-left: 12px; }
  .liveov-ab-table .ab-drill-kv { grid-template-columns: minmax(0, 1fr); gap: 0; }
  /* Members step in less on a phone so the label keeps its width. */
  .liveov-ab-row--token > td:first-child,
  .liveov-ab-row--others > td:first-child,
  .liveov-ab-row--line > td:first-child,
  .liveov-ab-row--break > td:first-child,
  .liveov-ab-row--closure > td:first-child { padding-left: 12px; }
  .liveov-ab-row--line.is-sub > td:first-child,
  .liveov-ab-row--break.is-sub > td:first-child { padding-left: 20px; }
  /* The exposure sentence is the one detail part longer than a phone
     row; let it wrap rather than clip. */
  .liveov-ab-table .ab-expo { white-space: normal; }
}

.aum-hero canvas {
  position: absolute; inset: 0;
  width: 100% !important; height: 100% !important;
  /* Sit above the Spartan watermark `::before` (z-index: 0) painted by
     the shared rule in css/charts.css. Without this the canvas stacks at
     z-auto and the watermark would render on top of the chart on some
     browsers. */
  z-index: 1;
}

/* ── Live dot — overlaid via JS at (today, AUM_today) pixel coords ──── */
/* Same visual language as the sidebar "System Online" indicator: a
   filled core dot with a halo that scales + fades on a 2.4s cycle. The
   dot is positioned absolutely inside .aum-hero — `transform: translate(-50%, -50%)`
   centers it on the (x, y) the JS reads from the chart scales. */
.aum-live-dot {
  position: absolute;
  width: 11px; height: 11px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 3;
}
.aum-live-dot-core {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--status-live);
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--background) 70%, transparent),
    0 0 10px color-mix(in srgb, var(--status-live) 80%, transparent);
}
.aum-live-dot-pulse {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--status-live);
  animation: aum-live-pulse 2.4s cubic-bezier(.32, 0, .2, 1) infinite;
  z-index: -1;
}
@keyframes aum-live-pulse {
  0%   { transform: scale(1);   opacity: .55; }
  80%  { transform: scale(3.2); opacity: 0; }
  100% { transform: scale(3.2); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .aum-live-dot-pulse,
  .aum-legend-live .aum-live-dot-mini::after { animation: none; opacity: 0; }
}

/* ── Custom tooltip ─────────────────────────────────────────────────── */
/* Chart.js external tooltip handler updates this DOM node with the rich
   per-day breakdown. Positioned absolutely inside .aum-stage so the
   handler can use Chart's internal `caretX`/`caretY` directly. */
.aum-tooltip {
  position: absolute;
  pointer-events: none;
  z-index: 5;
  /* Width is content-driven so the tooltip is always exactly as wide as
     its widest row — no per-day reflow as labels/values change length.
     The min keeps a baseline on short days; the max prevents extreme
     blowout but stays generous enough that the longest expected line
     ("Net (worst LP, MTD) +12.34% (+$1,234.5K)") fits on one row. */
  width: max-content;
  min-width: 240px;
  max-width: 440px;
  background: var(--popover);
  color: var(--popover-foreground);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  opacity: 0;
  /* The transform is owned by JS — it picks "above" or "below" the cursor
     based on viewport room and clamps the horizontal centre to keep the
     tooltip inside the stage. We only transition opacity (not transform)
     so the tooltip never animates between positions while tracking the
     cursor — that would feel laggy. */
  transition: opacity .12s ease;
}
.aum-tooltip.is-visible { opacity: 1; }
.aum-tooltip-date {
  font-size: 10px;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--muted-foreground);
  margin-bottom: 6px;
  white-space: nowrap;
}
.aum-tooltip-row {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 2px 0;
  font-variant-numeric: tabular-nums;
  /* Force every row onto a single line — without this, the trailing
     muted "(+1.81%)" span can wrap below the main value on tighter
     numbers and break the column alignment between adjacent rows. */
  white-space: nowrap;
}
.aum-tooltip-row.is-headline {
  font-size: 13px; font-weight: 600;
  color: var(--foreground);
  padding-bottom: 4px;
}
.aum-tooltip-row.is-divider {
  margin-top: 6px; padding-top: 6px;
  border-top: 1px dashed var(--border);
}
.aum-tooltip-row .aum-tooltip-label { color: var(--muted-foreground); }
.aum-tooltip-row .aum-tooltip-value.is-positive { color: var(--profit, var(--pos, #16a34a)); }
.aum-tooltip-row .aum-tooltip-value.is-negative { color: var(--loss, var(--neg, #dc2626)); }
.aum-tooltip-anchor-tag {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 9.5px;
  text-transform: uppercase; letter-spacing: .12em;
  background: color-mix(in srgb, var(--foreground) 8%, transparent);
  color: var(--muted-foreground);
}
.aum-tooltip-anchor-tag.is-bs { background: color-mix(in srgb, var(--foreground) 14%, transparent); color: var(--foreground); }
.aum-tooltip-anchor-tag.is-pr { background: color-mix(in srgb, var(--chart-1) 16%, transparent); color: var(--chart-1); }
.aum-tooltip-anchor-tag.is-live {
  background: color-mix(in srgb, var(--status-live) 16%, transparent);
  color: var(--status-live);
}

/* ── Funding chart HTML tooltip ─────────────────────────────────────── */
/* External (body-level, position: fixed) tooltip for the funding-per-
   token chart. Built-in Chart.js tooltips draw on the canvas itself, so
   they get clipped at the chart's right/bottom edge — invisible on the
   densest data points. This element lives outside the chart's stacking
   context and is clamped to the viewport by the handler. */
.funding-tooltip {
  position: fixed;
  pointer-events: none;
  z-index: 1000;
  width: max-content;
  min-width: 240px;
  max-width: min(420px, calc(100vw - 16px));
  background: var(--popover);
  color: var(--popover-foreground);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  opacity: 0;
  transition: opacity .12s ease;
}
.funding-tooltip.is-visible { opacity: 1; }
.funding-tooltip-title {
  font-size: 10px;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--muted-foreground);
  margin-bottom: 6px;
  white-space: nowrap;
}
/* Token-composition tooltip header — replaces the small uppercase
   date title with a prominent token name. Icon glyph on the left, big
   token symbol in the centre, slice % on the right edge for at-a-
   glance composition reading. */
.funding-tooltip-token-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  white-space: nowrap;
}
.funding-tooltip-token-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--foreground);
  flex: 1 1 auto;
  letter-spacing: .01em;
}
.funding-tooltip-token-pct {
  font-size: 11px;
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
}
/* Wrap label text in its own span so flex spacing between the venue
   icon and the text is owned by the parent .funding-tooltip-label's
   gap rule — without the wrap, an inline icon glyph sits flush
   against the text node with no breathing room. */
.funding-tooltip-label-text {
  display: inline-block;
}
.funding-tooltip-row {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 2px 0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.funding-tooltip-row.is-total {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--foreground);
  border-bottom: 1px dashed var(--border);
  padding-bottom: 4px;
  margin-bottom: 4px;
}
.funding-tooltip-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-foreground);
}
.funding-tooltip-row.is-total .funding-tooltip-label { color: var(--foreground); }
.funding-tooltip-value.is-positive { color: var(--profit, var(--pos, #16a34a)); }
.funding-tooltip-value.is-negative { color: var(--loss, var(--neg, #dc2626)); }
.funding-tooltip-icon {
  display: inline-block;
  width: 14px; height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: contain;
  /* Slight tint behind the icon so a not-yet-loaded placeholder still
     reserves the visual slot — prevents the row from reflowing when
     the actual image lands. */
  background: color-mix(in srgb, var(--foreground) 8%, transparent);
}
.funding-tooltip-bar {
  display: inline-block;
  width: 3px;
  height: 12px;
  border-radius: 1px;
  flex-shrink: 0;
}
/* Composited icon+chip glyph — single `<img>` for the cache-warm
   case (matches the Token-composition legend's `.liveov-token-comp-
   legend-glyph` exactly). */
.funding-tooltip-glyph {
  display: inline-block;
  width: 21px;
  height: 14px;
  flex-shrink: 0;
  object-fit: contain;
  margin-right: 2px;
}
/* Placeholder slot rendered into the HTML; fillTickerIconSlots replaces
   it with a real canvas/img node. Reserve its full glyph size so the
   row geometry doesn't shift when the icon lands. */
.funding-tooltip-icon-slot {
  display: inline-block;
  width: 21px;
  height: 14px;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--foreground) 6%, transparent);
  border-radius: 2px;
}
/* The cloned canvas/img node injected by fillTickerIconSlots. The
   .className is set by cloneTickerGlyphNode so this rule applies
   wherever the slot was. */
.liveov-ticker-glyph {
  display: inline-block;
  width: 21px;
  height: 14px;
  flex-shrink: 0;
  vertical-align: middle;
}
/* Venue icons (CEX or chain) — small SVG rendered inline in front of
   the contributor's label text. Same-origin assets, so no canvas
   slot/clone dance — just an <img>. */
.liveov-venue-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  border-radius: 3px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 6px;
}
/* OKX / Lighter / any other dark-on-dark mark — flip to white in dark
   mode (matches the .tdd-cex-logo--invert rule used elsewhere). */
:root[data-theme="dark"] .liveov-venue-icon--invert,
:root:not([data-theme="light"]) .liveov-venue-icon--invert {
  filter: invert(1);
}
/* Lucide-glyph variant of the venue icon — used for OTC rows where
   there's no exchange logo / chain logo (the handshake mark stands in
   for the OTC arb pillar). Container is the same 14×14 footprint as
   the SVG/PNG venue icons so flex alignment matches across rows. */
.liveov-venue-icon--lucide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-right: 6px;
  color: var(--foreground);
  /* No background — the icon is a stroked line glyph and floats on
     the tooltip's popover surface. */
}
.liveov-venue-icon--lucide svg {
  width: 14px;
  height: 14px;
  display: block;
}
/* AUM allocation tooltip — pillar mark in the header row. Sized close
   to the ticker-icon slot (21×14) on the sibling token-comp tooltip so
   the two tooltips' headers read at the same visual weight; color is
   inlined on the element from `STRATEGY_PILLAR_COLORS` so the glyph
   tint always matches the hovered slice's fill. */
.liveov-alloc-tooltip-pillar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.liveov-alloc-tooltip-pillar svg {
  width: 16px;
  height: 16px;
  display: block;
}
/* AUM allocation tooltip — strategy mark in front of an OTC line item (OTC
   spot / perp PnL). Same 21×14 box as the ticker glyph on the coin lines so
   the labels line up down the tooltip; plain foreground, not the pillar
   color. */
.liveov-alloc-line-glyph {
  display: inline-flex;
  align-items: center;
  width: 21px;
  height: 14px;
  flex-shrink: 0;
  color: var(--foreground);
}
.liveov-alloc-line-glyph svg {
  width: 14px;
  height: 14px;
  display: block;
}
/* Legacy swatch kept for back-compat in case any caller still injects
   it; the new layout uses .funding-tooltip-bar instead. */
.funding-tooltip-swatch {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── Empty / loading states ─────────────────────────────────────────── */
.aum-empty {
  display: flex; align-items: center; justify-content: center;
  height: 100%;
  font-size: 12px; color: var(--muted-foreground);
  border: 1px dashed var(--border);
  border-radius: 8px;
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .aum-card-head { flex-direction: column; gap: 12px; }
  .aum-kpis { margin-left: 0; gap: 20px; flex-wrap: wrap; }
  .aum-kpi { align-items: flex-start; }
  .aum-kpi-primary .aum-kpi-value { font-size: 24px; }
  .aum-kpi-value { font-size: 18px; }
  .aum-hero { height: 280px; }
}
@media (max-width: 640px) {
  .aum-legend { gap: 6px 12px; font-size: 10px; }
  /* Shrink the baseline but keep width: max-content from above so the
     tooltip still auto-fits per-day content without wrapping. */
  .aum-tooltip { min-width: 200px; max-width: calc(100vw - 24px); font-size: 11px; }
}

/* ── Strategy split (redesigned) ────────────────────────────────────
   Replaces the boxy 4-bento `.liveov-pillars` grid with a single dense
   panel: a stacked share-bar at the top, then 4 compact horizontal
   rows underneath. Each row uses the same per-pillar accent color as
   the old bentos (DeFi amber, Basis teal, OTC Arb indigo, Collateral
   taupe) and the same data hooks (#liveov-kpi-{defi,basis,otc,collateral}-
   {big,…}). The redundant subs (tokens, matched-tickers, unmatched-spot,
   bare coverage) were dropped or folded into the Fund Health indicator
   that sits on the collateral row. */
.liveov-strategies {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 4px;
  /* Container anchor for the body's rows-vs-donut layout. The strategy
     section lives in a half-width landing column, so its real width is
     far below the viewport's — the donut-wrap rule below keys off THIS
     element's width via @container, not a viewport @media. */
  container: strat-split / inline-size;
}
.liveov-strategies-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
/* One strategy row. 4-column grid with a FIXED 200px width on the USD
   column so the $ values line up vertically across all four pillars
   regardless of how wide each row's name + sub text is. Each row gets
   a thin accent bar on the left edge (per-pillar color) and a subtle
   hover lift so the operator can scan them like list items.

   Why hardcoded column widths instead of subgrid? Subgrid is widely
   supported now but has a quirk with `min-content` on the value column
   when a row's content is shorter — it can collapse the column. Fixed
   px on the USD + aux columns sidesteps that entirely. */
.liveov-strat-row {
  position: relative;
  display: grid;
  /* Value column uses minmax(220px, max-content) so it grows wide
     enough to fit the longest sub-line on a single line WITHOUT
     wrapping. All rows share the same grid track so $ values stay
     right-aligned across pillars, and the name column (1fr) shrinks
     to accommodate the longer combined-mode sub-line. The 220px
     floor keeps the column readable on rows with short subs. */
  grid-template-columns: 28px minmax(0, 1fr) minmax(220px, max-content) 130px;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  /* Single-line rows now — min-height set just for visual rhythm. */
  min-height: 52px;
  border-radius: 8px;
  /* Pillar accent is now a soft horizontal gradient that fades from a
     stronger tint on the left into the row's flat tinted backdrop,
     instead of a hard 3px floating pill bar. The fade lives inside
     the rounded rectangle so the color signal feels part of the
     bento's surface rather than a sticker on top of it; the icon
     swatch (already tinted 18% in the pillar color) sits inside the
     darker left band, completing the anchor. */
  background:
    linear-gradient(
      90deg,
      color-mix(in srgb, var(--liveov-pillar-color, var(--border)) 16%, transparent) 0%,
      color-mix(in srgb, var(--liveov-pillar-color, var(--border))  4%, transparent) 48%,
      color-mix(in srgb, var(--liveov-pillar-color, var(--border))  4%, transparent) 100%
    );
  transition: background .12s ease, opacity .15s ease, filter .15s ease;
}
.liveov-strat-row:hover {
  background:
    linear-gradient(
      90deg,
      color-mix(in srgb, var(--liveov-pillar-color, var(--border)) 22%, transparent) 0%,
      color-mix(in srgb, var(--liveov-pillar-color, var(--border))  8%, transparent) 48%,
      color-mix(in srgb, var(--liveov-pillar-color, var(--border))  8%, transparent) 100%
    );
}
/* Greyed-out state for the Collateral row when the Combined/Split
   toggle is in "Combined" mode — the collateral $ has been absorbed
   into Basis + OTC Arb, so the row reads informational but muted.
   Desaturation hits the gradient automatically; no ::before override
   needed now that the pill bar is gone. */
.liveov-strat-row.is-absorbed {
  opacity: 0.55;
  filter: saturate(0.4);
}
.liveov-strat-row.is-absorbed:hover {
  opacity: 0.75;
}

/* Icon. */
.liveov-strat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: color-mix(in srgb, var(--liveov-pillar-color, transparent) 18%, transparent);
  color: var(--liveov-pillar-color, var(--foreground));
  flex: none;
}
.liveov-strat-icon svg { width: 16px; height: 16px; display: block; }

/* Strategy name + its `?` hint share grid column 2. The hint sits as a
   sibling OUTSIDE `.liveov-strat-name-label` so that label keeps its
   ellipsis clamp without its `overflow: hidden` cropping the hint
   popover (an absolutely-positioned descendant). */
.liveov-strat-name {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.liveov-strat-name .hint { flex: none; }

/* Strategy name — single-line, big enough to read as the row's anchor.
   The supporting context (notional, deals, etc) now lives UNDER the $
   value, not next to the name, so this column gets to be wide and
   uncluttered. */
.liveov-strat-name-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--foreground);
  line-height: 1.1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* USD value column. Right-aligned, fixed width (200px on the row
   grid). Two stacked lines: primary $ on top, supporting sub line
   underneath (notional, deals count, share % of AUM). */
.liveov-strat-value-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  text-align: right;
  min-width: 0;
}
.liveov-strat-usd {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--foreground);
  line-height: 1.1;
}
/* Sub-line stays on a single line — the value column auto-expands to
   fit (see minmax(220px, max-content) on the row's grid template),
   pushing the strategy-name column to shrink. No wrap, no ellipsis. */
.liveov-strat-usd-sub {
  font-size: 10.5px;
  line-height: 1.3;
  white-space: nowrap;
}
/* The inline collat-suffix span. Same font-size as the surrounding
   sub-line (no nested `.small` upgrade) so the line height doesn't
   shift between modes — `.small` would bump 10.5px → 11px and make
   the row taller in combined mode than in split. */
.liveov-strat-collat {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: inherit;
  color: var(--muted-foreground);
}

/* Aux column — right side, fixed 130px width. Carries funding-MTD on
   basis/otc rows; the Fund Health ring on the collateral row; "unhedged"
   label on DeFi. Stacks vertically with the value on top, label
   underneath. */
.liveov-strat-aux {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  text-align: right;
  white-space: nowrap;
  min-width: 0;
}
.liveov-strat-aux-value {
  font-size: 10.5px;
  line-height: 1.2;
}
.liveov-strat-funding {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.liveov-strat-funding.is-pos { color: var(--profit, #16a34a); }
.liveov-strat-funding.is-neg { color: var(--loss,   #dc2626); }

/* Per-pillar accent cascade — same palette the old `.liveov-pillar`
   bentos used. Drives the row tint, the left bar, and the icon tint. */
.liveov-strat-row[data-pillar="defi_yield"] {
  --liveov-pillar-color: oklch(0.76 0.13 78);
}
.liveov-strat-row[data-pillar="basis"] {
  --liveov-pillar-color: oklch(0.72 0.10 200);
}
.liveov-strat-row[data-pillar="otc_arb"] {
  --liveov-pillar-color: oklch(0.65 0.15 275);
}
.liveov-strat-row[data-pillar="cex_farming"] {
  --liveov-pillar-color: oklch(0.70 0.13 150);
}
.liveov-strat-row[data-pillar="collateral"] {
  --liveov-pillar-color: oklch(0.74 0.03 80);
}

/* ── Strategy split + AUM donut side-by-side ──────────────────────────
   The strategy-rows column and the AUM donut sit in one flex row,
   scoped via .liveov-strategies-body. */
.liveov-strategies-body {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: stretch;
}
.liveov-strat-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 0;
  min-width: 0;
  /* Container query anchor — narrow-width breakpoints below drop the
     aux column ("unhedged", "funding MTD") before the strategy name or
     the $ amount ever get squeezed. */
  container-type: inline-size;
  container-name: strat-rows;
}
/* Default grid — icon | name (flex) | value ($) | aux (funding MTD).
   The rows no longer carry a subheader, so the USD column can collapse
   to the natural width of the dollar value. The name track floors at
   `min-content` so the strategy title is never truncated to "D…" to
   make room — when the section runs out of width the donut wraps below
   the rows instead (see the @container strat-split rule). */
.liveov-strat-rows .liveov-strat-row {
  grid-template-columns: 28px minmax(min-content, 1fr) max-content 130px;
}
/* Stage 1 — hide the aux column entirely before anything else gets
   truncated. Threshold sized so the name + value comfortably fit
   without the 130px aux block crowding them out. */
@container strat-rows (max-width: 460px) {
  .liveov-strat-rows .liveov-strat-row {
    grid-template-columns: 28px minmax(min-content, 1fr) max-content;
  }
  .liveov-strat-rows .liveov-strat-aux { display: none; }
}
/* Stage 2 — even narrower: drop the icon column too. Strategy name +
   $ amount are the last things standing, per spec. */
@container strat-rows (max-width: 280px) {
  .liveov-strat-rows .liveov-strat-row {
    grid-template-columns: minmax(min-content, 1fr) max-content;
    padding-left: 10px;
  }
  .liveov-strat-rows .liveov-strat-icon { display: none; }
  /* Tightest stage — shrink the title + $ a notch so both still fit a
     phone-narrow row without the title crowding the number. */
  .liveov-strat-rows .liveov-strat-name-label,
  .liveov-strat-rows .liveov-strat-usd { font-size: 12.5px; }
}
.liveov-strat-alloc {
  flex: 0 0 320px;
  display: flex;
  align-items: stretch;
  min-width: 0;
  /* Explicit pixel height = exactly the 4 strat-row stack:
       4 × min-height(52px) + 3 × gap(6px) = 226px.
     Without this anchor, Chart.js's canvas (intrinsic 300×150) ends
     up larger than the rows column and align-items:stretch can't
     pull it back — flex stretch uses the TALLER child's height, and
     the canvas keeps the donut tall. Hard-coding the rows-equivalent
     height here forces the wrap to that size and Chart.js (responsive
     + maintainAspectRatio:false) sizes the donut into it. */
  height: 226px;
}
.liveov-strat-alloc .liveov-alloc-row {
  width: 100%;
  min-height: 0;
  height: 100%;
}
.liveov-strat-alloc .liveov-alloc-canvas-wrap {
  min-height: 0;
  height: 100%;
}
/* Absolutely-position the canvas inside the wrap so the canvas's
   intrinsic 300×150 (HTML5 default) can't bleed back into the layout
   and re-inflate the wrap. Same trick the AUM hero uses. */
.liveov-strat-alloc .liveov-alloc-canvas-wrap { position: relative; }
.liveov-strat-alloc .liveov-alloc-canvas-wrap > canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}
.liveov-strat-alloc .liveov-alloc-legend {
  width: 96px;
  font-size: 10.5px;
}
/* Wrap the donut UNDER the rows once the strategy section gets too
   narrow to keep both side-by-side. Keyed off the section's OWN width
   (container query), not the viewport — the section sits in a half-width
   landing column, so a 1200px+ viewport can still hand this block only
   ~560px. Below 640px the rigid 320px donut leaves the rows too little
   room and the strategy titles start truncating, so it wraps to its own
   line and the rows reclaim the full width. Drop the fixed height +
   restore a min-height so the wrapped donut doesn't collapse. */
@container strat-split (max-width: 640px) {
  .liveov-strategies-body { flex-direction: column; }
  .liveov-strat-alloc {
    flex: 0 0 auto;
    height: auto;
  }
  .liveov-strat-alloc .liveov-alloc-row,
  .liveov-strat-alloc .liveov-alloc-canvas-wrap { min-height: 200px; }
}

/* ── Admin panel toggle + body ───────────────────────────────────────
   Spartan-only collapsible row under the strategy split, showing the
   allocation workings table. The toggle button mimics the
   .ghost / icon-button pattern; the body has a subtle dashed top
   separator so it reads as a power-user surface rather than primary UI. */
.liveov-strat-admin-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted-foreground);
  border-radius: 6px;
  cursor: pointer;
  line-height: 1;
  transition: color .12s ease, border-color .12s ease, background .12s ease;
}
.liveov-strat-admin-toggle:hover {
  color: var(--foreground);
  border-color: var(--border-strong, var(--border));
  background: color-mix(in srgb, var(--foreground) 4%, transparent);
}
.liveov-strat-admin-toggle[aria-expanded="true"] {
  color: var(--foreground);
  background: color-mix(in srgb, var(--foreground) 6%, transparent);
}
.liveov-strat-admin {
  margin-top: 8px;
  padding: 12px 14px 10px;
  border-top: 1px dashed var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.liveov-strat-admin-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.liveov-strat-admin-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
  font-size: 11.5px;
}
.liveov-strat-admin-foot strong {
  font-weight: 600;
  color: var(--foreground);
}
.liveov-strat-admin-side {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}
.liveov-strat-admin-side-label {
  flex: none;
}
.liveov-strat-admin-side-pct {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  flex: none;
}
.liveov-strat-admin-total strong {
  color: var(--foreground);
  font-weight: 600;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
/* Allocation workings — collapsible header (chevron turns when open) over
   the desk sheet's layout: one strategy row (tinted with its pillar color)
   followed by its muted line items. Fixed layout + colgroup widths so the
   numeric columns line up down the table. */
.liveov-strat-work-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: var(--muted-foreground);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.liveov-strat-work-toggle:hover,
.liveov-strat-work-toggle[aria-expanded="true"] { color: var(--foreground); }
.liveov-strat-work-chevron {
  flex: none;
  transition: transform .15s ease;
}
.liveov-strat-work-toggle[aria-expanded="true"] .liveov-strat-work-chevron {
  transform: rotate(90deg);
}
.liveov-strat-work-wrap {
  overflow-x: auto;
}
.liveov-strat-work-wrap[hidden] { display: none; }
.liveov-strat-work {
  width: 100%;
  min-width: 460px;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}
.liveov-strat-work col.c-name  { width: auto; }
.liveov-strat-work col.c-pos   { width: 96px; }
.liveov-strat-work col.c-share { width: 72px; }
.liveov-strat-work col.c-coll  { width: 92px; }
.liveov-strat-work col.c-alloc { width: 140px; }
.liveov-strat-work th,
.liveov-strat-work td {
  padding: 4px 6px;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.liveov-strat-work th:first-child,
.liveov-strat-work td:first-child { text-align: left; }
.liveov-strat-work thead th {
  font-weight: 500;
  color: var(--muted-foreground);
  border-bottom: 1px solid var(--border);
}
.liveov-strat-work td { font-family: var(--font-mono); }
.liveov-strat-work tr.is-strategy th {
  font-weight: 600;
  color: var(--foreground);
  border-left: 3px solid var(--liveov-pillar-color, var(--border));
}
.liveov-strat-work tr.is-strategy {
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--liveov-pillar-color, var(--border)) 8%, transparent);
}
.liveov-strat-work tr.is-strategy[data-pillar="otc_arb"]     { --liveov-pillar-color: oklch(0.65 0.15 275); }
.liveov-strat-work tr.is-strategy[data-pillar="defi_yield"]  { --liveov-pillar-color: oklch(0.76 0.13 78); }
.liveov-strat-work tr.is-strategy[data-pillar="basis"]       { --liveov-pillar-color: oklch(0.72 0.10 200); }
.liveov-strat-work tr.is-strategy[data-pillar="cex_farming"] { --liveov-pillar-color: oklch(0.70 0.13 150); }
.liveov-strat-work tr.is-strategy[data-pillar="collateral"]  { --liveov-pillar-color: oklch(0.74 0.03 80); }
.liveov-strat-work tr.is-line th,
.liveov-strat-work tr.is-line td {
  color: var(--muted-foreground);
  font-weight: 400;
  padding-top: 1px;
  padding-bottom: 1px;
}
.liveov-strat-work tr.is-line th { padding-left: 18px; }
.liveov-strat-work tr.is-total th,
.liveov-strat-work tr.is-total td {
  font-weight: 600;
  color: var(--foreground);
  border-top: 1px solid var(--border-strong, var(--border));
}
/* Collapse the side rows to a single column on narrow viewports — the
   detail line wraps under the label/pct row anyway, so a two-column
   grid eats horizontal space without gain. */
@media (max-width: 560px) {
  .liveov-strat-admin-foot { grid-template-columns: 1fr; }
}
#liveov-strat-admin-status { font-style: italic; }
#liveov-strat-admin-status.is-saving { color: var(--status-live, #16a34a); }
#liveov-strat-admin-status.is-error  { color: var(--loss, var(--neg, #dc2626)); }

/* BTC profit-share admin panel (Current AUM bento). Reuses the
   .liveov-strat-admin* layout; only the % number input + status need
   their own rules. */
.liveov-btcps-admin-field {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.liveov-btcps-admin-input {
  width: 68px;
  padding: 3px 6px;
  font-size: 12px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--foreground);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.liveov-btcps-admin-input:focus {
  outline: none;
  border-color: var(--profit, var(--pos, #16a34a));
}
/* Three readouts across (Gross basis · BTC profit share · AUM after
   share) instead of the strategy panel's two; collapses to one column on
   narrow viewports via the shared media query below. */
#liveov-btcps-admin .liveov-strat-admin-foot {
  grid-template-columns: repeat(3, minmax(0, auto));
  justify-content: start;
  column-gap: 22px;
}
#liveov-btcps-admin-share { color: var(--profit, var(--pos, #16a34a)); font-weight: 600; }
#liveov-btcps-admin-status { font-style: italic; }
#liveov-btcps-admin-status.is-saving { color: var(--status-live, #16a34a); }
#liveov-btcps-admin-status.is-error  { color: var(--loss, var(--neg, #dc2626)); }
@media (max-width: 560px) {
  /* ID-specificity override so the 3-col readout collapses on narrow
     viewports (the shared .liveov-strat-admin-foot rule can't outrank it). */
  #liveov-btcps-admin .liveov-strat-admin-foot { grid-template-columns: 1fr; }
}

/* ── Fund Health pill ────────────────────────────────────────────────
   Sits in the collateral row's aux column. A coverage-ratio number
   (collateral / hedged notional) rendered as a ring + tone-colored
   label. Caps at 100% on the ring fill — above that the fund is fully
   collateralized and the ring is full. Color zones:
     >= 100% green, 50-100% yellow-green, 30-50% orange, < 30% red.
   See paintFundHealth in live-overview.js for the formula + tooltip. */
.liveov-strat-health {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  background: var(--surface-tinted, rgba(127,127,127,.04));
  border: 1px solid var(--border);
  cursor: help;
}
.liveov-health-ring {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex: none;
  /* Use a conic-gradient to fill clockwise from 12 o'clock by --health-pct.
     A second radial gradient cuts a "donut hole" in the middle so we get
     a ring not a disc. */
  background:
    radial-gradient(circle, var(--surface) 0 35%, transparent 36% 100%),
    conic-gradient(var(--health-color, var(--muted-foreground)) calc(var(--health-pct, 0%)), color-mix(in srgb, var(--health-color, var(--muted-foreground)) 18%, transparent) 0);
}
.liveov-health-ring-fill {
  /* The fill is painted via the background's conic-gradient (above);
     this empty span holds the --health-pct custom prop so JS can set
     it via inline `style.setProperty('--health-pct', '60%')`. */
  display: block;
  width: 100%;
  height: 100%;
}
.liveov-health-text {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.1;
  text-align: left;
}
.liveov-health-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.liveov-health-value {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--foreground);
}
/* State → color cascade. The --health-color drives the ring fill; the
   `.liveov-health-value` color tracks the same hue so the label reads
   as one with the ring. */
.liveov-strat-health[data-state="healthy"] { --health-color: var(--profit, #16a34a); }
.liveov-strat-health[data-state="healthy"] .liveov-health-value { color: var(--profit, #16a34a); }
.liveov-strat-health[data-state="watch"]   { --health-color: #f59e0b; }
.liveov-strat-health[data-state="watch"]   .liveov-health-value { color: #f59e0b; }
.liveov-strat-health[data-state="alert"]   { --health-color: #f97316; }
.liveov-strat-health[data-state="alert"]   .liveov-health-value { color: #f97316; }
.liveov-strat-health[data-state="danger"]  { --health-color: var(--loss, #dc2626); }
.liveov-strat-health[data-state="danger"]  .liveov-health-value { color: var(--loss, #dc2626); }
.liveov-strat-health[data-state="none"]    { --health-color: var(--muted-foreground); }
.liveov-strat-health[data-state="none"]    .liveov-health-value { color: var(--muted-foreground); }

/* Narrow viewport — drop the aux column so the row breaks cleanly.
   At < 720px the aux column wraps under the row, taking the full width;
   the USD column drops its fixed width back to `auto` so the $ value
   still right-aligns but doesn't waste 200px on a phone-narrow grid.

   The value-column sub also drops its desktop `nowrap` here — long subs
   like "12 deals · Notional $7.47M · 77% · +$5.70M coll" otherwise force
   the auto-sized value column wider than the card and push the right
   edge off-screen. `minmax(0, auto)` lets the column shrink so the
   sub-line can wrap to a second line instead. */
@media (max-width: 720px) {
  .liveov-strat-row {
    grid-template-columns: 28px minmax(0, 1fr) minmax(0, auto);
  }
  .liveov-strat-usd-sub {
    white-space: normal;
    line-height: 1.35;
  }
  .liveov-strat-aux {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    padding-top: 2px;
  }
}

/* Funding-tone classes used across the page (breakdown, pillars, etc).
   Kept globally so they're available everywhere a funding value lands. */
.is-pos { color: var(--profit, #16a34a); }
.is-neg { color: var(--loss,   #dc2626); }

/* ── Positions breakdown header (group switcher) ────────────────────
   Header row that holds the card title and the "By strategy / By venue"
   toggle. The toggle reuses the same visual language as the Monthly
   Performance Net/Gross switcher so the page feels consistent. */
.liveov-pb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.liveov-pb-group {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-tinted, transparent);
}
.liveov-pb-group-btn {
  background: transparent;
  border: 0;
  border-radius: 6px;
  padding: 4px 11px;
  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;
  white-space: nowrap;
}
.liveov-pb-group-btn:hover { color: var(--foreground); }
.liveov-pb-group-btn.is-active {
  color: var(--foreground);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}

/* Right-side control cluster on the breakdown card header — keeps the
   group toggle and the XLSX export button together when the flex head
   wraps on narrow widths. */
.liveov-pb-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.liveov-pb-export {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 11px;
  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;
  white-space: nowrap;
}
.liveov-pb-export svg { width: 12px; height: 12px; flex: 0 0 auto; }
.liveov-pb-export:hover {
  color: var(--foreground);
  background: var(--surface);
}
/* Busy = the export model is being assembled (a month tab may need its
   snapshot fetch first). Pointer-events off so double-clicks can't queue
   a second download of the same file. */
.liveov-pb-export.is-busy { opacity: .55; pointer-events: none; }

@media (max-width: 640px) {
  .liveov-pb-head { gap: 6px; }
  .liveov-pb-group-btn { padding: 3px 8px; }
  .liveov-pb-controls { gap: 6px; }
  .liveov-pb-export { padding: 5px 8px; }
  .liveov-pb-export span { display: none; } /* icon-only on phones */
}

/* ── Strategy bucket indicators (chips + dots) ──────────────────────
   Used on the Positions breakdown table to signal which strategy
   pillar a row contributes to. Two flavors:
     • .ov-strategy-chip — pill with label; appears on section headers
       (strategy mode) and detail-row leading cells (source mode).
     • .ov-strategy-dot  — 6px colored dot; appears on ticker sub-
       headers as a compact bucket reminder when a section has many
       legs.
   Both pull their color from a per-pillar palette so the table reads
   consistent with the four bentos above. */
.ov-strategy-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  margin-right: 8px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  vertical-align: middle;
  background: color-mix(in srgb, var(--liveov-pillar-color, var(--border)) 14%, transparent);
  color: var(--liveov-pillar-color, var(--foreground));
  border: 1px solid color-mix(in srgb, var(--liveov-pillar-color, var(--border)) 40%, transparent);
  white-space: nowrap;
}
.ov-strategy-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
  background: var(--liveov-pillar-color, var(--border));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--liveov-pillar-color, transparent) 18%, transparent);
}
/* Per-pillar color cascade — mirrors .liveov-pillar[data-pillar] so
   chips/dots/icons on the table line up with the bentos at the top
   of the page. */
/* OKLab-coordinated palette: all four sit at L≈0.72–0.76 so they read with
   equal visual weight, but hue contrast keeps them individually distinct.
   Warm amber DeFi + cool teal Basis + cool indigo OTC arb + warm-neutral
   taupe Collateral. Teal (not emerald) so Basis doesn't fight P&L green;
   warm taupe (not blue-grey) so Collateral reads as a deliberate reserve
   tone rather than generic "muted UI". */
.ov-strategy-chip[data-pillar="defi_yield"],
.ov-strategy-dot[data-pillar="defi_yield"],
.ov-pillar-icon[data-pillar="defi_yield"]  { --liveov-pillar-color: oklch(0.76 0.13 78); }
.ov-strategy-chip[data-pillar="basis"],
.ov-strategy-dot[data-pillar="basis"],
.ov-pillar-icon[data-pillar="basis"]       { --liveov-pillar-color: oklch(0.72 0.10 200); }
.ov-strategy-chip[data-pillar="otc_arb"],
.ov-strategy-dot[data-pillar="otc_arb"],
.ov-pillar-icon[data-pillar="otc_arb"]     { --liveov-pillar-color: oklch(0.65 0.15 275); }
.ov-strategy-chip[data-pillar="collateral"],
.ov-strategy-dot[data-pillar="collateral"],
.ov-pillar-icon[data-pillar="collateral"]  { --liveov-pillar-color: oklch(0.74 0.03 80); }

/* In source-grouped mode the leading cell carries `[chip] [source]`.
   Reduce the visual weight of the source label so the bucket chip
   reads as the primary signal. */
.ov-row-source {
  display: inline-block;
  vertical-align: middle;
}

/* Section-header pillar icon (strategy mode). Replaces the redundant
   "[CHIP TEXT] Label" pattern with "[icon] Label" — the SVG inherits
   the per-pillar accent via the [data-pillar] color cascade above.
   flex-wrap so a long hedge chip / funding pill row collapses to a
   second line on narrow widths instead of pushing the right-side
   numeric cells out of position.
   line-height:1 on the container + all children normalises the box
   heights so align-items:center actually centers visually. Without
   it, the <strong> label inherits the table's 1.5× line-height while
   the muted-small spans pick up theirs from a different source, and
   the bounding boxes center but the inked glyphs sit 1-2px high. */
.ov-source-head-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  line-height: 1;
}
.ov-source-head-label > * {
  line-height: 1;
  display: inline-flex;
  align-items: center;
}
/* The strong/text nested INSIDE child elements (most notably the
   `<strong>TICKER</strong>` inside a ticker badge) inherits its
   line-height from the table cell's 1.5× value, which pushes the
   inked glyph below the flex container's midline even though the
   element box itself is centered. Reset every descendant — not just
   direct children — to line-height:1 so the badge's text aligns to
   the same midline its icon already sits on. */
.ov-source-head-label * {
  line-height: 1;
}

/* Shared label-row container for ticker- and contrib-head rows. Same
   align-items:center the section header uses so everything inside
   (chevrons, ticker badges, qty chips, funding pills, hedge chips)
   sits on the same vertical line. Same line-height:1 reset on children
   for the same reason as the section header. */
.ov-row-label-flex {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  line-height: 1;
}
.ov-row-label-flex > * {
  line-height: 1;
  display: inline-flex;
  align-items: center;
}
/* Same descendant-reset rationale as .ov-source-head-label *.
   Without this, the <strong>TICKER</strong> inside .ticker-badge
   inherits the cell's 1.5× line-height and the glyph floats 1-2px
   above its visual midline relative to the icon it sits next to. */
.ov-row-label-flex * {
  line-height: 1;
}
/* Ticker-head META stack — sits under the identity line (chevron +
   badge + "N legs") in a ticker aggregate row's Position cell. Carries
   UNLOCK / VESTING / FUNDING / 24H as ONE SEGMENT PER LINE in the SAME
   2-column tag/value grid as the QTY column's held/short/net stack
   (9px uppercase tag + 11px tabular value, shared column-gap), so the
   two columns read as one design. A grid, not a flex row: every row
   renders the identical structure at any column width — nothing here
   can wrap. padding-left clears the row's chevron (0.9em width + 4px
   margin + 6px flex gap) so the stack aligns under the ticker badge. */
.ov-ticker-meta {
  display: grid;
  grid-template-columns: max-content auto;
  justify-content: start;
  align-items: baseline;
  column-gap: 8px;
  row-gap: 1px;
  padding-left: calc(0.9em + 10px);
  margin-top: 4px;
  line-height: 1.2;
}
.ov-meta-tag {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-foreground);
  opacity: 0.8;
  white-space: nowrap;
}
.ov-meta-val {
  justify-self: start;
  font-size: 11px;
  color: var(--foreground);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
/* Per-share-class stack under a combined fee line (Accrued Management Fee:
   USD class / BTC class). Off-chain rows have no chevron, so no indent; the
   value column may shrink and ellipsize, so the stack can never push past
   the fixed-width Position column (the title carries the exact figures). */
.ov-ticker-meta.ov-class-split {
  padding-left: 0;
  grid-template-columns: max-content minmax(0, max-content);
  max-width: 100%;
}
.ov-ticker-meta.ov-class-split .ov-meta-val {
  min-width: 0;
  /* .ov-meta-val is justify-self: start + nowrap, i.e. max-content wide;
     cap it at the track or the ellipsis never engages. */
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Funding polarity — same green/red the pills used, minus the pill. */
.ov-meta-val.is-pos { color: var(--profit, #16a34a); }
.ov-meta-val.is-neg { color: var(--loss, #dc2626); }
/* Unlock ≤ 7 days out — amber so an imminent hedge roll reads at a
   glance. */
.ov-meta-val.is-soon { color: var(--chart-3); font-weight: 600; }

/* Token-quantity stack on a ticker sub-header's QTY cell — held / short
   / net laid out as a mini table so an operator reads the position's
   gross long, its hedge, and the net token exposure without expanding the
   legs. A 2-column grid (label · qty) left-aligns the labels and
   right-aligns the quantities; the Δ% is folded into the "net" label in
   brackets so it shares the label's tag styling. The contrib (LONG/SHORT)
   heads reuse just the .ov-qty-val tier for their single side-quantity
   figure. */
.ov-qty-head-cell {
  padding-top: 4px;
  padding-bottom: 4px;
}
.ov-qty-stack {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  column-gap: 8px;
  row-gap: 1px;
  width: 100%;
  line-height: 1.2;
}
.ov-qty-tag {
  justify-self: start;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-foreground);
  opacity: 0.8;
  white-space: nowrap;
}
.ov-qty-val {
  justify-self: end;
  text-align: right;
  font-size: 11px;
  color: var(--foreground);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ov-qty-val-net {
  font-weight: 600;
}

/* Venue-icons strip — one tiny logo per distinct venue across a
   ticker sub-header's legs. Rendered in the sub-header's Venue/Chain
   cell so it shares a column with the detail rows' per-leg venue
   labels. Logos sit flush against each other (slight overlap so they
   read as a stack at a glance). The strip is a compact summary; the
   detail rows underneath carry the canonical per-leg label. */
.ov-venue-icons {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 0 4px;
}
.ov-venue-icons > * {
  display: inline-flex;
  align-items: center;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  overflow: hidden;
  flex: none;
}
.ov-venue-icons .tdd-cex-logo-wrap,
.ov-venue-icons .tdd-cex-logo-wrap img {
  width: 14px;
  height: 14px;
}
.ov-venue-icon-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ov-venue-icon-otc {
  background: color-mix(in srgb, var(--surface-tinted, rgba(127,127,127,.06)) 70%, transparent);
  border: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
  color: var(--muted-foreground);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ov-venue-icon-otc svg {
  width: 10px;
  height: 10px;
  display: block;
}
/* When the OTC handshake sits inside a per-row .ov-venue-cell (next
   to a deal name on a cex_upnl detail row), it shares the 16x16 box
   that CEX brand logos use. Scale the glyph up to fill the larger
   frame so it reads at the same visual weight as the brand logos
   beside it. */
.ov-venue-cell .ov-venue-icon-otc {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  flex: none;
}
.ov-venue-cell .ov-venue-icon-otc svg {
  width: 12px;
  height: 12px;
}

/* Synthetic vest-bridge venue icon (git-merge) — same framing as the OTC
   handshake but tinted cyan (the OTC-badge family tone) to signal "this
   is the synthetic in-transit leg", not a normal OTC deal. Mirrors the
   ov-venue-icon-otc sizing across the mini (ticker-head strip) and the
   16x16 (per-row venue cell) contexts. */
.ov-venue-icon-bridge {
  background: rgba(56, 178, 172, 0.08);
  border: 1px solid rgba(56, 178, 172, 0.30);
  color: var(--chart-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ov-venue-icon-bridge svg {
  width: 10px;
  height: 10px;
  display: block;
}
.ov-venue-cell .ov-venue-icon-bridge {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  flex: none;
}
.ov-venue-cell .ov-venue-icon-bridge svg {
  width: 12px;
  height: 12px;
}

/* ── OTC discount breakdown popup ─────────────────────────────────────
   Opened by clicking an OTC row's d_agg pill. Lives inside the shared
   .app-modal shell; widen the card a touch so the tranche tables breathe,
   then stack a weighting summary above one schedule table per deal. */
.app-modal:has(.otc-disc-popup) { width: min(990px, 96vw); }

/* EOM Discounts toggle cloned into the popup's modal header (wired to the
   global #use-eom). Compact switch pushed to the right, before the close X. */
.app-modal-head .otc-disc-eom-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  margin-right: 6px;
  cursor: pointer;
  user-select: none;
  font-size: 12px;
  color: var(--muted-foreground);
}
.otc-disc-eom-toggle input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.otc-disc-eom-track {
  position: relative;
  width: 30px;
  height: 17px;
  flex: none;
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted-foreground) 28%, transparent);
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.otc-disc-eom-thumb {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s ease;
}
.otc-disc-eom-toggle input:checked + .otc-disc-eom-track {
  background: var(--chart-2);
  border-color: var(--chart-2);
}
.otc-disc-eom-toggle input:checked + .otc-disc-eom-track .otc-disc-eom-thumb {
  transform: translateX(13px);
}
.otc-disc-eom-toggle input:focus-visible + .otc-disc-eom-track {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--chart-2) 35%, transparent);
}
.otc-disc-eom-text { white-space: nowrap; }
.otc-disc-popup {
  padding: 4px 18px 16px;
  max-height: min(72vh, 720px);
  overflow-y: auto;
  font-size: 12px;
}
.otc-disc-popup .table-scroll { overflow-x: auto; }
.otc-disc-popup table { width: 100%; }
.otc-disc-popup .dot { opacity: 0.5; margin: 0 2px; }
/* Opaque table panels — the modal is glass (translucent + backdrop-blur)
   over the live overview, which bleeds through and muddies the numbers.
   Wrap every table-scroll in --popover (the theme's opaque floating-
   surface token: solid in both dark + light) so the important figures
   sit on a clean, fully-opaque ground. */
.otc-disc-popup .table-scroll {
  background: var(--popover);
  border: 1px solid color-mix(in srgb, var(--border) 55%, transparent);
  border-radius: 8px;
}

/* Weighting summary — the value-weighted blend that arrives at d_agg. */
.otc-disc-weighting {
  margin-bottom: 16px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
  border-radius: 10px;
  /* Opaque (mix into --popover, not transparent) so the glass doesn't
     bleed through the blend math, while keeping a faint cyan OTC tint. */
  background: color-mix(in srgb, var(--chart-2) 7%, var(--popover));
}
/* The weighting table already sits on the opaque card above — keep its
   own scroll panel transparent + borderless so it doesn't read as a
   nested box-in-a-box. */
.otc-disc-weighting .table-scroll {
  background: transparent;
  border: 0;
  border-radius: 0;
}
.otc-disc-weighting-head { margin-bottom: 6px; }
.otc-disc-weighting-table th,
.otc-disc-weighting-table td { padding: 3px 8px; white-space: nowrap; }
.otc-disc-weighting-table tfoot .otc-disc-weighting-total > td {
  border-top: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  padding-top: 5px;
}
.otc-disc-weighting-formula {
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px dashed color-mix(in srgb, var(--border) 60%, transparent);
  line-height: 1.5;
}

/* Per-deal schedule block — one "Schedule & current value" table per deal,
   reusing the deals.css cadence-tranche-table accents (row-mtm / row-disc
   rails + tranche-eom-flip highlight). */
.otc-disc-deal { margin-top: 14px; }
.otc-disc-deal:first-of-type { margin-top: 0; }
.otc-disc-deal-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}
.otc-disc-deal-name { font-weight: 600; }
.otc-disc-deal-tags { display: inline-flex; gap: 5px; margin-left: auto; }
.otc-disc-deal .cadence-tranches-head { margin-bottom: 5px; }

.ov-pillar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Strategy section heads set --liveov-pillar-color via the
     [data-pillar] cascade; the Other-assets / Liabilities section
     heads don't, so the glyph falls through to the row's --row-accent
     (green / red) and matches its section ribbon. */
  color: var(--liveov-pillar-color, var(--row-accent, var(--foreground)));
}
.ov-pillar-icon svg {
  display: block;
}

/* ── Positions-breakdown table column widths ────────────────────────
   `table-layout: fixed` plus explicit per-column widths so expanding
   /collapsing a ticker- or contributor-rollup never re-flows the
   surrounding columns. Without this, a freshly revealed row with a
   wider Position cell (a longer venue label, a longer deal name)
   shifts every neighboring column by a few pixels — disorienting
   when the operator is mid-scan. */
#tab-liveoverview #liveov-table {
  table-layout: fixed;
  /* Width floor so the percentage column widths below resolve against a
     readable size instead of the viewport. Without it, a phone crushes
     all 9 columns into ~375px and the content is unreadable — and the
     .table-scroll wrapper never scrolls because a fixed-layout table
     with % widths can't grow past its container. With the floor the
     table overflows the wrapper and scrolls horizontally on narrow
     screens. No effect on desktop: the card is always wider than this. */
  min-width: 900px;
}
/* Cap the scroll wrapper so a long position list scrolls inside the
   card instead of running the whole page down, and pin the column
   header to the top of that region. The sticky header has to live
   inside this wrapper: .table-scroll is already a scroll container
   (overflow-x:auto forces overflow-y to compute to auto), so a
   page-viewport-relative sticky thead isn't reachable with the
   horizontal-scroll wrapper in between — it resolves against the
   wrapper instead, which is exactly what we want here. Both widths. */
#liveov-positions-anchor .table-scroll {
  max-height: 70vh;
  overflow-y: auto;
}
#tab-liveoverview #liveov-table thead th {
  position: sticky;
  top: 0;
  /* Above the tinted section-head / grand-total rows in tbody. */
  z-index: 3;
  /* Opaque fill — `--surface-card` is rgba(3,3,3,.30) in dark theme, so
     the old value let scrolled rows bleed straight through the floating
     header. It only looked solid in light mode, where --surface-card is
     #ffffff. `--input` is fully opaque in both themes (#0b0b0b dark /
     #ffffff light) and reads as the same surface as the card. */
  background: var(--input);
  /* Bottom divider as a box-shadow, not a border: under border-collapse
     a th's bottom border belongs to the table grid and scrolls away from
     the sticky header. A shadow is painted relative to the th, so the
     separating line stays pinned even when a body row is mid-way under
     the header. Non-inset (drawn just below the border box) so it spans
     full width including the 4px border-left on the first cell — an
     inset shadow clips to the padding box and would gap that corner.
     --border-strong keeps it clearly visible in both themes. */
  border-bottom: 0;
  box-shadow: 0 1px 0 var(--border-strong);
}
/* Body rows carry a 4px accent border-left (see the tbody
   tr[data-strategy] rule below); under border-collapse its outer 2px
   straddles the table's left grid line. The th keeps a matching 4px
   border-left purely so the header column stays pixel-aligned with the
   body column — keep this 4px in sync with the accent rule. */
#tab-liveoverview #liveov-table thead th:first-child {
  border-left: 4px solid var(--input);
}
/* A collapsed border belongs to the table grid, not the cell, so the
   th's own border-left scrolls away from the sticky header and a body
   row's accent pokes out on the left edge. This ::before is the real
   cover: an opaque bar absolutely positioned against the th — sticky is
   a positioned containing block, so the bar stays pinned with the
   header instead of scrolling off. right:100% parks it flush to the
   th's left edge; the 8px width is clipped back to the table edge by
   the .table-scroll wrapper, so it lands over exactly the 4px accent
   strip. --input matches the header fill (and the card, so any
   unclipped overflow is invisible). */
#tab-liveoverview #liveov-table thead th:first-child::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 100%;
  width: 8px;
  background: var(--input);
}
/* Column widths by position. Order: Source · POSITION · USD value ·
   % of AUM · APR · Venue/Chain · Qty · Entry · Mark · Liq Price
   (10 columns). The summary columns (USD value, % of AUM, APR) sit
   directly after POSITION so a collapsed row's money + return figures
   read without scrolling, and the per-leg detail columns (Venue, Qty,
   Entry, Mark, Liq) trail on the right.
   ────────
   All 10 widths MUST sum to exactly 100% so the fixed-layout table fits
   its container with no horizontal scroll on desktop — every column,
   including Liq Price, is visible by default. Venue/Chain is kept
   deliberately tight (it ellipsises long chain labels) so the four
   numeric detail columns to its right (Qty, Entry, Mark, Liq Price) all
   land inside the card. NB: this block has now twice been broken the
   same way — first the Entry column, then the APR column (col 5), each
   inserted without a matching width, which left the trailing column
   (Liq Price) with zero allocation. Under table-layout:fixed an unsized
   final column gets pushed into overflow past the table, so it sat off
   the right edge (needing a scroll) and the row/section backgrounds
   stopped short of it — reading as "unstyled". ALWAYS keep one width
   rule per column and all of them summing to 100%.
   ────────
   Qty (col 7) is widened to 12% because the ticker sub-headers pack a
   held / short / net(+Δ%) token stack into it — the "net" line is the
   widest content in the column. POSITION was cut 24→16% (it had the most
   slack — it's badge + symbol + a wrapping funding line, not free text)
   to make room for the APR column (8%) without stealing from the numeric
   detail columns. */
#tab-liveoverview #liveov-table thead th:nth-child(1) {  width: 7%; }
#tab-liveoverview #liveov-table thead th:nth-child(2) { width: 16%; }
#tab-liveoverview #liveov-table thead th:nth-child(3) { width: 11%; }
#tab-liveoverview #liveov-table thead th:nth-child(4) {  width: 7%; }
#tab-liveoverview #liveov-table thead th:nth-child(5) {  width: 8%; }
#tab-liveoverview #liveov-table thead th:nth-child(6) { width: 10%; }
#tab-liveoverview #liveov-table thead th:nth-child(7) { width: 12%; }
#tab-liveoverview #liveov-table thead th:nth-child(8) {  width: 9%; }
#tab-liveoverview #liveov-table thead th:nth-child(9) { width: 10%; }
#tab-liveoverview #liveov-table thead th:nth-child(10) { width: 10%; }
/* Venue cell (column 6) stays single-line with ellipsis on overflow —
   chain labels can be long ("avalanche c-chain"), but a single row of
   text is the right read. Position cell intentionally allows wrap
   so per-leg funding pills can flow onto a second line on narrow
   widths instead of being clipped behind an ellipsis. */
#tab-liveoverview #liveov-table tbody td:nth-child(6) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Position cell — allow wrap, pull content snug to the left so the
   ticker badge sits at the column edge by default. Detail rows get
   their nesting indent via the depth classes below; without this
   left pull the whole column would shift right by the cell's
   default padding, making the layered indent harder to read. */
#tab-liveoverview #liveov-table tbody td:nth-child(2) {
  padding-left: 4px;
}
/* Other-assets / Liabilities tail rows render the Source label as bare
   single-word cell text ("Liabilities"). With table-layout:fixed the
   narrow Source column can't fit it once the viewport is small or
   zoomed in, and a single word has no break opportunity — so it spilled
   out and overlapped the line label beside it. Clip with an ellipsis,
   the same single-line read the Venue column already uses. */
#tab-liveoverview #liveov-table tbody tr[data-section-tone]:not(.ov-source-head):not(.ov-grand-total) td:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* ── Strategy left-edge accent ─────────────────────────────────────
   Each row tagged with data-strategy gets a vertical color bar on the
   left edge of its first cell. Color = strategy's pillar color
   (oklch tones below — same palette the bento headers use); alpha
   fades by nesting depth so the section → ticker → contributor →
   leg hierarchy reads as a continuous gradient running top-to-bottom
   with no gaps between rows.
   Bar lives on td:first-child as `border-left` — table cells share
   edges via `border-collapse: collapse` (set on .datatable) so
   adjacent rows' borders butt up against each other without seams.
   ────────
   Single CSS variable `--row-accent-alpha` controls fade per row type.
   Color is set per data-strategy below, then color-mixed with
   transparent at the alpha. */
#tab-liveoverview #liveov-table tbody tr[data-strategy="defi_yield"] { --row-accent: oklch(0.76 0.13 78); }
#tab-liveoverview #liveov-table tbody tr[data-strategy="basis"]      { --row-accent: oklch(0.72 0.10 200); }
#tab-liveoverview #liveov-table tbody tr[data-strategy="otc_arb"]    { --row-accent: oklch(0.65 0.15 275); }
#tab-liveoverview #liveov-table tbody tr[data-strategy="collateral"] { --row-accent: oklch(0.74 0.03 80); }
/* Section tones — reuse the strategy row machinery (left accent bar +
   section-head ribbon + faded detail-row accent), keyed off
   data-section-tone instead of data-strategy. Green leans the Other-
   assets block, red the Liabilities block; a near-neutral graphite
   marks the Total positions / Current AUM grand-total rows. Low-chroma
   oklch keeps each tint a gentle lean, not a saturated alert. */
#tab-liveoverview #liveov-table tbody tr[data-section-tone="assets"]      { --row-accent: oklch(0.74 0.09 150); }
#tab-liveoverview #liveov-table tbody tr[data-section-tone="liabilities"] { --row-accent: oklch(0.66 0.10 27); }
#tab-liveoverview #liveov-table tbody tr[data-section-tone="total"]       { --row-accent: oklch(0.64 0.02 260); }
/* Default depth = leaf (lightest). Per-type overrides below escalate
   alpha for header rows so the section/ticker/contrib heads read as
   "stronger" anchors of their depth. */
#tab-liveoverview #liveov-table tbody tr[data-strategy],
#tab-liveoverview #liveov-table tbody tr[data-section-tone] {
  --row-accent-alpha: 22%;
}
#tab-liveoverview #liveov-table tbody tr.ov-source-head[data-strategy],
#tab-liveoverview #liveov-table tbody tr.ov-source-head[data-section-tone],
#tab-liveoverview #liveov-table tbody tr.ov-grand-total[data-section-tone] {
  --row-accent-alpha: 100%;
}
#tab-liveoverview #liveov-table tbody tr.ov-ticker-head[data-strategy] {
  --row-accent-alpha: 70%;
}
#tab-liveoverview #liveov-table tbody tr.ov-contrib-head[data-strategy] {
  --row-accent-alpha: 45%;
}
/* Paint — solid left border on the first cell, color-mixed against
   transparent at the per-row alpha. Width 4px reads as a clear
   accent without crowding the Source column's text. */
#tab-liveoverview #liveov-table tbody tr[data-strategy] > td:first-child,
#tab-liveoverview #liveov-table tbody tr[data-section-tone] > td:first-child {
  border-left: 4px solid color-mix(in srgb, var(--row-accent) var(--row-accent-alpha), transparent);
}

/* Leaf-row USD tone — green for net-positive, red for net-negative.
   Scoped to td.num so it only colors the USD cell (not the % of AUM
   column which has its own muted treatment). Excluded from aggregate
   rows by NOT being applied at the render layer — section heads /
   ticker heads / contrib heads / rollup / grand-total don't carry
   the is-positive/is-negative class. */
#tab-liveoverview #liveov-table tbody td.num.is-positive {
  color: var(--profit, var(--pos, #16a34a));
}
#tab-liveoverview #liveov-table tbody td.num.is-negative {
  color: var(--loss, var(--neg, #dc2626));
}

/* Liability fee rows (Accrued Management Fee / Performance Fees Payable)
   carry an inline projection — the held-flat balance-sheet figure plus
   fees accrued since the last BS. The working sits flush-right in the
   wide label cell so the projected total still lines up under the
   USD-value column; the calc stays on one line, wrapping below the
   label only when the bento is too narrow to fit both. */
#tab-liveoverview #liveov-table tbody td .ov-liab-fee-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
#tab-liveoverview #liveov-table tbody td .ov-liab-fee-line .ov-fee-proj-calc {
  white-space: nowrap;
}

/* Expand-all / collapse-all toggle on the ticker subheader. Click
   walks every nested level (contrib heads + their detail rows) in
   one shot — useful on tickers with contributor rollups where the
   normal ticker-click only reveals the +/− headers, not the legs
   underneath. Icon swap is driven entirely by CSS keyed on the
   parent ticker row's `is-expanded` class (set by both the icon
   handler AND the ticker-row toggle), so the glyph stays in sync
   no matter which control the operator used.
   Picks up the strategy accent color from --row-accent so the
   button reads as part of the ticker's strategy identity. */
.ov-ticker-expand-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  margin: 0;
  border-radius: 5px;
  background: color-mix(in srgb, var(--row-accent, var(--muted-foreground)) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--row-accent, var(--muted-foreground)) 32%, transparent);
  color: var(--row-accent, var(--muted-foreground));
  cursor: pointer;
  transition: background .12s ease, transform .08s ease, border-color .12s ease;
  vertical-align: middle;
}
/* Leading-cell holder for the expand-all button on ticker subheaders.
   Sits in col 1 (Source column) so the button is the leftmost visual
   anchor on the row, flush against the strategy-color accent strip
   that already runs along the row's left edge. Slight left padding
   buys clearance between the accent border and the button frame. */
.ov-ticker-head-lead {
  text-align: left;
  padding-left: 8px !important;
}
.ov-ticker-expand-all:hover {
  background: color-mix(in srgb, var(--row-accent, var(--muted-foreground)) 24%, transparent);
  border-color: color-mix(in srgb, var(--row-accent, var(--muted-foreground)) 50%, transparent);
}
.ov-ticker-expand-all:active {
  transform: scale(0.94);
}
.ov-ticker-expand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ov-ticker-expand-icon svg {
  display: block;
}
/* Icon swap — keyed on the button's OWN is-fully-expanded class,
   which the JS sets only when every collapsible level under the
   ticker (ticker head + every contrib head) is actually open. The
   ticker-row toggle on its own doesn't flip the icon, since opening
   just the ticker (without its contribs) isn't the "fully expanded"
   state the icon represents. The two SVGs both render in the DOM;
   we just hide one or the other via display so the toggle is a
   zero-paint flip. */
.ov-ticker-expand-all:not(.is-fully-expanded) .ov-ticker-expand-icon-fold {
  display: none;
}
.ov-ticker-expand-all.is-fully-expanded .ov-ticker-expand-icon-unfold {
  display: none;
}
.ov-ticker-expand-all.is-fully-expanded {
  background: color-mix(in srgb, var(--row-accent, var(--muted-foreground)) 26%, transparent);
  border-color: color-mix(in srgb, var(--row-accent, var(--muted-foreground)) 50%, transparent);
}

/* Section anchor rows — fade the accent color across the full
   row width from left to right, mirroring the strategy-split bento's
   gradient pattern so the table's section anchors read in the same
   visual language as the pillar cards above. Gradient sits on the
   <tr> rather than each <td> so it paints as ONE continuous wash
   spanning all 9 columns; per-cell gradients would chop into 9
   independent washes that visually reset at each column boundary.
   Ticker- and contrib-subheaders intentionally skip this — their td
   backgrounds (defined above) already carry their own tinted
   surface, and `background-image` on the tr would render BEHIND
   those cell backgrounds and never show through anyway. */
#tab-liveoverview #liveov-table tbody tr.ov-source-head[data-strategy],
#tab-liveoverview #liveov-table tbody tr.ov-source-head[data-section-tone],
#tab-liveoverview #liveov-table tbody tr.ov-grand-total[data-section-tone] {
  background-image: linear-gradient(
    90deg,
    color-mix(in srgb, var(--row-accent) 22%, transparent) 0%,
    color-mix(in srgb, var(--row-accent)  8%, transparent) 45%,
    transparent 100%
  );
}
/* Cells inherit the row gradient by having no background of their own.
   The `!important` here is defensive — some upstream `.datatable
   tbody tr:hover` rules set td backgrounds that would otherwise mask
   the strategy gradient; pinning transparent ensures the tr's wash
   stays visible on hover too.
   line-height: 1 on EVERY td of the section head — without this the
   label cell's content (which uses line-height: 1 internally so the
   icon + bold text + chips align to one midline) sits a few px above
   the USD-subtotal cell beside it (default 1.5 line-height pushes
   that cell's baseline lower). Pinning every td to the same
   line-height makes the row's baseline uniform and the content reads
   as truly centered. */
#tab-liveoverview #liveov-table tbody tr.ov-source-head[data-strategy] > td,
#tab-liveoverview #liveov-table tbody tr.ov-source-head[data-section-tone] > td,
#tab-liveoverview #liveov-table tbody tr.ov-grand-total[data-section-tone] > td {
  background: transparent !important;
}
/* Apply the line-height + vertical-align reset to ALL section-head
   cells — even ones without data-strategy (Other assets / Liabilities
   / venue-mode CEX section heads). Same baseline mismatch applies
   regardless of whether the row carries a strategy accent. */
#tab-liveoverview #liveov-table tbody tr.ov-source-head > td,
#tab-liveoverview #liveov-table tbody tr.ov-grand-total > td {
  line-height: 1;
  vertical-align: middle;
}

/* Nesting indent — Python-style stepped padding so the operator can
   read the row's depth at a glance. Class is applied by the row
   renderer based on whether the row sits under a section / ticker /
   contrib head. Indent is on the Position column only so the
   numeric columns stay perfectly aligned.
   ────────
   The ladder is intentionally asymmetric. Header rows (ticker head,
   contrib head) carry a leading chevron (width ~14px) before the
   ticker badge, so their badge ends up at `padding + chev_width`.
   Leaf rows (detail rows) have the badge as the first visible
   element, so its visual position equals the padding directly. To
   keep badges monotonically stepping rightward (ticker head → contrib
   head → leaf row), the leaf variants get a +14px bump over their
   header counterparts. End result:
     • ticker head badge:     padding 14  + chev → ~28px
     • flat-detail under ticker: padding 42 (-leaf)→ 42px
     • contrib head badge:     padding 28 + chev → ~42px
     • contrib detail badge:   padding 56          → 56px */
#tab-liveoverview #liveov-table tbody tr.ov-depth-1 td:nth-child(2) {
  padding-left: 14px;
}
#tab-liveoverview #liveov-table tbody tr.ov-depth-2 td:nth-child(2) {
  padding-left: 28px;
}
/* `ov-depth-2-leaf` — flat detail rows beneath a ticker head (no
   contrib rollup). One visual step deeper than the ticker head badge
   so the leaf reads as nested. Used by the collateral pillar (where
   the +/− split is disabled) and any future pillar in the disabled
   list. */
#tab-liveoverview #liveov-table tbody tr.ov-depth-2-leaf td:nth-child(2) {
  padding-left: 42px;
}
#tab-liveoverview #liveov-table tbody tr.ov-depth-3 td:nth-child(2) {
  padding-left: 56px;
}

/* ── Ticker sub-header row (strategy mode) ──────────────────────────
   Renders between the strategy section header and its detail rows,
   one per token that has 2+ legs in the same pillar (e.g. BTC spot +
   BTC perp inside Basis). Visually lighter than the section head so
   it reads as an intermediate level of nesting. Now collapsible —
   chevron flips, all rows below it (contrib heads + their hidden
   detail rows + flat detail rows for single-direction tickers)
   show / hide as a group. Default state is collapsed, so the table
   reads "section → ticker totals" until the operator drills in. */
.ov-ticker-head td {
  padding-top: 8px;
  padding-bottom: 6px;
  background: color-mix(in srgb, var(--surface-tinted, rgba(127,127,127,.04)) 60%, transparent);
  border-top: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
}
.ov-ticker-head {
  cursor: pointer;
  user-select: none;
}
.ov-ticker-head-label {
  font-weight: 600;
  margin-right: 8px;
}
.ov-ticker-chev {
  display: inline-block;
  width: 0.9em;
  margin-right: 4px;
  opacity: 0.75;
}

/* ── Contributor rollup row (positive / negative inside a ticker) ───
   Sits one nesting level deeper than the ticker sub-header. Indented
   further so the hierarchy reads as section → ticker → side. The
   entire row is the click target — the ▸ / ▾ chevron is just a visual
   cue. Padding on the trigger cell nests it under the ticker badge
   above. */
.ov-contrib-head td {
  padding-top: 4px;
  padding-bottom: 4px;
  background: color-mix(in srgb, var(--surface-tinted, rgba(127,127,127,.04)) 30%, transparent);
}
.ov-contrib-head {
  cursor: pointer;
  user-select: none;
}
/* Padding-left on .ov-contrib-trigger is now owned by the depth-2
   rule on td:nth-child(2) (Position column). Keep this rule a no-op
   placeholder so older markup that referenced it still has a class
   anchor for future tweaks. */
.ov-contrib-trigger {
  /* indent handled by ov-depth-2 */
}
.ov-contrib-chev {
  margin-right: 6px;
  opacity: 0.7;
}
.ov-contrib-label {
  font-weight: 600;
  margin-right: 6px;
}
.ov-contrib-label-text {
  margin-right: 6px;
}
/* Side-sign chip — a green "+" for long contributors, a red "−" for
   short. Conveys hedge structure at a glance even before the operator
   expands the rollup. Sign now sits AFTER the ticker badge so the
   badge column-position ladders cleanly with depth (chevron → badge
   → sign → label-text), and detail rows below can sit at a strictly
   deeper indent without colliding with the contrib-head badge. */
.ov-contrib-sign {
  display: inline-block;
  width: 1em;
  text-align: center;
  font-weight: 700;
  margin-right: 4px;
  margin-left: 2px;
}
.ov-contrib-sign-pos { color: oklch(0.62 0.16 145); }
.ov-contrib-sign-neg { color: oklch(0.60 0.18 25); }
/* Contributor detail rows are hidden by default (display:none inline)
   until their parent contrib head expands them. Position-column
   indent comes from the ov-depth-3 rule above — kept on td:nth-child(2)
   only so the numeric columns stay flush with their non-contrib peers
   in the same row position. */

/* ── Venue-mode section header (CEXs / OTC deals / DeFi) ────────────
   Top-level header in "By venue" mode. Sits above per-venue sub-headers
   (Binance Main, Ethereum chain, etc.) so the table reads section →
   venue → detail. The row carries data-strategy (set per section in
   renderBreakdownTableByVenue), so it inherits the same pillar
   left-accent bar + gradient wash strategy-mode section heads get via
   the shared tr.ov-source-head[data-strategy] rules above — the rules
   here just add the extra padding + heavier label weight on top. */
.ov-venue-section-head td {
  padding-top: 12px;
  padding-bottom: 10px;
  border-top: 1px solid var(--border);
}
.ov-venue-section-head .ov-source-head-label strong {
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}
/* The venue sub-header (one per CEX credential or DeFi chain) reads
   one level deeper than the section head. A subtle left padding bump
   nests it visually under the section label without needing a tree-
   widget indent rule. */
.ov-venue-subhead td:first-child {
  padding-left: 24px;
}
/* Venue mode is collapsible — section heads and venue subheads are
   click-to-toggle (handlers in setupLiveOverviewEvents). The whole row
   is the target; the ▸/▾ chevron is just the visual cue. */
.ov-venue-section-head,
.ov-venue-subhead {
  cursor: pointer;
  user-select: none;
}
.ov-venue-chev {
  display: inline-block;
  width: 0.9em;
  opacity: 0.75;
}
/* Venue sub-head carries the same data-strategy accent as its section,
   but one tier down: drop it to the strategy-mode ticker-head
   treatment — a fainter (70%) left accent bar + a flat surface tint,
   with NO full-width gradient wash. The wash stays exclusive to the
   top-level section head so section → venue → leaf reads as a clear
   hierarchy. These override the shared tr.ov-source-head[data-strategy]
   rules above; the > td background needs !important to beat that
   block's own `background: transparent !important`. */
#tab-liveoverview #liveov-table tbody tr.ov-venue-subhead[data-strategy] {
  --row-accent-alpha: 70%;
  background-image: none;
}
#tab-liveoverview #liveov-table tbody tr.ov-venue-subhead[data-strategy] > td {
  background: color-mix(in srgb, var(--surface-tinted, rgba(127,127,127,.04)) 60%, transparent) !important;
  border-top: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
}
/* Venue sub-head leading icon — DeFi chain logo or CEX brand badge.
   Sized to the in-row venue-cell standard (16px) so the section-head
   pillar glyph, the sub-head venue logo, and the detail rows' Venue
   cell icons all read at one weight. Without this the chain logo falls
   through to the bare .ticker-icon 1em circle and the CEX badge to its
   24px default — mismatched against each other and the section head. */
.ov-venue-subhead .ov-source-head-label .tdd-cex-logo-wrap,
.ov-venue-subhead .ov-source-head-label .ov-venue-icon {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  flex: none;
  overflow: hidden;
}
.ov-venue-subhead .ov-source-head-label .ticker-icon.ov-venue-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* ── Venue / chain cell — reuses CEX brand logos + DeFi chain logos
   so the breakdown's third column reads as `[logo] · venue · sub`
   instead of a bare text label. Layout is shared across CEX and DeFi
   sources via .ov-venue-cell; the icon swap (cexBadge vs ticker-icon)
   lives in venueCellHtml. */
.ov-venue-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.ov-venue-cell .tdd-cex-logo-wrap,
.ov-venue-cell .ov-venue-icon {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  flex: none;
  overflow: hidden;
}
.ov-venue-cell .ticker-icon.ov-venue-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.ov-venue-name {
  font-weight: 500;
}

/* ── Funding chips ──────────────────────────────────────────────────
   Compact pills showing funding economics. Two windows render side
   by side: lifetime (filled background, brand color) for the
   strategic read, and 24h (dashed border, dimmer fill) for the
   live-now read. Color polarity (pos/neg) keys to the funding
   direction — green received, red paid. Used on per-leg cex_upnl
   detail rows + the pillar bento (ticker aggregate heads moved to the
   flatter .ov-ticker-meta tag/value segments). */
.ov-funding-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .02em;
  vertical-align: middle;
  white-space: nowrap;
  /* line-height: 1 normalizes the children's box heights so the
     window-label and amount sit at the same vertical center. Without
     this, the smaller 9px window tag inherits its 1.5× line-height
     and visually floats above the amount text. */
  line-height: 1;
}
.ov-funding-chip-window {
  display: inline-flex;
  align-items: center;
  text-transform: uppercase;
  font-size: 9px;
  opacity: 0.7;
  letter-spacing: .04em;
  line-height: 1;
}
.ov-funding-chip-amount {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
/* Lifetime — solid background. Reads as the "default" / strategic
   number. */
.ov-funding-chip-lifetime.is-pos {
  background: color-mix(in srgb, var(--profit, #16a34a) 14%, transparent);
  color: var(--profit, #16a34a);
  border: 1px solid color-mix(in srgb, var(--profit, #16a34a) 40%, transparent);
}
.ov-funding-chip-lifetime.is-neg {
  background: color-mix(in srgb, var(--loss, #dc2626) 14%, transparent);
  color: var(--loss, #dc2626);
  border: 1px solid color-mix(in srgb, var(--loss, #dc2626) 40%, transparent);
}
/* 24h — dashed border + softer fill so it visually reads as the
   "live signal" companion to the lifetime chip without competing
   for attention. Same polarity colors. */
.ov-funding-chip-24h.is-pos {
  background: color-mix(in srgb, var(--profit, #16a34a) 7%, transparent);
  color: var(--profit, #16a34a);
  border: 1px dashed color-mix(in srgb, var(--profit, #16a34a) 50%, transparent);
}
.ov-funding-chip-24h.is-neg {
  background: color-mix(in srgb, var(--loss, #dc2626) 7%, transparent);
  color: var(--loss, #dc2626);
  border: 1px dashed color-mix(in srgb, var(--loss, #dc2626) 50%, transparent);
}
/* Legacy single-pill markup (used on the per-pillar bento where we
   haven't split into lifetime/24h yet) — keep the same fill styling
   to preserve appearance. */
.ov-funding-chip.is-pos:not(.ov-funding-chip-lifetime):not(.ov-funding-chip-24h) {
  background: color-mix(in srgb, var(--profit, #16a34a) 14%, transparent);
  color: var(--profit, #16a34a);
  border: 1px solid color-mix(in srgb, var(--profit, #16a34a) 40%, transparent);
}
.ov-funding-chip.is-neg:not(.ov-funding-chip-lifetime):not(.ov-funding-chip-24h) {
  background: color-mix(in srgb, var(--loss, #dc2626) 14%, transparent);
  color: var(--loss, #dc2626);
  border: 1px solid color-mix(in srgb, var(--loss, #dc2626) 40%, transparent);
}

/* ── OTC Deals card — per-deal Cumulative P&L + Time Decay ───────────
   The card sits below the Positions breakdown and renders one
   .liveov-otc-deal-card per active deal. Inside each card, the
   Cumulative P&L bento (.an-kpi.an-kpi-pnl, styled by analysis.css)
   sits on the left and the Time Decay panel on the right; below
   ~880px they stack vertically. Most of the inner visual identity
   (.an-kpi-summary-row, .an-progress) is inherited from analysis.css
   so the bento reads identically to the Analysis hero. */
.liveov-otc-deals-card { margin-top: 16px; }
.liveov-otc-deals-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
}
.liveov-otc-deals {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.liveov-otc-deal-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 14px;
  min-width: 0;
  transition: opacity .2s ease, filter .2s ease;
}
/* Completed deals — nothing left to vest. Pushed to the bottom of the
   stack by the JS sort; visually muted so the active rows above stay
   the focal point. Hover lifts the opacity so the operator can still
   read the numbers without effort. */
.liveov-otc-deal-card--complete {
  opacity: .55;
  filter: saturate(.45);
}
.liveov-otc-deal-card--complete:hover {
  opacity: .9;
  filter: saturate(.9);
}
.liveov-otc-deal-tag-complete {
  background: color-mix(in srgb, var(--muted-foreground) 18%, transparent);
  color: var(--muted-foreground);
  border: 1px solid color-mix(in srgb, var(--muted-foreground) 35%, transparent);
}
.liveov-otc-deal-head {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
}
.liveov-otc-deal-icon {
  width: 36px; height: 36px;
  margin-right: 0;
  flex: 0 0 36px;
}
.liveov-otc-deal-idtext {
  display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1;
}
.liveov-otc-deal-ticker {
  font-family: var(--font-mono);
  font-size: 14px; font-weight: 700; letter-spacing: .04em;
  line-height: 1.1; text-transform: uppercase;
}
.liveov-otc-deal-name {
  font-size: 13px; font-weight: 600; color: var(--foreground);
  line-height: 1.2;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.liveov-otc-deal-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.liveov-otc-deal-body {
  display: grid;
  /* auto-fit + minmax = container-aware wrap: as soon as the card is
     too narrow to fit both 280px panes, Time Decay drops below the
     Cumulative P&L bento instead of clipping. This is more reliable
     than a viewport media query because each card is only ~half the
     viewport when the deals list itself goes 2-up at ≥1200px. */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  align-items: stretch;
}
.liveov-otc-deal-body > * { min-width: 0; }
/* Override .an-kpi-pnl's `grid-column: span 2` from analysis.css —
   inside our 2-column body it would push the time-decay panel off-grid.
   Each panel claims a single column equally. */
.liveov-otc-deal-bento {
  grid-column: auto;
  min-width: 0;
  margin: 0;
}
.liveov-otc-deal-decay {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.liveov-otc-deal-decay-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 8px; flex-wrap: wrap;
}
.liveov-otc-deal-decay-title {
  font-size: 10px; font-weight: 600;
  color: var(--muted-foreground);
  text-transform: uppercase; letter-spacing: .1em;
}
.liveov-otc-deal-decay-stats {
  margin: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 14px;
}
.liveov-otc-deal-decay-stats > div {
  border-bottom: 0; padding: 2px 0;
}
.liveov-otc-deal-decay-stats dt { font-size: 9.5px; }
.liveov-otc-deal-decay-stats dd { font-size: 12px; }
/* Two-up grid on wide screens, single column on narrow. The body's
   internal Cumulative P&L / Time Decay split handles its own wrap via
   auto-fit above. */
@media (min-width: 1200px) {
  .liveov-otc-deals { grid-template-columns: repeat(2, 1fr); }
}

/* ── OTC deal hedge bar (perp linker borrow) ─────────────────────────
   On each OTC deal card, we now paint a per-venue stacked bar showing
   how the deal's tokens are split between spot (unhedged) and short
   perps across venues. Visually mirrors the live-hedge bar from the
   deals page: each segment is a venue's brand color, the unfilled-by-
   perp portion is rendered as a tagged "spot" segment in the ticker
   color, and the right-side readout names the % hedged.

   Data: see renderOtcHedgeBar() in live-overview.js — pulls venue
   shares from _liveRowsCache for the deal's ticker. */
.liveov-otc-hedge-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-tinted);
  margin-bottom: 4px;
}
.liveov-otc-hedge-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.liveov-otc-hedge-label {
  color: var(--muted-foreground);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 500;
}
.liveov-otc-hedge-pct {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--foreground);
}
.liveov-otc-hedge-pct.is-full   { color: var(--profit, #16a34a); }
.liveov-otc-hedge-pct.is-over   { color: var(--loss,   #dc2626); }
.liveov-otc-hedge-pct.is-empty  { color: var(--muted-foreground); }
.liveov-otc-hedge-bar-track {
  display: flex;
  height: 8px;
  background: var(--input);
  border-radius: 999px;
  overflow: hidden;
  min-width: 60px;
  position: relative;
}
.liveov-otc-hedge-seg {
  display: block;
  height: 100%;
  transition: width 120ms linear, background-color 120ms;
  position: relative;
}
.liveov-otc-hedge-seg + .liveov-otc-hedge-seg {
  /* Soft inner edge between adjacent venue segments — same trick the
     deals-page live-hedge bar uses; keeps colours readable when two
     brand colours land next to each other (e.g. Binance gold + Bybit
     orange). */
  box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.25);
}
.liveov-otc-hedge-seg.is-spot {
  /* Spot segment is what's NOT hedged — render as a faint diagonal
     stripe in the ticker color so it reads as "untouched / open". */
  background-image: repeating-linear-gradient(
    45deg,
    color-mix(in srgb, currentColor 60%, transparent) 0 4px,
    color-mix(in srgb, currentColor 25%, transparent) 4px 8px
  );
}
/* Legend strip under the bar — one chip per segment, with brand logo +
   token count. Wraps to multi-line when there are many venues. */
.liveov-otc-hedge-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-foreground);
}
.liveov-otc-hedge-legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.liveov-otc-hedge-legend-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex: none;
}
.liveov-otc-hedge-legend-swatch.is-spot {
  background-image: repeating-linear-gradient(
    45deg,
    color-mix(in srgb, currentColor 60%, transparent) 0 3px,
    color-mix(in srgb, currentColor 25%, transparent) 3px 6px
  );
}
.liveov-otc-hedge-legend-cex-icon {
  display: inline-flex;
  align-items: center;
  flex: none;
}
.liveov-otc-hedge-legend-cex-icon .tdd-cex-logo-wrap {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  overflow: hidden;
  display: inline-block;
}
.liveov-otc-hedge-legend-cex-icon .tdd-cex-logo-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.liveov-otc-hedge-legend-name {
  font-weight: 500;
  color: var(--foreground);
}
.liveov-otc-hedge-legend-qty {
  font-variant-numeric: tabular-nums;
}
/* Over-hedge state — when total perp shorts exceed the deal's tokens,
   tint the bar's outer ring red so the operator sees it without reading
   the %. Same pattern the deals-page live-hedge bar uses. */
.liveov-otc-hedge-bar.is-over .liveov-otc-hedge-bar-track {
  box-shadow: 0 0 0 1px var(--loss, #dc2626);
}
.liveov-otc-hedge-bar.is-empty {
  opacity: .7;
}

/* ════════════════════════════════════════════════════════════════════
   Month-to-Date Return card.

   Top of the 2/3-width right slot in the AUM headline block. Mirrors
   the yield card's chrome (rounded surface, subtle inset highlight) so
   the two stacked cards read as a pair. Shows fund-level gross + worst-
   LP net for the current month — same source the Monthly Performance
   bento's live cell uses.
   ════════════════════════════════════════════════════════════════════ */
.liveov-mtd-card {
  position: relative;
  border-radius: 10px;
  min-height: 130px;
  /* Tinted surface — a step nested inside the bento (--surface-card),
     so the card reads as distinct from the bento it sits in. */
  background: var(--surface-tinted);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--foreground) 3%, transparent);
  /* The card sits in a 2/3 slot of a 1/2-width bento column, so its
     own width drops well below the viewport-width assumption used by
     the old media-query breakpoint — at ~1280px viewport with sidebar
     and gaps the card is only ~280-320px wide and the 4-column grid
     starts overlapping. Container query (below) switches the grid to
     2x2 based on the card's actual width, regardless of viewport. */
  container-type: inline-size;
  container-name: mtd-card;
}
.liveov-mtd-card[data-state="empty"],
.liveov-mtd-card[data-state="loading"] {
  opacity: .55;
}

/* `container-type` (set on .liveov-mtd-card, .liveov-strat-rows, and
   .liveov-mp-class / .liveov-mp-block for their container queries) also
   makes them stacking contexts — which traps a `.hint` popover inside,
   painting it BEHIND a later-DOM sibling instead of over it (the MTD
   card's tip vs. the yield card below it; the USD table's live-dot tips
   vs. the BTC table below them — the popover background appears
   transparent where the sibling overpaints it). Lift the wrapper only
   while one of its hints is open, so the popover escapes and the default
   stacking order is left intact. */
.liveov-mtd-card:has(.hint:hover, .hint:focus-visible, .hint.is-open),
.liveov-strat-rows:has(.hint:hover, .hint:focus-visible, .hint.is-open),
.liveov-mp-class:has(.hint:hover, .hint:focus-visible, .hint.is-open),
.liveov-mp-block:has(.hint:hover, .hint:focus-visible, .hint.is-open) {
  z-index: 5;
}

.liveov-mtd-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: 14px 18px;
  min-height: 0;
}
.liveov-mtd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.liveov-mtd-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--foreground) 75%, transparent);
}
.liveov-mtd-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--profit);
  box-shadow: 0 0 8px color-mix(in srgb, var(--profit) 60%, transparent);
  /* Without this the dot gets squeezed horizontally by the long eyebrow
     text when the head's flex container runs short of room, collapsing
     into a ~1px-wide vertical sliver. */
  flex-shrink: 0;
  /* Reuse the yield card's pulse keyframes so the two paired cards
     read as a matched set. */
  animation: liveov-yield-pulse 2.4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .liveov-mtd-eyebrow-dot { animation: none; }
}
.liveov-mtd-month {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  white-space: nowrap;
}
/* Right side of the card head: the Fund | Formidium pricing-basis pill
   (same segmented control as the Monthly Performance Net/Gross toggle)
   next to the month label. Wraps under the eyebrow at narrow card widths
   via the head's flex-wrap. */
.liveov-mtd-head { flex-wrap: wrap; }
.liveov-mtd-head-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-wrap: wrap;
}
.liveov-pricing-toggle .liveov-pricing-btn {
  padding: 3px 8px 3px 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
/* Brand marks in the pill: the Spartan helmet next to Fund, the Formidium
   mark (the symbol at the left of the wordmark — auto-height sizing with
   left alignment crops the wide logo down to it) next to Formidium. Both
   ship in light + dark variants; pick by theme like the sidebar helmet and
   the reconciliation byline do. */
.liveov-pricing-ico {
  display: inline-block;
  width: 12px;
  height: 12px;
  flex: none;
  background-repeat: no-repeat;
  background-position: left center;
  opacity: .85;
}
.liveov-pricing-btn.is-active .liveov-pricing-ico { opacity: 1; }
.liveov-pricing-ico-fund { background-image: url('/spartan_helmet_light.svg'); background-size: contain; background-position: center; }
:root[data-theme="light"] .liveov-pricing-ico-fund { background-image: url('/spartan_helmet_dark.svg'); }
/* The Formidium symbol is 327 x 267 of the 1612-wide wordmark: at 12px tall
   it is 14.7px wide, so a square box cropped its right edge. */
.liveov-pricing-ico-formidium { width: 15px; background-image: url('/formidium-logo-white.svg'); background-size: auto 100%; }
:root[data-theme="light"] .liveov-pricing-ico-formidium { background-image: url('/formidium-logo-black.svg'); }
/* The admin basis is a preview, not the operating view — tint its active
   segment with CoinMarketCap blue so the card can't be misread as the book. */
.liveov-pricing-btn.is-active[data-pricing-mode="formidium"] {
  color: #2B6AFF;
  box-shadow: 0 1px 2px rgba(0,0,0,.06), inset 0 0 0 1px color-mix(in srgb, #2B6AFF 35%, transparent);
}
.liveov-mtd-card[data-pricing="formidium"] .liveov-mtd-eyebrow-dot {
  background: #2B6AFF;
  box-shadow: 0 0 8px color-mix(in srgb, #2B6AFF 60%, transparent);
}

/* ── Price-source icon in the breakdown's Mark column ────────────────
   Sits LEFT of the mark text on every leaf row: the brand mark of the
   source the shown price came from (venue logo on the Fund basis; CMC /
   CoinGecko / venue / "zero" on the Formidium basis). The title tooltip
   carries ours-vs-Formidium. Brand marks are CSS backgrounds rather than
   <img> — the in-place morph rewrites this cell every tick and an <img>
   there would re-decode each time (see updateBreakdownInPlace). Glyph
   kinds (chain / memo / unpriced) are inline SVG. */
.ov-px-src {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-right: 6px;
  vertical-align: -3px;
  border-radius: 3px;
  flex: none;
  color: var(--muted-foreground);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  cursor: help;
}
.ov-px-src svg { width: 12px; height: 12px; }
/* Icon + price stay on one line (the column is narrow at tablet widths). */
.ov-mark-cell { display: inline-flex; align-items: center; white-space: nowrap; }
.ov-px-src[data-src="cmc"]        { background-image: url('/img/external/CoinMarketCap_Logo.svg'); }
.ov-px-src[data-src="coingecko"]  { background-image: url('/img/external/coingecko_Logo.svg'); background-size: contain; border-radius: 50%; }
.ov-px-src[data-src="binance"]    { background-image: url('/img/cex/Binance_Logo.svg'); }
.ov-px-src[data-src="bybit"]      { background-image: url('/img/cex/Bybit_Logo.svg'); background-position: left center; }
.ov-px-src[data-src="okx"]        { background-image: url('/img/cex/OKX_Logo.svg'); filter: invert(1); }
:root[data-theme="light"] .ov-px-src[data-src="okx"] { filter: none; }
.ov-px-src[data-src="bitget"]     { background-image: url('/img/cex/Bitget_Logo.svg'); }
.ov-px-src[data-src="hyperliquid"] { background-image: url('/img/cex/HL_Logo.svg'); }
.ov-px-src[data-src="gate"]       { background-image: url('/img/cex/Gate_Logo.svg'); }
.ov-px-src[data-src="unpriced"]   { color: var(--loss); }
.ov-px-src[data-src="memo"]       { color: var(--muted-foreground); }
.ov-px-src[data-src="chain"]      { color: var(--muted-foreground); }
/* Wallet-priced: the chain's own logo (inline background-image), framed like
   the venue column's chain icon. */
.ov-px-src.is-chain-logo { background-size: cover; border-radius: 50%; background-color: color-mix(in srgb, var(--foreground) 8%, transparent); }
.ov-px-src:focus-visible { outline: 1px solid var(--ring); outline-offset: 1px; }
/* The same mark inside the popover rows — no hover affordance, no margin. */
.ov-px-src.ov-px-src-tip { margin-right: 0; cursor: default; width: 12px; height: 12px; }

/* The popover these icons open is a `.hint-tip.is-floating` — the hint
   component's surface and rich body vocabulary (css/components/hint.css). */
.hint-tip .ov-px-src.ov-px-src-tip { opacity: 1; }
/* The `(?)` beside the Fund | Formidium pill carries the pricing-delta table. */
.liveov-pricing-hint { flex: none; }
.liveov-mtd-grid {
  display: grid;
  /* Gross + Net carry $200K-scale values plus a % subtitle and need
     more room than the fee columns ($21K / $4K, no subtitle). Equal
     1fr columns were wrapping the "Net (worst LP)" label onto two
     lines and pushing the "K" suffix against the divider. The 1.4fr
     weight on the return columns gives them ~40% more space than the
     fee columns, which is enough to keep the labels on one line and
     the amounts clear of the separators at narrow bento widths. */
  grid-template-columns: 1.4fr 1px 1.4fr 1px 1fr 1px 1fr;
  gap: 12px;
  align-items: stretch;
  flex: 1;
  min-height: 0;
}
.liveov-mtd-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-width: 0;
}
.liveov-mtd-col-label {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  font-weight: 600;
}
.liveov-mtd-col-sep {
  width: 1px;
  background: color-mix(in srgb, var(--foreground) 8%, transparent);
}
.liveov-mtd-amount {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--foreground);
}
.liveov-mtd-amount.is-positive { color: var(--profit); }
.liveov-mtd-amount.is-negative { color: var(--loss); }
.liveov-mtd-pct {
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--muted-foreground);
}
.liveov-mtd-pct.is-positive { color: var(--profit); }
.liveov-mtd-pct.is-negative { color: var(--loss); }
/* Static descriptor variant — sits in the % slot of the Est. Fees
   column ("mgmt + perf") instead of a real percentage, so it keeps
   the column rhythm without picking up a sign color. */
.liveov-mtd-pct-static {
  letter-spacing: .04em;
  text-transform: lowercase;
}

/* Narrow card — the 7-track grid (4 amount columns + 3 separators) is
   far too tight when the card width drops; the 22px amounts collapse
   onto multiple lines and the "K" suffixes overlap the next column.
   Drop to a 2×2 grid and hide the vertical separators (horizontal
   padding still keeps the four cells visually distinct).

   Container-based, not viewport-based: the card sits in a 2/3 slot of
   a 1/2-bento column, so it gets squeezed at desktop viewports
   (~1100-1700px) even though `max-width: 640px` viewport never fires.
   500px threshold catches the zone where "+$194.1K" at 22px mono
   (~110px) starts overlapping the 1.4fr column's separator — the
   4-col layout only really fits comfortably above ~520px card width. */
@container mtd-card (max-width: 500px) {
  .liveov-mtd-content {
    padding: 14px 16px;
  }
  .liveov-mtd-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
  }
  .liveov-mtd-col-sep {
    display: none;
  }
  .liveov-mtd-amount {
    font-size: 19px;
  }
}

/* ── Tiered layout (desk instruction 2026-09-16) ─────────────────────
   perf-paint.js ensureMtdCardMarkup swaps the two-column skeleton above
   for three stacked tiers on the first paint (the skeleton in index.html
   stays as the loading state):
     1. GROSS · whole book   big amount + % of total effective capital
     2. the split            "BTC class pct% → $share" /
                             "USD class (1−pct)% → $post · % Gross MTD ROR"
     3. NET · worst / best   big amount + best line, USD class
   Hairlines between tiers do the job the vertical separators did. The
   grid's 7-track template is overridden by the flex column, so the
   narrow-card container query above no longer needs a variant. */
.liveov-mtd-grid.is-tiered {
  display: flex;
  flex-direction: column;
  gap: 0;
}
/* Each tier takes an equal share of any surplus card height (the two
   stacked cards are balanced on wide screens) and centres its lines, so
   the hairlines land evenly instead of the tiers bunching at the top. */
.liveov-mtd-tier {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  padding: 8px 0;
  flex: 1 0 auto;
}
.liveov-mtd-tier + .liveov-mtd-tier {
  border-top: 1px solid color-mix(in srgb, var(--foreground) 8%, transparent);
}
.liveov-mtd-tier:first-child { padding-top: 0; }
.liveov-mtd-tier:last-child  { padding-bottom: 0; }
/* Amount and % on one baseline; the "of total effective capital"
   descriptor trails the % in the same muted mono. */
.liveov-mtd-tier-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  min-width: 0;
}
.liveov-mtd-tier-row .liveov-mtd-pct-of {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-foreground);
}
.liveov-mtd-col-label-class {
  letter-spacing: .06em;
  text-transform: none;
  font-weight: 500;
}
/* Net line header: the label left, the compact USD / BTC toggle flush
   right on the same row. */
.liveov-mtd-tier-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.liveov-mtd-tier-head > .liveov-mtd-col-label { min-width: 0; }
.liveov-mtd-net-toggle {
  margin-left: auto;
  border-radius: 7px;
}
.liveov-mtd-net-toggle[hidden] { display: none; }
.liveov-mtd-net-toggle .liveov-mp-toggle-btn {
  padding: 2px 8px;
  font-size: 9.5px;
}
/* The split — two compact mono rows reading left to right as
   "class · weight → dollars", the USD row trailing its Gross MTD ROR. */
.liveov-mtd-split {
  gap: 4px;
}
.liveov-mtd-split-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--foreground);
  min-width: 0;
}
.liveov-mtd-split-row[hidden] { display: none; }
.liveov-mtd-split-label {
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted-foreground);
  /* Both rows' labels are the same width so the weights line up. */
  min-width: 62px;
}
.liveov-mtd-split-pct {
  color: var(--muted-foreground);
  min-width: 52px;
  text-align: right;
}
.liveov-mtd-split-arrow {
  color: color-mix(in srgb, var(--foreground) 35%, transparent);
}
.liveov-mtd-split-amount {
  font-weight: 600;
  /* Both rows carry a "· x% Gross MTD ROR" tail; a common amount width
     keeps the two tails in one column. */
  min-width: 8ch;
}
.liveov-mtd-split-amount.is-positive,
.liveov-mtd-split-ror-pct.is-positive { color: var(--profit); }
.liveov-mtd-split-amount.is-negative,
.liveov-mtd-split-ror-pct.is-negative { color: var(--loss); }
.liveov-mtd-split-ror {
  color: var(--muted-foreground);
}
.liveov-mtd-split-ror::before {
  content: "· ";
  color: color-mix(in srgb, var(--foreground) 35%, transparent);
}
.liveov-mtd-split-ror-label {
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
/* The split's hint sits at the row's end, flush with the amounts. */
.liveov-mtd-split-row > .hint {
  margin-left: auto;
}
/* Narrow card: the USD row's "· +0.87% Gross MTD ROR" tail would wrap
   mid-row with the dot orphaned at the line start — give it its own line
   under the weight column instead. */
@container mtd-card (max-width: 440px) {
  .liveov-mtd-split-ror {
    order: 1;             /* after the hint, so the hint stays on line one */
    flex-basis: 100%;
    padding-left: 70px;
  }
  .liveov-mtd-split-ror::before {
    content: none;
  }
}

/* ════════════════════════════════════════════════════════════════════
   Yield to be Realized by EOM — clean card.

   Sits in the 2/3-width right slot of the AUM headline block on /live.
   Forecasts d-neutral yield accrual between today and current month-end
   across every active OTC deal (spot held constant, no funding).

   Plain card chrome — the headline dollar amount carries the visual
   weight via solid profit-green, and the progress bar reuses the same
   semantic green. No chromatic blobs / no shimmer / no grain.
   ════════════════════════════════════════════════════════════════════ */
.liveov-yield-card {
  position: relative;
  /* Query container so the card adapts to ITS OWN width. Since it moved into
     a two-up row (`.liveov-yield-row`) its width is a function of the bento
     width AND whether that row has stacked, which no viewport media query
     can express. */
  container-type: inline-size;
  container-name: yield-card;
  border-radius: 10px;
  /* Halved from the previous 200px now that the MTD card sits above
     and the two share the available column height. Content padding +
     gap ladder still fits comfortably at this size. */
  min-height: 130px;
  /* Tinted surface — a step nested inside the bento (--surface-card),
     so the card reads as distinct from the bento it sits in. */
  background: var(--surface-tinted);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--foreground) 3%, transparent);
  /* No `overflow: hidden` — the progress-bar tooltip is anchored above
     the track and needs to escape the card upward. The progress track
     handles its own segment clipping via its own overflow:hidden. */
}
/* No OTC deals dims the OTC section only: the liquid section below it
   carries its own state and its own figures. */
.liveov-yield-card[data-state="empty"] .liveov-yield-otc {
  opacity: .55;
}

/* Content layer — padding ladder matches the left-side headline so the
   two columns share vertical rhythm. */
.liveov-yield-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 14px 18px;
  min-height: 0;
}

/* ── Sections: OTC, then liquid ────────────────────────────────────────
   The card is stretched to the row's height, and the row to whatever the
   left column (AUM waterfall + BTC-class table) leaves it, so it is often
   taller than its content. Each section grows by the same share of that
   slack and pins its label / value list to its own floor: the surplus
   lands as two even breaths between figure and list instead of one hole
   above the progress bar. */
.liveov-yield-sec {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 0 auto;
  min-width: 0;
}
.liveov-yield-sec + .liveov-yield-sec {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, var(--foreground) 8%, transparent);
}
.liveov-yield-sec[hidden] { display: none; }
.liveov-yield-sec[data-state="empty"] { opacity: .55; }
/* OTC alone (no liquid-yield access, e.g. an LP): the section has the whole
   card, so centre the figure, bar and key in the room between the eyebrow
   and the list rather than leaving all of it as one gap above the list. */
.liveov-yield-content:has(> .liveov-yield-liquid[hidden]) .liveov-yield-otc > .liveov-yield-figure { margin-top: auto; }
.liveov-yield-content:has(> .liveov-yield-liquid[hidden]) .liveov-yield-otc > .liveov-yield-legend { margin-bottom: auto; }
.liveov-yield-content:has(> .liveov-yield-liquid[hidden]) .liveov-yield-otc > .liveov-kv { margin-top: 0; }

/* ── Eyebrow ───────────────────────────────────────────────────────── */
/* The eyebrow has the line to itself (the ETA badge sits on the hero row),
   so it never wraps at half width. The min-height is the vesting calendar
   head's (month nav buttons), so the two cards' eyebrows share a centre
   line across the row. */
.liveov-yield-head {
  display: flex;
  align-items: center;
  min-height: 22px;
  min-width: 0;
}
.liveov-yield-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  /* Alone on its line, so it only wraps when the card is narrower than the
     label itself (a stacked phone layout). */
  min-width: 0;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--foreground) 75%, transparent);
}
.liveov-yield-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--profit);
  box-shadow: 0 0 8px color-mix(in srgb, var(--profit) 60%, transparent);
  /* Same anti-collapse guard as the MTD eyebrow dot — narrow phone
     widths squeeze the eyebrow flex children, and without flex-shrink:0
     the round dot becomes a vertical line. */
  flex-shrink: 0;
  animation: liveov-yield-pulse 2.4s ease-in-out infinite;
}
@keyframes liveov-yield-pulse {
  0%, 100% { opacity: .85; }
  50%      { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .liveov-yield-eyebrow-dot { animation: none; }
}
.liveov-yield-eta {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--foreground) 4%, transparent);
  border: 1px solid color-mix(in srgb, var(--foreground) 8%, transparent);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  color: var(--muted-foreground);
  white-space: nowrap;
}
.liveov-yield-eta-days {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--foreground);
  font-size: 12.5px;
}
.liveov-yield-eta-unit {
  letter-spacing: .02em;
}
#liveov-yield-eta-date {
  font-family: var(--font-mono);
  color: color-mix(in srgb, var(--foreground) 70%, transparent);
}

/* ── Figure: hero amount + bps over its basis caption ───────────────
   Amount and bps share one text baseline; in the OTC section the ETA badge
   rides the same row, pushed hard right (and onto its own line only when
   the card is too narrow for both). The caption names the basis under the
   number rather than trailing it, which is what used to crowd the badge
   off the eyebrow line at half width. */
.liveov-yield-figure {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.liveov-yield-hero-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  min-width: 0;
}
.liveov-yield-hero-row > .liveov-yield-eta { margin-left: auto; }
.liveov-yield-hero {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}
.liveov-yield-amount {
  font-family: var(--font-mono);
  /* Matches the MTD card's `.liveov-mtd-amount` so the two stacked
     cards in the right column share a single hero-number scale —
     yield no longer dominates over the MTD figures. */
  font-size: 22px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--profit);
}
.liveov-yield-amount.is-negative {
  color: var(--loss);
}
.liveov-yield-amount.is-zero {
  color: var(--muted-foreground);
}
.liveov-yield-bps {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--profit);
  letter-spacing: -0.01em;
}
.liveov-yield-bps.is-negative {
  color: var(--loss);
}
.liveov-yield-bps.is-zero {
  color: var(--muted-foreground);
  text-shadow: none;
}
.liveov-yield-bps-label {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted-foreground);
}

/* Progress bar sits right under the figure it splits, full width. It used
   to carry `margin-top: auto`, which parked it on the card's floor and, in
   a stretched card, opened all of the slack above it. */
.liveov-yield-progress {
  width: 100%;
  position: relative;
  margin-top: 2px;
}
.liveov-yield-progress-track {
  position: relative;
  height: 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--foreground) 6%, transparent);
  overflow: hidden;
}
.liveov-yield-progress-segments {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: stretch;
  border-radius: inherit;
  overflow: hidden;
}
.liveov-yield-progress-seg {
  display: block;
  height: 100%;
  cursor: pointer;
  transition:
    filter .15s ease,
    transform .15s ease,
    box-shadow .15s ease,
    background .15s ease;
  /* Hairline separator so adjacent segments read as discrete tokens
     even when their colors are close. */
  border-right: 1px solid color-mix(in srgb, var(--background) 60%, transparent);
}
.liveov-yield-progress-seg:last-child {
  border-right: none;
}
.liveov-yield-progress-seg:hover {
  filter: brightness(1.18) saturate(1.05);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--foreground) 18%, transparent);
}
/* The "remainder" segment occupies the post-EOM slice. Same hover
   affordance as token segments but rendered in a muted hatched style
   so it visually reads as "deferred past month-end" rather than just
   empty space. */
.liveov-yield-progress-seg.is-remainder {
  background:
    repeating-linear-gradient(
      135deg,
      color-mix(in srgb, var(--foreground) 16%, transparent) 0 4px,
      color-mix(in srgb, var(--foreground) 8%, transparent) 4px 8px
    );
  border-left: 1px solid color-mix(in srgb, var(--background) 60%, transparent);
}
.liveov-yield-progress-seg.is-remainder:hover {
  background:
    repeating-linear-gradient(
      135deg,
      color-mix(in srgb, var(--foreground) 26%, transparent) 0 4px,
      color-mix(in srgb, var(--foreground) 14%, transparent) 4px 8px
    );
  filter: none;
}

/* Tooltip — floats above the track, anchored to the hovered segment's
   horizontal center via inline `left:` set in JS. CSS keeps it pinned
   inside the track box via translate(-50%) and clamp via max-width. */
.liveov-yield-progress-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  max-width: min(340px, 92vw);
  padding: 10px 12px;
  border-radius: 8px;
  /* --popover is fully opaque (#030303 dark / #ffffff light); --surface-card
     is alpha 0.30 in dark and would render the tooltip see-through. */
  background: var(--popover);
  color: var(--popover-foreground);
  border: 1px solid color-mix(in srgb, var(--foreground) 16%, transparent);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.45),
    0 2px 6px rgba(0, 0, 0, 0.25);
  font-size: 11.5px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .12s ease;
  z-index: 4;
  white-space: normal;
}
.liveov-yield-progress-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
}
.liveov-yield-tip-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.liveov-yield-tip-swatch {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}
.liveov-yield-tip-swatch.is-muted {
  background:
    repeating-linear-gradient(
      135deg,
      color-mix(in srgb, var(--popover-foreground) 28%, transparent) 0 2px,
      color-mix(in srgb, var(--popover-foreground) 14%, transparent) 2px 4px
    );
}
.liveov-yield-tip-swatch-inline {
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
  width: 6px;
  height: 6px;
}
.liveov-yield-tip-ticker {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .02em;
}
.liveov-yield-tip-count {
  margin-left: auto;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted-foreground);
}
.liveov-yield-tip-walk {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
  padding: 6px 8px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--foreground) 4%, transparent);
  margin-bottom: 7px;
  font-variant-numeric: tabular-nums;
}
.liveov-yield-tip-walk-label {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted-foreground);
  margin-right: 2px;
}
.liveov-yield-tip-walk-from {
  font-family: var(--font-mono);
  color: var(--muted-foreground);
}
.liveov-yield-tip-walk-arrow {
  color: var(--muted-foreground);
  opacity: .7;
}
.liveov-yield-tip-walk-to {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--foreground);
}
.liveov-yield-tip-walk-delta {
  margin-left: auto;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--profit);
}
.liveov-yield-tip-deals {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 160px;
  overflow-y: auto;
}
.liveov-yield-tip-deal {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.liveov-yield-tip-deal-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: color-mix(in srgb, var(--foreground) 85%, transparent);
}
.liveov-yield-tip-deal-val {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  color: var(--profit);
}
.liveov-yield-tip-foot {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid color-mix(in srgb, var(--foreground) 8%, transparent);
  font-size: 10px;
}
/* ── Bar key ───────────────────────────────────────────────────────── */
/* The bar's segments named without a hover: token swatch, ticker, the
   dollars it crystallizes, largest first. One line, like the vesting
   calendar's legend; the painter keeps as many tokens as the width holds
   and folds the rest into a "+N" chip, so the line neither wraps nor clips
   an item in half. Square swatches, matching the bar segments and the
   tooltip, where the calendar's are round to match its dots. */
.liveov-yield-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  overflow: hidden;
  min-height: 13px;
  min-width: 0;
  margin-top: -3px;
}
.liveov-yield-legend:empty { display: none; }
.liveov-yield-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .02em;
  color: color-mix(in srgb, var(--foreground) 75%, transparent);
  white-space: nowrap;
}
.liveov-yield-legend-item.is-more { color: var(--muted-foreground); }
.liveov-yield-legend-swatch {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  flex-shrink: 0;
}
.liveov-yield-legend-val {
  font-variant-numeric: tabular-nums;
  color: var(--muted-foreground);
}

/* ── Label / value list ────────────────────────────────────────────── */
/* Shared by both cards in the row: each yield section's tallies and the
   vesting calendar's footer. The AUM waterfall's vocabulary (small-caps
   label left, mono value right on one edge), so the row reads like the
   column beside it. A row per figure at half width, where three labels
   side by side ("MONTH-START TOTAL", "DISCOUNTED DEALS") overflowed the
   card and wrapped the third under the first; a three-up strip once the
   card is wide (container queries below). `margin-top: auto` pins the list
   to its section's floor, so the yield card's lower list and the calendar
   footer end on the same line. */
.liveov-kv {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: auto 0 0;
  min-width: 0;
}
.liveov-kv-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.liveov-kv-label {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted-foreground);
}
.liveov-kv-value {
  margin: 0;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--foreground);
  white-space: nowrap;
}
.liveov-kv-value.is-negative { color: var(--loss); }

/* Wide card (the row stacked, or a wide bento): rows would leave a long
   empty run between label and value, so lay the three out side by side,
   label over value, split by hairlines. */
@container yield-card (min-width: 520px) {
  .liveov-kv {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }
  .liveov-kv-row {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 2px;
    padding: 0 12px;
    border-left: 1px solid color-mix(in srgb, var(--foreground) 8%, transparent);
  }
  .liveov-kv-row:first-child { padding-left: 0; border-left: 0; }
}
/* Narrow card: tighter gutters and a slightly smaller hero so the amount,
   bps and ETA badge keep one row. */
@container yield-card (max-width: 300px) {
  .liveov-yield-content { padding: 14px 15px; }
  .liveov-yield-amount { font-size: 20px; }
}
@media (max-width: 720px) {
  .liveov-yield-card { min-height: 180px; }
}

/* ════════════════════════════════════════════════════════════════════
   VESTING CALENDAR — right half of the yield row
   ════════════════════════════════════════════════════════════════════
   One dot per calendar day. Same surface, radius, border and inset
   highlight as the OTC Yield card beside it so the pair reads as one
   two-up row rather than two unrelated tiles. The hover tooltip is the
   yield card's `.liveov-yield-progress-tooltip` component — only the
   anchoring differs (it tracks a dot in two axes, not a bar segment in
   one), so the overrides live at the bottom of this block. */
.liveov-vest-card {
  position: relative;
  container-type: inline-size;
  container-name: vest-card;
  border-radius: 10px;
  min-height: 130px;
  background: var(--surface-tinted);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--foreground) 3%, transparent);
  /* No overflow clip — both the day tooltip and the month-jump popover
     are anchored inside the card and need to escape its box. */
}
.liveov-vest-card[data-state="empty"] {
  opacity: .55;
}
.liveov-vest-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 14px 18px;
  min-height: 0;
}

/* ── Eyebrow + month nav ───────────────────────────────────────────── */
.liveov-vest-head {
  display: flex;
  align-items: center;
  /* Wrap, don't crush: the month nav drops to its own right-aligned line
     before "VESTING CALENDAR" is allowed to truncate. The min-height is
     shared with the yield card's head next door so the two eyebrows sit on
     one centre line. */
  flex-wrap: wrap;
  gap: 4px 10px;
  min-height: 22px;
}
.liveov-vest-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--foreground) 75%, transparent);
}
.liveov-vest-eyebrow-text { white-space: nowrap; }
/* Static counterpart to the yield card's pulsing dot — this card reports a
   fixed schedule, not a number ticking toward month-end, so it doesn't
   claim live-ness it doesn't have. */
.liveov-vest-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--foreground) 45%, transparent);
}

.liveov-vest-nav {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  margin-left: auto;
}
.liveov-vest-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: none;
  color: var(--muted-foreground);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: color .12s ease, background .12s ease;
}
.liveov-vest-nav-btn:hover:not(:disabled) {
  color: var(--foreground);
  background: color-mix(in srgb, var(--foreground) 7%, transparent);
}
.liveov-vest-nav-btn:disabled {
  opacity: .28;
  cursor: default;
}
/* The month trigger + jump popover are the /tasks month picker
   (`.task-month-*`, css/pages/tasks.css) — reused wholesale so there is one
   month selector in the app. Only the trigger's density is tightened here to
   sit inside a card eyebrow rather than a card title. */
.liveov-vest-picker .task-month-trigger {
  padding: 2px 7px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.liveov-vest-picker .task-month-trigger:disabled {
  opacity: .4;
  cursor: default;
}
.liveov-vest-picker .task-month-chevron { width: 11px; height: 11px; }
/* tasks.css already right-aligns and z-indexes the popover; the only change
   it needs here is an OPAQUE surface. Over a card it is fine translucent,
   but on this card it can land on top of the dot grid or a day tooltip, and
   `--surface-elevated` is alpha-blended in the dark theme — the layer under
   it shows straight through. */
.liveov-vest-pop {
  background: var(--popover);
}

/* ── Dot grid ──────────────────────────────────────────────────────── */
/* The card is stretched to the row's height (the yield card beside it, and
   above that whatever the left column leaves), so the grid GROWS into that
   height instead of floating centred in it: its week rows are `1fr` over a
   floor, and each dot sizes to its cell (below). A tall card gets a bigger,
   evenly spaced month rather than a small one with bands of empty card
   above and below. */
.liveov-vest-body {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.liveov-vest-dow,
.liveov-vest-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  column-gap: 4px;
}
/* Exactly the month's week rows (`--vest-weeks`, 5 or 6, set by
   vesting-calendar.js renderGrid) sharing the grid's height, so a five-week
   month has no blank sixth row trailing under it. The grid's floor is
   always SIX rows, though: a calendar month spans five or six weeks
   depending on the weekday it opens on, and a grid sized to its rows moved
   the footer every time paging crossed one of those months. `--vest-row`
   is the per-row floor, the one knob for a compact card. */
.liveov-vest-grid {
  --vest-row: 14px;
  --vest-gap: 5px;
  flex: 1 1 auto;
  row-gap: var(--vest-gap);
  grid-template-rows: repeat(var(--vest-weeks, 6), minmax(var(--vest-row), 1fr));
  min-height: calc(6 * var(--vest-row) + 5 * var(--vest-gap));
}
/* …except in the empty state, where the grid holds one line of copy and six
   reserved rows would be 70px of nothing under it. */
.liveov-vest-card[data-state="empty"] .liveov-vest-grid {
  grid-template-rows: none;
  min-height: 0;
  align-content: center;
}
.liveov-vest-dow {
  margin-bottom: 7px;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--foreground) 38%, transparent);
  text-align: center;
}
/* Each cell is a hit target centred on its dot — one per calendar day, no
   number, so the month reads as a shape rather than a table. The cell takes
   its box from the grid track (it never sizes to content), so it is a SIZE
   container: the dot reads `cqmin` off it and scales with the row and
   column together, round in any aspect. */
.liveov-vest-cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  container-type: size;
}
.liveov-vest-cell.is-pad { visibility: hidden; }
/* Empty book — replaces the dot grid entirely, and the weekday header goes
   with it (there is no week to label). */
.liveov-vest-empty {
  grid-column: 1 / -1;
  padding: 10px 0;
  text-align: center;
  font-size: 11px;
  color: var(--muted-foreground);
}
.liveov-vest-card[data-state="empty"] .liveov-vest-dow { display: none; }
.liveov-vest-dot {
  /* The cell is the hover target, never the dot: a transform grows an
     element's HIT area as well as its paint, so a scaled-up dot would keep
     catching the pointer past the cell's edge and flicker against its
     neighbour. Taking the dot out of hit-testing pins the target to the
     cell's fixed box. */
  pointer-events: none;
  /* 12px in the compact 14px row (as before), up to 22px when the card is
     tall; whichever of the cell's width and height is shorter decides. */
  width: clamp(10px, 84cqmin, 22px);
  height: clamp(10px, 84cqmin, 22px);
  flex-shrink: 0;
  border-radius: 50%;
  /* Empty day — a faint disc, so the month's shape reads even where nothing
     unlocks and a vesting dot stands out by being FILLED, not by existing.
     Kept faint: at the larger sizes a stretched card draws, a heavier tone
     turned the empty days into the loudest thing on the grid. */
  background: color-mix(in srgb, var(--foreground) 7%, transparent);
  transition: transform .12s ease, box-shadow .12s ease;
}
/* A day carrying unlocks. `--vest-fill` is the flat token color for a single
   token and an equal-wedge conic-gradient for two or more (halves, thirds,
   …) — set inline by vesting-calendar.js dotFill(). */
.liveov-vest-cell.is-vest { cursor: default; }
.liveov-vest-cell.is-vest .liveov-vest-dot {
  background: var(--vest-fill);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--foreground) 6%, transparent);
}
/* Continuous (daily-cadence) vests: the wedge colors already carry reduced
   alpha, and a dashed-looking hairline ring keeps them legible on the light
   theme where a pale fill alone nearly disappears. */
.liveov-vest-cell.is-linear .liveov-vest-dot {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--foreground) 12%, transparent);
}
/* Already vested. Same colors at lower opacity rather than a different fill,
   so a month's history still reads per-token — it has simply happened. With
   today's ring between them the grid divides into behind / ahead at a glance. */
.liveov-vest-cell.is-past .liveov-vest-dot {
  opacity: .42;
}
.liveov-vest-tip-row.is-past .liveov-vest-tip-usd {
  color: color-mix(in srgb, var(--foreground) 60%, transparent);
}
.liveov-vest-cell.is-vest:hover .liveov-vest-dot,
.liveov-vest-cell.is-vest:focus-visible .liveov-vest-dot {
  transform: scale(1.25);
}
.liveov-vest-cell.is-vest:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 0;
}
/* Today — a ring around the dot rather than a different fill, so it reads as
   a position marker and never competes with an unlock's color. Full-strength
   `--foreground`: white on the dark theme, black on the light one, so "where
   are we now" is the first thing the grid tells you. Drawn as the dot's own
   outline (which follows its radius) so the ring tracks the dot's size. */
.liveov-vest-cell.is-today .liveov-vest-dot {
  outline: 1.5px solid var(--foreground);
  outline-offset: 3px;
}

/* ── Legend + footer ───────────────────────────────────────────────── */
/* The token legend sits directly under the grid it keys, on a line of its
   own with a reserved height: inline beside the tallies it used to wrap
   onto a second line as soon as a month held enough tokens, which moved the
   dot grid every time you paged. The month's tallies close the card in the
   shared label / value rows (`.liveov-kv`), so their last line lands on the
   yield card's last line beside it. */
.liveov-vest-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  /* One line, always. `min-height` holds the row open when the month has no
     tokens at all, `nowrap` + `hidden` stop a crowded month from growing it.
     The renderer caps the list and appends a "+N" chip, so nothing important
     is lost to the clip. */
  flex-wrap: nowrap;
  overflow: hidden;
  min-height: 12px;
  min-width: 0;
}
.liveov-vest-foot {
  padding-top: 9px;
  border-top: 1px solid color-mix(in srgb, var(--foreground) 7%, transparent);
}
.liveov-vest-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .02em;
  color: color-mix(in srgb, var(--foreground) 70%, transparent);
  white-space: nowrap;
}
.liveov-vest-legend-item.is-linear { color: var(--muted-foreground); }
.liveov-vest-legend-item.is-more { color: var(--muted-foreground); }
.liveov-vest-legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Day tooltip ───────────────────────────────────────────────────
   The yield card's tooltip surface, re-anchored: JS writes `left` + `top`
   in `.liveov-vest-body` coordinates for the hovered dot, so the transform
   has to lift the box onto that point instead of the bar-centered
   `translateX(-50%)` the base rule uses. `.is-below` flips it under the dot
   for the grid's first row, where there is no room above. */
.liveov-vest-tooltip {
  bottom: auto;
  transform: translate(-50%, -100%);
  min-width: 230px;
  max-width: min(320px, 86vw);
  /* Vanishes the instant the pointer leaves a dot. The base rule fades both
     ways, which on a grid of 30 adjacent targets leaves the last day's
     tooltip ghosting over the next one. Declaring the transition only on the
     visible state means it eases IN and cuts OUT. */
  transition: none;
}
.liveov-vest-tooltip.is-visible {
  transition: opacity .1s ease;
}
.liveov-vest-tooltip.is-below {
  transform: translate(-50%, 0);
}
/* The base rule scrolls its deal list past 160px, but a tooltip is
   `pointer-events: none` so that scrollbar is unreachable. The day list is
   capped in JS instead (+N more), so let it size to its content here. */
.liveov-vest-tooltip .liveov-yield-tip-deals {
  max-height: none;
  overflow: visible;
}
/* The yield card paints its walk-delta in profit-green because that figure
   IS a gain. A day's unlock is neither a gain nor a loss — it is tokens
   changing from locked to free — so it reads in plain foreground. */
.liveov-vest-tooltip .liveov-yield-tip-walk-delta { color: var(--foreground); }
/* One block per deal releasing tokens that day: ticker + tranche x/max +
   dollars on the first line, deal name + token quantity on the second. */
.liveov-vest-tip-row {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 3px 0;
}
.liveov-vest-tip-row + .liveov-vest-tip-row {
  border-top: 1px solid color-mix(in srgb, var(--popover-foreground) 7%, transparent);
}
.liveov-vest-tip-r1,
.liveov-vest-tip-r2 {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}
.liveov-vest-tip-tk {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: .02em;
}
.liveov-vest-tip-chip {
  padding: 1px 5px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--popover-foreground) 8%, transparent);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted-foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.liveov-vest-tip-usd {
  margin-left: auto;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--foreground);
}
.liveov-vest-tip-row.is-linear .liveov-vest-tip-usd {
  font-weight: 500;
  color: color-mix(in srgb, var(--foreground) 72%, transparent);
}
.liveov-vest-tip-deal {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10.5px;
  color: var(--muted-foreground);
}
.liveov-vest-tip-qty {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 10.5px;
  color: color-mix(in srgb, var(--foreground) 60%, transparent);
}
.liveov-vest-tip-more {
  margin-top: 4px;
  font-size: 10px;
}

/* Narrow card: tighter gutters, and the month trigger drops its chevron. */
@container vest-card (max-width: 300px) {
  .liveov-vest-content { padding: 14px 15px; }
  .liveov-vest-picker .task-month-chevron { display: none; }
  .liveov-vest-picker .task-month-trigger { padding: 2px 6px; }
}
/* Wider card: a taller row floor and more air between weeks, so even an
   unstretched calendar draws 14px dots. Keyed on the card's own width so it
   doesn't matter WHY the card got wide (stacked row, collapsed headline
   block, wide bento). */
@container vest-card (min-width: 340px) {
  .liveov-vest-grid { --vest-row: 16px; --vest-gap: 7px; }
}
/* Wide card: the footer tallies go three-up, as in the yield card. */
@container vest-card (min-width: 520px) {
  .liveov-kv {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }
  .liveov-kv-row {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 2px;
    padding: 0 12px;
    border-left: 1px solid color-mix(in srgb, var(--foreground) 8%, transparent);
  }
  .liveov-kv-row:first-child { padding-left: 0; border-left: 0; }
}
@media (max-width: 720px) {
  .liveov-vest-card { min-height: 180px; }
}
