/* Shared composition; controls and modal surfaces remain owned by the dashboard. */
/* ── Savings goals («Копилка»): card, list, detail ─────────────────────────
 * One component for both designs. Colours are component variables: «Малахит» light/dark values here,
 * «Эфир» re-maps them to --rd-* tokens in css/redesign-web/forms.css (same pattern as operation-statistics.css). */
.yf-sv {
    --st-ink: #1f3a33;
    --st-muted: #66797a;
    --st-line: rgba(25, 92, 73, .14);
    --st-bg: rgba(40, 160, 120, .035);
    --st-field: #fff;
    --st-fill: rgba(25, 92, 73, .07);
    --st-thumb: #fff;
    --st-thumb-shadow: 0 1px 2px rgba(12, 42, 34, .14), 0 0 0 .5px rgba(12, 42, 34, .08);
    --st-accent: #168166;
    --st-accent-soft: rgba(22, 129, 102, .1);
    --st-danger: #b84d55;
    --st-radius: 12px;
    --st-ease: cubic-bezier(.2, .8, .2, 1);
    --sv-surface: #f4f9f7;
    --sv-track: rgba(25, 92, 73, .13);
    --sv-warn: #a8610f;
    --sv-warn-soft: rgba(217, 130, 11, .13);
    display: grid;
    gap: 14px;
    min-width: 0;
    color: var(--st-ink);
}
.dark-theme .yf-sv {
    --st-ink: #e3ece9;
    --st-muted: #9aaba6;
    --st-line: rgba(211, 225, 230, .1);
    --st-bg: rgba(255, 255, 255, .025);
    --st-field: #232b30;
    --st-fill: rgba(255, 255, 255, .06);
    --st-thumb: #34424a;
    --st-thumb-shadow: 0 1px 2px rgba(0, 0, 0, .4);
    --st-accent: #6fd3ad;
    --st-on-accent: #0b2621;
    --st-accent-soft: rgba(111, 211, 173, .12);
    --st-danger: #e9868b;
    --sv-surface: #1b2a28;
    --sv-track: rgba(255, 255, 255, .1);
    --sv-warn: #f0b36a;
    --sv-warn-soft: rgba(240, 179, 106, .14);
}
.yf-sv [hidden] { display: none !important; }
.yf-sv .yf-stat-note { margin: 0; line-height: 1.5; }

/* Goal row */
.yf-sv-list { display: grid; gap: 10px; }
.yf-sv-list--roomy { gap: 12px; }
.yf-sv-goal {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 12px 14px;
    text-align: left;
    border: 1px solid var(--st-line);
    border-radius: 16px;
    background: var(--sv-surface);
    color: var(--st-ink);
    font: inherit;
    transition: background-color .2s var(--st-ease), border-color .2s var(--st-ease);
}
.yf-sv-goal:hover { background: var(--st-fill); border-color: color-mix(in srgb, var(--st-accent) 30%, var(--st-line)); }
.yf-sv-goal:focus-visible { outline: 2px solid var(--st-accent); outline-offset: 2px; }
.yf-sv-goal__main { display: grid; gap: 3px; min-width: 0; }
.yf-sv-goal__name { overflow: hidden; font-size: 14.5px; font-weight: 700; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.yf-sv-goal__sum { display: block; font-variant-numeric: tabular-nums; }
.yf-sv-goal__sum strong { font-size: 14px; font-weight: 700; }
.yf-sv-goal__sum small { color: var(--st-muted); font-size: 12px; font-weight: 500; }
.yf-sv-goal__meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 3px; }
.yf-sv-goal__go { color: var(--st-muted); font-size: 16px; transition: transform .2s var(--st-ease), color .2s var(--st-ease); }
.yf-sv-goal:hover .yf-sv-goal__go { color: var(--st-accent); }

/* Progress ring: the hole has the colour of the row so one conic gradient is enough */
.yf-sv-ring {
    display: grid;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    aspect-ratio: 1;
    place-items: center;
    border-radius: 50%;
    background:
        radial-gradient(circle closest-side, var(--sv-surface) 79%, transparent 81%),
        conic-gradient(var(--st-accent) calc(var(--p, 0) * 1%), var(--sv-track) 0);
    color: var(--st-ink);
    transition: background-color .2s var(--st-ease);
}
.yf-sv-ring b { font-size: 12.5px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.yf-sv-ring b small { margin-left: 1px; font-size: 9px; font-weight: 700; opacity: .7; }
.yf-sv-ring.is-done { background: radial-gradient(circle closest-side, var(--sv-surface) 79%, transparent 81%), conic-gradient(var(--st-accent) 0 100%, var(--st-accent) 0); }
.yf-sv-ring.is-done i { color: var(--st-accent); font-size: 20px; }
.yf-sv-goal.has-warning .yf-sv-ring { background: radial-gradient(circle closest-side, var(--sv-surface) 79%, transparent 81%), conic-gradient(var(--sv-warn) calc(var(--p, 0) * 1%), var(--sv-track) 0); }

/* Chips */
.yf-sv-chip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 2px 8px; border-radius: 999px; background: var(--st-fill); color: var(--st-muted); font-size: 11.5px; font-weight: 650; line-height: 1.5; }
.yf-sv-chip i { font-size: 13px; }
.yf-sv-chip.is-warn { background: var(--sv-warn-soft); color: var(--sv-warn); }

