@charset "UTF-8";
:root{--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px)}
.mobile-brand{display:none}
.ledger-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}.ledger-summary>div{padding:16px;min-width:0}.ledger-summary span{display:block;font-size:11px;color:var(--muted);margin-bottom:7px}.ledger-summary strong{display:block;font-size:21px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.original-currency{display:block;color:var(--muted);font-size:10px;font-weight:400;margin-top:4px}@media(max-width:650px){.ledger-summary{gap:8px}.ledger-summary>div{padding:13px 10px}.ledger-summary strong{font-size:17px}.form-row.operation-options{grid-template-columns:1fr 1fr;gap:10px}}
.login-page{min-height:100dvh;background:#121212;color:#f5f5f5}.login-shell{max-width:480px;margin:0 auto;padding:calc(38px + env(safe-area-inset-top)) 22px calc(25px + env(safe-area-inset-bottom));min-height:100dvh;display:flex;flex-direction:column;justify-content:center}.login-brand{display:flex;align-items:center;justify-content:center;gap:11px;font-size:25px;font-weight:750;letter-spacing:-1px;margin-bottom:36px}.login-card{background:linear-gradient(135deg,#232325,#19191b);border:1px solid #333336;border-radius:28px;padding:32px 27px;text-align:center}.login-lock{display:grid;place-items:center;width:54px;height:54px;border:1px solid #3e3e42;border-radius:17px;background:#2b2b2e;font-size:30px;color:#20d66b;margin:0 auto 23px}.login-eyebrow{font-size:9px;letter-spacing:2px;color:#a3a3a8}.login-card h1{font-size:34px;line-height:1.2;letter-spacing:-1.2px;font-weight:700;margin:16px 0}.login-description{font-size:13px;color:#b6b6bb;line-height:1.8;margin-bottom:25px}.login-button{display:flex;width:100%;min-height:52px!important;font-size:13px!important;border-radius:14px!important}.login-button[aria-disabled=true]{opacity:.5;pointer-events:none}#login-code-block{display:flex;align-items:center;justify-content:center;gap:16px;font-size:11px;margin-top:24px}#login-code{font:600 22px ui-monospace,Consolas,monospace;letter-spacing:4px}.login-status{font-size:11px;color:#a3a3a8;line-height:1.8;margin:19px 0 0;min-height:38px}.login-install{padding:23px 12px;color:#a3a3a8;font-size:12px;text-align:center}.login-install summary{cursor:pointer;min-height:28px}.login-install p{font-size:11px;line-height:1.9;margin:12px 0 0}.login-footer{color:#77777d;text-align:center;font-size:10px;margin-top:15px}
:root{color-scheme:light;--bg:#f5f5f5;--surface:#fff;--surface2:#eeeeee;--text:#191919;--muted:#737373;--line:#e3e3e3;--green:#008c3b;--green-soft:#e0f5e7;--accent:#00c853;--danger:#c74949;--shadow:0 14px 70px #00000008;--sidebar:#0c0c0c;--font:"Segoe UI Variable","Segoe UI",system-ui,-apple-system,sans-serif}
[data-theme=dark]{color-scheme:dark;--bg:#121212;--surface:#1c1c1c;--surface2:#262626;--text:#f5f5f5;--muted:#a3a3a8;--line:#303033;--green:#20d66b;--green-soft:#163021;--accent:#00c853;--danger:#ff8989;--shadow:0 14px 70px #0002;--sidebar:#0c0c0c}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font);font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit;border:0;background:none}button:disabled{cursor:wait;opacity:.55}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:3px solid #00c853;outline-offset:4px}input:focus,select:focus,textarea:focus{outline:2px solid #00c853;outline-offset:1px}button{transition:background .17s,transform .17s}button:not(:disabled):active{transform:translateY(1px)}[hidden]{display:none!important}.sidebar{position:fixed;inset:0 auto 0 0;width:236px;background:var(--sidebar);color:#a3a3a8;padding:32px 20px 20px;display:flex;flex-direction:column;z-index:30}.brand{display:flex;gap:11px;align-items:center;color:#ffffff;font-size:23px;font-weight:650;letter-spacing:-.8px;padding:0 7px}.brand-sub{display:block;color:#909096;font-size:10px;font-weight:400;letter-spacing:.1px;margin-top:1px}.workspace{border:1px solid #ffffff16;border-radius:10px;margin:35px 2px 32px;padding:12px 9px;display:flex;gap:9px;align-items:center;font-weight:550;font-size:12px;color:#f0f0f2}.workspace-avatar,.avatar{display:grid;place-items:center;width:31px;height:31px;border-radius:9px;background:#00c853;color:#07170d;font-size:12px;font-weight:700}.workspace small{display:block;font-size:10px;color:#a3a3a8;font-weight:400;margin-top:2px}.workspace-lock{margin-left:auto;color:#a3a3a8;font-size:18px}.nav-label{font-size:9px;letter-spacing:1.4px;margin:0 15px 12px;color:#77777d}.nav-item{display:flex;align-items:center;gap:12px;width:100%;padding:13px 14px;border-radius:8px;font-size:12px;text-align:left;margin:2px 0;color:#a3a3a8}.nav-item>span{width:20px;font-size:19px;line-height:1;text-align:center}.nav-item:hover{background:#ffffff08;color:#fff}.nav-item.active{background:#00c85318;color:#f5f5f5}.nav-item.active>span{color:#00c853}.sidebar-bottom{margin-top:auto}.sidebar-note{padding:28px 15px 20px;margin-top:24px}.note-symbol{font-size:26px;color:#20d66b;display:block;margin-bottom:9px}.sidebar-note strong{font-size:14px;line-height:1.6;font-weight:500;color:#e6e6e8}.sidebar-note p{font-size:11px;line-height:1.8;color:#909096;margin-top:9px}.bot-connection{display:flex;align-items:center;gap:8px;font-size:10px;margin:21px 15px 2px;color:#a3a3a8}.dot{width:6px;height:6px;border-radius:50%;background:#00c853}.dot.off{background:#d6aa65}.app-shell{margin-left:236px;min-height:100dvh;display:flex;flex-direction:column}.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 44px;border-bottom:1px solid var(--line);font-size:11px}.breadcrumb{color:var(--muted)}.breadcrumb-divider{margin:0 12px;color:#77777d}.topbar-actions{display:flex;align-items:center;gap:15px}.icon-button{display:grid;place-items:center;min-width:36px;min-height:36px;border-radius:50%;font-size:20px;color:var(--muted)}.icon-button:hover{background:var(--line)}.avatar{width:32px;height:32px;border-radius:50%;margin-left:9px}.demo-banner{padding:10px 44px;display:flex;gap:20px;justify-content:space-between;background:var(--green-soft);color:var(--green);font-size:11px}.demo-banner button{text-decoration:underline;white-space:nowrap}.demo-banner span{font-weight:500}main{width:100%;max-width:1510px;padding:35px 44px 20px;margin:auto;flex:1}h1,h2,h3,p{margin-top:0}h1{font-size:29px;line-height:1.3;font-weight:600;letter-spacing:-1px;margin-bottom:6px}h2{font-size:16px;font-weight:600;letter-spacing:-.35px;margin-bottom:0}h3{font-size:15px;font-weight:600}.muted,.subtext{color:var(--muted)}.subtext{font-size:11px;margin:0}.page-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:30px}.header-actions{display:flex;gap:10px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:10px 16px;border-radius:8px;font-size:11px;font-weight:600;white-space:nowrap;border:1px solid var(--line);background:var(--surface)}.btn:hover{background:var(--surface2)}.btn.primary{background:#00b94d;color:#fff;border-color:#00b94d}.btn.primary:hover{background:#00a845}.btn.soft{background:var(--green-soft);color:var(--green);border-color:transparent}.btn.danger{color:var(--danger)}.btn .plus{font-size:19px;font-weight:300;line-height:1}.filters{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:24px}.segmented{display:flex;gap:3px;background:var(--surface2);padding:4px;border-radius:9px}.segmented button{padding:8px 16px;border-radius:6px;font-size:11px;color:var(--muted)}.segmented button.active{background:var(--surface);color:var(--text);box-shadow:0 2px 5px #00000010}.segmented select{border:0;background:transparent;font-size:11px;color:var(--muted);width:95px;padding:6px}.filter-right{display:flex;align-items:center;gap:12px}.select,input,select,textarea{border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:8px;padding:10px 12px;max-width:100%;font-size:12px}.select{min-height:38px;font-size:11px}.date-range{font-size:10px;color:var(--muted)}.panel{background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow)}.income-panel{padding:25px 27px 18px;margin-bottom:18px}.income-summary{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.eyebrow{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:9px}.tag{background:var(--green-soft);color:var(--green);border-radius:5px;padding:3px 7px;font-size:9px;font-weight:500;white-space:nowrap}.total{font-size:49px;font-weight:550;letter-spacing:-2.6px;line-height:1.25;font-variant-numeric:tabular-nums;margin:7px 0 9px}.total .currency{font-size:.63em;color:var(--muted);font-weight:400;margin-left:3px}.comparison{font-size:10px;color:var(--muted);display:flex;gap:7px;align-items:center;flex-wrap:wrap}.positive{color:var(--green)}.negative{color:var(--danger)}.chart-mode{display:flex;gap:2px;background:var(--surface2);border-radius:7px;padding:3px}.chart-mode button{font-size:10px;padding:6px 10px;border-radius:5px;color:var(--muted)}.chart-mode button.active{background:var(--surface);color:var(--text);box-shadow:0 1px 3px #0000000a}.chart-container{height:228px;position:relative;margin-top:19px}.chart-container svg{width:100%;height:100%;overflow:visible}.chart-grid{stroke:var(--line);stroke-width:1;stroke-dasharray:3 4}.chart-label{fill:var(--muted);font:9px var(--font)}.chart-bar{fill:#248d50;transition:fill .2s}.chart-bar.today{fill:#00c853}.chart-bar:hover{fill:#39de7d}.chart-line{fill:none;stroke:#20d66b;stroke-width:2.5;stroke-linejoin:round}.chart-caption{display:flex;justify-content:space-between;font-size:9px;color:var(--muted);margin-top:5px}.legend-dot{display:inline-block;width:7px;height:7px;border-radius:2px;background:#00c853;margin-right:6px}.empty-chart{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:linear-gradient(transparent,var(--surface));gap:7px}.empty-chart strong{font-weight:500;font-size:14px}.empty-chart p{font-size:11px;color:var(--muted);margin:0}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0 23px}.metric{padding:18px 20px;position:relative;min-width:0}.metric-label{color:var(--muted);font-size:10px;margin-bottom:9px}.metric-value{font-size:23px;letter-spacing:-.8px;font-weight:550;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.metric-note{font-size:9px;color:var(--muted);margin-top:7px}.metric-mark{position:absolute;right:16px;top:16px;width:26px;height:26px;border-radius:8px;background:var(--surface2);color:var(--green);display:grid;place-items:center;font-size:16px}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:20px 0}.section-panel{padding:23px 25px}.panel-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:23px;gap:12px}.text-link{font-size:10px;color:var(--muted);min-height:28px}.text-link:hover{color:var(--green)}.source-row{margin:0 0 17px}.source-info{display:flex;align-items:center;gap:8px;font-size:11px;margin-bottom:8px}.source-color{height:8px;width:8px;border-radius:3px;display:inline-block;flex-shrink:0}.source-amount{margin-left:auto;font-weight:600}.source-percent{min-width:35px;text-align:right;color:var(--muted);font-size:10px}.track{height:5px;background:var(--surface2);border-radius:6px;overflow:hidden}.track>span{height:100%;display:block;border-radius:inherit;background:var(--green)}.sources-footer{border-top:1px solid var(--line);padding-top:12px;margin-top:20px;font-size:10px;color:var(--muted)}.goal-panel{background:linear-gradient(140deg,var(--surface),var(--green-soft));position:relative;overflow:hidden}.goal-title{display:flex;gap:9px;align-items:center}.goal-icon{font-size:20px;color:var(--green)}.goal-amount{font-size:30px;font-weight:550;letter-spacing:-1px;margin-top:5px}.goal-amount small{font-size:14px;font-weight:400;color:var(--muted);letter-spacing:0}.goal-progress-label{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);margin:19px 0 9px}.goal-panel .track{height:7px;background:#00c85320}.goal-panel .track>span{background:#00c853}.goal-foot{display:flex;justify-content:space-between;gap:15px;border-top:1px solid var(--line);margin-top:23px;padding-top:17px}.goal-foot span{display:block;font-size:9px;color:var(--muted)}.goal-foot strong{display:block;margin-top:4px;font-size:13px;font-weight:550}.table-panel{padding:22px 25px;margin-top:23px}.table-panel .panel-header{margin-bottom:13px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:11px;text-align:left}th{font-weight:400;color:var(--muted);font-size:9px;padding:11px 8px;border-bottom:1px solid var(--line);white-space:nowrap}td{padding:14px 8px;border-bottom:1px solid var(--line)}tr:last-child td{border-bottom:0}td.amount-cell{text-align:right;font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums}th.amount-cell{text-align:right}.source-cell{display:flex;align-items:center;gap:8px;white-space:nowrap}.transaction-icon{height:29px;width:29px;background:var(--green-soft);color:var(--green);border-radius:9px;display:grid;place-items:center;font-size:15px;margin-right:3px}.comment-cell{color:var(--muted);max-width:270px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.row-button{font-size:18px;min-width:35px;min-height:32px;border-radius:7px}.row-button:hover{background:var(--surface2)}.empty{padding:40px 20px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;gap:10px}.empty-icon{font-size:28px;color:var(--green);background:var(--green-soft);width:62px;height:62px;border-radius:20px;display:grid;place-items:center;margin-bottom:4px}.empty h3{margin:0;font-weight:500}.empty p{font-size:12px;color:var(--muted);max-width:340px;margin:0 0 8px;line-height:1.8}.app-footer{display:flex;justify-content:space-between;align-items:center;padding:25px 44px;font-size:10px;color:var(--muted);margin-top:auto}.app-footer button{font-size:10px}.mobile-nav{display:none}.loading{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:55vh;color:var(--muted);font-size:12px}.spinner{width:25px;height:25px;border:2px solid var(--line);border-top-color:var(--green);border-radius:50%;animation:spin .7s linear infinite;margin:15px}@keyframes spin{to{transform:rotate(360deg)}}.fade-in{animation:appear .25s ease-out}@keyframes appear{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}dialog{border:1px solid var(--line);border-radius:20px;background:var(--surface);color:var(--text);padding:0;width:min(500px,calc(100% - 28px));max-height:90dvh;box-shadow:0 30px 120px #00000066}dialog::backdrop{background:#000000aa;backdrop-filter:blur(4px)}.modal-head{display:flex;align-items:center;justify-content:space-between;padding:24px 26px 0}.modal-head h2{font-size:21px;font-weight:550;letter-spacing:-.7px}.modal-body{padding:20px 26px 26px}.form-group{margin-bottom:17px}.form-group label{display:block;font-size:11px;color:var(--muted);margin-bottom:7px}.form-group input,.form-group select,.form-group textarea{width:100%;min-height:43px}.form-group textarea{min-height:83px;resize:vertical}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}.amount-input{font-size:40px!important;letter-spacing:-1.5px;font-weight:550;padding:7px 0!important;border:0!important;border-bottom:1px solid var(--line)!important;border-radius:0!important;min-height:65px!important;background:transparent!important}.amount-wrap{display:flex;align-items:center;gap:15px}.amount-wrap span{font-size:24px;color:var(--muted)}.form-hint{font-size:10px;color:var(--muted);line-height:1.7;margin:6px 0}.form-error{color:var(--danger);font-size:12px;white-space:pre-line}.form-submit{width:100%;margin-top:8px;min-height:46px;font-size:12px}.modal-actions{display:flex;gap:10px;margin-top:20px}.modal-actions .btn{flex:1}.toasts{position:fixed;bottom:28px;right:28px;z-index:100;display:flex;flex-direction:column;gap:10px;max-width:400px}.toast{background:#262626;color:#ffffff;padding:14px 20px;border:1px solid #ffffff15;border-radius:12px;box-shadow:0 8px 40px #0002;font-size:12px;animation:appear .2s}.toast.error{background:#552626}.error-box{padding:20px;border-radius:10px;color:var(--danger);background:var(--surface);border:1px solid var(--line);font-size:12px}.history-tools{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:18px}.history-tools input{flex:1;min-width:150px}.history-tools .range-input{flex:0;width:110px;min-width:100px}.pagination{display:flex;align-items:center;justify-content:space-between;margin-top:16px;color:var(--muted);font-size:11px}.list-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.source-card{display:flex;align-items:center;gap:13px;padding:20px}.source-card .source-color{width:14px;height:14px}.source-card h3{margin:0;font-size:14px}.source-card p{margin:3px 0 0;font-size:10px;color:var(--muted)}.source-card .row-button{margin-left:auto}.settings-layout{display:grid;grid-template-columns:1.4fr 1fr;gap:22px}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px 0;border-bottom:1px solid var(--line)}.setting-row:last-child{border-bottom:0}.setting-row strong{display:block;font-weight:500;font-size:12px}.setting-row small{display:block;color:var(--muted);font-size:10px;max-width:330px;margin-top:4px;line-height:1.7}.switch{appearance:none;width:34px;height:20px;min-height:20px;background:#64646b;border-radius:20px;padding:0;position:relative;cursor:pointer;flex-shrink:0;border:0}.switch:before{content:"";position:absolute;width:14px;height:14px;border-radius:50%;background:white;left:3px;top:3px;transition:transform .15s}.switch:checked{background:#00b94d}.switch:checked:before{transform:translateX(14px)}.setup-note{padding:17px;border:1px solid var(--line);border-radius:10px;font-size:11px;line-height:1.9;background:var(--surface2)}code{font:11px Consolas,monospace;background:var(--surface2);padding:2px 5px;border-radius:4px}.record-value{font-size:32px;margin:14px 0 4px;font-weight:550;letter-spacing:-1px}.record-card{padding:25px}.record-card .eyebrow{font-size:12px}.badges{display:flex;gap:10px;flex-wrap:wrap;margin-top:17px}.badge{padding:14px 18px;border:1px solid var(--line);border-radius:12px;min-width:120px;text-align:center;background:var(--surface)}.badge span{display:block;font-size:24px;color:var(--green)}.badge.locked{opacity:.5}.badge strong{font-weight:500;font-size:11px;display:block;margin-top:7px}.heatmap{display:grid;grid-template-columns:repeat(13,1fr);gap:5px;margin-top:18px}.heat-cell{aspect-ratio:1;background:var(--surface2);border-radius:4px;min-width:0}.heat-cell.l1{background:#17462b}.heat-cell.l2{background:#227b41}.heat-cell.l3{background:#20a653}.heat-cell.l4{background:#00c853}.heat-cell.uncovered{opacity:.3}.assistant-intro{font-size:36px;font-weight:500;letter-spacing:-1.4px;line-height:1.3;max-width:500px;margin-bottom:15px}.assistant-panel{padding:35px;max-width:800px;margin:30px auto}.assistant-panel textarea{width:100%;height:135px;margin-top:15px}.suggestions{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.suggestions button{border:1px solid var(--line);border-radius:8px;font-size:10px;padding:9px 12px}.upload-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.upload-actions .btn:last-child{margin-left:auto}.preview-list{max-height:300px;overflow:auto}.preview-item{padding:12px 0;border-bottom:1px solid var(--line);font-size:11px}.preview-item strong{font-size:14px}.custom-dates{display:flex;align-items:center;gap:10px;margin-bottom:18px}.custom-dates label{font-size:10px;color:var(--muted)}.custom-dates input{padding:7px;font-size:11px}.full-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:22px 0}.notice{padding:12px 15px;border-radius:9px;background:var(--green-soft);color:var(--green);font-size:11px;margin-bottom:18px}.secondary-menu{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}.weekdays{display:flex;align-items:flex-end;gap:12px;height:120px;margin-top:20px}.weekday{flex:1;min-width:0;text-align:center;color:var(--muted);font-size:10px}.weekday-bar{background:#00b94d;border-radius:5px 5px 0 0;margin-bottom:8px;min-height:2px}.locked-screen{min-height:60vh;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:20px}html.no-motion *,html.no-motion *:before{animation:none!important;transition:none!important}[data-theme=dark] .segmented{background:#242424}[data-theme=dark] .chart-bar{fill:#248d50}[data-theme=dark] .chart-bar.today{fill:#00d45b}
@media(min-width:1500px){main{padding-top:42px}.total{font-size:57px}.chart-container{height:260px}.metric-value{font-size:27px}}
@media(max-width:1150px){.sidebar{width:205px;padding-inline:14px}.app-shell{margin-left:205px}main{padding:28px}.topbar,.app-footer{padding-inline:28px}.total{font-size:43px}.metric{padding:16px}.metric-value{font-size:21px}.metric-mark{display:none}.filters{align-items:flex-start}.date-range{display:none}.section-panel{padding:20px}.goal-amount{font-size:26px}.settings-layout{grid-template-columns:1fr}}
@media(max-width:850px){.sidebar{width:180px;padding-inline:10px}.brand{font-size:21px;gap:8px}.brand-sub{font-size:8px}.workspace{padding:10px 6px}.nav-item{font-size:11px;padding-inline:12px;gap:9px}.nav-label{font-size:8px;margin-left:12px}.app-shell{margin-left:180px}main{padding:24px 20px}.topbar{padding-inline:20px}.app-footer{padding-inline:20px}.page-header{align-items:flex-start;margin-bottom:24px}h1{font-size:25px}.header-actions{gap:6px}.header-actions .btn{padding:9px 11px}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.two-col{grid-template-columns:1fr}.segmented button{padding:8px 11px}.filter-right{gap:6px}.income-panel{padding:23px 20px 15px}.full-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.list-grid{grid-template-columns:1fr}}
@media(max-width:650px){.sidebar{display:none}.app-shell{margin-left:0}.topbar{height:60px;padding:0 20px;padding-top:env(safe-area-inset-top)}.topbar-actions{gap:7px}.avatar{margin-left:4px}.demo-banner{padding:10px 16px;flex-wrap:wrap;gap:3px;font-size:10px}.demo-banner button{padding:4px 0}main{padding:25px 16px 16px;margin:0}.page-header{gap:12px;margin-bottom:23px}h1{font-size:26px;letter-spacing:-.8px}.subtext{font-size:10px}.header-actions .btn.export{font-size:0;width:38px;padding:8px}.header-actions .btn.export:before{content:'↓';font-size:17px}.header-actions .btn.primary{font-size:10px;padding:9px 11px;min-height:38px}.header-actions .plus{font-size:17px}.filters{gap:10px;flex-wrap:wrap;margin-bottom:17px}.segmented{flex:1;justify-content:space-between;width:100%;gap:0}.segmented button{padding:8px 13px;font-size:11px}.segmented select{width:79px;padding:4px;font-size:10px}.filter-right{width:100%;justify-content:space-between}.filter-right .select{width:100%;background:transparent;border:0;padding:2px 0;min-height:25px;color:var(--muted)}.date-range{display:block;white-space:nowrap;font-size:9px}.income-panel{padding:20px 18px 15px;border-radius:13px}.income-summary{gap:7px}.total{font-size:43px;letter-spacing:-2px;margin:8px 0}.eyebrow{font-size:10px}.tag{font-size:8px}.chart-mode{margin-top:2px}.chart-mode button{padding:5px 7px;font-size:9px}.chart-container{height:190px;margin-top:16px}.chart-caption{font-size:8px}.comparison{font-size:9px;max-width:260px}.metric-grid{gap:10px;margin:12px 0 18px}.metric{padding:15px 16px}.metric-label{font-size:10px}.metric-value{font-size:23px}.metric-note{font-size:9px}.two-col{gap:15px;margin:16px 0}.section-panel{padding:21px}.table-panel{padding:20px 16px;margin-top:17px}.comment-cell{display:none}th,td{padding-inline:4px;font-size:10px}.transaction-icon{height:25px;width:25px;font-size:13px}.source-cell{gap:5px}.app-footer{padding:20px 17px 100px;font-size:9px}.app-footer button{font-size:9px}.mobile-nav{position:fixed;bottom:0;left:0;right:0;background:var(--surface);border-top:1px solid var(--line);padding:8px 10px calc(9px + env(safe-area-inset-bottom));display:flex;align-items:center;justify-content:space-around;z-index:40}.mobile-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:var(--muted);font-size:20px;min-width:48px;min-height:43px}.mobile-nav span{font-size:9px}.mobile-nav button.active{color:var(--green)}.mobile-nav .mobile-add{border-radius:14px;background:#00b94d;color:white;width:44px;height:44px;font-size:28px;min-width:44px;position:relative;top:-7px;box-shadow:0 5px 20px #00c85326}.toasts{bottom:90px;left:16px;right:16px;max-width:none}dialog{border-radius:17px}.modal-head{padding:22px 22px 0}.modal-body{padding:18px 22px 24px}.form-row{gap:10px}.history-tools{gap:8px}.history-tools input{font-size:11px}.history-tools .range-input{width:90px;min-width:80px}.full-metrics{gap:9px}.record-card{padding:21px}.record-value{font-size:28px}.assistant-panel{padding:23px;margin-top:0}.assistant-intro{font-size:29px}.upload-actions{gap:7px}.upload-actions .btn{font-size:10px;padding:8px 11px}.source-info{font-size:11px}.settings-layout{gap:15px}.secondary-menu{gap:6px}.secondary-menu .btn{font-size:10px;padding:8px 12px}.custom-dates{flex-wrap:wrap;gap:7px}.custom-dates input{width:125px}.goal-amount{font-size:29px}.badge{min-width:100px;padding:14px 12px}}
@media(prefers-reduced-motion:reduce){*,*:before{animation:none!important;transition:none!important}}

@media(max-width:650px){.header-actions .btn.primary{font-size:0;width:38px;padding:8px}.header-actions .btn.primary .plus{font-size:22px}.income-summary{display:block}.chart-mode{width:fit-content;margin-top:15px}.chart-mode button{font-size:10px;padding:6px 10px}}

/* Graphite surfaces and vivid green accents, matched to the supplied reference. */
.sidebar{border-right:1px solid var(--line)}
.panel{border-radius:22px;box-shadow:none}
.btn{border-radius:12px;min-height:44px;font-size:12px}
.btn.primary{color:#07170d;font-weight:700}
.nav-item{border-radius:12px}
.workspace{background:#191919;border-color:#303033;border-radius:16px}
.brand{font-weight:750;letter-spacing:-1px}
.topbar{background:var(--bg)}
.icon-button{background:var(--surface2);border-radius:12px}
.income-panel{border-radius:26px}
[data-theme=dark] .income-panel{background:linear-gradient(125deg,#252528 0%,#1b1b1d 58%,#161618 100%);border-color:#363639}
.total{font-weight:700;letter-spacing:-2px}
.metric-value,.goal-amount,.record-value{font-weight:650}
.metric-mark{background:var(--green-soft);border-radius:10px}
.segmented,.chart-mode{border:1px solid var(--line);border-radius:12px}
.segmented button,.chart-mode button{border-radius:9px}
[data-theme=dark] .segmented button.active,[data-theme=dark] .chart-mode button.active{background:#3a3a3d;color:#fff;box-shadow:none}
.goal-panel{background:var(--surface)}
[data-theme=dark] .goal-panel{background:linear-gradient(135deg,#252528,#191d1a);border-color:#343b36}
.tag{border-radius:7px;font-weight:600}
.track{background:var(--surface2)}
.chart-bar{opacity:.9}.chart-bar.today{opacity:1}
dialog{border-radius:24px;box-shadow:0 24px 100px #0009}
.switch:checked{background:#00b94d}
[data-theme=dark] input,[data-theme=dark] select,[data-theme=dark] textarea{background:#242424}
@media(max-width:650px){
 .topbar{height:64px}.panel{border-radius:20px}.income-panel{border-radius:24px}
 .mobile-nav{background:var(--bg);border-top:1px solid var(--line)}
 .mobile-nav .mobile-add{border-radius:16px;background:#00b94d;color:#07170d;box-shadow:0 5px 22px #00c85320}
 .header-actions .btn{border-radius:12px}.metric{padding:17px 16px}.total{font-size:44px}
}

/* Padding adds to the toolbar height: a fixed height collapses beneath the iOS status bar. */
@media(max-width:650px){
 html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-padding-top:16px;scroll-padding-bottom:calc(96px + var(--safe-bottom))}
 body{overscroll-behavior-y:none}
 .app-shell{min-height:100dvh}
 .topbar{height:auto;min-height:calc(64px + var(--safe-top));padding:calc(10px + var(--safe-top)) 16px 10px;gap:12px;flex-shrink:0;align-items:center}
 .mobile-brand{display:flex;gap:9px;align-items:center;font-size:20px;font-weight:750;letter-spacing:-.6px;white-space:nowrap}
 .topbar-location,.topbar .avatar,.topbar [data-action=logout]{display:none}
 .topbar-actions{gap:8px;flex-shrink:0}
 .topbar .icon-button{width:44px;height:44px;min-width:44px;min-height:44px;font-size:22px}
 main{padding:22px 16px 16px;min-width:0}
 .page-header{align-items:flex-start;gap:12px;margin-bottom:22px}
 .page-header>div:first-child{min-width:0;flex:1}
 h1{font-size:26px;line-height:1.15;letter-spacing:-.8px;overflow-wrap:break-word}
 .subtext{font-size:12px;line-height:1.5;margin-top:7px}
 .header-actions{gap:8px;flex-shrink:0}
 .header-actions .btn.primary,.header-actions .btn.export{height:44px;min-height:44px;width:44px;min-width:44px}
 .header-actions .btn.primary .plus{font-size:25px}
 .btn{font-size:13px;min-height:44px;padding:11px 14px}
 .text-link{min-height:44px;display:inline-flex;align-items:center;font-size:12px}
 .filters{gap:12px;margin-bottom:18px}
 .segmented{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) 62px;gap:2px;padding:4px;min-width:0}
 .segmented button{font-size:12px;padding:9px 3px;min-height:38px;white-space:nowrap;min-width:0}
 .segmented select{width:100%;min-width:0;min-height:38px;font-size:12px;padding:8px 18px 8px 5px;background-position:right 6px center}
 .filter-right{gap:8px;align-items:center}
 .filter-right .select{width:auto;max-width:57%;min-height:36px;padding:5px 25px 5px 0;font-size:12px}
 .date-range{font-size:11px}
 input,select,textarea{font-size:16px;min-height:48px;border-radius:12px;min-width:0;box-sizing:border-box}
 input:not([type=checkbox]):not([type=color]),select,textarea{-webkit-appearance:none;appearance:none}
 select,[data-theme] select{background-image:linear-gradient(45deg,transparent 50%,#a3a3a8 50%),linear-gradient(135deg,#a3a3a8 50%,transparent 50%);background-position:calc(100% - 17px) 50%,calc(100% - 12px) 50%;background-size:5px 5px;background-repeat:no-repeat;padding-right:32px}
 .form-group{min-width:0;margin-bottom:18px}
 .form-group label{font-size:12px;margin-bottom:8px}
 .form-group input,.form-group select,.form-group textarea{min-height:48px;font-size:16px}
 .form-row{grid-template-columns:minmax(0,1fr);gap:0}
 input[type=date],input[type=time]{width:100%;text-align:left;display:block;padding:12px;line-height:22px;min-height:48px}
 input::-webkit-date-and-time-value{min-height:22px;text-align:left}
 .income-panel{padding:20px 18px 16px}
 .total{font-size:44px;line-height:1.2;margin:10px 0}
 .comparison{font-size:11px;line-height:1.6;max-width:none}
 .eyebrow{font-size:12px}.tag{font-size:10px}
 .chart-mode{margin-top:16px}.chart-mode button{min-height:36px;font-size:12px;padding:7px 12px}
 .chart-container{height:180px}.chart-container.is-empty{height:105px;margin-top:12px}
 .is-empty .empty-chart{position:static;height:100%;background:none;text-align:center}
 .empty-chart strong{font-size:14px;line-height:1.4}.empty-chart p{font-size:12px;line-height:1.5}
 .chart-caption{font-size:10px;gap:8px;flex-wrap:wrap;line-height:1.5}
 .metric{padding:17px 15px}.metric-label{font-size:11px;line-height:1.5}.metric-value{font-size:24px}.metric-note{font-size:10px;line-height:1.6}
 .section-panel{padding:20px}.panel-header{margin-bottom:18px}.panel-header h2{font-size:16px;line-height:1.4}
 .empty{padding:25px 8px;gap:12px}.empty p{font-size:13px;line-height:1.65}.empty-icon{width:48px;height:48px;border-radius:15px;font-size:24px}
 .empty .btn{margin-top:3px}.goal-panel .empty{padding:16px 0 4px}.goal-panel .empty br{display:none}
 .history-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .history-tools [data-search]{grid-column:1/-1;width:100%;min-width:0;font-size:16px}
 .history-tools .range-input{width:100%;min-width:0;font-size:16px}
 .history-tools .select{grid-column:1/-1;width:100%;min-height:44px;font-size:16px}
 .history-tools .btn{width:100%;font-size:12px;white-space:normal}
 .notice{font-size:12px;padding:12px 14px}
 .table-panel{padding:18px 15px}.pagination{font-size:12px;margin-top:12px;gap:12px}.pagination .btn{width:44px;padding:8px}
 .table-wrap{max-width:100%}th,td{font-size:11px}.source-cell{white-space:normal;overflow-wrap:anywhere}.row-button{min-width:44px;min-height:44px}
 .setting-row{padding:17px 0;gap:16px}.setting-row>span{min-width:0}.setting-row strong{font-size:13px}.setting-row small{font-size:12px;line-height:1.55}
 .switch{width:44px;height:27px;min-height:27px;flex:0 0 44px}.switch:before{width:21px;height:21px}.switch:checked:before{transform:translateX(17px)}
 .form-hint,.setup-note{font-size:12px;line-height:1.65}
 .secondary-menu{gap:10px;margin-bottom:18px}.secondary-menu .btn{font-size:12px;min-height:44px}
 .mobile-nav{padding:8px 12px calc(8px + var(--safe-bottom));height:calc(72px + var(--safe-bottom));gap:8px;align-items:flex-start}
 .mobile-nav button{min-height:52px;min-width:52px;font-size:23px;gap:4px;flex:1}
 .mobile-nav span{font-size:10px;line-height:1.2}
 .mobile-nav .mobile-add{top:0;width:52px;height:52px;min-width:52px;flex:0 0 52px;font-size:30px;border-radius:17px}
 .app-footer{padding:16px 16px calc(94px + var(--safe-bottom));gap:12px;align-items:center;font-size:10px;flex-wrap:wrap}
 .app-footer button{font-size:11px;min-height:36px}
 .toasts{bottom:calc(88px + var(--safe-bottom))}
 dialog{position:fixed;top:calc(var(--visual-top,0px) + var(--safe-top) + 12px);bottom:auto;margin:0 auto;width:calc(100% - 24px);max-width:480px;max-height:calc(var(--viewport-height,100dvh) - var(--safe-top) - var(--safe-bottom) - 24px);overflow:auto;overscroll-behavior:contain}
 .modal-head{padding:20px 20px 0}.modal-body{padding:18px 20px 24px}.modal-head .icon-button{min-width:44px;min-height:44px}
 .login-shell{padding-top:calc(28px + var(--safe-top));padding-bottom:calc(24px + var(--safe-bottom))}
 .login-card h1{font-size:30px}.login-card{padding:27px 22px}.login-button{font-size:14px!important}
}
@media(max-width:375px){.page-header h1{font-size:23px}.segmented button{font-size:11px}.date-range{font-size:10px}.metric-value{font-size:22px}}
.modal-actions{flex-wrap:wrap}.modal-actions .btn{flex:1 1 110px;min-width:0}
