/* Revenue & Royalties redesign shell */
#mgmtFinancials { max-width: none; } /* full-bleed like the Wire (was a 920px Robinhood column — changed per Ollie) */
#mgmtFinancials .mgmt-main { padding-top: 24px !important; }
.rh-label { font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.rh-hero-card { --coral-on-dark: #ef8f8f; --red-on-dark: #f87171; --green-on-dark: #4ade80; position: relative; overflow: hidden; border-radius: 16px; padding: 30px 34px 34px; margin: 0 0 22px; background: linear-gradient(145deg, #0d1f14 0%, #1a3d2b 60%, #0d2318 100%); border: 1px solid rgba(74,222,128,0.18); }
.rh-hero-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 82% 45%, rgba(74,222,128,0.12) 0%, transparent 70%); pointer-events: none; }
.rh-hero-card > * { position: relative; }
.rh-hero-card .rh-hero-label { margin-bottom: 10px; color: #4ade80; }
.rh-total { font-family: var(--font-mono); font-size: 46px; font-weight: 600; letter-spacing: 0; color: #fff; line-height: 1; }
.rh-total .cents { font-size: 0.55em; font-weight: 600; color: rgba(255,255,255,0.5); }
.rh-hero-meta { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.rh-delta { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: #4ade80; }
.rh-delta.down { color: var(--coral); }
.rh-hero-card .rh-delta.down { color: var(--coral-on-dark); }
.rh-hero-card .period-note { font-family: var(--font-body); font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.58); }
/* Sub-page switcher: pills ABOVE a full-width hairline — the line marks
   "these change the page", while on-page pills float free of it */
.rh-seg { display: flex; gap: 6px; margin: 0 0 16px; border-bottom: 1px solid var(--border); padding-bottom: 16px; }
/* exact house filter-pill recipe (To Do / Wire) — every option is a pill */
.rh-seg-btn { font-family: var(--font-body); font-size: 13px; font-weight: 700; color: var(--green); background: transparent; padding: 8px 18px; border-radius: 999px; border: 1px solid rgba(45,106,79,0.25); transition: all 150ms var(--ease); }
.rh-seg-btn:hover { background: var(--green-dim); border-color: rgba(45,106,79,0.4); }
.rh-seg-btn.active { color: var(--green); background: var(--green-dim); border-color: rgba(45,106,79,0.35); }
.rh-chart-wrap { position: relative; height: 300px; margin: 4px 0 8px; }
.rh-chart-wrap canvas { position: absolute; inset: 0; cursor: crosshair; }
.rh-periods { display: flex; gap: 4px; margin: 4px 0 0; flex-wrap: wrap; }
.rh-period { font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.02em; color: var(--text-3); padding: 7px 16px; border-radius: 999px; transition: color 160ms var(--ease), background 160ms var(--ease); }
.rh-period:hover { color: var(--text); background: rgba(0,0,0,0.03); }
[data-theme="dark"] .rh-period:hover { background: rgba(255,255,255,0.05); }
.rh-period.active { color: var(--green); background: var(--green-dim); box-shadow: inset 0 0 0 1px rgba(45,106,79,0.25); }
/* no browser-blue focus ring — clicked pills read as the house green pill;
   keyboard focus gets the soft green ring (same treatment as the artist pill) */
.rh-period:focus { outline: none; }
.rh-period:focus-visible { outline: none; box-shadow: inset 0 0 0 1px rgba(45,106,79,0.25), 0 0 0 3px rgba(45,106,79,0.16); }
/* chart-mode pills (LINE/BARS) sit at the far end of the period row */
.rh-period.rh-mode { margin-left: auto; }
.rh-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 40px 0 18px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.rh-stat { min-width: 0; padding: 20px; }
.rh-stat + .rh-stat { border-left: 1px solid var(--border); }
.rh-stat-val { min-width: 0; margin-top: 8px; font-family: var(--font-mono); font-size: 22px; font-weight: 600; letter-spacing: 0; color: var(--text); line-height: 1.15; overflow-wrap: anywhere; }
.rh-stat-val.txt { font-family: var(--font-body); font-weight: 800; }
#mgmtFinancials #finChartToggle,
#mgmtFinancials #finYoyBtn,
#mgmtFinancials #finShowAllBtn { display: none !important; }
.rh-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); column-gap: 40px; row-gap: 34px; align-items: start; }
.rh-cell-platforms,
.rh-cell-countries,
.rh-cell-wheel,
.rh-cell-pps { min-width: 0; }
.rh-cell-wheel { display: flex; align-self: stretch; flex-direction: column; }
/* Countries lists EVERY country but never outgrows the Platforms cell:
   the cell stretches to the grid row while the list's height:0 keeps its
   content out of the row-height calculation — Platforms sets the height,
   the full country list scrolls inside it. */
.rh-cell-countries { display: flex; align-self: stretch; flex-direction: column; }
#finTopCountriesList { height: 0; flex: 1 0 auto; overflow-y: auto; padding-right: 6px; scrollbar-width: thin; scrollbar-color: rgba(45,106,79,0.25) transparent; }
/* Platforms lists every store too — its cap is what sizes the shared row,
   so both columns scroll at the same height */
#finPlatformBars, #finPayPerStream { max-height: 322px; overflow-y: auto; padding-right: 6px; scrollbar-width: thin; scrollbar-color: rgba(45,106,79,0.25) transparent; }
.rh-prow { display: grid; grid-template-columns: 116px 1fr auto; align-items: center; gap: 16px; padding: 11px 0; }
.rh-prow + .rh-prow { border-top: 1px solid var(--border); }
.rh-pname { overflow: hidden; font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--text-2); text-overflow: ellipsis; white-space: nowrap; }
.rh-ptrack { height: 6px; overflow: hidden; border-radius: 999px; background: rgba(0,0,0,0.05); }
.rh-pfill { height: 100%; border-radius: 999px; }
.rh-pval { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; }
.rh-pval .pct { margin-left: 6px; color: var(--text-3); font-weight: 500; }
.rh-lrow { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; }
.rh-lrow + .rh-lrow { border-top: 1px solid var(--border); }
.rh-lname { display: flex; align-items: center; gap: 12px; font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--text-2); }
.rh-lrank { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }
.rh-lval { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--text); text-align: right; }
.rh-lsub { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }
.rh-pps-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.rh-prow,
.rh-lrow { transition: background 140ms var(--ease); }
.rh-prow:hover,
.rh-lrow:hover { background: rgba(45,106,79,0.045); }
.rh-snapshot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
/* Filter matches its row-mates (History / Export PDF): the house mono
   toolbar recipe with the green wash — the old body-font outline pill
   read as foreign and faded into the page (Ollie, 2026-08-05) */
