:root {
  color-scheme: light;
  --paper: #f5f6fb;
  --white: #fff;
  --ink: #20243a;
  --muted: #858aa0;
  --line: #e8eaf3;
  --green: #5753d6;
  --green-deep: #4541b8;
  --mint: #eeedff;
  --coral: #e7856d;
  --font: "DM Sans", sans-serif;
  --display: "Manrope", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font: 800 20px var(--display); letter-spacing: -1.1px; text-decoration: none; }
.brand-mark { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 10px 10px 10px 4px; background: #d7e8d8; color: var(--green); font: 800 17px var(--display); }
.eyebrow { color: #90978e; font-size: 9px; font-weight: 700; letter-spacing: 1.5px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 42px; padding: 0 17px; border: 1px solid transparent; border-radius: 8px; font-size: 12px; font-weight: 700; transition: background .18s, transform .18s, box-shadow .18s; }
.button:hover { transform: translateY(-1px); }
.button:focus-visible, .text-button:focus-visible, .icon-button:focus-visible, .nav-link:focus-visible { outline: 3px solid #a9c5a5; outline-offset: 2px; }
.button-dark { background: var(--green); color: #fff; }
.button-dark:hover { background: var(--green-deep); }
.button-outline { border-color: #e5e8e1; background: #fff; color: #4b534a; }
.button-wide { width: 100%; margin-top: 6px; min-height: 48px; }
.button span { font-size: 15px; }

/* Sign in */
.auth-shell { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-intro { position: relative; display: flex; flex-direction: column; min-height: 100vh; padding: 42px 8.5%; overflow: hidden; background: #eff3ea; }
.auth-intro::before, .auth-intro::after { position: absolute; content: ""; border: 1px solid rgba(43, 83, 58, .08); border-radius: 50%; pointer-events: none; }
.auth-intro::before { width: 560px; height: 560px; right: -200px; bottom: -240px; }
.auth-intro::after { width: 430px; height: 430px; right: -135px; bottom: -175px; }
.auth-copy { position: relative; z-index: 1; width: min(440px, 100%); margin: auto 0; padding: 62px 0 82px; }
.auth-copy .eyebrow { color: #748175; }
.auth-copy h1 { margin: 22px 0 18px; color: #26342a; font: 700 clamp(42px, 5vw, 65px)/1.08 var(--display); letter-spacing: -3.2px; }
.auth-copy h1 em { color: #5e8066; font-style: normal; }
.auth-copy > p { max-width: 370px; color: #717970; font-size: 15px; line-height: 1.8; }
.intro-points { display: grid; gap: 17px; margin-top: 46px; color: #4a574c; font-size: 13px; font-weight: 500; }
.intro-points > div { display: flex; align-items: center; gap: 12px; }
.point-icon { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 8px; background: #dfeadd; color: var(--green); font-size: 14px; }
.auth-foot { position: relative; z-index: 1; color: #889187; font-size: 8px; font-weight: 700; letter-spacing: 1.4px; }
.auth-foot span { padding: 0 8px; color: #aab4a7; }
.auth-panel { display: grid; place-items: center; padding: 44px 26px; background: #fbfcf9; }
.auth-card { width: min(390px, 100%); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 9px; background: #f1f3ee; }
.auth-tab { min-height: 38px; border: 0; border-radius: 6px; background: transparent; color: #858b83; font-size: 12px; font-weight: 600; }
.auth-tab.active { background: #fff; color: var(--ink); box-shadow: 0 1px 5px #25341e0d; }
.auth-heading { margin: 36px 0 26px; }
.auth-heading h2, .dialog-heading h2 { margin: 0 0 7px; font: 700 25px var(--display); letter-spacing: -.8px; }
.auth-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.field-label { display: grid; gap: 8px; margin-bottom: 18px; color: #495148; font-size: 11px; font-weight: 700; }
.field-label input, .field-label select { width: 100%; min-height: 46px; padding: 0 13px; border: 1px solid #e6e9e2; border-radius: 7px; outline: 0; background: #fff; color: #333c33; font-size: 12px; font-weight: 400; transition: border-color .2s, box-shadow .2s; }
.field-label input::placeholder { color: #b5bbb2; }
.field-label input:focus, .field-label select:focus, .search-wrap:focus-within { border-color: #7e9e82; box-shadow: 0 0 0 3px #dcebdd80; }
.auth-privacy { margin: 23px 0 0; color: #969d94; text-align: center; font-size: 10px; line-height: 1.7; }
.auth-privacy span { margin-right: 4px; color: #66836a; }
.form-error { min-height: 16px; margin: -4px 0 8px; color: #b64e3d; font-size: 11px; }

/* App layout */
.app-shell { display: grid; grid-template-columns: 226px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; padding: 27px 18px 17px; border-right: 1px solid #ecede8; background: #fbfcf9; }
.side-brand { margin: 0 0 55px 6px; font-size: 19px; }
.side-label { margin: 0 0 13px 10px; color: #a1a79e; font-size: 8px; font-weight: 700; letter-spacing: 1.4px; }
.side-nav { display: grid; gap: 5px; }
.nav-link { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 11px; border-radius: 7px; color: #81887f; font-size: 12px; font-weight: 500; text-decoration: none; transition: .15s; }
.nav-link:hover { background: #f3f5ef; color: var(--ink); }
.nav-link.active { background: #edf3eb; color: #32533a; font-weight: 700; }
.nav-icon { width: 18px; text-align: center; font-size: 17px; }
.sidebar-bottom { margin-top: auto; }
.sidebar-note { margin: 0 0 15px; padding: 15px 13px; border-radius: 8px; background: #f2f5ee; }
.note-spark { color: #789276; font-size: 16px; }
.sidebar-note p { margin: 7px 0 0; color: #888f85; font-size: 10px; line-height: 1.7; }
.sidebar-note strong { color: #4c5c4c; font-size: 11px; }
.profile-button { display: flex; align-items: center; width: 100%; gap: 9px; padding: 12px 3px 4px; border: 0; border-top: 1px solid #eceee8; background: transparent; text-align: left; }
.avatar { display: grid; flex: 0 0 32px; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: #dce9dc; color: #456749; font-size: 12px; font-weight: 700; }
.profile-copy { display: grid; min-width: 0; gap: 3px; flex: 1; }
.profile-copy strong { overflow: hidden; color: #4b534b; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.profile-copy small { overflow: hidden; color: #a0a69e; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.logout-icon { color: #929a90; font-size: 13px; transform: rotate(45deg); }
.main-content { width: min(100%, 1420px); margin: 0 auto; padding: 35px clamp(24px, 4vw, 58px) 25px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.greeting h1 { margin: 6px 0 0; font: 700 25px var(--display); letter-spacing: -.8px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.month-select-label { color: #a0a69e; font-size: 8px; font-weight: 700; letter-spacing: 1.2px; }
.month-select { height: 39px; padding: 0 9px; border: 1px solid #e6e9e2; border-radius: 7px; outline: 0; background: #fff; color: #51594f; font-size: 11px; }
.currency-select-label { color: #a0a69e; font-size: 8px; font-weight: 700; letter-spacing: 1.2px; }
.currency-select { height: 39px; min-width: 88px; padding: 0 9px; border: 1px solid #e6e9e2; border-radius: 7px; outline: 0; background: #fff; color: #435144; font-size: 11px; font-weight: 600; }
.currency-select:focus-visible, .month-select:focus-visible, .filter-select:focus-visible { border-color: #7e9e82; box-shadow: 0 0 0 3px #dcebdd80; }
.add-top { min-height: 39px; }
.mobile-brand { display: none; }

/* Summary cards */
.overview-grid { display: grid; grid-template-columns: 1.18fr 1fr 1fr; gap: 14px; }
.summary-card { position: relative; min-height: 155px; padding: 17px 19px; overflow: hidden; border: 1px solid #ebede7; border-radius: 12px; background: #fff; box-shadow: 0 4px 14px #25341e06; transition: transform .2s, box-shadow .2s; }
.summary-card:hover { box-shadow: 0 10px 24px #25341e0c; transform: translateY(-2px); }
.balance-card { border: 0; background: linear-gradient(135deg, #284f3b 0%, #356849 100%); color: #fff; }
.card-topline { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; color: #979e95; font-size: 8px; font-weight: 700; letter-spacing: 1.2px; }
.balance-card .card-topline { color: #b5c7b9; }
.card-dot { width: 7px; height: 7px; border-radius: 50%; }
.dot-light { background: #b9d1bc; }
.summary-value { position: relative; z-index: 1; margin: 17px 0 10px; font: 700 27px var(--display); letter-spacing: -1.1px; }
.card-foot, .metric-foot { position: relative; z-index: 1; display: flex; align-items: center; gap: 7px; color: #a5ada3; font-size: 10px; }
.balance-caption { color: #c1d0c3; }
.balance-ornament { margin-left: auto; color: #bed0bf; font-size: 15px; }
.metric-icon { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 7px; font-size: 14px; }
.income-icon { background: #e7f2e7; color: #527a50; }
.expense-icon { background: #fbede9; color: #cc765e; }
.metric-dot { width: 6px; height: 6px; border-radius: 50%; }
.income-dot { background: #7fac78; }
.expense-dot { background: #df8b73; }
/* Monthly charts */
.charts-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, 1fr); gap: 14px; margin-top: 14px; }
.chart-panel { min-width: 0; min-height: 290px; padding: 20px 21px 17px; border-radius: 12px; box-shadow: 0 4px 14px #25341e06; }
.chart-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.chart-heading h2 { margin: 5px 0 0; font: 700 16px var(--display); letter-spacing: -.4px; }
.chart-legend { display: flex; align-items: center; gap: 13px; color: #7d857b; font-size: 9px; }
.chart-legend > span, .category-legend-name { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i, .category-legend-name i { display: inline-block; width: 8px; height: 8px; border-radius: 3px; }
.legend-income { background: #7fa47a; }
.legend-expense { background: #e59178; }
.chart-subtitle { margin: 7px 0 14px; color: #9aa197; font-size: 10px; }
.cashflow-chart { display: grid; grid-template-columns: 53px minmax(0, 1fr); gap: 7px; height: 191px; }
.chart-scale { display: flex; flex-direction: column; justify-content: space-between; padding: 0 0 23px; color: #a4aaa1; text-align: right; font-size: 8px; }
.chart-plot { position: relative; min-width: 0; height: 168px; border-bottom: 1px solid #e9ece5; }
.plot-grid { position: absolute; inset: 0; display: grid; grid-template-rows: repeat(5, 1fr); }
.plot-grid i { border-top: 1px dashed #edf0ea; }
.week-columns { position: absolute; inset: 0 0 -24px; display: flex; justify-content: space-around; }
.week-column { display: grid; flex: 1; min-width: 0; grid-template-rows: minmax(0, 1fr) 24px; }
.week-bars { display: flex; align-items: end; justify-content: center; gap: clamp(3px, .7vw, 8px); min-height: 0; }
.chart-bar { width: clamp(9px, 1.5vw, 18px); height: var(--bar-height); min-height: 2px; border-radius: 4px 4px 1px 1px; transition: height .35s ease, filter .2s; }
.chart-bar:hover { filter: brightness(.9); }
.chart-bar.is-zero { min-height: 0; }
.bar-income { background: linear-gradient(180deg, #9cbd96, #6e9972); }
.bar-expense { background: linear-gradient(180deg, #f1b39f, #df856f); }
.week-label { overflow: hidden; padding-top: 6px; color: #999f97; text-align: center; font-size: 8px; white-space: nowrap; }
.chart-empty { display: grid; height: 100%; place-items: center; border: 1px dashed #e6ebe2; border-radius: 8px; color: #969e94; font-size: 11px; }
.chart-period { color: #a0a69e; font-size: 8px; font-weight: 700; letter-spacing: .8px; }
.category-chart { display: grid; grid-template-columns: minmax(115px, .9fr) minmax(0, 1.1fr); align-items: center; gap: 13px; min-height: 195px; }
.donut-wrap { display: grid; place-items: center; }
.donut-svg { width: min(100%, 170px); overflow: visible; }
.donut-track { stroke: #f0f2ed; }
.donut-segment { transform: rotate(-90deg); transform-origin: 50% 50%; stroke-linecap: butt; transition: stroke-dasharray .35s ease; }
.donut-total { fill: #39453b; text-anchor: middle; font: 700 11px var(--display); }
.donut-caption { fill: #929a90; text-anchor: middle; font: 9px var(--font); }
.category-legend { display: grid; gap: 10px; min-width: 0; }
.category-legend-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #6f786e; font-size: 9px; }
.category-legend-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.category-legend-name i { flex: 0 0 8px; background: var(--category-color); }
.category-legend-row strong { color: #444e43; font-size: 9px; font-weight: 600; white-space: nowrap; }
.category-empty { color: #969e94; font-size: 10px; line-height: 1.6; }

/* Budget and insight */
.content-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 14px; margin-top: 14px; }
.panel { border: 1px solid #ebede7; border-radius: 12px; background: #fff; }
.budget-panel, .insight-panel { min-height: 202px; padding: 19px 21px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; }
.panel-heading h2, .transactions-heading h2 { margin: 5px 0 0; font: 700 17px var(--display); letter-spacing: -.45px; }
.budget-symbol, .insight-icon { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 9px; background: #eef4ea; color: #70906e; font-size: 17px; }
.panel-description { margin: 9px 0 15px; color: #90978e; font-size: 10px; }
.budget-amount-row { display: flex; align-items: baseline; gap: 5px; margin-bottom: 10px; }
.budget-spent { font: 700 19px var(--display); letter-spacing: -.5px; }
.budget-target { color: #a1a79e; font-size: 10px; }
.progress-track { height: 6px; overflow: hidden; border-radius: 9px; background: #eef0ea; }
.progress-fill { width: 0; height: 100%; border-radius: inherit; background: #82a27c; transition: width .3s ease; }
.progress-fill.over-budget { background: #dc826b; }
.budget-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; color: #9da49a; font-size: 9px; }
.text-button { padding: 2px 0; border: 0; background: transparent; color: #537258; font-size: 10px; font-weight: 700; }
.text-button span { margin-left: 4px; }
.budget-form { margin-top: 11px; }
.budget-form > label { display: block; margin-bottom: 6px; color: #687067; font-size: 10px; font-weight: 600; }
.budget-input-row { display: flex; align-items: center; height: 37px; gap: 7px; }
.budget-input-row > span { color: #929a91; }
.budget-input-row input { width: 110px; height: 35px; padding: 0 8px; border: 1px solid #e5e8e1; border-radius: 6px; outline: 0; }
.budget-input-row .button { min-height: 34px; padding: 0 12px; font-size: 10px; }
.icon-button { display: grid; width: 31px; height: 31px; place-items: center; border: 0; border-radius: 7px; background: #f3f4f0; color: #7d857b; font-size: 20px; line-height: 1; }
.budget-form .form-error { margin: 4px 0 0; }
.insight-icon { background: #f8f2e7; color: #ae9b70; }
.insight-copy { max-width: 410px; min-height: 40px; margin: 16px 0 13px; color: #777f75; font-size: 11px; line-height: 1.75; }
.insight-bottom { display: flex; align-items: center; justify-content: space-between; color: #9ba197; font-size: 9px; }
.insight-spark { color: #b2b98b; letter-spacing: 4px; }

/* Transactions */
.transactions-panel { margin-top: 14px; padding: 19px 21px 9px; }
.transactions-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-bottom: 15px; }
.transaction-actions { display: flex; align-items: center; gap: 8px; }
.search-wrap { display: flex; align-items: center; gap: 7px; width: 160px; height: 34px; padding: 0 9px; border: 1px solid #e8eae5; border-radius: 6px; color: #a0a69d; transition: .2s; }
.search-wrap > span { font-size: 18px; }
.search-wrap input { width: 100%; border: 0; outline: 0; color: #51594f; font-size: 10px; }
.search-wrap input::placeholder { color: #a7ada5; }
.filter-select { height: 34px; padding: 0 8px; border: 1px solid #e8eae5; border-radius: 6px; outline: 0; background: #fff; color: #657064; font-size: 10px; }
.transaction-actions .button { min-height: 34px; padding: 0 11px; font-size: 10px; }
.transaction-list { display: grid; }
.transaction-row { display: grid; grid-template-columns: minmax(170px, 1.4fr) minmax(85px, .7fr) minmax(80px, .55fr) auto 67px; align-items: center; gap: 12px; min-height: 56px; border-top: 1px solid #f0f1ed; }
.transaction-main { display: flex; align-items: center; min-width: 0; gap: 10px; }
.transaction-symbol { display: grid; flex: 0 0 32px; width: 32px; height: 32px; place-items: center; border-radius: 9px; background: #f2f4ef; color: #697766; font-size: 15px; }
.transaction-symbol.income { background: #eaf3e9; color: #688665; }
.transaction-symbol.expense { background: #fbefeb; color: #ca806a; }
.transaction-title-wrap { min-width: 0; }
.transaction-title { overflow: hidden; color: #424a41; font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.transaction-note { overflow: hidden; max-width: 250px; margin-top: 3px; color: #a3a99f; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.transaction-category { color: #858d83; font-size: 10px; }
.transaction-date { color: #a0a69d; font-size: 10px; }
.transaction-amount { color: #424a41; text-align: right; font: 700 12px var(--display); white-space: nowrap; }
.transaction-amount.income { color: #557c55; }
.row-actions { display: flex; justify-content: flex-end; gap: 4px; opacity: 1; }
.row-action { display: grid; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 7px; background: #fce7f3; color: #92245f; font-size: 16px; }
.row-action:hover { background: #f1f3ed; color: #40563e; }
.row-action.delete { background: #fff0ed; color: #b94c4c; }
.row-action.delete:hover { background: #fce0da; color: #963b3b; }
.empty-state { padding: 31px 10px 33px; text-align: center; }
.empty-illustration { display: grid; width: 47px; height: 47px; margin: 0 auto 13px; place-items: center; border-radius: 16px; background: #eef3eb; color: #779174; font-size: 25px; }
.empty-state h3 { margin: 0 0 6px; font: 700 14px var(--display); }
.empty-state p { margin: 0 0 15px; color: #959c92; font-size: 10px; }
.empty-state .button { min-height: 36px; font-size: 10px; }
.no-results { padding: 25px; border-top: 1px solid #f0f1ed; color: #939a91; text-align: center; font-size: 11px; }
.app-footer { display: flex; justify-content: space-between; margin-top: 19px; color: #a7ada4; font-size: 8px; }
.app-footer span:last-child { font-size: 7px; font-weight: 700; letter-spacing: 1px; }
.app-footer i { padding-left: 5px; color: #7d9877; font-size: 10px; font-style: normal; }

/* Entry dialog and notifications */
.transaction-dialog { width: min(540px, calc(100vw - 28px)); max-width: none; padding: 26px; border: 1px solid #e6e9e1; border-radius: 13px; background: #fbfcf9; box-shadow: 0 18px 70px #1c2a2030; }
.transaction-dialog::backdrop { background: #15241c63; backdrop-filter: blur(2px); }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 19px; }
.dialog-heading h2 { margin-top: 5px; }
.dialog-close { width: 29px; height: 29px; }
.kind-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 20px; padding: 4px; border-radius: 8px; background: #f0f2ed; }
.kind-option { min-height: 35px; border: 0; border-radius: 6px; background: transparent; color: #828a80; font-size: 11px; font-weight: 600; }
.kind-option span { margin-right: 5px; }
.kind-option.selected { background: #fff; color: #527451; box-shadow: 0 1px 5px #25341e0d; }
.kind-option[data-kind="income"].selected { color: #527451; }
.amount-label { margin-bottom: 17px; }
.amount-input-wrap { display: flex; align-items: center; height: 52px; padding: 0 12px; border: 1px solid #e6e9e2; border-radius: 7px; background: #fff; color: #8c958a; font-size: 18px; }
.amount-input-wrap input { width: 100%; height: 100%; padding-left: 8px; border: 0; outline: 0; background: transparent; color: #29362a; font: 700 23px var(--display); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row .field-label { margin-bottom: 13px; }
.optional { color: #a8aea5; font-size: 9px; font-weight: 400; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 2px; }
.dialog-actions .button { min-height: 39px; font-size: 11px; }
.toast { position: fixed; z-index: 5; top: 18px; left: 50%; padding: 11px 17px; border-radius: 8px; background: #263f2e; color: #fff; box-shadow: 0 5px 20px #1d2b2030; font-size: 12px; opacity: 0; pointer-events: none; transform: translate(-50%, -10px); transition: .2s; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 1450px) {
  .main-content { padding-top: 48px; }
  .summary-card { min-height: 172px; padding: 21px 23px; }
  .summary-value { font-size: 31px; }
  .budget-panel, .insight-panel { min-height: 218px; padding: 22px 24px; }
  .chart-panel { min-height: 310px; padding: 23px 24px 19px; }
  .cashflow-chart { height: 207px; }
  .chart-plot { height: 184px; }
}
@media (max-width: 1020px) {
  .app-shell { grid-template-columns: 190px minmax(0, 1fr); }
  .sidebar { padding-right: 12px; padding-left: 12px; }
  .main-content { padding-right: 25px; padding-left: 25px; }
  .overview-grid { gap: 10px; }
  .summary-card { padding: 15px 14px; }
  .transaction-row { grid-template-columns: minmax(145px, 1.2fr) minmax(70px, .6fr) minmax(70px, .5fr) auto 56px; gap: 7px; }
  .search-wrap { width: 125px; }
  .charts-grid { grid-template-columns: minmax(0, 1.25fr) minmax(250px, 1fr); gap: 10px; }
  .chart-panel { padding-right: 15px; padding-left: 15px; }
  .chart-legend { gap: 8px; }
}
@media (max-width: 760px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-intro { min-height: auto; padding: 25px 24px 23px; }
  .auth-copy { margin: 36px 0 25px; padding: 0; }
  .auth-copy h1 { margin: 14px 0 10px; font-size: 44px; letter-spacing: -2.4px; }
  .auth-copy > p { margin: 0; font-size: 13px; }
  .intro-points { grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 21px; font-size: 9px; }
  .intro-points > div { align-items: flex-start; flex-direction: column; gap: 5px; }
  .auth-foot { font-size: 7px; }
  .auth-panel { padding: 28px 22px 40px; }
  .auth-card { max-width: 420px; }
  .app-shell { display: block; }
  .sidebar { position: static; display: block; width: 100%; height: auto; padding: 11px 18px; border-right: 0; border-bottom: 1px solid #ecede8; }
  .side-brand, .side-label, .sidebar-bottom { display: none; }
  .side-nav { display: flex; gap: 4px; margin-top: 8px; }
  .nav-link { flex: 1; justify-content: center; min-height: 35px; padding: 0 6px; font-size: 10px; }
  .nav-icon { width: auto; font-size: 14px; }
  .main-content { padding: 20px 17px 20px; }
  .topbar { align-items: flex-start; flex-direction: column; gap: 11px; margin-bottom: 17px; }
  .mobile-brand { display: flex; align-items: center; gap: 8px; font: 800 16px var(--display); letter-spacing: -.7px; }
  .mobile-brand .brand-mark { width: 25px; height: 25px; border-radius: 8px 8px 8px 3px; font-size: 14px; }
  .greeting h1 { font-size: 21px; }
  .topbar-actions { width: 100%; }
  .month-select-label { margin-left: auto; }
  .month-select { flex: 0 1 145px; }
  .currency-select-label { margin-left: 2px; }
  .currency-select { min-width: 82px; height: 37px; padding: 0 6px; }
  .add-top { min-height: 37px; padding: 0 12px; }
  .overview-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .balance-card { grid-column: 1 / -1; min-height: 135px; }
  .summary-card:not(.balance-card) { min-height: 135px; }
  .charts-grid { grid-template-columns: 1fr; gap: 9px; margin-top: 9px; }
  .chart-panel { min-height: 275px; padding: 17px; }
  .cashflow-chart { height: 184px; }
  .chart-plot { height: 161px; }
  .category-chart { grid-template-columns: minmax(130px, .8fr) minmax(0, 1.2fr); min-height: 175px; }
  .content-grid { grid-template-columns: 1fr; gap: 9px; margin-top: 9px; }
  .budget-panel, .insight-panel { min-height: auto; padding: 17px; }
  .transactions-panel { margin-top: 9px; padding: 16px 13px 8px; }
  .transactions-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .transaction-actions { display: grid; width: 100%; grid-template-columns: 1fr auto auto; }
  .search-wrap { width: 100%; }
  .transaction-row { grid-template-columns: minmax(0, 1fr) auto auto; gap: 9px; padding: 8px 0; }
  .transaction-category, .transaction-date { display: none; }
  .row-actions { grid-column: 2 / 4; grid-row: 2; justify-content: flex-end; }
  .transaction-amount { grid-column: 2; grid-row: 1; }
  .app-footer { gap: 10px; font-size: 7px; }
}
@media (max-width: 390px) {
  .main-content { padding-right: 12px; padding-left: 12px; }
  .transaction-actions { grid-template-columns: 1fr auto; }
  .search-wrap { grid-column: 1 / -1; }
  .transaction-row { gap: 5px; }
  .transaction-amount { font-size: 11px; }
  .filter-select, .transaction-actions .button { font-size: 9px; }
  .topbar-actions { gap: 6px; }
  .month-select { max-width: 112px; }
  .currency-select { min-width: 75px; font-size: 10px; }
  .currency-select-label { font-size: 7px; }
  .chart-panel { padding-right: 12px; padding-left: 12px; }
  .chart-legend { gap: 6px; font-size: 8px; }
  .category-chart { grid-template-columns: minmax(105px, .8fr) minmax(0, 1.2fr); gap: 8px; }
}

/* App navigation refresh */
body:has(.app-shell:not(.hidden)) { background: #f4f6f2; }
.app-shell { display: block; min-height: 100vh; }
.app-shell.hidden { display: none; }
.app-header { position: sticky; z-index: 4; top: 0; border-bottom: 1px solid #e9ede6; background: #ffffffed; box-shadow: 0 3px 14px #25341e05; backdrop-filter: blur(16px); }
.header-inner { display: flex; align-items: center; width: min(100%, 1420px); min-height: 69px; gap: clamp(20px, 4vw, 58px); margin: 0 auto; padding: 0 clamp(20px, 4vw, 58px); }
.header-brand { flex: 0 0 auto; font-size: 19px; }
.header-nav { display: flex; align-items: center; align-self: stretch; gap: 6px; }
.header-nav .nav-link { position: relative; min-height: 100%; padding: 0 13px; border-radius: 0; font-size: 11px; }
.header-nav .nav-link:hover { background: transparent; color: var(--green); }
.header-nav .nav-link.active { background: transparent; color: var(--green); }
.header-nav .nav-link.active::after { position: absolute; right: 12px; bottom: 0; left: 12px; height: 2px; border-radius: 2px 2px 0 0; background: #6b956a; content: ""; }
.header-nav .nav-icon { font-size: 15px; }
.profile-button { width: auto; min-width: 0; margin-left: auto; padding: 0 0 0 14px; border: 0; }
.profile-button:hover .profile-copy strong { color: var(--green); }
.profile-copy { max-width: 130px; }
.logout-icon { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 7px; background: #f3f5f0; transform: none; }
.main-content { width: min(100%, 1420px); padding: 35px clamp(20px, 4vw, 58px) 28px; }
.topbar { align-items: flex-end; gap: 24px; margin-bottom: 23px; }
.greeting h1 { font-size: 27px; letter-spacing: -1px; }
.topbar-actions { flex-wrap: wrap; }
.summary-card, .panel { border-radius: 14px; box-shadow: 0 5px 18px #25341e08; }
.summary-card:hover { box-shadow: 0 12px 28px #25341e10; }
.balance-card { background: linear-gradient(135deg, #234c38 0%, #35694a 100%); box-shadow: 0 10px 24px #214f3a20; }
.chart-panel { min-height: 300px; }
.budget-panel, .insight-panel { min-height: 210px; }
.transactions-panel { padding-right: 23px; padding-left: 23px; }
.bottom-nav { display: none; }
.app-footer { padding-bottom: 3px; }
html:has(.app-shell:not(.hidden)) { scroll-padding-top: 88px; }

@media (max-width: 1020px) {
  .header-inner { gap: 18px; padding-right: 22px; padding-left: 22px; }
  .header-nav { gap: 0; }
  .header-nav .nav-link { gap: 7px; padding-right: 9px; padding-left: 9px; font-size: 10px; }
  .profile-copy { max-width: 98px; }
  .main-content { padding-right: 22px; padding-left: 22px; }
}

@media (max-width: 760px) {
  body:has(.app-shell:not(.hidden)) { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .app-header { position: sticky; top: 0; }
  .header-inner { min-height: 58px; justify-content: space-between; gap: 12px; padding: 0 17px; }
  .header-brand { font-size: 17px; }
  .header-brand .brand-mark { width: 29px; height: 29px; }
  .header-nav { display: none; }
  .profile-button { margin-left: auto; padding-left: 0; }
  .profile-button .profile-copy, .profile-button .logout-icon { display: none; }
  .avatar { width: 33px; height: 33px; }
  .main-content { padding: 22px 17px 20px; }
  .topbar { align-items: flex-start; gap: 12px; margin-bottom: 18px; }
  .greeting h1 { margin-top: 5px; font-size: 24px; }
  .topbar-actions { width: 100%; gap: 7px; }
  .month-select-label, .currency-select-label { display: none; }
  .month-select, .currency-select, .add-top { height: 38px; min-height: 38px; }
  .month-select { flex: 1 1 115px; max-width: 150px; }
  .currency-select { flex: 0 0 82px; }
  .add-top { margin-left: auto; }
  .summary-card:not(.balance-card) .summary-value { font-size: 19px; letter-spacing: -.7px; white-space: nowrap; }
  .bottom-nav { position: fixed; z-index: 6; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(4, 1fr); min-height: 64px; padding: 7px 12px calc(7px + env(safe-area-inset-bottom)); border-top: 1px solid #e7ebe4; background: #ffffffed; box-shadow: 0 -7px 22px #25341e0a; backdrop-filter: blur(18px); }
  .bottom-nav-link, .bottom-add-button { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 3px; min-width: 0; border: 0; border-radius: 10px; background: transparent; color: #858e83; text-decoration: none; }
  .bottom-nav-link > span, .bottom-add-button > span { display: grid; width: 30px; height: 26px; place-items: center; border-radius: 9px; font-size: 19px; line-height: 1; }
  .bottom-nav-link small, .bottom-add-button small { font-size: 9px; font-weight: 600; }
  .bottom-nav-link.active { color: #315f3d; }
  .bottom-nav-link.active > span { background: #eaf2e8; }
  .bottom-add-button { color: #315f3d; }
  .bottom-add-button > span { width: 32px; height: 27px; background: #315f3d; color: white; font-size: 19px; }
  .app-footer { margin-bottom: 3px; }
  html:has(.app-shell:not(.hidden)) { scroll-padding-top: 71px; }
}

@media (max-width: 390px) {
  .header-inner { padding-right: 13px; padding-left: 13px; }
  .main-content { padding-right: 12px; padding-left: 12px; }
  .topbar-actions { gap: 5px; }
  .month-select { max-width: 120px; flex: 0 1 115px; }
  .currency-select { min-width: 76px; flex-basis: 76px; font-size: 10px; }
  .add-top { flex: 0 0 auto; gap: 5px; padding: 0 10px; font-size: 10px; }
}

/* Indigo dashboard theme */
body:has(.app-shell:not(.hidden)) { background: #f5f6fb; }
.app-shell { background: radial-gradient(ellipse at 82% 0%, #efeeff 0, #f5f6fb 36rem, #f5f6fb 100%); }
.app-header { border-bottom-color: #e6e8f1; background: #ffffffed; box-shadow: 0 4px 18px #3534710a; }
.brand-mark { background: #e9e8ff; color: #514dce; }
.header-brand { color: #292b43; }
.header-nav .nav-link { color: #777d95; }
.header-nav .nav-link:hover, .header-nav .nav-link.active { color: #514dce; }
.header-nav .nav-link.active::after { background: #655ff0; }
.nav-link.active { background: #eeedff; color: #514dce; }
.avatar { background: #e9e8ff; color: #514dce; }
.logout-icon { background: #f0efff; color: #5b57d5; }
.main-content { padding-top: 40px; }
.greeting h1 { color: #222640; font-size: 30px; }
.topbar-actions { gap: 8px; }
.month-select, .currency-select { border-color: #e5e7f0; border-radius: 9px; }
.add-top { min-height: 42px; padding-right: 19px; padding-left: 19px; border-radius: 9px; background: #5753d6; box-shadow: 0 5px 12px #5753d62b; }
.add-top:hover { background: #4541b8; box-shadow: 0 7px 16px #5753d638; }
.overview-grid { gap: 17px; }
.summary-card { min-height: 165px; padding: 21px 23px; border-color: #e9eaf2; border-radius: 16px; box-shadow: 0 7px 22px #282d5808; }
.balance-card { background: linear-gradient(128deg, #5551d4 0%, #7069ed 56%, #9384f4 100%); box-shadow: 0 14px 28px #6059dc2e; }
.balance-card .card-topline { color: #e3e1ff; }
.balance-caption { color: #e4e3ff; }
.balance-ornament { color: #dedcff; }
.dot-light { background: #e4ddff; }
.summary-value { color: #262a43; font-size: 30px; }
.balance-card .summary-value { color: #fff; font-size: 33px; }
.income-icon { background: #e8f7f0; color: #178c67; }
.expense-icon { background: #fff0ed; color: #db715e; }
.income-dot { background: #26a47d; }
.expense-dot { background: #e27d6b; }
.charts-grid { gap: 17px; margin-top: 17px; }
.chart-panel, .budget-panel, .insight-panel, .transactions-panel { border-color: #e8eaf2; border-radius: 16px; box-shadow: 0 7px 22px #282d5808; }
.chart-panel { min-height: 310px; padding: 23px 25px 20px; }
.chart-heading h2, .panel-heading h2, .transactions-heading h2 { color: #272b45; font-size: 18px; }
.eyebrow { color: #8d91a8; letter-spacing: 1.35px; }
.chart-subtitle, .panel-description { color: #8c91a5; }
.legend-income { background: #625de1; }
.legend-expense { background: #f0937d; }
.bar-income { background: linear-gradient(180deg, #918af7, #5e59dd); }
.bar-expense { background: linear-gradient(180deg, #ffc1a8, #ed876f); }
.plot-grid i { border-top-color: #eceef5; }
.chart-plot { border-bottom-color: #e7e9f1; }
.category-panel .category-legend-row strong, .donut-total { fill: #343754; color: #343754; }
.donut-track { stroke: #f0f0f7; }
.budget-symbol { background: #eeedff; color: #625de1; }
.progress-track { background: #f0f0f7; }
.progress-fill { background: linear-gradient(90deg, #8b84f1, #5e59dd); }
.progress-fill.over-budget { background: linear-gradient(90deg, #f5aa91, #e27b68); }
.text-button { color: #5753d6; }
.insight-icon { background: #fff3e8; color: #d98a56; }
.insight-copy { color: #686e86; font-size: 12px; }
.insight-spark { color: #a49af5; }
.transactions-panel { padding: 23px 25px 12px; }
.search-wrap, .filter-select { border-color: #e6e8f0; border-radius: 8px; background: #fff; }
.search-wrap:focus-within { border-color: #827cf0; box-shadow: 0 0 0 3px #e6e5ff; }
.button-outline { border-color: #e5e7f0; border-radius: 9px; background: #fff; color: #555b76; }
.transaction-row { min-height: 62px; border-top-color: #eff0f6; }
.transaction-symbol { border-radius: 10px; }
.transaction-symbol.income { background: #e8f7f0; color: #178c67; }
.transaction-symbol.expense { background: #fff0ed; color: #db715e; }
.transaction-title { color: #343850; font-size: 12px; }
.transaction-category, .transaction-date { color: #81869d; }
.transaction-amount { color: #3a3e57; font-size: 13px; }
.transaction-amount.income { color: #188564; }
.row-action:hover { background: #eeedff; color: #514dce; }
.row-action.delete:hover { background: #fff0ed; color: #ca6256; }
.empty-illustration { background: #efeeff; color: #625de1; }
.app-footer { color: #9196aa; }
.app-footer i { color: #625de1; }
.bottom-nav { border-top-color: #e6e8f1; background: #ffffffed; box-shadow: 0 -7px 24px #35347112; }
.bottom-nav-link.active, .bottom-add-button { color: #514dce; }
.bottom-nav-link.active > span { background: #eeedff; }
.bottom-add-button > span { background: #5753d6; box-shadow: 0 4px 10px #5753d632; }
.transaction-dialog { border-color: #e4e5f1; border-radius: 17px; background: #fff; }
.kind-toggle { background: #f0f0f8; }
.kind-option.selected { color: #5753d6; }
.amount-input-wrap { border-color: #e6e8f0; border-radius: 9px; }
.toast { background: #38358a; }
.auth-intro { background: #eeedff; }
.auth-intro::before, .auth-intro::after { border-color: #5753d61a; }
.auth-copy .eyebrow, .auth-foot { color: #76759c; }
.auth-copy h1 { color: #292846; }
.auth-copy h1 em { color: #5b56d4; }
.intro-points { color: #4a496d; }
.point-icon { background: #dedcff; color: #514dce; }
.auth-privacy span { color: #5b56d4; }

@media (min-width: 1450px) {
  .main-content { padding-top: 45px; }
  .summary-card { min-height: 176px; }
  .chart-panel { min-height: 325px; }
}
@media (max-width: 760px) {
  .main-content { padding-top: 25px; }
  .greeting h1 { font-size: 25px; }
  .summary-card { min-height: 145px; padding: 17px; }
  .balance-card { min-height: 139px; }
  .balance-card .summary-value { font-size: 30px; }
  .chart-panel { min-height: 282px; padding: 19px 17px; }
  .transactions-panel { padding: 18px 14px 10px; }
}
@media (max-width: 420px) {
  .topbar-actions { gap: 7px; }
  .month-select { flex: 0 1 115px; max-width: 115px; }
  .currency-select { flex: 0 0 76px; min-width: 76px; }
  .add-top { flex: 0 0 auto; min-height: 38px; padding: 0 10px; font-size: 10px; }
}

/* Readable type and an explicit account menu */
:root {
  --font: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Segoe UI", system-ui, -apple-system, sans-serif;
}
body { font-size: 16px; -webkit-font-smoothing: auto; }
.eyebrow { font-size: 11px; letter-spacing: 1px; }
.button, .auth-tab, .field-label, .field-label input, .field-label select { font-size: 14px; }
.auth-privacy, .form-error { font-size: 13px; }
.auth-copy > p { font-size: 16px; }
.intro-points { font-size: 14px; }
.auth-foot { font-size: 10px; }
.profile-menu-wrap { position: relative; flex: 0 0 auto; margin-left: auto; }
.profile-button { min-height: 44px; margin-left: 0; gap: 11px; border-radius: 10px; }
.profile-button:hover { background: #f7f7fc; }
.profile-copy strong { font-size: 13px; }
.profile-copy small { font-size: 12px; }
.profile-chevron { color: #777d95; font-size: 16px; }
.profile-menu {
  position: absolute;
  z-index: 8;
  top: calc(100% + 9px);
  right: 0;
  width: min(280px, calc(100vw - 24px));
  padding: 14px;
  border: 1px solid #e6e8f1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 32px #282d5820;
}
.profile-menu p { margin: 0 0 12px; color: #777d95; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.profile-menu p strong { color: #343850; font-weight: 600; }
.profile-menu #logout-button {
  width: 100%;
  min-height: 40px;
  border: 1px solid #e6e8f1;
  border-radius: 8px;
  background: #fff;
  color: #a64c4c;
  font-size: 14px;
  font-weight: 600;
}
.profile-menu #logout-button:hover { background: #fff5f4; }
.header-nav .nav-link { font-size: 14px; }
.side-label, .card-topline { font-size: 11px; }
.nav-link, .month-select, .currency-select, .filter-select { font-size: 14px; }
.month-select-label, .currency-select-label { font-size: 11px; }
.card-foot, .metric-foot, .chart-legend, .category-legend-row { font-size: 13px; }
.chart-heading h2, .panel-heading h2, .transactions-heading h2 { font-size: 18px; }
.chart-subtitle, .panel-description, .insight-copy { font-size: 14px; }
.chart-scale, .week-label, .chart-period { font-size: 11px; }
.chart-empty, .category-empty, .category-legend-row strong { font-size: 13px; }
.budget-target, .budget-form > label, .budget-bottom, .text-button, .insight-bottom { font-size: 13px; }
.search-wrap input, .filter-select { font-size: 14px; }
.transaction-title, .transaction-amount { font-size: 14px; }
.transaction-category, .transaction-date { font-size: 13px; }
.app-footer { font-size: 12px; }

@media (max-width: 760px) {
  body:has(.app-shell:not(.hidden)) { padding-bottom: calc(94px + env(safe-area-inset-bottom)); }
  .profile-button { min-width: 44px; justify-content: center; padding: 0; }
  .profile-button .profile-copy { display: none; }
  .profile-button .profile-chevron { display: none; }
  .intro-points { font-size: 12px; }
  .auth-copy > p { font-size: 15px; }
  .auth-foot { font-size: 9px; }
  .bottom-nav { min-height: 78px; padding: 8px 12px calc(9px + env(safe-area-inset-bottom)); }
  .bottom-nav-link, .bottom-add-button { gap: 4px; min-height: 56px; }
  .bottom-nav-link > span, .bottom-add-button > span { width: 34px; height: 30px; font-size: 22px; }
  .bottom-nav-link small, .bottom-add-button small { font-size: 12px; font-weight: 700; }
  .bottom-add-button > span { width: 36px; height: 30px; font-size: 22px; }
  .transaction-amount { font-size: 14px; }
  .filter-select, .transaction-actions .button { font-size: 12px; }
  .app-footer { font-size: 10px; }
}

@media (max-width: 390px) {
  .currency-select, .add-top { font-size: 12px; }
  .currency-select-label { font-size: 10px; }
  .chart-legend { font-size: 11px; }
  .transaction-amount { font-size: 13px; }
  .filter-select, .transaction-actions .button { font-size: 11px; }
}

.profile-menu > a,
.profile-menu > button:not(#logout-button) {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #343850;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
}
.profile-menu > a:hover,
.profile-menu > button:not(#logout-button):hover { background: #f5f5fc; }
.profile-menu .referral-summary { margin: 0 0 4px; font-size: 12px; }
.profile-menu #delete-account-button { color: #a64c4c; }
.profile-menu #delete-account-button:hover { background: #fff5f4; }
.profile-menu #logout-button { margin-top: 6px; }
.profile-button:focus-visible,
.profile-menu button:focus-visible,
.profile-menu a:focus-visible,
.bottom-nav-link:focus-visible,
.bottom-add-button:focus-visible { outline: 3px solid #827cf0; outline-offset: 2px; }
.category-field { display: flex; align-items: center; gap: 8px; }
.category-field select { flex: 1; min-width: 0; }
.category-field .text-button { flex: 0 0 auto; white-space: nowrap; }
.new-category-form { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: end; gap: 8px; margin: -2px 0 12px; }
.new-category-form .field-label { margin: 0; }
.new-category-form .field-label input { min-height: 40px; }
.new-category-form .button { min-height: 40px; padding: 0 10px; }
.new-category-form .text-button { min-height: 40px; }
.new-category-form .form-error { grid-column: 1 / -1; margin: 0; }
.button-danger { background: #b94c4c; color: #fff; }
.button-danger:hover { background: #963b3b; }
.delete-warning { margin: -5px 0 20px; color: #686e86; font-size: 14px; line-height: 1.65; }
.delete-confirm-label { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 18px; color: #50556b; font-size: 13px; line-height: 1.5; }
.delete-confirm-label input { width: 18px; height: 18px; margin: 0; accent-color: #b94c4c; }
.account-delete-dialog .button-danger { min-height: 42px; }

.privacy-page { min-height: 100vh; padding: 32px 20px 56px; background: #f5f6fb; color: #282b43; }
.privacy-header, .privacy-content { width: min(100%, 820px); margin: 0 auto; }
.privacy-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 28px; }
.privacy-header .brand { text-decoration: none; }
.privacy-header a:last-child { color: #514dce; font-size: 14px; font-weight: 600; text-decoration: none; }
.privacy-content { padding: clamp(22px, 5vw, 48px); border: 1px solid #e8eaf2; border-radius: 18px; background: #fff; box-shadow: 0 10px 32px #282d5808; }
.privacy-content h1 { margin: 0 0 8px; font-size: clamp(30px, 5vw, 42px); letter-spacing: -1.5px; }
.privacy-content h2 { margin: 30px 0 8px; font-size: 19px; }
.privacy-content p, .privacy-content li { color: #5d6279; font-size: 15px; line-height: 1.75; }
.privacy-content ul { padding-left: 22px; }
.privacy-updated { margin-top: 0; color: #858aa0 !important; font-size: 13px !important; }
.privacy-content a { color: #514dce; }
@media (max-width: 760px) {
  .new-category-form { grid-template-columns: minmax(0, 1fr) auto; }
  .new-category-form .field-label { grid-column: 1 / -1; }
  .new-category-form .text-button { justify-self: start; }
  .privacy-page { padding: 20px 14px 36px; }
  .privacy-header { margin-bottom: 18px; }
  .privacy-content { border-radius: 14px; }
}

:root {
  --green: #b83280;
  --green-deep: #92245f;
  --mint: #fde7f3;
  --accent: #b83280;
  --accent-dark: #92245f;
  --accent-light: #fde7f3;
}
.brand-mark, .avatar { background: var(--accent-light); color: var(--accent-dark); }
.header-nav .nav-link:hover, .header-nav .nav-link.active,
.nav-link.active, .bottom-nav-link.active, .bottom-add-button { color: var(--accent-dark); }
.header-nav .nav-link.active::after,
.bottom-add-button > span,
.button-dark, .point-icon { background: var(--accent); }
.button-dark:hover, .add-top:hover { background: var(--accent-dark); }
.add-top { background: var(--accent); box-shadow: 0 5px 12px #b832802b; }
.balance-card { background: linear-gradient(128deg, #8f1d58 0%, #b83280 56%, #df5aab 100%); box-shadow: 0 14px 28px #b832802e; }
.balance-card .card-topline, .balance-caption { color: #fde6f3; }
.balance-ornament, .dot-light { color: #f9d5e8; background: #f9d5e8; }
.legend-income { background: var(--accent); }
.bar-income { background: linear-gradient(180deg, #e879b4, var(--accent)); }
.budget-symbol, .bottom-nav-link.active > span, .empty-illustration { background: var(--accent-light); color: var(--accent-dark); }
.progress-fill { background: linear-gradient(90deg, #e879b4, var(--accent)); }
.text-button, .app-footer i, .privacy-header a:last-child, .privacy-content a { color: var(--accent-dark); }
.search-wrap:focus-within { border-color: #d9468f; box-shadow: 0 0 0 3px #fce7f3; }
.row-action { background: #fce7f3; color: #92245f; }
.row-action:hover { background: #f9d5e8; color: #781d4f; }
.row-action.delete { background: #fff0ed; color: #b94c4c; }
.kind-option.selected { color: var(--accent-dark); }
.toast { background: #59143a; }
.auth-intro { background: #fceaf3; }
.auth-intro::before, .auth-intro::after { border-color: #b832801a; }
.auth-copy .eyebrow, .auth-foot { color: #8f5b77; }
.auth-copy h1 { color: #422638; }
.auth-copy h1 em, .auth-privacy span { color: var(--accent-dark); }
.intro-points { color: #604052; }
.point-icon { color: #fff; }
.profile-button:hover .profile-copy strong { color: var(--accent-dark); }
.profile-menu > a:hover, .profile-menu > button:not(#logout-button):hover { background: var(--accent-light); }
.profile-button:focus-visible, .profile-menu button:focus-visible, .profile-menu a:focus-visible,
.bottom-nav-link:focus-visible, .bottom-add-button:focus-visible,
.row-action:focus-visible { outline-color: #d9468f; }
body:has(.app-shell:not(.hidden)) { background: #fbf6fa; }
.app-shell { background: radial-gradient(ellipse at 82% 0%, #fbedf5 0, #fbf6fa 36rem, #fbf6fa 100%); }
.privacy-page { background: #fbf6fa; }
.header-nav .nav-link.active::after { background: var(--accent); }
.nav-link.active { background: var(--accent-light); }
.bottom-nav-link.active > span { background: var(--accent-light); }
.kind-toggle { background: #f9edf4; }
.summary-card, .chart-panel, .budget-panel, .insight-panel, .transactions-panel { border-color: #f0e2eb; }
.plot-grid i { border-top-color: #f3e7ee; }
.chart-plot { border-bottom-color: #f0e2eb; }
.donut-track, .progress-track { stroke: #f8edf3; background: #f8edf3; }
.privacy-header a:last-child:hover, .privacy-content a:hover { color: #781d4f; }

.planner-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 17px; margin-top: 17px; scroll-margin-top: 92px; }
.planner-grid .panel { min-width: 0; padding: 22px; border: 1px solid #f0e2eb; border-radius: 16px; background: #fff; box-shadow: 0 7px 22px #282d5808; }
.planner-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.planner-heading h2 { margin: 5px 0 0; color: #272b45; font-size: 18px; }
.planner-heading .button { min-height: 36px; padding: 0 11px; font-size: 11px; }
.calendar-controls { display: flex; align-items: center; gap: 9px; margin: 20px 0 12px; }
.calendar-controls strong { min-width: 130px; text-align: center; font: 700 14px var(--display); }
.calendar-controls .icon-button { width: 34px; min-height: 34px; }
.calendar-controls #add-reminder-button { min-height: 36px; margin-left: auto; padding: 0 12px; font-size: 11px; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.calendar-weekdays { margin-bottom: 5px; color: #8c91a5; text-align: center; font-size: 10px; font-weight: 700; }
.calendar-weekdays span { padding: 6px 0; }
.calendar-day { position: relative; display: grid; min-width: 0; min-height: 42px; place-items: center; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #42465f; font-size: 12px; }
.calendar-day:hover { background: #fdf2f8; }
.calendar-day.today { border-color: #e8a4c7; color: #92245f; font-weight: 800; }
.calendar-day.selected { background: var(--accent); color: #fff; font-weight: 700; }
.calendar-day.has-events::after { position: absolute; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: #c33a82; content: ""; }
.calendar-day.selected.has-events::after { background: #fff; }
.calendar-day-spacer { min-height: 42px; }
.calendar-day-events { margin-top: 18px; padding-top: 14px; border-top: 1px solid #f0e2eb; }
.calendar-day-events h3 { margin: 0 0 8px; color: #42465f; font-size: 13px; }
.calendar-event, .recurring-row { display: flex; align-items: center; gap: 9px; padding: 10px 0; border-top: 1px solid #f5edf2; }
.calendar-event:first-child, .recurring-row:first-child { border-top: 0; }
.event-kind { flex: 0 0 auto; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: #fce7f3; color: #92245f; font-size: 14px; font-weight: 700; }
.event-kind.receive { background: #e8f7f0; color: #188564; }
.event-copy, .recurring-copy { display: grid; min-width: 0; flex: 1; gap: 3px; }
.event-copy strong, .recurring-copy strong { overflow: hidden; color: #343850; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.event-copy small, .recurring-copy small { color: #858aa0; font-size: 10px; }
.event-amount { color: #484c65; font-size: 11px; font-weight: 700; white-space: nowrap; }
.event-actions { display: flex; gap: 5px; }
.event-actions button, .recurring-remove { display: grid; width: 30px; height: 30px; place-items: center; border: 0; border-radius: 8px; background: #f6f3f5; color: #77768a; font-size: 14px; }
.event-actions button:hover, .recurring-remove:hover { background: #fce7f3; color: #92245f; }
.event-actions .event-complete { background: #e8f7f0; color: #188564; }
.event-empty, .planner-empty { margin: 9px 0 0; color: #858aa0; font-size: 12px; line-height: 1.6; }
.recurring-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: #fce7f3; color: #92245f; font-size: 19px; }
.recurring-panel .panel-description { margin: 10px 0 15px; font-size: 11px; line-height: 1.6; }
.forecast-card { display: grid; gap: 5px; padding: 15px; border: 1px solid #f5dfeb; border-radius: 12px; background: linear-gradient(135deg, #fff8fc, #fdf0f7); }
.forecast-card span { color: #8f5b77; font-size: 9px; font-weight: 800; letter-spacing: 1.2px; }
.forecast-card strong { color: #672141; font: 700 24px var(--display); }
.forecast-card small { color: #8f6c7f; font-size: 10px; }
.recurring-list { margin-top: 13px; }
.recurring-remove { flex: 0 0 auto; color: #a64c4c; }
.recurring-toggle { display: flex; align-items: flex-start; gap: 10px; margin: -1px 0 14px; padding: 12px; border: 1px solid #f0e2eb; border-radius: 10px; background: #fff8fc; cursor: pointer; }
.recurring-toggle input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--accent); }
.recurring-toggle span { display: grid; gap: 3px; }
.recurring-toggle strong { color: #343850; font-size: 12px; }
.recurring-toggle small, .reminder-notice { color: #858aa0; font-size: 10px; line-height: 1.5; }
.reminder-notice { margin: -3px 0 10px; }
@media (max-width: 760px) {
  .planner-grid { grid-template-columns: 1fr; gap: 9px; margin-top: 9px; scroll-margin-top: 72px; }
  .planner-grid .panel { padding: 17px; }
  .calendar-day, .calendar-day-spacer { min-height: 40px; }
  .bottom-nav { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 390px) {
  .planner-grid .panel { padding: 13px; }
  .calendar-day, .calendar-day-spacer { min-height: 36px; }
  .calendar-controls { gap: 5px; }
  .calendar-controls strong { min-width: 104px; font-size: 12px; }
  .calendar-controls #add-reminder-button { padding: 0 8px; }
}

.calendar-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.calendar-controls #calendar-month-label { min-width: 120px; font-size: 16px; }
.calendar-controls #calendar-today { min-height: 36px; padding: 0 12px; }
.calendar-summary { min-height: 18px; margin: 0 0 10px; color: #77768a; font-size: 12px; font-weight: 600; }
.calendar-weekdays, .calendar-grid { gap: 6px; }
.calendar-weekdays { color: #696d82; font-size: 12px; }
.calendar-day, .calendar-day-spacer { min-height: 58px; }
.calendar-day-spacer { display: block; }
.calendar-day {
  display: grid;
  grid-template-rows: 21px 14px;
  align-content: center;
  justify-items: center;
  gap: 4px;
  border-color: #f0eaf0;
  background: #fff;
  font-size: 14px;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.calendar-day:hover { border-color: #e7aacb; background: #fff7fb; }
.calendar-day.today { border-color: #d65b9c; background: #fff7fb; color: #92245f; box-shadow: inset 0 0 0 1px #d65b9c; }
.calendar-day.selected { border-color: var(--accent); background: var(--accent); color: #fff; box-shadow: 0 3px 9px #b8328030; }
.calendar-day-number { display: grid; place-items: center; }
.calendar-day.has-events::after { content: none; }
.calendar-day-indicators { display: flex; align-items: center; justify-content: center; gap: 3px; min-height: 10px; color: inherit; }
.calendar-day-indicators small { font-size: 8px; font-weight: 700; line-height: 1; }
.calendar-indicator { width: 6px; height: 6px; border-radius: 50%; background: #cf478f; }
.calendar-indicator.pay { background: #df765f; }
.calendar-indicator.receive { background: #299673; }
.calendar-indicator.projected { background: #a45cbd; }
.calendar-day.selected .calendar-indicator { background: #fff; }
.calendar-day.selected .calendar-day-indicators small { color: #fff; }
.calendar-day-events { margin-top: 16px; }
@media (max-width: 760px) {
  .calendar-controls { gap: 6px; }
  .calendar-controls #calendar-month-label { min-width: 105px; font-size: 14px; }
  .calendar-controls #calendar-today { min-height: 34px; padding: 0 10px; font-size: 12px; }
  .calendar-controls #add-reminder-button { min-height: 38px; }
  .calendar-day, .calendar-day-spacer { min-height: 48px; }
  .calendar-day { grid-template-rows: 18px 12px; gap: 3px; border-radius: 8px; font-size: 13px; }
  .calendar-weekdays, .calendar-grid { gap: 4px; }
  .calendar-weekdays { font-size: 11px; }
  .calendar-summary { font-size: 11px; }
}
@media (max-width: 390px) {
  .calendar-controls #calendar-month-label { min-width: 98px; }
  .calendar-controls .icon-button { width: 30px; min-height: 34px; }
  .calendar-controls #calendar-today { padding: 0 8px; }
  .calendar-controls #add-reminder-button { margin-left: 0; padding: 0 9px; }
  .calendar-day, .calendar-day-spacer { min-height: 44px; }
  .calendar-day-indicators { gap: 2px; }
  .calendar-indicator { width: 5px; height: 5px; }
  .calendar-day-indicators small { font-size: 7px; }
}

/* Refreshed finance visual system */
:root {
  color-scheme: light;
  --paper: #f3f5f0;
  --white: #fff;
  --ink: #1d2923;
  --muted: #748078;
  --line: #e4e9e2;
  --green: #187b56;
  --green-deep: #105d40;
  --mint: #e7f2eb;
  --accent: #187b56;
  --accent-dark: #105d40;
  --accent-light: #e7f2eb;
  --income: #16835d;
  --income-soft: #e8f4ec;
  --expense: #d7655b;
  --expense-soft: #fff0ed;
}

body { background: var(--paper); color: var(--ink); }
body:has(.app-shell:not(.hidden)) { background: #f3f5f0; }
.app-shell { background: radial-gradient(ellipse at 82% 0, #eaf1e9 0, #f3f5f0 38rem, #f3f5f0 100%); }
.brand-mark { background: #e2efe5; color: var(--accent-dark); }
.app-header { border-bottom-color: #e3e9e1; background: #ffffffed; box-shadow: 0 4px 18px #1d29230a; }
.header-brand { color: #1d2923; }
.header-nav .nav-link { color: #6f7a72; }
.header-nav .nav-link:hover, .header-nav .nav-link.active { color: var(--accent-dark); }
.header-nav .nav-link.active::after { background: var(--accent); }
.profile-button:hover .profile-copy strong { color: var(--accent-dark); }
.avatar { background: var(--accent-light); color: var(--accent-dark); }
.main-content { max-width: 1480px; }
.greeting h1 { color: #1d2923; }
.eyebrow { color: #758179; }
.button-dark, .point-icon { background: var(--accent); color: #fff; }
.button-dark:hover, .add-top:hover { background: var(--accent-dark); }
.add-top { border-radius: 11px; background: var(--accent); box-shadow: 0 5px 13px #187b5628; }
.button-outline { border-color: #dfe6de; background: #fff; color: #435149; }
.button-outline:hover { border-color: #bfd2c2; background: #f7faf6; }
.button:focus-visible, .text-button:focus-visible, .icon-button:focus-visible,
.nav-link:focus-visible, .profile-button:focus-visible, .row-action:focus-visible,
.profile-menu button:focus-visible, .profile-menu a:focus-visible,
.bottom-nav-link:focus-visible, .bottom-add-button:focus-visible {
  outline: 3px solid #82ab8d;
  outline-offset: 3px;
}

.summary-card, .panel {
  border: 1px solid #e4e9e2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 5px 18px #1d292309;
}
.summary-card { min-height: 162px; padding: 21px 23px; }
.summary-card:hover { box-shadow: 0 10px 24px #1d292312; }
.balance-card {
  position: relative;
  isolation: isolate;
  border: 0;
  overflow: hidden;
  background: linear-gradient(118deg, #173b2d 0%, #20583f 62%, #286849 100%);
  box-shadow: 0 12px 28px #173b2d28;
}
.balance-card::before, .balance-card::after {
  position: absolute;
  z-index: -1;
  border: 1px solid #d5f1d524;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.balance-card::before {
  top: -112px;
  right: -56px;
  width: 270px;
  height: 270px;
  box-shadow: 0 0 0 24px #d5f1d50a, 0 0 0 50px #d5f1d508;
}
.balance-card::after {
  top: -68px;
  right: -12px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle at 35% 68%, #b8e86c28, transparent 62%);
}
.balance-card .card-topline { color: #c1d6c8; }
.balance-card .summary-value { margin-top: 20px; font-size: clamp(30px, 3vw, 38px); letter-spacing: -1.5px; }
.balance-caption { color: #c7d8cd; }
.balance-ornament { background: transparent; color: #c8ec86; font-size: 22px; }
.dot-light { background: #c8ec86; box-shadow: 0 0 0 4px #c8ec8624; }
.summary-card:not(.balance-card) .summary-value { color: #202b25; }
.summary-card:has(.income-icon) .metric-icon { background: var(--income-soft); color: var(--income); }
.summary-card:has(.expense-icon) .metric-icon { background: var(--expense-soft); color: var(--expense); }
.income-dot { background: var(--income); }
.expense-dot { background: var(--expense); }
.card-topline { color: #77827a; font-size: 10px; }
.metric-foot, .card-foot { font-size: 12px; }

.charts-grid { gap: 16px; margin-top: 16px; }
.chart-panel { min-height: 300px; padding: 22px 23px 20px; }
.chart-heading h2, .panel-heading h2, .transactions-heading h2, .planner-heading h2 { color: #202b25; }
.chart-subtitle, .panel-description { color: #77827a; }
.chart-legend { color: #59665e; }
.legend-income, .bar-income { background: var(--income); }
.legend-expense { background: var(--expense); }
.bar-income { background: linear-gradient(180deg, #57af83, #187b56); }
.bar-expense { background: linear-gradient(180deg, #ef9a84, #d7655b); }
.plot-grid i { border-top-color: #e9eee8; }
.chart-plot { border-bottom-color: #dfe7df; }
.chart-scale, .week-label, .chart-period { color: #7d8981; }
.chart-empty { border-color: #dfe7df; color: #718078; }
.donut-track, .progress-track { stroke: #e9eee8; background: #e9eee8; }
.donut-segment { stroke-linecap: round; }
.donut-total { fill: #202b25; }
.donut-caption { fill: #77827a; }
.category-legend-row { color: #56635b; }
.category-legend-row strong { color: #26342c; }
.category-empty { color: #758078; }

.content-grid { gap: 16px; margin-top: 16px; }
.budget-panel, .insight-panel { min-height: 205px; padding: 22px 23px; }
.budget-symbol, .insight-icon, .recurring-icon {
  border-radius: 11px;
  background: #e7f2eb;
  color: #187b56;
}
.insight-icon { background: #f4f0e2; color: #a77a31; }
.budget-spent { color: #26342c; }
.budget-target { color: #7b867e; }
.progress-track { overflow: hidden; border-radius: 999px; }
.progress-fill { border-radius: inherit; background: linear-gradient(90deg, #55ac7f, #187b56); }
.text-button, .app-footer i, .privacy-header a:last-child, .privacy-content a { color: var(--accent-dark); }
.text-button:hover, .privacy-header a:last-child:hover, .privacy-content a:hover { color: #0b4932; }
.insight-copy { color: #56635b; }
.insight-bottom { color: #7b867e; }
.insight-spark { color: #9bab79; }

.planner-grid { gap: 16px; margin-top: 16px; }
.planner-grid .panel { padding: 22px 23px; border-color: #e4e9e2; border-radius: 18px; box-shadow: 0 5px 18px #1d292309; }
.calendar-summary { color: #65736a; }
.calendar-weekdays { color: #66746b; }
.calendar-day { border-color: #e6ebe5; color: #344239; }
.calendar-day:hover { border-color: #a9cdb5; background: #f4f9f4; }
.calendar-day.today { border-color: #4a9b69; background: #f0f8f1; color: #17613f; box-shadow: inset 0 0 0 1px #4a9b69; }
.calendar-day.selected { border-color: #187b56; background: #187b56; color: #fff; box-shadow: 0 3px 9px #187b562d; }
.calendar-indicator { background: #187b56; }
.calendar-indicator.pay { background: #d7655b; }
.calendar-indicator.receive { background: #16835d; }
.calendar-indicator.projected { background: #7f74ad; }
.calendar-event, .recurring-row { border-top-color: #edf0ec; }
.event-kind { background: #fff0ed; color: #c6534a; }
.event-kind.receive { background: #e8f4ec; color: #16794f; }
.event-copy strong, .recurring-copy strong, .calendar-day-events h3 { color: #25342b; }
.event-copy small, .recurring-copy small, .event-empty, .planner-empty { color: #748078; }
.event-amount { color: #35433a; }
.event-actions button, .recurring-remove { background: #f0f3ef; color: #65736a; }
.event-actions button:hover, .recurring-remove:hover { background: #e7f2eb; color: #105d40; }
.event-actions .event-complete { background: #e7f2eb; color: #16835d; }
.forecast-card { border-color: #e1ece2; background: linear-gradient(135deg, #f6faf5, #eaf4eb); }
.forecast-card span { color: #54755e; }
.forecast-card strong { color: #1e5238; }
.forecast-card small { color: #718078; }
.recurring-toggle { border-color: #e1e9e1; background: #f7faf6; }
.recurring-toggle input { accent-color: var(--accent); }
.recurring-toggle strong { color: #25342b; }
.recurring-toggle small, .reminder-notice { color: #738078; }

.transactions-panel { margin-top: 16px; padding: 22px 23px 12px; }
.transactions-heading { margin-bottom: 16px; }
.search-wrap { border-color: #e1e7df; background: #fff; }
.search-wrap:focus-within { border-color: #6b9d79; box-shadow: 0 0 0 3px #e5f0e7; }
.search-wrap input { color: #25342b; }
.search-wrap input::placeholder { color: #98a29b; }
.filter-select { border-color: #e1e7df; color: #435149; }
.transaction-row { min-height: 64px; border-top-color: #edf0ec; }
.transaction-main { gap: 12px; }
.transaction-symbol { width: 38px; height: 38px; border-radius: 12px; background: #eef2ed; color: #65736a; }
.transaction-symbol.income { background: var(--income-soft); color: var(--income); }
.transaction-symbol.expense { background: var(--expense-soft); color: var(--expense); }
.transaction-title { color: #25342b; }
.transaction-note, .transaction-category, .transaction-date { color: #77827a; }
.transaction-amount.income { color: var(--income); }
.transaction-amount.expense { color: var(--expense); }
.row-action { border-radius: 9px; background: #e7f2eb; color: #176b49; }
.row-action:hover { background: #dcecdf; color: #105d40; }
.row-action.delete { background: #fff0ed; color: #c6534a; }
.row-action.delete:hover { background: #ffe2dc; color: #a94038; }
.empty-illustration { background: #e7f2eb; color: #176b49; }
.empty-state p { color: #77827a; }
.app-footer { color: #7a867d; }
.app-footer span:last-child { color: #758078; }

.profile-menu { border-color: #e3e9e2; box-shadow: 0 14px 36px #1d29231c; }
.profile-menu p { color: #68756d; }
.profile-menu p strong { color: #25342b; }
.profile-menu > a, .profile-menu > button:not(#logout-button) { color: #344239; }
.profile-menu > a:hover, .profile-menu > button:not(#logout-button):hover { background: #edf5ee; }
.profile-menu #logout-button { border-color: #e2e8e1; }
.profile-menu #logout-button:hover { background: #fff2f0; }
.profile-menu #delete-account-button { color: #bf4e46; }

.transaction-dialog { border-color: #e1e8e0; border-radius: 20px; background: #fff; }
.dialog-heading h2 { color: #202b25; }
.kind-toggle { background: #f0f4ef; }
.kind-option { color: #738078; }
.kind-option.selected { background: #fff; color: #176b49; box-shadow: 0 2px 6px #1d29230e; }
.kind-option[data-kind="income"].selected { color: var(--income); }
.field-label { color: #425047; }
.field-label input, .field-label select { border-color: #dfe6de; color: #27352d; }
.field-label input:focus, .field-label select:focus { border-color: #6b9d79; box-shadow: 0 0 0 3px #e5f0e7; }
.field-label input::placeholder { color: #9ba59e; }
.toast { background: #173b2d; }

.auth-intro { background: linear-gradient(145deg, #e7f0e6, #f2f5ee 68%, #e4ede3); }
.auth-intro::before, .auth-intro::after { border-color: #28734818; }
.auth-copy .eyebrow, .auth-foot { color: #57745e; }
.auth-copy h1 { color: #203d2c; }
.auth-copy h1 em, .auth-privacy span { color: var(--accent-dark); }
.intro-points { color: #3e5545; }
.point-icon { border-radius: 9px; background: var(--accent); color: #fff; }
.auth-panel { background: #fbfcf9; }
.auth-tabs { background: #edf2eb; }
.auth-tab { color: #718078; }
.auth-tab.active { color: #25342b; }
.auth-privacy { color: #738078; }
.auth-privacy a { color: var(--accent-dark); }
.auth-privacy a:hover { color: #0b4932; }
.privacy-page { background: #f3f5f0; color: #25342b; }
.privacy-content { border-color: #e2e8e0; box-shadow: 0 10px 32px #1d292309; }
.privacy-content h1, .privacy-content h2 { color: #202b25; }
.privacy-content p, .privacy-content li { color: #56635b; }
.privacy-updated { color: #77827a !important; }
.delete-confirm-label { color: #425047; }
.toast { box-shadow: 0 8px 24px #14281c2b; }

@media (max-width: 760px) {
  .summary-card { min-height: 126px; padding: 17px; }
  .balance-card { min-height: 142px; }
  .balance-card .summary-value { font-size: 32px; }
  .summary-card:not(.balance-card) .summary-value { color: #202b25; }
  .chart-panel, .budget-panel, .insight-panel, .transactions-panel { border-radius: 16px; }
  .planner-grid .panel { border-radius: 16px; }
  .bottom-nav {
    border-top-color: #e0e7df;
    background: #ffffffed;
    box-shadow: 0 -8px 24px #1d29230e;
  }
  .bottom-nav-link, .bottom-add-button { color: #77827a; }
  .bottom-nav-link.active { color: #105d40; }
  .bottom-nav-link.active > span { background: #e7f2eb; color: #105d40; }
  .bottom-add-button > span { background: var(--accent); color: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
