/*
    The flat look, second pass (2026-11-21): the public site's look, brought into every area of the signed-in app.
    Loaded after css/minimal-style.css (which flattens the surfaces). Since 2026-11-22 it is the look of every style,
    as on mobile (Settings/FlatStyle.cs): rules that start with html[data-minimal] apply whether Minimal style is on or
    off (App.razor always writes the attribute). Rules that start with html[data-minimal="on"] are Minimal style's own:
    the charts (charts.css, reports.css, the chart rules in areas.css) and the graphite pass (graphite.css). With
    Minimal style off, every chart keeps its full colors.

    The rule, taken from the public site's stages (css/public-stage.css, css/investments-stages.css):
    - Color is for what needs the eye: an issue, a callout, a figure that moved, an action to take. Everything else is
      ink, a quieter ink, hairlines and one faint well.
    - Pills are neutral. A pill never takes a colored fill or a colored border; when it holds a glyph, only the glyph
      carries the tone and the words go to ink. A pill with no glyph keeps its tone in its words (a gain, a loss).
    - Icon tiles are neutral wells. The glyph keeps its section color (Accounts aqua, Liabilities rose, Investments
      green, Recurring amber, Reports indigo...), used sparingly.
    - Watermarks behind KPI tiles go to a faint ink; letter avatars and initials go to a neutral well with ink letters.
    - A selected chip in a chip row (ranges, benchmarks, filters, pages) is the public site's ink pill: ink fill, page
      text. Segmented menus keep their white pill on the recess.
    - A callout that needs the user (reconnect, needs review, pay before interest) is a neutral well with its tone in
      the glyph; a critical one adds a thin tone edge.
    - Charts: css/minimal/charts.css and the series chart's own minimal palette (js/series-chart.js), Minimal style only.

    Specificity: every selector starts with html[data-minimal] (or html[data-minimal="on"]). Where an area sheet's own rule is stronger (a
    scoped .razor.css rule under [data-bs-theme="dark"], or a deep descendant chain), the selector adds :not(#mn),
    which matches every element and lifts the rule by one id without changing what it selects.

    Files: core.css (this: tokens and the shared recipes), areas.css (one section per area; its chart rules are Minimal
    style only), charts.css and reports.css (charts, legends and keys; Minimal style only), graphite.css (Minimal style
    only: section glyphs, figures, the couple's colors and washes in graphite, as mobile's Settings/MinimalStyle.cs).
*/

/* ================================================================================================== Tokens */

html[data-minimal] {
    --mn-ink: #0B0F19;
    --mn-ink-2: #2B3040;
    --mn-sub: #5D6178;
    --mn-faint: #8A8FA3;
    --mn-rule: rgba(11, 15, 25, .09);
    --mn-hair: rgba(11, 15, 25, .08);
    --mn-well: rgba(11, 15, 25, .045);
    --mn-well-2: rgba(11, 15, 25, .075);
    --mn-good: #15803D;
    --mn-bad: #C2312F;
    --mn-warn: #B45309;
    --mn-info: #2563EB;
    --mn-sel: #212836;
    --mn-on-sel: #FFFFFF;
    --mn-avatar: #EEF0F4;
    --mn-avatar-ink: #3A3F52;
    --mn-mark: #0B0F19;
    /* A neutral ramp for charts and keys that show parts of a whole (categories, allocation, account mix): ink at
       falling strengths, so the biggest part is the darkest and nothing competes with a tone that means something. */
    --mn-r1: color-mix(in srgb, var(--mn-ink) 86%, transparent);
    --mn-r2: color-mix(in srgb, var(--mn-ink) 64%, transparent);
    --mn-r3: color-mix(in srgb, var(--mn-ink) 48%, transparent);
    --mn-r4: color-mix(in srgb, var(--mn-ink) 35%, transparent);
    --mn-r5: color-mix(in srgb, var(--mn-ink) 25%, transparent);
    --mn-r6: color-mix(in srgb, var(--mn-ink) 17%, transparent);
    --mn-r-other: color-mix(in srgb, var(--mn-ink) 11%, transparent);
    /* A bar or meter that measures something without judging it (progress, share, coverage). */
    --mn-bar: color-mix(in srgb, var(--mn-ink) 78%, transparent);
    --mn-track: color-mix(in srgb, var(--mn-ink) 8%, transparent);
}