/* “All goals” row and the create button */
.yf-sv-all { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 42px; padding: 0 14px; border: 0; border-radius: 13px; background: var(--st-fill); color: var(--st-ink); font: inherit; font-size: 13px; font-weight: 700; text-align: left; transition: background-color .2s var(--st-ease); }
.yf-sv-all span { padding: 1px 7px; border-radius: 999px; background: var(--st-accent-soft); color: var(--st-accent); font-size: 11.5px; }
.yf-sv-all i { margin-left: auto; color: var(--st-muted); }
.yf-sv-all:hover { background: color-mix(in srgb, var(--st-accent) 14%, var(--st-fill)); }
.yf-sv-create { justify-self: start; }

/* Empty state */
.yf-sv-empty { position: relative; display: grid; justify-items: center; align-content: center; gap: 10px; min-height: 250px; padding: 14px 8px 10px; text-align: center; isolation: isolate; }
/* Calm decoration: one soft glow centred exactly on the mark */
.yf-sv-empty__icon { position: relative; }
.yf-sv-empty__icon::before { content: ""; position: absolute; z-index: -1; inset: -26px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--st-accent) 18%, transparent) 0, transparent 68%); pointer-events: none; }
.yf-sv-empty__icon { box-shadow: 0 10px 26px -12px color-mix(in srgb, var(--st-accent) 70%, transparent), inset 0 0 0 1px color-mix(in srgb, var(--st-accent) 18%, transparent); }
.yf-sv-empty__icon { display: grid; width: 56px; height: 56px; place-items: center; border-radius: 18px; background: var(--st-accent-soft); color: var(--st-accent); font-size: 28px; }
.yf-sv-empty strong { font-size: 15px; font-weight: 750; }
.yf-sv-empty p { max-width: 34ch; margin: 0; color: var(--st-muted); font-size: 12.5px; line-height: 1.5; }
.yf-sv-presets { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 2px 0 6px; }
.yf-sv-preset { padding: 5px 12px; border: 1px solid var(--st-line); border-radius: 999px; background: transparent; color: var(--st-ink); font: inherit; font-size: 12px; font-weight: 650; transition: background-color .2s var(--st-ease), border-color .2s var(--st-ease); }
.yf-sv-preset:hover { background: var(--st-accent-soft); border-color: color-mix(in srgb, var(--st-accent) 40%, var(--st-line)); }
.yf-sv-skeleton, .yf-sv-loading { display: grid; gap: 10px; }
.yf-sv-skeleton .yf-sk { height: 74px; border-radius: 16px; }
.yf-sv-loading .yf-sk { height: 44px; border-radius: 12px; }

/* Detail hero: the same forest gradient as the primary cards, light on colour in both designs */
.yf-sv-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    gap: 12px;
    overflow: hidden;
    padding: 18px 18px 16px;
    border-radius: 20px;
    color: #fff;
    background:
        radial-gradient(120% 95% at 108% -12%, rgba(52, 211, 153, .5), transparent 52%),
        radial-gradient(95% 80% at -18% 118%, rgba(45, 212, 191, .3), transparent 58%),
        linear-gradient(155deg, #0f6b50 0%, #0a4d3a 48%, #052a20 100%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 14px 26px -18px rgba(5, 42, 32, .8);
}
.yf-sv-hero::before { position: absolute; z-index: -1; inset: 0; border-radius: inherit; background: repeating-radial-gradient(circle at 115% -20%, rgba(255, 255, 255, .032) 0 1px, transparent 1px 22px); content: ""; pointer-events: none; }
.yf-sv-hero__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.yf-sv-hero__name { min-width: 0; padding-top: 6px; font-size: 15px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; opacity: .94; }
.yf-sv-hero__tools { display: flex; flex: none; gap: 6px; }
.yf-sv-tool { display: grid; flex: 0 0 34px; width: 34px; height: 34px; aspect-ratio: 1; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font-size: 16px; box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .3); transition: background-color .2s var(--st-ease); }
.yf-sv-tool:hover { background: rgba(255, 255, 255, .28); }
.yf-sv-tool:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.yf-sv-hero__sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-variant-numeric: tabular-nums; }
.yf-sv-hero__sum strong { font-size: 32px; font-weight: 750; letter-spacing: -.025em; line-height: 1.1; }
.yf-sv-hero__sum span { font-size: 13px; opacity: .76; }
.yf-sv-bar { height: 8px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, .2); }
.yf-sv-bar > span { display: block; height: 100%; border-radius: inherit; background: #86efc4; transition: width .6s var(--st-ease); }
.yf-sv-hero__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 12.5px; font-weight: 650; opacity: .92; }
.yf-sv-hero__foot i { vertical-align: -1px; }
.yf-sv-hero__alerts { display: flex; flex-wrap: wrap; gap: 6px; }
.yf-sv .yf-sv-hero :is(strong, span, i, b) { color: #fff !important; }
.yf-sv .yf-sv-hero .yf-sv-chip { background: rgba(255, 255, 255, .16); }
.yf-sv .yf-sv-hero .yf-sv-chip.is-warn { background: rgba(255, 215, 154, .22); }
.yf-sv .yf-sv-hero .yf-sv-chip.is-warn :is(span, i) { color: #ffe6bb !important; }

/* Action switch and its panel */
.yf-sv-seg .yf-stat-seg__item { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; font-size: 13px; }
.yf-sv-seg .yf-stat-seg__item i { font-size: 16px; }
.yf-sv-panel { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--st-line); border-radius: 16px; background: var(--sv-surface); }
.yf-sv-panel__footer { display: flex; justify-content: flex-end; margin-top: 12px; }
.yf-sv-panel form { display: grid; gap: 12px; }
.yf-sv-panel .yf-savings-payment-row { position: relative; padding: 0; }
.yf-sv-panel .yf-savings-payment-row:has(.yf-sv-tool--remove) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 34px; align-items: end; }
.yf-sv-link { justify-self: start; padding: 0; border: 0; background: none; color: var(--st-accent); font: inherit; font-size: 12.5px; font-weight: 700; }
.yf-sv-link:hover { text-decoration: underline; }
.yf-sv-note { display: flex; align-items: flex-start; gap: 8px; color: var(--st-muted); font-size: 12.5px; line-height: 1.5; }
.yf-sv-note i { margin-top: 1px; color: var(--st-accent); font-size: 16px; }
.yf-sv-tool--remove { align-self: end; margin-bottom: 4px; background: var(--st-fill); color: var(--st-muted); box-shadow: none; }
.yf-sv-tool--remove:hover { background: var(--sv-warn-soft); color: var(--sv-warn); }