.rh-filter-pill { display: inline-flex; align-items: center; gap: 7px; padding: 10px 18px; border: 1px solid rgba(45,106,79,0.25); border-radius: 8px; background: var(--green-dim); color: var(--green); font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; transition: color 160ms var(--ease), background 160ms var(--ease), border-color 160ms var(--ease); }
.rh-filter-pill:hover { background: var(--green); color: #fff; }
.rh-filter-pill.open { background: var(--green); color: #fff; border-color: var(--green); }
/* inline-block is load-bearing: transform is IGNORED on non-replaced
   inline elements, so inside a plain (non-flex) button the caret silently
   refused to flip while getComputedStyle still reported the rotation
   (Ollie caught History's arrow not moving, 2026-08-05) */
.rh-filter-caret { display: inline-block; font-size: 10px; line-height: 1; transition: transform 160ms var(--ease); }
.rh-filter-pill.open .rh-filter-caret { transform: rotate(180deg); }
.rh-filter-row { display: none; margin: -6px 0 20px; }
/* Popup card anchored under the Filter pill (JS sets top/right from the
   pill's rect) — the options used to strand in page flow below the stats,
   nowhere near the button that opened them (Ollie, 2026-08-05) */
#mgmtFinancials { position: relative; }
.rh-filter-row.open {
  display: block; position: absolute; z-index: 40; margin: 0;
  min-width: 300px; max-width: min(600px, calc(100% - 48px)); padding: 14px 16px;
  background: var(--surface); border: 1px solid rgba(45,106,79,0.28); border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.2), 0 2px 10px rgba(0,0,0,0.1);
}
[data-theme="dark"] .rh-filter-row.open { background: #1e1b18; border-color: rgba(255,255,255,0.15); }
/* nested option lists open LEFTWARD inside the popup — right-anchored the
   last one (Title) ran off the viewport edge */
.rh-filter-row.open .fin-filter-panel { left: auto; right: 0; }
/* stable popup height: the Clear all row always occupies its space and the
   chips hide (the buttons' count badges already say what's selected), so
   selecting a filter never resizes the card mid-interaction */
/* Clear all rides the SAME row as the filter pills — its inline
   width:100% forced a wrap onto its own line (Ollie, 2026-08-05). Height
   stays stable because the button is always rendered, only enabled state
   changes. */
.rh-filter-row.open #finActiveFilters { display: flex !important; align-items: center; width: auto !important; margin: 0 0 0 auto; padding: 0; min-height: 0; }
.rh-filter-row.open .fin-filter-bar { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
/* the dropdown wrappers are inline-block, whose baseline descender gap sat
   Clear all ~5px lower than the pills — flex removes it */
.rh-filter-row.open .fin-filter-dropdown { display: flex; align-items: center; }
.rh-filter-row.open .fin-filter-chip { display: none; }
.rh-filter-row.open .fin-filter-clear[disabled] { opacity: 0.35; pointer-events: none; }
/* the count badge that appears on a selected filter inflated the button's
   line box (+7px), so the row still grew — pin the height instead */
.rh-filter-row.open .fin-filter-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; box-sizing: border-box; }
.rh-filter-row.open .fin-filter-btn > * { line-height: 1; }
/* ── One pill family in the popup (Ollie, 2026-08-05) ──────────────
   The filter buttons and Clear all take the same recipe as the page's
   LINE/BARS and 1M/3M/6M pills: mono, 999px, quiet until engaged, house
   green-dim wash when active (not a solid fill). Kills the browser-blue
   focus ring for the house soft green one. */
#mgmtFinancials .rh-filter-row.open .fin-filter-btn,
#mgmtFinancials .rh-filter-row.open .fin-filter-clear {
  /* same type as the hero pills (Ollie, 2026-08-05) */
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px; padding: 0 16px; height: 32px; box-sizing: border-box;
  background: transparent; border: 1px solid var(--border-med); color: var(--text-3);
  transition: color 160ms var(--ease), background 160ms var(--ease), border-color 160ms var(--ease);
}
#mgmtFinancials .rh-filter-row.open .fin-filter-btn:hover { color: var(--text); background: rgba(0,0,0,0.03); }
#mgmtFinancials .rh-filter-row.open .fin-filter-btn.has-selection {
  color: var(--green); background: var(--green-dim); border-color: rgba(45,106,79,0.25);
  box-shadow: inset 0 0 0 1px rgba(45,106,79,0.25);
}
#mgmtFinancials .rh-filter-row.open .fin-filter-clear:hover {
  color: var(--coral); border-color: rgba(155,68,68,0.3); background: rgba(155,68,68,0.06);
}
.rh-filter-row.open .fin-filter-btn:focus,
.rh-filter-row.open .fin-filter-clear:focus { outline: none; }
.rh-filter-row.open .fin-filter-btn:focus-visible,
.rh-filter-row.open .fin-filter-clear:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(45,106,79,0.16); }
#mgmtFinancials .rh-filter-row .fin-filter-bar { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
#mgmtFinancials .rh-filter-row .fin-filter-label { display: none; }
.rh-cell-wheel .rh-wheel-wrap { flex: 1 1 auto; min-height: 200px; height: auto; }
.rh-wheel-wrap { position: relative; min-width: 0; }
.rh-wheel-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.rh-track-tools { display: inline-flex; align-items: center; justify-content: flex-end; gap: 10px; }
.rh-track-tools a { font-family: var(--font-body); font-size: 13px; font-weight: 700; color: var(--green); white-space: nowrap; }
.rh-tsearch { display: inline-block; width: 190px; padding: 7px 14px; border: 1px solid var(--border-med); border-radius: 999px; background: var(--surface); color: var(--text); font-family: var(--font-mono); font-size: 12px; outline: none; transition: border-color 140ms var(--ease); }
.rh-tsearch:focus { border-color: var(--green); }
.rh-twrap { overflow-x: auto; max-width: 100%; }
.rh-twrap.open { max-height: 380px; overflow-y: auto; }
.rh-twrap.open thead th { position: sticky; top: 0; z-index: 2; background: var(--bg); }
.rh-legacy-track-toggle { display: none; }
.rh-section { margin-top: 42px; }
.rh-section-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.rh-section-hd h3 { margin: 0; font-family: var(--font-body); font-size: 17px; font-weight: 800; color: var(--text); }
.rh-sec-toggle { cursor: pointer; user-select: none; }
.rh-sec-caret { display: inline-block; width: 14px; font-size: 12px; color: var(--text-3); }
.rh-section-hd a { font-family: var(--font-body); font-size: 13px; font-weight: 700; color: var(--green); }
#segEarnings .rh-section + .rev-card { margin-top: 42px; }
.rh-import-btn,
.rh-exp-save,
.rh-modal-close,
.rh-book-new { cursor: pointer; transition: background 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease), box-shadow 160ms var(--ease); }
.rh-import-btn { font-family: var(--font-body); font-size: 13px; font-weight: 700; color: var(--green); padding: 9px 16px; border: 1px solid rgba(45,106,79,0.25); border-radius: 999px; background: transparent; }
.rh-import-btn:hover,
.rh-modal-close:hover,
.rh-book-new:hover { background: var(--green-dim); border-color: rgba(45,106,79,0.4); }
#finForecastBanner { display: none; }
.rh-fc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rh-fc-card { padding: 22px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); transition: transform 180ms var(--ease), box-shadow 180ms var(--ease); }
.rh-fc-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,24,20,0.07); }
.rh-fc-month { font-family: var(--font-body); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.rh-fc-val { margin: 10px 0 4px; font-family: var(--font-mono); font-size: 26px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
.rh-fc-tag { font-family: var(--font-body); font-size: 11px; font-weight: 600; color: var(--green); }
.rh-table { width: 100%; border-collapse: collapse; }
.rh-table th { padding: 0 0 12px; font-family: var(--font-body); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); text-align: right; }
.rh-table th:nth-child(1) { width: 26px; text-align: left; }
.rh-table th:nth-child(2) { text-align: left; }
.rh-table td { padding: 12px 0; border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: 13px; color: var(--text); text-align: right; }
.rh-table td:nth-child(1) { color: var(--text-3); text-align: left; }
/* The right-aligned last column shouldn't kiss the section edge */
.rh-table th:last-child, .rh-table td:last-child { padding-right: 12px; }
.rh-table td:nth-child(2) { text-align: left; }
#segEarnings .rh-table td:nth-child(2),
#segExpenses .rh-table td:nth-child(2) { font-family: var(--font-body); font-weight: 600; color: var(--text-2); }
#segExpenses .rh-table th:nth-child(1) { width: auto; }
#segExpenses .rh-table th:nth-child(3),
#segExpenses .rh-table th:nth-child(4) { text-align: left; }
#segExpenses .rh-table td:nth-child(1) { font-size: 11px; color: var(--text-2); }
#segExpenses .rh-table td:nth-child(3) { font-family: var(--font-body); font-size: 12px; font-weight: 600; color: var(--text); text-align: left; }
#segExpenses .rh-table td:nth-child(4) { font-size: 11px; color: var(--text); text-align: left; }
#segNet .rh-table th:nth-child(1) { width: auto; }
#segNet .rh-table th:nth-child(2) { text-align: right; }
#segNet .rh-table td:nth-child(1) { font-size: 11px; color: var(--text); }
#segNet .rh-table td:nth-child(2) { text-align: right; }
#segNet .rh-table td:nth-child(4) { font-weight: 700; }
#segNet .rh-neg { color: var(--coral) !important; }
.rh-table tbody tr { transition: background 140ms var(--ease); }
.rh-table tbody tr:hover { background: rgba(45,106,79,0.045); }
.rh-empty-cell,
.rh-empty-line { padding: 22px 0; font-family: var(--font-body); font-size: 13px; color: var(--text-3); text-align: center !important; }
.rh-dropzone { padding: 30px 24px; margin-bottom: 12px; border: 1.5px dashed rgba(45,106,79,0.35); border-radius: 16px; background: var(--surface); text-align: center; cursor: pointer; transition: background 160ms var(--ease), border-color 160ms var(--ease); }
.rh-dropzone:hover,
.rh-dropzone.dragover { border-color: var(--green); background: var(--green-dim); }
.rh-dz-icon { font-size: 22px; margin-bottom: 8px; }
.rh-dz-title { font-family: var(--font-body); font-size: 14px; font-weight: 800; color: var(--text); }
.rh-dz-sub,
.rh-sheet-note { font-family: var(--font-body); font-size: 12px; color: var(--text-3); }
.rh-phone-row { margin: 0 0 8px; text-align: center; }
.rh-upload-queue { display: grid; gap: 9px; margin: -10px 0 26px; }
/* An empty queue must not hold empty space between the QR pill and the next
   section (Ollie, 2026-08-03) */
.rh-upload-queue:empty { display: none; }
/* The section straight after the upload block sits closer than the page's
   default 42px rhythm — the QR pill row above it is small and centered */
.rh-exp-form + .rh-section { margin-top: 20px; }
.rh-upload-item { padding: 12px 14px; border: 1px solid var(--border-med); border-radius: 12px; background: var(--surface); }
.rh-upload-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rh-upload-name { min-width: 0; overflow: hidden; font-family: var(--font-body); font-size: 12px; font-weight: 800; color: var(--text); text-overflow: ellipsis; white-space: nowrap; }
.rh-upload-state { flex: 0 0 auto; font-family: var(--font-mono); font-size: 10px; color: var(--text-3); text-transform: uppercase; }
.rh-upload-item.ready .rh-upload-state { color: var(--green); }
.rh-upload-item.error .rh-upload-state,
.rh-upload-error { color: var(--coral); }
.rh-upload-error { margin-top: 6px; font-family: var(--font-body); font-size: 11px; }
.rh-upload-progress { height: 4px; margin-top: 9px; overflow: hidden; border-radius: 999px; background: var(--green-dim); }
.rh-upload-progress span { display: block; height: 100%; border-radius: inherit; background: var(--green); transition: width 120ms linear; }
.rh-upload-retry { margin-top: 8px; padding: 5px 11px; border: 1px solid rgba(45,106,79,.28); border-radius: 999px; background: transparent; color: var(--green); font-family: var(--font-body); font-size: 11px; font-weight: 800; cursor: pointer; }
.rh-exp-form { display: none; padding: 20px; margin-bottom: 26px; border: 1px solid var(--border-med); border-radius: 16px; background: var(--surface); }
.rh-exp-form.open { display: block; }
.rh-exp-file { margin-bottom: 14px; font-family: var(--font-mono); font-size: 11px; color: var(--green); }
.rh-exp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rh-span-2 { grid-column: span 2; }
.rh-field label { display: block; margin-bottom: 6px; font-family: var(--font-body); font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.rh-field input,
.rh-field select { width: 100%; padding: 10px 12px; border: 1px solid var(--border-med); border-radius: 10px; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 13px; outline: none; }
.rh-field input:focus,
.rh-field select:focus { border-color: var(--green); }
.rh-field .mono { font-family: var(--font-mono); }
.rh-exp-save { padding: 9px 22px; border: 1px solid rgba(45,106,79,0.25); border-radius: 999px; background: transparent; color: var(--green); font-family: var(--font-body); font-size: 13px; font-weight: 700; cursor: pointer; transition: all 150ms var(--ease); }
/* Cancel — coral family, level with Save (Ollie, 2026-08-03) */
.rh-exp-cancel { padding: 9px 18px; border: 1px solid rgba(180,67,67,0.25); border-radius: 999px; background: transparent; color: var(--coral); font-family: var(--font-body); font-size: 13px; font-weight: 700; cursor: pointer; transition: all 150ms var(--ease); }
.rh-exp-cancel:hover { background: rgba(180,67,67,0.08); border-color: rgba(180,67,67,0.45); }
.rh-exp-save:hover { background: var(--green-dim); border-color: rgba(45,106,79,0.4); box-shadow: none; }
.rh-mrow { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 9px 0; }
.rh-mrow + .rh-mrow { border-top: 1px solid var(--border); }
.rh-mlabel,
.rh-mamt,
.rh-receipt { font-family: var(--font-mono); }
.rh-mlabel { font-size: 11px; color: var(--text); }
.rh-mtrack { height: 6px; overflow: hidden; border-radius: 999px; background: rgba(0,0,0,0.05); }
.rh-mfill { height: 100%; border-radius: 999px; background: var(--red); }
.rh-mamt { font-size: 12px; font-weight: 700; color: var(--text); }
.rh-receipt { margin-top: 3px; font-size: 10px; color: var(--text-3); }
.rh-pos { color: var(--green) !important; }
.rh-neg { color: var(--red) !important; }
.rh-rgroup + .rh-rgroup { margin-top: 10px; }
.rh-rghead { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 13px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); cursor: pointer; }
.rh-rghead:hover { border-color: rgba(45,106,79,0.35); }
.rh-rghead .m { font-family: var(--font-body); font-size: 13px; font-weight: 800; color: var(--text); }
.rh-rghead .meta { display: flex; align-items: center; gap: 16px; font-family: var(--font-mono); font-size: 11px; color: var(--text-2); }
.rh-rghead .chev { color: var(--text-3); font-size: 10px; transition: transform 160ms var(--ease); }
.rh-rgroup.open .chev { transform: rotate(180deg); }
.rh-rgroup .rh-rgrid { display: none; margin-top: 10px; }
.rh-rgroup.open .rh-rgrid { display: grid; }
.rh-rgrid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.rh-rcard { display: block; width: 100%; min-width: 0; padding: 16px 14px; border: 1px solid var(--border-med); border-radius: 8px; background: var(--surface); color: inherit; text-align: left; cursor: pointer; transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease); }
.rh-rcard:hover { border-color: rgba(45,106,79,0.35); box-shadow: 0 8px 22px rgba(26,24,20,0.08); }
.rh-ric { margin-bottom: 10px; font-size: 20px; }
.rh-rfile,
.rh-rmeta { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); }
.rh-rfile,
.rh-rdesc { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rh-rdesc { margin-top: 6px; font-family: var(--font-body); font-size: 12px; font-weight: 800; color: var(--text); }
.rh-rmeta { margin-top: 3px; }
.rh-inbox-note { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); }
.rh-inbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.rh-inbox-card { min-width: 0; padding: 15px; border: 1px solid var(--border-med); border-radius: 12px; background: var(--surface); }
.rh-inbox-card.pending { border-style: dashed; }
.rh-inbox-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rh-inbox-file { min-width: 0; overflow: hidden; font-family: var(--font-body); font-size: 12px; font-weight: 800; color: var(--text); text-overflow: ellipsis; white-space: nowrap; }
.rh-inbox-state { flex: 0 0 auto; padding: 4px 8px; border-radius: 999px; background: var(--green-dim); color: var(--green); font-family: var(--font-mono); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.rh-inbox-card.pending .rh-inbox-state { background: rgba(126,120,103,.1); color: var(--text-3); }
.rh-inbox-meta { margin-top: 7px; color: var(--text-3); font-family: var(--font-mono); font-size: 10px; }
.rh-inbox-actions { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.rh-inbox-actions button { padding: 6px 10px; border: 1px solid rgba(45,106,79,.25); border-radius: 999px; background: transparent; color: var(--green); font-family: var(--font-body); font-size: 11px; font-weight: 800; cursor: pointer; }
.rh-inbox-actions button:hover { background: var(--green-dim); }
.rh-inbox-actions .delete { border-color: rgba(180,67,67,.2); color: var(--coral); }
.rh-legacy-receipts { margin-top: 18px; }
.rh-legacy-label { margin-bottom: 9px; color: var(--text-3); font-family: var(--font-body); font-size: 11px; font-weight: 700; }
.rh-book-tabs,
.rh-sheet-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.rh-book-tabs { margin-bottom: 14px; }
.rh-sheet-tools { margin-bottom: 16px; }
.rh-tools-spacer { flex: 1; }
.rh-book-tab { display: inline-flex; align-items: center; gap: 8px; max-width: 220px; padding: 7px 9px 7px 16px; border: 1px solid var(--border-med); border-radius: 999px; background: var(--surface); color: var(--text-2); font-family: var(--font-body); font-size: 12px; font-weight: 800; cursor: pointer; }
.rh-book-tab.active { border-color: rgba(45,106,79,0.35); background: var(--green-dim); color: var(--green); }
.rh-book-tab .bt-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rh-book-tab .bt-name[contenteditable="true"] { outline: none; border-bottom: 1px dashed var(--green); }
.rh-book-tab .bt-x { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; color: var(--text-3); font-size: 12px; }
.rh-book-tab .bt-x:hover { background: rgba(0,0,0,0.08); color: var(--text); }
.rh-book-new { padding: 7px 13px; border: 1px dashed var(--border-med); border-radius: 999px; background: transparent; color: var(--text-3); font-family: var(--font-body); font-size: 12px; font-weight: 800; }
.rh-book-open-wrap { position: relative; }
.rh-book-menu { display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 60; min-width: 190px; padding: 6px; border: 1px solid var(--border-med); border-radius: 12px; background: var(--surface); box-shadow: 0 8px 30px rgba(0,0,0,0.14); }
.rh-book-menu.open { display: block; }
.rh-book-menu-item { display: block; width: 100%; padding: 8px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--text-2); font-family: var(--font-body); font-size: 13px; font-weight: 500; text-align: left; cursor: pointer; white-space: nowrap; }
.rh-book-menu-item:hover { background: var(--green-dim); color: var(--green); }
.rh-empty-card { padding: 40px 24px; border: 1.5px dashed var(--border-med); border-radius: 16px; text-align: center; }
.rh-empty-title { font-family: var(--font-body); font-size: 16px; font-weight: 800; color: var(--text); }
.rh-empty-sub { margin-top: 4px; font-family: var(--font-body); font-size: 12px; color: var(--text-3); }
.rh-empty-list { display: flex; flex-direction: column; gap: 8px; max-width: 400px; margin: 20px auto 0; }
.rh-empty-sheet { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px; border: 1px solid var(--border-med); border-radius: 8px; background: var(--surface); color: var(--text); font-family: var(--font-body); font-size: 13px; font-weight: 800; cursor: pointer; }
.rh-empty-sheet:hover { border-color: rgba(45,106,79,0.45); background: var(--green-dim); color: var(--green); }
.rh-empty-sheet .meta { font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--text-3); }
.rh-empty-new { margin-top: 16px; }
.rh-sheet-wrap { overflow: auto; max-width: 100%; max-height: min(64vh, 760px); border: 1px solid var(--border-med); border-radius: 14px; background: var(--surface); }
.rh-sheet { width: 100%; min-width: 660px; border-collapse: collapse; }
.rh-sheet th,
.rh-sheet td { border: 1px solid var(--border); padding: 5px 10px; } /* compact, Sheets-like density */
.rh-sheet th { position: sticky; top: 22px; z-index: 2; background: var(--surface-2); color: var(--text-2); font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-align: left; text-transform: uppercase; }
.rh-sheet .rh-collet th { top: 0; height: 22px; padding: 3px 10px; font-family: var(--font-mono); font-size: 9px; font-weight: 600; letter-spacing: 0.04em; color: var(--text-3); text-align: center; }
.rh-sheet td { min-width: 90px; color: var(--text); font-family: var(--font-body); font-size: 13px; }
.rh-sheet td:first-child { width: 36px; min-width: 36px; padding: 5px 6px; background: var(--surface-2); color: var(--text-3); font-family: var(--font-mono); font-size: 10px; text-align: center; }
.rh-sheet td.rh-num { font-family: var(--font-mono); text-align: right; }
.rh-sheet td[contenteditable]:focus { outline: 2px solid var(--green); outline-offset: -2px; background: var(--surface); } /* ring only, like the Sheets cursor */
/* Hover reveals keep their space reserved (visibility, not display) so the
   header text never shifts — the old display swap read as a jumpy animation. */