html[data-minimal][data-bs-theme="dark"] {
    --mn-ink: #F1F2F8;
    --mn-ink-2: #D5D8E4;
    --mn-sub: #A3A8BE;
    --mn-faint: #7C8197;
    --mn-rule: rgba(255, 255, 255, .1);
    --mn-hair: rgba(255, 255, 255, .09);
    --mn-well: rgba(255, 255, 255, .055);
    --mn-well-2: rgba(255, 255, 255, .085);
    --mn-good: #4ADE80;
    --mn-bad: #F87171;
    --mn-warn: #FBBF24;
    --mn-info: #7CB0FF;
    --mn-sel: #DADEE7;
    --mn-on-sel: #0B0F19;
    --mn-avatar: #222736;
    --mn-avatar-ink: #D5D8E4;
    --mn-mark: #FFFFFF;
}

/* ================================================================================================== Tone washes */
/* Every area's "-soft" tone fill (the pale green / amber / rose / blue behind a pill, a chip, a callout or a selected
   item) becomes the one neutral well. The tone stays in the text and the glyph that sit on it. Global tokens first
   (declared on :root by each area sheet), then the ones an area declares on its own container. AI identity tokens
   (the AI gradient, AI washes) are left alone. */

html[data-minimal] {
    /* Accounts, connection health, My Accounts, Partner Sharing, Update Account */
    --acx-caution-soft: var(--mn-well);
    --acx-critical-soft: var(--mn-well);
    --acx-neutral-soft: var(--mn-well);
    --acx-positive-soft: var(--mn-well);
    --acx-chip-bg: var(--mn-well);
    --mya-aqua-soft: var(--mn-well);
    --mya-caution-soft: var(--mn-well);
    --mya-critical-soft: var(--mn-well);
    --mya-neutral-soft: var(--mn-well);
    --mya-positive-soft: var(--mn-well);
    --mya-violet-soft: var(--mn-well);
    --psh-caution-soft: var(--mn-well);
    --psh-critical-soft: var(--mn-well);
    --psh-neutral-soft: var(--mn-well);
    --psh-partner-soft: var(--mn-well);
    --psh-positive-soft: var(--mn-well);
    --psh-user-soft: var(--mn-well);
    --upa-aqua-soft: var(--mn-well);
    --upa-blue-soft: var(--mn-well);
    --pdh-badge-bg: var(--mn-well);
    --psn-badge-bg: var(--mn-well);

    /* Dashboard (classic), payday, header actions, quick category */
    --dbx-flow-credit-soft: var(--mn-well);
    --dbx-flow-income-soft: var(--mn-well);
    --dbx-flow-loan-soft: var(--mn-well);
    --dbx-flow-transfer-soft: var(--mn-well);
    --pd-accent-soft: var(--mn-well);
    --pd-partner-soft: var(--mn-well);
    --pd-you-soft: var(--mn-well);
    --ci-act-accent-soft: var(--mn-well);
    --ci-act-danger-soft: var(--mn-well);
    --qc-crown-soft: var(--mn-well);
    --ag-accent-soft: var(--mn-well);

    /* Transactions and the transaction popups */
    --tx-caution-soft: var(--mn-well);
    --tx-critical-soft: var(--mn-well);
    --tx-positive-soft: var(--mn-well);
    --tx-nr-info-soft: var(--mn-well);
    --tx-nr-warning-soft: var(--mn-well);
    --tx-owner-partner-tint: var(--mn-well);
    --tx-pill-bg: var(--mn-well);
    --tx-flow-income-bg: var(--mn-well);
    --tx-flow-transfer-bg: var(--mn-well);
    --tx-flow-credit-bg: var(--mn-well);
    --tx-flow-loan-bg: var(--mn-well);
    --tx-flow-person-bg: var(--mn-well);
    --tx-flow-from-person-bg: var(--mn-well);
    --tx-flow-support-bg: var(--mn-well);
    --tx-flow-partner-bg: var(--mn-well);
    --mtx-kind-asset-soft: var(--mn-well);
    --mtx-kind-cash-soft: var(--mn-well);
    --mtx-kind-credit-soft: var(--mn-well);
    --mtx-kind-invest-soft: var(--mn-well);
    --mtx-kind-loan-soft: var(--mn-well);
    --mtx-kind-manual-soft: var(--mn-well);

    /* Recurring */
    --rc-accent-soft: var(--mn-well);
    --rc-caution-soft: var(--mn-well);
    --rc-critical-soft: var(--mn-well);
    --rc-early-soft: var(--mn-well);
    --rc-hero-soft: var(--mn-well);
    --rc-large-soft: var(--mn-well);
    --rc-neutral-soft: var(--mn-well);
    --rc-partner-soft: var(--mn-well);
    --rc-positive-soft: var(--mn-well);

    /* Reports, Budgets */
    --rp-accent-soft: var(--mn-well);
    --rp-caution-soft: var(--mn-well);
    --rp-gold-soft: var(--mn-well);
    --rp-indigo-soft: var(--mn-well);
    --rp-negative-soft: var(--mn-well);
    --rp-neutral-soft: var(--mn-well);
    --rp-positive-soft: var(--mn-well);
    --bg-soft: var(--mn-well);

    /* Investments */
    --iv-accent-soft: var(--mn-well);
    --iv-caution-soft: var(--mn-well);
    --iv-green-soft: var(--mn-well);
    --iv-negative-soft: var(--mn-well);
    --iv-neutral-soft: var(--mn-well);
    --iv-positive-soft: var(--mn-well);

    /* Liabilities */
    --lb-accent-soft: var(--mn-well);
    --lb-caution-soft: var(--mn-well);
    --lb-negative-soft: var(--mn-well);
    --lb-neutral-soft: var(--mn-well);
    --lb-positive-soft: var(--mn-well);
    --lb-rose-soft: var(--mn-well);
    --lb-pill-bg: var(--mn-well);

    /* Settle */
    --st-brand-soft: var(--mn-well);
    --st-partner-soft: var(--mn-well);
    --st-pay-soft: var(--mn-well);
    --st-user-soft: var(--mn-well);

    /* Settings, subscription, support, rules & tags, help */
    --set-accent-soft: var(--mn-well);
    --set-plan-soft: var(--mn-well);
    --sub-accounts-soft: var(--mn-well);
    --sub-caution-soft: var(--mn-well);
    --sub-gold-soft: var(--mn-well);
    --sub-investments-soft: var(--mn-well);
    --sub-liabilities-soft: var(--mn-well);
    --sub-negative-soft: var(--mn-well);
    --sub-positive-soft: var(--mn-well);
    --sub-reports-soft: var(--mn-well);
    --sub-sharing-soft: var(--mn-well);
    --sp-accent-soft: var(--mn-well);
    --sp-brand-soft: var(--mn-well);
    --sp-caution-soft: var(--mn-well);
    --sp-critical-soft: var(--mn-well);
    --sp-neutral-soft: var(--mn-well);
    --sp-partner-soft: var(--mn-well);
    --sp-positive-soft: var(--mn-well);
    --sp-user-soft: var(--mn-well);
    --rt-accent-soft: var(--mn-well);
    --rt-composer-pill-bg: var(--mn-well);
    --help-caution-soft: var(--mn-well);
    --help-primary-soft: var(--mn-well);

    /* AI Assist pills (not the AI buttons or the AI gradient) */
    --ai-accent-soft: var(--mn-well);
    --ai-pill-bg: var(--mn-well);
    --ai-couple-pill-bg: var(--mn-well);

    /* System admin */
    --adu-caution-soft: var(--mn-well);
    --adu-critical-soft: var(--mn-well);
    --adu-neutral-soft: var(--mn-well);
    --adu-partner-soft: var(--mn-well);
    --adu-positive-soft: var(--mn-well);
    --adu-violet-soft: var(--mn-well);
    --adr-android-soft: var(--mn-well);
    --adr-ios-soft: var(--mn-well);
    --aiu-critical-soft: var(--mn-well);
    --aiu-good-soft: var(--mn-well);
    --aiu-info-soft: var(--mn-well);
    --aiu-luna-soft: var(--mn-well);
    --aiu-serious-soft: var(--mn-well);
    --aiu-sol-soft: var(--mn-well);
    --aiu-warning-soft: var(--mn-well);

    /* Import */
    --imc-art-wash-a: transparent;
    --imc-art-wash-b: transparent;
}

