:root {
  --ink: #101820;
  --ink-soft: #17242e;
  --green: #2bb88a;
  --green-deep: #11876a;
  --green-pale: #dcf5e9;
  --gold: #f3c54b;
  --gold-pale: #fff4cf;
  --blue-pale: #e5f2fa;
  --purple-pale: #eee9fb;
  --page: #f6f8f8;
  --surface: #ffffff;
  --surface-soft: #f0f4f3;
  --line: #e4ebea;
  --text: #17232a;
  --muted: #7d8d91;
  --muted-deep: #5d7073;
  --danger: #e97764;
  --danger-pale: #fff0ed;
  --shadow: 0 16px 45px rgba(16, 24, 32, .07);
  color: var(--text);
  background: var(--page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

:root[data-theme="dark"] {
  --page: #0c1318;
  --surface: #141e25;
  --surface-soft: #1a282f;
  --line: #26353b;
  --text: #f1f7f4;
  --muted: #8da0a4;
  --muted-deep: #b3c0c1;
  --shadow: 0 18px 50px rgba(0, 0, 0, .2);
  --green-pale: #17372f;
  --gold-pale: #3a3218;
  --blue-pale: #192f3e;
  --purple-pale: #2b263f;
  --danger-pale: #3a2420;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--page); }
body { margin: 0; min-width: 320px; background: var(--page); }
body.modal-open { overflow: hidden; }
button, input, select { font: inherit; }
button { border: 0; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(43, 184, 138, .3); outline-offset: 2px; }
.icon { flex: 0 0 auto; }

.app-shell { width: min(100%, 820px); min-height: 100vh; margin: 0 auto; padding: 0 18px 104px; }
.topbar { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; padding: 20px 0 12px; }
.topbar-brand { display: flex; align-items: center; gap: 9px; min-width: 0; }
.brand-logo { display: block; width: 168px; height: auto; overflow: visible; }
.brand-mark-bg { fill: var(--ink); }
.brand-mark-light, .brand-mark-green { fill: none; stroke-linecap: round; stroke-width: 7; }
.brand-mark-light { stroke: #f7faf6; }
.brand-mark-green { stroke: var(--green); }
.brand-mark-gold { fill: var(--gold); }
.brand-word-main, .brand-word-help { font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 35px; font-weight: 800; letter-spacing: -1.5px; }
.brand-word-main { fill: var(--text); }
.brand-word-help { fill: var(--green); }
.brand-subtitle { fill: var(--muted); font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 9px; font-weight: 650; letter-spacing: 3px; }
.topbar-title { grid-column: 1 / -1; order: 3; padding-top: 12px; }
.topbar-title .eyebrow { margin-bottom: 5px; }
.topbar-title h1 { margin: 0; font-size: clamp(1.55rem, 7vw, 2rem); letter-spacing: -.055em; }
.topbar-actions { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.notification-button { position: relative; }
.notification-button i { position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; border: 2px solid var(--surface); border-radius: 50%; background: var(--gold); }
.quick-add { display: inline-flex; align-items: center; gap: 7px; padding: 10px 13px; border-radius: 11px; background: var(--ink); color: #fff; font-size: .78rem; font-weight: 800; box-shadow: 0 7px 18px rgba(16, 24, 32, .16); }
.quick-add:hover { background: var(--ink-soft); transform: translateY(-1px); }
.icon-button { display: inline-grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; color: var(--muted-deep); background: transparent; }
.icon-button:hover { color: var(--text); background: var(--surface-soft); }
.icon-button.light { color: #fff; background: rgba(255, 255, 255, .13); }

.eyebrow { margin: 0 0 8px; color: var(--muted); font-size: .67rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h2 { margin-bottom: 0; font-size: 1.15rem; letter-spacing: -.035em; }
small { font-size: .74rem; }
.view { animation: view-in .25s ease both; }
@keyframes view-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.home-intro { display: flex; align-items: center; justify-content: space-between; margin: 8px 0 17px; }
.home-intro h2 { font-size: 1.43rem; }
.profile-orb { display: inline-grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; color: var(--green-deep); background: var(--green-pale); font-size: .88rem; font-weight: 850; }
.profile-orb.large { width: 52px; height: 52px; font-size: 1.1rem; }
.balance-card { position: relative; isolation: isolate; overflow: hidden; min-height: 188px; padding: 23px; border-radius: 24px; color: #fff; background: var(--ink); box-shadow: 0 16px 35px rgba(16, 24, 32, .2); }
.balance-card::before { position: absolute; inset: 0; z-index: -2; background: radial-gradient(circle at 95% -15%, rgba(43, 184, 138, .66), transparent 38%), linear-gradient(140deg, #101820 20%, #182933 100%); content: ""; }
.balance-card::after { position: absolute; top: -52px; right: -45px; z-index: -1; width: 190px; height: 190px; border: 1px solid rgba(243, 197, 75, .28); border-radius: 50%; content: ""; box-shadow: 0 0 0 20px rgba(243, 197, 75, .04), 0 0 0 40px rgba(243, 197, 75, .03); }
.balance-card-top, .balance-card-bottom { display: flex; align-items: center; justify-content: space-between; color: #aebdc0; font-size: .76rem; }
.balance-eye { display: inline-grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; color: #d9e8e5; background: rgba(255, 255, 255, .1); }
.balance-amount { display: block; margin: 20px 0 24px; padding: 0; color: #fff; background: transparent; font-size: clamp(2rem, 9vw, 2.85rem); font-weight: 780; letter-spacing: -.075em; line-height: 1; text-align: left; cursor: pointer; }
.balance-amount:hover { color: var(--gold); }
.balance-card-bottom span { display: inline-flex; align-items: center; gap: 6px; }
.balance-status { padding: 5px 8px; border-radius: 999px; color: #e9f9e7; background: rgba(43, 184, 138, .2); font-size: .65rem !important; font-weight: 800; }
.balance-glow { position: absolute; bottom: -40px; left: 18%; width: 45%; height: 56px; border-radius: 50%; background: rgba(43, 184, 138, .3); filter: blur(26px); }
.setup-card { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 11px; margin-top: 12px; padding: 14px; border: 1px dashed rgba(43, 184, 138, .55); border-radius: 16px; background: var(--green-pale); }
.setup-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; color: var(--green-deep); background: var(--surface); }
.setup-card strong, .setup-card p { display: block; } .setup-card strong { font-size: .78rem; } .setup-card p { margin: 4px 0 0; color: var(--muted-deep); font-size: .65rem; line-height: 1.4; }

.quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 12px 0 30px; }
.quick-action { display: grid; gap: 3px; min-width: 0; padding: 13px 10px 12px; text-align: left; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.quick-action:hover { border-color: rgba(43, 184, 138, .5); transform: translateY(-2px); }
.quick-action > span { display: grid; width: 31px; height: 31px; margin-bottom: 5px; place-items: center; border-radius: 10px; }
.quick-action strong { font-size: .76rem; }
.quick-action small { color: var(--muted); font-size: .62rem; white-space: nowrap; }
.expense-action > span, .summary-icon.expense, .movement-icon.expense { color: var(--danger); background: var(--danger-pale); }
.income-action > span, .summary-icon.income, .movement-icon.income { color: var(--green-deep); background: var(--green-pale); }
.transfer-action > span, .summary-icon.transfer, .movement-icon.transfer { color: #4b8ba8; background: var(--blue-pale); }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 0 0 13px; }
.section-heading .eyebrow { margin-bottom: 5px; }
.text-button { display: inline-flex; align-items: center; gap: 3px; padding: 4px 0; color: var(--green-deep); background: transparent; font-size: .72rem; font-weight: 800; white-space: nowrap; }
.text-button:hover { color: var(--green); }
.summary-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 28px; }
.summary-card { display: grid; gap: 5px; padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.summary-icon { display: grid; width: 31px; height: 31px; margin-bottom: 3px; place-items: center; border-radius: 10px; }
.summary-card > span { color: var(--muted); font-size: .71rem; }
.summary-card strong { font-size: 1.08rem; letter-spacing: -.04em; }
.summary-card small { color: var(--muted); font-size: .62rem; }
.positive-text { color: var(--green-deep) !important; } .negative-text { color: var(--danger) !important; }
.goal-heading { margin-top: 5px; }
.recent-heading { margin-top: 28px; }

.goal-card { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.goal-card-compact { padding: 18px; }
.goal-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.goal-symbol { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; }
.goal-symbol.teal { color: var(--green-deep); background: var(--green-pale); } .goal-symbol.gold { color: #ac7b06; background: var(--gold-pale); }
.goal-name-row, .goal-values { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.goal-name-row strong { font-size: .88rem; } .goal-name-row span { color: var(--green-deep); font-size: .82rem; font-weight: 850; }
.progress-track { height: 8px; margin: 12px 0 7px; overflow: hidden; border-radius: 20px; background: var(--surface-soft); }
.progress-fill { display: block; height: 100%; border-radius: inherit; background: var(--green); transition: width .35s ease; }
.progress-fill.gold { background: var(--gold); }
.goal-values { color: var(--muted); font-size: .66rem; }
.goal-values span:first-child { color: var(--text); font-weight: 750; }
.goal-actions { display: flex; gap: 8px; margin-top: 15px; }
.subtle-button, .outline-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 12px; border-radius: 9px; color: var(--green-deep); background: var(--green-pale); font-size: .72rem; font-weight: 800; }
.subtle-button:hover { filter: brightness(.96); }
.subtle-button.ghost { color: var(--muted-deep); background: var(--surface-soft); }
.full-width { width: 100%; }
.goal-card .full-width { margin-top: 14px; }

.movement-panel { padding: 7px 16px; }
.movement-list, .transaction-list, .account-list, .recurring-list, .log-list { display: grid; gap: 2px; padding: 0; margin: 0; list-style: none; }
.movement-row { display: grid; grid-template-columns: 37px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.movement-row:last-child { border-bottom: 0; }
.movement-icon { display: grid; width: 37px; height: 37px; place-items: center; border-radius: 12px; }
.movement-icon.income { color: var(--green-deep); background: var(--green-pale); } .movement-icon.transfer { color: #4b8ba8; background: var(--blue-pale); }
.movement-main { min-width: 0; } .movement-main strong, .movement-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.movement-main strong { font-size: .78rem; } .movement-main small { margin-top: 4px; color: var(--muted); font-size: .65rem; }
.movement-value { font-size: .77rem; white-space: nowrap; } .movement-value.income { color: var(--green-deep); } .movement-value.transfer { color: #4b8ba8; } .movement-value.expense { color: var(--danger); }
.empty-state { padding: 22px 3px; color: var(--muted); font-size: .78rem; text-align: center; }

.page-section-heading { margin-top: 28px; }
.primary-account-card { position: relative; overflow: hidden; padding: 22px; border-radius: 22px; color: #fff; background: var(--ink); box-shadow: 0 16px 35px rgba(16, 24, 32, .18); }
.primary-account-card::after { position: absolute; right: -43px; bottom: -65px; width: 190px; height: 190px; border: 1px solid rgba(43, 184, 138, .45); border-radius: 50%; box-shadow: 0 0 0 20px rgba(43, 184, 138, .06); content: ""; }
.account-card-header { position: relative; z-index: 1; display: flex; align-items: center; gap: 9px; }
.account-emblem { display: inline-grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; color: var(--ink); background: var(--gold); }
.account-emblem.soft { color: var(--green-deep); background: var(--green-pale); }
.primary-label { flex: 1; color: #bbcbc9; font-size: .68rem; font-weight: 800; }
.primary-account-card > strong { position: relative; z-index: 1; display: block; margin-top: 23px; font-size: 1.16rem; letter-spacing: -.03em; }
.primary-account-card > p { position: relative; z-index: 1; margin: 4px 0 21px; color: #9fb3b2; font-size: .74rem; }
.primary-balance { position: relative; z-index: 1; font-size: 2rem; font-weight: 780; letter-spacing: -.06em; }
.account-number { position: relative; z-index: 1; display: block; margin-top: 9px; color: #92aaa8; font-size: .66rem; }
.account-card { padding: 16px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); box-shadow: var(--shadow); }
.account-card > strong { display: block; margin-top: 16px; font-size: .87rem; }
.account-card > p { margin: 4px 0 17px; color: var(--muted); font-size: .71rem; }
.account-card-bottom { display: flex; justify-content: space-between; align-items: end; gap: 8px; }
.account-card-bottom b { font-size: 1rem; letter-spacing: -.04em; } .account-card-bottom span { color: var(--muted); font-size: .65rem; }
.balance-edit-context { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: var(--surface-soft); }
.balance-edit-context > div { display: grid; gap: 3px; }
.balance-edit-context strong { font-size: .78rem; }
.balance-edit-context small { color: var(--muted); font-size: .65rem; }
.empty-card { display: grid; justify-items: center; gap: 8px; padding: 30px 18px; border: 1px dashed #cbd9d5; border-radius: 17px; color: var(--muted); background: var(--surface); text-align: center; }
.empty-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 15px; color: var(--green-deep); background: var(--green-pale); }
.empty-card strong { color: var(--text); font-size: .86rem; } .empty-card p { max-width: 280px; margin: 0 0 7px; font-size: .72rem; line-height: 1.5; }
.tip-card, .info-banner { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; padding: 15px; border-radius: 15px; color: var(--green-deep); background: var(--green-pale); }
.tip-card strong, .info-banner strong { display: block; font-size: .78rem; } .tip-card p, .info-banner p { margin: 4px 0 0; color: var(--muted-deep); font-size: .68rem; line-height: 1.45; }

.filter-row { display: flex; gap: 7px; overflow-x: auto; padding: 1px 0 16px; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-chip { padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted-deep); background: var(--surface); font-size: .71rem; font-weight: 750; white-space: nowrap; }
.filter-chip.active { border-color: var(--ink); color: #fff; background: var(--ink); }
.transaction-list { gap: 8px; }
.transaction-card { display: grid; grid-template-columns: 39px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.transaction-info { min-width: 0; } .transaction-info strong, .transaction-info small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.transaction-info strong { font-size: .8rem; } .transaction-info small, .transaction-total small { margin-top: 4px; color: var(--muted); font-size: .64rem; }
.transaction-total { text-align: right; } .transaction-total b { display: block; font-size: .76rem; } .transaction-total b.income { color: var(--green-deep); } .transaction-total b.expense { color: var(--danger); } .transaction-total b.transfer { color: #4b8ba8; }

.goals-overview { display: flex; justify-content: space-between; align-items: center; padding: 21px; border-radius: 20px; color: #fff; background: linear-gradient(135deg, var(--ink), #1a3a3a); box-shadow: var(--shadow); }
.goals-overview .eyebrow { color: #9bb4ae; } .goals-overview strong { display: block; font-size: 1.85rem; letter-spacing: -.07em; } .goals-overview small { display: block; margin-top: 6px; color: #a3b7b4; font-size: .68rem; }
.overview-target { padding: 8px 10px; border-radius: 999px; color: #173126; background: var(--gold); font-size: .68rem; font-weight: 850; }
.goals-grid { display: grid; gap: 11px; }

.profile-card { display: flex; align-items: center; gap: 12px; padding: 18px; border-radius: 19px; background: var(--ink); color: #fff; }
.profile-card > div:not(.profile-orb) { flex: 1; } .profile-card strong { display: block; font-size: .93rem; } .profile-card p { margin: 4px 0 0; color: #a7bab7; font-size: .7rem; }
.menu-group { margin-top: 26px; } .menu-group .eyebrow { margin-bottom: 8px; }
.menu-row, .setting-row { display: flex; align-items: center; width: 100%; gap: 11px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--text); background: transparent; text-align: left; }
.menu-row > span:nth-child(2), .setting-row > span:nth-child(2) { flex: 1; } .menu-row strong, .menu-row small, .setting-row strong, .setting-row small { display: block; } .menu-row strong, .setting-row strong { font-size: .78rem; } .menu-row small, .setting-row small { margin-top: 4px; color: var(--muted); font-size: .66rem; }
.menu-row > .icon, .setting-row > .icon { color: var(--muted); }
.menu-icon, .setting-leading { display: inline-grid; width: 39px; height: 39px; place-items: center; border-radius: 12px; } .menu-icon.green, .setting-leading.green { color: var(--green-deep); background: var(--green-pale); } .menu-icon.gold { color: #ae7e08; background: var(--gold-pale); } .menu-icon.blue, .setting-leading.blue { color: #4b8ba8; background: var(--blue-pale); } .menu-icon.purple { color: #7a63b4; background: var(--purple-pale); } .menu-icon.teal { color: var(--green-deep); background: var(--green-pale); }
.local-note { display: flex; align-items: flex-start; gap: 9px; margin-top: 26px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; color: var(--muted); font-size: .67rem; line-height: 1.5; } .local-note .icon { color: var(--green-deep); } .local-note strong { color: var(--text); }
.muted-banner { color: var(--muted-deep); background: var(--surface-soft); } .muted-banner .icon { color: var(--green-deep); }
.recurring-list { gap: 8px; margin-top: 18px; } .recurring-card { display: grid; grid-template-columns: 39px minmax(0, 1fr) auto 28px; align-items: center; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); } .recurring-icon { display: grid; width: 39px; height: 39px; place-items: center; border-radius: 12px; color: #ae7e08; background: var(--gold-pale); } .recurring-card strong, .recurring-card small { display: block; } .recurring-card strong { font-size: .78rem; } .recurring-card small { margin-top: 4px; color: var(--muted); font-size: .63rem; } .recurring-side { text-align: right; } .recurring-side b { display: block; font-size: .75rem; } .status-dot { display: inline-block; margin-top: 4px; font-size: .6rem; font-weight: 750; } .status-dot.on { color: var(--green-deep); } .status-dot.off { color: var(--muted); }
.log-list { gap: 0; margin-top: 20px; } .log-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 11px; padding: 13px 0; border-bottom: 1px solid var(--line); } .log-marker { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 9px; color: var(--green-deep); background: var(--green-pale); } .log-row strong { display: block; font-size: .75rem; } .log-row p { margin: 4px 0 0; color: var(--muted); font-size: .66rem; } .log-row time { color: var(--muted); font-size: .61rem; line-height: 1.45; text-align: right; }
.category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 20px; } .category-pill { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 11px; border: 1px solid var(--line); border-radius: 13px; color: var(--text); background: var(--surface); font-size: .72rem; font-weight: 700; } .category-pill > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .category-dot { display: grid; width: 27px; height: 27px; flex: 0 0 auto; place-items: center; border-radius: 8px; color: var(--green-deep); background: var(--green-pale); } .dot-1 { color: #a87905; background: var(--gold-pale); } .dot-2 { color: #4b8ba8; background: var(--blue-pale); } .dot-3 { color: #7a63b4; background: var(--purple-pale); } .category-pill button { display: grid; margin-left: auto; place-items: center; color: var(--muted); background: transparent; } .outline-button { margin-top: 18px; border: 1px solid var(--green); color: var(--green-deep); background: transparent; }
.settings-profile { display: flex; align-items: center; gap: 13px; padding-bottom: 22px; border-bottom: 1px solid var(--line); } .settings-profile h2 { margin: 0 0 4px; } .settings-profile small { color: var(--muted); } .settings-form { display: grid; gap: 12px; padding: 20px 0 5px; }
.field-label { display: grid; gap: 7px; color: var(--muted-deep); font-size: .69rem; font-weight: 750; } .field-label input, .field-label select { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); outline: 0; background: var(--surface); font-size: .79rem; } .optional { color: var(--muted); font-weight: 500; } .settings-section { margin-top: 24px; } .setting-leading.light { color: #ae7e08; background: var(--gold-pale); } .setting-leading.dark { color: #aca1e4; background: var(--purple-pale); }
.switch { display: inline-flex; align-items: center; width: 36px; height: 21px; padding: 3px; border-radius: 20px; background: var(--line); } .switch i { display: block; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0002; transition: transform .2s ease; } .switch.checked { background: var(--green); } .switch.checked i { transform: translateX(15px); }
.danger-link { margin-top: 30px; padding: 0; color: var(--danger); background: transparent; font-size: .7rem; font-weight: 750; }

.bottom-nav { position: fixed; z-index: 10; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(5, 1fr); width: min(100%, 820px); height: 72px; margin: 0 auto; padding: 8px max(16px, calc((100% - 820px) / 2)); border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 93%, transparent); backdrop-filter: blur(18px); }
.bottom-nav-item { display: grid; justify-items: center; align-content: center; gap: 4px; color: var(--muted); background: transparent; font-size: .59rem; font-weight: 750; } .bottom-nav-item.active { color: var(--green-deep); } .bottom-nav-add { display: grid; width: 48px; height: 48px; margin: 2px auto 0; place-items: center; border-radius: 16px; color: #fff; background: var(--green); box-shadow: 0 7px 18px rgba(43, 184, 138, .32); }

.modal-backdrop { position: fixed; z-index: 30; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: 0; background: rgba(8, 15, 18, .56); backdrop-filter: blur(5px); }
.modal-sheet { width: min(100%, 560px); max-height: min(88vh, 700px); overflow-y: auto; padding: 22px 18px 28px; border-radius: 24px 24px 0 0; color: var(--text); background: var(--surface); box-shadow: 0 -10px 60px rgba(0, 0, 0, .24); animation: sheet-in .25s ease both; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.modal-heading { display: flex; justify-content: space-between; align-items: start; margin-bottom: 22px; } .modal-heading h2 { font-size: 1.35rem; } .modal-form { display: grid; gap: 14px; } .modal-form .primary-button { margin-top: 7px; }
.segmented-control { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-soft); } .segmented-control button { padding: 10px 7px; border-radius: 9px; color: var(--muted); background: transparent; font-size: .7rem; font-weight: 800; } .segmented-control button.active { color: var(--text); background: var(--surface); box-shadow: 0 2px 8px #0000000e; } .segmented-control button.active.expense { color: var(--danger); } .segmented-control button.active.income { color: var(--green-deep); } .segmented-control button.active.transfer { color: #4b8ba8; }
.amount-field { display: grid; gap: 7px; color: var(--muted-deep); font-size: .7rem; font-weight: 750; } .amount-field > div { display: flex; align-items: center; gap: 8px; padding: 2px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); } .amount-field b { color: var(--green-deep); font-size: 1.35rem; } .amount-field input { width: 100%; padding: 11px 0; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 1.45rem; font-weight: 760; letter-spacing: -.04em; } .amount-field input::placeholder { color: var(--muted); }
.two-fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; } .check-row { display: flex; align-items: flex-start; gap: 9px; padding: 12px; border-radius: 11px; color: var(--text); background: var(--surface-soft); font-size: .72rem; } .check-row input { accent-color: var(--green); margin-top: 2px; } .check-row strong, .check-row small { display: block; } .check-row small { margin-top: 3px; color: var(--muted); font-size: .63rem; } .form-hint { display: flex; align-items: center; justify-content: center; gap: 5px; margin: 0; color: var(--muted); font-size: .64rem; text-align: center; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 12px 16px; border-radius: 11px; color: var(--ink); background: var(--gold); font-size: .75rem; font-weight: 850; box-shadow: 0 7px 15px rgba(243, 197, 75, .2); } .primary-button:hover { filter: brightness(.97); transform: translateY(-1px); }
.action-list { display: grid; gap: 6px; } .action-list-row { display: flex; align-items: center; gap: 11px; padding: 13px; border-radius: 11px; color: var(--text); background: var(--surface-soft); font-size: .75rem; font-weight: 750; text-align: left; } .action-list-row:hover { background: var(--green-pale); } .action-list-row.danger { color: var(--danger); } .contribution-preview { padding: 14px; margin-bottom: 15px; border-radius: 14px; background: var(--surface-soft); } .contribution-preview span { display: block; color: var(--muted); font-size: .66rem; } .contribution-preview strong { display: block; margin-top: 4px; font-size: 1.25rem; }
.auth-copy { padding: 4px 0 17px; color: var(--muted-deep); font-size: .75rem; line-height: 1.6; } .auth-symbol { display: grid; width: 50px; height: 50px; margin-bottom: 14px; place-items: center; border-radius: 16px; color: var(--green-deep); background: var(--green-pale); } .auth-points { display: grid; gap: 8px; margin-top: 17px; color: var(--text); font-size: .7rem; font-weight: 700; } .auth-points span { display: flex; align-items: center; gap: 7px; } .auth-points .icon { color: var(--green); }

@media (min-width: 680px) {
  .app-shell { padding-right: 30px; padding-left: 30px; }
  .topbar { padding-top: 26px; }
  .topbar-title { order: 0; grid-column: auto; padding-top: 0; }
  .topbar-brand { order: 0; }
  .topbar-title { order: 1; margin-left: auto; text-align: right; }
  .topbar-actions { order: 2; }
  .topbar-title .eyebrow { display: none; }
  .topbar-title h1 { font-size: 1.2rem; }
  .home-intro { margin-top: 25px; }
  .summary-grid, .goals-grid { grid-template-columns: repeat(2, 1fr); }
  .account-list { grid-template-columns: repeat(2, 1fr); }
  .bottom-nav { right: 20px; bottom: 15px; left: 20px; border: 1px solid var(--line); border-radius: 18px; }
  .modal-backdrop { align-items: center; padding: 20px; }
  .modal-sheet { border-radius: 24px; }
}

@media (min-width: 900px) {
  .app-shell { width: min(100%, 900px); }
  .home-view { display: grid; grid-template-columns: 1.15fr .85fr; column-gap: 18px; }
  .home-intro, .balance-card, .quick-actions, .home-view > .section-heading, .home-view > .goal-card, .home-view > .movement-panel { grid-column: 1 / -1; }
  .home-view > .section-heading:nth-of-type(2) { grid-column: 1 / 2; }
  .home-view > .summary-grid { grid-column: 1 / 2; }
  .home-view > .goal-heading, .home-view > .goal-card { grid-column: 2 / 3; }
  .home-view > .recent-heading, .home-view > .movement-panel { grid-column: 1 / -1; }
  .quick-actions { margin-bottom: 12px; }
}