.rh-sheet td.rnum { position: relative; }
.rh-sheet td.rnum .rx { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; visibility: hidden; }
.rh-sheet th .hx { display: inline; visibility: hidden; }
.rh-sheet td.rnum .rx,
.rh-sheet th .hx { padding: 0; border: 0; background: transparent; color: var(--text-3); font-family: var(--font-body); font-size: 13px; line-height: 1; cursor: pointer; }
.rh-sheet td.rnum .rx:hover,
.rh-sheet th .hx:hover { color: var(--red); }
.rh-sheet tbody tr:hover td.rnum .rn { visibility: hidden; }
.rh-sheet tbody tr:hover td.rnum .rx,
.rh-sheet th.hcell:hover .hx { visibility: visible; }
.rh-sheet th.hcell { white-space: nowrap; }
.rh-sheet th.hcell .hx { margin-left: 6px; }
/* 84px right clearance = the collapsed Meridian circle + breathing room */
/* one foot row under the sheet: tabs left, total right, always level */
.rh-sheet-footrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.rh-sheet-totalbar { display: flex; align-items: baseline; gap: 10px; padding-right: 84px; color: var(--text-3); font-family: var(--font-body); font-size: 12px; white-space: nowrap; }
.rh-sheet-totalbar b { color: var(--text); font-family: var(--font-mono); font-size: 15px; font-weight: 700; }
.rh-dropveil,
.rh-modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.rh-dropveil { z-index: 400; background: rgba(45,106,79,0.10); pointer-events: none; }
.rh-dropveil.active,
.rh-modal.open { display: flex; }
.rh-dropveil-card { padding: 56px 72px; border: 2px dashed rgba(45,106,79,0.55); border-radius: 24px; background: var(--surface); box-shadow: 0 24px 80px rgba(13,31,20,0.25); text-align: center; pointer-events: none; }
.rh-dv-icon { margin-bottom: 14px; font-size: 34px; }
.rh-dv-title { color: var(--text); font-family: var(--font-body); font-size: 18px; font-weight: 800; }
.rh-dv-sub { margin-top: 6px; color: var(--text-3); font-family: var(--font-body); font-size: 13px; }
.rh-toast { position: fixed; bottom: 28px; left: 50%; z-index: 410; display: flex; align-items: center; gap: 10px; padding: 11px 22px; border-radius: 999px; background: var(--surface); color: var(--green); border: 1px solid rgba(45,106,79,0.35); box-shadow: 0 8px 30px rgba(0,0,0,0.14); font-family: var(--font-body); font-size: 13px; font-weight: 700; opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(80px); transition: transform 240ms var(--ease-spring), opacity 200ms var(--ease); }
.rh-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.rh-toast .file { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }
.rh-modal { z-index: 300; background: rgba(13,12,11,0.55); }
.rh-modal-card { width: min(420px, 90vw); padding: 26px; border: 1px solid var(--border-med); border-radius: 18px; background: var(--surface); }
.rh-modal-center { text-align: center; }
.rh-modal-title { color: var(--text); font-family: var(--font-body); font-size: 18px; font-weight: 800; }
.rh-modal-sub,
.rh-qr-meta,
.rh-modal-note { color: var(--text-3); font-family: var(--font-body); font-size: 12px; }
.rh-modal-sub { margin-top: 6px; }
.rh-qr-frame { display: inline-flex; padding: 14px; margin: 20px 0 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.rh-modal-file { margin-bottom: 16px; color: var(--green); font-family: var(--font-mono); font-size: 11px; }
.rh-rrow { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px dashed var(--border-med); color: var(--text-2); font-family: var(--font-body); font-size: 13px; }
.rh-rrow b { color: var(--text); font-family: var(--font-mono); font-weight: 700; text-align: right; }
.rh-modal-note { margin-top: 16px; }
.rh-modal-close { width: 100%; margin-top: 18px; padding: 10px; border: 1px solid rgba(45,106,79,0.25); border-radius: 999px; background: var(--green-dim); color: var(--green); font-family: var(--font-body); font-size: 13px; font-weight: 800; }
.rh-modal-open { width: 100%; margin-top: 18px; padding: 10px; border: 1px solid var(--green); border-radius: 999px; background: var(--green); color: #fff; font-family: var(--font-body); font-size: 13px; font-weight: 800; cursor: pointer; }
.rh-modal-open + .rh-modal-close { margin-top: 8px; }
/* Revoking the QR session is destructive — coral family (Ollie, 2026-08-03) */
.rh-modal-close.rh-modal-revoke { background: transparent; border-color: rgba(180,67,67,0.25); color: var(--coral); }
.rh-modal-close.rh-modal-revoke:hover { background: rgba(180,67,67,0.08); border-color: rgba(180,67,67,0.45); }
.rh-qr-card { width: min(470px, 92vw); text-align: center; }
.rh-qr-frame { display: grid; width: min(320px, 72vw); aspect-ratio: 1; margin: 22px auto 14px; border: 1px solid var(--border-med); border-radius: 18px; background: #fff; place-items: center; overflow: hidden; }
.rh-qr-frame img { display: block; width: 100%; height: 100%; }
.rh-qr-loading { max-width: 20ch; color: #667068; font-family: var(--font-body); font-size: 12px; line-height: 1.5; }
.rh-qr-status { min-height: 18px; color: var(--text-3); font-family: var(--font-mono); font-size: 10px; }
.rh-qr-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.rh-qr-actions .rh-import-btn,
.rh-qr-actions .rh-modal-close { width: 100%; margin: 0; }
[data-theme="dark"] .rh-mtrack { background: rgba(255,255,255,0.08); }
[data-theme="dark"] .rh-ptrack { background: rgba(255,255,255,0.08); }
[data-theme="dark"] .rh-prow:hover,
[data-theme="dark"] .rh-lrow:hover { background: rgba(45,106,79,0.14); }
[data-theme="dark"] .rh-fc-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.45); }
[data-theme="dark"] .rh-table tbody tr:hover { background: rgba(45,106,79,0.14); }
[data-theme="dark"] .rh-dropveil { background: rgba(45,106,79,0.16); }
[data-theme="dark"] .rh-rcard:hover { box-shadow: 0 8px 22px rgba(0,0,0,0.45); }
@media (max-width: 900px) { #mgmtFinancials { max-width: 100%; }
  .rh-hero-card { padding: 24px; }
  .rh-total { font-size: 36px; }
  .rh-chart-wrap { height: 240px; }
  .rh-stats { grid-template-columns: 1fr; }
  .rh-grid { grid-template-columns: 1fr; }
  .rh-cell-platforms { order: 1; }
  .rh-cell-wheel { order: 2; }
  .rh-cell-countries { order: 3; }
  /* Stacked: no Platforms row-mate to inherit a height from */
  #finTopCountriesList { height: 320px; flex: none; }
  .rh-cell-pps { order: 4; }
  .rh-track-hd { align-items: flex-start; flex-direction: column; }
  .rh-track-tools { justify-content: space-between; width: 100%; }
  .rh-twrap.open { max-height: 320px; }
  .rh-snapshot-grid,
  .rh-fc,
  .rh-exp-grid { grid-template-columns: 1fr; }
  .rh-span-2 { grid-column: auto; }
  .rh-section { margin-top: 34px; }
  #segExpenses .rh-section,
  #segNet .rh-section { overflow-x: auto; }
  .rh-table { min-width: 560px; }
  .rh-sheet-tools { align-items: stretch; }
  .rh-tools-spacer { display: none; }
  .rh-stat + .rh-stat { border-left: 0; border-top: 1px solid var(--border); } }
@media (max-width: 560px) { .rh-seg { overflow-x: auto; padding-bottom: 4px; }
  .rh-seg-btn { white-space: nowrap; }
  .rh-filter-row.open { overflow: visible; }
  #mgmtFinancials .rh-filter-row .fin-filter-bar { align-items: stretch; flex-direction: column; }
  #mgmtFinancials .rh-filter-row .fin-filter-dropdown,
  #mgmtFinancials .rh-filter-row .fin-filter-btn { width: 100%; }
  #mgmtFinancials .rh-filter-row .fin-filter-panel { left: 0; right: 0; max-width: none; width: 100%; }
  .rh-stats { grid-template-columns: 1fr; }
  .rh-stat + .rh-stat { border-left: 0; border-top: 1px solid var(--border); }
  .rh-track-tools { align-items: stretch; flex-direction: column; }
  .rh-tsearch { width: 100%; }
  .rh-mrow { grid-template-columns: 72px minmax(0, 1fr); }
  .rh-mamt { grid-column: 2; }
  .rh-rghead,
  .rh-rghead .meta { align-items: flex-start; flex-direction: column; }
  .rh-rgrid { grid-template-columns: 1fr; }
  .rh-dropveil-card { width: calc(100vw - 36px); padding: 34px 22px; } }

/* ── Ledger toolbar, Google Sheets style ────────────────────────────
   One soft strip of flat text controls instead of floating pills;
   book tabs read like Sheets tabs. Scoped to the ledger segment. */
#segSheet .rh-sheet-tools {
  background: rgba(45,106,79,0.05);
  border: 1px solid rgba(45,106,79,0.18);
  border-radius: 999px;
  padding: 5px 14px;
  display: flex; align-items: center; gap: 2px;
  margin-bottom: 12px;
}
#segSheet .rh-tool-btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: none; background: transparent; border-radius: 999px;
  color: var(--text-2); font-family: var(--font-body); font-size: 12.5px; font-weight: 600;
  padding: 6px 11px; cursor: pointer; white-space: nowrap;
  transition: background 120ms var(--ease), color 120ms var(--ease);
}
#segSheet .rh-tool-btn svg { width: 15px; height: 15px; flex-shrink: 0; opacity: 0.85; }
#segSheet .rh-tool-btn:hover { background: var(--green-dim); color: var(--green); }
#segSheet .rh-tool-divider { width: 1px; height: 18px; background: rgba(45,106,79,0.2); margin: 0 8px; flex-shrink: 0; }
#segSheet .rh-tools-spacer { flex: 1; }
#segSheet .rh-sheet-note { font-size: 11px; padding-right: 8px; }
/* book tabs: quiet Sheets-tab look */
#segSheet .rh-book-tab { background: transparent; border-color: transparent; color: var(--text-2); font-weight: 600; border-radius: 999px; }
#segSheet .rh-book-tab:hover { background: var(--green-dim); }
#segSheet .rh-book-tab.active { background: var(--green-dim); border-color: rgba(45,106,79,0.35); color: var(--green); font-weight: 700; }