/* Tokens an area declares on its own container (they would beat the root ones inside it). */
html[data-minimal] .dx {
    --dx-accent-soft: var(--mn-well);
    --dx-pos-soft: var(--mn-well);
    --dx-neg-soft: var(--mn-well);
    --dx-caution-soft: var(--mn-well);
    --dx-blue-soft: var(--mn-well);
    --dx-indigo-soft: var(--mn-well);
    --dx-fuchsia-soft: var(--mn-well);
    --dx-green-soft: var(--mn-well);
    --dx-rose-soft: var(--mn-well);
    --dx-amber-soft: var(--mn-well);
    --dx-teal-soft: var(--mn-well);
    --dx-slate-soft: var(--mn-well);
    --dx-you-soft: var(--mn-well);
    --dx-partner-soft: var(--mn-well);
}

html[data-minimal] .dx-safe.is-tight { --safe-soft: var(--mn-well); }

html[data-minimal] .txv {
    --txf-credit-soft: var(--mn-well);
    --txf-income-soft: var(--mn-well);
    --txf-loan-soft: var(--mn-well);
    --txf-transfer-soft: var(--mn-well);
    --txg-chip-bg: var(--mn-well);
    --txv-accent-soft: var(--mn-well);
    --txv-amber-soft: var(--mn-well);
}