/* Where the money lies */
.yf-sv-where { display: grid; gap: 8px; }
.yf-sv-where h6 { margin: 2px 0 0; color: var(--st-muted); font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.yf-sv-where__row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 10px 12px; border: 1px solid var(--st-line); border-radius: 14px; background: var(--sv-surface); }
.yf-sv-where__icon { display: grid; grid-row: span 2; width: 34px; height: 34px; place-items: center; border-radius: 11px; background: var(--st-accent-soft); color: var(--st-accent); font-size: 17px; }
.yf-sv-where__row:not(:has(small)) .yf-sv-where__icon { grid-row: auto; }
.yf-sv-where__name { overflow: hidden; font-size: 13.5px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.yf-sv-where__row strong { font-size: 13.5px; font-weight: 750; font-variant-numeric: tabular-nums; }
.yf-sv-where__row small { grid-column: 2 / -1; color: var(--sv-warn); font-size: 11.5px; font-weight: 650; }
.yf-sv-where__row.has-warning { border-color: color-mix(in srgb, var(--sv-warn) 35%, var(--st-line)); }

/* Archive */
.yf-sv-archive { display: grid; gap: 8px; padding: 4px 12px 12px; }
.yf-sv-archive__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.yf-sv-archive__row > span { overflow: hidden; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 575.98px) {
    .yf-sv-panel .yf-savings-payment-row:has(.yf-sv-tool--remove) { grid-template-columns: minmax(0, 1fr) 34px; }
    .yf-sv-panel .yf-savings-payment-row:has(.yf-sv-tool--remove) > label:nth-child(2) { grid-column: 1; }
    .yf-sv-panel .yf-savings-payment-row:has(.yf-sv-tool--remove) > .yf-sv-tool--remove { grid-column: 2; grid-row: 1; }
    .yf-sv-goal { gap: 12px; padding: 11px 12px; }
    .yf-sv-ring { flex-basis: 46px; width: 46px; height: 46px; }
    .yf-sv-hero { padding: 16px 16px 14px; }
    .yf-sv-hero__sum strong { font-size: 27px; }
    .yf-sv-seg .yf-stat-seg__item { gap: 4px; padding: 0 4px; font-size: 12px; }
    .yf-sv-seg .yf-stat-seg__item i { display: none; }
    .yf-sv-create { justify-self: stretch; }
}
@media (prefers-reduced-motion: reduce) {
    .yf-sv-bar > span, .yf-sv-goal, .yf-sv-goal__go { transition: none; }
}

.yf-savings-warning { color: #a44e40; }
.yf-savings-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-block: 16px; }
.yf-savings-payment-row { padding-block: 8px; }
.yf-operation-accounts { grid-column: 1 / -1; }
.yf-operation-accounts [hidden] { display: none !important; }
.dark-theme .yf-savings-warning { color: #f0a394; }
.main-table td.yf-future-entry { background: #edf3fc; }
.dark-theme .main-table td.yf-future-entry { background: #233750; }

/* Same metric nodes on desktop and mobile, no duplicate IDs or computed totals. */
.yf-analytics-compact-toggle { display: none; }
.yf-analytics-compact-panel, .yf-analytics-compact-inner { display: contents; }
@media (max-width: 767.98px) {
    body.yf-dashboard-auth #financeAnalyticsKpiGrid { display: block; }
    body.yf-dashboard-auth #financeAnalyticsKpiGrid .finance-analytics-kpi-column { display: block; padding: 0; border-left: 0; border-radius: 0; background: transparent; }
    body.yf-dashboard-auth #financeAnalyticsKpiGrid .finance-analytics-kpi-column__title { display: none; }
    .yf-analytics-compact-toggle { display: grid; grid-template-columns: minmax(0,1fr) auto 16px; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 12px 0; border: 0; border-bottom: 1px solid rgba(80,130,120,.18); background: transparent; text-align: left; font: inherit; color: inherit; }
    .yf-analytics-compact-heading { display: grid; gap: 4px; min-width: 0; }
    .yf-analytics-compact-heading strong { font-size: 14px; }
    .yf-analytics-compact-heading small { font-size: 11px; opacity: .75; }
    .yf-analytics-compact-value { max-width: 130px; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; overflow-wrap: anywhere; }
    .yf-analytics-compact-toggle > .ti { transition: transform .2s ease; }
    .yf-analytics-compact-open .yf-analytics-compact-toggle > .ti { transform: rotate(180deg); }
    .yf-analytics-compact-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .2s ease; }
    .yf-analytics-compact-inner { display: block; overflow: hidden; min-height: 0; }
    .yf-analytics-compact-open .yf-analytics-compact-panel { grid-template-rows: 1fr; }
    .yf-analytics-compact-inner .finance-analytics-kpi { margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .yf-analytics-compact-panel, .yf-analytics-compact-toggle > .ti { transition: none; }
}
@media (max-width: 575px) { .yf-savings-actions { flex-direction: column; align-items: stretch; } }

/* Savings sits beside «Чистые активы»: equal height, and the target panel stays centred under its heading. */
@media (min-width: 992px) {
    #yf-savings-card, #card6 { height: 100%; }
    #card6 .card-body { display: flex; flex-direction: column; }
    /* The card is a 2/3 column now: summary on top as one band, the target panel under it at full width. */
    #card6 .yf-net-assets-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-block: 0; padding-top: 12px; }
    #card6 .yf-net-assets-summary { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 28px; padding: 0 0 20px; border-right: 0; border-bottom: 1px solid var(--rd-line-soft, var(--yf-app-border, rgba(25, 92, 73, .14))); }
    #card6 .yf-net-assets-eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
    #card6 .yf-net-assets-summary p { grid-column: 2; grid-row: 2; max-width: none; margin: 0; }
    #card6 .yf-net-assets-value { grid-column: 1; grid-row: 2; }
}

/* Budget transfer («Перераспределить бюджет»): from → to header, segmented amount mode, before/after preview */
.yf-sv-flow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 10px; }
.yf-sv-flow__end { display: grid; align-content: center; gap: 2px; min-width: 0; padding: 12px 14px; border: 1px solid var(--st-line); border-radius: 16px; background: var(--sv-surface); }
.yf-sv-flow__end small { color: var(--st-muted); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.yf-sv-flow__end strong { overflow: hidden; font-size: 16px; font-weight: 750; text-overflow: ellipsis; text-transform: capitalize; white-space: nowrap; }
.yf-sv-flow__end span { overflow: hidden; color: var(--st-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.yf-sv-flow__end.is-target { border-color: color-mix(in srgb, var(--st-accent) 38%, var(--st-line)); background: var(--st-accent-soft); }
.yf-sv-flow__arrow { display: grid; align-self: center; width: 32px; height: 32px; aspect-ratio: 1; place-items: center; border-radius: 50%; background: var(--st-fill); color: var(--st-accent); font-size: 17px; }
.yf-sv-field { display: grid; gap: 7px; }
.yf-sv-field__label { color: inherit; font-size: inherit; font-weight: inherit; }
.yf-sv-preview { display: grid; gap: 6px; padding: 12px 14px; border: 1px solid var(--st-line); border-radius: 16px; background: var(--sv-surface); }
.yf-sv-preview:empty { visibility: hidden; }
.yf-sv-preview__title { color: var(--st-muted); font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.yf-sv-preview__row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 10px; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.yf-sv-preview__row > span { overflow: hidden; color: var(--st-muted); font-weight: 650; text-overflow: ellipsis; text-transform: capitalize; white-space: nowrap; }
.yf-sv-preview__row b { font-weight: 700; }
.yf-sv-preview__row b.is-after { color: var(--st-accent); }
.yf-sv-preview__row i { color: var(--st-muted); }
.yf-sv-note.is-warn { padding: 10px 12px; border-radius: 14px; background: var(--sv-warn-soft); color: var(--sv-warn); }
.yf-sv-note.is-warn i { color: inherit; }
.yf-sv-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 2px; }
@media (max-width: 575.98px) {
    .yf-sv-flow { grid-template-columns: minmax(0, 1fr); }
    .yf-sv-flow__arrow { justify-self: center; transform: rotate(90deg); }
    .yf-sv-actions .btn { flex: 1 1 0; }
}

/* Income distribution: received amount, live split bar, quick fills */
.yf-sv-received { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding: 14px 16px; border-radius: 16px; background: var(--st-accent-soft); }
.yf-sv-received span { color: var(--st-muted); font-size: 12.5px; font-weight: 650; }
.yf-sv-received strong { color: var(--st-ink); font-size: 24px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.yf-sv-split { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--st-line); border-radius: 16px; background: var(--sv-surface); }
.yf-sv-split__bar { display: flex; height: 10px; overflow: hidden; border-radius: 999px; background: var(--sv-track); }
.yf-sv-split__bar > span { display: block; height: 100%; transition: width .35s var(--st-ease); }
.yf-sv-split__bar .is-budget, .yf-sv-split__item.is-budget i { background: var(--st-accent); }
.yf-sv-split__bar .is-savings, .yf-sv-split__item.is-savings i { background: #3f7be0; }
.yf-sv-split__bar .is-free, .yf-sv-split__item.is-free i { background: color-mix(in srgb, var(--st-muted) 55%, transparent); }
.yf-sv-split__legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.yf-sv-split__item { display: grid; grid-template-columns: 8px minmax(0, 1fr); align-items: center; gap: 2px 7px; min-width: 0; }
.yf-sv-split__item i { width: 8px; height: 8px; aspect-ratio: 1; border-radius: 50%; }
.yf-sv-split__item span { overflow: hidden; color: var(--st-muted); font-size: 11.5px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.yf-sv-split__item strong { grid-column: 2; overflow: hidden; font-size: 13.5px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.yf-sv-split.is-over .yf-sv-split__item.is-free strong { color: var(--sv-warn); }
.yf-sv-presets { justify-content: flex-start; }
@media (max-width: 575.98px) { .yf-sv-split__legend { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .yf-sv-split__bar > span { transition: none; } }

/* “If there is not enough money” inside «Расширенный учёт»: three choice cards instead of stacked buttons */
.yf-operation-accounts .yf-sv-link { justify-self: start; }
.yf-operation-accounts [data-account-resolution]:not([hidden]) { display: grid; gap: 8px; width: 100%; min-width: 0; }
.yf-sv-options { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.yf-sv-option { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 0 10px; padding: 10px 12px; text-align: left; border: 1px solid var(--st-line); border-radius: 14px; background: var(--st-field, transparent); color: var(--st-ink); font: inherit; transition: border-color .2s var(--st-ease), background-color .2s var(--st-ease); }
.yf-sv-option:hover { border-color: color-mix(in srgb, var(--st-accent) 40%, var(--st-line)); background: var(--st-accent-soft); }
.yf-sv-option:focus-visible { outline: 2px solid var(--st-accent); outline-offset: 2px; }
.yf-sv-option > i { display: grid; grid-row: span 2; width: 30px; height: 30px; place-items: center; border-radius: 10px; background: var(--st-accent-soft); color: var(--st-accent); font-size: 16px; }
.yf-sv-option strong { font-size: 13px; font-weight: 700; }
.yf-sv-option small { color: var(--st-muted); font-size: 11.5px; line-height: 1.35; }
@media (max-width: 767.98px) { .yf-sv-options { grid-template-columns: minmax(0, 1fr); } }

.yf-sv-actions--split { justify-content: space-between; }
.yf-sv .yf-manage-form-grid > * { min-width: 0; }

/* ── Round 2: steadier dialogs, amount-first forms, terms with hints ───────────────────── */
/* Top-aligned dialog: a taller or shorter body no longer moves the whole window (it used to jump when centred). */
/* Centred, but with a steady minimum height, so switching tabs or loading a preview does not move the window. */
.modal-dialog.yf-sv-dialog .modal-content { min-height: min(660px, calc(100vh - 48px)); }
@keyframes yf-sv-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.yf-sv-enter, .yf-sv-panel.is-in { animation: yf-sv-enter .26s cubic-bezier(.2, .8, .2, 1) backwards; }
.yf-sv-panel { min-height: 210px; align-content: start; }
.yf-sv-fill { height: 100%; grid-template-rows: 1fr auto; align-content: stretch; }
.yf-sv-fill > .yf-sv-list { align-content: start; }
.yf-sv-fill .yf-sv-empty { margin-block: auto; }
.yf-sv-term { display: inline-flex; align-items: center; gap: 5px; }
.yf-sv .yf-inline-info { flex: none; }
.yf-sv-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.yf-sv-field { display: grid; gap: 8px; min-width: 0; align-content: start; }
.yf-sv-field.is-wide { grid-column: 1 / -1; }
.yf-sv-field__label { display: inline-flex; align-items: center; gap: 6px; color: var(--st-ink); font-size: 13px; font-weight: 700; }
.yf-sv-date { position: relative; display: flex; gap: 8px; }
.yf-sv-date__native { position: absolute; inset: auto 0 0 0; width: 100%; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.yf-sv-date__btn { display: flex; flex: 1 1 auto; align-items: center; gap: 10px; min-height: 46px; padding: 0 14px; border: 1px solid var(--st-line); border-radius: 13px; background: var(--st-field, transparent); color: var(--st-ink); font: inherit; font-size: 14.5px; font-weight: 650; text-align: left; transition: border-color .2s var(--st-ease), box-shadow .2s var(--st-ease); }
.yf-sv-date__btn:hover { border-color: color-mix(in srgb, var(--st-accent) 40%, var(--st-line)); }
.yf-sv-date__btn:focus-visible { outline: 0; border-color: var(--st-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--st-accent) 16%, transparent); }
.yf-sv-date__btn > i:first-child { color: var(--st-accent); font-size: 18px; }
.yf-sv-date__btn span { flex: 1 1 auto; }
.yf-sv-date__btn span.is-empty { color: var(--st-muted); font-weight: 550; }
.yf-sv-date__chev { color: var(--st-muted); }
.yf-sv-date__clear { display: grid; flex: 0 0 46px; width: 46px; height: 46px; aspect-ratio: 1; place-items: center; border: 1px solid var(--st-line); border-radius: 13px; background: transparent; color: var(--st-muted); transition: color .2s var(--st-ease), border-color .2s var(--st-ease); }
.yf-sv-date__clear:hover { border-color: var(--sv-warn); color: var(--sv-warn); }
.yf-sv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.yf-sv-chips:empty { display: none; }
.yf-sv-hero__label { font-size: 12px; font-weight: 700; letter-spacing: .03em; opacity: .8; }
.yf-sv .yf-sv-hero .yf-inline-info { color: #fff !important; border-radius: 50% !important; background: rgba(255, 255, 255, .18) !important; }
.yf-sv-hero__others { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 12.5px; font-weight: 650; font-variant-numeric: tabular-nums; opacity: .9; }
.yf-sv-hero__sum { margin-top: -6px; }

/* Three action tiles: the bank-app quick actions */
.yf-sv-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.yf-sv-tile { display: grid; justify-items: center; gap: 6px; padding: 12px 6px 11px; border: 1px solid var(--st-line); border-radius: 16px; background: var(--sv-surface); color: var(--st-ink); font: inherit; font-size: 12.5px; font-weight: 700; transition: background-color .22s var(--st-ease), border-color .22s var(--st-ease), color .22s var(--st-ease), box-shadow .22s var(--st-ease); }
.yf-sv-tile i { display: grid; width: 38px; height: 38px; aspect-ratio: 1; place-items: center; border-radius: 13px; background: var(--st-accent-soft); color: var(--st-accent); font-size: 19px; transition: background-color .22s var(--st-ease), color .22s var(--st-ease); }
.yf-sv-tile:hover { border-color: color-mix(in srgb, var(--st-accent) 35%, var(--st-line)); }
.yf-sv-tile.is-active { border-color: var(--st-accent); background: var(--st-accent-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--st-accent) 14%, transparent); }
.yf-sv-tile.is-active i { background: var(--st-accent); color: var(--st-on-accent, #fff); }
.yf-sv-tile:focus-visible { outline: 2px solid var(--st-accent); outline-offset: 2px; }

/* Panel */
.yf-sv-panel form { display: grid; gap: 16px; }
.yf-sv-panel__intro { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--st-muted); font-size: 12.5px; font-weight: 600; }
.yf-sv-panel__footer { margin-top: 0; }
.yf-sv-panel__footer .btn { min-width: 150px; }
.yf-sv-accounts { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.yf-sv-account, .yf-sv-leg { position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--st-line); border-radius: 14px; background: var(--st-field, transparent); color: var(--st-ink); cursor: pointer; transition: border-color .2s var(--st-ease), background-color .2s var(--st-ease), box-shadow .2s var(--st-ease); }
.yf-sv-account input { position: absolute; opacity: 0; pointer-events: none; }
.yf-sv-account:hover { border-color: color-mix(in srgb, var(--st-accent) 35%, var(--st-line)); }
.yf-sv-account:has(input:checked) { border-color: var(--st-accent); background: var(--st-accent-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--st-accent) 12%, transparent); }
.yf-sv-account:has(input:focus-visible) { outline: 2px solid var(--st-accent); outline-offset: 2px; }
.yf-sv-account.is-disabled { cursor: not-allowed; opacity: .5; }
.yf-sv-account__icon { display: grid; width: 38px; height: 38px; aspect-ratio: 1; place-items: center; border-radius: 12px; background: var(--st-accent-soft); color: var(--st-accent); font-size: 15px; font-weight: 750; }
.yf-sv-account__name { display: grid; gap: 1px; min-width: 0; }
.yf-sv-account__name b { overflow: hidden; font-size: 14px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.yf-sv-account__name small { color: var(--st-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.yf-sv-account__check { color: transparent; font-size: 20px; transition: color .2s var(--st-ease); }
.yf-sv-account:has(input:checked) .yf-sv-account__check { color: var(--st-accent); }
.yf-sv-leg { cursor: default; grid-template-columns: 38px minmax(0, 1fr) minmax(96px, 128px); }
.yf-sv-leg input { width: 100%; min-height: 40px; padding: 0 12px; border: 1px solid var(--st-line); border-radius: 11px; background: var(--sv-surface); color: var(--st-ink); font: inherit; font-size: 15px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.yf-sv-leg input:focus { outline: 2px solid var(--st-accent); outline-offset: 0; }
.yf-sv-amount { display: flex; align-items: baseline; gap: 8px; padding: 10px 16px; border: 1px solid var(--st-line); border-radius: 16px; background: var(--st-field, transparent); transition: border-color .2s var(--st-ease), box-shadow .2s var(--st-ease); }
.yf-sv-amount:focus-within { border-color: var(--st-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--st-accent) 16%, transparent); }
.yf-sv-amount__cur { color: var(--st-muted); font-size: 24px; font-weight: 700; }
.yf-sv-amount input { flex: 1 1 auto; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; color: var(--st-ink); font: inherit; font-size: 28px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; appearance: textfield; -moz-appearance: textfield; }
.yf-sv-amount input::-webkit-outer-spin-button, .yf-sv-amount input::-webkit-inner-spin-button { margin: 0; appearance: none; }
.yf-sv-amount input::placeholder { color: color-mix(in srgb, var(--st-muted) 55%, transparent); }
.yf-sv-amount__hint { min-height: 0; color: var(--st-accent); font-size: 12.5px; font-weight: 650; }
.yf-sv-amount__hint:empty { display: none; }
.yf-sv-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.yf-sv-tag { position: relative; }
.yf-sv-tag input { position: absolute; opacity: 0; pointer-events: none; }
.yf-sv-tag span { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 10px; border: 1px solid var(--st-line); border-radius: 999px; background: var(--st-field, transparent); color: var(--st-ink); font-size: 12.5px; font-weight: 650; cursor: pointer; transition: border-color .2s var(--st-ease), background-color .2s var(--st-ease); }
.yf-sv-tag span i { width: 9px; height: 9px; flex: 0 0 9px; aspect-ratio: 1; border-radius: 50%; }
.yf-sv-tag input:checked + span { border-color: var(--st-accent); background: var(--st-accent-soft); }
.yf-sv-tag input:focus-visible + span { outline: 2px solid var(--st-accent); outline-offset: 2px; }
.yf-sv-legs { display: grid; gap: 8px; }
.yf-sv-where__row small.is-worth { grid-column: 3; grid-row: 2; justify-self: end; color: var(--st-muted); font-weight: 600; }
.yf-sv-where__row:has(small) { grid-template-rows: auto auto; }
.yf-sv-where__row:has(small) .yf-sv-where__icon { grid-row: span 2; }
.yf-sv-where__icon { font-size: 14px; font-weight: 750; }

@media (max-width: 575.98px) {
    .modal-dialog.yf-sv-dialog .modal-content { min-height: 0; }
    .yf-sv-fields { grid-template-columns: minmax(0, 1fr); }
    .yf-sv-tiles { gap: 8px; }
    .yf-sv-leg { grid-template-columns: 38px minmax(0, 1fr); }
    .yf-sv-leg input { grid-column: 1 / -1; text-align: left; }
    .yf-sv-panel__footer .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .yf-sv-enter, .yf-sv-panel.is-in { animation: none; } }

/* Budget transfer, round 2 */
.yf-sv-lead { display: flex; align-items: flex-start; gap: 8px; margin: 0; color: var(--st-muted); font-size: 13px; line-height: 1.5; }
.yf-sv-flow__end b { font-size: 15px; font-weight: 750; font-variant-numeric: tabular-nums; }
.yf-sv-flow__end span { display: inline-flex; align-items: center; gap: 6px; }
.yf-sv-flow__end small { display: inline-flex; align-items: center; gap: 5px; }
.yf-sv-flow__end strong { text-transform: capitalize; }
.yf-sv-flow__pick { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.yf-sv-flow__pick select, .yf-sv-flow__pick .yf-select-menu__trigger { min-height: 40px; }
.yf-sv-dot { display: inline-block; width: 9px; height: 9px; flex: 0 0 9px; aspect-ratio: 1; border-radius: 50%; }
.yf-sv-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.yf-sv-choice { position: relative; cursor: pointer; }
.yf-sv-choice input { position: absolute; opacity: 0; pointer-events: none; }
.yf-sv-choice > span { display: grid; gap: 2px; height: 100%; padding: 11px 13px; border: 1px solid var(--st-line); border-radius: 14px; background: var(--st-field, transparent); transition: border-color .2s var(--st-ease), background-color .2s var(--st-ease); }
.yf-sv-choice b { font-size: 13px; font-weight: 700; }
.yf-sv-choice small { color: var(--st-muted); font-size: 11.5px; }
.yf-sv-choice input:checked + span { border-color: var(--st-accent); background: var(--st-accent-soft); }
.yf-sv-choice input:focus-visible + span { outline: 2px solid var(--st-accent); outline-offset: 2px; }
.yf-sv-transfer .yf-sv-seg { margin-bottom: 2px; }
.yf-sv-transfer .yf-sv-amount input { font-size: 24px; }
.yf-sv-transfer .yf-sv-amount input[readonly] { color: var(--st-muted); }
.yf-sv-preview { min-height: 92px; align-content: start; }
.yf-sv-preview__title .yf-sv-term { gap: 6px; }
@media (max-width: 575.98px) { .yf-sv-choices { grid-template-columns: minmax(0, 1fr); } }

/* Income distribution, round 2: three allocation cards */
.yf-sv-alloc { display: grid; gap: 14px; padding: 14px 16px; border: 1px solid var(--st-line); border-radius: 16px; background: var(--sv-surface); }
.yf-sv-alloc__head { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.yf-sv-alloc.is-free .yf-sv-alloc__head { grid-template-columns: 38px minmax(0, 1fr) auto; }
.yf-sv-alloc__icon { display: grid; width: 38px; height: 38px; aspect-ratio: 1; place-items: center; border-radius: 12px; background: var(--st-accent-soft); color: var(--st-accent); font-size: 19px; }
.yf-sv-alloc.is-savings .yf-sv-alloc__icon { background: rgba(63, 123, 224, .14); color: #3f7be0; }
.yf-sv-alloc.is-free .yf-sv-alloc__icon { background: var(--st-fill); color: var(--st-muted); }
.yf-sv-alloc__title { font-size: 14px; font-weight: 700; }
.yf-sv-alloc__input { display: inline-flex; align-items: baseline; gap: 5px; width: 150px; padding: 8px 12px; border: 1px solid var(--st-line); border-radius: 12px; background: var(--st-field, transparent); transition: border-color .2s var(--st-ease), box-shadow .2s var(--st-ease); }
.yf-sv-alloc__input:focus-within { border-color: var(--st-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--st-accent) 16%, transparent); }
.yf-sv-alloc__cur { color: var(--st-muted); font-size: 14px; font-weight: 700; }
.yf-sv-alloc__input input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; color: var(--st-ink); font: inherit; font-size: 16px; font-weight: 750; text-align: right; font-variant-numeric: tabular-nums; appearance: textfield; -moz-appearance: textfield; }
.yf-sv-alloc__input input::-webkit-outer-spin-button, .yf-sv-alloc__input input::-webkit-inner-spin-button { margin: 0; appearance: none; }
.yf-sv-alloc__all { padding: 6px 11px; border: 0; border-radius: 999px; background: var(--st-accent-soft); color: var(--st-accent); font: inherit; font-size: 12px; font-weight: 700; transition: background-color .2s var(--st-ease); }
.yf-sv-alloc__all:hover { background: color-mix(in srgb, var(--st-accent) 22%, transparent); }
.yf-sv-alloc__body { padding-top: 14px; border-top: 1px solid var(--st-line); }
.yf-sv-alloc__free { font-size: 16px; font-weight: 750; font-variant-numeric: tabular-nums; }
.yf-sv-alloc.is-over { border-color: var(--sv-warn); }
.yf-sv-alloc.is-over .yf-sv-alloc__free { color: var(--sv-warn); }
@media (max-width: 575.98px) {
    .yf-sv-alloc__head { grid-template-columns: 38px minmax(0, 1fr) auto; }
    .yf-sv-alloc__input { grid-column: 1 / -1; width: auto; }
    .yf-sv-alloc__all { grid-row: 1; grid-column: 3; }
}

/* ── Round 3 ─────────────────────────────────────────────────────────────────────────── */
/* One amount field for every dialog: calculator left, currency right, white surface. */
.yf-sv .yf-amount-input { background: var(--st-thumb, #fff) !important; border: 1px solid var(--st-line) !important; box-shadow: none !important; }
.yf-sv .yf-amount-input input { font-size: 15px; font-weight: 700; background: transparent !important; box-shadow: none !important; border: 0 !important; }
.yf-sv .yf-amount-input input::placeholder { color: color-mix(in srgb, var(--st-muted) 60%, transparent); font-weight: 600; }
.yf-sv-money__cur { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 10px; background: var(--st-fill); color: var(--st-ink); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.yf-sv-money input[readonly] { color: var(--st-muted); }

/* Action tiles: a sliding highlight instead of an instant switch */
.yf-sv-tiles { position: relative; }
.yf-sv-tiles__thumb { position: absolute; top: 0; left: 0; z-index: 0; width: 0; height: 0; border-radius: 16px; border: 1px solid var(--st-accent); background: var(--st-accent-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--st-accent) 14%, transparent); pointer-events: none; transition: transform .34s cubic-bezier(.2, .8, .2, 1), width .34s cubic-bezier(.2, .8, .2, 1); }
.yf-sv-tile { position: relative; z-index: 1; padding: 9px 6px 8px; gap: 4px; }
.yf-sv-tile i { width: 32px; height: 32px; font-size: 17px; border-radius: 11px; }
.yf-sv-tile.is-active { border-color: transparent; background: transparent; box-shadow: none; }
.yf-sv-panel { min-height: 180px; }
.yf-sv-loading .yf-sk { height: 46px; border-radius: 12px; }

/* Chip lists that fold to one row */
.yf-sv-collapsible { overflow: hidden; transition: max-height .34s cubic-bezier(.2, .8, .2, 1); }
.yf-sv-more { display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 4px 10px 4px 12px; border: 0; border-radius: 999px; background: var(--st-accent-soft); color: var(--st-accent); font: inherit; font-size: 12px; font-weight: 700; }
.yf-sv-more i { transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.yf-sv-more.is-open i { transform: rotate(180deg); }
.yf-sv-field > .yf-sv-more { margin-top: -2px; }

/* Pay: where the money is taken from */
.yf-sv-source:empty { display: none; }
.yf-sv-source__box { display: grid; gap: 6px; padding: 12px 14px; border: 1px dashed var(--st-line); border-radius: 14px; background: var(--st-accent-soft); }
.yf-sv-source__box strong { font-size: 12.5px; }
.yf-sv-source__row { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.yf-sv-source__row span { overflow: hidden; color: var(--st-muted); text-overflow: ellipsis; white-space: nowrap; }
.yf-sv-source__row b { font-weight: 750; }
.yf-sv-accounts--multi { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.yf-sv-account input[type=checkbox] { position: absolute; opacity: 0; pointer-events: none; }
.yf-sv-flow__pick { display: block; }
.yf-sv-flow__pick .yf-sv-date { width: 100%; }
.yf-sv-alloc__body .yf-sv-fields { padding-top: 0; }
.yf-sv-alloc__body > .yf-sv-fields[data-savings-extra] { margin-top: 14px; }


/* Account picker inside «Расширенный учёт»: chips instead of a narrow select */
.yf-operation-accounts { --sv-surface: #f4f9f7; --sv-track: rgba(25, 92, 73, .13); --sv-warn: #a8610f; --sv-warn-soft: rgba(217, 130, 11, .13); gap: 14px; }
.dark-theme .yf-operation-accounts { --sv-surface: #1b2a28; --sv-track: rgba(255, 255, 255, .1); --sv-warn: #f0b36a; --sv-warn-soft: rgba(240, 179, 106, .14); }
.yf-operation-accounts .yf-sv-field { display: grid; gap: 8px; }
.yf-operation-accounts .yf-manage-form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.yf-operation-accounts .yf-manage-form-grid > [hidden] { display: none !important; }
.yf-sv-chiprow { display: flex; flex-wrap: wrap; gap: 8px; }
.yf-sv-pick { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px 6px 10px; border: 1px solid var(--st-line); border-radius: 12px; background: var(--st-field, transparent); color: var(--st-ink); font: inherit; font-size: 13px; font-weight: 650; transition: border-color .2s var(--st-ease), background-color .2s var(--st-ease), box-shadow .2s var(--st-ease); }
.yf-sv-pick > i { color: var(--st-accent); font-size: 17px; }
.yf-sv-pick small { color: var(--st-muted); font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.yf-sv-pick:hover { border-color: color-mix(in srgb, var(--st-accent) 40%, var(--st-line)); }
.yf-sv-pick.is-selected { border-color: var(--st-accent); background: var(--st-accent-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--st-accent) 12%, transparent); }
.yf-sv-pick:focus-visible { outline: 2px solid var(--st-accent); outline-offset: 2px; }
/* A closed collapse row must not leave its grid gap behind (that was the empty space in the editor). */
.yf-statistics-body > .yf-stat-collapse:not(.is-open) { margin-top: -14px; transition: margin-top .4s var(--st-ease); }
.yf-statistics-body > .yf-stat-collapse.is-open { margin-top: 0; transition: margin-top .4s var(--st-ease); }
.yf-operation-accounts > .yf-stat-note { margin: 0; }
.yf-statistics-body > .yf-sv-actions { justify-content: flex-end; }