/* ── Ledger menu bar (File / Edit / Insert) + print scoping ──────────
   Menus reuse the .rh-book-menu-item look; the bar itself is quiet text
   buttons, Google Sheets style. */
#segSheet .rh-menubar { display: flex; align-items: center; gap: 2px; margin-bottom: 6px; }
#segSheet .rh-menu-wrap { position: relative; display: inline-flex; }
#segSheet .rh-menu-btn { border: 0; background: transparent; border-radius: 999px; padding: 5px 11px; font-family: var(--font-body); font-size: 12.5px; font-weight: 600; color: var(--text-2); cursor: pointer; transition: background 120ms var(--ease); }
#segSheet .rh-menu-btn:hover { background: var(--green-dim); color: var(--green); }
.rh-sheet-menu { display: none; position: absolute; top: calc(100% + 4px); left: 0; z-index: 60; min-width: 200px; padding: 6px; border: 1px solid var(--border-med); border-radius: 12px; background: var(--surface); box-shadow: 0 8px 30px rgba(0,0,0,0.14); }
.rh-sheet-menu.open { display: block; }
.rh-sheet-menu .rh-book-menu-item { display: flex; justify-content: space-between; align-items: center; gap: 18px; border-radius: 999px; }
.rh-sheet-menu .rh-book-menu-item:disabled { opacity: 0.4; cursor: default; }
.rh-sheet-menu .rh-book-menu-item:disabled:hover { background: transparent; color: var(--text-2); }
.rh-menu-kbd { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); }
#segSheet .rh-tool-icon { padding: 6px 8px; }
#segSheet .rh-tool-btn:disabled { opacity: 0.35; cursor: default; }
#segSheet .rh-tool-btn:disabled:hover { background: transparent; color: var(--text-2); }