html[data-minimal] .rc-hue {
    --rc-hue-soft: var(--mn-well);
    --rc-hero-soft: var(--mn-well);
}

html[data-minimal] :is(.hx, .hx.hx-liabilities, .hx.hx-reports) {
    --hx-hue-soft: var(--mn-well);
    --hx-line-soft: var(--mn-rule);
}

html[data-minimal] .admin-accounts-page,
html[data-minimal] section.dbs-sheet.acx-sheet,
html[data-minimal] section.dbs-sheet.chx-sheet {
    --acx-positive-soft: var(--mn-well);
}

html[data-minimal] .ah { --ah-badge-bg: var(--ci-icon-pill); }
html[data-minimal] .nwh { --iv-green-soft: var(--mn-well); --iv-range-pill: var(--tx-seg-pill); }
html[data-minimal] :is(.iv-ss-host, .lb-ss-host, .ss-root) { --ss-live-soft: transparent; --ss-live-line: var(--mn-rule); }

html[data-minimal] :is(.help-area-accounts, .help-area-ai, .help-area-budgets, .help-area-general, .help-area-home,
    .help-area-investments, .help-area-liabilities, .help-area-recurring, .help-area-bills, .help-area-reports,
    .help-area-settings, .help-area-settle, .help-area-partner, .help-area-transactions) { --help-soft: var(--mn-well); }

html[data-minimal] :is(.is-hue-0, .is-hue-1, .is-hue-2, .is-hue-3, .is-hue-4, .is-hue-5, .is-hue-6, .is-hue-7) { --hue-soft: var(--mn-well); }

