:root{color:#172b30;font-synthesis:none;--bg:#f6f5f0;--surface:#fff;--ink:#172b30;--muted:#647274;--border:#e3e7df;--green:#24584c;--mint:#e1eee5;--red:#a84535;--shadow:0 6px 24px #172b3006;background:#f6f5f0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-weight:400;line-height:1.5}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer;color:var(--ink);border:1px solid var(--border);background:var(--surface);border-radius:9px;justify-content:center;align-items:center;gap:8px;min-height:42px;padding:10px 15px;font-size:13px;font-weight:600;display:inline-flex}button:hover{background:var(--mint)}button:disabled{opacity:.5;cursor:not-allowed}a{color:var(--green);text-decoration:none}a:hover{text-decoration:underline}button.primary,.primary{background:var(--green);color:#fff;border-color:var(--green)}button.primary:hover{background:#173e35}button.text-button{color:var(--green);background:0 0;border:0;min-height:32px;padding:5px 0}button.icon-button,.icon-button{background:0 0;border:0;border-radius:50%;justify-content:center;align-items:center;width:42px;height:42px;padding:10px;display:inline-flex;position:relative}input,select,textarea{width:100%;color:var(--ink);background:var(--surface);border:1px solid #cdd5cf;border-radius:9px;min-height:44px;padding:11px 12px}input[type=checkbox]{width:19px;height:19px;min-height:19px;accent-color:var(--green)}input[type=file]{font-size:13px}textarea{resize:vertical;min-height:90px}label{gap:7px;font-size:13px;font-weight:600;display:grid}label small{color:var(--muted);font-weight:400}label.check{align-items:center;gap:10px;margin:18px 0;font-weight:400;display:flex}form{gap:18px;display:grid}h1,h2,h3,p{margin-top:0}h1{letter-spacing:-1.1px;margin-bottom:9px;font-size:32px;font-weight:600;line-height:1.2}h2{letter-spacing:-.35px;margin-bottom:12px;font-size:18px;font-weight:600}h3{font-size:15px}p{color:var(--muted);margin-bottom:16px;font-size:14px;line-height:1.65}small{font-size:12px}strong{font-weight:600}svg{flex-shrink:0}:focus-visible{outline-offset:3px;outline:3px solid #a16e30}h1:focus{outline:none}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.skip-link{z-index:100;background:var(--surface);padding:12px;position:fixed;top:-60px;left:20px}.skip-link:focus{top:12px}.brand{letter-spacing:-2px;color:var(--green);align-items:baseline;font-size:38px;font-weight:700;line-height:1;display:inline-flex}.brand span{color:#92b99f;margin-left:3px;font-size:14px}.brand:hover{text-decoration:none}.app-shell{min-height:100dvh;display:flex}.sidebar{background:var(--surface);border-right:1px solid var(--border);z-index:30;flex-direction:column;width:232px;padding:35px 20px 18px;display:flex;position:fixed;inset:0 auto 0 0;overflow:auto}.sidebar-top{justify-content:space-between;align-items:center;margin-bottom:45px;padding-left:14px;display:flex}.sidebar-label{letter-spacing:1.7px;color:#8a9691;margin-bottom:15px;padding-left:14px;font-size:10px;font-weight:700}.sidebar nav{gap:5px;display:grid}.sidebar nav a,.sidebar-bottom>a,.sidebar-bottom>button{color:var(--muted);border-radius:8px;align-items:center;gap:12px;min-height:44px;padding:12px 14px;font-size:13px;font-weight:500;display:flex}.sidebar nav a:hover,.sidebar-bottom>a:hover{background:var(--bg);text-decoration:none}.sidebar nav a.active{background:var(--mint);color:var(--green);font-weight:600}.sidebar-bottom{margin-top:auto;padding-top:35px}.sidebar-bottom>button{background:0 0;border:0;justify-content:flex-start;width:100%}.profile{border-top:1px solid var(--border);align-items:center;gap:11px;margin-top:20px;padding:22px 8px 0;display:flex}.profile strong,.profile small{font-size:11px;display:block}.profile small{color:var(--muted);margin-top:3px}.avatar{color:#5a665b;background:#e9e8dd;border-radius:50%;justify-content:center;align-items:center;width:36px;height:36px;font-size:13px;font-weight:600;display:inline-flex}.avatar.small{width:32px;height:32px}.workspace{flex:1;min-width:0;margin-left:232px}.topbar{border-bottom:1px solid var(--border);background:var(--bg);justify-content:space-between;align-items:center;height:76px;padding:0 38px;display:flex}.topbar-left,.topbar-actions{align-items:center;gap:14px;display:flex}.breadcrumb{color:var(--muted);font-size:12px}.breadcrumb span{color:#adb4ae;margin:0 12px}.connection{color:var(--muted);align-items:center;gap:6px;font-size:11px;display:flex}.connection i{background:#4b8a65;border-radius:50%;width:6px;height:6px}.connection.offline i{background:#b88a4d}.notification-dot{background:#b67552;border-radius:50%;width:6px;height:6px;position:absolute;top:7px;right:9px}main#main{max-width:1500px;margin:auto;padding:34px 38px}.page-heading{justify-content:space-between;align-items:center;gap:20px;margin-bottom:28px;display:flex}.page-heading>div>p:last-child{margin:0}.eyebrow{letter-spacing:1.7px;color:var(--green);margin-bottom:10px;font-size:10px;font-weight:600}.heading-actions,.card-actions{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.month-input input{max-width:170px;min-height:42px;font-size:13px}.card{background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow);border-radius:15px;margin-bottom:22px;padding:24px}.card-heading,.section-heading{justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px;display:flex}.card-heading h2,.section-heading h2{margin:0}.card-heading a,.section-heading a{align-items:center;gap:5px;font-size:12px;display:flex}.summary-grid{grid-template-columns:1.4fr 1fr 1fr 1fr;gap:17px;margin-bottom:24px;display:grid}.balance-card,.summary-card{border-radius:14px;min-height:196px;padding:24px;position:relative}.balance-card{background:var(--green);color:#fff;flex-direction:column;align-items:flex-start;display:flex}.balance-card p{color:#e2eee5;margin:0 0 15px;font-size:13px}.balance-card>strong{letter-spacing:-1px;font-size:34px;line-height:1.2}.balance-card>span{color:#c6dbce;margin:10px 0 20px;font-size:11px;display:block}.balance-card a{color:#e2eee5;align-items:center;gap:8px;margin-top:auto;font-size:11px;display:flex}.summary-card{background:var(--surface);border:1px solid var(--border)}.summary-card>p{margin:14px 0 6px;font-size:12px}.summary-card>strong{letter-spacing:-.9px;font-size:26px;display:block}.summary-card>span:last-child{color:var(--muted);margin-top:10px;font-size:10px;display:block}.stat-icon,.transaction-icon{color:var(--green);background:#f1f2ec;border-radius:10px;justify-content:center;align-items:center;width:34px;height:34px;display:inline-flex}.stat-icon.income,.transaction-icon.income{color:#42755e;background:#e6f0e8}.stat-icon.expense,.transaction-icon.expense{color:#ac785a;background:#f7ede5}.dashboard-grid{grid-template-columns:1.15fr 1fr;gap:22px;display:grid}.cards{grid-template-columns:repeat(auto-fit,minmax(min(285px,100%),1fr));gap:20px;display:grid}.cards .card{margin:0 0 22px}.large-money{letter-spacing:-1px;color:var(--ink);font-size:30px;font-weight:600;line-height:1.3}.large-money small{letter-spacing:0;color:var(--muted);margin-top:6px;font-size:12px;font-weight:400;display:block}.split-line{justify-content:space-between;align-items:center;font-size:12px;display:flex}.help{font-size:12px}.positive{color:#3d7e5c}.negative,.error{color:var(--red)}progress{background:var(--mint);appearance:none;border:0;border-radius:8px;width:100%;height:7px;margin:8px 0 10px;overflow:hidden}progress::-webkit-progress-bar{background:var(--mint)}progress::-webkit-progress-value{background:#4f8e6c;border-radius:8px}progress::-moz-progress-bar{background:#4f8e6c}.over::-webkit-progress-value{background:#b86e50}.transaction-row{border-bottom:1px solid var(--border);align-items:center;gap:12px;padding:15px 0;font-size:13px;display:flex}.transaction-row:last-child{border:0}.transaction-description{flex:1;min-width:0}.transaction-description strong{white-space:nowrap;text-overflow:ellipsis;display:block;overflow:hidden}.transaction-description span{color:var(--muted);margin-top:5px;font-size:11px;display:block}.transaction-row>strong{white-space:nowrap;font-size:13px}.row-menu{position:relative}.row-menu summary{cursor:pointer;text-align:center;min-width:36px;min-height:40px;color:var(--muted);padding:8px;list-style:none}.row-menu[open] summary{background:var(--mint);border-radius:8px}.row-menu>div{background:var(--surface);border:1px solid var(--border);z-index:20;border-radius:10px;width:145px;padding:5px;position:absolute;top:40px;right:0;box-shadow:0 8px 25px #172b3020}.row-menu button{text-align:left;background:0 0;border:0;width:100%;font-size:12px;display:block}.row-menu button:hover{background:var(--mint)}.simple-row{border-bottom:1px solid var(--border);align-items:center;gap:14px;padding:16px 0;display:flex}.simple-row:last-child{border-bottom:0}.simple-row>div{flex:1;min-width:0}.simple-row strong,.simple-row small{display:block}.simple-row small{color:var(--muted);margin-top:4px}.simple-row p{margin:4px 0}.simple-row button{font-size:12px}.empty{text-align:center;background:var(--surface);border:1px dashed #cdd8cf;border-radius:14px;margin-bottom:22px;padding:45px 20px}.empty p{max-width:450px;margin:0 auto 20px}.tip-card{box-shadow:none;background:#ecf1e7;border-color:#dbe5d7}.tip-card>svg{color:var(--green);margin:5px 0 22px}.tip-card p{font-size:13px}.section-heading{margin-top:12px}.section-action{justify-content:flex-end;margin-bottom:20px;display:flex}.account-card>svg{color:var(--green);margin-bottom:18px}.account-card h2 small{color:var(--muted);font-size:11px}.goal-symbol{color:var(--green);background:#e9eee4;border-radius:16px;margin-bottom:20px;padding:15px;display:inline-flex}.allocation{border-top:1px solid var(--border);justify-content:space-between;align-items:center;margin-top:12px;padding-top:12px;font-size:12px;display:flex}.analysis-summary,.settings-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;display:grid}.analysis-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.notice,.pending-banner{color:var(--green);background:#e6efe3;border:1px solid #c8d9c7;border-radius:12px;align-items:center;gap:12px;margin-bottom:22px;padding:15px 20px;font-size:13px;display:flex}.notice .icon-button{margin-left:auto}.pending-banner{color:#745b22;background:#faf0d9;border-color:#e8d8af;display:block}.pending-banner p{margin:6px 0}.error button{margin-left:12px}.filters,.mapping-grid,.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;display:grid}.filters{grid-template-columns:2fr 1fr 1fr 1fr;margin-bottom:25px}.mapping-grid{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:22px}.filters label:has(svg){position:relative}.filters label svg{position:absolute;bottom:13px;left:11px}.filters label:has(svg) input{padding-left:36px}.pagination{justify-content:center;align-items:center;gap:16px;margin-top:20px;display:flex}.table-scroll{margin:20px 0;overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:12px}th,td{border-bottom:1px solid var(--border);text-align:left;padding:12px 10px}th{color:var(--muted);white-space:nowrap;font-weight:600}td{color:var(--ink)}.chart-table td:first-child{width:50%}.chart-bar{background:var(--mint);border-radius:10px;height:7px;margin-top:6px;display:block}.chart-bar>span{background:var(--green);border-radius:10px;height:100%;display:block}.page-footer{color:var(--muted);justify-content:space-between;gap:12px;margin:35px 0 0;font-size:10px;display:flex}dialog{border:1px solid var(--border);background:var(--surface);width:min(620px,100% - 28px);max-height:90dvh;color:var(--ink);border-radius:16px;padding:0;box-shadow:0 20px 90px #172b3020}dialog::backdrop{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#172b3077}.dialog-heading{border-bottom:1px solid var(--border);background:var(--surface);z-index:1;justify-content:space-between;align-items:center;padding:20px 25px;display:flex;position:sticky;top:0}.dialog-heading h2{margin:0}.dialog-body{padding:25px}.dialog-body form{gap:16px}.form-grid .full{grid-column:1/-1}.form-actions{justify-content:flex-end;gap:12px;margin-top:8px;display:flex}.dialog-body pre{white-space:pre-wrap;overflow-wrap:anywhere;background:var(--bg);border-radius:8px;padding:14px;font-size:11px}.auth-layout{grid-template-columns:1fr 1fr;min-height:100dvh;display:grid}.auth-brand{background:#e9ede2;flex-direction:column;justify-content:space-between;padding:60px 9%;display:flex;position:relative;overflow:hidden}.auth-brand:after{content:"";pointer-events:none;border:1px solid #ceddcb;border-radius:50%;width:500px;height:500px;position:absolute;bottom:60px;right:-270px}.auth-brand h1{letter-spacing:-2px;margin-bottom:26px;font-size:clamp(34px,3.6vw,58px);font-weight:500;line-height:1.15}.auth-brand>div{z-index:1;position:relative}.auth-brand .eyebrow{margin-bottom:22px}.auth-brand>div>p:last-child{font-size:15px;line-height:1.8}.auth-note{align-items:center;gap:10px;margin-bottom:0;font-size:11px;display:flex}.auth-panel{justify-content:center;align-items:center;padding:45px;display:flex}.auth-form{width:100%;max-width:360px}.auth-form h2{margin:14px 0;font-size:26px;font-weight:600}.auth-form>p{font-size:13px}.auth-form form{margin:30px 0 14px}.auth-form .primary{justify-content:space-between;width:100%;margin-top:8px}.auth-alternate{border-top:1px solid var(--border);margin-top:26px;padding-top:20px}.auth-alternate button{font-size:12px}.startup{flex-direction:column;justify-content:center;align-items:center;gap:25px;min-height:100dvh;display:flex}.pwa-update{background:var(--surface);border:1px solid var(--border);z-index:50;border-radius:14px;max-width:420px;padding:20px;position:fixed;bottom:20px;right:20px;box-shadow:0 6px 40px #172b3030}.mobile-only{display:none!important}.spin{animation:1s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}html[data-theme=dark]{--bg:#182621;--surface:#22322b;--ink:#e8eee9;--muted:#b0beb5;--border:#3a4b40;--green:#a2d2b0;--mint:#334e3e;--red:#f1ad9a;--shadow:none;color:var(--ink);background:var(--bg)}html[data-theme=dark] button.primary{color:#fff;background:#3c7857;border-color:#3c7857}html[data-theme=dark] .balance-card{background:#305d44}html[data-theme=dark] .tip-card,html[data-theme=dark] .auth-brand{background:#283d2c;border-color:#3a4b40}html[data-theme=dark] .stat-icon,html[data-theme=dark] .transaction-icon{background:#344339}html[data-theme=dark] .notice{background:#304831;border-color:#476347}html[data-theme=dark] .pending-banner{color:#f1d89c;background:#463c24;border-color:#67582e}html[data-theme=dark] .avatar{color:#ebeee5;background:#425344}@media (width<=1200px){.sidebar{width:210px;padding-left:12px;padding-right:12px}.workspace{margin-left:210px}.topbar{padding:0 25px}main#main{padding:30px 25px}.summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.page-heading{align-items:flex-start}.heading-actions{justify-content:flex-end}.dashboard-grid{grid-template-columns:1fr}.dashboard-grid>section{min-width:0}.filters{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=760px){.mobile-only{display:inline-flex!important}.sidebar{width:270px;padding-top:25px;transform:translate(-100%);box-shadow:20px 0 60px #172b3020}.sidebar.mobile-open{transform:translate(0)}.workspace{margin-left:0}.topbar{height:64px;padding:0 12px}.topbar-actions{gap:2px}.topbar-left{gap:3px}.connection{margin-right:4px;font-size:10px}.topbar-actions>.avatar{display:none}.breadcrumb{font-size:11px}.breadcrumb span{margin:0 6px}main#main{padding:25px 17px;padding-bottom:calc(25px + env(safe-area-inset-bottom))}.page-heading{flex-direction:column;gap:18px;margin-bottom:22px}h1{font-size:28px}.heading-actions{justify-content:space-between;width:100%}.heading-actions .primary{padding:10px;font-size:11px}.month-input input{max-width:155px;font-size:12px}.summary-grid{gap:11px}.balance-card,.summary-card{min-height:172px;padding:18px 16px}.balance-card>strong{font-size:25px}.summary-card>strong{font-size:23px}.balance-card>span{margin-bottom:12px}.card{border-radius:13px;padding:20px 17px}.card-heading{gap:8px}.card-heading a{font-size:10px}.card-heading h2{font-size:16px}.settings-grid,.analysis-summary{grid-template-columns:1fr;gap:0}.large-money{font-size:27px}.transaction-row{gap:8px}.transaction-icon{border-radius:9px;width:29px;height:29px}.transaction-description strong{font-size:12px}.transaction-description span{font-size:10px}.transaction-row>strong{font-size:11px}.row-menu summary{min-width:24px;padding:8px 3px}.simple-row{flex-wrap:wrap;gap:10px}.simple-row>div{min-width:calc(100% - 50px)}.simple-row button{margin-left:28px}.simple-row button+button{margin-left:0}.filters,.mapping-grid{grid-template-columns:1fr 1fr;gap:12px}.filters label:first-child{grid-column:1/-1}.mapping-grid label{font-size:11px}.page-footer{flex-direction:column;font-size:9px}.dialog-body{padding:20px}.dialog-heading{padding:15px 20px}.form-grid,.auth-layout{grid-template-columns:1fr}.auth-brand{gap:40px;padding:30px 25px}.auth-brand h1{letter-spacing:-1.2px;font-size:38px}.auth-brand>div>p:last-child{margin-bottom:0}.auth-note{display:none}.auth-panel{padding:35px 25px}.auth-form{max-width:420px}.pwa-update{bottom:14px;left:14px;right:14px}.notice{padding:12px 15px}.section-action button{width:100%}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}@media print{.sidebar,.topbar,.heading-actions,button,.row-menu,.pwa-update,.notice,.pending-banner,.page-footer{display:none!important}.workspace{margin:0}main#main{max-width:none;padding:0}.card,.summary-card,.balance-card{break-inside:avoid;box-shadow:none;color:#172b30!important;background:#fff!important}.summary-grid{grid-template-columns:repeat(2,1fr)}.dashboard-grid{grid-template-columns:1fr}.auth-layout{display:none}body{background:#fff}a{color:#172b30}}.entity-form fieldset{border:0;gap:16px;min-width:0;margin:0;padding:0;display:grid}.bottom-nav{display:none}.chart-total{justify-content:space-between;align-items:center;padding:10px 0 20px;display:flex}.chart-total span{color:var(--muted);font-size:12px}.chart-total strong{letter-spacing:-.7px;font-size:26px}.category-chart th{color:var(--ink);font-weight:500}.category-chart td:nth-child(2){white-space:nowrap}.category-chart td:last-child{width:28%;color:var(--muted);font-size:10px}.category-chart td progress{width:75%;margin:3px 0}.category-chart td:last-child span{margin-left:7px}.category-color{background:#24584c;border-radius:50%;width:7px;height:7px;margin-right:9px;display:inline-block}.color-1{background:#8aa58a}.color-2{background:#ba9273}.color-3{background:#ccb985}.color-4{background:#81989e}.chart-empty{text-align:center;color:#a2b2a5;flex-direction:column;justify-content:center;align-items:center;gap:20px;min-height:190px;display:flex}.chart-empty p{max-width:250px;font-size:12px}.empty-icon{color:var(--green);background:var(--mint);border-radius:50%;margin-bottom:18px;padding:17px;display:inline-flex}.admin-environment{background:var(--mint);border-radius:10px;align-items:center;gap:10px;margin-bottom:22px;padding:16px;font-size:12px;display:flex}.admin-environment span{color:var(--muted);margin-left:auto;font-size:11px}.totp-qr{background:#fff;width:100%;max-width:220px}.conflict-grid{grid-template-columns:1fr 1fr;gap:12px;display:grid}.entity-form details summary{color:var(--green);cursor:pointer;padding:7px 0;font-size:13px}.entity-form details label{margin-top:12px}@media (width<=760px){main#main{padding-bottom:95px}.bottom-nav{background:var(--surface);border-top:1px solid var(--border);height:calc(66px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);z-index:25;justify-content:space-around;align-items:center;display:flex;position:fixed;bottom:0;left:0;right:0}.bottom-nav a{color:var(--muted);flex-direction:column;align-items:center;gap:4px;min-width:64px;padding:10px 8px;font-size:9px;display:flex}.bottom-nav a.active{color:var(--green);font-weight:700}.admin-environment{flex-wrap:wrap}.admin-environment span{margin:0}.conflict-grid{grid-template-columns:1fr}.pwa-update{bottom:85px}}@media print{.bottom-nav{display:none!important}}