/* Print: only the active sheet, no app chrome */
@media print {
  body.rh-printing .sidebar,
  body.rh-printing .app-header,
  body.rh-printing .meridian-fab,
  body.rh-printing .rh-menubar,
  body.rh-printing .rh-book-tabs,
  body.rh-printing .rh-sheet-tools,
  body.rh-printing .rh-seg,
  body.rh-printing .rh-hero-card { display: none !important; }
  body.rh-printing .main { padding: 0 !important; background: #fff !important; }
  body.rh-printing .rh-sheet-wrap { max-height: none !important; overflow: visible !important; border: 0 !important; }
}

/* Google-style editable sheet title in the menubar */
#segSheet .rh-sheet-title { font-family: var(--font-body); font-size: 15px; font-weight: 700; color: var(--text); padding: 4px 12px; margin-right: 6px; border-radius: 999px; cursor: text; outline: none; max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#segSheet .rh-sheet-title:hover { background: var(--green-dim); }
#segSheet .rh-sheet-title[contenteditable="true"] { background: var(--surface); box-shadow: inset 0 0 0 2px rgba(45,106,79,0.45); }

/* ── fx bar, zoom, bottom tabs ──────────────────────────────────────── */
#segSheet .rh-zoom { border: 0; border-radius: 999px; padding: 5px 24px 5px 10px; font-family: var(--font-body); font-size: 12px; font-weight: 600; color: var(--text-2); cursor: pointer; margin-right: 8px; appearance: none; -webkit-appearance: none; background: transparent url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 16 16' fill='none' stroke='%238a938c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 8px center; }
#segSheet .rh-zoom:hover { background: var(--green-dim); color: var(--green); }
#segSheet .rh-book-tabs { margin-top: 0; }

/* Help menu = documentation rows, not buttons */
.rh-sheet-menu.rh-menu-doc { min-width: 230px; }
.rh-menu-docrow { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 7px 14px; font-family: var(--font-body); font-size: 13px; font-weight: 500; color: var(--text-2); white-space: nowrap; }


/* ── Expense slide-out (notes, tags, receipt download) ── */
#rxExpenseOverlay { position: fixed; inset: 0; z-index: 10000; pointer-events: none; visibility: hidden; }
#rxExpenseOverlay.open { pointer-events: auto; visibility: visible; }
.rx-scrim { position: absolute; inset: 0; background: rgba(0,0,0,0.35); opacity: 0; transition: opacity 300ms var(--ease); cursor: pointer; }
#rxExpenseOverlay.open .rx-scrim { opacity: 1; }
.rx-panel {
  position: absolute; top: 0; right: 0; width: 480px; max-width: 100%; height: 100%;
  background: var(--surface); box-shadow: -8px 0 32px rgba(0,0,0,0.12);
  transform: translateX(100%); transition: transform 350ms cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
}
#rxExpenseOverlay.open .rx-panel { transform: translateX(0); }
.rx-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 26px 14px; border-bottom: 1px solid var(--border); }
.rx-title { font-family: var(--font-body); font-size: 17px; font-weight: 700; color: var(--text); line-height: 1.3; }
.rx-close { background: none; border: none; font-size: 20px; color: var(--text-3); cursor: pointer; line-height: 1; padding: 2px 6px; }
.rx-body { flex: 1; overflow-y: auto; padding: 18px 26px; }
.rx-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.rx-stat { border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; background: var(--surface); }
.rx-stat-value { font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--text); }
.rx-stat-label { font-family: var(--font-mono); font-size: 8px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--text-3); margin-top: 3px; }
.rx-note { width: 100%; min-height: 90px; font-family: var(--font-body); font-size: 13px; padding: 10px 14px; border: 1px solid var(--border-med); border-radius: 8px; background: var(--bg); color: var(--text); box-sizing: border-box; resize: vertical; }
.rx-note:focus { outline: none; border-color: var(--green); }
.rx-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.rx-receipt-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); margin-bottom: 18px; }
.rx-receipt-name { font-size: 12px; font-weight: 600; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rx-receipt-actions { display: flex; gap: 6px; flex-shrink: 0; }
.rx-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 26px; border-top: 1px solid var(--border); }