/* User tags keep their own color, as a dot; the pill is neutral and the name is ink. */
html[data-minimal] :is(.tag-c-amber, .tag-c-aqua, .tag-c-blue, .tag-c-green, .tag-c-indigo, .tag-c-pink, .tag-c-rose, .tag-c-slate, .tag-c-violet) { --tag-soft: var(--mn-well); }

html[data-minimal] .tag-chip:not(.tag-archived) {
    gap: 5px;
    color: var(--mn-ink-2);
}

html[data-minimal] .tag-chip:not(.tag-archived)::before {
    content: "";
    flex: 0 0 auto;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--tag-strong, currentColor);
}

/* ================================================================================================== Pills */
/* One recipe for every status, kind and insight pill: the neutral well, a hairline drawn inside (so sizes do not
   move), no colored border, no glow. When the pill holds a glyph, its words are drawn in ink while the glyph keeps the
   pill's own tone: -webkit-text-fill-color paints the text, and the glyph resets it to its (inherited, toned) color. */

html[data-minimal] :is(
    .dx-pill, .dx-delta, .dx-tag,
    .rc-tag, .rc-metric, .rc-range-pill, .rc-day-pill, .nr-chip,
    .iv-pill:not(.iv-pill-solid), .ivr-state, .ivk-signal, .rp-whatif-delta,
    .rp-pill:not(.rp-pill-ai), .rp-filter-days, .rp-source-steady, .rpx-change, .rp-bh-impact,
    .bg-mo-count, .bg-mo-badge, .bg-mo-state,
    .lc-due, .lc-habit, .lb-status-pill,
    .txf-badge, .qc-cell-type, .txg-pending, .txv-mark, .tx-yn-pill,
    .adu-pill, .aiu-pill, .sp-pill, .chb-badge, .aiu-hero-delta,
    .settle-rail-pill, .ss-pill-live, .ss-count-pill
):not(#mn) {
    border-color: transparent;
    background: var(--mn-well);
    box-shadow: inset 0 0 0 1px var(--mn-hair);
}

html[data-minimal] :is(
    .dx-pill, .dx-delta, .rc-tag, .rc-metric, .nr-chip, .iv-pill:not(.iv-pill-solid), .ivr-state, .ivk-signal,
    .rp-pill:not(.rp-pill-ai), .rp-source-steady, .lc-due, .lc-habit, .txf-badge, .qc-cell-type, .txg-pending,
    .txv-mark, .adu-pill, .aiu-pill, .sp-pill, .chb-badge, .aiu-hero-delta, .settle-rail-pill, .bg-mo-state
):has(> i, > .tx-glyph, > .bx, > svg, > .adu-pill-dot, > .ss-live-dot) {
    -webkit-text-fill-color: var(--mn-ink-2);
}

html[data-minimal] :is(
    .dx-pill, .dx-delta, .rc-tag, .rc-metric, .nr-chip, .iv-pill, .ivr-state, .ivk-signal, .rp-pill, .rp-source-steady,
    .lc-due, .lc-habit, .txf-badge, .qc-cell-type, .txg-pending, .txv-mark, .adu-pill, .aiu-pill, .sp-pill, .chb-badge,
    .aiu-hero-delta, .settle-rail-pill, .bg-mo-state
) > :is(i, .tx-glyph, .bx, svg) {
    -webkit-text-fill-color: currentColor;
}

