/* Param Nerede? 2.5.0 design system */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("../fonts/inter/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("../fonts/inter/inter-latin-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --primary: #078452;
    --primary-dark: #064D37;
    --primary-light: #E0F5EB;
    --primary-tint: #F1FAF5;
    --bg: #F4F6F9;
    --card: #FFFFFF;
    --ink: #101828;
    --muted: #667085;
    --line: #E4E7EC;
    --line-soft: #EEF0F3;
    --red: #DC2626;
    --red-soft: #FDECEC;
    --blue: #2563EB;
    --blue-soft: #E8EFFE;
    --amber: #F59E0B;
    --amber-ink: #B45309;
    --amber-soft: #FEF4E2;
    --gray: #98A2B3;
    --goal: #6941C6;
    --green: var(--primary);
    --green-soft: var(--primary-light);
    --accent: var(--primary);
    --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 14px rgba(16, 24, 40, .05);
    --shadow-lg: 0 10px 30px rgba(16, 24, 40, .10);
    --radius: 16px;
    --radius-sm: 12px;
    --nav: 76px;
    --sidebar: 236px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; max-width: 100%; }
body {
    background: var(--bg);
    color: var(--ink);
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.45;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "cv11";
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3 { letter-spacing: -0.02em; }
[x-cloak] { display: none !important; }
.ico { flex: none; display: inline-block; vertical-align: middle; }
.num, .hero, .timer, .amt, b, strong, td, .tabular { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
.shell { min-height: 100vh; }
.sidebar { display: none; }
.content {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: calc(12px + env(safe-area-inset-top)) 16px calc(var(--nav) + 28px + env(safe-area-inset-bottom));
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand-mark {
    width: 40px; height: 40px; border-radius: 12px; flex: none;
    display: grid; place-items: center; color: #fff;
    background: linear-gradient(150deg, #0A9A60, var(--primary-dark));
    box-shadow: 0 4px 10px rgba(7, 132, 82, .25);
}
.brand-name { font-weight: 800; font-size: 18px; line-height: 1.1; letter-spacing: -0.02em; }

.topbar {
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px; margin-bottom: 14px;
}
.topbar-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar-main .brand-mark { width: 44px; height: 44px; }
.topbar-title { margin: 0; font-size: 22px; line-height: 1.15; font-weight: 800; letter-spacing: -0.03em; }
.topbar-date { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.topbar-actions { display: flex; gap: 8px; align-items: center; }
.topbar-back { color: var(--muted); }
.icon-hit {
    position: relative; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line);
    background: var(--card); display: grid; place-items: center; color: var(--ink);
    text-decoration: none; cursor: pointer; box-shadow: var(--shadow); padding: 0;
}
.icon-hit:hover { border-color: #CFD4DC; }
.icon-hit .dot-badge { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 99px; background: var(--primary); box-shadow: 0 0 0 2px #fff; }
.only-desktop { display: none !important; }
.greet { display: none; }

/* ---------- Basic blocks ---------- */
.home, .grid, .list, .pick { display: grid; gap: 12px; }
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    min-width: 0;
}
.kicker { margin: 0 0 8px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.num, .hero { margin: 0; font-weight: 750; letter-spacing: -0.03em; }
.num { font-size: 26px; }
.hero { font-size: 34px; line-height: 1.05; }
.timer { margin: 0; font-size: 44px; font-weight: 750; letter-spacing: -0.04em; }
.up, .money, .tone-in, .tone-green { color: var(--primary); }
.down, .debt, .tone-out, .tone-red { color: var(--red); }
.tone-move { color: var(--blue); }
.tone-debt { color: #8A5A1F; }
.tone-orange { color: var(--amber-ink); }
.tone-gray { color: var(--gray); }
.goal-tone { color: var(--goal); }
.info-tone { color: var(--blue); }
.note { color: var(--muted); font-size: 13.5px; margin: 6px 0 0; }
.warn-note { color: var(--amber-ink); font-size: 13px; margin: 6px 0 0; }
.warn-note.danger { color: var(--red); }
.section-label { margin: 8px 2px 0; }
.center { text-align: left; }
.narrow { max-width: 560px; }

.money-card { border-color: #BFE6D2; }
.debt-card { border-color: #F5C9C3; background: #FFF8F7; }
.goal-card { text-decoration: none; color: inherit; display: block; border-color: #DDD6FE; }
.info-card { background: #F5F8FF; border-color: #D6E2FF; }
.spend, .live { border-color: #BFE6D2; background: var(--primary-tint); }
.accent-card { border-color: #F6D9A6; }
.link-card { text-decoration: none; color: inherit; display: block; }
.card-title { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--ink); text-decoration: none; }
.card-title .kicker { margin: 0; }
.account-chip { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.money-row { align-items: center; }
.metrics span, .mini span, .line span, .who { display: flex; align-items: center; gap: 6px; }
.quad { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quad a { text-decoration: none; color: inherit; }
.split-2 { display: grid; gap: 12px; }
.dash-grid { display: grid; gap: 12px; align-items: start; }
.home-dash { gap: 12px; max-width: none; }
.start-job { margin: 0; }
.ready-line, .alert-line { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; font-weight: 650; }
.ready-line { color: var(--primary); }
.pill { font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.pill.ok { color: var(--primary); }
.pill.warn { color: var(--amber-ink); }
.fold { margin-top: 8px; }
.fold summary { cursor: pointer; color: var(--primary); font-weight: 650; }
.who { font-weight: 650; }
.soon { display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 8px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.soon-simple { grid-template-columns: 1fr auto; }
.info-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hello h1 { margin: 0; font-size: 26px; letter-spacing: -0.03em; }
.hello p { margin: 2px 0 0; color: var(--muted); }

.metrics, .stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.metrics.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats { margin: 8px 0; }
.metrics span, .stats span, .goal span, .mini span { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.metrics b, .stats b, .mini b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }
.goal, .row, .stat { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-top: 12px; }
.row, .stat { padding: 9px 0; border-top: 1px solid var(--line-soft); margin-top: 0; }
.row span, .stat span { color: var(--muted); }
.stat { min-width: 0; }
.stat > span { min-width: 0; overflow-wrap: anywhere; }
.stat > b { white-space: nowrap; flex: none; }
.card-lines { display: grid; gap: 6px; margin-top: 8px; }
.card-lines div { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.card-lines span { color: var(--muted); font-size: 13px; }
.month, .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
form.grid + .card, form.grid + details { margin-top: 16px; }
.month { gap: 0 14px; }
.month .stat { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 2px; }
.month .stat > span { font-size: 12.5px; overflow-wrap: normal; }
.month .stat > b { font-size: 16.5px; font-weight: 750; }
.mini, .slim { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.mini b { display: block; margin-top: 4px; }

.bar { height: 8px; background: #EEF1F4; border-radius: 99px; overflow: hidden; margin-top: 10px; }
.bar span { display: block; height: 100%; background: var(--primary); }
.bar.warn span { background: var(--amber); }
.bar.danger span { background: var(--red); }
.bars { display: flex; align-items: flex-end; gap: 8px; min-height: 88px; overflow-x: auto; }
.bars .bar { flex: 1 0 28px; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; gap: 3px; min-width: 28px; height: auto; background: none; overflow: visible; margin: 0; }
.bar i { display: block; border-radius: 4px 4px 0 0; }
.bar i.in { background: var(--primary); }
.bar i.out { background: #E06A5F; }
.bar small { color: var(--muted); font-size: 10px; text-align: center; }
.meter { display: block; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--primary); }
.dot { width: 10px; height: 10px; border-radius: 99px; display: inline-block; margin-right: 6px; }
.bg-green { background: var(--primary); } .bg-red { background: var(--red); } .bg-orange { background: var(--amber); } .bg-gray { background: #B3AA9F; }

/* ---------- Buttons and forms ---------- */
.btn, .choice {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; border-radius: var(--radius-sm); border: 1px solid transparent; text-decoration: none;
    font-weight: 650; cursor: pointer; padding: 11px 16px; line-height: 1.2;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(7, 132, 82, .22); }
.btn-primary:hover { background: #067348; }
.btn-ink { background: var(--primary-dark); color: #fff; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: #CFD4DC; background: #FAFBFC; }
.btn-soft { background: var(--primary-light); color: var(--primary-dark); }
.btn-danger { background: var(--red); color: #fff; }
.btn.tiny { padding: 9px 12px; font-size: 13px; min-height: 40px; }
.btn.small { padding: 8px 12px; font-size: 13.5px; min-height: 40px; }
.big { width: 100%; min-height: 54px; margin-top: 8px; }
.text-btn, .text-link {
    background: none; border: 0; color: var(--primary); font-weight: 650; padding: 8px 0;
    cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 4px;
}
.choice { flex-direction: column; align-items: flex-start; background: #fff; border: 1px solid var(--line); min-height: 84px; }
.choice.on { border-color: var(--primary); background: var(--primary-light); }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--primary); font-size: 18px; cursor: pointer; display: grid; place-items: center; }
label { display: grid; gap: 6px; font-weight: 600; color: var(--muted); font-size: 14px; }
.field, select, textarea, input[type="text"], input[type="number"], input[type="date"], input[type="email"], input[type="password"], input[type="search"], input[type="time"] {
    width: 100%; min-height: 48px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; padding: 10px 12px; color: var(--ink);
}
.field:focus, select:focus, textarea:focus, input:focus { outline: 2px solid rgba(7, 132, 82, .25); outline-offset: 1px; border-color: var(--primary); }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--primary); min-height: 0; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; min-height: 44px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label, .chips.static span {
    border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 14px;
    min-height: 42px; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; color: var(--ink);
}
.chips label:has(input:checked) { border-color: var(--primary); background: var(--primary-light); color: var(--primary-dark); }
.chips input { margin-right: 6px; }
.chips-form .chips { margin: 8px 0; }
.chip {
    border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 12px;
    text-decoration: none; color: var(--ink); font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px;
}
.chip.on { background: var(--primary-light); border-color: #A8DCC2; color: var(--primary-dark); }
.flash { display: block; text-decoration: none; border-radius: 14px; padding: 12px 14px; font-weight: 600; margin-bottom: 12px; border: 1px solid transparent; }
.hm > .flash { margin-bottom: 0; }
.flash.ok { background: var(--primary-light); color: var(--primary-dark); border-color: #BFE6D2; }
.flash.warn { background: var(--amber-soft); color: var(--amber-ink); border-color: #F6D9A6; }
.flash.err { background: var(--red-soft); color: var(--red); border-color: #F5C9C3; }
.notes { display: grid; gap: 8px; }
.notes p { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.actions, .split, .tiers { display: grid; gap: 10px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.actions form { margin: 0; }
.tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.alert { padding: 8px 0; border-top: 1px solid var(--line-soft); }
.home-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.home-actions a { text-decoration: none; color: var(--ink); font-size: 13px; font-weight: 650; display: grid; justify-items: center; gap: 6px; text-align: center; }
.start-form { width: min(100%, 720px); }
.row-card { display: flex; justify-content: space-between; gap: 12px; align-items: center; text-decoration: none; }
.row-end { display: grid; justify-items: end; gap: 2px; }
.row-end form { margin: 0; }

/* ---------- Keypad and pickers ---------- */
.cats, .pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pick { grid-template-columns: 1fr; }
.cat, .pick-card {
    min-height: 92px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
    text-decoration: none; padding: 14px; display: flex; flex-direction: column; justify-content: space-between; font-weight: 650;
}
.cat i { font-style: normal; font-size: 26px; }
.cat { color: var(--text); }
.cat .tile { width: 40px; height: 40px; }
.cats { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.source-card { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.source-card small { flex-basis: 100%; color: var(--muted); font-weight: 500; }
.kicker .ico, .stat span .ico, .pill .ico, .note .ico, strong .ico { vertical-align: -2px; }
.pick-card span { color: var(--muted); font-weight: 500; font-size: 14px; }
.pad { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.pad-simple { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.key { min-height: 60px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font-size: 24px; font-weight: 650; cursor: pointer; }
.key.op { background: #F3F5F7; font-size: 16px; }
.key.eq { background: var(--primary); color: #fff; border-color: var(--primary); }
.expr { font-size: 34px; font-weight: 750; letter-spacing: -0.03em; word-break: break-all; margin: 0; }
.preview { margin: 4px 0 0; font-size: 18px; }
.fuel-lines { display: grid; gap: 8px; }
.fuel-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.fuel-line span { color: var(--muted); font-size: 13px; font-weight: 650; letter-spacing: .03em; }
.fuel-line b { font-size: 22px; }
.fuel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fuel-head .note { margin: 0; }
.fuel-picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.fuel-pick { position: relative; display: grid; gap: 2px; justify-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 12px 6px; min-height: 72px; cursor: pointer; background: #fff; }
.fuel-pick span { color: var(--muted); font-size: 13px; font-weight: 600; }
.fuel-pick strong { font-size: 15px; }
.fuel-pick input { position: absolute; opacity: 0; }
.fuel-pick:has(input:checked) { border-color: var(--primary); background: var(--primary-light); }
.source-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.source-card { border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 14px 12px; min-height: 68px; font-weight: 650; text-align: left; cursor: pointer; }
.source-card.on { border-color: var(--primary); background: var(--primary-light); color: var(--primary-dark); }
.source-step { margin-top: 12px; display: grid; gap: 8px; }
.pick-row, .pick-row.on-static { display: flex; gap: 10px; align-items: center; padding: 12px; min-height: 56px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.pick-row strong, .pick-row.on-static strong { display: block; }
.pick-row small, .pick-row.on-static small { color: var(--muted); }
.hub-links { display: grid; gap: 10px; margin-top: 12px; }
.hub-link { display: flex; gap: 12px; align-items: center; text-decoration: none; color: inherit; padding: 14px; min-height: 64px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.hub-link strong { display: block; }
.hub-link small { color: var(--muted); }
.hub-link span { font-size: 22px; }

/* ---------- Accounts and cards ---------- */
.account-grid { display: grid; gap: 12px; }
.bank-card {
    position: relative; display: grid; gap: 10px; color: var(--ink); text-decoration: none;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
}
.bank-card-top, .bank-card-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.bank-brand { display: flex; gap: 12px; align-items: center; min-width: 0; }
.bank-card h2 { margin: 0; font-size: 17px; color: var(--ink); }
.bank-card strong { font-size: 20px; letter-spacing: -0.02em; color: var(--ink); }
.bank-card b, .bank-card-grid b, .bank-card-foot b { color: var(--ink); }
.bank-card p, .bank-card span { color: var(--muted); }
.bank-card .masked { color: var(--muted); letter-spacing: .08em; margin: 2px 0 0; }
.bank-card .kicker.light, .bank-card .note.light { color: var(--muted); }
.bank-card img { height: 28px; width: auto; background: #fff; border-radius: 8px; padding: 3px; }
.chip-light { color: var(--primary-dark); font-size: 12px; font-weight: 650; background: var(--primary-light); border-radius: 999px; padding: 4px 9px; white-space: nowrap; }
.bank-card-badges { display: grid; gap: 6px; justify-items: end; }
.bank-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.bank-card-grid span { display: block; font-size: 12px; }
.bank-card-grid b { font-size: 15px; }
.bank-card-foot { display: flex; justify-content: space-between; align-items: baseline; color: var(--muted); }
.usage-bar { height: 8px; border-radius: 99px; background: var(--line-soft); overflow: hidden; }
.usage-bar span { display: block; height: 100%; background: var(--primary); }
.network-mark { justify-self: end; font-size: 12px; font-weight: 750; letter-spacing: .08em; color: var(--muted); }
.bank-logo { display: inline-grid; place-items: center; border-radius: 12px; overflow: hidden; background: #fff; flex: none; border: 1px solid var(--line); }
.bank-logo img { width: 72%; height: 72%; object-fit: contain; border: 0; padding: 0; }
.bank-logo.mono { color: var(--primary-dark); background: var(--primary-light); border-color: transparent; font-size: 12px; font-weight: 750; }
.bank-link { text-decoration: none; color: inherit; }
.card-shell { position: relative; }
.card-hit { display: block; text-decoration: none; color: inherit; }
.card-menu { position: absolute; top: 12px; right: 12px; z-index: 3; }
.menu-btn { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; min-width: 40px; min-height: 40px; cursor: pointer; display: grid; place-items: center; }
.menu-pop {
    position: absolute; right: 0; top: 42px; z-index: 6; min-width: 190px;
    background: #fff; color: var(--ink); border: 1px solid var(--line);
    border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; display: grid;
}
.menu-pop a, .menu-pop button {
    display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; background: none; border: 0;
    padding: 10px 12px; min-height: 42px; border-radius: 10px; text-decoration: none; color: inherit; cursor: pointer; font-weight: 600;
}
.menu-pop a:hover, .menu-pop button:hover { background: #F3F5F7; }
.menu-pop .danger { color: var(--red); }
.menu-pop form { margin: 0; }
.appear-dialog { border: 0; border-radius: 18px; padding: 18px; width: min(420px, 92vw); box-shadow: var(--shadow-lg); }
.appear-dialog::backdrop { background: rgba(16, 24, 40, .45); }
.type-pick, .bank-pick { display: grid; gap: 8px; }
.type-pick { grid-template-columns: 1fr 1fr; }
.bank-pick { grid-template-columns: 1fr; max-height: 280px; overflow: auto; }
.bank-option { display: flex; align-items: center; gap: 10px; width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 12px; min-height: 52px; cursor: pointer; text-align: left; font-weight: 600; }
.bank-option.on { border-color: var(--primary); background: var(--primary-light); }
.bank-option img, .bank-option .bank-logo { width: 28px; height: 28px; border-radius: 8px; }
.bank-admin-head { display: flex; gap: 12px; align-items: center; }
.logo-upload { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.account-head { display: flex; gap: 12px; align-items: start; }

/* ---------- Payments and plans ---------- */
.pay { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.pay-paid { background: linear-gradient(90deg, rgba(7, 132, 82, .07), transparent); border-radius: 10px; padding-left: 8px; padding-right: 8px; margin: 0 -8px; }
.pay-soft { background: linear-gradient(90deg, rgba(245, 158, 11, .08), transparent); border-radius: 10px; padding-left: 8px; padding-right: 8px; margin: 0 -8px; }
.pay-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; margin-top: 4px; }
.goal-edit { display: grid; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.child-list { margin-top: 4px; }
.plan-debt { padding: 4px 0; border-top: 1px solid var(--line-soft); }
.plan-debt > summary { list-style: none; cursor: pointer; border-top: 0; }
.plan-debt > summary::-webkit-details-marker { display: none; }
.plan-debt[open] { padding-bottom: 14px; }
.set-card .set-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.set-amount { font-size: 22px; }
.set-status { margin-top: 10px; }
.set-ready { background: linear-gradient(90deg, rgba(7, 132, 82, .06), transparent); }
.fold-card summary { cursor: pointer; list-style: none; }
.nav-sub { opacity: .85; font-size: 12px !important; }
.active { border-color: var(--primary); }

/* ---------- Tables ---------- */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; color: var(--muted); font-size: 12px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; padding: 10px 8px; border-bottom: 1px solid var(--line); }
td { padding: 11px 8px; border-top: 1px solid var(--line-soft); vertical-align: top; }
.compare { display: grid; gap: 12px; }
.mobile-table { display: grid; gap: 10px; }
.mobile-table .card { padding: 14px; }

/* ---------- Transactions ---------- */
.tx-page, .entry-form, .advanced { display: grid; gap: 12px; }
.entry-form { width: min(100%, 480px); }
.tx-presets, .tx-actions, .tx-pages, .tx-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tx-tools { display: none; }
.tx-list { display: grid; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 14px; box-shadow: var(--shadow); }
.tx-table-wrap { display: none; }
.tx-day { margin: 14px 0 2px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.tx-item { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.tx-item:last-child { border-bottom: 0; }
.tx-item strong, .tx-item small, .tx-table small { display: block; }
.tx-item strong { font-size: 14.5px; font-weight: 650; }
.tx-item small, .tx-table small { color: var(--muted); font-size: 12.5px; }
.tx-ico { width: 38px; height: 38px; border-radius: 11px; display: inline-grid; place-items: center; background: #F2F4F7; color: var(--muted); flex: none; }
.tx-table { width: 100%; border-collapse: collapse; background: #fff; }
.tx-table th, .tx-table td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line-soft); border-top: 0; vertical-align: middle; }
.tx-detail { display: grid; gap: 12px; }
.row-menu { position: relative; }
.row-menu summary { list-style: none; cursor: pointer; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: var(--muted); }
.row-menu summary:hover { background: #F2F4F7; }
.row-menu summary::-webkit-details-marker { display: none; }
.row-menu .menu-pop { top: 38px; }

/* ---------- Tone tiles (shared by home, history, accounts) ---------- */
.tile { width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center; flex: none; }
.t-in, .tx-ico.tone-in { background: var(--primary-light); color: var(--primary); }
.t-out, .tx-ico.tone-out { background: var(--red-soft); color: var(--red); }
.t-fuel, .tx-ico.tone-fuel { background: var(--amber-soft); color: var(--amber); }
.t-move, .tx-ico.tone-move { background: var(--blue-soft); color: var(--blue); }
.t-debt, .tx-ico.tone-debt { background: #FDEDEB; color: #C2410C; }
.t-play { background: var(--primary-light); color: var(--primary); }
.t-neutral { background: #F2F4F7; color: #475467; }

/* ---------- Home ---------- */
.hm { display: grid; gap: 12px; }
.hm-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hm-cap {
    position: relative; overflow: hidden; color: #fff; border-radius: 20px; padding: 6px 18px;
    background: linear-gradient(135deg, #0C8F58 0%, #07734A 45%, #064D37 100%);
    box-shadow: 0 10px 24px rgba(6, 77, 55, .22);
}
.hm-cap::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(120% 80% at 110% 120%, rgba(255, 255, 255, .14) 0, rgba(255, 255, 255, 0) 55%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 160' preserveAspectRatio='none'%3E%3Cpath d='M0 120 C 90 80 170 160 260 110 S 360 60 400 80' fill='none' stroke='white' stroke-opacity='.10' stroke-width='2'/%3E%3Cpath d='M0 140 C 100 100 180 170 270 128 S 370 84 400 100' fill='none' stroke='white' stroke-opacity='.07' stroke-width='2'/%3E%3Cpath d='M0 100 C 80 70 160 130 250 92 S 350 40 400 58' fill='none' stroke='white' stroke-opacity='.06' stroke-width='1.5'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
}
.hm-cap-row { position: relative; display: flex; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.hm-cap-row:first-child { border-top: 0; }
.hm-cap-row .ico { opacity: .92; }
.hm-cap-row span { flex: 1; min-width: 0; font-size: 15px; color: rgba(255, 255, 255, .9); }
.hm-cap-row b { font-size: 19px; font-weight: 750; letter-spacing: -0.02em; white-space: nowrap; }
.hm-cap-row.total b { font-size: 24px; }
.hm-cap-row small { display: block; font-size: 12px; color: rgba(255, 255, 255, .7); }
.hm-cap-foot { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 2px 0 12px; }
.hm-cap-foot a { color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .14); border-radius: 999px; padding: 6px 11px; }
.hm-cap-foot small { color: rgba(255, 255, 255, .72); font-size: 12px; }

.hm-next { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 10px; row-gap: 0; align-items: center; }
.hm-next > div { display: contents; }
.hm-next .tile { width: 40px; height: 40px; background: var(--primary-light); color: var(--primary); }
.hm-next-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hm-next-top p { margin: 0; color: var(--muted); font-size: 13px; }
.hm-next h2, .hm-next-body, .hm-next-meta, .hm-next > div > .note { grid-column: 1 / -1; }
.hm-next h2 { margin: 10px 0 10px; font-size: 18px; line-height: 1.25; font-weight: 750; }
.hm-next-body { display: flex; gap: 12px; align-items: center; }
.hm-amount { display: inline-flex; align-items: center; gap: 6px; background: var(--primary-light); color: var(--primary-dark); border-radius: 12px; padding: 8px 12px; font-size: 18px; font-weight: 750; white-space: nowrap; }
.hm-next-body p { margin: 0; flex: 1 1 auto; min-width: 0; color: var(--muted); font-size: 12.5px; line-height: 1.4; padding-left: 12px; border-left: 1px solid var(--line); }
.hm-days { display: inline-flex; align-items: center; gap: 5px; background: var(--primary-light); color: var(--primary-dark); border-radius: 999px; padding: 4px 9px; font-size: 12px; font-weight: 650; white-space: nowrap; }
.hm-days.late, .hm-badge.late { background: var(--red-soft); color: var(--red); }
.hm-badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 3px 9px; font-size: 12px; font-weight: 650; background: var(--primary-light); color: var(--primary-dark); }
.hm-badge.flex { background: var(--blue-soft); color: var(--blue); }
.hm-badge.partial, .hm-badge.short { background: var(--amber-soft); color: var(--amber-ink); }
.hm-next-meta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-soft); font-size: 12.5px; color: var(--muted); }
.hm-next-meta .hm-badge { justify-self: start; }
.hm-next-meta b { color: var(--ink); }
.hm-next-meta .btn { grid-column: 2; grid-row: 1 / span 2; }

.hm-target { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: start; background: linear-gradient(135deg, #F1FAF5, #E6F6EE); border-color: #CDEBDB; text-decoration: none; color: inherit; cursor: pointer; }
.hm-target .tile { width: 44px; height: 44px; background: #fff; color: var(--primary); box-shadow: var(--shadow); }
.hm-target h2 { margin: 0; font-size: 15px; font-weight: 650; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hm-target strong { display: block; color: var(--primary); font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; margin: 2px 0 2px; }
.hm-target p { margin: 0; color: var(--muted); font-size: 13px; }
.hm-target .hm-target-line { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.hm-target .hm-target-line b { color: var(--ink); }
.hm-target.warn { background: linear-gradient(135deg, #FFFBF2, #FEF4E2); border-color: #F6D9A6; }
.hm-target.warn strong { color: var(--amber-ink); }

.hm-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 12px 6px; }
.hm-stat { display: flex; align-items: center; gap: 8px; padding: 2px 10px; min-width: 0; text-decoration: none; color: inherit; border-left: 1px solid var(--line); }
.hm-stat:first-child { border-left: 0; }
.hm-stat .ico { color: var(--primary); }
.hm-stat.dark .ico { color: #344054; }
.hm-stat span { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-stat b { display: block; font-size: 15.5px; font-weight: 750; white-space: nowrap; }
.hm-stat .is-debt { display: none; }

.hm-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hm-act {
    display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 10px 12px;
    background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
    text-decoration: none; color: var(--ink); font-weight: 650; font-size: 14px; cursor: pointer; text-align: left;
}
.hm-act:hover { border-color: #CFD4DC; }
.hm-act .tile { width: 36px; height: 36px; border-radius: 10px; }
.hm-act form { margin: 0; }
.hm-act-form { margin: 0; display: contents; }

.hm-panel { padding: 14px 16px 6px; }
.hm-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; }
.hm-panel-head h2 { margin: 0; font-size: 17px; font-weight: 750; }
.hm-panel-head a { color: var(--primary); font-size: 13px; font-weight: 650; text-decoration: none; display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.hm-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line-soft); text-decoration: none; color: inherit; }
.hm-row .tile { width: 38px; height: 38px; border-radius: 11px; }
.hm-row strong { display: block; font-size: 14px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-row small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-row b { font-size: 14px; font-weight: 700; white-space: nowrap; text-align: right; }
.hm-row b small { font-weight: 500; text-align: right; }
.hm-date { width: 38px; height: 42px; border-radius: 10px; background: var(--primary-light); color: var(--primary-dark); display: grid; place-content: center; text-align: center; line-height: 1.05; }
.hm-date b { font-size: 15px; font-weight: 800; text-align: center; }
.hm-date small { font-size: 10.5px; color: var(--primary-dark); text-align: center; }
.hm-date.late { background: var(--red-soft); color: var(--red); }
.hm-empty { margin: 8px 0 12px; color: var(--muted); font-size: 13.5px; }
.hm-est { color: var(--amber-ink); font-weight: 600; }

.hm-break { display: grid; gap: 0; margin-top: 10px; font-size: 13.5px; }
.hm-break div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line-soft); }
.hm-break span { color: var(--muted); }
.hm-break .sum { font-weight: 750; }

/* ---------- Plan page ---------- */
.pl { display: grid; gap: 12px; }
.pl-grid { display: grid; gap: 12px; }
.pl-presets { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pl-presets form { display: flex; gap: 8px; align-items: center; flex: 1 1 420px; margin: 0; }
.pl-presets input { flex: 0 1 140px; width: 140px; min-height: 40px; }
.pl-presets select { flex: 1 1 200px; width: auto; min-height: 40px; margin: 0; }
.pl-presets .btn { flex: none; min-height: 40px; }
@media (max-width: 519px) {
    .pl-presets form { flex-wrap: wrap; }
    .pl-presets input { flex: 1 1 120px; }
}
.pl-table { width: 100%; font-size: 14px; }
.pl-table td, .pl-table th { padding: 9px 8px; }
.pl-table td.amt, .pl-table th.amt { text-align: right; white-space: nowrap; }
.pl-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pl-kpi { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow); }
.pl-kpi span { display: block; color: var(--muted); font-size: 12.5px; }
.pl-kpi b { display: block; font-size: 18px; font-weight: 750; margin-top: 2px; }
.pl-kpi small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.pl-scen { display: grid; gap: 12px; }
.pl-scen .card.on { border-color: #A8DCC2; box-shadow: 0 0 0 3px rgba(7, 132, 82, .10), var(--shadow); }
.pl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pl-form { display: grid; gap: 10px; }
.pl-inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; }
.pl-inline label { flex: 1 1 140px; }

/* ---------- Sheets and tab bar ---------- */
.tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end;
    background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 18px rgba(16, 24, 40, .05);
    backdrop-filter: saturate(1.4) blur(8px);
}
.tabbar a {
    text-align: center; text-decoration: none; color: #475467;
    font-size: 11.5px; font-weight: 600; display: grid; gap: 3px; justify-items: center;
    min-height: 48px; padding: 5px 2px 2px;
}
.tabbar a.on { color: var(--primary); font-weight: 700; }
.tab-plus {
    width: 62px; height: 62px; margin: -30px auto 4px; border-radius: 20px;
    background: linear-gradient(160deg, #0A9A60, var(--primary-dark)); color: #fff;
    border: 4px solid #fff; cursor: pointer; display: grid; place-items: center;
    box-shadow: 0 10px 22px rgba(6, 77, 55, .32);
}
.sheet { position: fixed; inset: 0; background: rgba(16, 24, 40, .45); z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.sheet-card {
    background: #fff; width: 100%; max-width: 560px; border-radius: 22px 22px 0 0;
    padding: 18px 16px calc(20px + env(safe-area-inset-bottom));
    display: grid; gap: 10px; max-height: 88vh; overflow: auto;
}
.sheet-head { display: flex; justify-content: space-between; align-items: center; }
.sheet-head h2 { margin: 0; font-size: 17px; }
.sheet-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sheet-grid a, .sheet-grid button {
    display: grid; justify-items: center; gap: 8px; padding: 12px 6px; border: 1px solid var(--line); border-radius: 14px;
    text-decoration: none; color: var(--ink); font-size: 13px; font-weight: 650; background: #fff; cursor: pointer; text-align: center;
}
.sheet-list { display: grid; gap: 2px; }
.sheet-list a, .sheet-list button {
    display: flex; align-items: center; gap: 12px; padding: 12px 8px; border-radius: 12px;
    text-decoration: none; color: var(--ink); font-weight: 600; background: none; border: 0; width: 100%; text-align: left; cursor: pointer;
}
.sheet-list a:hover, .sheet-list button:hover { background: #F5F6F8; }
.sheet-list .ico { color: var(--muted); }
.sheet-list form { margin: 0; }
.sheet-list .danger, .sheet-list .danger .ico { color: var(--red); }

/* ---------- Search ---------- */
.search-pop { position: fixed; inset: 0; z-index: 45; background: rgba(16, 24, 40, .35); display: flex; justify-content: center; align-items: flex-start; padding: 72px 16px 0; }
.search-pop form { width: min(560px, 100%); background: #fff; border-radius: 16px; padding: 10px; box-shadow: var(--shadow-lg); display: flex; gap: 8px; }
.search-pop input { flex: 1; }

/* ---------- Auth ---------- */
.auth-body { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: linear-gradient(180deg, #E8F6EF, var(--bg)); }
.auth-card { width: min(420px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px 20px; box-shadow: var(--shadow-lg); }
.auth-card h1 { margin: 0 0 6px; font-size: 26px; letter-spacing: -0.03em; }
.auth-form { display: grid; gap: 12px; margin-top: 16px; }
.sidebar-logout { margin-top: auto; padding-top: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
    table.desktop-only { display: none; }
}
@media (max-width: 767px) {
    .hm-cap { padding: 4px 16px; }
    .hm-cap-row { padding: 9px 0; }
    .hm-cap-row span { font-size: 14.5px; }
    .hm-cap-foot { padding: 0 0 10px; }
    .hm-cap-foot a { font-size: 12px; padding: 4px 10px; }
    .hm-cap-foot small { font-size: 11.5px; }
    .hm-target { grid-template-columns: 40px minmax(0, 1fr); padding: 14px 16px; }
    .hm-target .tile { width: 40px; height: 40px; }
    .hm-target strong { font-size: 28px; }
}
@media (max-width: 519px) {
    .actions > .btn { flex: 1 1 auto; justify-content: center; }
    .hm-stats { padding: 12px 2px; }
    .hm-stat { padding: 2px 6px; gap: 6px; }
    .hm-stat .ico { width: 20px; height: 20px; flex: none; }
    .hm-stat span { font-size: 11.5px; }
    .hm-stat b { font-size: 14.5px; }
    .hm-actions { gap: 8px; }
    .hm-act { padding: 8px 7px; gap: 7px; font-size: 12.5px; white-space: nowrap; min-height: 54px; }
    .hm-act .tile { width: 30px; height: 30px; border-radius: 9px; }
    .hm-act .tile .ico { width: 17px; height: 17px; }
}
@media (max-width: 380px) {
    .hm-cap-row b { font-size: 17px; }
    .hm-cap-row.total b { font-size: 21px; }
    .hm-act { flex-direction: column; justify-content: center; text-align: center; gap: 5px; padding: 8px 4px; min-height: 66px; }
    .hm-next-body { flex-direction: column; align-items: flex-start; gap: 8px; }
    .hm-next-body p { padding-left: 0; border-left: 0; }
    .hm-stat { padding: 2px 6px; gap: 6px; }
    .hm-stat .ico { display: none; }
    .topbar-title { font-size: 20px; }
}
@media (max-width: 640px) {
    .pair { grid-template-columns: 1fr; }
    .hero, .timer { font-size: 32px; }
}
@media (min-width: 430px) {
    .content { padding-left: 18px; padding-right: 18px; }
}
@media (min-width: 768px) {
    .mobile-only-cards { display: none; }
    .content { max-width: 960px; padding: 22px 24px calc(var(--nav) + 28px); }
    .dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .account-grid { grid-template-columns: 1fr 1fr; }
    .card { padding: 18px; }
    .hm { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hm-cap, .hm-stats, .hm-actions, .hm-wide { grid-column: 1 / -1; }
    .hm-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .hm-stat .is-debt { display: flex; }
    .hm-stat.is-debt { display: flex; }
    .hm-actions { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .hm-act { flex-direction: column; justify-content: center; text-align: center; gap: 6px; }
    .pl-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .pl-scen { grid-template-columns: 1fr 1fr; }
    .sheet { align-items: center; }
    .sheet-card { border-radius: 22px; }
}
@media (max-width: 767px) {
    .hm-stat.is-debt { display: none; }
}
@media (min-width: 1024px) {
    .shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); }
    .sidebar {
        display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
        background: #fff; border-right: 1px solid var(--line); padding: 22px 14px 18px; overflow: hidden;
    }
    .sidebar::after {
        content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 180px; pointer-events: none;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 180' preserveAspectRatio='none'%3E%3Cpath d='M0 90 C 60 50 120 130 180 90 S 240 60 240 70 V180 H0Z' fill='%23E0F5EB' fill-opacity='.55'/%3E%3Cpath d='M0 120 C 70 90 130 160 200 118 S 240 100 240 104 V180 H0Z' fill='%23E0F5EB' fill-opacity='.7'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
    }
    .sidebar .brand { padding: 0 6px; margin-bottom: 26px; }
    .sidebar .brand-name { font-size: 19px; }
    .sidebar nav { display: grid; gap: 4px; position: relative; z-index: 1; }
    .sidebar nav a {
        color: #344054; text-decoration: none; border-radius: 12px;
        padding: 10px 12px; font-weight: 600; font-size: 14.5px; display: flex; align-items: center; gap: 12px;
    }
    .sidebar nav a .ico { color: #475467; }
    .sidebar nav a:hover { background: #F5F6F8; }
    .sidebar nav a.on { background: var(--primary-light); color: var(--primary-dark); font-weight: 700; }
    .sidebar nav a.on .ico { color: var(--primary); }
    .sidebar-logout { position: relative; z-index: 1; }
    .sidebar-logout .btn { width: 100%; justify-content: flex-start; color: var(--muted); background: transparent; border-color: transparent; }
    .tabbar { display: none; }
    .content { max-width: 1320px; margin: 0; padding: 26px 32px 36px; }
    .topbar { margin-bottom: 18px; }
    .topbar-main .brand-mark { display: none; }
    .topbar-title { font-size: 28px; }
    .topbar-date { font-size: 14px; }
    .only-desktop { display: grid !important; }
    .greet { display: inline; }
    .only-mobile { display: none !important; }
    .dash-grid { gap: 14px; }
    .card { padding: 20px; }
    .month { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .tx-tools { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; align-items: end; }
    .tx-tools > .btn, .tx-tools > button { align-self: end; min-height: 46px; height: auto; }
    .tx-list { display: none; }
    .tx-table-wrap { display: block; overflow: visible; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 4px 8px; }
    .hm { grid-template-columns: 1.08fr 1fr 0.92fr; gap: 14px; }
    .hm-cap { grid-column: auto; }
    .hm-stats, .hm-actions, .hm-wide { grid-column: 1 / -1; }
    .shell { background: linear-gradient(90deg, #fff calc(var(--sidebar) - 1px), var(--line) calc(var(--sidebar) - 1px), var(--line) var(--sidebar), transparent var(--sidebar)); }
    .hm-next h2 { font-size: 18px; }
    .hm-act { flex-direction: row; justify-content: flex-start; text-align: left; gap: 12px; padding: 10px 14px; font-size: 14.5px; }
    .hm-act .tile { width: 40px; height: 40px; }
    .hm-stats { padding: 14px 8px; }
    .hm-stat { padding: 2px 20px; gap: 14px; }
    .hm-stat b { font-size: 18px; }
    .hm-stat span { font-size: 12.5px; }
    .account-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pl-grid { grid-template-columns: 1fr 1fr; }
    .search-pop { padding-top: 90px; }
}
@media (min-width: 1600px) {
    .content { max-width: 1680px; padding-left: 40px; padding-right: 40px; }
    .hm { gap: 18px; }
    .hm-cap-row.total b { font-size: 28px; }
    .hm-target strong { font-size: 34px; }
}

/* ---------- Dark theme (opt-in) ---------- */
html[data-theme="dark"] {
    --bg: #0E1412;
    --card: #17211D;
    --ink: #F4F7F5;
    --muted: #B7C2BC;
    --line: #2A3832;
    --line-soft: #22302A;
    --primary-light: #14352A;
    --red-soft: #3A1816;
    --amber-soft: #3A2C12;
    --blue-soft: #172544;
}
html[data-theme="dark"] .card,
html[data-theme="dark"] .btn-ghost,
html[data-theme="dark"] .field,
html[data-theme="dark"] .hm-act,
html[data-theme="dark"] .tx-list,
html[data-theme="dark"] .sheet-card,
html[data-theme="dark"] .sidebar,
html[data-theme="dark"] .tabbar { background: var(--card); color: var(--ink); }