/* Ledger hero: the sheet name is data, not chrome — coral so it separates
   from the green LEDGER label (Ollie, 2026-08-05) */
.rh-hero-card .rh-hero-label .rh-hero-data { color: var(--coral-on-dark); }
.rh-hero-card .rh-hero-out { color: var(--coral-on-dark); }

/* ── Earnings toolbar inside the hero (Ollie, 2026-08-05) ──────────
   History / Export PDF / Filter live in the hero's empty bottom-right;
   only the earn segment shows them. On-dark skins: History quiet white
   wash, Export + Filter bright-green tinted; hover flips to solid. */
.rh-hero-tools { position: absolute; right: 34px; bottom: 30px; display: none; align-items: center; gap: 8px; }
.rh-hero-card[data-seg="earn"] .rh-hero-tools { display: flex; }
/* One pill family, matched to the stale-data banner above them: 999px
   radius (the site's signature pill), mono uppercase, quiet white wash.
   Export PDF is the row's single accented action (one primary CTA per
   view); History and Filter stay quiet until engaged. */
.rh-hero-tools .rev-upload-btn,
#mgmtFinancials .rh-hero-tools .fin-pdf-btn,
.rh-hero-tools .rh-filter-pill {
  /* Type lives HERE, not in each button's own rule: History (.rev-upload-btn)
     and Export (.fin-pdf-btn) carried their own 9px while Filter was 12px,
     which is what made the three pills different sizes (Ollie, 2026-08-05).
     A shared min-width + centred labels makes the row an even set, and the
     lighter 11px/500 keeps these secondary tools under the money figure. */
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-width: 136px; height: 32px; box-sizing: border-box;
  margin-left: 0; border-radius: 999px; padding: 0 16px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.72);
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.rh-hero-tools .rev-upload-btn:hover,
.rh-hero-tools .rh-filter-pill:hover { color: #fff; border-color: rgba(255,255,255,0.32); background: rgba(255,255,255,0.12); }
/* No accented fill in the hero at all (Ollie, 2026-08-05): the neon
   chart-green read as startup and the solid paper fill shouted on the
   dark card. These are secondary utilities — the MONEY is the hero — so
   all three share one restrained glass pill and lift only on hover. */
#mgmtFinancials .rh-hero-tools .fin-pdf-btn:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.32); color: #fff; }
.rh-hero-tools .rh-filter-pill.open,
.rh-hero-tools .rev-upload-btn.open { background: rgba(255,255,255,0.16); color: #fff; border-color: rgba(255,255,255,0.4); }
.rh-hero-tools .rev-upload-btn.open .rh-filter-caret { transform: rotate(180deg); }
/* identical press feedback on all three */
.rh-hero-tools button { transition: color 160ms var(--ease), background 160ms var(--ease), border-color 160ms var(--ease), transform 120ms var(--ease); }
.rh-hero-tools button:active { transform: translateY(1px); }
/* browser-blue focus ring is off-brand — same treatment as .rh-period */
.rh-hero-tools button:focus { outline: none; }
.rh-hero-tools button:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(255,255,255,0.22); }

/* ── Statements tab (Ollie, 2026-08-05) ───────────────────────────
   Every uploaded royalty statement: drop more in, click one to read it
   as a sheet, rename it, download it. Rows reuse the house list recipe
   (.rh-lrow) and the detail grid reuses the ledger's .rh-sheet. */
.rh-stmt-drop { width: 100%; margin-bottom: 0; }
.rh-stmt-count { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }
/* the original export name rides in brackets after an auto/renamed title */
.rh-stmt-orig { font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--text-3); }
/* ── Payouts tab: the cash-side ledger ── */
.po-source { margin-bottom: 26px; }
.po-source-hd { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--border-med); padding-bottom: 8px; margin-bottom: 4px; }
.po-source-hd h3 { margin: 0; }
.po-source-sum { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }
.po-account-name { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--green); margin: 14px 0 2px; }
.po-row { display: flex; align-items: center; gap: 18px; padding: 11px 4px; border-bottom: 1px solid var(--border); }
.po-period { flex: 1; min-width: 0; font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--text-2); }
.po-cell { width: 116px; text-align: right; font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; color: var(--text); }
.po-muted { color: var(--text-3); }
.po-cell-label { display: block; font-size: 8.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-3); }
.po-neg { color: var(--coral); }
.po-status { width: 150px; text-align: right; display: inline-flex; justify-content: flex-end; align-items: center; gap: 8px; }
.po-received { font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--green); white-space: nowrap; }
.po-settled { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }
.po-undo { font-size: 10px; padding: 3px 8px; }
.po-toggle { white-space: nowrap; }
.po-deds { padding: 4px 4px 10px 16px; border-bottom: 1px solid var(--border); }
.po-ded { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; }
.po-ded-label { font-family: var(--font-body); font-size: 12px; color: var(--text-2); }
.po-row { cursor: pointer; }
.po-ded-amt { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--coral); white-space: nowrap; }
.po-ded-meta { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 8px; align-items: center; }
.po-ded-meta .po-ded-label { color: var(--text-3); }

