:root {
    color-scheme: light;
    --bg: #f5f5fa;
    --surface: #ffffff;
    --surface-2: #f0eff8;
    --text: #191827;
    --muted: #777687;
    --line: #e8e7ef;
    --primary: #6657e8;
    --primary-2: #8c7cf4;
    --primary-soft: #eeebff;
    --income: #15956c;
    --income-soft: #e0f5ed;
    --expense: #ec6554;
    --expense-soft: #fff0ed;
    --warning: #d98a1c;
    --warning-soft: #fff3dc;
    --shadow: 0 14px 40px rgba(34, 29, 76, .08);
    --shadow-soft: 0 5px 20px rgba(34, 29, 76, .055);
    --radius: 22px;
    --radius-sm: 15px;
}

[data-theme="dark"] {
    color-scheme: dark;
    --bg: #111119;
    --surface: #1b1a25;
    --surface-2: #252433;
    --text: #f5f3ff;
    --muted: #a8a6b4;
    --line: #302e3e;
    --primary: #8b7df5;
    --primary-2: #a99eff;
    --primary-soft: #2d294e;
    --income: #57d6a6;
    --income-soft: #173a30;
    --expense: #ff8c7e;
    --expense-soft: #412621;
    --warning: #f0b44c;
    --warning-soft: #3b301d;
    --shadow: 0 14px 40px rgba(0, 0, 0, .28);
    --shadow-soft: 0 5px 20px rgba(0, 0, 0, .2);
}

@media (prefers-color-scheme: dark) {
    [data-theme="system"] {
        color-scheme: dark;
        --bg: #111119; --surface: #1b1a25; --surface-2: #252433; --text: #f5f3ff; --muted: #a8a6b4;
        --line: #302e3e; --primary: #8b7df5; --primary-2: #a99eff; --primary-soft: #2d294e;
        --income: #57d6a6; --income-soft: #173a30; --expense: #ff8c7e; --expense-soft: #412621;
        --warning: #f0b44c; --warning-soft: #3b301d; --shadow: 0 14px 40px rgba(0,0,0,.28); --shadow-soft: 0 5px 20px rgba(0,0,0,.2);
    }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.balances-hidden [data-private-amount] { visibility: hidden; }
body { margin: 0; min-width: 0; background: var(--bg); color: var(--text); font: 15px/1.5 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.65rem, 7vw, 2.3rem); line-height: 1.15; letter-spacing: -.035em; }
h2 { font-size: 1.08rem; letter-spacing: -.015em; }
small { color: var(--muted); }
.icon { display: block; flex: 0 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.muted { color: var(--muted); }
.rotate-180 { transform: rotate(180deg); }

.app-shell { min-height: 100svh; }
.app-main { min-height: 100svh; }
.page-content { width: 100%; max-width: 720px; margin: 0 auto; padding: 14px 18px calc(104px + env(safe-area-inset-bottom)); }
.topbar { height: 54px; padding: max(8px, env(safe-area-inset-top)) 18px 0; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(16px); }
.topbar > p { font-size: .87rem; font-weight: 750; text-align: center; }
.topbar > div:last-child { display: flex; justify-content: flex-end; }
.desktop-sidebar { display: none; }

.bottom-nav { position: fixed; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 40; height: 70px; padding: 6px 8px; display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid color-mix(in srgb, var(--line) 76%, transparent); border-radius: 23px; background: color-mix(in srgb, var(--surface) 92%, transparent); box-shadow: 0 12px 35px rgba(21, 18, 49, .16); backdrop-filter: blur(22px); }
.bottom-nav a { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); border-radius: 17px; font-size: .67rem; font-weight: 650; }
.bottom-nav a.active { color: var(--primary); background: var(--primary-soft); }
.bottom-nav .icon { width: 20px; height: 20px; }
.fab { position: fixed; right: 22px; bottom: calc(94px + env(safe-area-inset-bottom)); z-index: 35; width: 58px; height: 58px; display: grid; place-items: center; color: white; background: linear-gradient(145deg, var(--primary-2), var(--primary)); border-radius: 20px; box-shadow: 0 13px 30px color-mix(in srgb, var(--primary) 38%, transparent); }

.eyebrow { color: var(--muted); font-size: .68rem; line-height: 1.2; font-weight: 800; text-transform: uppercase; letter-spacing: .11em; }
.welcome-row, .page-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 8px 2px 22px; }
.welcome-row h1, .page-heading h1 { margin-top: 4px; }
.avatar { width: 38px; height: 38px; display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 13px; background: var(--primary); color: white; font-weight: 800; }
.avatar--large { width: 44px; height: 44px; border-radius: 15px; }
.avatar--soft { background: var(--primary-soft); color: var(--primary); }
.avatar--xl { width: 60px; height: 60px; border-radius: 20px; font-size: 1.25rem; }