/* Buttons that are pills (Transactions' type cell, the quick-category type button) lift to a second well on hover. */
html[data-minimal] button.qc-cell-type:hover:not(#mn) { background: var(--mn-well-2); }

/* The LIVE badge on Smart Signals: neutral, with only its dot in the live blue. */
html[data-minimal] .ss-pill-live:not(#mn) { color: var(--mn-sub); }
html[data-minimal] .ss-live-badge:not(#mn) {
    border-color: var(--mn-hair);
    background: transparent;
    color: var(--ss-live);
}

/* "NEW" on a signal and the signal count: neutral. */
html[data-minimal] .ss-pill-new:not(#mn) {
    background: var(--mn-well);
    box-shadow: inset 0 0 0 1px var(--mn-hair);
    color: var(--mn-sub);
}

/* ================================================================================================== Icon tiles */
/* Most icon chips already read --ci-icon-pill (a neutral well). These are the ones that painted their own tone. */

html[data-minimal] :is(.ss-head-chip, .ss-section-investments .ss-head-chip, .ss-section-liabilities .ss-head-chip):not(#mn) {
    background: var(--ci-icon-pill);
}

html[data-minimal] .ss-section-investments .ss-count-pill:not(#mn) { color: var(--mn-sub); }

/* Recurring-style chips everywhere (Recurring, Reports, Budgets, Liabilities, Retirement): the tone stays in the glyph. */
html[data-minimal] .rc-chip-icon:not(.rp-tone-accent):not(#mn) { background: var(--ci-icon-pill); }
html[data-minimal] :is(.rc-launcher-icon, .rc-cta-icon, .rc-state-glyph):not(#mn) { background: var(--ci-icon-pill); }

/* Two-tone couple chip (the Settle up header on the Dashboard): a neutral well, the glyph in the user's blue. */
html[data-minimal] .dx-chip.dx-hue-couple:not(#mn) {
    background: var(--ci-icon-pill);
    color: var(--dx-you, #2563EB);
}

/* ================================================================================================== Watermarks */
/* KPI tile watermarks (css/tile-marks.css): the same angled glyph, in a faint ink instead of the tile's hue. */

html[data-minimal] .ci-tile-mark,
html[data-minimal] [class*="ci-mark-"].ci-tile-mark,
html[data-minimal] .scx-tile > .ci-tile-mark:not([class*="ci-mark-"]),
html[data-minimal] .rcx-tile > .ci-tile-mark:not([class*="ci-mark-"]),
html[data-minimal] :is(.txi-tile, .rc-tile, .rc-tile-positive, .rc-tile-caution, .rc-tile-critical) > .ci-tile-mark {
    --ci-mark: var(--mn-mark);
}

html[data-minimal] .ci-tile-mark { opacity: .06; }
html[data-minimal][data-bs-theme="dark"] .ci-tile-mark { opacity: .07; }
html[data-minimal] .ci-tile-marked:hover > .ci-tile-mark { opacity: .09; }
html[data-minimal][data-bs-theme="dark"] .ci-tile-marked:hover > .ci-tile-mark { opacity: .1; }

/* Accounts' own tile marks and the big tx-glyph marks on Reports and Accounts cards. */
html[data-minimal] .acx-tile-mark:not(#mn) { color: var(--mn-mark); opacity: .06; }
html[data-minimal] .adu-hero-watermark:not(#mn) { color: var(--mn-mark); opacity: .06; }

/* ================================================================================================== Avatars */
/* Letter avatars and institution initials: a neutral well with the letters in ink. Real logos (images) are untouched. */

html[data-minimal] .rse-avatar:not(#mn) {
    background: var(--mn-avatar);
    box-shadow: inset 0 0 0 1px var(--mn-hair);
    color: var(--mn-avatar-ink);
    text-shadow: none;
}

html[data-minimal] :is(.acx-logo-initials, .mya-logo-initials, .admin-transaction-avatar-initial):not(#mn) {
    background: var(--mn-avatar) !important;
    box-shadow: inset 0 0 0 1px var(--mn-hair);
    color: var(--mn-avatar-ink);
}

html[data-minimal] .settle-logo:not(:has(img)):not(#mn),
html[data-minimal] .iv-logo:not(:has(img)):not(#mn),
html[data-minimal] .sd-row-avatar:not(#mn),
html[data-minimal] .upa-brand:not(:has(img)):not(#mn) {
    background: var(--mn-avatar) !important;
    color: var(--mn-avatar-ink) !important;
}

/* ================================================================================================== Selected chips */
/* A chip row (ranges, benchmarks, filters, pages): the selected chip is the public site's ink pill. */

html[data-minimal] :is(
    .dx-range.is-on, .is-spending .dx-range.is-on,
    .rp-chip[aria-checked="true"], .rp-chip.is-on, .rp-bh-page.is-on,
    .lw-preset.is-active, .acx-tr-range.is-on
):not(#mn) {
    border-color: var(--mn-sel);
    background: var(--mn-sel);
    box-shadow: none;
    color: var(--mn-on-sel);
}

html[data-minimal] .rp-chip:hover:not([aria-checked="true"]):not(:disabled):not(#mn) {
    border-color: var(--mn-hair);
    background: var(--mn-well);
    color: var(--mn-ink);
}

/* What rides on a selected ink chip reads in the inverse, in light and dark alike: its glyph takes the chip's own text
   color, and its count flips to a pill of that color with the number in the chip's ink (a white pill with a dark
   number on the dark chip; a dark pill with a light number on the light chip in dark), so "All 60" never sinks into
   the chip. Covers every chip on this ink look (Patterns & Alerts kinds, the Reports chip rows, the Briefings filters,
   ranges and presets). */
html[data-minimal] :is(
    .dx-range.is-on, .rp-chip[aria-checked="true"], .rp-chip.is-on, .rp-bh-chip-btn.is-on, .rp-bh-page.is-on,
    .lw-preset.is-active, .acx-tr-range.is-on
) .tx-glyph:not(#mn) {
    color: inherit;
}

html[data-minimal] :is(
    .dx-range.is-on, .rp-chip[aria-checked="true"], .rp-chip.is-on, .rp-bh-chip-btn.is-on, .rp-bh-page.is-on,
    .lw-preset.is-active, .acx-tr-range.is-on
) .rp-chip-count:not(#mn) {
    background: var(--mn-on-sel);
    color: var(--mn-sel);
    font-weight: 650;
}

/* Grid pagers: the current page in ink. */
html[data-minimal] .admin-shell .e-pager .e-numericitem.e-currentitem:not(#mn) {
    border-color: var(--mn-sel);
    background: var(--mn-sel);
    color: var(--mn-on-sel);
}

/* ================================================================================================== Callouts */
/* Anything that asks the user to look (a reconnect banner, items to review, pay before interest, a caution note): a
   neutral well. The tone lives in its glyph and its words; a critical one keeps a thin tone edge on the left. */

html[data-minimal] :is(.dx-callout, .dx-notice, .dx-review, .rc-banner, .bg-highlight, .rp-overlap, .rp-explainer,
    .rp-fair-suggest, .aiu-signal):not(#mn) {
    border-color: var(--mn-hair);
    background: var(--mn-well);
    box-shadow: none;
}

html[data-minimal] :is(.dx-callout.is-negative, .dx-notice.is-error, .aiu-signal.is-critical):not(#mn) {
    box-shadow: inset 2px 0 0 var(--mn-bad);
}

html[data-minimal] .dx-review:not(#mn) { color: var(--mn-ink); }
html[data-minimal] a.dx-review:hover:not(#mn) { filter: none; background: var(--mn-well-2); }

html[data-minimal] .dx-review-count:not(#mn) {
    background: transparent;
    box-shadow: inset 0 0 0 1px var(--mn-hair);
    color: var(--dx-caution-ink, var(--mn-warn));
}

html[data-minimal] .dx-review.is-clear .dx-review-count:not(#mn) { color: var(--dx-pos-ink, var(--mn-good)); }

/* Today's date chip in a list of dates: ink, not amber. */
html[data-minimal] .dx-date.is-today:not(#mn) {
    background: var(--mn-sel);
}

html[data-minimal] .dx-date.is-today:not(#mn) :is(small, b) { color: var(--mn-on-sel); }

/* ================================================================================================== Counts */
/* Small count bubbles beside a menu item or a header (not the notification bell, which is a callout). */

html[data-minimal] :is(.psi-chip-count, .tx-seg-item-detail, .iv-badge, .rp-views-count):not(#mn) {
    background: var(--mn-well-2);
    color: var(--mn-ink-2);
}
