/* LongMoney: rounded, bright, tactile. Presentation only; component layouts own flows. */
@font-face{font-family:Nunito;src:url('assets/fonts/Nunito.ttf') format('truetype');font-weight:200 1000;font-style:normal;font-display:swap}
@font-face{font-family:LongMoneyIcons;src:url('assets/fonts/UiconsRounded.woff2') format('woff2');font-weight:400;font-style:normal;font-display:block}
:root{--accent:#49830e;--brand:#58cc02;--brand-dark:#46a302;--soft:#f0f8e8;--ink:#3c3c3c;--text:#3c3c3c;--muted:#737b70;--line:#e3e8df;--red:#d93643;--green:#388413;--blue:#1385ba;--surface:#fff;--canvas:#f8faf6;font-family:Nunito,system-ui,sans-serif;color:var(--ink);background:var(--canvas)}
body,button,input,select,textarea{font-family:Nunito,system-ui,sans-serif}
body{color:var(--ink);background:#eff3eb;font-weight:600}
#app,#app.wallet-page,#app.cashflow-page{--accent:#49830e;--line:#e3e8df;--muted:#737b70;--green:#388413;--red:#d93643;background:var(--canvas)!important;color:var(--ink)}
h1,h2,h3,strong{font-weight:850}h1,h2,h3{letter-spacing:-.3px}
button{font-weight:750;-webkit-tap-highlight-color:transparent}
button:focus-visible,summary:focus-visible,a:focus-visible{outline:3px solid #1cb0f6;outline-offset:3px}
input,textarea,select{color:var(--ink);background:#fafcf8;border:2px solid var(--line);border-radius:14px;font-weight:650}
input:focus,textarea:focus,select:focus{outline:0;border-color:#7fc941;box-shadow:0 0 0 3px #58cc0217}
input::placeholder,textarea::placeholder{color:#848c80;font-weight:600}
.muted,small{color:var(--muted)}
.income{color:var(--green)}.expense,.error{color:var(--red)}
.primary,.fab{background:var(--brand);color:#234b08;border:0;border-bottom:4px solid var(--brand-dark);box-shadow:none;border-radius:16px;font-weight:900}
.secondary{background:#eaf7df;color:#437712;border:2px solid #c7e9af;border-bottom-width:4px;border-radius:16px}
.danger{background:#fff0f0;color:#c82e3e;border:2px solid #ffd3d5;border-bottom-width:4px;border-radius:16px}
.primary:active:not(:disabled),.secondary:active:not(:disabled),.danger:active:not(:disabled),.fab:active{transform:translateY(2px);border-bottom-width:2px}
button:disabled{opacity:.45}
.card,.summary,.budget-card,.settings-list{background:white;border:2px solid var(--line);border-bottom-width:4px;border-radius:22px;box-shadow:none}
.page-header,.cash-header,.wallet-page .wallet-header,.report-header{background:white;color:var(--ink);border-bottom:2px solid var(--line)}
.page-header h1,.report-header h1{color:var(--ink);font-weight:900}
.page-header button,.cash-header button,.wallet-page .wallet-header button{color:var(--accent)}
.bottom,.wallet-page .bottom{background:white;border-top:2px solid var(--line)}
.bottom button,.wallet-page .bottom button{color:#7c8675;font-weight:800;gap:4px}
.bottom button.active,.wallet-page .bottom button.active{color:#49830e}
.bottom .navicon{display:grid;place-items:center;border:2px solid transparent;border-radius:14px;width:52px;height:35px;font-size:24px}
.bottom button.active .navicon{background:#e9f8dd;border-color:#bce499}
.bottom button.active .app-icon{color:#58a700}
.app-icon{display:inline-flex;align-items:center;justify-content:center;width:1em;height:1em;font-size:inherit;color:var(--icon-color,currentColor);vertical-align:middle;flex-shrink:0;line-height:1;position:relative}
.app-icon.plain{color:inherit}.uicon{font-family:LongMoneyIcons!important;font-weight:400!important;font-style:normal;line-height:1;-webkit-font-smoothing:antialiased}
.app-icon img{display:block;width:100%;height:100%;object-fit:contain}.legacy-icon{line-height:1}
.asset-credits{font-size:11px;text-align:center;line-height:1.7;color:var(--muted);padding:12px 8px 20px}.asset-credits a{color:var(--accent);text-decoration:underline;text-underline-offset:2px}
.settings-page{padding-top:6px}.settings-section h2{font-size:13px;text-transform:uppercase;letter-spacing:1px;color:#75816b;font-weight:900}
.settings-list{overflow:hidden}.settings-row{padding-block:14px;border-color:var(--line)}
.settings-icon{width:44px;height:44px;border-radius:14px;background:#f1f7ec;font-size:25px;color:var(--accent);display:grid;place-items:center}
.settings-row:nth-child(2n) .settings-icon{background:#edf7fc}.settings-row:nth-child(3n) .settings-icon{background:#fff5dd}
.settings-row strong{font-size:15px;font-weight:850}.settings-row small{font-size:12px}.settings-chevron{color:#a1ad98}
/* Compact headers and ledger controls keep their existing positions. */
select.ledger-switch,button.ledger-switch,.page-header .ledger-switch,.dialog-head .ledger-switch{background-color:#f4f9ef;border:2px solid #d9e9cc;color:#487820;box-shadow:0 2px 0 #e2edd9;font-weight:850}
.report-header .scope-button.ledger-switch{background-color:#f4f9ef;color:#487820;border-color:#d9e9cc}
.cash-header .cash-modes button.active{background:#e9f8dd;color:#49830e;border-radius:14px}
.cash-header.compact .cash-collapse{background:#f4f9ef;border:2px solid #d9e9cc;color:#487820;box-shadow:0 2px 0 #e2edd9}
.cash-expanded{background:#f0f8e8;color:var(--ink)}
.cash-expanded:before,.cash-expanded:after{display:none}.cash-expanded h1{color:#3e6724}
.cash-ledgers button{color:#63705b}.cash-ledgers button.active{color:#49830e;background:white;border-color:#b8df9c}
.cash-sheet{background:var(--canvas);border-radius:28px 28px 0 0}
.cashflow-page main.scroll{background:#f0f8e8}
.cashflow-page .fab{background:var(--brand);color:#234b08;border-radius:17px;border-bottom:4px solid var(--brand-dark);box-shadow:0 4px 12px #527a2220;font-weight:900}
.cash-sheet .card{box-shadow:none}.cash-net strong{letter-spacing:-.7px}
.cash-calendar-toolbar button,.cash-calendar-toolbar select{color:var(--accent)}
.cash-calendar-toolbar select{background:var(--soft);border-radius:13px;font-weight:800}
.cash-calendar .calendar .selected,.date-days button[aria-pressed=true]{background:#58a700;color:white;font-weight:900}
.cash-calendar .calendar button[aria-current=date],.date-days button[aria-current=date]:not([aria-pressed=true]){background:#e5f6fd;color:#087ba9;box-shadow:inset 0 0 0 2px #78ccec}
.cash-calendar .calendar button[aria-current=date].selected,.date-days button[aria-current=date][aria-pressed=true]{background:#58a700;color:white;box-shadow:inset 0 0 0 2px #2b7806}
.calendar-day-summary{border-top:2px solid var(--line)}
.tx .symbol,.cash-sheet .tx .symbol{background:#f0f7e9;border-radius:13px;color:#548438}
.tx .name{font-weight:800}.tx .right strong{font-weight:850;font-variant-numeric:tabular-nums}
/* Wallet */
.wallet-page .wallet-overview{background:#eef9e4;color:#3d6127;border-bottom:2px solid #d8eacb;padding-bottom:20px}
.wallet-overview:before,.wallet-overview:after{display:none}
.wallet-page .wallet-overview h1{color:#3d6127}.wallet-page .wallet-overview h2,.wallet-page .wallet-totals span{color:#6b805d}
.wallet-page .wallet-net,.wallet-page .wallet-totals strong{color:#3d6127;font-weight:900}
.wallet-page .wallet-overview .fx-status{color:#6b805d}
.wallet-page .wallet-folder .account-row{border:2px solid var(--line);border-bottom-width:4px;background:white;border-radius:20px}
.wallet-page .wallet-folder .symbol{background:#eef8e6;color:#58a700;font-size:25px}
.wallet-page .wallet-account-value strong{font-weight:850}
/* Shared dialogs, sheets and forms */
dialog,dialog.wallet-dialog{background:var(--canvas);color:var(--ink);border-radius:24px;box-shadow:0 16px 50px #263f2526}
dialog.full{border-radius:0}
dialog::backdrop{background:#203c235c}
dialog .dialog-head,.wallet-dialog .dialog-head,.metadata-manager .dialog-head,.metadata-history .dialog-head,.budget-dialog .dialog-head,.recurring-dialog .dialog-head,.category-reference .dialog-head,.ledger-manager .dialog-head,.loan-dialog .dialog-head{background:white;color:var(--ink);border-bottom:2px solid var(--line)}
dialog .dialog-head .link,.metadata-manager .dialog-head .link,.metadata-history .dialog-head .link{color:var(--accent)}
dialog .dialog-head h2{font-weight:900}
dialog[class] .dialog-head{background:white;color:var(--ink);border-bottom:2px solid var(--line)}
dialog[class] .dialog-head button,dialog[class] .dialog-head .link{color:var(--accent)}
dialog[class] .dialog-head select.ledger-switch{background-color:#f4f9ef;color:#487820;border-color:#d9e9cc;box-shadow:0 2px 0 #e2edd9}
dialog.entry-date-dialog .date-actions .date-today{color:white}
.budget-limits .dialog-head .segment{background:var(--soft)}
.budget-limits .dialog-head .segment button{color:var(--accent)}
.category-reference .category-kind-tabs{background:#edf7e4;color:#597b3c}
.category-reference .category-kind-tabs button.active{background:white;color:#49830e}
dialog .dialog-icon{border-radius:13px}dialog .dialog-icon:hover{background:var(--soft)}
dialog .dialog-icon .app-icon{font-size:20px}dialog .dialog-save .app-icon{font-size:23px}
.category-kind-tabs .app-icon{font-size:18px;margin-right:5px}
.budget-icon-picker .app-icon{font-size:30px}
.budget-field[data-icon] .app-icon{font-size:22px}
dialog :is(.metadata-footer,.ledger-footer,.organizer-footer,.recurring-footer,.budget-footer,.ux-footer)>button:first-child:not(.danger){background:var(--brand);color:#234b08;border-bottom:4px solid var(--brand-dark);border-radius:16px;font-weight:900}
.segment{background:#edf3e7;border-radius:15px;padding:4px}.segment button{font-weight:850;border-radius:12px}
.segment button.active{background:white;color:var(--accent);box-shadow:0 2px 0 #cedac2}
.picker-row.selected{background:#eff9e6;color:var(--accent)}
.organizer-row,.wallet-dialog .organizer-row{background:white;border-color:var(--line)}
.organizer-help,.organizer-status,.metadata-order-hint{color:var(--muted)}
.drag-handle,.ledger-handle,.category-handle{color:#98a48c}
.drop-target{background:#e5f7d8;color:#49830e;outline-color:#58cc02}
.drop-before:before,.drop-after:after{background:#58cc02}
.metadata-symbol,.ledger-symbol,.account-manager-symbol,.category-symbol{background:#f0f6ea;color:#52832e;border-radius:15px}
.category-symbol .app-icon,.entry-category-symbol .app-icon{font-size:30px}
.category-order-group>summary .app-icon{font-size:21px}
.category-group-pills .app-icon{font-size:18px}
.category-icon-grid button{border:2px solid #e4ebdd;border-bottom-width:4px;background:white;border-radius:15px}
.category-icon-grid button .app-icon{font-size:26px}
.category-icon-grid button[aria-pressed=true],.ledger-icon-grid button[aria-pressed=true]{border-color:#92d456;background:#edfbdc;box-shadow:none}
.category-icon-library h3{color:#67765c;font-weight:850}.category-toolbar{background:var(--canvas)}
.ledger-icon-grid button{background:white;border:2px solid var(--line);border-bottom-width:4px;border-radius:15px}
.ledger-icon-grid .app-icon{font-size:28px}.ledger-symbol .app-icon{font-size:25px}
.tag-switch input:checked{background:#58cc02}
/* Composer: retain the five-column keypad, inline notes and all saved positions. */
.composer .dialog-head{background:white;color:var(--ink)}
.group-tabs button.active{color:var(--accent);border-color:#58cc02}
.composer .category-grid button{background:white;border:2px solid var(--line);border-bottom-width:4px;border-radius:20px;color:#737b70;font-weight:750}
.composer .category-grid button.active{background:#effade;border-color:#94d75a;color:#49830e}
.entry-category-symbol{background:transparent;color:var(--accent)}
.composer .entry-lower{background:#eef7e5;border-top:2px solid #d9e8ca;color:var(--ink);border-radius:24px 24px 0 0}
.composer .entry-meta button{background:white;color:#597746;border:1px solid #dce8d2;border-radius:12px;font-weight:850}
.composer .note-line{background:white;border:2px solid #dce8d2;border-radius:15px}
.composer .note-line button{color:var(--ink)}.composer .note-line [data-hash]{background:#edf7e2;color:var(--accent);border-radius:11px}
.composer .entry-calculator{background:#eef7e5;color:var(--ink)}
.composer .calculator-top input{background:transparent;color:var(--ink);font-weight:900}
.composer .calculator-top .amount-line>small{color:#7d8d6e}
.composer .entry-kind-row button{color:#75826b;font-weight:850}.composer .entry-kind-row button.active{background:#d8efc1;color:#467820}
.composer .keypad button{background:white;color:#41483b;border-radius:13px;border:1px solid #dae5d0;border-bottom:4px solid #d2dfc7;font-weight:850;box-shadow:none}
.composer .keypad button.function,.composer .keypad button.operator,.composer .keypad button.next{background:#e0edcf;color:#497323;border-bottom-color:#c4d9af}
.composer .keypad button.entry-date{background:#d9f2fa;color:#137da4;border-color:#b1dbea;border-bottom-color:#8dc9df}
.composer .keypad button.entry-date span,.composer .keypad button.entry-date small{color:#137da4}
.composer .keypad button.save{background:var(--brand);color:#234b08;border-color:#58cc02;border-bottom-color:#46a302;font-weight:900}
.composer .keypad button:active:not(:disabled){transform:translateY(2px);border-bottom-width:2px}
.note-inline-actions,.note-inline-actions button,.note-inline-actions>span{color:#527836}
.note-chip-strip .label-chip,.note-chip-strip[data-selected-labels] .label-chip{background:white;color:#54812d;border:1px solid #cde1b8}
.note-suggestion-empty,.note-inline-notice,.note-inline-notice button{color:#667b56}
.loan-entry-fields [data-counterparty],.loan-entry-fields [data-loan-account]{background:white;border:2px solid var(--line);border-bottom-width:4px;border-radius:18px}
/* Reporting and planning */
.analysis-tabs{background:#f0f7e9;color:#738364;border-bottom:2px solid var(--line)}
.analysis-tabs button.active{color:var(--accent);border-bottom-color:#58cc02}
.analysis-dimensions button.active{background:#eaf7df;color:var(--accent)}
.timeline-pane{background:#426a29;color:white}.timeline-pane small{color:#ddebd3}
.report-rank.selected,.report-data-row.selected,.report-total{background:#eff8e6}
.budget-icon{background:#eff7e7;border-radius:15px;display:grid;place-items:center;width:46px;height:46px;padding:0}
.budget-icon .app-icon{font-size:29px}.budget-sub-icon .app-icon{font-size:22px}
.budget-track{background:#e6efdf;height:7px}.budget-track>span{background:#78ca3e}
.budget-chip .app-icon,.budget-scope-row .app-icon{font-size:18px}
.budget-status{color:#75836a}.budget-ring{background:conic-gradient(#78ca3e var(--progress),#edf2e8 0)}
.budget-icon-row button{border-radius:14px;background:#f0f7e9}.budget-icon-row .app-icon{font-size:25px}
.recurring-row,.recurring-plan-card{border-color:var(--line);border-radius:18px}
.recurring-modal-actions button:last-child{background:var(--brand);color:#234b08;border-bottom:3px solid var(--brand-dark);font-weight:900}
#toast{background:#3e582d;color:white;border-radius:15px;font-weight:750}
@media(max-width:360px){.settings-row strong{font-size:14px}.settings-icon{width:38px;height:38px;font-size:23px}.category-symbol .app-icon,.entry-category-symbol .app-icon{font-size:26px}}
@media(max-height:680px){.composer .keypad button{border-radius:10px;border-bottom-width:3px}.composer .entry-lower{border-radius:18px 18px 0 0}.composer .category-grid button{border-radius:15px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
/* Shared static icon library and compact, readable surfaces. */
svg text,canvas,.chart-tooltip,.axis-label{font-family:Nunito,system-ui,sans-serif}
.icon-picker{width:min(520px,calc(100vw - 24px));max-height:82dvh;border-radius:24px}
.icon-picker .dialog-body{padding:12px;min-height:260px}
.icon-picker-tools{display:flex;gap:8px;align-items:center}.icon-picker-tools input[type=search]{flex:1;min-width:0;margin:0;height:44px}.icon-picker-tools button{flex:none;min-height:44px;padding:6px 12px;font-size:12px}
.icon-pack-tabs{display:flex;gap:6px;overflow-x:auto;padding:10px 0;scrollbar-width:thin;flex:none}
.icon-pack-tabs button{white-space:nowrap;min-height:38px;padding:6px 12px;background:#f3f6ef;border:2px solid transparent;border-radius:12px;font-size:12px;flex:none}
.icon-pack-tabs button[aria-selected=true]{background:#e8f8db;border-color:#a7df7c;color:#42780e}
.icon-result-count{font-size:12px;margin:4px 0 10px;color:var(--muted)}
.shared-icon-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}
.shared-icon-grid button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:80px;min-width:0;padding:8px 3px;background:#fafcf7;border:2px solid #e6ecdf;border-bottom-width:4px;border-radius:16px}
.shared-icon-grid button[aria-pressed=true]{background:#eaf8df;border-color:#86ce51}.shared-icon-grid button:hover{background:#f0f8e8;border-color:#a7d087}
.shared-icon-grid .app-icon{font-size:30px}.shared-icon-grid .bank-icon{width:54px;height:30px;max-width:100%}.shared-icon-grid button>span:last-child:not(.app-icon){font-size:10px;line-height:1.25;overflow-wrap:anywhere}
.icon-choice-field{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:10px 12px;margin:8px 0 14px;min-height:62px;background:#f7fbf2;border:2px solid var(--line);border-bottom-width:4px;border-radius:18px}
.icon-choice-field>.app-icon{font-size:34px;width:44px}.icon-choice-field>span:nth-child(2){flex:1}.icon-choice-field small{display:block;font-size:11px;font-weight:600;margin-top:2px}
.uploaded-icon{border-radius:8px;overflow:hidden}.choice-symbol .app-icon,.metadata-symbol .app-icon{font-size:26px}.symbol .bank-icon{width:36px;height:30px}
.ledger-switch-shell{display:inline-flex;max-width:100%;min-width:0;vertical-align:middle}.ledger-native{display:none!important}
button.ledger-popup-trigger{width:200px;max-width:100%;height:42px;min-height:42px;justify-content:flex-start;background:#f6faef;border:2px solid #dfeacd;border-bottom-width:3px;border-radius:14px;color:var(--accent);box-shadow:none}
.ledger-popup-trigger>.app-icon{font-size:17px}.ledger-popup-trigger .scope-name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ledger-popup-trigger .ledger-switch-chevron{margin-left:auto}
.category-ledger-label .ledger-switch-shell{margin:0}.category-ledger-label{margin:0!important;padding:8px 12px!important;gap:8px!important}.category-toolbar .category-kind-tabs{margin-top:0;border-top:1px solid var(--line)}
.entry-top>.ledger-switch-shell{display:flex;justify-content:center;margin:0 auto 8px}.dialog-head .ledger-switch-shell{max-width:100%}.dialog-head h2:has(.ledger-switch-shell){min-width:0}
.ledger-picker{width:min(420px,calc(100vw - 28px));border-radius:24px}.ledger-picker .dialog-body{padding:8px 12px 16px}
.ledger-option{display:flex;align-items:center;gap:12px;width:100%;min-height:60px;margin:6px 0;padding:10px 12px;text-align:left;border:2px solid #e4eadf;border-bottom-width:3px;border-radius:16px;background:#fff}
.ledger-option[aria-pressed=true]{background:#edf9e2;border-color:#9bd56f}.ledger-option>span:nth-child(2){flex:1;overflow-wrap:anywhere}.ledger-option>.app-icon{font-size:24px}.ledger-option .ledger-symbol{width:34px;height:34px}.ledger-option .ledger-symbol .app-icon{font-size:24px}
.card,.summary,.budget-card{padding:12px;border-radius:18px}.settings-row{padding-block:10px}.settings-section{margin-bottom:14px}
.card.day-card,.cash-sheet .card.day-card{padding:0 12px;margin:0 0 9px;border:1px solid var(--line);border-bottom:3px solid #dde5d6;border-radius:20px;box-shadow:0 2px 5px #34482206}
.day-card>summary,.cash-sheet .day-card>summary{min-height:42px;padding:8px 0;font-size:12px;gap:8px;line-height:1.3;color:var(--muted)}
.day-card:not([open])>summary{min-height:42px}.day-card .day-totals{font-size:10px;text-align:right;white-space:normal;max-width:64%}.day-card .fold-content{padding:0}
.day-card .tx,.cash-sheet .day-card .tx{padding:8px 0;min-height:60px;gap:9px}.day-card .tx:last-child{border-bottom:0}
.day-card .tx .symbol,.cash-sheet .day-card .tx .symbol{width:38px;height:38px;flex:0 0 38px;border-radius:13px;font-size:24px;background:#f0f6e9}
.day-card .tx .name,.cash-sheet .day-card .tx .name{font-size:13px;font-weight:800}.day-card .tx .right strong,.cash-sheet .day-card .tx .right strong{font-size:13px;font-weight:850}.day-card .tx .sub,.cash-sheet .day-card .tx .sub{font-size:10px;line-height:1.4;color:#7c8378}
.day-card .tx .right{max-width:46%}.day-card .tx>.grow{min-width:0}.day-card .tx .name,.day-card .tx .sub{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.recurring-card{padding:12px}.budget-list-card{padding:12px 14px}.budget-list-identity{gap:8px}.entity-summary{padding:12px}.entity-summary .net{margin-block:8px}.loan-tabs{gap:8px}.metadata-row{min-height:54px}
.timeline-pane{background:#f7fbf1;color:var(--ink);border:2px solid #e2ebd9;border-radius:20px;margin:8px 10px 0;padding-inline:10px;box-shadow:0 3px 0 #e3eadc}
.timeline-pane select{background:white;color:var(--ink);border:2px solid var(--line);border-radius:12px}.timeline-pane .axis-label{fill:#77816f;font-weight:700}.timeline-pane .report-insight,.timeline-pane .analysis-selection,.timeline-pane .link{color:#507d2e}.timeline-pane small,.report-legend small{color:#728269}.report-legend button.active{background:white;border:1px solid #d9e8cc;border-radius:10px}.report-legend button{border:1px solid transparent;color:var(--ink)}
.line-chart path{stroke-linecap:round;stroke-linejoin:round}.line-chart circle{stroke:white;stroke-width:2}.chart-slice{stroke-width:1.4;stroke-linejoin:round}.chart-slice.selected{stroke:#477b20;stroke-width:2}.slice-percent{font-weight:900;fill:#274411}.donut-center strong{font-weight:900}.report-chart-pane:not(.timeline-pane){border-radius:20px}.budget-track{height:9px;border-radius:10px}.budget-track>span{background:#58cc02;border-radius:10px}.budget-track>span.over{background:#ff4b4b}
@media(max-width:360px){.shared-icon-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.icon-picker-tools button{padding-inline:8px}.ledger-popup-trigger{font-size:12px}.day-card .tx .name,.cash-sheet .day-card .tx .name{font-size:12px}.day-card .tx .right strong,.cash-sheet .day-card .tx .right strong{font-size:12px}}.icon-picker .dialog-body{display:flex;flex-direction:column;overflow:hidden}.icon-picker-tools,.icon-pack-tabs{flex-shrink:0}.icon-picker-results{min-height:0;overflow-y:auto;max-height:56dvh;padding:0 1px 3px}.shared-icon-grid.bank-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.bank-grid .bank-icon{width:62px;height:34px}.bank-grid button>span:last-child{word-break:normal;overflow-wrap:normal;font-size:10px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cash-sheet{padding-top:12px}.cash-sheet .cash-summary{padding:10px 12px;margin-bottom:12px;border-radius:22px}.cash-period{min-height:46px;padding-bottom:5px}.cash-book{width:38px;height:38px}.cash-net{padding:9px 4px}.cash-summary-totals button{padding-block:4px;line-height:1.4}.cash-net strong{font-size:25px}.cash-summary-totals{padding-bottom:0}.entity-summary>.entity-scope{margin:8px 0 10px}.entity-scope .ledger-switch-shell{flex:1;min-width:0}.entity-scope button.ledger-popup-trigger{width:100%}
.entity-pie path,.entity-pie circle[role=button]{stroke:white;stroke-width:2;stroke-linejoin:round}.entity-pie text{font-weight:850;fill:#345c18}.line-chart [data-chart-cursor]{stroke:#6a8d50}.line-chart rect[role=button]:focus-visible{stroke:#58a700;fill:#58cc0214}
@media(max-width:360px){.shared-icon-grid.bank-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.budget-ledger-first{display:flex;justify-content:center;padding:6px 0 12px;border-bottom:1px solid var(--line);margin-bottom:8px}.budget-ledger-first>label{display:flex;align-items:center;gap:10px;margin:0;font-size:12px;color:var(--muted)}.choice-symbol:has(.bank-icon){width:50px;background:white}.choice-symbol .bank-icon{width:46px;height:30px}.category-detail-symbol .bank-icon{width:54px;height:34px}
/* One control language across forms, filters and navigation. */
dialog,button,input,textarea,select,option,optgroup,output,summary{font-family:Nunito,system-ui,sans-serif}
.primary,.secondary,.danger{font-weight:850;font-size:14px}
.select-native{display:none!important}.select-shell{display:inline-flex;min-width:0;width:100%;vertical-align:middle}
.select-trigger{display:flex;align-items:center;gap:10px;min-height:44px;width:100%;padding:10px 12px;border:2px solid var(--line);border-bottom-width:3px;border-radius:14px;background:#fafcf7;text-align:left;color:var(--ink);font-size:13px;font-weight:750}
.select-trigger>span:first-child{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select-chevron{width:7px;height:7px;border-right:2px solid #779268;border-bottom:2px solid #779268;transform:rotate(45deg);flex:none;margin:0 3px 4px}
.select-trigger:hover:not(:disabled){border-color:#b8dca1}.select-trigger:disabled{opacity:1;color:#7b8474;background:#f0f3ed;border-style:dashed;cursor:not-allowed}
.select-picker{width:min(440px,calc(100vw - 24px));max-height:78dvh;background:white;border-radius:22px}.select-picker .dialog-body{padding:10px 12px;display:flex;flex-direction:column;overflow:hidden}.select-picker input{margin-bottom:8px;flex:none}.select-options{overflow:auto;min-height:0;padding:2px}
.select-option{display:flex;align-items:center;gap:12px;width:100%;text-align:left;min-height:46px;padding:10px 12px;margin:4px 0;border:2px solid transparent;border-radius:13px;background:#f7f9f3;font-size:14px}.select-option>span:first-child{flex:1}.select-option[aria-pressed=true]{background:#eaf8df;border-color:#a8db82;color:#437814}.select-option:hover{background:#edf6e6}
.cash-calendar-toolbar .select-shell{width:90px;flex:none}.cash-calendar-toolbar .select-trigger{min-height:36px;padding:5px 9px}.toolbar>.select-shell,.row>.select-shell{width:auto;flex:1}.timeline-pane .select-trigger{background:white}
.bottom,.wallet-page .bottom{gap:6px;padding:6px 8px calc(6px + env(safe-area-inset-bottom));height:78px}
.bottom button,.wallet-page .bottom button{min-width:0;flex:1;border:2px solid transparent;border-radius:16px;gap:3px;font-size:12px;font-weight:850}
.bottom button.active,.wallet-page .bottom button.active{background:#ecf9e2;border-color:#b8e398;color:#49830e}
.bottom .navicon,.bottom button.active .navicon{border:0;background:transparent;width:32px;height:28px;border-radius:0;font-size:23px}
.settings-icon,.settings-row:nth-child(2n) .settings-icon,.settings-row:nth-child(3n) .settings-icon{background:#f0f7e9;color:var(--accent)}
.settings-icon .app-icon,.dialog-head button>.app-icon,.bottom .app-icon,.wallet-header .app-icon,.cash-header button>.app-icon{color:var(--accent)}
.shared-icon-grid button{min-height:62px;aspect-ratio:1;padding:10px;gap:0}.shared-icon-grid .app-icon{font-size:36px}.shared-icon-grid button>span.icon-choice-name{display:none}
.color-icon{filter:none}.icon-choice-field>.color-icon{font-size:36px}
.icon-pack-tabs{scrollbar-width:none}.icon-pack-tabs::-webkit-scrollbar{display:none}
.wallet-header button>.app-icon,.dialog-head .dialog-icon>.app-icon,.dialog-head .round-button>.app-icon{font-size:22px}
.wallet-page .wallet-accounts{padding:12px 12px 18px}
.wallet-page .wallet-folder{padding:0;margin-bottom:12px;border:1px solid #dfe7d7;border-bottom:3px solid #dfe7d7;border-radius:20px;box-shadow:none}
.wallet-page .wallet-folder>summary{padding:11px 13px;min-height:44px;background:#f0f5e9;font-weight:850;color:#536747}.wallet-page .wallet-folder>summary strong{font-size:11px;font-weight:650;color:#6d7c62}
.wallet-page .wallet-folder .fold-content{padding:0 12px}
.wallet-page .wallet-folder .account-row{display:grid;grid-template-columns:40px minmax(0,1fr) minmax(75px,42%);gap:6px 10px;margin:0;padding:13px 0;min-height:72px;border:0;border-bottom:1px solid #e8eddf;border-radius:0;background:white;width:100%}
.wallet-page .wallet-folder .account-row:last-child{border:0}.wallet-page .wallet-folder .symbol{width:40px;height:40px;grid-row:1;background:#f1f8e9;border-radius:12px}
.wallet-account-info{min-width:0}.wallet-page .wallet-folder .account-title{font-size:14px;font-weight:800;line-height:1.3}.wallet-account-value{max-width:none;min-width:0}.wallet-account-value strong{font-size:14px;font-weight:850;line-height:1.4}.wallet-account-value small{font-size:10px;line-height:1.4}.wallet-credit-details{grid-column:2/-1;width:auto;min-width:0}.wallet-page .wallet-folder .account-kind{font-size:10px;margin-top:4px}
.loan-tabs button{border:2px solid #e2e8dc;border-bottom-width:4px;background:white;color:#4e5c45;font-weight:850;padding:13px;gap:6px;border-radius:18px;opacity:1}
.loan-tabs .lend,.loan-tabs .borrow{background:white;color:#4e5c45}.loan-tabs .lend.active,.loan-tabs .borrow.active{background:#eaf8df;border-color:#96d661;color:#437814}.loan-tabs strong{font-size:16px;font-weight:850}.loan-tabs span{font-weight:750}
.loan-bottom>button{background:#eaf7df;color:#437712;border:2px solid #c2e3a6;border-bottom-width:4px;font-weight:850;font-size:14px;border-radius:16px;flex:1;min-height:46px}.loan-bottom>button:hover{background:#ddf1cb}
.account-usage-manager.saving-order .dialog-body{opacity:1}.account-usage-manager.saving-order button:disabled{opacity:1}.account-usage-manager .account-usage{opacity:1;font-weight:900}.account-usage.included{background:#58a700;border-color:#58a700;color:white}.account-usage.excluded{background:#e8f4da;border-color:#9dcc78;color:#52851e}
@media(max-width:360px){.wallet-page .wallet-accounts{padding:10px 8px}.wallet-page .wallet-folder .fold-content{padding:0 10px}.wallet-page .wallet-folder .account-row{grid-template-columns:34px minmax(0,1fr) minmax(70px,43%);gap:6px 7px}.wallet-page .wallet-folder .symbol{width:34px;height:36px}.wallet-account-value strong,.wallet-page .wallet-folder .account-title{font-size:12px}.bottom button,.wallet-page .bottom button{font-size:11px}.loan-bottom>button{padding-inline:8px}}

/* Stable category tiles and a calculator that stays mounted while editing notes. */
.composer .category-grid{grid-auto-rows:108px;align-content:start;align-items:start;gap:9px;min-height:0}
.composer .category-grid button,.composer .category-grid button.active{display:grid;grid-template-rows:34px 42px;align-content:start;justify-items:center;align-items:start;gap:6px;height:108px;min-height:108px;padding:10px 4px 8px;border-width:2px 2px 4px;border-radius:18px;overflow:hidden}
.composer .entry-category-symbol{width:34px;height:34px;min-height:34px;background:transparent;flex:none}
.composer .entry-category-symbol .app-icon{font-size:30px;width:30px;height:30px}
.composer .category-grid button>span:last-child{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-height:14px;height:42px;max-width:100%;overflow:hidden;overflow-wrap:anywhere;font-size:11px;text-align:center;color:#536049}
.composer .category-grid button.active>span:last-child{color:#3d7014}
.composer .entry-calculator{height:clamp(246px,38vh,320px);display:flex;flex-direction:column;flex:none}
.composer .keypad{flex:1;min-height:0;grid-template-rows:repeat(4,minmax(0,1fr))}
.composer .keypad button.equals{grid-column:4;grid-row:1;background:#dfedce;color:#3e6e1d;font-size:26px}
.composer .keypad button.operators{font-size:25px;background:#dfedce;color:#3e6e1d}
.composer .keypad button.next{grid-column:5;grid-row:3;background:#e5f2d9;color:#3f711a;font-weight:850;font-size:12px}
.composer .keypad button.save.with-next{grid-row:4}
.composer .note-editing>.entry-calculator{display:flex}
.composer.note-open{height:var(--note-rest-height)!important;max-height:var(--note-rest-height)!important}
.composer .note-editing{flex-shrink:0}.entry-note-inline{max-height:220px}.entry-note-inline .note-editor textarea{height:86px;min-height:68px}
.composer .note-editing .note-chip-strip{padding-block:5px}.composer .note-editing .label-chip{min-height:38px;padding-block:7px}
@media(max-height:680px){.composer .entry-calculator{height:238px}.entry-note-inline .note-editor textarea{height:68px}.entry-note-inline{max-height:170px}.note-inline-actions{min-height:32px}.note-inline-actions button{min-height:32px}.composer .category-grid{grid-auto-rows:98px}.composer .category-grid button,.composer .category-grid button.active{height:98px;min-height:98px;padding-top:5px}}
/* Rounded dialogs, separated controls and stronger field contrast. */
dialog,dialog.full,dialog.full.composer,dialog.full.category-reference,dialog.full.wallet-dialog,dialog.full.cash-date-dialog{border-radius:22px;overflow:hidden}
.select-picker,.ledger-picker,.entry-sheet{border-radius:22px}
label:has(>.ledger-switch-shell){display:flex;align-items:center;gap:10px;flex-wrap:wrap}
label:has(>.ledger-switch-shell)>.ledger-switch-shell{flex:none}
.loan-tabs .lend{background:#fff0ef;border-color:#edc3bc;color:#993e36}.loan-tabs .lend.active{background:#ffded9;border-color:#dd8678;color:#853126}
.loan-tabs .borrow{background:#eaf3ff;border-color:#b8d5f3;color:#276499}.loan-tabs .borrow.active{background:#d8ebff;border-color:#71a9db;color:#20557f}
.loan-bottom>[data-new-loan=lend]{background:#ffded9;border-color:#e5a094;color:#853126}.loan-bottom>[data-new-loan=borrow]{background:#d8ebff;border-color:#8bbce4;color:#20557f}

.cash-collapse b{display:grid;place-items:center;font-size:20px;width:22px;height:22px;line-height:1}.cash-collapse b .app-icon{font-size:20px}
.cash-header:not(.compact) .cash-collapse{min-width:40px;min-height:40px}.cash-header.compact .cash-collapse b{font-size:20px}
.cash-date-dialog .dialog-body{padding:12px 14px 16px}.cash-date-presets{display:grid;gap:6px}.cash-date-presets>button{min-height:44px;padding:10px 13px;border:1px solid #d9e2d1;border-radius:12px;background:#f6f9f1;color:#3f4c35;font-size:14px}
.cash-date-presets>button:hover{background:#e8f5dc;border-color:#a9ce8e}.cash-date-custom{gap:12px;margin-top:18px;padding-top:14px;border-top:2px solid #dfe8d6}.cash-date-custom p{margin:0;color:#526746;font-weight:850}
.cash-date-custom label{border:0;gap:14px;min-height:48px;color:#3f4c35}.cash-date-custom input,.cash-date-filter input{border:2px solid #d6e1cc;border-radius:12px;background:#f9fcf5;color:#3b502e;padding:9px;min-height:44px}
.about-link{display:block;margin:8px auto;font-size:12px}.asset-credits{text-align:left;font-size:12px;line-height:1.9;padding:4px 0}
.button-small-icon{display:inline-flex;align-items:center;justify-content:center;font-size:14px;vertical-align:middle;margin-right:5px;line-height:1}

.cash-collapse b span{opacity:1;overflow:visible;font-size:20px}

.composer .entry-category-symbol{font-size:30px;line-height:34px}


.composer .keypad .operator-symbols{display:grid;grid-template-columns:repeat(2,16px);grid-template-rows:repeat(2,16px);gap:1px 3px;font-size:18px;font-weight:850;line-height:16px;text-align:center;pointer-events:none}
#invoice-sync{position:fixed;z-index:30;bottom:calc(76px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);max-width:calc(100% - 32px);padding:8px 14px;border:1px solid #b9d59f;border-radius:18px;background:#f2faeb;color:#426824;box-shadow:0 2px 8px #20301018;font:700 12px Nunito,sans-serif;white-space:nowrap}
#invoice-sync.failed{background:#fff3de;border-color:#e4bc73;color:#7b4a09}
#invoice-sync[hidden]{display:none}
.outbox-item{padding:12px 0;border-bottom:1px solid #dce4d5}.outbox-item p{overflow-wrap:anywhere}.outbox-item .actions{flex-wrap:wrap;gap:8px}
