/*
    The flat look, second pass: area by area (see css/minimal/core.css for the rule and the tokens). Each section turns
    off what still painted an area or tone color outside a glyph, a figure that carries meaning or a callout. Charts'
    own colors are in css/minimal/charts.css; bars, meters and keys drawn with classes are here with their area.
    Gating (2026-11-22): html[data-minimal] rules are the flat look of every style; html[data-minimal="on"] rules
    (charts, data bars, rings, keys, and a "fine" figure in ink) apply only with Minimal style on, so with it off every
    chart keeps its full colors.
*/

/* ================================================================================================== Shell */

/* The header's partner chips ("Susie shares with you"): neutral wells; each keeps its area glyph. The partner-view
   switch track is ink. */
html[data-minimal] .psi-chip.is-on:not(#mn) { background: var(--mn-well); }
html[data-minimal] .psi-chip.is-on .psi-chip-count:not(#mn) { background: transparent; color: var(--mn-ink-2); }
html[data-minimal] .pat-track:not(#mn) { background: var(--mn-bar); }
html[data-minimal] .pat-dot:not(#mn) { background: var(--mn-good); }

/* ================================================================================================== Dashboard */

html[data-minimal="on"] .dx {
    /* Parts of a whole (Where your money goes, the cash mix bar) on the neutral ramp. */
    --dx-cat-0: var(--mn-r1);
    --dx-cat-1: var(--mn-r2);
    --dx-cat-2: var(--mn-r3);
    --dx-cat-3: var(--mn-r4);
    --dx-cat-4: var(--mn-r5);
    --dx-cat-5: var(--mn-r6);
    --dx-cat-other: var(--mn-r-other);
    --dx-comp-checking: var(--mn-r1);
    --dx-comp-savings: var(--mn-r2);
    --dx-comp-cash: var(--mn-r2);
    --dx-comp-manual: var(--mn-r5);
    --dx-comp-debt: color-mix(in srgb, var(--mn-bad) 70%, transparent);
}

/* Lines in the Dashboard's own SVG charts (Cash flow ahead, net worth sparkline): ink; below zero stays red. */
html[data-minimal="on"] .dx :is(.dx-line, .dx-line.is-flow):not(.is-negative) { stroke: var(--mn-ink); }
html[data-minimal="on"] .dx .dx-glow:not(.is-negative) { stroke: color-mix(in srgb, var(--mn-ink) 10%, transparent); }

/* Meters and bars that measure (bills covered by income, budget lines, settle balance, dividends): ink, unless the
   bar is a caution or an over (they keep their tone). */
html[data-minimal="on"] .dx :is(.dx-meter-fill, .dx-bline-fill, .dx-egg-fill):not(.dx-fill-caution):not(.dx-fill-critical):not(.dx-fill-negative) { background: var(--mn-bar); }
html[data-minimal="on"] .dx .dx-minibar:not(.is-zero) { background: var(--mn-r3); }
html[data-minimal="on"] .dx .dx-minibar:last-child:not(.is-zero) { background: var(--mn-bar); }
html[data-minimal="on"] .dx .dx-balance-bar { background: color-mix(in srgb, var(--mn-bad) 70%, transparent); }

/* Score rings (Paycheck Plan, credit utilization): ink when all is well; a caution or an over keeps its tone. */
html[data-minimal="on"] .dx :is(.dx-ring.is-positive, .dx-ring.is-neutral) { --ring: var(--mn-ink); }
html[data-minimal="on"] .dx .dx-ring.is-demo { --ring: var(--mn-r4); }
html[data-minimal="on"] .dx .dx-ring-fill { filter: none; }

/* The area under a Dashboard line and the hover dot: a faint ink. */
html[data-minimal="on"] .dx .dx-area:not(.is-negative) { fill: color-mix(in srgb, var(--mn-ink) 6%, transparent); }
html[data-minimal="on"] .dx .dx-plot-hero .dx-hit-dot.is-positive { background: var(--mn-ink); }

/* The payday runway: paydays stay a small green node (money in), with no halo. */
html[data-minimal] .dx .dx-runway-node.is-payday { box-shadow: none; }

/* Transactions' small kind badge on a logo: ink instead of indigo. */
html[data-minimal] .dx .dx-tx-badge { background: var(--mn-sel); color: var(--mn-on-sel); }

/* The next-payday tag and the range pill under "Until payday": ink words on the neutral pill. */
html[data-minimal] .dx .dx-tag:not(#mn) { color: var(--mn-ink-2); }

/* Settle up's two sides: neutral wells, the couple's colors stay in their glyphs and the bar. */
html[data-minimal] .dx :is(.dx-side, .dx-side.is-partner):not(#mn) {
    background: var(--mn-well);
    box-shadow: inset 0 0 0 1px var(--mn-hair);
}

/* Upcoming dates: today in a slightly deeper well (ink words), not a filled block. */
html[data-minimal] .dx .dx-date.is-today:not(#mn) { background: var(--mn-well-2); }
html[data-minimal] .dx .dx-date.is-today:not(#mn) small { color: var(--mn-sub); }
html[data-minimal] .dx .dx-date.is-today:not(#mn) b { color: var(--mn-ink); }

/* Classic dashboard flow pills (Income, Transfer, Card payment, Loan payment). */
html[data-minimal] :is(.fin-pill, .dbx-flow-pill):not(#mn) { background: var(--mn-well); }

/* ================================================================================================== Accounts */

html[data-minimal="on"] :is(.acx-change-dot.acx-bg-positive, .acx-at-meter-bar.acx-bg-positive):not(#mn) { background: var(--mn-bar); }
html[data-minimal] .acx-chip.acx-chip-tone:not(#mn) { background: var(--mn-well); }

/* The attention banner and the connection-health banner: neutral wells; Reconnect stays a clear action. */
html[data-minimal] :is(.acx-attention, .chx-banner):not(#mn) {
    border-color: var(--mn-hair);
    background: var(--mn-well);
    box-shadow: none;
}

html[data-minimal] :is(.acx-attention.acx-tone-critical, .chx-banner.chx-tone-critical):not(#mn) { box-shadow: inset 2px 0 0 var(--mn-bad); }

html[data-minimal] .acx-attention-action:not(#mn) {
    border-color: var(--mn-hair);
    background: var(--ci-btn-fill) border-box;
    color: var(--ci-btn-text);
    box-shadow: var(--ci-btn-edge);
}

/* Manage connections and the hero metrics strip: neutral hairlines. */
html[data-minimal] .acx-manage:not(#mn) { border-color: var(--mn-hair); }
html[data-minimal] .hx .hx-metrics:not(#mn) { border-color: var(--mn-rule); }

/* Account tiles: an account that needs attention keeps a thin red edge, not a red frame; Shared / partner owner pills
   and Reconnect chips lose their colored outline (the couple's color stays in the words). */
html[data-minimal] .acx-at.is-alert:not(#mn) {
    border-color: var(--mn-rule);
    box-shadow: inset 2px 0 0 var(--mn-bad);
}

html[data-minimal] :is(.acx-at-owner, .chx-row-chip):not(#mn) {
    border-color: var(--mn-hair);
    background: var(--mn-well);
}

/* Status dots: a healthy or fresh connection is a quiet ink dot; caution and critical keep their tone. */
html[data-minimal="on"] :is(.acx-dot.acx-tone-positive, .acx-at-fresh-dot.acx-tone-positive):not(#mn) { background: var(--mn-faint); }
html[data-minimal="on"] .hx-dot.is-positive:not(#mn) { background: var(--mn-ink); }

/* Net worth trend: what you own vs owe bar on the ramp; the hue and its washes neutral. */
html[data-minimal="on"] .acx-tr {
    --acx-tr-hue: var(--mn-ink);
    --acx-tr-hue-soft: var(--mn-well);
}

/* My Accounts: the account-type chips, utilization bar. */
html[data-minimal="on"] .mya-util-bar:not(#mn) { background: var(--mn-bar); }

/* ================================================================================================== Transactions */

html[data-minimal] .txv {
    --txv-accent: var(--mn-ink);
    --txv-blue: var(--mn-sub);
}

/* The insight strip's share bars and the quick filters' chips. */
html[data-minimal="on"] .txi-bar-fill:not(#mn) { background: var(--mn-bar); }
html[data-minimal] .txq-chip:not(#mn) { --chip: var(--mn-sub); }
html[data-minimal] :is(.txq-chip-unbudgeted, .txq-chip-pending):not(#mn) { --chip: var(--txv-neg, var(--mn-bad)); }
html[data-minimal] .txq-chip-pending:not(#mn) { --chip: var(--mn-warn); }

/* Yes / no pills in the grid (Recurring, Pending): neutral, no tinted ring. */
html[data-minimal] .tx-yn-pill:not(#mn) { border-color: transparent; }

/* ================================================================================================== Recurring */

html[data-minimal] .rc-hue,
html[data-minimal] .rc-page {
    --rc-today: var(--mn-well-2);
    --rc-selection: var(--mn-ink);
}

html[data-minimal="on"] .rc-hue,
html[data-minimal="on"] .rc-page { --rc-bar-fill: var(--mn-bar); }

/* The hero's Income / Bills / Low point / Unusual tiles: no colored left edge unless the tile is an issue. */
html[data-minimal] .rc-pill:not(#mn) { border-left-color: var(--mn-hair); }
html[data-minimal] .rc-pill.rc-pill-critical:not(#mn) { border-left-color: var(--mn-bad); }
html[data-minimal] .rc-pill.rc-pill-caution:not(#mn) { border-left-color: var(--mn-warn); }

/* Bars and dots that only say "how much" or "which kind". */
html[data-minimal="on"] :is(.rc-tone-bg-accent, .rc-tone-bg-neutral, .rc-tone-bg-positive, .rc-tone-bg-reviewed, .rc-tone-bg-text):not(#mn) { background: var(--mn-bar); }
html[data-minimal="on"] :is(.rc-kind-bg-bills, .rc-dot-bills):not(#mn) { background: var(--mn-r1); }
html[data-minimal="on"] .rc-kind-bg-subscriptions:not(#mn) { background: var(--mn-r3); }
html[data-minimal="on"] .rc-kind-bg-installments:not(#mn) { background: var(--mn-r5); }

/* Calendar: today's number in ink, the "+2" more chip and amounts on the neutral well. */
html[data-minimal] .rc-day-today .rc-day-number:not(#mn) { color: var(--mn-ink); }
html[data-minimal] .rc-day-more:not(#mn) { background: var(--mn-avatar); color: var(--mn-avatar-ink); }
html[data-minimal] .rc-day-pill-bills:not(#mn) { color: var(--mn-ink-2); }
html[data-minimal] .rc-date-chip-today:not(#mn) { background: var(--mn-well-2); color: var(--mn-ink); }
html[data-minimal] .rc-day-payday:not(#mn) { background: transparent; }

/* Needs Review: the step dots, the "edited" badge, the deck's three buttons (no tone rings). */
html[data-minimal] .rc-step.rc-step-current:not(#mn) { background: var(--mn-sel); }
html[data-minimal] .nr-pen-badge:not(#mn) { background: var(--mn-sel); color: var(--mn-on-sel); }
html[data-minimal] :is(.nr-deck-btn-skip, .nr-deck-btn-details, .nr-deck-btn-reviewed):not(#mn) { border-color: var(--mn-hair); }
html[data-minimal="on"] .rse-bar.rse-bar-normal:not(#mn) { background: var(--mn-r4); }

/* Cancel Assist hub: the stat and run marks without tone rings. */
html[data-minimal] :is(.chb-stat-mark, .chb-run-mark):not(#mn) { border-color: var(--mn-hair); }
html[data-minimal] .chb-item.is-chipin:not(#mn) { border-color: var(--mn-rule); }

/* ================================================================================================== Budgets */

html[data-minimal="on"] .bg-bucket-fill:not(#mn) { background: var(--mn-bar); }
html[data-minimal="on"] .bg-track-projected:not(.is-over):not(#mn) { border-color: var(--mn-faint); }

/* Green never says "fine" on the Budgets pages or in the budget hero (the Budgets page and Reports > Budgets share it):
   "positive" is ink, white in dark and near-black in light. The headline, the health ring, the score's icons and
   bars, on-track pills, swatches and axis dots, the tiles' gains and the deltas go quiet, so amber and red are the only
   colors left and each one is an issue: at risk, nearing, over, heading over, left to budget below zero, a score that
   dropped. The fuchsia section glyphs, the line categories and the couple's blue and amber are unchanged. */
html[data-minimal="on"] :is(.bg-page, .ah.rpb-hero) { --rp-positive: var(--mn-ink); }

/* The hero chart: spent in ink over a flat faint ink shade, the room left under the budget a fainter shade, the budget
   pace dashed and where the period is heading dotted, both in a quieter ink. Red stays where spending ran ahead of the
   budget (the band and its hatch) and on today's dot when the period is over pace; the heading line turns amber or red
   when the period is heading over. No glow on the line or the dot. */
html[data-minimal="on"] .ah.rpb-hero {
    --rpb-line: var(--mn-ink);
    --rpb-area: var(--mn-chart-area);
    --rpb-under: color-mix(in srgb, var(--mn-ink) 6%, transparent);
    --rpb-heading: var(--mn-sub);
    --rpb-glow: transparent;
}

html[data-minimal="on"] .rpb-hero-area-1 { stop-opacity: 1; }
html[data-minimal="on"] .ah.rpb-hero .rpb-hero-glow { display: none; }
html[data-minimal="on"] .rpb-hero-projected:is(.rp-tone-caution, .rp-tone-negative) { stroke: var(--rp-tone); }
html[data-minimal="on"] .rpb-hero-dot { box-shadow: 0 0 0 3px color-mix(in srgb, var(--rp-card) 88%, transparent); }
html[data-minimal="on"] .rpb-hero-dot.is-over { background: var(--rp-negative); }

/* Plan health: the ring in ink while the plan is Great or Okay (or has no band yet), flat amber when it needs
   attention, flat red when it is off track; no glow, and the spark at the arc's end is a hollow marker. Inside the
   ring and in the legend, on track is ink while nearing, at risk and over keep their colors; a status with no lines
   is a quiet grey swatch. */
html[data-minimal="on"] .rpb-health { --rpb-g0: var(--mn-ink); --rpb-g1: var(--mn-ink); --rpb-glow: transparent; }
html[data-minimal="on"] .rpb-health.rp-tone-caution { --rpb-g0: var(--rp-caution); --rpb-g1: var(--rp-caution); }
html[data-minimal="on"] .rpb-health.rp-tone-negative { --rpb-g0: var(--rp-negative); --rpb-g1: var(--rp-negative); }
html[data-minimal="on"] :is(.rpb-gauge-arc, .rpb-gauge-spark) { filter: none; }
html[data-minimal="on"] .rpb-gauge-spark { fill: var(--mn-on-sel); }
html[data-minimal="on"] .rpb-health-legend li.is-zero .rpb-swatch:not(#mn) { background: var(--mn-r4); }

/* Health by period: a period that went fine is a quiet ink column (the current one a step stronger), so the one that
   needed attention or went off track is the column that stands out. */
html[data-minimal="on"] .rpb-health-col.rp-tone-positive .rpb-health-bar { background: var(--mn-r3); }
html[data-minimal="on"] .rpb-health-col.rp-tone-positive.is-current .rpb-health-bar { background: var(--mn-bar); }

/* ================================================================================================== Liabilities */

html[data-minimal="on"] {
    /* Payoff journey, loan splits and bars: principal (progress) in ink, interest and escrow on the ramp. */
    --ln-interest: var(--mn-r3);
    --ln-interest-2: var(--mn-r4);
    --ln-escrow: var(--mn-r5);
    --ln-escrow-2: var(--mn-r6);
    --lb-glow-rate: var(--mn-sub);
    --lb-glow-schedule: var(--mn-sub);
    --lb-glow-reserve: var(--mn-sub);
    --lb-glow-progress: var(--mn-bar);
    --lb-other: var(--mn-r4);
}

html[data-minimal="on"] :is(.ln-split-principal, .lc-fill-positive, .la-util-positive, .pp-fill-progress, .pp-budget-seg.is-extra):not(#mn) { background: var(--mn-bar); }
html[data-minimal="on"] .pp-budget-seg.is-required:not(#mn) { background: var(--mn-r4); }
html[data-minimal="on"] :is(.ln-cards-fill, .ln-bar-loans.pp-bar-split):not(#mn) { background: var(--mn-r3); }
html[data-minimal="on"] .pp-fill-cost:not(#mn) { background: color-mix(in srgb, var(--mn-bad) 70%, transparent); }
html[data-minimal="on"] .ln-runway-fill:not(#mn) { background: var(--mn-bar); }
html[data-minimal="on"] .lbu-fill:not(#mn) { background: var(--mn-bar); }
html[data-minimal] .lbu-you:not(#mn) { background: var(--mn-well); color: var(--mn-ink-2); }

/* Payoff journey: the step nodes in ink, the first (today) a hollow ring. */
html[data-minimal="on"] .pp-journey-track:not(#mn) { background: var(--mn-track); }
html[data-minimal="on"] .pp-journey-dot:not(#mn) { border-color: var(--mn-ink); color: var(--mn-ink); }
html[data-minimal="on"] .pp-journey-dot.is-last:not(#mn) { border-color: var(--mn-sel); background: var(--mn-sel); color: var(--mn-on-sel); }

/* Carousel dots and small "add statement" chips. */
html[data-minimal] .lb-carousel-dot.is-selected:not(#mn) { background: var(--mn-ink); }
html[data-minimal] .la-chip-btn:not(#mn) { background: var(--mn-well); }

/* Due-date status ("2d"): the words carry the tone on a neutral pill. */
html[data-minimal] .lb-status-pill.lb-status-imminent:not(#mn) { color: var(--mn-warn); }

/* ================================================================================================== Investments */

html[data-minimal="on"] {
    /* Allocation slices and the retirement buckets on the neutral ramp. */
    --iv-slice-1: var(--mn-r1);
    --iv-slice-2: var(--mn-r2);
    --iv-slice-3: var(--mn-r3);
    --iv-slice-4: var(--mn-r4);
    --iv-slice-5: var(--mn-r5);
    --iv-slice-other: var(--mn-r-other);
    --rp-bucket-outside: var(--mn-r6);
    /* Hero line and its washes. */
    --iv-hero-line: var(--mn-ink);
    --iv-hero-secondary: var(--mn-faint);
    --iv-hero-area: var(--mn-chart-area);
    --iv-chart-ink: var(--mn-ink-2);
    /* Live-price dots and range fills. */
    --ivh-src-live: var(--mn-good);
    --ivk-range-fill: var(--mn-well-2);
}

html[data-minimal="on"] .nwh {
    --iv-green: var(--mn-ink);
    --iv-green-strong: var(--mn-ink);
    --iv-green-bright: var(--mn-sub);
}

/* Outlined buttons (Review alerts, Open in Holdings, Rough estimate): a neutral hairline, ink words. */
html[data-minimal] .iv-btn:not(.iv-btn-primary):not(.iv-btn-danger):not(.iv-btn-ghost):not(#mn) {
    border-color: var(--mn-hair);
    color: var(--mn-ink);
}

html[data-minimal] .iv-btn:not(.iv-btn-primary):not(.iv-btn-danger):not(.iv-btn-ghost):hover:not(:disabled):not(#mn) { background: var(--mn-well); }

/* Bars that measure: ink. A bar with a tone (an over, a loss) keeps it. */
html[data-minimal="on"] .iv-bar-fill:not(#mn) { background: var(--iv-tone, var(--mn-bar)); }
html[data-minimal="on"] :is(.iv-tone-positive, .iv-tone-accent) > .iv-bar-fill:not(#mn),
html[data-minimal="on"] .iv-bar-fill.iv-tone-positive:not(#mn) { background: var(--mn-bar); }
html[data-minimal="on"] .ivo-mini-fill:not(.is-zero):not(#mn) { background: var(--mn-bar); }
html[data-minimal="on"] .ivd-share-fill:not(#mn) { background: var(--mn-bar); }
html[data-minimal="on"] :is(.ivd-swatch:not(.ivd-swatch-dash):not(.ivd-swatch-partial), .ivd-holding-dot):not(#mn) { background: var(--mn-bar); }
html[data-minimal="on"] .ivd-hero { --ivdp-a: var(--mn-bar); --ivdp-b: var(--mn-bar); }
html[data-minimal="on"] .ivd-ring:not(.iv-tone-negative):not(.iv-tone-caution) { --ivd-ring: var(--mn-ink); }
html[data-minimal="on"] .ivp-key:not(#mn) { --ivp-key: var(--mn-ink); }
html[data-minimal="on"] .iv-range-marker:not(#mn) { background: var(--mn-ink); }

/* Takeaway callouts ("Up in 7 of the last 11 months..."): the neutral well; the glyph keeps the area's green. */
html[data-minimal] { --iv-callout: var(--mn-well); }

/* Monthly returns heat: green for a gain and red for a loss stay (they are the value), at a calmer strength. */
html[data-minimal="on"] :is(.ivp-cal-cell, .ivp-cal-ramp, .ivp-cal-swatch):not(#mn) { filter: saturate(.62); }

/* Dividends' Portfolio income / Recurring bills figures: no colored left edge. */
html[data-minimal] .ivd-fig:not(#mn) { border-left-color: var(--mn-hair); }

/* Signals rows and mover chips: neutral wells, the tone in the glyph and the words. */
html[data-minimal] .ivs-signal-row:not(#mn) { background: var(--mn-well); }
html[data-minimal] .ivo-mover-chip:not(#mn) { background: var(--ci-icon-pill); }
html[data-minimal] .ivo-mover-worst .iv-logo:not(:has(img)):not(#mn) { background: var(--mn-avatar) !important; color: var(--mn-bad) !important; }

/* Retirement: the hero's status badge and the what-if deltas are neutral pills (core); the benchmark bars ink, the
   partner keeps the couple's amber. */
html[data-minimal="on"] .rp-bench:not(.rp-bench-partner) { --rp-who: var(--mn-ink); }
html[data-minimal] .rpl-switch-track:not(#mn) { border-color: var(--mn-hair); }

/* ================================================================================================== Reports */

/* Link buttons ("Open Cash Flow", "Show all 13", heat-map line names): neutral pills, ink words, no indigo. */
html[data-minimal] .rp-link.rp-link-btn:not(#mn),
html[data-minimal] .rp-link:not(.rp-link-btn):not(#mn) {
    background: var(--mn-well);
    color: var(--mn-ink);
}

html[data-minimal] .rp-link.rp-link-btn:hover:not(#mn) { background: var(--mn-well-2); }

/* Bars that measure: ink. Spending is not an issue, so its breakdown bars are ink too; an over stays red. */
html[data-minimal="on"] :is(.rp-breakdown-fill, .rp-hbar-fill, .rp-vcol-fill, .rp-fair-fill.is-cost, .rp-pace-fill, .rp-pace2-spent):not(#mn) { background: var(--mn-bar); }
html[data-minimal="on"] .rp-fair-fill.is-income:not(#mn) { background: var(--mn-r3); }
html[data-minimal="on"] .rp-pace2-rail:not(#mn),
html[data-minimal="on"] .rp-nwp-goal-bar:not(#mn) { background: var(--mn-track); }

/* Calendars and heat maps of amounts (how much, not how good): the ink ramp. Budget heat (how close to the limit)
   keeps its green-to-red, which is a judgement. */
html[data-minimal="on"] .rp-cal-day.lv-1:not(#mn) { background: color-mix(in srgb, var(--mn-ink) 10%, transparent); }
html[data-minimal="on"] .rp-cal-day.lv-2:not(#mn) { background: color-mix(in srgb, var(--mn-ink) 22%, transparent); }
html[data-minimal="on"] .rp-cal-day.lv-3:not(#mn) { background: color-mix(in srgb, var(--mn-ink) 40%, transparent); }
html[data-minimal="on"] .rp-cal-day.lv-4:not(#mn) { background: color-mix(in srgb, var(--mn-ink) 62%, transparent); color: var(--mn-on-sel); }
/* .rp-cal-day.is-in: css/minimal/reports.css (green date, no border). */

/* Chips on findings and the library, model chips, the finder chip. */
html[data-minimal] :is(.rp-dollar-chip, .rp-finder-chip):not(#mn) { --rp-chip: var(--mn-ink); }
html[data-minimal] .rp-bh-chip-btn.is-on:not(#mn) { border-color: var(--mn-sel); background: var(--mn-sel); color: var(--mn-on-sel); }
html[data-minimal] .bg-qa-chip:not(#mn) { background: var(--mn-well); }

/* The pace rail and dots. */
html[data-minimal="on"] .rp-bh-dot.rp-tone-neutral:not(#mn) { background: var(--mn-faint); }

/* ================================================================================================== Settle and Partner Sharing */
/* The couple's blue and amber stay (they say whose money it is): in dots, bars and glyphs only. */

html[data-minimal] :is(.settle-kpi, .settle-highlight) { --kpi-wash: 0%; --hl-wash: 0%; }
html[data-minimal] .ai-vis-card.settle-viz { --stv-wash: 0%; }
html[data-minimal] .psh-step-no:not(#mn) { border-color: var(--mn-sel); background: var(--mn-sel); color: var(--mn-on-sel); }
html[data-minimal] .psh-exchange:not(#mn) { background: var(--psh-card, var(--mn-well)); }

/* ================================================================================================== Settings, Import, Support */

html[data-minimal] .imc-statements-cta:not(#mn) { background: var(--mn-well); color: var(--mn-ink); }
html[data-minimal] .sp-pill.is-status.is-user:not(#mn) { color: var(--mn-ink-2); }

/* ================================================================================================== System admin */

html[data-minimal] .adu-partner-link:not(#mn) { border-color: transparent; background: var(--mn-well); }
html[data-minimal] .adu-btn.adu-btn-tone:not(#mn),
html[data-minimal] .adu-btn.adu-btn-danger:not(#mn) { background: var(--mn-well); }
html[data-minimal] .adr-table tr.is-live:not(#mn),
html[data-minimal] tr.is-live:not(#mn) { background: transparent; box-shadow: inset 2px 0 0 var(--mn-good); }
html[data-minimal] .sd-row.is-prio-high:not(#mn) { border-color: var(--mn-rule); }

/* ================================================================================================== Second sweep */
/* What the light-theme scan of every route still found, area by area. */

/* ---- Card go-links everywhere ("Open report ->", "View alert"): the round arrow chip is a neutral well; the arrow keeps
   the card's tone (it is the action). On hover the chip deepens a step instead of filling with color. */
html[data-minimal] :is(.rp-link, .settle-highlight-link, .ivo-check-action, .bgh-watch-all, .dbx-card-link, .acx-link, .chx-link, .imc-link):not(.rp-link-btn) > :is(.fa-arrow-right, .fa-chevron-right, .bx-right-arrow-alt, .bx-chevron-right):last-child:not(#mn) {
    background: var(--mn-well-2);
}

html[data-minimal] :is(.rp-link, .settle-highlight-link, .ivo-check-action, .bgh-watch-all, .dbx-card-link, .acx-link, .chx-link, .imc-link):not(.rp-link-btn):not(:disabled):is(:hover, :focus-visible):not(#mn) {
    border-color: var(--mn-hair);
    background: var(--mn-well-2);
    color: var(--mn-ink);
}

html[data-minimal] :is(.rp-link, .settle-highlight-link, .ivo-check-action, .bgh-watch-all, .dbx-card-link, .acx-link, .chx-link, .imc-link):not(.rp-link-btn):not(:disabled):is(:hover, :focus-visible) > :is(.fa-arrow-right, .fa-chevron-right, .bx-right-arrow-alt, .bx-chevron-right):last-child:not(#mn) {
    background: var(--mn-well-2);
    color: var(--ci-go-tone, var(--ci-go-neutral));
}

/* ---- Dashboard keys and week bars */
html[data-minimal="on"] .dx .dx-key.is-bills:not(#mn) { background: var(--mn-r2); }
html[data-minimal="on"] .dx .dx-week-bar:not(#mn) { background: var(--mn-r3); }

/* ---- Recurring signal cards: the glyph badge, NEW and the arrow chip without a tone wash or ring. */
html[data-minimal] .rc-signal-glyph:not(#mn),
html[data-minimal] .rc-chip-icon:not(#mn) { box-shadow: none; }
html[data-minimal] .rc-signal-new:not(#mn) { background: var(--mn-well); color: var(--mn-sub); }
html[data-minimal] .rc-signal-action-arrow:not(#mn) { background: var(--mn-well-2); }
html[data-minimal] .rc-period.rc-period-heaviest:not(#mn) { box-shadow: none; border-color: var(--mn-rule); }

/* ---- Budgets */
html[data-minimal] .bg-ask-btn:not(#mn) { border-color: var(--mn-hair); color: var(--mn-ink); }

/* ---- Investments: rule cards keep no colored edge (the state pill says it); owner, kind and step buttons neutral. */
html[data-minimal] :is(.ivr-card, .ivr-preview-card):not(#mn) { box-shadow: var(--ivr-card-shadow, none); }
html[data-minimal] .ivr-card.is-clickable:hover:not(#mn) { box-shadow: var(--ivr-card-hover-shadow, none); }
html[data-minimal] :is(.ivr-event-body, .lbr-event-body):not(#mn) { border-color: var(--mn-rule); }

html[data-minimal] :is(.iv-owner, .iva-kind, .rp-owner, .lbr-state, .settle-kpi-change, .rp-pace2-badge):not(#mn) {
    background: var(--mn-well);
    box-shadow: inset 0 0 0 1px var(--mn-hair);
}

html[data-minimal] :is(.ivs-rename-btn:not(.is-quiet), .rc-task-btn.rp-step-try):not(#mn) {
    border-color: var(--mn-hair);
    background: transparent;
    color: var(--mn-ink);
}

html[data-minimal] .rpl-switch-track:not(#mn) { background: var(--mn-sel); border-color: var(--mn-sel); }
html[data-minimal="on"] .rp-swatch-line:not(#mn) { background: var(--mn-ink); }
html[data-minimal="on"] .rp-swatch-band:not(#mn) { background: color-mix(in srgb, var(--mn-ink) 14%, transparent); }
html[data-minimal="on"] .rp-swatch-retired:not(#mn) { border-color: var(--mn-faint); background: color-mix(in srgb, var(--mn-ink) 6%, transparent); }
html[data-minimal="on"] .rp-swatch-contrib:not(#mn) { background: var(--mn-r4); }
html[data-minimal="on"] .rp-swatch-growth:not(#mn) { background: var(--mn-r2); }

/* ---- Liabilities: payoff side pane, insight rows, rule cards, run buttons, strategies. */
html[data-minimal] .rp-nwp-badge:not(#mn) { background: var(--mn-well); color: var(--mn-ink-2); }
html[data-minimal="on"] .rp-nwp-node:not(#mn) { border-color: var(--mn-ink); box-shadow: none; }
html[data-minimal] .rp-nwp-goal:not(#mn) { background: var(--nwp-tile, var(--mn-well)); border-color: var(--mn-rule); }
html[data-minimal="on"] .rp-nwp-goal-bar .rp-nwp-goal-fill:not(#mn) { background: var(--mn-bar); }
html[data-minimal] :is(.rp-nwp-goal-chip, .hx-metric-chip, .lxk-spot-chip, .lxs-chip):not(#mn) { background: var(--ci-icon-pill); box-shadow: none; border-color: transparent; }
html[data-minimal] .rp-nwp-flag:not(#mn) { background: var(--mn-well); }

html[data-minimal] :is(.rci-open, .la-chip-btn, .lb-cb-run-btn.is-create):not(#mn) {
    border-color: var(--mn-hair);
    background: transparent;
    color: var(--mn-ink);
}

html[data-minimal] .lb-cb-run-btn.is-busy:not(#mn) { background: var(--mn-well); color: var(--mn-sub); }

/* Rule and insight cards: an edge only when it flags something (over, negative, caution). */
html[data-minimal] :is(.lbr-card.lbr-state-ok, .lbr-card.lbr-state-paused):not(#mn) { box-shadow: none; }
html[data-minimal] :is(.lxs-item.is-positive, .lxs-item.is-neutral):not(#mn) { box-shadow: none; }
html[data-minimal] .rp-breakdown-row.lxd-row:not(#mn) { box-shadow: none; }

/* Payoff: the selected strategy is the selected look (neutral, with its check), not a rose frame; focus rows lose
   their colored edge. */
html[data-minimal] :is(.ln-strategy.is-selected, .pp-strategy.is-selected):not(#mn) {
    border-color: var(--mn-rule);
    background: var(--ci-selected-fill), var(--lb-card, transparent);
    box-shadow: none;
}

html[data-minimal] :is(.lw-total.is-on, .lxo-row.is-focus, .ln-steps li.is-focus):not(#mn) { border-color: var(--mn-rule); box-shadow: none; }
html[data-minimal] .lxo-rank:not(#mn) { border-color: var(--mn-ink); color: var(--mn-ink); }
html[data-minimal] .lx-pill.is-month:not(#mn) { box-shadow: inset 0 0 0 1px var(--mn-hair); }

/* ---- Settle: the couple's colors stay in the words and glyphs; their chips and sides are neutral wells. */
html[data-minimal] :is(.settle-viz-pill, .settle-viz-chip, .settle-viz-chip.is-link):not(#mn) { background: var(--mn-well); }
html[data-minimal] .settle-couple-side:not(#mn) { border-color: var(--mn-rule); }

/* ---- Partner Sharing: shared accounts that are on use the selected look; the open step has no blue frame. */
html[data-minimal] .psh-acct.is-on:not(#mn) { background: var(--mn-well); }
html[data-minimal] .psh-step-link.is-open:not(#mn) { border-color: var(--mn-rule); }

/* ---- AI Assist: the prompt box's resting edge is a hairline (focus keeps its ring). */
html[data-minimal] .ai-editor-box:not(:focus-within):not(#mn) { border-color: var(--mn-rule); }

/* ---- Reports */
html[data-minimal] .rp-logo { --rp-logo-tint: var(--mn-sub); }
html[data-minimal] .rp-logo:not(:has(img)):not(#mn) { background: var(--mn-avatar); color: var(--mn-avatar-ink); }
html[data-minimal] .bg-qa-chip:not(#mn) { border-color: var(--mn-hair); }
html[data-minimal] .rp-finding:not(.rp-tone-negative):not(.rp-tone-caution):not(#mn) { box-shadow: none; }
html[data-minimal] .rp-finding:not(.rp-tone-negative):not(.rp-tone-caution)::before { display: none; }
html[data-minimal="on"] .rp-bridge-bar.rp-bridge-total:not(#mn) { background: var(--mn-bar); }
html[data-minimal="on"] .rpb-bullet-track:not(#mn) { background: var(--mn-track); }
html[data-minimal] .rpb-period.is-current:not(#mn) { background: var(--mn-well); }
html[data-minimal="on"] .rp-growth-bar.rp-growth-income:not(#mn) { background: var(--mn-r5); }
html[data-minimal="on"] .rp-growth-bar.rp-growth-spending:not(#mn) { background: var(--mn-r4); }
html[data-minimal] :is(.rpx-mode-tag, .rpx-craft, .rpx-answer-empty, .rp-ask-empty):not(#mn) { border-color: var(--mn-rule); }
html[data-minimal] .rp-pace2-legend em:not(#mn) { background: var(--mn-well); }

/* ---- Import */
html[data-minimal] .imc-statements:not(#mn) { border-color: var(--mn-rule); }
html[data-minimal] :is(.imc-template-dl.is-icon, .imc-fields li.is-required, li.is-required):not(#mn) { background: var(--mn-well); }

/* ---- Update Account: the plan card glyph on a neutral well. */
html[data-minimal] .upa-card-glyph:not(#mn) { background: var(--ci-icon-pill); color: #B7791F; }

/* ---- System admin: institutions and issues keep an edge only when they need someone; Android's card is neutral. */
html[data-minimal] .adp-inst.is-positive:not(#mn) { box-shadow: none; }
html[data-minimal] .adu-hero.adr-platform:not(#mn) { border-color: var(--mn-rule); }

/* ================================================================================================== Dark sweep */
/* What the dark-theme scan still found: washes a dark sheet tints with its area hue. */

/* Investments hero pills and keyboard keys (dark green glass) and the current month in the income calendar. */
html[data-minimal][data-bs-theme="dark"] { --iv-pill: var(--mn-well); }
html[data-minimal] .ah.iv-hero { --ah-pill: var(--mn-well); --ah-value-pill: transparent; }
html[data-minimal] .ivd-month.is-current:not(#mn) { background: var(--mn-well-2); }

/* Accounts: Check now and the Manage connections chevron (dark aqua glass). */
html[data-minimal] :is(.chx-banner-check, .acx-manage-chevron):not(#mn) { background: var(--mn-well-2); color: var(--mn-ink); }

/* Transactions grid: the Partner pill (violet) in the couple's amber words on a neutral pill; the group indent edge. */
html[data-minimal] .admin-partner-pill:not(#mn) {
    background: var(--mn-well);
    box-shadow: inset 0 0 0 1px var(--mn-hair);
    color: var(--ci-couple-partner, #D97706);
}

html[data-minimal][data-bs-theme="dark"] .admin-partner-pill:not(#mn) { color: #FBBF24; }
html[data-minimal] .e-grid td.e-indentcell:not(#mn) { box-shadow: inset 3px 0 0 var(--mn-hair); }

/* Settle Insights: the couple's chips and sides keep their color in the words only (charts: end of this file). */
html[data-minimal] :is(.settle-viz-pill, .settle-viz-chip):not(#mn) { border-color: var(--mn-hair); }
html[data-minimal] .settle-couple-side:not(#mn) { background: var(--mn-well); }

/* Reports: the pace badge's ring, and the net-worth hero's metric chips (their tint is set inline). */
html[data-minimal] .rp-pace2-badge:not(#mn) { border-color: transparent; }
html[data-minimal] .hx-metric-chip:not(#mn) { background: var(--ci-icon-pill) !important; }

/* ================================================================================================== Settle Insights charts */
/* The Reports spending ring's look: parts of a whole in the ink ramp (biggest first, so the ring and the ranked bars
   read as one), measures in ink, and color only where a wait is a problem (amber: 1-4 weeks to pay, open 1-2 months;
   red: over a month to pay, open over 2 months). Who paid is ink for you and a quieter ink for your partner; the couple's blue
   and amber stay in the amounts and in Who paid back what. Syncfusion draws its fills as attributes (a palette entry or
   a url(#settle-grad-*) gradient), so the CSS fill / stop-color below wins without touching the C# palettes. */

/* You and your partner: two inks. Light is a step softer so the daily columns are not black slabs. */
html[data-minimal="on"] {
    --stm-you: var(--mn-r2);
    --stm-partner: var(--mn-r4);
}

html[data-minimal="on"][data-bs-theme="dark"] {
    --stm-you: var(--mn-r1);
    --stm-partner: var(--mn-r3);
}

/* No muting filter on these: they are already neutral, and the filter dims the ramp in dark. */
html[data-minimal="on"] .settle-viz-chart :is(g[id$="SeriesCollection"], g[id*="SymbolGroup"], g[id$="_chart_legend_collections"], g[id$="_Series_0"]):not(#mn) { filter: none; }

/* Settled by category (ring) and Category totals (ranked bars): the ink ramp by rank. A legend key the user hid keeps
   Syncfusion's grey. */
html[data-minimal="on"] :is(.settle-viz-ring, .settle-viz-bars) path[id*="_Series_0_Point_"]:not(#mn),
html[data-minimal="on"] .settle-viz-ring path[id*="_chart_legend_shape_"]:not([fill="#D3D3D3"]):not(#mn) { fill: var(--mn-r-other); }
html[data-minimal="on"] .settle-viz-bars path[id*="_Series_0_Point_"]:not(#mn) { fill: var(--mn-r6); }
html[data-minimal="on"] :is(.settle-viz-ring, .settle-viz-bars) path[id$="_Series_0_Point_0"]:not(#mn),
html[data-minimal="on"] .settle-viz-ring path[id$="_chart_legend_shape_0"]:not([fill="#D3D3D3"]):not(#mn) { fill: var(--mn-r1); }
html[data-minimal="on"] :is(.settle-viz-ring, .settle-viz-bars) path[id$="_Series_0_Point_1"]:not(#mn),
html[data-minimal="on"] .settle-viz-ring path[id$="_chart_legend_shape_1"]:not([fill="#D3D3D3"]):not(#mn) { fill: var(--mn-r2); }
html[data-minimal="on"] :is(.settle-viz-ring, .settle-viz-bars) path[id$="_Series_0_Point_2"]:not(#mn),
html[data-minimal="on"] .settle-viz-ring path[id$="_chart_legend_shape_2"]:not([fill="#D3D3D3"]):not(#mn) { fill: var(--mn-r3); }
html[data-minimal="on"] :is(.settle-viz-ring, .settle-viz-bars) path[id$="_Series_0_Point_3"]:not(#mn),
html[data-minimal="on"] .settle-viz-ring path[id$="_chart_legend_shape_3"]:not([fill="#D3D3D3"]):not(#mn) { fill: var(--mn-r4); }
html[data-minimal="on"] :is(.settle-viz-ring, .settle-viz-bars) path[id$="_Series_0_Point_4"]:not(#mn),
html[data-minimal="on"] .settle-viz-ring path[id$="_chart_legend_shape_4"]:not([fill="#D3D3D3"]):not(#mn) { fill: var(--mn-r5); }
html[data-minimal="on"] :is(.settle-viz-ring, .settle-viz-bars) path[id$="_Series_0_Point_5"]:not(#mn),
html[data-minimal="on"] .settle-viz-ring path[id$="_chart_legend_shape_5"]:not([fill="#D3D3D3"]):not(#mn) { fill: var(--mn-r6); }
/* The ring's legend keys are solid dots (the white centre hid the ramp). */
html[data-minimal="on"] .settle-viz-ring ellipse[id*="_chart_legend_shape_marker_"]:not(#mn) { display: none; }

/* Settled over time, Daily: flat columns, you in ink and your partner in a quieter ink (no fade to the baseline). */
html[data-minimal="on"] :is(#settle-grad-you-col-light, #settle-grad-you-col-dark) stop { stop-color: var(--stm-you); stop-opacity: 1; }
html[data-minimal="on"] :is(#settle-grad-partner-col-light, #settle-grad-partner-col-dark) stop { stop-color: var(--stm-partner); stop-opacity: 1; }

/* Running total: the lines in the same two inks over one flat faint shade (yours; your partner's is fainter), no glow. */
html[data-minimal="on"] :is(#settle-grad-you-area-light, #settle-grad-you-area-dark) stop { stop-color: var(--mn-chart-area); stop-opacity: 1; }
html[data-minimal="on"] :is(#settle-grad-partner-area-light, #settle-grad-partner-area-dark) stop { stop-color: var(--mn-chart-area); stop-opacity: .5; }
html[data-minimal="on"] .settle-viz-timeline.is-running :is([id$="_Series_1"], [id$="_Series_4"]):not(#mn) { opacity: 0; }
html[data-minimal="on"] .settle-viz-timeline.is-running :is([id$="_Series_2"], [id*="_Series_2_Point_"]):not(#mn) { stroke: var(--stm-you); }
html[data-minimal="on"] .settle-viz-timeline.is-running :is([id$="_Series_5"], [id*="_Series_5_Point_"]):not(#mn) { stroke: var(--stm-partner); }

/* The legend pills above it: the dot is the series' ink; the amount keeps the couple's color. No halo on any key dot. */
html[data-minimal="on"] .settle-viz-dot:not(#mn) { box-shadow: none; }
html[data-minimal="on"] .settle-viz-legend .settle-viz-pill.is-user .settle-viz-dot:not(#mn) { background: var(--stm-you); }
html[data-minimal="on"] .settle-viz-legend .settle-viz-pill.is-partner .settle-viz-dot:not(#mn) { background: var(--stm-partner); }

/* Meters (Payment rails, Speed to settle bands, How you split): a flat ink bar on a faint track. The slow bands keep
   amber (1-4 weeks) and red (over a month). */
html[data-minimal="on"] .settle-meter:not(#mn) { background: var(--mn-track); }
html[data-minimal="on"] .settle-meter > span:not(#mn) { background: var(--stm-meter, var(--stm-you)); }
html[data-minimal="on"] .settle-bucket.tone-caution { --stm-meter: color-mix(in srgb, var(--mn-warn) 85%, transparent); }
html[data-minimal="on"] .settle-bucket.tone-negative { --stm-meter: color-mix(in srgb, var(--mn-bad) 80%, transparent); }

/* Payment rails: what you sent and received reads in the row's quiet ink (the rail's own glyph keeps its brand). */
html[data-minimal="on"] .settle-rail-mix-flow :is(.is-user, .is-partner) i:not(#mn) { color: var(--mn-faint); }

/* Top merchants: who paid back, in the two inks. */
html[data-minimal="on"] .settle-rank-bar .is-user:not(#mn) { background: var(--stm-you); opacity: 1; }
html[data-minimal="on"] .settle-rank-bar .is-partner:not(#mn) { background: var(--stm-partner); opacity: 1; }

/* When you settle up: the weekday heat in ink strengths (busier is stronger) instead of green. */
html[data-minimal="on"] .settle-rhythm-cell:not(#mn) { background: var(--mn-well); color: var(--mn-sub); }
html[data-minimal="on"] .settle-rhythm-day.lv-1 .settle-rhythm-cell:not(#mn) { background: color-mix(in srgb, var(--mn-ink) 12%, transparent); color: var(--mn-ink); }
html[data-minimal="on"] .settle-rhythm-day.lv-2 .settle-rhythm-cell:not(#mn) { background: color-mix(in srgb, var(--mn-ink) 22%, transparent); color: var(--mn-ink); }
html[data-minimal="on"] .settle-rhythm-day.lv-3 .settle-rhythm-cell:not(#mn) { background: color-mix(in srgb, var(--mn-ink) 36%, transparent); color: var(--mn-ink); }
html[data-minimal="on"] .settle-rhythm-day.lv-4 .settle-rhythm-cell:not(#mn) { background: color-mix(in srgb, var(--mn-ink) 56%, transparent); color: var(--mn-on-sel); }

/* Waiting right now: fresh dollars in two quiet inks (under a week fainter), then amber and red as before. The bar
   segments and the legend dots read --age, so the legend items stay plain like the amber and red ones. */
html[data-minimal="on"] .settle-aging .age-week { --age: var(--mn-r4); }
html[data-minimal="on"] .settle-aging .age-month { --age: var(--mn-r2); }

/* The card header chips (counts, "$319.78 settled", Settle up) in ink words; the link keeps its arrow in the card's
   tone. Speed to settle's median reads in ink: a wait is a fact here, not a win. */
html[data-minimal] .settle-viz .settle-viz-chip:not(#mn) { color: var(--mn-ink-2); }
html[data-minimal] .settle-viz .settle-viz-chip.is-link > i:not(#mn) { color: var(--stv-accent); }
html[data-minimal="on"] .settle-speed-median strong:not(#mn) { color: var(--mn-ink); }