.balance-card { position: relative; overflow: hidden; min-height: 210px; padding: 25px; border-radius: 28px; color: white; background: linear-gradient(135deg, #8070f0 0%, #6250da 56%, #4839b9 100%); box-shadow: 0 20px 44px rgba(79, 61, 191, .28); }
.balance-card__top { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: rgba(255,255,255,.78); }
.balance-card .plain-button { color: inherit; }
.balance-visibility-toggle { position: relative; }
.balance-visibility-toggle.is-private::after { content: ''; position: absolute; width: 23px; height: 2px; left: 4px; top: 14px; background: currentColor; border-radius: 9px; transform: rotate(-45deg); }
.balance-amount { position: relative; z-index: 1; margin-top: 13px; font-size: clamp(2rem, 9vw, 3.15rem); font-weight: 800; letter-spacing: -.055em; line-height: 1.1; }
.balance-card__month { position: absolute; z-index: 1; left: 25px; right: 25px; bottom: 23px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .72rem; color: rgba(255,255,255,.78); }
.balance-card__month span { display: flex; align-items: center; gap: 5px; min-width: 0; }
.balance-card__month strong { color: white; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.balance-orb { position: absolute; pointer-events: none; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; }
.balance-orb--one { width: 190px; height: 190px; right: -60px; top: -65px; background: rgba(255,255,255,.045); }
.balance-orb--two { width: 115px; height: 115px; right: 40px; bottom: -78px; }
.plain-button { padding: 5px; border: 0; background: transparent; cursor: pointer; }

.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 22px 0; }
.quick-grid > a { min-width: 0; padding: 15px 8px 13px; display: flex; flex-direction: column; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 19px; box-shadow: var(--shadow-soft); font-size: .75rem; font-weight: 700; }
.quick-icon { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 14px; }
.quick-icon--expense { color: var(--expense); background: var(--expense-soft); }
.quick-icon--income { color: var(--income); background: var(--income-soft); }
.quick-icon--transfer { color: var(--primary); background: var(--primary-soft); }
.quick-icon--receive { color: var(--primary); background: var(--primary-soft); }
.money-dot { width: 7px; height: 7px; display: inline-block; flex: 0 0 auto; border-radius: 50%; background: currentColor; }
.money-dot--income { color: var(--income); }
.money-dot--expense { color: var(--expense); }

.soft-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.attention-card { padding: 15px; display: flex; align-items: center; gap: 12px; color: #7b4b00; background: var(--warning-soft); border: 1px solid color-mix(in srgb, var(--warning) 20%, transparent); border-radius: 18px; }
[data-theme="dark"] .attention-card { color: var(--warning); }
.attention-card > span:nth-child(2) { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.attention-card small { color: inherit; opacity: .75; }
.attention-icon { width: 35px; height: 35px; display: grid; place-items: center; flex: 0 0 auto; color: white; background: var(--warning); border-radius: 12px; font-weight: 900; }
.account-section { margin-top: 4px; }
.account-balance-list { display: grid; gap: 10px; }
.account-balance-card { min-width: 0; padding: 15px; display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 19px; box-shadow: var(--shadow-soft); }
.account-balance-card__icon { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; color: var(--account-color); background: color-mix(in srgb, var(--account-color) 14%, var(--surface)); border-radius: 14px; }
.account-balance-card__copy { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.account-balance-card__copy strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .88rem; }
.account-balance-card__copy small { font-size: .67rem; }
.account-balance-card__value { min-width: 0; max-width: 48%; display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.account-balance-card__value strong { max-width: 100%; color: var(--text); font-size: clamp(.82rem, 3.8vw, 1.05rem); line-height: 1.2; overflow-wrap: anywhere; }
.account-balance-card__value small { margin-top: 3px; display: inline-flex; align-items: center; gap: 2px; color: var(--primary); font-size: .62rem; font-weight: 700; }
.empty-account-card { min-height: 64px; display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--primary); font-size: .78rem; font-weight: 750; }

.account-detail-card { position: relative; overflow: hidden; padding: 20px; background: linear-gradient(145deg, color-mix(in srgb, var(--account-color) 13%, var(--surface)), var(--surface) 64%); border: 1px solid color-mix(in srgb, var(--account-color) 22%, var(--line)); border-radius: 25px; box-shadow: var(--shadow); }
.account-detail-card__head { position: relative; z-index: 2; display: flex; align-items: center; gap: 11px; }
.account-detail-card__head .account-balance-card__icon { width: 46px; height: 46px; }
.account-detail-card__title { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.account-detail-card__title strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 1rem; }
.account-detail-card__title small { text-transform: capitalize; }
.account-detail-card__balance { position: relative; z-index: 1; margin: 24px 0 20px; }
.account-detail-card__balance small { display: block; margin-bottom: 3px; }
.account-detail-card__balance strong { display: block; font-size: clamp(1.8rem, 8vw, 2.8rem); line-height: 1.08; letter-spacing: -.05em; overflow-wrap: anywhere; }
.account-detail-card__flow { position: relative; z-index: 1; padding-top: 15px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-top: 1px solid color-mix(in srgb, var(--account-color) 18%, var(--line)); }
.account-detail-card__flow span { min-width: 0; display: flex; flex-direction: column; }
.account-detail-card__flow span:last-child { align-items: flex-end; text-align: right; }
.account-detail-card__flow small { font-size: .65rem; }
.account-detail-card__flow strong { overflow-wrap: anywhere; font-size: .8rem; }
.account-actions { margin: 14px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.account-actions a { min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 17px; box-shadow: var(--shadow-soft); font-size: .78rem; font-weight: 750; }
.account-actions .quick-icon { width: 34px; height: 34px; border-radius: 11px; }
.account-history { margin-top: 28px; }

.transaction-detail { display: flex; flex-direction: column; gap: 14px; }
.transaction-detail__hero { padding: 25px 18px; display: flex; flex-direction: column; align-items: center; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 25px; box-shadow: var(--shadow-soft); }
.transaction-detail__hero .quick-icon { width: 50px; height: 50px; margin-bottom: 11px; border-radius: 17px; }
.transaction-detail__hero > small { font-weight: 700; }
.transaction-detail__hero > strong { margin: 4px 0 2px; font-size: clamp(2rem, 10vw, 3.2rem); line-height: 1.08; letter-spacing: -.055em; overflow-wrap: anywhere; }
.transaction-detail__hero > span { color: var(--muted); font-size: .75rem; text-transform: capitalize; }
.transaction-detail__account { color: var(--primary); }
.transaction-detail__actions { margin-top: 6px; display: grid; gap: 9px; }
.transaction-detail__actions .button { width: 100%; }
.transfer-summary { display: grid; gap: 10px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.transfer-summary div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.transfer-summary small { color: var(--muted); font-weight: 700; }
.transfer-summary strong { text-align: right; overflow-wrap: anywhere; }
.transfer-summary strong span { color: var(--primary); padding: 0 3px; }

.section-block { margin-top: 28px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.section-heading a { color: var(--primary); font-size: .76rem; font-weight: 750; }
.section-heading > span { color: var(--muted); font-size: .75rem; }
.mini-chart { height: 170px; padding: 19px 16px 12px; display: flex; align-items: stretch; gap: 8px; }
.mini-chart__group, .large-chart__group { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 7px; }
.mini-chart__bars, .large-chart__bars { width: 100%; flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 4px; }
.bar { width: min(10px, 35%); min-height: 3px; display: block; border-radius: 7px 7px 3px 3px; }
.bar--income { background: var(--income); }
.bar--expense { background: var(--expense); opacity: .78; }
.mini-chart small, .large-chart small { font-size: .62rem; }

.activity-list { overflow: hidden; }
.activity-row { min-height: 70px; padding: 12px 14px; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid var(--line); }
.activity-row:last-child { border-bottom: 0; }
.category-dot { --dot: #88909b; width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; color: var(--dot); background: color-mix(in srgb, var(--dot) 14%, var(--surface)); border-radius: 14px; }
.category-dot--income { --dot: var(--income); }
.activity-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.activity-copy strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .87rem; }
.activity-copy small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .69rem; }
.money { flex: 0 0 auto; font-size: .79rem; letter-spacing: -.02em; }
.money--income { color: var(--income); }
.money--expense { color: var(--expense); }
.empty-mini { min-height: 110px; padding: 24px; display: grid; place-items: center; color: var(--muted); text-align: center; }
.empty-mini span { font-size: 1.5rem; }

.icon-button { width: 40px; height: 40px; padding: 0; display: inline-grid; place-items: center; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; cursor: pointer; box-shadow: var(--shadow-soft); }
.flash { margin: 0 0 14px; padding: 11px 11px 11px 12px; display: flex; align-items: center; gap: 9px; border: 1px solid transparent; border-radius: 17px; font-size: .8rem; font-weight: 650; box-shadow: var(--shadow-soft); animation: slide-down .3s ease both; }
.flash--success { color: var(--income); background: var(--income-soft); border-color: color-mix(in srgb, var(--income) 18%, transparent); }
.flash--error { color: var(--expense); background: var(--expense-soft); border-color: color-mix(in srgb, var(--expense) 18%, transparent); }
.flash__icon { width: 29px; height: 29px; display: grid; place-items: center; flex: 0 0 auto; color: var(--surface); background: var(--income); border-radius: 10px; }
.flash--error .flash__icon { background: var(--expense); }
.flash > span:nth-child(2) { min-width: 0; flex: 1; }
.flash__close { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; color: currentColor; background: transparent; border: 0; border-radius: 9px; cursor: pointer; font-size: 1.25rem; line-height: 1; }
.flash__close:hover { background: color-mix(in srgb, currentColor 10%, transparent); }

.search-filter { display: flex; align-items: center; gap: 9px; margin-bottom: 20px; }
.search-box { height: 45px; min-width: 0; flex: 1; padding: 0 13px; display: flex; align-items: center; gap: 8px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 15px; }
.search-box input { width: 100%; min-width: 0; color: var(--text); background: transparent; border: 0; outline: 0; }
.activity-search { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.filter-panel { position: relative; }
.filter-panel summary { list-style: none; }
.filter-panel summary::-webkit-details-marker { display: none; }
.filter-trigger { height: 45px; padding: 0 13px; display: flex; align-items: center; gap: 6px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 15px; cursor: pointer; box-shadow: var(--shadow-soft); font-size: .72rem; font-weight: 750; }
.filter-trigger b { min-width: 19px; height: 19px; padding: 0 5px; display: inline-grid; place-items: center; color: white; background: var(--primary); border-radius: 99px; font-size: .6rem; }
.filter-panel__body { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; max-height: min(88svh, 720px); overflow-y: auto; padding: 12px 18px calc(22px + env(safe-area-inset-bottom)); background: var(--surface); border-radius: 27px 27px 0 0; box-shadow: 0 -18px 50px rgba(10, 8, 30, .2); }
.filter-panel[open]::before { content: ''; position: fixed; inset: 0; z-index: 55; background: rgba(18,16,35,.42); backdrop-filter: blur(2px); }
.filter-panel__heading { margin: 13px 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.filter-panel__heading h2 { margin-top: 3px; font-size: 1.25rem; }
.filter-type { margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; border: 0; }
.filter-type legend { margin-bottom: 7px; color: var(--muted); font-size: .7rem; font-weight: 750; }
.filter-type input { position: absolute; opacity: 0; }
.filter-type span { min-height: 42px; display: grid; place-items: center; color: var(--muted); background: var(--surface-2); border: 1px solid transparent; border-radius: 13px; font-size: .72rem; font-weight: 750; }
.filter-type input:checked + span { color: var(--primary); background: var(--primary-soft); border-color: color-mix(in srgb, var(--primary) 24%, transparent); }
.filter-panel__actions { position: sticky; bottom: calc(-22px - env(safe-area-inset-bottom)); margin: 20px -18px calc(-22px - env(safe-area-inset-bottom)); padding: 12px 18px calc(16px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: .8fr 1.2fr; gap: 9px; background: color-mix(in srgb, var(--surface) 94%, transparent); border-top: 1px solid var(--line); backdrop-filter: blur(16px); }
.active-filter-bar { margin: 0 1px 18px; padding: 8px 11px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--primary); background: var(--primary-soft); border-radius: 12px; font-size: .67rem; font-weight: 750; }
.active-filter-bar span { display: flex; align-items: center; gap: 5px; }
.active-filter-bar a { text-decoration: underline; text-underline-offset: 2px; }
.compact-select { max-width: 110px; height: 45px; padding: 0 10px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 15px; outline: 0; }
.date-group { margin-bottom: 18px; }
.date-label { padding: 0 3px 7px; display: flex; justify-content: space-between; color: var(--muted); font-size: .7rem; font-weight: 750; }
.empty-state { min-height: 380px; padding: 50px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.empty-state__icon { width: 64px; height: 64px; margin-bottom: 18px; display: grid; place-items: center; color: var(--primary); background: var(--primary-soft); border-radius: 22px; }
.empty-state h2 { font-size: 1.2rem; }
.empty-state p { max-width: 320px; margin: 7px 0 20px; color: var(--muted); }
.pagination { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: .72rem; }
.pagination .button { width: auto; }
.pagination .disabled { opacity: .45; }

.button { min-height: 43px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 14px; cursor: pointer; font-weight: 750; font-size: .82rem; }
.button--primary { color: white; background: linear-gradient(135deg, var(--primary-2), var(--primary)); box-shadow: 0 8px 18px color-mix(in srgb, var(--primary) 24%, transparent); }
.button--ghost { color: var(--text); background: var(--surface-2); }
.button--danger { color: var(--expense); background: var(--expense-soft); }
.button--large { width: 100%; min-height: 53px; border-radius: 17px; font-size: .92rem; }
.button-row { margin-top: 15px; display: flex; justify-content: flex-end; gap: 8px; }

.editor-form { display: flex; flex-direction: column; gap: 20px; }
.segment-control { padding: 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--surface-2); border-radius: 16px; }
.segment-control input { position: absolute; opacity: 0; }
.segment-control span { height: 44px; display: flex; align-items: center; justify-content: center; gap: 7px; border-radius: 13px; color: var(--muted); font-weight: 750; }
.segment-control input:checked + span { color: var(--primary); background: var(--surface); box-shadow: var(--shadow-soft); }
.amount-field { padding: 20px 0 10px; display: block; text-align: center; }
.amount-field > span { color: var(--muted); font-size: .72rem; font-weight: 750; }
.amount-field > div { display: flex; align-items: baseline; justify-content: center; gap: 9px; }
.amount-field input { width: min(78%, 390px); padding: 5px 0; color: var(--text); background: transparent; border: 0; outline: 0; font-size: clamp(2.3rem, 12vw, 4rem); font-weight: 800; letter-spacing: -.055em; text-align: right; }
.amount-field input::placeholder { color: color-mix(in srgb, var(--muted) 45%, transparent); }
.amount-field em { color: var(--muted); font-style: normal; font-size: .82rem; font-weight: 750; }
.amount-field.is-expense input { color: var(--expense); }
.amount-field.is-expense input::placeholder { color: color-mix(in srgb, var(--expense) 62%, transparent); }
.amount-field.is-income input { color: var(--income); }
.amount-field.is-income input::placeholder { color: color-mix(in srgb, var(--income) 62%, transparent); }
.amount-field--receive input { color: var(--primary); }
.amount-field--compact { padding: 5px 0; }
.amount-field--compact input { font-size: 2.2rem; }
.form-card, .report-card, .settings-card { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.form-stack { display: flex; flex-direction: column; gap: 15px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { color: var(--muted); font-size: .7rem; font-weight: 750; }
.field > span small { font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 11px 13px; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 13px; outline: 0; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent); }
.field select, .compact-select { appearance: none; -webkit-appearance: none; padding-right: 46px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a8798' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 16px; }
.compact-select { padding-left: 12px; }
.field-error { color: var(--expense); font-size: .69rem; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sticky-submit { position: sticky; bottom: calc(90px + env(safe-area-inset-bottom)); z-index: 10; }
.danger-zone { margin: 20px 0 0; padding: 18px; display: flex; justify-content: center; }
.text-danger { display: inline-flex; align-items: center; gap: 7px; color: var(--expense); background: transparent; border: 0; cursor: pointer; font-size: .8rem; font-weight: 700; }
.form-hero { display: flex; align-items: center; gap: 12px; }
.form-hero h1 { margin-top: 3px; font-size: 1.35rem; }

.receivable-list { display: grid; gap: 12px; }
.receivable-overview { position: relative; overflow: hidden; min-height: 124px; margin: -4px 0 18px; padding: 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: white; background: linear-gradient(135deg, #7768eb, #5544cc); border-radius: 24px; box-shadow: 0 15px 34px rgba(79, 61, 191, .22); }
.receivable-overview > span:not(.receivable-overview__orb) { position: relative; z-index: 1; }
.receivable-overview > span:first-child { min-width: 0; display: flex; flex-direction: column; }
.receivable-overview > span:first-child small { color: rgba(255,255,255,.72); }
.receivable-overview > span:first-child strong { margin-top: 3px; font-size: clamp(1.35rem, 6vw, 2rem); line-height: 1.1; letter-spacing: -.04em; overflow-wrap: anywhere; }
.receivable-overview__status { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; }
.receivable-overview__status b { padding: 6px 10px; color: white; background: rgba(255,255,255,.15); border-radius: 99px; font-size: .72rem; }
.receivable-overview__status small { margin-top: 5px; color: rgba(255,255,255,.72); font-size: .64rem; }
.receivable-overview__orb { position: absolute; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; pointer-events: none; }
.receivable-overview__orb--one { width: 130px; height: 130px; right: -42px; top: -64px; background: rgba(255,255,255,.04); }
.receivable-overview__orb--two { width: 80px; height: 80px; right: 72px; bottom: -55px; }
.receivable-card { padding: 17px; display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 21px; box-shadow: var(--shadow-soft); }
.receivable-card--overdue { border-color: color-mix(in srgb, var(--expense) 35%, var(--line)); }
.receivable-card__head { display: flex; align-items: center; gap: 11px; }
.receivable-card__head > span:nth-child(2) { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.receivable-card__head > span:nth-child(2) strong, .receivable-card__head > span:nth-child(2) small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.receivable-amount { color: var(--primary-2); font-size: .88rem; }
.progress-track { height: 5px; overflow: hidden; margin: 14px 0 11px; background: var(--surface-2); border-radius: 99px; }
.progress-track span { height: 100%; display: block; background: linear-gradient(90deg, var(--primary-2), var(--primary)); border-radius: inherit; }
.receivable-card__foot { display: flex; align-items: center; justify-content: space-between; }
.status-pill { padding: 4px 8px; color: var(--primary); background: var(--primary-soft); border-radius: 99px; font-size: .62rem; font-weight: 800; text-transform: capitalize; }
.status-pill--overdue { color: var(--expense); background: var(--expense-soft); }
.status-pill--received { color: var(--income); background: var(--income-soft); }
.status-pill--cancelled { color: var(--muted); background: var(--surface-2); }

.receivable-detail { display: flex; flex-direction: column; gap: 18px; }
.detail-person { display: flex; align-items: center; gap: 14px; }
.detail-person h1 { font-size: 1.55rem; }
.detail-person > div > p:last-child { color: var(--muted); }
.detail-amount { padding: 25px; display: flex; flex-direction: column; align-items: center; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 25px; box-shadow: var(--shadow-soft); }
.detail-amount > strong { margin: 4px 0; color: var(--primary-2); font-size: 2rem; letter-spacing: -.045em; }
.detail-amount > span { color: var(--muted); font-size: .73rem; }
.progress-track--large { width: 100%; height: 7px; margin: 18px 0 0; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.detail-grid > span { padding: 14px; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 17px; }
.detail-grid strong { margin-top: 2px; font-size: .82rem; text-transform: capitalize; }
.text-danger { color: var(--expense) !important; }
.note-card { padding: 15px; background: var(--surface-2); border-radius: 16px; }
.note-card p { margin-top: 3px; white-space: pre-line; }
.receivable-payment-button { margin-top: 20px; }
.row-action { padding: 7px; color: var(--muted); background: transparent; border: 0; cursor: pointer; }
.detail-actions { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.detail-actions .button { width: auto; }
.sheet-dialog { width: 100%; max-width: 560px; margin: auto auto 0; padding: 0; color: var(--text); background: transparent; border: 0; }
.sheet-dialog::backdrop { background: rgba(17,14,35,.5); backdrop-filter: blur(3px); }
.sheet-dialog__card { padding: 14px 20px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 18px; background: var(--surface); border-radius: 27px 27px 0 0; }
.sheet-handle { width: 42px; height: 4px; margin: 0 auto 2px; background: var(--line); border-radius: 99px; }
.confirm-dialog { width: min(calc(100% - 30px), 420px); padding: 0; color: var(--text); background: transparent; border: 0; }
.confirm-dialog::backdrop { background: rgba(17, 14, 35, .54); backdrop-filter: blur(5px); }
.confirm-dialog__card { padding: 22px; display: grid; grid-template-columns: auto 1fr; gap: 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 25px; box-shadow: var(--shadow); }
.confirm-dialog__icon { width: 43px; height: 43px; display: grid; place-items: center; color: var(--warning); background: var(--warning-soft); border-radius: 14px; }
.confirm-dialog__card h2 { margin-top: 3px; font-size: 1.08rem; }
.confirm-dialog__message { margin-top: 7px; color: var(--muted); font-size: .78rem; line-height: 1.55; }
.confirm-dialog__actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 5px; }
.confirm-dialog__actions .button { width: 100%; }

.period-form { padding: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.period-form .button { grid-column: 1 / -1; }
.report-summary { margin: 16px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.report-summary article { min-width: 0; padding: 15px; display: grid; grid-template-columns: auto 1fr; gap: 1px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 19px; box-shadow: var(--shadow-soft); }
.report-summary .quick-icon { width: 37px; height: 37px; grid-row: 1 / 3; }
.report-summary small { align-self: end; }
.report-summary strong { min-width: 0; font-size: clamp(.67rem, 3vw, .82rem); line-height: 1.15; overflow-wrap: anywhere; }
.report-summary__net { grid-column: 1 / -1; }
.report-grid { display: grid; gap: 14px; }
.report-card { min-width: 0; }
.report-card--wide { margin-top: 14px; }
.report-card--wide + .report-grid { margin-top: 14px; }
.report-account-list, .report-receivable-list, .daily-usage-list { display: flex; flex-direction: column; gap: 10px; }
.report-account-row { padding: 13px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 17px; }
.report-account-row.is-muted { opacity: .68; }
.report-account-row__head { display: flex; align-items: center; gap: 9px; }
.report-account-row__head .account-balance-card__icon { width: 34px; height: 34px; border-radius: 11px; }
.report-account-row__head > span:nth-child(2) { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.report-account-row__head > span:nth-child(2) strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; }
.report-account-row__head > span:nth-child(2) small { font-size: .65rem; }
.report-account-row__head > strong { max-width: 42%; overflow-wrap: anywhere; text-align: right; font-size: .78rem; }
.report-account-row__stats { margin: 12px 0 0 43px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.report-account-row__stats span { display: flex; flex-direction: column; color: var(--muted); font-size: .63rem; }
.report-account-row__stats strong { margin-top: 1px; overflow-wrap: anywhere; font-size: .69rem; }
.report-receivable-total { padding: 13px; margin-bottom: 10px; background: var(--primary-soft); border-radius: 15px; }
.report-receivable-total strong { display: block; color: var(--primary); font-size: 1.25rem; letter-spacing: -.04em; }
.report-receivable-total span { color: var(--muted); font-size: .67rem; }
.report-receivable-row { padding: 11px 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--surface-2); border-radius: 14px; }
.report-receivable-row span { min-width: 0; display: flex; flex-direction: column; }
.report-receivable-row span strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .75rem; }
.report-receivable-row span small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .64rem; }
.report-receivable-row > strong { max-width: 45%; overflow-wrap: anywhere; color: var(--primary); font-size: .72rem; text-align: right; }
.daily-usage-list { max-height: 480px; overflow-y: auto; padding-right: 2px; }
.daily-usage-row { padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.daily-usage-row:last-child { padding-bottom: 0; border-bottom: 0; }
.daily-usage-row__head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.daily-usage-row__head strong { font-size: .75rem; }
.daily-usage-row__head small { font-size: .64rem; }
.chart-legend { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.flow-list { display: flex; flex-direction: column; gap: 14px; }
.flow-month { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.flow-month:last-child { padding-bottom: 0; border-bottom: 0; }
.flow-month__head { margin-bottom: 9px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.flow-month__head strong { font-size: .78rem; }
.flow-month__head small { font-size: .67rem; font-weight: 750; }
.flow-line { min-width: 0; display: grid; grid-template-columns: 26px minmax(50px, 1fr) minmax(84px, auto); align-items: center; gap: 8px; margin-top: 7px; }
.flow-line > span { color: var(--muted); font-size: .64rem; font-weight: 750; }
.flow-line > strong { overflow: hidden; text-align: right; text-overflow: ellipsis; white-space: nowrap; font-size: .67rem; }
.flow-track { height: 7px; overflow: hidden; background: var(--surface-2); border-radius: 99px; }
.flow-track i { height: 100%; min-width: 2px; display: block; border-radius: inherit; }
.flow-track--income { background: var(--income); }
.flow-track--expense { background: var(--expense); }
.category-breakdown { display: flex; flex-direction: column; gap: 16px; }
.breakdown-row > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .78rem; }
.breakdown-row .progress-track { margin: 7px 0 0; }

.settings-grid { display: grid; gap: 15px; }
.settings-card__heading { margin-bottom: 18px; display: flex; align-items: center; gap: 11px; }
.settings-card__heading p { color: var(--muted); font-size: .72rem; }
.settings-icon { width: 42px; height: 42px; display: grid; place-items: center; color: var(--primary); background: var(--primary-soft); border-radius: 14px; }
.account-balance-warning { margin: -4px 0 15px; padding: 12px; display: flex; align-items: flex-start; gap: 9px; color: var(--warning); background: var(--warning-soft); border: 1px solid color-mix(in srgb, var(--warning) 20%, transparent); border-radius: 14px; }
.account-balance-warning > span { width: 24px; height: 24px; display: grid; place-items: center; flex: 0 0 auto; color: white; background: var(--warning); border-radius: 8px; font-weight: 900; }
.account-balance-warning p { font-size: .68rem; }
.account-balance-warning strong { display: block; }
.user-management-list { display: grid; gap: 8px; margin-bottom: 13px; }
.user-management-row { min-width: 0; padding: 10px; display: flex; align-items: center; gap: 9px; background: var(--surface-2); border-radius: 14px; }
.user-management-row .avatar { width: 33px; height: 33px; flex: 0 0 auto; border-radius: 11px; font-size: .78rem; }
.user-management-row > span:nth-child(2) { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.user-management-row strong, .user-management-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-management-row strong { font-size: .76rem; }
.user-management-row small { font-size: .65rem; }
.admin-badge { padding: 4px 7px; color: var(--primary); background: var(--primary-soft); border-radius: 99px; font-size: .58rem; white-space: nowrap; }
.admin-badge--user { color: var(--muted); background: var(--line); }
.admin-shortcuts { display: grid; gap: 9px; }
.admin-shortcuts .button { justify-content: flex-start; }
.admin-user-card { padding: 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 17px; }
.admin-user-card.is-muted { opacity: .7; }
.admin-user-card .user-management-row { padding: 0; background: transparent; }
.admin-user-card__controls { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }
.admin-user-card__controls summary { color: var(--primary); font-size: .72rem; font-weight: 750; cursor: pointer; }
.admin-user-card__controls .inline-editor { margin-top: 10px; }
.admin-user-card__actions { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.admin-user-card__actions--single { grid-template-columns: 1fr; }
.admin-user-card__actions form, .admin-user-card__actions .button { width: 100%; }
.admin-user-card__actions .button { min-height: 38px; padding: 0 9px; font-size: .7rem; }
.admin-user-card__note { margin-top: 10px; padding-top: 10px; color: var(--muted); border-top: 1px solid var(--line); font-size: .68rem; }
.toggle-row { min-height: 54px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface-2); border-radius: 14px; cursor: pointer; }
.toggle-row > span { display: flex; flex-direction: column; }
.toggle-row strong { font-size: .78rem; }
.toggle-row small { font-size: .65rem; }
.toggle-row input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-row i { width: 43px; height: 25px; position: relative; flex: 0 0 auto; background: var(--line); border-radius: 99px; transition: background .2s; }
.toggle-row i::after { content: ''; width: 19px; height: 19px; position: absolute; top: 3px; left: 3px; background: var(--surface); border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,.18); transition: transform .2s; }
.toggle-row input:checked + i { background: var(--primary); }
.toggle-row input:checked + i::after { transform: translateX(18px); }
.maintenance-card { display: flex; flex-direction: column; align-items: center; gap: 17px; text-align: center; }
.maintenance-card__icon { width: 63px; height: 63px; display: grid; place-items: center; color: var(--primary); background: var(--primary-soft); border-radius: 21px; }
.maintenance-card p { color: var(--muted); font-size: .82rem; }
.maintenance-admin-card { max-width: 560px; margin: 0 auto; }
.settings-list { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; }
.settings-item { border-bottom: 1px solid var(--line); }
.settings-item:last-child { border-bottom: 0; }
.settings-item summary { min-height: 61px; padding: 10px 13px; display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
.settings-item summary::-webkit-details-marker { display: none; }
.settings-item summary > i { width: 10px; height: 38px; flex: 0 0 auto; background: var(--item-color); border-radius: 99px; }
.settings-item summary > span { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.settings-item summary strong { font-size: .83rem; }
.settings-item.is-muted { opacity: .62; }
.inline-editor { padding: 14px; display: flex; flex-direction: column; gap: 12px; background: var(--bg); border-top: 1px solid var(--line); }
.inline-danger { padding: 0 14px 13px; background: var(--bg); }
.inline-danger button { padding: 0; color: var(--expense); background: transparent; border: 0; cursor: pointer; font-size: .7rem; font-weight: 700; }
.system-label { color: var(--muted); font-size: .67rem; font-weight: 700; }
.color-field { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: .7rem; font-weight: 750; }
.color-field input { width: 44px; height: 34px; padding: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; }
.add-panel { margin-top: 13px; border: 1px dashed color-mix(in srgb, var(--primary) 45%, var(--line)); border-radius: 15px; }
.add-panel > summary { min-height: 47px; padding: 0 14px; display: flex; align-items: center; gap: 7px; color: var(--primary); cursor: pointer; list-style: none; font-size: .77rem; font-weight: 750; }
.add-panel > summary::-webkit-details-marker { display: none; }
.settings-group-label { margin: 14px 2px 6px; color: var(--muted); font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.settings-list--compact .settings-item summary { min-height: 55px; }
.logout-form { margin-top: 16px; }
.logout-form button { width: 100%; min-height: 47px; display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--expense); background: var(--expense-soft); border: 0; border-radius: 14px; cursor: pointer; font-weight: 750; }

.auth-body { min-height: 100svh; display: grid; place-items: center; padding: max(28px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom)); background: radial-gradient(circle at 90% 5%, var(--primary-soft), transparent 32%), var(--bg); }
.auth-shell { width: 100%; max-width: 420px; }
.brand-mark { width: 56px; height: 56px; display: grid; place-items: center; overflow: hidden; border-radius: 19px; box-shadow: 0 13px 28px color-mix(in srgb, var(--primary) 30%, transparent); }
.brand-mark img { width: 100%; height: 100%; display: block; object-fit: cover; }
.brand-mark--small { width: 42px; height: 42px; border-radius: 14px; }
.auth-intro { margin: 25px 3px 20px; }
.auth-intro h1 { margin: 5px 0 8px; }
.auth-intro > p:last-child { color: var(--muted); }
.auth-card { padding: 21px; background: var(--surface); border: 1px solid var(--line); border-radius: 25px; box-shadow: var(--shadow); }
.check-row { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .76rem; }
.check-row input { width: 18px; height: 18px; accent-color: var(--primary); }
.auth-footnote { margin-top: 20px; color: var(--muted); text-align: center; font-size: .67rem; }

@media (min-width: 760px) {
    .page-content { padding-left: 26px; padding-right: 26px; }
    .balance-card { min-height: 235px; padding: 30px; }
    .balance-card__month { left: 30px; right: 30px; bottom: 28px; }
    .quick-grid { gap: 14px; }
    .report-summary { grid-template-columns: repeat(3, 1fr); }
    .report-summary__net { grid-column: auto; }
    .period-form { grid-template-columns: 1fr 1fr auto; align-items: end; }
    .period-form .button { grid-column: auto; }
    .report-grid { grid-template-columns: 1.35fr .85fr; }
    .settings-grid { grid-template-columns: 1fr 1fr; align-items: start; }
    .filter-panel__body { position: absolute; left: auto; right: 0; bottom: auto; top: 53px; width: 440px; max-height: min(78vh, 700px); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
    .filter-panel[open]::before { display: none; }
    .sheet-dialog { margin: auto; }
    .sheet-dialog__card { border-radius: 27px; }
}

@media (min-width: 1050px) {
    .app-shell { padding-left: 250px; }
    .desktop-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 50; width: 250px; padding: 28px 19px; display: flex; flex-direction: column; background: var(--surface); border-right: 1px solid var(--line); }
    .desktop-brand { padding: 0 8px; display: flex; align-items: center; gap: 11px; }
    .desktop-brand > span:last-child { display: flex; flex-direction: column; }
    .desktop-brand small { font-size: .65rem; }
    .desktop-nav { margin-top: 38px; display: flex; flex-direction: column; gap: 5px; }
    .desktop-nav a { height: 48px; padding: 0 13px; display: flex; align-items: center; gap: 12px; color: var(--muted); border-radius: 15px; font-weight: 700; font-size: .83rem; }
    .desktop-nav a.active { color: var(--primary); background: var(--primary-soft); }
    .sidebar-user { margin-top: auto; padding: 12px; display: flex; align-items: center; gap: 10px; background: var(--bg); border-radius: 17px; }
    .sidebar-user > span:last-child { min-width: 0; display: flex; flex-direction: column; }
    .sidebar-user strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .79rem; }
    .sidebar-user small { font-size: .65rem; }
    .bottom-nav { display: none; }
    .topbar { display: none; }
    .page-content { max-width: 820px; padding-top: 42px; padding-bottom: 55px; }
    .page-content--wide { max-width: 1080px; }
    .fab { right: 34px; bottom: 32px; }
    .sticky-submit { bottom: 18px; }
}

@media (max-width: 390px) {
    .page-content { padding-left: 14px; padding-right: 14px; }
    .balance-card { padding: 21px; }
    .balance-card__month { left: 21px; right: 21px; }
    .balance-card__month { align-items: flex-start; flex-direction: column; gap: 4px; }
    .quick-grid > a { padding-left: 4px; padding-right: 4px; }
    .money { font-size: .72rem; }
    .field-grid { grid-template-columns: 1fr; }
    .receivable-payment-button { min-height: 50px; margin-top: 12px; }
}

@media (max-width: 350px) {
    .period-form { grid-template-columns: 1fr; }
    .period-form .button { grid-column: 1; }
    .report-summary { grid-template-columns: 1fr; }
    .report-summary__net { grid-column: 1; }
}

@media (prefers-reduced-motion: no-preference) {
    .flash { animation: slide-down .3s ease both; }
    .fab { transition: transform .18s ease; }
    .fab:active { transform: scale(.94); }
    @keyframes slide-down { from { opacity: 0; transform: translateY(-7px); } }
}