/* recoup control in the sheet header */
.sp-recoup-editor { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.sp-recoup-input { width: 120px; display: inline-block; padding: 6px 10px; margin: 0; font-family: var(--font-mono); font-size: 12px; }
.sp-recoup-net { font-family: var(--font-mono); font-size: 12px; color: var(--text-2); }

.rh-stmt-row {
  display: flex; align-items: center; gap: 16px; padding: 13px 4px;
  border-bottom: 1px solid var(--border); cursor: pointer;
  transition: background 140ms var(--ease);
}
.rh-stmt-row:hover { background: rgba(45,106,79,0.045); }
.rh-stmt-main { flex: 1; min-width: 0; }
.rh-stmt-title { font-family: var(--font-body); font-size: 14px; font-weight: 700; color: var(--text); }
.rh-stmt-sub { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); margin-top: 3px; }
.rh-stmt-meta { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); flex: 0 0 auto; }
.rh-stmt-go { color: var(--text-3); font-size: 18px; line-height: 1; flex: 0 0 auto; }
.rh-stmt-row:hover .rh-stmt-go { color: var(--green); }
/* detail */
.rh-stmt-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.rh-stmt-actions { display: inline-flex; align-items: center; gap: 8px; }
.rh-stmt-back {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--green); background: transparent;
  border: 1px solid rgba(45,106,79,0.25); border-radius: 999px; padding: 0 16px; height: 32px;
  cursor: pointer; transition: background 150ms var(--ease);
}
.rh-stmt-back:hover { background: var(--green-dim); }
/* grey ink was near-invisible on the warm background (Ollie, 2026-08-06:
   "these pills should be the new site design green ish pills") — action
   pills wear the house green like .rh-stmt-back; coral stays destructive */
.rh-stmt-btn {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.04em;
  text-transform: uppercase; border-radius: 999px; padding: 0 16px; height: 32px;
  border: 1px solid rgba(45,106,79,0.3); background: transparent; color: var(--green);
  cursor: pointer; transition: color 150ms var(--ease), border-color 150ms var(--ease), background 150ms var(--ease);
}
.rh-stmt-btn:hover { border-color: rgba(45,106,79,0.5); background: var(--green-dim); }
.rh-stmt-danger { color: var(--coral); border-color: rgba(155,68,68,0.3); }
.rh-stmt-danger:hover { color: var(--coral); border-color: rgba(155,68,68,0.5); background: rgba(155,68,68,0.06); }

/* ── Split Payments (Ollie, 2026-08-06) ── */
/* dropzones: the statement one leads the empty tab, the splits-CSV one
   sits quietly inside an open sheet */
.sp-drop.drag { border-color: var(--green); background: var(--green-dim); }
.sp-drop-sm { padding: 12px 16px; margin-bottom: 20px; border-width: 1px; }
.sp-drop-sm .rev-upload-title { font-size: 13px; }
.sp-drop-sm .rev-upload-sub { font-size: 11px; }
/* the "then set the splits" note under the step-1 dropzone — explains why
   there is only one box on this screen (Ollie, 2026-08-06) */
/* Step 2 reads as the second half of the flow, not a footnote under
   step 1 (Ollie, 2026-08-06) — same box weight, same type sizes, just
   inert until a statement exists. */
.sp-step2 {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px; margin: -16px 0 24px;
  border: 1px dashed var(--border); border-radius: 12px;
  font-size: 13px; color: var(--text-2); line-height: 1.5;
}
.sp-step2-num {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px;
  background: var(--green-dim); color: var(--green);
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.sp-step2-title { font-size: 14px; font-weight: 700; color: var(--text); }
.sp-step2-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
/* the door between the two pages: setup ends on one clear way forward */
.sp-next {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  width: 100%; margin: 20px 0 8px; padding: 16px 20px;
  background: var(--green); color: #fff; border: none; border-radius: 12px;
  text-align: left; cursor: pointer; font-family: inherit;
  transition: filter 150ms var(--ease);
}
.sp-next:hover { filter: brightness(1.08); }
.sp-next-title { font-size: 15px; font-weight: 700; }
.sp-next-sub { font-size: 12px; color: rgba(255,255,255,0.75); margin-top: 3px; }
.sp-next-arrow { font-size: 18px; flex: 0 0 auto; }
.sp-view-nav { margin: 4px 0 16px; }
/* step 1's icon tile matches, so the two read as a pair */
#spDropzone .rev-upload-icon {
  width: 34px; height: 34px; border-radius: 10px; background: var(--green-dim);
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
/* the splits-CSV box reads as a different KIND of input from the
   statement box it sits near: green-tinted, not another dashed slot */
#spSplitsDrop {
  border-style: solid; border-color: rgba(45,106,79,0.25);
  background: var(--green-dim);
}
#spSplitsDrop:hover { border-color: var(--green); }
/* conversion provenance line */
/* a long filename is a heading, not a headline — let it wrap sanely */
.sp-sheet-title { font-size: 17px; line-height: 1.3; max-width: 760px; overflow-wrap: anywhere; }
/* .rh-stmt-detail-title (Statements tab) carries cursor:text + hover-green
   for ITS title; the splits title isn't click-to-edit, so neither
   affordance belongs here (Ollie, 2026-08-07 — "the little tool you use
   in word documents"). Compound selector out-ranks the later rule. */
.rh-stmt-detail-title.sp-sheet-title { cursor: default; }
.rh-stmt-detail-title.sp-sheet-title:hover { color: var(--text); }
/* inline rename: the title becomes the field (Ollie, 2026-08-07 — no more
   browser prompt). Same type as the title it replaces, house focus ring. */
.sp-rename-input {
  width: 100%; max-width: 760px;
  font-family: inherit; font-size: 17px; font-weight: inherit; line-height: 1.3;
  color: var(--text); background: var(--bg);
  border: 1px solid var(--border-med); border-radius: 8px;
  padding: 4px 10px; margin: -5px -11px; outline: none;
}
.sp-rename-input:focus { border-color: var(--green); }
/* the job at a glance: songs · money · statements, numbers first */
.sp-sheet-stats { display: flex; align-items: baseline; gap: 26px; flex-wrap: wrap; margin-top: 10px; }
.sp-stat { font-size: 12px; color: var(--text-3); }
.sp-stat-num { font-family: var(--font-mono); font-size: 18px; font-weight: 700; color: var(--text); }
.sp-stat-money { color: var(--green); }
.sp-stat-period { font-family: var(--font-mono); font-size: 11px; align-self: center; }
.sp-fx {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  /* full ink — the greyed conversion line was "super hard to see"
     (Ollie, 2026-08-07); this number is how every payout is computed */
  font-size: 11px; color: var(--text); line-height: 1.5;
  padding: 10px 14px; margin: 16px 0 22px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
}
.sp-fx-badge {
  font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: 0.6px;
  color: var(--green); background: var(--green-dim); border-radius: 999px; padding: 3px 9px;
}
.sp-fx button { margin-left: auto; }
.sp-fx-ask { border-color: rgba(166,124,55,0.35); background: rgba(166,124,55,0.06); color: var(--text); }

/* PDF review — a reconstructed table gets checked before it is saved */
.sp-review { border: 1px solid rgba(45,106,79,0.3); border-radius: 12px; padding: 14px 16px; margin-bottom: 20px; background: var(--surface); }
.sp-review-head { font-size: 12px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.sp-review-warn { font-size: 11px; color: var(--amber); margin-top: 8px; line-height: 1.5; }
.sp-review-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }

/* statements kept in a session */
.sp-source-row {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px;
  margin-bottom: 6px; background: var(--surface);
}
.sp-source-main { flex: 1; min-width: 0; }
.sp-source-name { font-size: 13px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-source-sub { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); margin-top: 2px; }
.sp-source-total { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--text-2); }
/* per-song line items */
.sp-rows-btn {
  font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: 0.6px;
  text-transform: uppercase; color: var(--green); background: none;
  border: 1px solid rgba(45,106,79,0.3); border-radius: 999px; padding: 3px 9px;
  cursor: pointer; flex: 0 0 auto;
}
.sp-rows-btn:hover { border-color: var(--green); background: var(--green-dim); }
.sp-rows-host:empty { display: none; }
.sp-rows-wrap { margin: -4px 0 12px; padding: 10px 14px; border: 1px solid var(--border-med); border-top: none; border-radius: 0 0 12px 12px; background: var(--surface); overflow-x: auto; }
.sp-rows-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 11px; }
.sp-rows-table th { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.6px; text-transform: uppercase; color: var(--text-3); text-align: left; padding: 4px 8px; border-bottom: 1px solid var(--border); }
.sp-rows-table td { padding: 5px 8px; border-bottom: 1px solid var(--border); color: var(--text-2); }
.sp-rows-table .rh-num { text-align: right; font-family: var(--font-mono); }
.sp-rows-table tr:last-child td { border-bottom: none; }
/* Payout cards: one per contributor, amount leading — the number IS the
   answer, so it wears the mono face and the room */
/* one decision per pair, not a chore list */
.sp-dupe-warn {
  font-size: 12px; color: var(--text-2); line-height: 1.5;
  padding: 12px 14px; margin-bottom: 16px;
  border: 1px solid var(--border-med); background: var(--surface); border-radius: 12px;
}
.sp-dupe-head { font-size: 12px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.sp-dupe-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 7px 0; border-top: 1px solid var(--border);
}
.sp-dupe-pair { font-size: 12.5px; color: var(--text); }
.sp-dupe-arrow { color: var(--green); margin: 0 2px; }
.sp-dupe-count { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); }
.sp-dupe-actions { margin-left: auto; display: flex; gap: 6px; }

/* payouts reuse the Earnings bar rows (.rh-prow) so the tab feels of a
   piece with the rest of Revenue — plus a per-row actions column */
.sp-pay .rh-prow { grid-template-columns: 180px 1fr auto auto; }
.sp-pay .rh-pname { color: var(--text); font-weight: 700; }
.sp-pay-songs { display: block; font-size: 11px; font-weight: 500; color: var(--text-3); margin-top: 1px; }
.sp-pay-actions { display: flex; gap: 6px; }
.sp-dl-all { margin-left: 10px; }
/* the saved-list total names its currency when not converted to USD —
   a bare ¥ figure read as who-knows-what (Ollie, 2026-08-08) */
.sp-cur-code { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); letter-spacing: 0.4px; }
/* body copy inside the analyze-layout consent dialog */
.sp-confirm-body { font-size: 13px; color: var(--text-2); line-height: 1.55; }
.sp-confirm-body p { margin: 0 0 10px; }
.sp-confirm-body strong { color: var(--text); }
.sp-pay-foot {
  padding: 10px 0 2px; font-size: 12px; color: var(--text-2);
  border-top: 1px solid var(--border-med);
}
/* contributor chips on a song row */
.sp-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; color: var(--text-2);
  background: var(--green-dim); border-radius: 999px; padding: 3px 10px; margin-right: 6px;
}
.sp-chip-pct { font-family: var(--font-mono); font-size: 10px; color: var(--green); }
.sp-unsplit { color: var(--text-3); font-style: italic; }
.sp-song-total { font-family: var(--font-mono); font-weight: 600; color: var(--text); }
.sp-song-row.open { background: rgba(45,106,79,0.045); }
/* the open song's editor: name · % · amount rows */
.sp-editor {
  border: 1px solid var(--border-med); border-top: none; border-radius: 0 0 12px 12px;
  padding: 14px 18px; margin: -6px 0 14px; background: var(--surface);
}
.sp-edit-row { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.sp-name {
  flex: 1; min-width: 0; font-family: var(--font-body); font-size: 13px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-med); border-radius: 8px; padding: 8px 11px; outline: none;
}
.sp-name:focus { border-color: var(--green); }
.sp-pct-wrap { position: relative; flex: 0 0 92px; }
.sp-pct {
  width: 100%; font-family: var(--font-mono); font-size: 13px; color: var(--text); text-align: right;
  background: var(--surface); border: 1px solid var(--border-med); border-radius: 8px; padding: 8px 26px 8px 11px; outline: none;
}
.sp-pct:focus { border-color: var(--green); }
.sp-pct-sign { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--text-3); pointer-events: none; }
.sp-amount { flex: 0 0 92px; text-align: right; font-family: var(--font-mono); font-size: 12px; color: var(--text-2); }
.sp-remove {
  width: 24px; height: 24px; border-radius: 50%; border: none; background: none;
  color: var(--text-3); font-size: 15px; line-height: 1; cursor: pointer;
}
.sp-remove:hover { color: var(--coral); background: rgba(155,68,68,0.08); }
.sp-edit-foot { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.sp-sum { font-family: var(--font-mono); font-size: 11px; color: var(--coral); }
.sp-sum.ok { color: var(--green); }
.sp-edit-actions { margin-left: auto; display: flex; gap: 8px; }
/* house pill family for this tab: quiet by default, green for the
   affirmative action, coral only for destructive ones */
/* .sp-save now matches the base pill; only its disabled state differs */
.rh-stmt-btn.sp-save[disabled] { opacity: 0.4; cursor: default; background: transparent; border-color: var(--border-med); color: var(--text-3); }
.rh-stmt-btn.sp-clear { color: var(--coral); border-color: rgba(155,68,68,0.3); }
.rh-stmt-btn.sp-clear:hover { color: var(--coral); border-color: rgba(155,68,68,0.5); background: rgba(155,68,68,0.06); }
.rh-stmt-detail-title { font-family: var(--font-body); font-size: 22px; font-weight: 700; letter-spacing: -0.4px; color: var(--text); cursor: text; }
.rh-stmt-detail-title:hover { color: var(--green); }
.rh-stmt-detail-sub { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); margin-top: 5px; }
.rh-stmt-note { font-family: var(--font-body); font-size: 12px; color: var(--text-3); margin: 16px 0 8px; }
.rh-stmt-sheet-wrap { margin-top: 18px; overflow: auto; max-height: 62vh; border: 1px solid var(--border); border-radius: 12px; }
.rh-stmt-sheet { width: 100%; }
.rh-stmt-sheet thead th { position: sticky; top: 0; z-index: 1; background: var(--surface); }

/* Recoupments — producer advances paid down out of royalties */
.rcp-row { display: flex; align-items: center; gap: 18px; padding: 12px 4px; border-bottom: 1px solid var(--border); cursor: pointer; }
.rcp-main { flex: 1; min-width: 0; }
.rcp-desc { font-family: var(--font-body); font-size: 14px; font-weight: 700; color: var(--text); }
.rcp-type { font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--text-3); border: 1px solid var(--border-med); border-radius: 999px; padding: 1px 7px; margin-left: 6px; }
.rcp-sub { font-family: var(--font-body); font-size: 12px; color: var(--text-3); margin-top: 2px; }
.rcp-bar { height: 4px; background: var(--border); border-radius: 999px; margin-top: 8px; max-width: 320px; overflow: hidden; }
.rcp-bar-fill { height: 100%; background: var(--green-solid, var(--green)); border-radius: 999px; }
.rcp-cell { width: 128px; text-align: right; font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; }
.rcp-cell-label { display: block; font-size: 9px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--text-3); }
.rcp-pct { color: var(--text-3); font-size: 11px; }
.rcp-done { color: var(--green); }
.rcp-payments { padding: 4px 4px 10px 16px; border-bottom: 1px solid var(--border); }
.rcp-pay { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; font-family: var(--font-mono); font-size: 12px; color: var(--text-2); }
.rcp-pay-amt { color: var(--coral); }
.rcp-pay-meta { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 8px; align-items: center; font-family: var(--font-body); color: var(--text-3); }
