/* Dinero Diario 2026: calm surfaces, clear hierarchy, direct controls. */
:root {
  --paper:#f4f6f4;--white:#fff;--sidebar:#fdfefd;--ink:#20352d;
  --muted:#65766d;--faint:#78887f;--line:#dde6df;--line-subtle:#eaf0eb;
  --forest:#246f52;--forest-dark:#18553d;--action:#216f50;--action-hover:#18563e;
  --on-action:#fff;--sage:#e5f2e9;--sage-hover:#d9ebdf;--surface-subtle:#edf3ee;
  --surface-hover:#eff5f0;--section:transparent;--income:#267650;--expense:#bd574d;
  --red:#bd574d;--red-bg:#faece8;--blue:#507b73;--field-border:#d4dfd7;
  --key-bg:#eef2ee;--key-alt:#e0e9e2;--key-operator:#dbeee0;
  --chart-income:#4c9771;--chart-expense:#dc9380;--track:#e3ebe5;
  --nav-glass:#ffffffec;--radius:22px;--shadow:0 4px 22px #24452d05;
  --notice-bg:#e9f1e8;--notice-text:#49634e;--focus:#4f9670;
  --toast-bg:#213d30;--toast-text:#fff;
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  -webkit-font-smoothing:antialiased;
}
:root[data-theme=dark] {
  --paper:#101917;--white:#192420;--sidebar:#14201b;--ink:#ebf2ed;
  --muted:#a4b5aa;--faint:#90a397;--line:#314239;--line-subtle:#283a30;
  --forest:#a7d7b5;--forest-dark:#c2e6cb;--action:#addabd;--action-hover:#c3e7ce;
  --on-action:#183c29;--sage:#293f32;--sage-hover:#344e3e;--surface-subtle:#22342a;
  --surface-hover:#24392d;--section:transparent;--income:#a7d7b5;--expense:#eea594;
  --red:#eea594;--red-bg:#3d2d28;--blue:#a5c9be;--field-border:#3c5244;
  --key-bg:#24352b;--key-alt:#30483a;--key-operator:#3c5947;
  --chart-income:#9bccaa;--chart-expense:#e3a38f;--track:#304438;
  --nav-glass:#1a2a21ed;--notice-bg:#26392c;--notice-text:#bfd3bf;
  --shadow:0 6px 24px #0000000b;--focus:#addabd;--backdrop:#07120de0;
  --toast-bg:#d4e8d9;--toast-text:#1b3526;
}
button,input,select,textarea{transition:background .16s,color .16s,border-color .16s;}
button{touch-action:manipulation}button:disabled{cursor:default}
.btn{border-radius:14px;min-height:44px;font-weight:650;box-shadow:none}
.icon-btn{width:42px;height:42px;border-radius:14px;background:var(--surface-subtle);color:var(--forest)}
.icon-btn:hover{background:var(--sage-hover)}
.panel{border-radius:22px;border-color:var(--line-subtle);box-shadow:var(--shadow)}
.page-shell{grid-template-columns:228px minmax(0,1fr)}
.sidebar{width:228px;background:var(--sidebar);border-color:var(--line-subtle);padding:30px 18px 24px}
.brand{padding:0 12px}.brand img{width:42px;height:42px;border-radius:13px}
.brand-text{font-size:18px}.brand-text span{letter-spacing:1.6px;font-size:10px}
.nav{margin-top:30px;gap:8px}.nav-btn{border-radius:15px;min-height:48px;font-size:13px}
.nav-btn.active{background:var(--sage);color:var(--forest);font-weight:650}
.nav-btn.active:after{background:var(--forest);width:5px;height:5px}
.sidebar-note{background:transparent;border:1px solid var(--line);font-size:11px}
.sidebar .profile-selector{margin-top:30px}
.main{padding:25px 42px 60px;max-width:1440px}
.topbar{padding-bottom:32px}.topbar-actions{gap:10px}
.topbar .btn{border-radius:14px}.breadcrumb{font-size:12px}
.classic-balance,.classic-today,.classic-reports-menu,.classic-report-detail,.account-ledger{max-width:860px}
.classic-pagebar{border:0;min-height:54px;gap:12px;margin:0 0 6px;padding:0}
.classic-pagebar h1{font-size:30px;font-weight:700;letter-spacing:-1px;text-align:left;order:-1;flex:1;white-space:normal}
.classic-pagebar .pagebar-side{min-width:0;flex:0;gap:8px}
.classic-pagebar .pagebar-side .icon-btn{width:42px;height:42px;color:var(--forest)}
.classic-pagebar .pagebar-side .text-btn{font-size:13px;font-weight:600;background:var(--surface-subtle);border-radius:14px;min-height:42px;padding:9px 14px;color:var(--forest)}
.account-ledger .classic-pagebar h1,.classic-report-detail .classic-pagebar h1{order:0;font-size:22px;letter-spacing:-.6px}
.screen-intro{font-size:13px;color:var(--muted);margin:4px 0 22px;line-height:1.6}
.workspace-caption{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 18px}
.workspace-caption>span{font-size:10px;font-weight:750;letter-spacing:2px;color:var(--muted)}
.profile-chip{display:inline-flex;gap:7px;align-items:center;border:1px solid var(--line);background:var(--white);color:var(--ink);border-radius:24px;min-height:36px;padding:8px 11px;font-size:12px;font-weight:550}
.profile-chip svg{width:14px;height:14px}.profile-chip svg:last-child{width:12px}
.classic-daybar{border:0;padding:0 0 20px;min-height:80px;gap:8px}
.today-date-button{gap:13px}.today-date-button .day-number{font-size:49px;font-weight:650;letter-spacing:-2px;color:var(--forest);background:var(--sage);border-radius:18px;padding:10px 12px;min-width:78px;text-align:center}
.today-date-button strong{font-size:20px;font-weight:650;letter-spacing:-.5px}
.today-date-button small{font-size:13px;color:var(--muted);margin-top:5px}
.today-add{border:0;background:var(--action);color:var(--on-action);border-radius:17px;width:46px;height:46px;box-shadow:0 4px 12px #1d4c2f10}
.today-add svg{width:25px;height:25px}
.classic-daybar>.flex{gap:8px}.classic-daybar>.flex>.icon-btn{display:grid}
.classic-today .today-view-options{gap:4px;padding:5px;background:var(--surface-subtle);border-radius:16px;margin:0 0 18px;flex-wrap:wrap;width:fit-content;max-width:100%}
.today-view-options .text-btn{padding:10px 18px;border-radius:12px;font-size:12px;font-weight:600;min-height:38px;color:var(--muted)}
.today-view-options .text-btn.active{background:var(--white);color:var(--forest);box-shadow:0 2px 6px #172e2010}
.classic-transaction{border:1px solid var(--line-subtle);border-radius:18px;margin:0 0 8px;padding:14px;background:var(--white);min-height:78px;gap:13px;box-shadow:var(--shadow)}
.classic-transaction:hover{background:var(--surface-hover);border-color:var(--line)}
.ledger-line-icon,.account-line-icon{width:42px;height:42px;border-radius:14px;background:var(--sage);color:var(--forest);flex-shrink:0}
.ledger-line-icon svg,.account-line-icon svg{width:22px;height:22px;stroke-width:1.7}
.ledger-line-icon.expense{background:var(--red-bg);color:var(--red)}
.ledger-line-icon.neutral{background:var(--surface-subtle);color:var(--muted)}
.classic-tx-copy strong{font-size:14px;font-weight:600;letter-spacing:-.2px;line-height:1.5}
.classic-tx-copy small{font-size:11px;color:var(--muted);margin-top:4px}
.classic-tx-values{min-width:0;max-width:45%;gap:6px}
.amount-badge,.amount-badge.expense,.amount-badge.income,.amount-badge.neutral{background:transparent;padding:0;border-radius:0;font-size:14px;font-weight:650;letter-spacing:-.35px}
.amount-badge.expense{color:var(--red)}.amount-badge.income{color:var(--forest)}.amount-badge.neutral{color:var(--ink)}
.running-balance{font-size:10px;color:var(--ink)}
.period-bar{background:var(--white);border:1px solid var(--line);border-radius:18px;padding:6px;gap:4px;min-height:64px;margin:16px 0}
.period-bar label{background:transparent;border-radius:12px;padding:6px 10px;min-width:0}
.period-bar label+label{border-left:1px solid var(--line-subtle);border-radius:0}
.period-bar label span{font-size:10px;color:var(--muted);font-weight:500;margin-bottom:4px}
.period-bar input{font-weight:600;font-size:13px}
.period-bar .icon-btn{background:var(--surface-subtle);border-radius:12px;min-height:46px;width:40px}
.period-shortcuts button{border:1px solid var(--line-subtle);border-radius:14px;background:var(--surface-subtle);padding:14px;margin-bottom:8px}
.ledger-footer{font-size:11px;color:var(--muted);padding:10px 2px}.ledger-footer .icon-btn{width:36px;height:36px}
.classic-empty{min-height:140px;border:0;background:transparent;border-radius:0;box-shadow:none;gap:10px;margin:0;padding:24px;text-align:center;color:var(--muted)}
.classic-empty:before{content:none;display:none}
.classic-empty p{font-size:14px;font-weight:400;margin:0;opacity:.8}.classic-empty small{font-size:12px;line-height:1.5}.classic-empty .text-btn{background:transparent;padding:8px 12px;border:0;border-radius:0;min-height:44px;color:var(--forest);font-size:12px;text-decoration:underline;text-underline-offset:3px}
.balance-currency{margin:-6px 0 12px}.balance-currency .currency-picker{background:var(--white);border:1px solid var(--line);padding:8px 12px;border-radius:12px;font-size:12px;color:var(--ink)}
.balance-bars{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0 0 18px}
.balance-bar{padding:20px;min-height:106px;border-radius:21px;overflow:hidden;background:var(--sage)!important;display:flex;flex-direction:column;gap:12px;justify-content:center;white-space:normal;border:1px solid var(--line-subtle)}
.balance-bar.expense{background:var(--white)!important}
.balance-bar:before{display:none}.balance-bar span{display:block;color:var(--muted);font-size:11px;font-weight:500}
.balance-bar strong,.balance-bar.income strong,.balance-bar.expense strong{font-size:clamp(16px,2.4vw,26px);font-weight:650;letter-spacing:-.7px;color:var(--forest);text-shadow:none;white-space:normal;overflow-wrap:anywhere}
.balance-bar.expense strong{color:var(--red)}
.classic-account-group{background:var(--white);border:1px solid var(--line-subtle);border-radius:21px;overflow:hidden;margin:18px 0;box-shadow:var(--shadow)}
.classic-account-group>h2{background:transparent;padding:17px 18px 11px;font-size:10px;font-weight:650;letter-spacing:1px;color:var(--muted);line-height:1.5}
.classic-account-group>h2>strong{font-size:11px;letter-spacing:-.15px;font-weight:550;color:var(--muted)}
.classic-account{margin:0 16px;min-height:77px;border-color:var(--line-subtle)}
.classic-account-main{padding:13px 0;gap:13px;min-height:74px}
.classic-account-main strong{font-size:14px;font-weight:600;letter-spacing:-.2px;line-height:1.4}
.classic-account-main small{font-size:16px;font-weight:500;letter-spacing:-.3px;margin-top:5px}
.classic-account-main small.balance-unverified{font-size:11px;letter-spacing:0;color:var(--muted)}
.account-edit-actions{gap:4px}.account-edit-actions .icon-btn{width:30px;height:36px;border-radius:10px}
.ledger-reconcile-hint{font-size:11px;line-height:1.6;color:var(--muted);padding:0 3px}
.archived-accounts{background:var(--surface-subtle);border-radius:20px;padding:0 15px;margin-top:20px}
.archived-accounts>summary{font-size:12px;font-weight:550;border:0;padding:17px 2px}
.classic-today .calendar-panel{background:var(--white);padding:15px;border:1px solid var(--line-subtle);border-radius:22px;margin:0 0 18px;box-shadow:var(--shadow)}
.classic-today .calendar-grid{gap:6px;margin-top:12px}
.classic-today .calendar-weekday{font-size:10px;color:var(--muted);font-weight:600}
.classic-today .calendar-day{border-radius:13px;min-height:44px}.classic-today .calendar-day span{font-size:13px}
.classic-today .calendar-day.selected{background:var(--action);border-color:var(--action);color:var(--on-action)}
.classic-today .calendar-day.today{background:var(--sage);color:var(--forest)}
.classic-today .calendar-dot.paid{background:var(--forest);width:4px;height:4px}.classic-today .calendar-day.selected .calendar-dot{background:var(--on-action)}
.report-menu{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:22px}
.report-menu button{display:flex;align-items:center;gap:14px;background:var(--white);border:1px solid var(--line-subtle);border-radius:21px;min-height:104px;padding:20px;color:var(--ink);text-align:left;box-shadow:var(--shadow)}
.report-menu button>span{flex:1;min-width:0;font-size:14px;font-weight:600}
.report-menu small{display:block;font-size:11px;font-weight:400;color:var(--muted);line-height:1.5;margin-top:6px}
.report-menu button>svg{width:16px;color:var(--faint)}
.report-tile-icon{width:44px;height:44px;background:var(--sage);border-radius:15px;display:grid;place-items:center;color:var(--forest);flex-shrink:0}
.report-tile-icon svg{width:23px;height:23px}.report-menu button:nth-child(3n+2) .report-tile-icon{background:var(--surface-subtle);color:var(--blue)}
.report-menu button:hover{border-color:var(--field-border);background:var(--surface-hover)}
.classic-report-detail .report-legend,.report-totals,.report-big-value,.snapshot-rows,.category-report-rows{background:var(--white);border:1px solid var(--line-subtle);border-radius:21px;padding:16px}
.comparison-ring{background:conic-gradient(var(--chart-income) 0 var(--income-percent),var(--chart-expense) var(--income-percent) 100%);max-width:300px;margin:28px auto}
.comparison-ring:before{inset:14%;background:var(--paper)}.comparison-ring>div{inset:19%;background:transparent;border:0;gap:8px}.comparison-ring strong{font-weight:650;font-size:16px}.comparison-ring span{font-size:10px;text-transform:none;color:var(--muted)}
.report-legend .income{background:var(--chart-income)}.report-legend .expense{background:var(--chart-expense)}.report-legend i{width:9px;height:9px;border-radius:50%}.report-legend strong{font-size:13px}.report-legend span{font-size:13px}.report-note{color:var(--muted);line-height:1.7;font-size:11px}
.snapshot-rows>div{padding:14px 0}.snapshot-rows>div:last-child{border:0}.daily-summary{padding:16px;background:var(--surface-subtle);border-radius:18px;margin-top:12px}.daily-summary summary{font-size:11px}
.category-picker-dialog,.transaction-composer{background:var(--paper)}
.composer-header{background:var(--paper);border-bottom:1px solid var(--line-subtle);padding:13px 20px;min-height:66px}
.composer-header>button{font-size:13px!important;color:var(--muted);min-height:40px}
.composer-header .composer-save{background:var(--action);color:var(--on-action);border-radius:13px;text-align:center;width:79px;padding:10px}
.composer-header h2,.composer-header select{font-size:15px;font-weight:600}
.classic-category-grid{gap:15px 9px;padding:20px 14px 30px}
.category-choice{background:var(--white);border:1px solid var(--line-subtle);border-radius:18px;padding:14px 5px;gap:9px;min-height:110px;justify-content:flex-start}
.category-choice>span{width:43px;height:43px;border:0;border-radius:14px;background:var(--sage);color:var(--forest)}
.category-choice>span svg{width:25px;height:25px;stroke-width:1.65}.category-choice strong{font-size:10.5px;font-weight:550;letter-spacing:0;line-height:1.45}
.category-choice:hover,.category-choice:focus-visible{background:var(--surface-hover);border-color:var(--forest)}
.category-choice:hover>span,.category-choice:focus-visible>span{color:var(--forest)}
.category-picker-header .search-box{background:var(--white);border:1px solid var(--line);border-radius:14px}
.composer-fields{padding:12px 20px 8px}.composer-account,.composer-category{min-height:58px;border-color:var(--line-subtle)}
.composer-account select{font-size:14px}.composer-category{font-size:14px}.composer-category>span svg{width:22px;height:22px;color:var(--forest)}
.composer-amount{margin:12px 0 15px;padding:14px;background:var(--white);border:1px solid var(--line-subtle);border-radius:18px;min-height:90px}
.composer-amount input{font-size:36px;font-weight:600;letter-spacing:-1px;color:var(--ink);text-align:center}
.composer-date-state{border-color:var(--line-subtle);gap:10px;padding:14px 0}.composer-date-state input,.composer-date-state select{color:var(--forest);font-size:13px}
.transaction-calculator{gap:7px;padding:12px;background:var(--paper);border-top:1px solid var(--line-subtle)}
.transaction-calculator button{background:var(--key-bg);border-radius:15px;min-height:52px;font-size:23px;font-weight:500;color:var(--ink)}
.transaction-calculator button.operator{background:var(--key-operator);color:var(--forest)}
.transaction-calculator button[data-calculator-key="="]{background:var(--action);color:var(--on-action)}
.transaction-calculator button.backspace{background:var(--key-alt)}
.field input,.field select,.field textarea{border-radius:13px;min-height:44px;border-color:var(--field-border);background:var(--white)}
dialog{border-radius:25px;border:1px solid var(--line);background:var(--white);box-shadow:var(--dialog-shadow)}
.dialog-header p{line-height:1.7}.dialog-header .icon-btn{background:var(--surface-subtle)}
.auth-art{background:var(--brand-surface)}.theme-options button{border-radius:13px}.theme-options{gap:8px}


@keyframes skeleton-shift{to{background-position:-200% 0}}
@media(min-width:1000px){.classic-account-group{margin-bottom:22px}.workspace-caption{margin-bottom:24px}.report-menu{gap:16px}.report-menu button{min-height:112px}.classic-daybar{padding-bottom:24px}.classic-pagebar{min-height:56px}}
@media(max-width:700px){
  .main{padding:20px 17px calc(104px + env(safe-area-inset-bottom));padding-top:calc(18px + env(safe-area-inset-top))}
  .sidebar{inset:auto 12px calc(9px + env(safe-area-inset-bottom));width:auto;min-height:65px;height:65px;border:1px solid var(--line);background:var(--nav-glass);border-radius:24px;padding:0;backdrop-filter:blur(24px);box-shadow:0 7px 32px #10261a14}
  .sidebar .nav{padding:5px;gap:2px;margin:0;height:100%}
  .nav-btn{border-radius:19px!important;padding:8px 4px;gap:4px;min-height:0;min-width:0;font-weight:500;font-size:10px;color:var(--muted)}
  .nav-btn.active{background:var(--sage)!important;color:var(--forest);box-shadow:none!important}
  .nav-btn svg{width:21px;height:21px;stroke-width:1.8}.nav-btn span{font-size:9px;font-weight:600}
  .classic-pagebar{margin:0 0 8px;padding:0;min-height:44px;gap:8px}
  .classic-pagebar h1{font-size:27px;letter-spacing:-.85px}
  .classic-pagebar .pagebar-side{min-width:0}.classic-pagebar .pagebar-side.right{min-width:0}
  .classic-pagebar .pagebar-side .icon-btn{width:40px;height:40px;border-radius:14px}
  .account-ledger .classic-pagebar h1,.classic-report-detail .classic-pagebar h1{font-size:17px;letter-spacing:-.4px;line-height:1.35}
  .screen-intro{font-size:12px;margin:6px 0 17px}
  .workspace-caption{margin-bottom:22px}.workspace-caption>span{font-size:9px;letter-spacing:1.5px}
  .classic-daybar{margin:0;padding:0 0 20px;min-height:81px}
  .today-date-button .day-number{font-size:40px;min-width:67px;padding:11px 10px;border-radius:18px}
  .today-date-button strong{font-size:18px}.today-date-button small{font-size:12px}
  .classic-daybar>.flex{gap:7px}.classic-daybar>.flex>.icon-btn{display:grid;width:36px;height:40px;background:transparent}
  .today-add{width:42px;height:44px;border-radius:15px;margin:0}.today-add svg{width:24px;height:24px}
  .today-date-button{gap:11px}.classic-today .today-view-options{gap:3px;padding:4px;margin-bottom:16px}
  .today-view-options .text-btn{font-size:11px;padding:9px 15px;min-height:36px}
  .classic-daybar:has(.month-title){min-height:60px;padding:0 0 14px}.classic-daybar:has(.month-title) .today-add{width:40px;background:var(--action);border-radius:14px}
  .month-title>span{font-size:17px}
  .classic-transaction{min-height:78px;gap:10px;padding:12px;margin-bottom:8px}
  .ledger-line-icon{width:36px;height:38px;border-radius:12px}.ledger-line-icon svg{width:20px;height:20px}
  .classic-tx-copy strong{font-size:12px}.classic-tx-copy small{font-size:10px;margin-top:4px}
  .classic-tx-values{max-width:42%;min-width:0}.amount-badge{font-size:12px}.running-balance{font-size:10px}
  .period-bar{margin:16px 0;padding:5px;border-radius:16px;gap:3px;min-height:61px}.period-bar label{padding:7px 7px}.period-bar input{font-size:12px}.period-bar label span{font-size:9px}.period-bar .icon-btn{min-height:46px;width:34px}
  .balance-bars{gap:9px;margin:0 0 15px}.balance-bar{min-height:98px;padding:15px 12px;border-radius:19px;gap:10px}
  .balance-bar strong,.balance-bar.income strong,.balance-bar.expense strong{font-size:18px;letter-spacing:-.6px}.balance-bar span{font-size:10px}
  .balance-currency{margin:-3px 0 12px}.balance-currency .currency-picker{padding:7px 9px;font-size:11px}
  .classic-account-group{margin:15px 0;border-radius:20px}.classic-account-group>h2{margin:0;padding:16px 14px 8px;font-size:9px;letter-spacing:.65px}.classic-account-group>h2>strong{font-size:10px}
  .classic-account{margin:0 13px;min-height:75px}.classic-account-main{gap:10px;min-height:72px;padding:12px 0}
  .classic-account-main strong{font-size:13px}.classic-account-main small{font-size:15px}.account-line-icon{width:36px;height:39px;border-radius:12px}.account-line-icon svg{width:21px;height:21px}
  .ledger-reconcile-hint{font-size:10px;line-height:1.65}
  .classic-today .calendar-panel{padding:13px 10px;border-radius:20px}.classic-today .calendar-grid{gap:4px}.classic-today .calendar-day{min-height:42px;border-radius:13px}.classic-today .calendar-day span{font-size:12px}
  .classic-empty{min-height:140px;padding:24px 16px}.classic-empty p{font-size:13px}
  .report-menu{grid-template-columns:1fr;gap:9px;margin-top:18px}.report-menu button{min-height:88px;padding:16px;border-radius:19px;gap:13px}.report-menu button>span{font-size:13px}.report-menu small{font-size:10px;margin-top:4px}.report-tile-icon{width:42px;height:44px}
  .comparison-ring{width:min(78vw,290px);margin:26px auto}.comparison-ring>div{inset:19%;padding:8px}.comparison-ring strong{font-size:14px}.comparison-ring span{font-size:10px}
  .report-legend strong,.report-legend span{font-size:12px}.report-totals{gap:12px}.report-totals strong{font-size:13px}
  .category-picker-dialog,.transaction-composer{border-radius:0;border:0;padding-top:env(safe-area-inset-top)}
  .composer-header{padding:10px 17px;min-height:64px}.composer-header>button{font-size:12px!important}.composer-header h2,.composer-header select{font-size:15px}.composer-header .composer-save{min-height:38px;width:74px}
  .transaction-composer #modal-form{height:calc(100% - 64px)}.composer-fields{padding:8px 17px 6px}
  .composer-account select{font-size:14px}.composer-account>span{font-size:10px}.composer-category{font-size:14px}
  .composer-amount{margin:10px 0 12px;min-height:83px}.composer-amount input{font-size:33px}
  .composer-date-state input,.composer-date-state select{font-size:12px}.composer-details summary{font-size:12px}
  .classic-category-grid{gap:10px 8px;padding:18px 12px 30px}.category-choice{min-height:108px;padding:13px 4px;border-radius:17px}.category-choice>span{width:42px;height:42px;border-radius:13px}.category-choice strong{font-size:10px}.category-choice>span svg{width:24px;height:24px}
  .category-picker-header{padding:9px 17px 0}.category-picker-header .search-box{margin-top:6px}
  .transaction-calculator{gap:6px;padding:11px 12px}.transaction-calculator button{height:clamp(43px,6.6dvh,59px);min-height:43px;border-radius:14px;font-size:23px}
  .page-heading h1{font-size:27px}.page-heading p{font-size:12px}.page-heading{margin-bottom:22px}.page-shell[data-current-view=ajustes] .mobile-profile-bar{margin:0 0 20px}
}
@media(max-width:360px){.main{padding-left:12px;padding-right:12px}.today-date-button .day-number{font-size:34px;min-width:57px}.today-date-button strong{font-size:16px}.today-date-button small{font-size:11px}.classic-transaction{padding:11px 9px;gap:8px}.amount-badge{font-size:11px}.ledger-line-icon{width:30px}.balance-bar strong,.balance-bar.income strong,.balance-bar.expense strong{font-size:16px}.classic-category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.skeleton-list span{animation:none}button,input,select,textarea{transition:none}}
/* Keep header actions within their real touch widths at every viewport. */
.classic-pagebar>.pagebar-side{flex:0 0 auto;min-width:0}
.classic-pagebar>h1{flex:1 1 0;min-width:0}
@media(max-width:450px){.classic-category-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:18px 14px 30px}.category-choice{min-height:105px;padding:13px 8px}.category-choice strong{font-size:11px;overflow-wrap:normal;hyphens:auto}}

/* Luminous surfaces: distinct elevations and materials for both appearances. */
:root{
  --paper:#f3f5f0;--ink:#20362e;--muted:#60746a;
  --surface-light:#ffffff;--surface-base:#fbfdf9;--surface-edge:#ffffff;
  --card-outline:#dbe6dc;--ambient:#d9eadb;--ambient-warm:#f5e8d0;
  --shadow:0 10px 28px #244b3210,0 2px 5px #244b3208,inset 0 1px 0 #fff;
  --float-shadow:0 16px 36px #1c442520,0 3px 8px #1c442510;
  --hero-start:#295e48;--hero-end:#123e30;--hero-text:#f4fff5;--hero-muted:#d2ead7;
  --nav-glass:#ffffffda;--key-bg:#f8fbf7;
  --coral-surface:#fff2eb;--coral-ink:#a34b37;--gold-surface:#f7efd9;--gold-ink:#856027;
  --violet-surface:#eeeaf7;--violet-ink:#72619a;
}
:root[data-theme=dark]{
  --paper:#101b1b;--white:#1b2b2a;--sidebar:#132221;--ink:#eef7f2;--muted:#b0c4b9;
  --surface-light:#2a3f39;--surface-base:#192c29;--surface-edge:#496052;
  --card-outline:#3b5047;--ambient:#284b3b;--ambient-warm:#39382d;
  --shadow:0 12px 28px #020b0940,0 2px 5px #020b0926,inset 0 1px 0 #ffffff0d;
  --float-shadow:0 16px 38px #0006,0 3px 8px #0003;
  --hero-start:#356d53;--hero-end:#153f32;--hero-text:#f3fff4;--hero-muted:#d1ead7;
  --nav-glass:#233c33e8;--key-bg:#2a3e34;
  --coral-surface:#47372f;--coral-ink:#f0baa1;--gold-surface:#423f2c;--gold-ink:#e7cd92;
  --violet-surface:#37364c;--violet-ink:#c2b6e5;
}
body{background:radial-gradient(ellipse 85% 420px at 10% 0,color-mix(in srgb,var(--ambient) 65%,transparent),transparent),radial-gradient(ellipse 70% 450px at 100% 8%,color-mix(in srgb,var(--ambient-warm) 48%,transparent),transparent),var(--paper)}
.sidebar{background:linear-gradient(155deg,var(--surface-base),var(--sidebar));border-right-color:var(--line);box-shadow:8px 0 36px #132a1d05}
.brand img{box-shadow:0 5px 12px #173c2520,inset 0 1px 0 #ffffff60}
.classic-pagebar h1,.page-heading h1{letter-spacing:-1px;text-shadow:0 1px 0 color-mix(in srgb,var(--surface-edge) 55%,transparent)}
.panel,.classic-account-group,.classic-transaction,.report-menu button,.classic-today .calendar-panel,.period-bar,.classic-report-detail .report-legend,.report-totals,.report-big-value,.snapshot-rows,.category-report-rows{
  background:linear-gradient(145deg,var(--surface-light),var(--surface-base));border-color:var(--card-outline);box-shadow:var(--shadow);
}
.classic-account-group{position:relative}
.classic-account-group>h2{padding-top:20px;padding-bottom:12px;color:var(--muted)}
.classic-account-group>h2>span{font-weight:700;letter-spacing:1px}
.classic-account{border-bottom-color:color-mix(in srgb,var(--line) 65%,transparent)}
.classic-account-main strong{font-weight:600;font-size:15px}
.classic-account-main small{font-size:18px;font-weight:600;margin-top:6px;letter-spacing:-.4px}
.account-line-icon,.ledger-line-icon,.report-tile-icon,.category-choice>span{
  background:linear-gradient(140deg,color-mix(in srgb,var(--sage) 70%,var(--surface-edge)),var(--sage));
  border:1px solid color-mix(in srgb,var(--forest) 14%,transparent);
  box-shadow:inset 0 1px 0 #ffffff26,0 3px 6px #1334200a;
}
.classic-account-group:nth-of-type(2) .account-line-icon{background:linear-gradient(145deg,var(--gold-surface),color-mix(in srgb,var(--gold-surface) 75%,var(--surface-base)));color:var(--gold-ink)}
.classic-account-group:nth-of-type(3) .account-line-icon{background:linear-gradient(145deg,var(--violet-surface),color-mix(in srgb,var(--violet-surface) 75%,var(--surface-base)));color:var(--violet-ink)}
.classic-account-group:nth-of-type(4) .account-line-icon{background:linear-gradient(145deg,var(--coral-surface),color-mix(in srgb,var(--coral-surface) 75%,var(--surface-base)));color:var(--coral-ink)}
.balance-bars{gap:13px;margin-top:5px}
.balance-bar{min-height:125px;border-radius:23px;padding:22px 18px;position:relative;isolation:isolate;justify-content:space-between;border:1px solid #ffffff25;box-shadow:0 12px 26px #193e3026,inset 0 1px 0 #ffffff33;overflow:hidden}
.balance-bar.income{background:radial-gradient(ellipse at 5% 0,#b2e3ad30,transparent 72%),linear-gradient(130deg,var(--hero-start),var(--hero-end))!important}
.balance-bar.income span{color:var(--hero-muted)}
.balance-bar.income strong,.balance-bar.income.empty strong{color:var(--hero-text);font-weight:650;text-shadow:0 2px 5px #071b2420;position:relative;z-index:1}
.balance-bar.expense{background:radial-gradient(ellipse at 95% 0,color-mix(in srgb,var(--coral-ink) 12%,transparent),transparent 80%),linear-gradient(145deg,var(--surface-light),var(--coral-surface))!important;border-color:color-mix(in srgb,var(--coral-ink) 18%,var(--card-outline));box-shadow:var(--shadow)}
.balance-bar.expense strong{color:var(--coral-ink)}
.balance-bar:after{content:'';position:absolute;width:135px;height:135px;border-radius:50%;border:1px solid #ffffff17;right:-49px;top:-45px;box-shadow:0 0 0 24px #ffffff04,0 0 0 48px #ffffff03;pointer-events:none;z-index:-1}
.balance-bar.expense:after{border-color:color-mix(in srgb,var(--coral-ink) 12%,transparent);box-shadow:0 0 0 22px color-mix(in srgb,var(--coral-ink) 3%,transparent)}
.balance-bar span{font-size:12px;font-weight:500;position:relative;z-index:1}
.balance-bar strong{font-size:26px}
.btn:not(.ghost):not(.secondary):not(.danger),.today-add,.composer-header .composer-save{
  background:linear-gradient(145deg,color-mix(in srgb,var(--action) 87%,white),var(--action));
  box-shadow:0 7px 15px color-mix(in srgb,var(--action) 19%,transparent),inset 0 1px 0 #ffffff40;
  border:1px solid color-mix(in srgb,var(--action) 70%,white);
}
.icon-btn,.classic-pagebar .pagebar-side .text-btn,.profile-chip,.balance-currency .currency-picker{
  background:linear-gradient(145deg,var(--surface-light),var(--surface-subtle));border:1px solid var(--card-outline);box-shadow:0 3px 8px #132a1a08,inset 0 1px 0 #ffffff1a;
}
.today-date-button .day-number{background:linear-gradient(145deg,var(--hero-start),var(--hero-end));color:var(--hero-text);box-shadow:0 9px 20px #143f3024,inset 0 1px 0 #ffffff35;border:1px solid #ffffff25}
.classic-today .today-view-options,.period-segments{background:color-mix(in srgb,var(--sage) 55%,var(--paper));border:1px solid color-mix(in srgb,var(--forest) 12%,transparent);box-shadow:inset 0 2px 4px #122a1809}
.today-view-options .text-btn.active{background:linear-gradient(150deg,var(--surface-light),var(--surface-base));box-shadow:0 4px 10px #122a1815,inset 0 1px 0 #ffffff26}
.classic-transaction{border-radius:19px;box-shadow:0 4px 14px #153e230a,inset 0 1px 0 color-mix(in srgb,var(--surface-edge) 45%,transparent)}
.ledger-line-icon.expense{background:linear-gradient(145deg,var(--coral-surface),color-mix(in srgb,var(--coral-surface) 65%,var(--surface-base)));color:var(--coral-ink)}
.ledger-line-icon.neutral{background:linear-gradient(145deg,var(--violet-surface),color-mix(in srgb,var(--violet-surface) 65%,var(--surface-base)));color:var(--violet-ink)}
.report-menu button{position:relative;isolation:isolate;overflow:hidden;min-height:115px}
.report-menu button:before{content:'';position:absolute;width:110px;height:110px;right:-30px;top:-44px;background:radial-gradient(circle,color-mix(in srgb,var(--forest) 10%,transparent),transparent 70%);z-index:-1;pointer-events:none}
.report-menu button:nth-child(3n+2) .report-tile-icon{background:linear-gradient(145deg,var(--violet-surface),color-mix(in srgb,var(--violet-surface) 70%,var(--surface-base)));color:var(--violet-ink)}
.report-menu button:nth-child(3n) .report-tile-icon{background:linear-gradient(145deg,var(--gold-surface),color-mix(in srgb,var(--gold-surface) 70%,var(--surface-base)));color:var(--gold-ink)}
.comparison-ring{box-shadow:0 12px 30px #142d2420,inset 0 2px 3px #ffffff25}
.comparison-ring>div{background:radial-gradient(circle at 35% 10%,var(--surface-light),var(--surface-base));box-shadow:inset 0 2px 6px #12291a13,0 1px 0 #ffffff10;border:1px solid var(--line-subtle)}
.comparison-ring strong{font-size:18px;letter-spacing:-.5px}
.category-choice{background:linear-gradient(145deg,var(--surface-light),var(--surface-base));box-shadow:var(--shadow);border-color:var(--card-outline)}
.category-choice:nth-child(4n+2)>span{background:var(--gold-surface);color:var(--gold-ink)}
.category-choice:nth-child(4n+3)>span{background:var(--violet-surface);color:var(--violet-ink)}
.category-choice:nth-child(4n)>span{background:var(--coral-surface);color:var(--coral-ink)}
.composer-amount{background:radial-gradient(ellipse at 10% 0,color-mix(in srgb,var(--forest) 10%,transparent),transparent 70%),linear-gradient(150deg,var(--surface-light),var(--surface-base));border-color:var(--card-outline);box-shadow:inset 0 2px 8px #173d2010,0 1px 0 #ffffff18}
.transaction-calculator button{background:linear-gradient(145deg,var(--surface-light),var(--key-bg));border:1px solid var(--card-outline);box-shadow:0 3px 0 color-mix(in srgb,var(--line) 72%,transparent),0 5px 9px #122e1810,inset 0 1px 0 #ffffff18}
.transaction-calculator button.operator{background:linear-gradient(145deg,var(--key-operator),var(--sage))}
.transaction-calculator button[data-calculator-key="="]{background:linear-gradient(145deg,color-mix(in srgb,var(--action) 80%,white),var(--action));color:var(--on-action);border-color:color-mix(in srgb,var(--action) 70%,white)}
.transaction-calculator button:active{transform:translateY(2px);box-shadow:0 1px 0 var(--line)}
dialog{background:linear-gradient(145deg,var(--surface-light),var(--paper));border-color:var(--card-outline)}
dialog::backdrop{backdrop-filter:blur(7px)}
.nav-btn.active{background:linear-gradient(145deg,var(--sage-hover),var(--sage));box-shadow:inset 0 1px 0 #ffffff1f,0 4px 10px #132f2010!important}
@media(hover:hover){.report-menu button:hover,.category-choice:hover{transform:translateY(-2px);box-shadow:var(--float-shadow)}.classic-account-main:hover .account-line-icon{box-shadow:0 5px 10px #13342014,inset 0 1px 0 #ffffff30}}
@media(max-width:700px){
  .sidebar{background:linear-gradient(145deg,color-mix(in srgb,var(--surface-light) 88%,transparent),var(--nav-glass));box-shadow:var(--float-shadow),inset 0 1px 0 #ffffff38;border:1px solid color-mix(in srgb,var(--card-outline) 80%,transparent)}
  .nav-btn.active{background:linear-gradient(145deg,var(--sage-hover),var(--sage))!important;border:1px solid color-mix(in srgb,var(--forest) 12%,transparent)}
  .nav-btn:not(.active){border:1px solid transparent}
  .balance-bar{min-height:117px;padding:18px 14px;border-radius:22px}
  .balance-bar span{font-size:11px}
  .balance-bar strong,.balance-bar.income strong,.balance-bar.expense strong{font-size:clamp(15px,4.3vw,19px);letter-spacing:-.55px}
  .classic-account-main strong{font-size:14px}.classic-account-main small{font-size:16px}
  .classic-account-group>h2{padding-top:18px}.classic-account{min-height:79px}.classic-account-main{min-height:77px}
  .classic-tx-copy strong{font-size:13px}.classic-tx-copy small{font-size:11px}.amount-badge{font-size:13px}
  .report-menu button{min-height:93px}.report-menu button>span{font-size:14px}.report-menu small{font-size:11px}
  .comparison-ring strong{font-size:16px}
}
@media(max-width:360px){.balance-bar strong,.balance-bar.income strong,.balance-bar.expense strong{font-size:15px}.classic-tx-copy strong,.amount-badge{font-size:12px}}
@media(prefers-reduced-motion:reduce){.report-menu button:hover,.category-choice:hover{transform:none}}
.reconciliation-card{padding:20px;margin:16px 0 20px;border:1px solid color-mix(in srgb,var(--forest) 26%,var(--card-outline));border-radius:22px;background:radial-gradient(ellipse at 0 0,color-mix(in srgb,var(--forest) 11%,transparent),transparent 75%),linear-gradient(145deg,var(--surface-light),var(--surface-base));box-shadow:var(--shadow)}
.reconciliation-heading{display:flex;align-items:center;gap:12px;margin-bottom:12px}.reconciliation-symbol{display:grid;place-items:center;flex-shrink:0;width:41px;height:43px;border-radius:14px;color:var(--forest);background:var(--sage);border:1px solid var(--card-outline);box-shadow:inset 0 1px 0 #ffffff25}
.reconciliation-heading small{display:block;font-size:9px;font-weight:700;letter-spacing:1.2px;color:var(--forest);margin-bottom:5px}.reconciliation-heading h2{font-size:16px;line-height:1.4;letter-spacing:-.3px}.reconciliation-card>p{font-size:12px;line-height:1.75;color:var(--muted);margin-bottom:15px}
.reconciliation-card details{font-size:11px;color:var(--muted);line-height:1.65;margin:0 0 16px}.reconciliation-card summary{cursor:pointer;padding:5px 0;font-weight:550}.reconciliation-card ul{padding-left:17px;margin:7px 0}.reconciliation-card li+li{margin-top:7px}
.reconciliation-card .btn{font-size:12px;min-height:44px}.reconciliation-footnote{display:block;margin-top:12px;font-size:10px;color:var(--muted);line-height:1.5}
@media(max-width:700px){.reconciliation-card{padding:17px}.reconciliation-heading h2{font-size:14px}.reconciliation-card .btn{width:100%}}
.month-select{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;background:transparent;color:var(--ink);font-size:14px;font-weight:650;text-transform:capitalize;border-radius:12px;padding:5px 9px}.month-select svg{width:13px;transform:rotate(90deg);color:var(--muted)}
.period-field{flex:1;min-width:0;padding:7px 9px}.period-field+.period-field{border-left:1px solid var(--line-subtle)}.period-field>span{display:block;font-size:10px;color:var(--muted);margin-bottom:5px}.period-field>button{display:block;text-align:left;white-space:nowrap;background:transparent;color:var(--ink);font-size:12px;font-weight:600;padding:0;min-height:27px;width:100%}
.custom-date-trigger{display:flex;align-items:center;gap:8px;background:transparent;color:var(--forest);min-height:42px;padding:5px 0;font-size:13px;text-align:left}.custom-date-trigger>svg{width:17px;height:17px}.custom-date-trigger>svg:last-child{width:12px;transform:rotate(90deg)}.field .custom-date-trigger{border:1px solid var(--field-border);padding:10px 12px;border-radius:13px;background:var(--white);width:100%}
.date-picker{width:min(390px,calc(100vw - 28px));max-height:90dvh;padding:20px;border:1px solid var(--card-outline);border-radius:26px;background:linear-gradient(145deg,var(--surface-light),var(--paper));box-shadow:var(--dialog-shadow);overflow:auto;z-index:100;touch-action:pan-y}
.date-picker::backdrop{background:#06120c70;backdrop-filter:blur(7px)}.picker-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:15px}.picker-header h2{font-size:19px;letter-spacing:-.6px}.picker-header .icon-btn{width:34px;height:34px;border-radius:12px}
.picker-year{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:5px 0 17px;border-bottom:1px solid var(--line-subtle);margin-bottom:13px}.picker-year label{display:flex;align-items:center;gap:10px;font-size:11px;color:var(--muted)}.picker-year input{width:83px;padding:6px;border:0;background:var(--surface-subtle);border-radius:10px;text-align:center;font-size:19px;font-weight:650;color:var(--ink);min-height:40px}.picker-year .icon-btn{width:36px;height:36px}
.picker-months{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;padding:3px 0 8px}.picker-months button{min-height:53px;text-transform:capitalize;font-size:14px;font-weight:550;background:linear-gradient(145deg,var(--surface-light),var(--surface-subtle));color:var(--ink);border:1px solid var(--card-outline);border-radius:14px;box-shadow:inset 0 1px 0 #ffffff15,0 2px 5px #10281808}
.picker-months .selected,.picker-days .selected{background:linear-gradient(145deg,var(--hero-start),var(--hero-end));color:var(--hero-text);border-color:var(--hero-start);box-shadow:0 4px 10px #153d301c}
.picker-month-heading{display:flex;justify-content:space-between;align-items:center;gap:5px;margin:0 0 12px}.picker-month-heading>.icon-btn{width:32px;height:34px;border-radius:11px}.picker-month-heading .month-select{font-size:14px;flex:1;min-width:0}
.picker-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.picker-days>span{text-align:center;font-size:10px;color:var(--muted);padding:3px 0 9px;font-weight:600}.picker-days>button{min-width:0;min-height:40px;border-radius:12px;color:var(--ink);background:transparent;font-size:13px;border:1px solid transparent}.picker-days>.is-today:not(.selected){border-color:var(--forest);color:var(--forest)}.picker-days>button.selected{color:var(--hero-text)}.picker-days>button:hover:not(.selected){background:var(--sage)}
.picker-shortcuts{display:flex;flex-wrap:wrap;gap:7px;margin-top:18px;padding-top:14px;border-top:1px solid var(--line-subtle)}.picker-shortcuts button{background:var(--sage);color:var(--forest);border-radius:11px;font-size:12px;font-weight:600;padding:8px 13px;min-height:36px}.picker-shortcuts small{width:100%;font-size:10px;color:var(--muted);margin-top:5px}
@media(max-width:700px){.date-picker{position:fixed;inset:auto 0 0;margin:0 auto;width:100%;max-width:100vw;border-radius:27px 27px 0 0;border-bottom:0;padding:21px 23px calc(23px + env(safe-area-inset-bottom));max-height:90dvh}.picker-months button{min-height:55px}.picker-days>button{min-height:43px}.composer-date-state .custom-date-trigger{font-size:12px}.composer-date-state{gap:5px}.period-field{padding:5px 6px}.period-field>button{font-size:11px}}
.calendar-grid,.picker-days{touch-action:pan-y;will-change:auto}
.classic-today .calendar-header{display:flex;align-items:center;gap:8px;justify-content:space-between}.classic-today .calendar-header .date-control{flex:1;min-width:0;gap:3px;justify-content:space-between;margin:0}.calendar-header .month-select{font-size:13px;gap:5px;padding:5px 3px;min-width:0}.calendar-header .month-select>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.calendar-current{flex-shrink:0;background:var(--sage);border:1px solid var(--card-outline);border-radius:12px;color:var(--forest);font-size:10px;font-weight:650;min-height:36px;padding:8px 10px}
.composer-header{display:grid;grid-template-columns:78px minmax(0,1fr) 78px;gap:13px 8px;align-items:center;padding:12px 18px}.composer-header h2{text-align:center;font-size:15px;font-weight:650}.composer-header>span{width:auto}.composer-header .composer-save{width:78px}
.composer-header>.composer-cancel,.simple-cancel{display:inline-flex;align-items:center;justify-content:center;background:#fff!important;color:#263b31!important;border:1px solid #dce5de!important;border-radius:12px;min-height:39px;width:78px;font-size:12px!important;font-weight:550;box-shadow:none!important;padding:9px 8px;text-align:center}
.movement-type-switch{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr 1.25fr;gap:5px;background:color-mix(in srgb,var(--surface-subtle) 72%,var(--paper));border:1px solid var(--line-subtle);border-radius:17px;padding:5px;box-shadow:inset 0 2px 5px #10261909}
.movement-type-switch>button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:42px;padding:7px 8px;border-radius:12px;border:1px solid transparent;color:var(--muted);background:transparent;font-size:12px;font-weight:600;white-space:nowrap}.movement-type-switch svg{width:16px;height:16px;stroke-width:1.8}.movement-type-switch>.selected{background:linear-gradient(145deg,var(--surface-light),var(--surface-base));border-color:var(--card-outline);box-shadow:0 3px 8px #102a1810,inset 0 1px 0 #ffffff18}.movement-type-switch>.expense.selected{color:var(--coral-ink);background:linear-gradient(145deg,var(--surface-light),var(--coral-surface))}.movement-type-switch>.income.selected{color:var(--forest);background:linear-gradient(145deg,var(--surface-light),var(--sage))}.movement-type-switch>.transfer.selected{color:var(--violet-ink);background:linear-gradient(145deg,var(--surface-light),var(--violet-surface))}
.transaction-composer{display:flex;flex-direction:column}.transaction-composer:not([open]){display:none}.transaction-composer .composer-header{flex-shrink:0;position:relative}.transaction-composer #modal-form{flex:1;min-height:0;max-height:none;height:auto;overflow:hidden}.transaction-composer .composer-fields{max-height:none;min-height:0;flex:1;overflow:auto}
@media(max-width:700px){.composer-header{padding:10px 14px;gap:10px 5px;grid-template-columns:75px minmax(0,1fr) 75px}.composer-header>.composer-cancel,.composer-header .composer-save{width:75px}.movement-type-switch>button{font-size:11px;gap:5px;padding:8px 5px;min-height:42px}.movement-type-switch svg{width:15px;height:15px}.transaction-composer #modal-form{height:auto;flex:1;min-height:0}.classic-today .calendar-panel .date-control{margin:0}.calendar-header .date-control .icon-btn{width:22px}.calendar-header .month-select{font-size:12px}.calendar-current{padding:7px 8px;font-size:10px}}
@media(max-width:360px){.movement-type-switch>button{font-size:10px;gap:4px}.movement-type-switch svg{width:13px;height:13px}.calendar-header .month-select{font-size:11px}.calendar-current{font-size:9px;padding:7px}}
:root{--movement-red:#c64343;--movement-red-bg:#f6eae8;--movement-green:#23834f;--movement-green-bg:#e7f0e8}
:root[data-theme=dark]{--movement-red:#ff8580;--movement-red-bg:#3c302f;--movement-green:#65d79b;--movement-green-bg:#2b4033}
.movement-type-switch>.expense{color:var(--movement-red)}.movement-type-switch>.income{color:var(--movement-green)}
.movement-type-switch>.expense.selected{color:var(--movement-red);background:linear-gradient(145deg,var(--surface-light),var(--movement-red-bg))}.movement-type-switch>.income.selected{color:var(--movement-green);background:linear-gradient(145deg,var(--surface-light),var(--movement-green-bg))}
.category-choice,.category-choice *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-user-drag:none}
.category-tools{display:flex;justify-content:space-between;gap:10px;margin:12px 0 0}.category-tools button{display:flex;align-items:center;justify-content:center;gap:6px;border-radius:12px;border:1px solid var(--card-outline);background:var(--surface-subtle);color:var(--forest);min-height:39px;padding:8px 12px;font-size:11px;font-weight:600}.category-tools svg{width:15px;height:15px}.category-tools .active{background:var(--sage)}
.category-order-hint{font-size:11px;line-height:1.6;color:var(--muted);margin:10px 0 0}.classic-category-grid.is-organizing{touch-action:none}.is-organizing .category-choice{touch-action:none;cursor:grab;position:relative}.is-organizing .category-choice:after{content:'⠿';position:absolute;right:7px;top:5px;color:var(--faint);font-size:15px}.is-organizing .category-choice.drag-source{opacity:.25;border-style:dashed;box-shadow:none}.category-drag-ghost{position:fixed!important;z-index:10000;pointer-events:none!important;opacity:.94!important;transform:rotate(3deg) scale(1.04);box-shadow:var(--float-shadow)!important;margin:0!important;cursor:grabbing;transition:none!important}.category-drag-ghost:after{display:none}
/* Graphite surfaces with restrained botanical and complementary accents. */
:root[data-theme=dark]{
 --paper:#121619;--white:#22272b;--sidebar:#1b2024;--ink:#edf0f1;--muted:#adb5ba;--faint:#909ba2;
 --line:#3a4249;--line-subtle:#30383e;--field-border:#475159;
 --surface-light:#30373d;--surface-base:#232a2f;--surface-edge:#58636b;
 --surface-subtle:#292f35;--surface-hover:#30383e;--card-outline:#414b52;
 --ambient:#1d2c26;--ambient-warm:#25232c;
 --forest:#a1cbb2;--forest-dark:#c0ddca;--action:#a1cbb2;--action-hover:#b9d8c5;--on-action:#1e3528;
 --sage:#293c34;--sage-hover:#34493e;--income:#a1cbb2;--expense:#dda29c;--red:#dda29c;--red-bg:#3b3032;
 --blue:#9cb9db;--blue-surface:#293749;--key-bg:#272f36;--key-alt:#343c46;--key-operator:#34463e;
 --hero-start:#365548;--hero-end:#293c36;--hero-muted:#c6d8cd;
 --nav-glass:#222a30ed;--track:#343e46;--notice-bg:#2e373b;--notice-text:#c5d2d9;
 --coral-surface:#3c3033;--coral-ink:#e0ada5;--gold-surface:#3b362b;--gold-ink:#d5be8b;
 --violet-surface:#343244;--violet-ink:#bab0dc;--focus:#a1cbb2;--backdrop:#0e1217d9;
 --toast-bg:#dbe6df;--toast-text:#25352b;
 --shadow:0 10px 28px #080b1036,0 2px 5px #080b1020,inset 0 1px 0 #ffffff09;
}
:root[data-theme=dark] .classic-today .calendar-dot.paid{background:var(--blue)}
:root[data-theme=dark] .report-menu button:nth-child(3n+1) .report-tile-icon{background:var(--blue-surface);color:var(--blue)}

:root{--transfer-ink:#2874c0;--transfer-surface:#e7eff8}
:root[data-theme=dark]{--transfer-ink:#78b5ff;--transfer-surface:#29394c}
.ledger-line-icon.transfer{color:var(--transfer-ink);background:linear-gradient(145deg,var(--transfer-surface),color-mix(in srgb,var(--transfer-surface) 65%,var(--surface-base)))}
.classic-tx-values .amount-badge{font-size:18px;line-height:1.3;font-weight:680;letter-spacing:-.4px}
.classic-tx-values .amount-badge.income{color:var(--movement-green)}
.classic-tx-values .amount-badge.expense{color:var(--movement-red)}
.classic-tx-values .amount-badge.transfer{color:var(--transfer-ink)}
@media(max-width:700px){.classic-tx-values .amount-badge{font-size:16px}.classic-tx-values{max-width:47%}}
@media(max-width:360px){.classic-tx-values .amount-badge{font-size:14px}}
.icon-library{width:100%;border:1px solid var(--card-outline);background:var(--surface-base);border-radius:17px;padding:12px;margin:10px 0 16px}
.icon-library summary{display:flex;align-items:center;gap:10px;cursor:pointer;list-style:none;font-size:13px;color:var(--ink)}
.icon-library summary>span:last-child{margin-left:auto;color:var(--forest);font-size:12px}.chosen-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:var(--sage);color:var(--forest)}.chosen-icon svg{width:23px;height:23px}
.icon-library>.search-box{margin:14px 0 10px}.icon-library-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;max-height:285px;overflow:auto;padding:2px}
.icon-library-grid button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:66px;background:var(--surface-subtle);color:var(--muted);border:1px solid transparent;border-radius:12px;padding:7px 3px;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.icon-library-grid button[hidden]{display:none}.icon-library-grid svg{width:24px;height:24px}.icon-library-grid small{font-size:9px;line-height:1.2}.icon-library-grid [aria-pressed=true]{background:var(--sage);color:var(--forest);border-color:var(--forest)}
.category-management-actions{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin-top:15px}.category-management-actions .negative{color:var(--red);display:flex;align-items:center;gap:6px;padding:12px}.category-management-actions svg{width:17px;height:17px}
@media(max-width:360px){.icon-library-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
.category-setting[hidden]{display:none}

.classic-tx-values .amount-badge{white-space:normal;overflow-wrap:anywhere;text-align:right;font-variant-numeric:tabular-nums}

/* Brighter movement accents, with the same quiet surfaces. */
.ledger-line-icon.income{color:var(--movement-green)}
.ledger-line-icon.expense{color:var(--movement-red)}
.movement-type-switch>.transfer,.movement-type-switch>.transfer.selected{color:var(--transfer-ink)}
.movement-type-switch>.transfer.selected{background:linear-gradient(145deg,var(--surface-light),var(--transfer-surface))}

.continuous-ledger-footer{min-height:20px;justify-content:center;padding:5px 2px;color:var(--muted)}

.classic-today .calendar-day>span:first-child{font-size:17px;font-weight:550}
.picker-days>button{font-size:16px;font-weight:550}
.classic-balance>.balance-bars{margin-top:26px}

/* Original catalogue: four columns; only actual budgets draw a ring. */
.classic-category-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 8px;padding:18px 12px 30px}
.category-choice{padding:13px 4px;min-height:114px;gap:9px}
.category-choice strong{font-size:10.5px;overflow-wrap:normal;hyphens:none;line-height:1.4;max-width:100%}
.category-choice>span,.category-choice:nth-child(n)>span{position:relative;width:44px;height:44px;background:var(--surface-subtle);color:var(--muted);border:0;border-radius:14px;box-shadow:inset 0 1px 0 #ffffff12}
.category-choice.expense.has-activity>span{color:var(--movement-red);background:color-mix(in srgb,var(--movement-red) 12%,var(--surface-base))}
.category-choice.income.has-activity>span{color:var(--movement-green);background:color-mix(in srgb,var(--movement-green) 12%,var(--surface-base))}
.category-choice.has-budget>span{border-radius:50%;background:var(--surface-subtle);color:var(--movement-red)}
.category-choice>span .category-budget-ring{position:absolute;inset:-5px;width:54px;height:54px;fill:none;stroke:var(--line);stroke-width:2.5;transform:rotate(-90deg)}
.category-budget-ring circle:last-child{stroke:var(--movement-red);stroke-linecap:round}
.category-budget-label{font-size:10px;color:var(--muted);line-height:1.3}.category-budget-label b{display:block;color:var(--movement-red);font-size:9px;font-weight:650}
.category-choice.over-budget{border-color:color-mix(in srgb,var(--movement-red) 60%,var(--card-outline))}
.category-period-context{font-size:11px;color:var(--muted);margin:12px 0 0;text-transform:capitalize}
.app-brand{display:flex;align-items:center;gap:11px;color:var(--ink);font-size:18px;font-weight:700;letter-spacing:-.5px;text-decoration:none}
.app-brand img{width:42px;height:42px;border-radius:13px;box-shadow:var(--shadow)}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:24px}.topbar-actions{display:flex;gap:9px;align-items:center}
:root[data-theme=dark]{--paper:#0d1318;--white:#25313a;--sidebar:#141e25;--surface-light:#2a3842;--surface-base:#202c35;--surface-edge:#6b8290;--surface-subtle:#202d36;--surface-hover:#3c4c57;--card-outline:#526573;--line:#485c68;--line-subtle:#3b505d;--ambient:#14241f;--ambient-warm:#181d2b;--ink:#f5f8fa;--muted:#becbd3;--shadow:0 12px 28px #0005,0 2px 5px #0004,inset 0 1px 0 #ffffff14}
:root[data-theme=dark] .classic-transaction,:root[data-theme=dark] .panel,:root[data-theme=dark] .category-choice,:root[data-theme=dark] .classic-account-group{border:1px solid var(--card-outline)}
@media(max-width:450px){.classic-category-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 7px;padding:18px 10px 30px}.category-choice{padding:12px 3px;min-height:110px}.category-choice strong{font-size:10px}.app-brand{font-size:17px;gap:9px}.app-brand img{width:39px;height:39px}.topbar .theme-toggle{width:34px;height:34px}.topbar-actions{gap:5px}}
.category-budget-label em{display:block;color:var(--movement-red);font-size:9px;font-style:normal;overflow-wrap:anywhere}

/* Loading follows the dimensions and surfaces of the real screen. */
.skeleton-list{display:grid;gap:0;padding:0;margin:0}
.skeleton-row{pointer-events:none;user-select:none}
.skeleton-block{display:block;flex-shrink:0;width:var(--skeleton-width,100%);height:14px;min-height:0;border:0;border-radius:5px;background:linear-gradient(105deg,color-mix(in srgb,var(--ink) 8%,transparent) 20%,color-mix(in srgb,var(--ink) 14%,transparent) 48%,color-mix(in srgb,var(--ink) 8%,transparent) 75%);background-size:220% 100%;animation:skeleton-shift 1.7s ease-in-out infinite}
.skeleton-icon{width:40px;height:40px;border-radius:13px}.skeleton-action{width:23px;height:23px;border-radius:7px}.skeleton-line{height:14px}.skeleton-caption{height:10px}.skeleton-amount{height:20px}
.skeleton-copy{display:flex!important;flex:1;min-width:0;flex-direction:column;align-items:flex-start;gap:9px}
.skeleton-values{display:flex;flex-direction:column;align-items:flex-end;gap:9px;width:26%;max-width:120px;min-width:72px}
.skeleton-accounts .classic-account-main{display:flex;align-items:center;gap:14px;width:100%;padding:14px 0}.skeleton-accounts .skeleton-icon{width:44px;height:44px}.skeleton-accounts .skeleton-copy{gap:10px}
.classic-account-group:has(.skeleton-accounts)>h2>.skeleton-block{max-width:100px}
.skeleton-categories .skeleton-line{flex-shrink:1}.skeleton-categories .skeleton-action{margin-left:auto}
.skeleton-budget-grid .budget-card>.skeleton-block{margin:12px auto}.skeleton-budget-grid .budget-foot .skeleton-block{margin:0}.skeleton-budget-grid .between{min-height:30px}
.skeleton-budget-ring{width:100px;height:100px;border:10px solid color-mix(in srgb,var(--ink) 9%,transparent);border-radius:50%;margin:4px auto 18px;animation:skeleton-breathe 1.7s ease-in-out infinite}
.skeleton-chart-ring{width:min(76vw,320px);aspect-ratio:1;border:35px solid color-mix(in srgb,var(--ink) 9%,transparent);border-radius:50%;margin:26px auto;animation:skeleton-breathe 1.7s ease-in-out infinite}
.skeleton-report-line{display:flex;justify-content:space-between;align-items:center;gap:18px;min-height:58px;padding:12px 16px}
.skeleton-chart-bars{display:flex;align-items:flex-end;gap:14px;height:205px;padding:20px 14px;margin:24px 0;border-bottom:1px solid var(--line)}.skeleton-chart-bars i{flex:1;min-width:0;border-radius:5px 5px 0 0}
.skeleton-report .report-big-value>.skeleton-block{margin:16px auto}.skeleton-report .report-big-value>.skeleton-amount{height:36px}
@keyframes skeleton-breathe{50%{opacity:.5}}
.settings-grid{display:flex;flex-direction:column;gap:12px;max-width:900px}.settings-grid>.stack{display:contents}
.settings-disclosure.panel{padding:0;overflow:hidden}
.settings-disclosure>summary{display:flex;align-items:center;gap:14px;list-style:none;cursor:pointer;min-height:78px;padding:17px 22px;color:var(--ink);user-select:none;-webkit-user-select:none}
.settings-disclosure>summary::-webkit-details-marker{display:none}
.settings-disclosure>summary:focus-visible{outline:2px solid var(--forest);outline-offset:-4px;border-radius:20px}
.settings-section-icon{display:grid;place-items:center;width:42px;height:42px;flex-shrink:0;border-radius:14px;color:var(--forest);background:var(--sage);box-shadow:inset 0 1px 0 #ffffff18}.settings-section-icon svg{width:22px;height:22px}
.settings-section-title{font-size:15px;font-weight:650;flex:1}.settings-section-chevron{display:flex;color:var(--muted)}.settings-section-chevron svg{width:18px;height:18px;transition:transform .18s ease}
.settings-disclosure[open] .settings-section-chevron svg{transform:rotate(90deg)}
.settings-disclosure-body{padding:4px 22px 24px;border-top:1px solid var(--line-subtle)}.settings-disclosure-body>.profiles-heading,.settings-disclosure-body>.between{justify-content:flex-end;margin-top:14px}.settings-disclosure-body>.settings-description:first-child,.settings-disclosure-body>.form-note:first-child{margin-top:16px}.settings-disclosure-body>#profile-form{margin-top:18px}
@media(max-width:700px){.skeleton-budget-ring{width:64px;height:64px;border-width:7px;margin:12px auto}.skeleton-budget-grid .budget-card>.skeleton-amount{height:18px}.skeleton-budget-grid .budget-card>.skeleton-caption{height:10px}.settings-disclosure>summary{min-height:73px;padding:15px 17px;gap:12px}.settings-section-title{font-size:14px}.settings-disclosure-body{padding:4px 17px 20px}.settings-grid{gap:11px}}
@media(prefers-reduced-motion:reduce){.skeleton-block,.skeleton-budget-ring,.skeleton-chart-ring{animation:none}.settings-section-chevron svg{transition:none}}
.settings-grid{align-items:stretch}.settings-disclosure{width:100%;min-width:0}

/* Sculpted charts: precise proportions, layered light and stronger colour separation. */
:root{--chart-shadow:#173b2630;--chart-track-depth:#b5c5bf;--chart-glint:#ffffff90;--chart-grid:#c4d3cc;--chart-label:#566a62;--chart-income:#24a77a;--chart-expense:#e75870}
:root[data-theme=dark]{--chart-shadow:#00000065;--chart-track-depth:#19252d;--chart-glint:#ffffff30;--chart-grid:#465b69;--chart-label:#c0cfdb;--chart-income:#5ed8a9;--chart-expense:#ff8393}
.sculpted-ring{position:relative;width:min(88%,345px);margin:22px auto 10px;isolation:isolate}
.sculpted-ring>svg{display:block;width:100%;height:auto;overflow:visible}
.sculpted-ring-center{position:absolute;left:25%;right:25%;top:26%;bottom:31%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:6px;border-radius:50%;background:radial-gradient(ellipse at 35% 20%,var(--surface-light),var(--surface-base));box-shadow:inset 0 2px 4px #ffffff0a,0 2px 3px #00000015;padding:8px}
.sculpted-ring-center>small{font-size:11px;color:var(--muted);line-height:1.3}.sculpted-ring-center>strong{font-size:clamp(13px,3.8vw,23px);line-height:1.3;font-weight:700;letter-spacing:-.6px;font-variant-numeric:tabular-nums;max-width:100%;overflow-wrap:anywhere}.sculpted-ring-center>span{font-size:10px;color:var(--muted)}
.chart-surface{background:linear-gradient(145deg,var(--surface-light),var(--surface-base));border:1px solid var(--card-outline);border-radius:22px;box-shadow:var(--shadow);padding:18px 12px;margin:22px 0}
.premium-bar-chart.bar-chart{height:auto;width:100%;overflow:visible}.worth-chart{display:block;overflow:visible}
.chart-axis-label{font-size:10px;font-family:inherit;fill:var(--chart-label);font-variant-numeric:tabular-nums}.chart-grid-line{stroke:var(--chart-grid);stroke-width:.75;stroke-dasharray:3 5;opacity:.65}
.chart-legend{flex-wrap:wrap;justify-content:center;gap:14px;margin:12px 0 0;color:var(--muted);font-size:11px}.chart-legend .color-dot{width:9px;height:9px;border-radius:4px;box-shadow:inset 0 1px 0 #ffffff60,0 2px 3px #0002}.chart-green{background:linear-gradient(#80f1bc,#22a779)}.chart-red{background:linear-gradient(#ffaca4,#ec6375)}
.chart-category-legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 18px;max-width:620px;margin:0 auto 24px;padding:8px 5px}
.chart-category-legend>div{display:flex;align-items:center;gap:7px;min-width:0;font-size:11px}.chart-category-legend i{width:9px;height:9px;flex-shrink:0;background:var(--swatch);border-radius:4px;box-shadow:inset 0 1px 0 #ffffff45}.chart-category-legend span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted)}.chart-category-legend strong{font-size:10px;color:var(--ink);font-variant-numeric:tabular-nums}
.report-legend .income{background:linear-gradient(135deg,#80f1bc,#22a779)}.report-legend .expense{background:linear-gradient(135deg,#ffaca4,#ec6375)}
@media(max-width:450px){.chart-surface{padding:16px 5px}.sculpted-ring{width:90%}.chart-category-legend{gap:9px 12px}.sculpted-ring-center>strong{font-size:17px}.sculpted-ring-center>small{font-size:10px}}
.skeleton-report .report-totals .skeleton-block{margin:10px 0}.skeleton-report .skeleton-chart-ring{width:min(90%,320px)}

/* Crisp gradients and a light, consistent relief instead of a floating extrusion. */
:root{--chart-income:#0aab78;--chart-expense:#ee3658;--chart-grid:#bfd0c8}
:root[data-theme=dark]{--chart-income:#27dfa2;--chart-expense:#ff5275;--chart-grid:#516575;--chart-label:#d0dbe3}
.sculpted-ring{width:min(88%,330px);margin:14px auto 20px}
.sculpted-ring>svg{filter:drop-shadow(0 3px 3px #00000016)}
.sculpted-ring-center{left:23%;right:23%;top:31%;bottom:31%;padding:4px;background:none;box-shadow:none;border:0;border-radius:0;gap:7px}
.sculpted-ring-center>small{font-size:12px;color:var(--muted)}.sculpted-ring-center>strong{font-size:clamp(17px,4.7vw,25px);letter-spacing:-.65px;font-weight:700;line-height:1.25}.sculpted-ring-center>span{font-size:10px;letter-spacing:.6px}
.chart-green,.report-legend .income{background:linear-gradient(160deg,#18dc99,#08a675)}
.chart-red,.report-legend .expense{background:linear-gradient(160deg,#ff527c,#e72855)}
.chart-category-legend i{width:10px;height:10px;border-radius:4px;box-shadow:0 0 0 1px #0000000a}
.chart-category-legend span{color:var(--ink)}
@media(max-width:450px){.sculpted-ring{width:89%}.sculpted-ring-center>strong{font-size:19px}.sculpted-ring-center>small{font-size:11px}}
.back-app{font-size:12px;color:var(--forest);margin-left:auto;text-decoration:none}.back-app:hover{text-decoration:underline}
.report-proposals-link{display:flex;align-items:center;gap:13px;padding:19px 18px;border-radius:19px;border:1px solid var(--card-outline);background:var(--surface-base);text-decoration:none;color:var(--ink);margin-top:18px}.report-proposals-link>svg{width:23px;color:var(--blue)}.report-proposals-link>svg:last-child{width:16px;margin-left:auto}.report-proposals-link strong{font-size:13px;font-weight:600}.report-proposals-link small{display:block;font-size:11px;color:var(--muted);margin-top:5px}

/* Real-data insights: luminous surfaces, restrained depth, semantic contrast. */
.insight-period{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:18px 0 26px}.insight-period .date-control{margin:0;flex:1}.insight-period label{display:flex;align-items:center;gap:8px;font-size:13px}.insight-period select{padding:9px;border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:10px}.insight-scope{color:var(--muted);font-size:12px;margin:0 0 20px}.insights{padding-bottom:24px}.insight-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin:16px 0 26px}.insight-metric{padding:20px;border:1px solid var(--border);border-radius:20px;background:linear-gradient(135deg,color-mix(in srgb,#38bdf8 6%,var(--surface)),var(--surface));box-shadow:0 9px 24px #00000008;min-width:0}.insight-metric>span{display:block;font-size:12px;color:var(--muted);margin-bottom:8px}.insight-metric>strong{display:block;font-size:clamp(20px,2.5vw,29px);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.insights .is-income{color:#059669}.insights .is-expense{color:#e11d48}.insights .is-blue{color:#2563eb}[data-theme=dark] .insights .is-income{color:#34d399}[data-theme=dark] .insights .is-expense{color:#fb7185}[data-theme=dark] .insights .is-blue{color:#60a5fa}.insight-scroll{overflow-x:auto;border:1px solid var(--border);background:var(--surface);border-radius:22px;padding:20px;margin:22px 0}.insight-waterfall{display:block;width:100%;min-width:660px;max-height:1250px}.insight-margin{width:100%;min-width:620px;display:block}.insight-svg-label{fill:var(--muted);font:12px system-ui}.insight-svg-amount{fill:var(--text);font:600 12px system-ui}.insight-zero{stroke:var(--border);stroke-dasharray:4 5;fill:none}.insight-lines{display:grid;gap:8px;margin:20px 0}.insight-drill{display:flex;width:100%;align-items:center;justify-content:space-between;gap:16px;border:1px solid var(--border);border-radius:14px;background:var(--surface);color:var(--text);text-align:left;padding:16px;cursor:pointer;min-width:0}.insight-drill:hover{border-color:color-mix(in srgb,#3b82f6 65%,var(--border));box-shadow:0 6px 18px #0000000b}.insight-drill small{display:block;color:var(--muted);font-size:12px;margin-top:5px}.insight-empty{padding:40px 20px;text-align:center;color:var(--muted)}.insight-explainer{padding:20px;border-radius:18px;background:var(--surface);border:1px solid var(--border);line-height:1.7}.insight-explainer span{color:var(--muted)}.insight-growth{display:grid;gap:14px;margin-top:20px}.insight-growth>.insight-drill{display:block;padding:20px}.insight-growth-title{display:flex;justify-content:space-between;margin-bottom:14px}.insight-track{display:block;height:13px;background:var(--surface-subtle);border-radius:5px;overflow:hidden;margin:5px 0}.insight-track i{height:100%;display:block;border-radius:5px;background:linear-gradient(90deg,#2563eb,#22d3ee)}.insight-track.previous i{background:linear-gradient(90deg,#7c3aed,#a78bfa)}.insight-growth-values{display:block;margin-top:12px;font-weight:600}.insight-key{display:flex;gap:9px;align-items:center;flex-wrap:wrap;font-size:12px;margin-top:20px;color:var(--muted)}.insight-key i{width:10px;height:10px;border-radius:50%;background:#3b82f6}.insight-key i.previous{background:#a78bfa}.insight-switch{display:flex;gap:5px;border:1px solid var(--border);border-radius:14px;padding:5px;width:max-content;max-width:100%;background:var(--surface)}.insight-switch button{background:transparent;border:0;border-radius:10px;padding:11px 16px;color:var(--muted);font-weight:600;cursor:pointer}.insight-switch button[aria-pressed=true]{background:color-mix(in srgb,#3b82f6 18%,var(--surface));color:var(--text);box-shadow:0 2px 8px #00000015}.insight-heat-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:20px 0}.insight-heat-heading .insight-metric{padding:12px 16px}.insight-heat-heading .insight-metric strong{font-size:22px}.insight-heat,.insight-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}.insight-week{text-align:center;font-size:12px;color:var(--muted);margin:12px 0}.insight-heat button{border:1px solid #ffffff25;border-radius:13px;padding:13px 4px;display:grid;gap:5px;min-height:76px;cursor:pointer;font-variant-numeric:tabular-nums}.insight-heat button strong{font-size:22px}.insight-heat button span,.insight-heat button small{font-size:10px}.insight-heat.months{grid-template-columns:repeat(4,minmax(0,1fr))}.insight-heat.months button{min-height:116px;padding:14px 8px}.insight-heat.months button span{font-size:13px;font-weight:650}.heat-0{background:var(--surface-subtle);color:var(--muted)}.heat-1{background:#2563eb;color:white}.heat-2{background:#22d3ee;color:#083344}.heat-3{background:#34d399;color:#064e3b}.heat-4{background:#facc15;color:#563006}.heat-5{background:#fb923c;color:#541f08}.heat-6{background:#dc2626;color:white}.heat-unknown{background:repeating-linear-gradient(135deg,transparent,transparent 5px,color-mix(in srgb,var(--muted) 8%,transparent) 5px,color-mix(in srgb,var(--muted) 8%,transparent) 10px);color:var(--muted);border:1px dashed var(--border)!important;cursor:default!important}.insight-heat-legend{display:flex;gap:5px;align-items:center;justify-content:center;flex-wrap:wrap;margin:20px 0;font-size:11px;color:var(--muted)}.insight-heat-legend i{width:22px;height:15px;border-radius:4px}.insight-tree{height:350px;margin:22px 0;overflow:hidden;border-radius:20px;padding:4px;background:var(--surface);border:1px solid var(--border)}.insight-tree-split{display:flex;width:100%;height:100%;gap:3px}.insight-tree-split.vertical{flex-direction:column}.insight-tree-split>div{min-height:0;min-width:0}.insight-tree-leaf{height:100%;border:0;border-radius:9px;display:flex;flex-direction:column;align-items:start;justify-content:center;gap:5px;padding:12px;background:linear-gradient(145deg,var(--tile),color-mix(in srgb,var(--tile) 72%,#111827));color:#fff;overflow:hidden;box-shadow:inset 0 1px 0 #ffffff40}.insight-tree-leaf strong{font-size:14px;line-height:1.2}.insight-tree-leaf span{font-size:12px;white-space:nowrap}.insight-tree-leaf small{color:#ffffffd9}.insight-tree-leaf.insight-tiny>*{display:none}.insight-category{border:1px solid var(--border);border-radius:15px;padding:15px;background:var(--surface)}.insight-category summary{display:flex;align-items:center;gap:10px;cursor:pointer}.insight-category summary i{width:10px;height:10px;border-radius:4px;flex-shrink:0}.insight-category summary span{margin-left:auto}.insight-category[open] summary{margin-bottom:12px}.insight-category .insight-drill{border:0;padding:13px 3px}.insight-config{border:1px solid var(--border);background:var(--surface);border-radius:18px;padding:20px;margin:22px 0}.insight-config summary{cursor:pointer;font-weight:650}.insight-config form{margin-top:20px}.insight-config fieldset{border:0;border-top:1px solid var(--border);margin:20px 0;padding:16px 0}.insight-config legend{font-weight:650;font-size:14px}.insight-config fieldset details{margin:10px 0}.insight-check{display:flex;align-items:center;gap:12px;padding:12px 0;font-size:13px}.insight-check input{width:19px;height:19px;flex:0 0 19px;accent-color:#10b981}.insight-check b{margin-left:auto;white-space:nowrap}.insight-recurring{display:grid;gap:15px;margin-top:20px}.insight-recurring>.insight-drill{display:grid;gap:12px;padding:20px}.insight-recurring-top{display:flex;gap:12px;align-items:center;min-width:0}.insight-recurring-top>span{min-width:0;flex:1;overflow-wrap:anywhere}.insight-recurring-top>i{width:40px;height:40px;background:linear-gradient(135deg,#2563eb,#06b6d4);color:white;border-radius:13px;display:grid;place-items:center;font-size:25px;font-style:normal}.insight-tags{display:flex;gap:8px;flex-wrap:wrap}.insight-tags>span{font-size:11px;border:1px solid var(--border);border-radius:20px;padding:6px 10px;color:var(--muted)}.insight-liquidity-hero{padding:30px;border:1px solid var(--border);border-radius:24px;background:radial-gradient(at 90% 0,color-mix(in srgb,#3b82f6 18%,transparent),transparent 65%),var(--surface);text-align:center}.insight-liquidity-hero>strong{display:block;font-size:70px;letter-spacing:-3px;color:var(--text);margin:18px 0}.insight-liquidity-hero>strong>small{display:block;font-size:15px;letter-spacing:0;color:var(--muted)}.insight-coverage-track{height:14px;background:var(--surface-subtle);border-radius:20px;overflow:hidden}.insight-coverage-track>i{display:block;height:100%;background:linear-gradient(90deg,#2563eb,#22d3ee,#34d399);border-radius:20px}.insight-liquidity-hero>span:last-child{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);margin-top:8px}.insight-detail{margin-top:28px;padding:22px;border:1px solid #3b82f66b;border-radius:20px;background:var(--surface);scroll-margin-top:100px}.insight-detail h2{font-size:18px}.insight-detail>p{font-size:12px;color:var(--muted)}.insight-detail-items article{display:flex;gap:15px;justify-content:space-between;padding:18px 0;border-top:1px solid var(--border)}.insight-detail-items article>div{min-width:0;overflow-wrap:anywhere}.insight-detail-items article small{display:block;font-size:11px;color:var(--muted);margin-top:6px}.insight-detail-items article p{font-size:12px;white-space:pre-wrap;line-height:1.5}.insight-detail-items article>b{font-size:17px;white-space:nowrap}.insight-drill:focus-visible,.insight-heat button:focus-visible,.insight-switch button:focus-visible{outline:3px solid #3b82f6;outline-offset:3px}
@media(max-width:600px){.insight-metrics{grid-template-columns:1fr 1fr;gap:10px}.insight-metric{padding:15px;border-radius:16px}.insight-metric strong{font-size:22px}.insight-metrics .insight-metric:last-child:nth-child(3){grid-column:1/-1}.insight-period{gap:8px}.insight-period .date-control{flex-basis:100%}.insight-heat{gap:5px}.insight-heat button{min-height:61px;border-radius:9px;padding:10px 2px}.insight-heat button strong{font-size:20px}.insight-heat button span{font-size:8px}.insight-heat.months{grid-template-columns:repeat(3,minmax(0,1fr))}.insight-heat.months button span{font-size:11px}.insight-heat-heading{align-items:center}.insight-heat-heading>strong{font-size:14px}.insight-heat-heading .insight-metric{padding:10px}.insight-heat-heading .insight-metric strong{font-size:18px}.insight-scroll{padding:10px}.insight-tree{height:330px}.insight-tree-leaf{padding:7px}.insight-tree-leaf strong{font-size:11px}.insight-tree-leaf span{font-size:9px}.insight-recurring-top{flex-wrap:wrap}.insight-recurring-top>b{margin-left:52px}.insight-detail{padding:15px}.insight-detail-items article>b{font-size:14px}.insight-category summary{font-size:13px}.insight-check{font-size:12px}.insight-config{padding:16px}.insight-switch button{font-size:12px}.insight-scope{font-size:11px}}
.insight-screen{--surface:var(--white);--text:var(--ink);--border:var(--line)}
.insight-screen svg.insight-waterfall,.insight-screen svg.insight-margin{height:auto;width:100%}
.insight-cascade{padding:24px;border:1px solid var(--border);background:var(--surface);border-radius:22px;margin:22px 0;display:grid;gap:20px}.insight-cascade-row>div:first-child{display:flex;justify-content:space-between;gap:15px;font-size:12px;margin-bottom:9px}.insight-cascade-row>div:first-child strong{font-variant-numeric:tabular-nums;white-space:nowrap}.insight-cascade-track{height:22px;position:relative;background:color-mix(in srgb,var(--surface-subtle) 60%,transparent);border-radius:6px}.insight-cascade-track>b{display:block;position:absolute;top:0;height:100%;border-radius:5px;box-shadow:inset 0 1px 0 #ffffff55,0 3px 5px #00000015}.insight-cascade-track>b.green{background:linear-gradient(110deg,#059669,#34d399)}.insight-cascade-track>b.red{background:linear-gradient(110deg,#e11d48,#fb7185)}.insight-cascade-track>b.blue{background:linear-gradient(110deg,#2563eb,#38bdf8)}.insight-cascade-zero{position:absolute;height:36px;top:-7px;border-left:1px dashed var(--muted);opacity:.35}@media(max-width:600px){.insight-cascade{padding:18px;gap:18px}.insight-screen svg.insight-margin{min-width:0}.insight-margin .insight-svg-label{font-size:19px}}

.insight-heat{touch-action:pan-y;user-select:none;-webkit-user-select:none}.insight-tree-leaf strong{overflow-wrap:anywhere}.insight-tree-leaf.insight-tiny{min-width:0}

.insight-tree-leaf{color:var(--tile-ink);background:linear-gradient(145deg,var(--tile),color-mix(in srgb,var(--tile) 92%,#111827))}.insight-tree-leaf small{color:inherit;opacity:.85}

/* Sculpted category objects float directly on the page, without square tiles. */
svg.category-object{width:58px!important;height:61px!important;overflow:visible;flex-shrink:0;stroke:none;filter:none!important}
.classic-category-grid .category-choice{background:transparent;border:1px solid transparent;border-radius:0;box-shadow:none;min-height:121px;padding:8px 2px;gap:8px;transition:transform .18s ease}
.classic-category-grid .category-choice:nth-child(n)>span{width:64px;height:66px;background:transparent!important;border:0;border-radius:0;box-shadow:none;color:inherit}
.classic-category-grid .category-choice strong{font-size:11px;font-weight:550;line-height:1.4;color:var(--ink)}
.classic-category-grid .category-choice.has-activity strong{color:var(--movement-red)}.classic-category-grid .category-choice.income.has-activity strong{color:var(--movement-green)}
.classic-category-grid .category-choice:hover{background:transparent;box-shadow:none;transform:translateY(-2px)}.classic-category-grid .category-choice:focus-visible{outline:2px solid var(--focus);outline-offset:2px;border-radius:12px}
.category-choice>span svg.category-budget-ring{inset:-5px;width:74px;height:74px;stroke-width:2.2}.category-choice.has-budget svg.category-object{width:51px!important;height:54px!important}
.category-icon:has(.category-object),.ledger-line-icon:has(.category-object),.chosen-icon:has(.category-object){background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0}
.ledger-line-icon svg.category-object{width:40px!important;height:43px!important}.category-icon svg.category-object{width:38px!important;height:40px!important}.chosen-icon svg.category-object{width:44px!important;height:46px!important}
.composer-category>span svg.category-object{width:36px!important;height:39px!important}.category-setting .category-icon{width:40px;height:42px}.category-setting .category-icon svg.category-object{width:36px!important;height:39px!important}
.icon-library-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:9px 4px;max-height:360px;padding:8px 3px}
.icon-library-grid button{background:transparent;border:1px solid transparent;border-radius:0;min-height:91px;padding:7px 1px;gap:3px;position:relative;box-shadow:none}
.icon-library-grid button svg.category-object{width:48px!important;height:51px!important}.icon-library-grid button small{font-size:9px;color:var(--ink)}
.icon-library-grid button[aria-pressed=true]{background:transparent;border-color:transparent}.icon-library-grid button[aria-pressed=true]:after{content:'';width:6px;height:6px;border-radius:50%;background:var(--forest);position:absolute;bottom:0}
.icon-library-grid button:focus-visible{outline:2px solid var(--focus);outline-offset:-2px;border-radius:12px}.icon-catalog-count{font-size:11px;color:var(--muted);line-height:1.5;margin:12px 0 3px}
.icon-library summary{gap:12px;min-height:48px}.icon-library .chosen-icon{width:44px;height:46px;flex-shrink:0}
/* Consistent gutters and generous but bounded controls. */
.main,#view-content{min-width:0}.header-add[hidden]{display:none!important}#view-content>section{max-width:100%}
.classic-pagebar .pagebar-side .icon-btn,.date-control>.icon-btn{width:44px;min-width:44px;height:44px;padding:10px;flex-shrink:0}
.date-control{gap:8px;min-width:0}.date-control .month-select{min-height:44px;padding:9px 12px;gap:8px}.date-control .month-select>span{min-width:0}.date-control .month-select svg{flex-shrink:0}
.currency-picker{min-height:42px;padding:10px 30px 10px 12px;min-width:78px;border-radius:12px}
.insight-period select{min-height:44px;padding:10px 30px 10px 12px}.period-bar{gap:8px;padding:9px 12px}.period-field{min-width:0;padding:3px 6px}.period-field>button{min-height:36px;padding:5px 0;line-height:1.4}.period-bar>.icon-btn{height:44px;min-width:44px;flex-shrink:0}.net-history-actions{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0 22px}
.classic-account-group>h2{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:7px 14px;padding:20px 20px 12px;font-size:13px;font-weight:650;letter-spacing:.45px;color:var(--ink)}
.classic-account-group>h2>strong{margin-left:auto;font-size:16px;font-weight:650;letter-spacing:-.2px;color:var(--ink);font-variant-numeric:tabular-nums;white-space:nowrap}
.classic-account-main small.positive{color:#10996b}.classic-account-main small.negative{color:#e0475b}:root[data-theme=dark] .classic-account-main small.positive{color:#42dfa4}:root[data-theme=dark] .classic-account-main small.negative{color:#ff6b7f}
.debt-pending{border:1px solid var(--card-outline);border-radius:18px;padding:18px;background:var(--white);margin:20px 0}.debt-pending>p{font-size:12px;color:var(--muted);line-height:1.6}.debt-pending .insight-drill{margin-top:10px}.insight-check>span small{display:block;font-size:10px;color:var(--muted);margin-top:4px}
@media(max-width:700px){.main{padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right))}.classic-category-grid{gap:14px 5px;padding:20px 20px 36px}.category-picker-header{padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right))}.composer-header{padding-left:20px;padding-right:20px}.composer-fields{padding-left:20px;padding-right:20px}.transaction-calculator{padding-left:16px;padding-right:16px}.classic-account-group>h2{font-size:12.5px;padding:19px 17px 12px;letter-spacing:.3px}.classic-account-group>h2>strong{font-size:16px}.classic-pagebar{gap:10px}.account-ledger .classic-pagebar h1{overflow-wrap:anywhere}.icon-library-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.insight-period .date-control{padding:6px 8px}.calendar-header .date-control>.icon-btn{width:36px;min-width:36px;height:40px;padding:8px}.calendar-header .month-select{padding:6px 3px;font-size:12px}.calendar-current{min-height:40px;padding:8px}.classic-today .calendar-panel{padding:14px 10px}.today-view-options{margin-bottom:14px!important;gap:6px!important}.today-view-options .text-btn{min-height:38px;padding:8px 12px}.classic-category-grid .category-choice strong{font-size:10.5px}}
@media(max-width:350px){.main{padding-left:16px;padding-right:16px}.classic-category-grid{padding-left:16px;padding-right:16px;grid-template-columns:repeat(3,minmax(0,1fr))}.classic-account-group>h2{font-size:12px}.classic-account-group>h2>strong{font-size:15px}.date-control{gap:3px}.date-control .month-select{padding:7px 6px}}
@media(prefers-reduced-motion:reduce){.classic-category-grid .category-choice{transition:none}}
:root .classic-category-grid .category-choice{box-shadow:none!important}.category-picker-dialog .classic-category-grid{padding-left:20px;padding-right:20px}.category-picker-dialog .category-tools{padding-left:20px;padding-right:20px}
.classic-account-group[data-account-kind] h2>strong,.classic-account-main small.positive{color:#07815c}.classic-account-group[data-account-kind=credit] h2>strong,.classic-account-group[data-account-kind=liability] h2>strong,.classic-account-main small.negative{color:#d73850}:root[data-theme=dark] .classic-account-group[data-account-kind] h2>strong,:root[data-theme=dark] .classic-account-main small.positive{color:#42dfa4}:root[data-theme=dark] .classic-account-group[data-account-kind=credit] h2>strong,:root[data-theme=dark] .classic-account-group[data-account-kind=liability] h2>strong,:root[data-theme=dark] .classic-account-main small.negative{color:#ff6b7f}
.new-account-button{min-height:44px;padding:10px 12px;gap:7px}.new-account-button svg{width:17px;height:17px;flex-shrink:0}.classic-pagebar .new-account-button span{font-size:12px}
.date-control .month-select{min-width:0}.date-control .month-select>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Consistent control geometry: keep SVGs inside the intended touch target. */
.icon-btn{box-sizing:border-box;padding:0;line-height:1;flex-shrink:0}
.icon-btn>svg{display:block;width:20px;height:20px;min-width:0;max-width:100%;max-height:100%;flex:none}
.account-edit-actions{gap:6px;margin-left:12px;align-self:center}
.account-edit-actions .icon-btn{display:inline-grid;place-items:center;width:40px;min-width:40px;height:40px;min-height:40px;padding:10px;border-radius:12px}
.account-edit-actions .icon-btn>svg{width:19px;height:19px}
.account-edit-actions .icon-btn:disabled{opacity:.32}
.account-line-icon:has(.category-object){width:48px;height:50px;background:none!important;box-shadow:none!important;border:0;border-radius:0}
.account-line-icon svg.category-object{width:46px!important;height:48px!important;stroke-width:0}
.icon-library summary{display:flex;align-items:center;gap:12px;padding:12px;line-height:1.4}
.icon-library summary>span:nth-child(2){flex:1;min-width:0;overflow-wrap:anywhere}
.icon-library summary>span:last-child{flex:none;margin-left:auto;font-size:12px}
.composer-account>span>.category-object{width:28px;height:30px;flex:none}
.field select{box-sizing:border-box;min-height:44px;padding:10px 36px 10px 12px;line-height:1.4}
@media(max-width:450px){.classic-account:has(.account-edit-actions){flex-wrap:wrap;padding-bottom:12px}.classic-account:has(.account-edit-actions) .classic-account-main{flex-basis:100%;padding-bottom:6px}.account-edit-actions{margin-left:auto;margin-right:0}.account-edit-actions .icon-btn{width:44px;min-width:44px;height:44px}}

/* Raster artwork keeps its authored colors in both themes. */
svg.category-object.category-raster{overflow:hidden;pointer-events:none;filter:drop-shadow(0 2px 2px #11243b16)}
:root[data-theme=dark] .category-raster{filter:drop-shadow(0 3px 3px #00000038)}
.icon-family-field{margin:14px 0 12px}.icon-family-field select{width:100%}
.icon-library-grid button[hidden]{display:none!important}
.icon-library-grid button:has(.category-raster){border-radius:14px}
.icon-library-grid button[aria-pressed=true]:has(.category-raster){background:color-mix(in srgb,var(--forest) 9%,transparent);outline:1px solid color-mix(in srgb,var(--forest) 35%,transparent);outline-offset:-1px}

/* Keep modal controls inside the visible iPhone safe area, including keyboard resize. */
:root{--dialog-safe-top:env(safe-area-inset-top,0px);--dialog-safe-bottom:env(safe-area-inset-bottom,0px)}
@media(max-width:700px){
  #dialog:not(.category-picker-dialog):not(.transaction-composer){position:fixed;inset:auto 12px auto;top:calc(var(--app-visual-top,0px) + var(--dialog-safe-top) + 12px);margin:0 auto;width:calc(100% - 24px);max-width:520px;max-height:calc(var(--app-visual-height,100dvh) - var(--dialog-safe-top) - var(--dialog-safe-bottom) - 24px);padding:0;overflow:hidden}
  #dialog:not(.category-picker-dialog):not(.transaction-composer)[open]{display:flex;flex-direction:column}
  #dialog>.dialog-header{flex:none;align-items:flex-start;gap:12px;padding:16px 18px 14px;background:var(--paper);border-bottom:1px solid var(--line);position:relative;z-index:2}
  #dialog>.dialog-header>div{flex:1;min-width:0}
  #dialog>.dialog-header h2{font-size:20px;line-height:1.3;margin:5px 0 8px}
  #dialog>.dialog-header .icon-btn{width:44px;height:44px;min-width:44px;min-height:44px;margin:0;padding:12px;align-self:flex-start}
  #dialog:not(.transaction-composer)>#modal-form{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:18px}
  #dialog>.confirmation-copy,#dialog>#modal-error,#dialog>.dialog-footer{margin-left:18px;margin-right:18px}
  #dialog>.dialog-footer{margin-bottom:18px}
  #dialog input:not([type=checkbox]):not([type=color]),#dialog select,#dialog textarea{font-size:16px}
  #dialog .composer-amount input{font-size:36px}
  #dialog .icon-library .search-box{padding:10px 12px;gap:10px}
  #dialog .icon-library .search-box input{border:0;box-shadow:none;background:transparent;padding:0;min-height:28px}
  #dialog.category-picker-dialog,#dialog.transaction-composer{top:var(--app-visual-top,0px);bottom:auto;height:var(--app-visual-height,100dvh);max-height:var(--app-visual-height,100dvh);padding-top:calc(var(--dialog-safe-top) + 8px)}
}

/* The account keeps its chosen visual identity above its ledger. */
.account-ledger-header{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:start;gap:14px;padding:14px 0 24px}
.account-ledger-header>.icon-btn{width:44px;height:44px;margin-top:8px}
.account-ledger-identity{display:flex;flex-direction:column;align-items:center;min-width:0;gap:10px;text-align:center}
.account-ledger-art{display:grid;place-items:center;width:110px;height:114px}
.account-ledger-art svg.category-object{width:104px!important;height:110px!important}
.account-ledger-identity h1{font-size:27px;line-height:1.25;letter-spacing:-.7px;margin:0;max-width:100%;overflow-wrap:anywhere;text-wrap:balance}
@media(max-width:700px){.account-ledger-header{gap:10px;padding:10px 0 22px}.account-ledger-art{width:94px;height:98px}.account-ledger-art svg.category-object{width:88px!important;height:94px!important}.account-ledger-identity h1{font-size:22px;line-height:1.3;letter-spacing:-.4px}}

/* Compact editors and a separate thematic icon library. */
.compact-icon-library{padding:0!important;border:0!important;background:transparent!important}
.chosen-icon-button{width:100%;display:flex;align-items:center;gap:14px;text-align:left;padding:13px 15px;min-height:82px;border:1px solid var(--field-border);border-radius:17px;background:var(--surface-subtle);color:var(--ink)}
.chosen-icon-button>span:nth-child(2){flex:1;min-width:0}.chosen-icon-button small{display:block;color:var(--muted);font-size:11px;margin-bottom:4px}.chosen-icon-name{display:block;font-size:15px}.icon-change-label{display:flex;align-items:center;gap:4px;font-size:12px;color:var(--forest)}.icon-change-label svg{width:16px;height:16px}
.category-editor .form-grid{gap:14px}.category-editor .form-grid>.field.full:has(select){grid-column:auto}.category-editor .form-grid>.field:has([name=name]){grid-column:1/-1}
.category-editor .dialog-header p{display:none}.category-editor .category-management-actions{gap:8px;margin-top:18px}.category-editor .form-note{font-size:11px}
#icon-picker{position:fixed;inset:0;margin:auto;width:min(960px,calc(100vw - 48px));max-width:none;height:min(820px,calc(100dvh - 56px));max-height:none;padding:0;overflow:hidden;border-radius:24px;background:var(--paper);color:var(--ink)}
#icon-picker[open]{display:flex;flex-direction:column}.icon-selection-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px 14px;flex:none}.icon-selection-header h2{font-size:23px;margin:0}.icon-selection-header p{font-size:12px;color:var(--muted);margin:6px 0 0}.icon-selection-header .icon-btn{width:44px;height:44px;min-width:44px}
.icon-selection-search{margin:0 24px 12px;flex:none;padding:11px 14px;gap:10px}.icon-selection-search input{font-size:16px!important;border:0;background:transparent;box-shadow:none;padding:0;min-height:28px}.icon-selection-sections{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 24px 24px}.icon-theme-section{margin:0 0 20px}.icon-theme-section>h3{position:sticky;top:0;background:var(--paper);z-index:1;font-size:15px;padding:14px 0 8px;margin:0}.icon-theme-section[hidden]{display:none}
.icon-theme-section .icon-library-grid{grid-template-columns:repeat(7,minmax(0,1fr));max-height:none;overflow:visible;padding:6px 0;gap:12px 7px}.icon-theme-section .icon-library-grid button{min-height:110px;padding:8px 3px;border-radius:15px}.icon-theme-section .icon-library-grid svg.category-object{width:70px!important;height:74px!important}.icon-theme-section .icon-library-grid small{font-size:11px;line-height:1.3;color:var(--ink)}
.icon-theme-section .icon-library-grid [aria-pressed=true]{outline:1px solid var(--forest);background:var(--surface-subtle)}.icon-search-empty{padding:30px 10px;color:var(--muted);text-align:center}
.account-detail-edit{display:inline-flex;align-items:center;gap:6px;padding:8px 12px;min-height:36px;border-radius:12px;background:var(--surface-subtle);color:var(--forest);font-size:12px}.account-detail-edit svg{width:15px;height:15px}
.account-current-edit{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0;padding:14px;border:1px solid var(--line);border-radius:15px}.account-current-edit>span{font-size:12px;color:var(--muted)}.account-current-edit strong{display:block;font-size:17px;color:var(--red);margin-top:5px}
.settings-session-footer{display:flex;justify-content:center;padding:24px 0 8px}.logout-link{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:10px 16px;background:transparent;color:var(--muted);text-decoration:underline;text-underline-offset:4px;font-size:14px}.logout-link:hover{color:var(--ink)}
.category-child-count{display:flex;align-items:center;justify-content:center;gap:2px;font-size:10px;line-height:1.3;color:var(--muted);margin-top:5px}.category-child-count svg{width:12px;height:12px}.is-organizing .category-choice:after{content:'✎';font-size:21px;right:9px;top:6px;color:var(--forest)}
.movement-type-switch svg.category-raster{width:24px!important;height:25px!important}
.report-family{margin:26px 0 30px}.report-family>h2{font-size:17px;letter-spacing:-.3px;margin:0 0 14px}.report-family .report-menu{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0}
.report-family .report-menu>button{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;position:relative;gap:12px;min-height:236px;padding:20px 17px;text-align:left;border-radius:22px;background:linear-gradient(145deg,var(--surface-light),var(--surface-subtle));border:1px solid var(--card-outline);box-shadow:var(--card-shadow)}
.report-tile-preview{display:block;height:78px;width:112px;max-width:100%}.report-tile-preview .report-preview{width:112px;height:78px;max-width:100%;overflow:visible;filter:drop-shadow(0 3px 3px #0002)}.report-card-copy{display:flex;flex-direction:column;gap:7px;min-width:0}.report-card-copy>strong{font-size:15px;line-height:1.35;letter-spacing:-.2px}.report-family .report-menu small{font-size:11px;line-height:1.5;color:var(--muted);margin:0}.report-card-arrow{position:absolute;right:14px;top:17px;color:var(--muted)}.report-card-arrow svg{width:16px;height:16px}
@media(min-width:701px){#dialog.category-picker-dialog{width:min(1000px,calc(100vw - 72px));max-width:none;max-height:calc(100dvh - 64px)}.category-picker-dialog .classic-category-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:16px 12px;padding:24px 28px 32px}.category-picker-dialog .category-choice{min-height:172px;padding:12px 6px}.category-picker-dialog .classic-category-grid .category-choice:nth-child(n)>span{width:110px;height:116px;flex-shrink:0}.category-picker-dialog .category-choice svg.category-object{width:96px!important;height:102px!important}.category-picker-dialog .category-choice.has-budget svg.category-object{width:90px!important;height:96px!important}.category-picker-dialog .category-choice strong{font-size:13px}.category-picker-dialog .category-budget-ring{width:122px!important;height:122px!important;inset:-6px}.category-picker-dialog .category-tools,.category-picker-dialog .category-picker-header{padding-left:28px;padding-right:28px}}
@media(min-width:701px) and (max-width:1000px){.report-family .report-menu{grid-template-columns:repeat(2,minmax(0,1fr))}.category-picker-dialog .classic-category-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:700px){#icon-picker{inset:auto 10px auto;top:calc(var(--app-visual-top,0px) + var(--dialog-safe-top) + 10px);margin:0;width:calc(100% - 20px);height:calc(var(--app-visual-height,100dvh) - var(--dialog-safe-top) - var(--dialog-safe-bottom) - 20px);border-radius:22px}.icon-selection-header{padding:14px 16px 10px}.icon-selection-header h2{font-size:20px}.icon-selection-search{margin:0 16px 8px}.icon-selection-sections{padding:0 16px 20px}.icon-theme-section .icon-library-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px 4px}.icon-theme-section .icon-library-grid button{min-height:100px;padding:6px 2px}.icon-theme-section .icon-library-grid svg.category-object{width:54px!important;height:58px!important}.icon-theme-section .icon-library-grid small{font-size:10px}.report-family .report-menu{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.report-family .report-menu>button{min-height:224px;padding:16px 12px;gap:10px}.report-tile-preview{width:100px;height:72px}.report-card-copy>strong{font-size:14px}.report-family>h2{font-size:16px}.category-child-count{font-size:9px}.account-current-edit{align-items:flex-start;flex-direction:column}.category-editor .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.category-editor .form-grid>.field.full:has(select){grid-column:auto}}
@media(max-width:350px){.report-family .report-menu{grid-template-columns:1fr}.icon-theme-section .icon-library-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.icon-suggestion-note{display:block;color:var(--muted);font-size:11px;line-height:1.5;margin:7px 2px 0}.icon-suggestion-note[hidden]{display:none}
/* Quicker subcategory navigation and a quiet, always visible period summary. */
.classic-category-grid .category-return:nth-child(n)>span{border:1px solid var(--line)!important;border-radius:50%;background:var(--surface-subtle)!important;width:54px;height:54px;color:var(--forest);align-self:center;margin:6px 0}.category-return>span>svg{width:26px;height:26px}.category-return strong{color:var(--muted)!important}.is-organizing .category-return:after{display:none}.period-summary-line{display:flex;align-items:center;gap:14px;white-space:nowrap;overflow-x:auto;max-width:100%;margin:16px 0 6px;padding:7px 0;font-size:11px;color:var(--muted);scrollbar-width:none;font-variant-numeric:tabular-nums}.period-summary-line::-webkit-scrollbar{display:none}.period-summary-line b{font-weight:550}.period-summary-line>span+span:before{content:'·';margin-right:14px;color:var(--muted)}@media(min-width:701px){.category-picker-dialog .classic-category-grid .category-return:nth-child(n)>span{width:96px;height:102px;margin:7px 0}.category-return>span>svg{width:34px;height:34px}}@media(max-width:450px){.period-summary-line{font-size:10px;gap:8px}.period-summary-line>span+span:before{margin-right:8px}}
/* Monthly budget worksheet: one pass, one save. */
.budget-workspace{max-width:1100px;margin:auto}.plan-currency{display:flex;justify-content:flex-end;margin:-8px 0 18px}.plan-intro{padding:25px 28px;border:1px solid var(--card-outline);border-radius:24px;background:linear-gradient(125deg,var(--surface-light),var(--surface-subtle));box-shadow:var(--card-shadow)}.plan-intro h2{font-size:28px;letter-spacing:-.8px;margin:8px 0}.plan-intro p{color:var(--muted);font-size:13px;line-height:1.6;margin:0;max-width:620px}.plan-intro .eyebrow{font-size:10px;color:var(--forest)}.plan-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0 24px}.plan-metrics>div{padding:19px;border-radius:20px;background:var(--surface-subtle);border:1px solid var(--card-outline);min-width:0}.plan-metrics span,.plan-metrics small{display:block;color:var(--muted);font-size:11px;line-height:1.45}.plan-metrics strong{display:block;font-size:clamp(19px,2.2vw,29px);margin:8px 0;letter-spacing:-.5px;font-variant-numeric:tabular-nums}.plan-toolbar{display:flex;align-items:center;gap:12px;margin-bottom:16px}.plan-toolbar .search-box{flex:1;margin:0;min-width:180px}.plan-toolbar .search-box input{font-size:14px;width:100%;min-width:0}.plan-sheet{border:1px solid var(--card-outline);background:var(--surface-subtle);border-radius:22px;overflow:hidden}.plan-column-labels{display:grid;grid-template-columns:1fr 150px 180px;gap:16px;padding:16px 23px 16px 61px;font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.6px;border-bottom:1px solid var(--line)}.plan-column-labels>span:not(:first-child){text-align:right}.plan-group+.plan-group{border-top:1px solid var(--line)}.plan-group-head{display:flex;align-items:center;padding:8px 17px 8px 8px;gap:8px}.plan-group-head>[data-plan-expand]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-width:36px;min-height:48px;padding:4px;background:transparent;color:var(--muted);border-radius:10px}.plan-group-head>[data-plan-expand]>span{font-size:24px;line-height:22px}.plan-group-head>[data-plan-expand]>small{font-size:9px}.plan-group-spacer{width:36px;flex-shrink:0}.plan-row{display:grid;grid-template-columns:47px minmax(80px,1fr) 150px 180px;align-items:center;column-gap:16px;row-gap:4px;min-width:0;padding:9px 0;flex:1}.plan-category-art{grid-row:1 / 3;display:grid;place-items:center;width:47px;height:50px}.plan-category-art svg.category-object{width:43px!important;height:46px!important}.plan-category-copy{grid-row:1 / 3;min-width:0}.plan-category-copy strong{display:block;font-size:13px;line-height:1.4}.plan-category-copy small{font-size:10px;color:var(--muted)}.plan-row-track{display:block;height:4px;margin-top:8px;border-radius:4px;background:var(--line);overflow:hidden;max-width:140px}.plan-row-track i{display:block;height:100%;background:linear-gradient(90deg,#16a085,#55dba8);border-radius:4px;transition:width .2s}.plan-row-track i.over{background:linear-gradient(90deg,#e44565,#ff8b7e)}.plan-spent{font-variant-numeric:tabular-nums;font-size:13px;text-align:right;grid-column:3;grid-row:1 / 3;color:var(--muted)}.plan-amount{grid-column:4;grid-row:1}.plan-amount input{width:100%;min-width:0;text-align:right;padding:11px 12px;border-radius:12px;border:1px solid var(--card-outline);background:var(--paper);color:var(--ink);font-size:16px;font-weight:550;font-variant-numeric:tabular-nums}.plan-amount input::placeholder{font-size:12px;font-weight:400;color:var(--muted)}.plan-amount input:focus{outline:2px solid var(--forest);outline-offset:1px}.plan-amount input[aria-invalid=true]{border-color:var(--red)}.plan-remaining{grid-column:4;grid-row:2;text-align:right;font-size:10px;color:var(--muted)}.plan-children{padding:0 17px 8px 61px;background:color-mix(in srgb,var(--paper) 30%,transparent)}.plan-children[hidden]{display:none}.plan-children .plan-row+.plan-row{border-top:1px solid var(--line)}.plan-children .plan-category-art{opacity:.92}.plan-children .plan-category-copy strong{font-weight:450;font-size:12px}.plan-allocation-note{font-size:10px;color:var(--muted);padding:0 20px 10px 62px;margin:0;line-height:1.5}.plan-allocation-note[hidden]{display:none}.plan-help{font-size:11px;line-height:1.6;color:var(--muted);margin:16px 2px}.plan-savebar{position:sticky;bottom:16px;z-index:5;display:flex;align-items:center;gap:16px;padding:14px 18px;border:1px solid var(--card-outline);border-radius:18px;background:var(--surface-base);box-shadow:var(--float-shadow);margin:22px 0 8px}.plan-savebar>span{margin-right:auto;color:var(--muted);font-size:12px}.plan-savebar .btn{min-width:160px}.plan-error{padding:15px;color:var(--red);font-size:13px}.plan-empty{padding:30px;text-align:center;color:var(--muted)}.plan-synthetic-parent{padding:18px 0;flex:1;font-size:14px}.plan-savebar button:disabled{opacity:.5;cursor:default}
@media(max-width:700px){.plan-intro{padding:22px 20px}.plan-intro h2{font-size:24px}.plan-metrics{grid-template-columns:1fr 1fr;gap:9px;margin:14px 0 20px}.plan-metrics>div{padding:14px}.plan-metrics>div:first-child{grid-column:1 / -1;display:grid;grid-template-columns:1fr auto;align-items:center}.plan-metrics>div:first-child strong{grid-column:2;grid-row:1 / 3;font-size:27px;margin:0}.plan-metrics strong{font-size:19px}.plan-metrics small{font-size:9px}.plan-toolbar{flex-wrap:wrap;gap:9px}.plan-toolbar .search-box{flex-basis:100%}.plan-toolbar button{font-size:11px}.plan-column-labels{grid-template-columns:1fr 105px;padding:14px 15px;font-size:9px}.plan-column-labels>span:nth-child(2){display:none}.plan-group-head{padding:7px 12px 7px 2px;gap:3px}.plan-group-head>[data-plan-expand],.plan-group-spacer{min-width:25px;width:25px}.plan-row{grid-template-columns:36px minmax(62px,1fr) 109px;gap:3px 7px;padding:8px 0}.plan-category-art{width:36px;height:44px}.plan-category-art svg.category-object{width:34px!important;height:38px!important}.plan-category-copy{grid-row:1;grid-column:2}.plan-category-copy strong{font-size:12px}.plan-row-track{max-width:90px;margin-top:6px}.plan-spent{grid-column:2;grid-row:2;font-size:10px;text-align:left}.plan-spent:before{content:'Gastado ';font-size:9px}.plan-category-art{grid-row:1 / 3}.plan-amount{grid-column:3;grid-row:1}.plan-amount input{padding:10px 8px}.plan-remaining{grid-column:3;grid-row:2;font-size:9px}.plan-children{padding:0 12px 7px 30px}.plan-allocation-note{padding-left:33px;padding-right:12px;font-size:9px}.plan-savebar{bottom:calc(80px + env(safe-area-inset-bottom));gap:8px;padding:12px;border-radius:15px;flex-wrap:wrap}.plan-savebar>span{width:100%;font-size:10px}.plan-savebar .text-btn{margin-right:auto;font-size:12px}.plan-savebar .btn{min-width:140px;font-size:12px}.plan-intro p{font-size:12px}}

.plan-skeleton-row{display:grid;grid-template-columns:44px 1fr 150px;gap:20px;align-items:center;padding:22px;border-bottom:1px solid var(--line)}.plan-skeleton-row:last-child{border:0}.plan-skeleton-row>span:nth-child(2){display:grid;gap:9px}.plan-skeleton-row>.skeleton-amount{height:40px;border-radius:12px}@media(max-width:700px){.plan-skeleton-row{grid-template-columns:36px 1fr 100px;gap:10px;padding:18px 14px}}
/* Report interactions remain clear in both themes and within mobile safe margins. */
.tree-tooltip{position:fixed;z-index:1100;width:min(300px,calc(100vw - 32px));padding:22px;border:1px solid var(--border);border-radius:20px;background:var(--surface);color:var(--text);box-shadow:0 16px 50px #0006;display:grid;gap:10px;box-sizing:border-box}.tree-tooltip>strong{padding-right:35px;overflow-wrap:anywhere}.tree-tooltip>b{font-size:25px}.tree-tooltip>span{font-size:13px;color:var(--muted)}.tree-tooltip-close{position:absolute;right:8px;top:8px;min-width:44px;min-height:44px}.chart-zero-reference{stroke:var(--text);stroke-width:1.5;stroke-dasharray:5 4;opacity:.65}.insight-period select{min-height:44px;max-width:100%;padding:10px 32px 10px 12px}.insight-period label{min-width:0}.insight-period{align-items:center}
.account-current-edit .negative{color:var(--red)}
/* Muted heat palette: distinct levels without luminous, competing tiles. */
.heat-1{background:#426da8;color:#fff}.heat-2{background:#397989;color:#fff}.heat-3{background:#39715f;color:#fff}.heat-4{background:#b3a16a;color:#242012}.heat-5{background:#b47d58;color:#291b16}.heat-6{background:#a8525d;color:#fff}
