:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#1b332d;background:#f6f8f6;font-synthesis:none;text-rendering:optimizeLegibility;--ink:#1b332d;--muted:#82908a;--green:#247e6f;--dark:#174c43;--line:#ebf0ec;--mint:#e9f3ee;--card:#fff;--shadow:0 7px 20px #193b3010}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:#f6f8f6}button,input,select,textarea{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #8dcbb7;outline-offset:2px}.shell{max-width:1120px;margin:auto;padding:0 28px 100px}.topbar{height:78px;display:flex;align-items:center;justify-content:space-between}.brand{font-size:22px;font-weight:800;letter-spacing:-1px}.brand span{color:var(--green)}.eyebrow{margin-top:3px;font-size:9px;font-weight:700;letter-spacing:1.25px;color:#96a39d}.top-actions{display:flex;align-items:center;gap:9px}.icon-button,.avatar{border:1px solid var(--line);background:#fff;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;color:#668078;font-size:18px}.avatar{background:#e2eee9;color:var(--green);font-weight:800;font-size:14px;border:0}.content{max-width:850px;margin:10px auto}.greeting{font-weight:800;font-size:25px;letter-spacing:-.7px;margin:10px 0 5px}.subtitle{font-size:13px;color:var(--muted);margin:0 0 20px}.page-title{font-size:28px;letter-spacing:-.8px;margin:10px 0 5px}.hero{background:linear-gradient(128deg,#174c43,#216c5f);color:#fff;border-radius:23px;padding:23px 25px;margin:0 0 23px;box-shadow:var(--shadow);overflow:hidden;position:relative}.hero:after{content:"";position:absolute;width:190px;height:190px;border:1px solid #ffffff1e;border-radius:50%;right:-50px;top:-102px;box-shadow:0 0 0 22px #ffffff0b,0 0 0 46px #ffffff08}.hero-top{display:flex;align-items:center;justify-content:space-between;position:relative;z-index:1}.hero-label,.hero-stat-label{font-size:9px;font-weight:700;letter-spacing:1.15px;color:#b8d6ce}.live-badge{font-size:8px;color:#d4e6d3;font-weight:700}.hero-value{font-size:38px;font-weight:800;letter-spacing:-1.5px;margin:13px 0 1px;position:relative;z-index:1}.hero-note{font-size:11px;color:#b4cec7}.hero-divider{height:1px;background:#ffffff2b;margin:17px 0 14px}.hero-stats{display:flex;gap:8px}.hero-stat{flex:1}.hero-stat-value{font-size:14px;font-weight:700;color:#fff;margin-top:5px}.section-head{display:flex;align-items:center;justify-content:space-between;margin:0 1px 10px}.section-head.spaced{margin-top:22px}.section-title{font-size:16px;font-weight:750;letter-spacing:-.25px}.link-button{border:0;background:transparent;color:var(--green);font-size:12px;font-weight:700;padding:6px 2px}.card{background:var(--card);border:1px solid var(--line);border-radius:17px;padding:17px;margin-bottom:20px;box-shadow:0 2px 8px #193b3005}.card.no-pad{padding:0;overflow:hidden}.row-between{display:flex;justify-content:space-between;align-items:center;gap:12px}.muted{font-size:12px;color:var(--muted)}.spent{font-size:22px;font-weight:800;margin-top:5px}.spent small{font-size:13px;color:#8b9992;font-weight:500}.percent{width:42px;height:42px;border-radius:50%;background:var(--mint);display:grid;place-items:center;color:var(--green);font-size:11px;font-weight:800}.track{height:7px;border-radius:8px;background:#edf2ef;overflow:hidden;margin:16px 0 9px}.fill{height:100%;border-radius:8px;background:#36a18c;transition:width .2s}.small-muted{font-size:11px;color:#899690}.transaction{min-height:68px;padding:10px 15px;display:flex;align-items:center;border-bottom:1px solid #f0f3f1;gap:12px}.transaction:last-child{border-bottom:0}.tx-icon,.account-icon{flex:none;width:39px;height:39px;border-radius:13px;background:#f1f5f2;display:grid;place-items:center;color:#54766b;font-size:17px;font-weight:700}.tx-icon.income{background:#e8f4ed;color:#29836c}.tx-middle{flex:1;min-width:0}.tx-title{font-size:13px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tx-meta{font-size:10px;color:#94a09b;margin-top:4px}.tx-amount{font-size:13px;font-weight:750;white-space:nowrap}.tx-amount.income{color:#29836c}.tx-amount.debt{color:#bd6558}.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.metric{background:#fff;border:1px solid var(--line);border-radius:16px;padding:15px}.metric-icon{font-size:17px;color:var(--green)}.metric-label{font-size:10px;color:#84918c;margin-top:12px}.metric-value{font-size:16px;font-weight:800;color:#1d3730;margin-top:4px}.bottom-nav{position:fixed;bottom:0;left:0;right:0;height:76px;padding:7px 10px calc(7px + env(safe-area-inset-bottom));display:flex;justify-content:center;gap:min(5vw,35px);align-items:center;background:#ffffffef;backdrop-filter:blur(16px);border-top:1px solid var(--line);z-index:5}.nav-item{min-width:58px;border:0;background:transparent;color:#a2ada7;display:flex;flex-direction:column;align-items:center;gap:3px}.nav-icon{font-size:20px;height:23px}.nav-label{font-size:9px}.nav-item.active{color:var(--green);font-weight:800}.fab{position:fixed;right:max(calc((100vw - 850px)/2),20px);bottom:91px;z-index:4;border:0;border-radius:28px;background:var(--green);color:#fff;box-shadow:0 7px 18px #174c4330;padding:0 18px;height:49px;display:flex;gap:7px;align-items:center;font-size:12px;font-weight:750}.fab span{font-size:20px;font-weight:400}.empty{padding:28px 18px;text-align:center}.empty-icon{font-size:26px;color:#83a69a}.empty-title{font-size:14px;font-weight:750;margin:8px 0 4px}.empty-copy{font-size:12px;line-height:1.5;color:var(--muted);max-width:300px;margin:auto}.kicker{font-size:9px;color:#87948e;font-weight:800;letter-spacing:1px}.big-number{font-size:27px;font-weight:800;margin:7px 0 2px}.category-row{min-height:64px;padding:9px 14px;border-bottom:1px solid #f0f3f1;display:flex;align-items:center;gap:10px}.category-row:last-child{border:0}.category-symbol{width:34px;height:34px;border-radius:11px;background:#f1f5f2;display:grid;place-items:center;color:#54766b}.category-main{flex:1}.category-name{font-size:12px;font-weight:700}.track-thin{height:4px;border-radius:4px;background:#edf2ef;overflow:hidden;margin-top:6px;width:75%}.category-amount{font-size:12px;font-weight:700}.info-box{background:#e8f2ed;border-radius:16px;padding:16px;margin:8px 0 18px}.info-box strong{font-size:13px;color:#1d5146}.info-box p{font-size:11px;color:#57736a;line-height:1.5;margin:6px 0 0}.account-icon{background:#eaf3ee}.total-row{display:flex;justify-content:space-between;align-items:center;padding:17px 2px}.total-text{font-size:17px;font-weight:800}.toolbar{display:flex;gap:8px;align-items:center}.input-search,.select{border:1px solid #e4ebe6;background:#fff;border-radius:12px;height:42px;padding:0 12px;color:#32463e;font-size:12px}.input-search{flex:1;min-width:0}.select{max-width:150px}.primary,.secondary,.danger{border:0;border-radius:12px;padding:12px 15px;font-size:12px;font-weight:750}.primary{background:var(--green);color:#fff}.secondary{background:#e8f2ed;color:#277765}.danger{background:#faecea;color:#a44b41}.modal-wrap{position:fixed;inset:0;z-index:10;background:#142c2775;display:flex;align-items:flex-end;justify-content:center;padding:0}.modal{width:min(100%,520px);background:#f9fbf9;border-radius:24px 24px 0 0;padding:10px 22px calc(24px + env(safe-area-inset-bottom));max-height:90vh;overflow:auto;box-shadow:0 -10px 40px #142c2730}.handle{width:38px;height:4px;border-radius:4px;background:#d5deda;margin:0 auto 16px}.modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.modal-title{font-size:20px;font-weight:800}.close{border:0;background:transparent;font-size:20px;color:#77857e;padding:4px}.field-label{font-size:9px;font-weight:800;letter-spacing:1px;color:#81908a;margin:13px 0 6px;display:block}.field{width:100%;height:47px;border:1px solid #e3eae5;background:#fff;border-radius:12px;padding:0 13px;color:#233a33;font-size:14px}.field.textarea{height:95px;padding:12px;resize:vertical}.segmented{display:flex;background:#edf2ee;padding:4px;border-radius:12px;margin:10px 0 15px}.segmented button{flex:1;border:0;background:transparent;border-radius:9px;padding:10px;color:#85918b;font-size:12px;font-weight:700}.segmented button.active{background:#fff;color:#267c6c;box-shadow:0 2px 5px #0000000d}.modal-actions{display:flex;gap:9px;margin-top:18px}.modal-actions button{flex:1}.note-box{padding:12px;background:#e8f2ed;border-radius:12px;color:#59766b;font-size:11px;line-height:1.5;margin:10px 0}.private-note{text-align:center;font-size:10px;color:#93a09a;margin:11px 0 0}.goal-progress{height:8px;border-radius:8px;background:#edf2ef;overflow:hidden;margin:15px 0 9px}.install-hint{background:#fff;border:1px solid var(--line);border-radius:14px;padding:13px;margin-top:14px;font-size:11px;color:#64776f;line-height:1.45}.toast{position:fixed;z-index:20;bottom:94px;left:50%;transform:translateX(-50%);background:#173e36;color:#fff;padding:11px 16px;border-radius:24px;font-size:12px;box-shadow:var(--shadow);animation:fadeout 2.6s forwards}@keyframes fadeout{0%,75%{opacity:1}100%{opacity:0}}.file-input{display:none}.transaction[hidden]{display:none}
@media(min-width:780px){.content{margin-top:15px}.hero{padding:26px 29px}.bottom-nav{height:65px;gap:50px}.fab{bottom:80px}.shell{padding-bottom:90px}.modal-wrap{align-items:center;padding:20px}.modal{border-radius:24px;padding-bottom:22px}}
@media(max-width:520px){.shell{padding:0 17px 105px}.topbar{height:70px}.hero-value{font-size:34px}.hero{padding:20px}.hero-stat-value{font-size:12px}.hero-stats{gap:3px}.nav-item{min-width:52px}.fab{right:17px}.toolbar{flex-wrap:wrap}.toolbar .input-search{flex-basis:100%}.select{flex:1;max-width:none}}
.visual-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}.chart-card{min-height:207px;display:flex;flex-direction:column;justify-content:center}.chart-empty{min-height:160px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:7px;color:#83928b}.chart-empty-icon{font-size:31px;color:#4a9e89}.chart-empty strong{font-size:12px;color:#52675f}.chart-empty span{font-size:10px;line-height:1.45;max-width:230px}.bar-chart{height:132px;display:flex;align-items:flex-end;justify-content:space-between;padding:4px 0 0;gap:5px}.bar-group{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;gap:8px;color:#98a49e;font-size:9px}.bar-pair{height:108px;display:flex;align-items:flex-end;justify-content:center;gap:4px;width:100%}.bar{display:block;width:min(13px,38%);min-height:3px;border-radius:5px 5px 2px 2px}.income-bar{background:#4ca58e}.expense-bar{background:#f0b568}.chart-legend{display:flex;justify-content:center;gap:17px;margin-top:12px;color:#7b8982;font-size:10px}.chart-legend span{display:flex;align-items:center;gap:5px}.legend-dot{width:8px;height:8px;display:inline-block;border-radius:50%;background:#4ca58e}.expense-dot{background:#f0b568}.donut-area{display:flex;flex-direction:column;align-items:center;gap:14px}.donut{width:132px;height:132px;border-radius:50%;display:grid;place-items:center;position:relative}.donut:before{content:"";position:absolute;inset:17px;background:#fff;border-radius:50%}.donut-center{position:relative;text-align:center;display:flex;flex-direction:column;gap:3px}.donut-center small{font-size:8px;letter-spacing:.9px;color:#91a099;font-weight:800}.donut-center strong{font-size:14px;color:#1e4238}.donut-legend{width:100%;display:grid;gap:7px}.legend-row{display:grid;grid-template-columns:9px 1fr auto;align-items:center;gap:7px;font-size:10px;color:#6d7e76}.legend-row b{font-size:10px;color:#3a5148}.trend-chart svg{width:100%;height:auto;overflow:visible}.trend-labels{display:flex;justify-content:space-between;color:#9aa59f;font-size:9px;margin-top:7px}.trend-empty{min-height:120px;display:flex;align-items:center;gap:12px;color:#768980}.trend-symbol{width:43px;height:43px;border-radius:15px;background:#eaf4ef;color:#27816f;display:grid;place-items:center;font-size:21px;flex:none}.trend-empty strong,.trend-empty small{display:block}.trend-empty strong{font-size:12px;color:#415b50}.trend-empty small{font-size:10px;line-height:1.45;color:#83928b;margin-top:5px}.vault-screen{min-height:100svh;padding:34px 20px 30px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:radial-gradient(ellipse at 12% 8%,#d9eee5 0,transparent 35%),radial-gradient(ellipse at 90% 90%,#e4ede7 0,transparent 34%),#f6f8f6}.vault-brand{text-align:center;margin:0 0 22px}.vault-brand .brand{font-size:24px}.vault-card{width:min(100%,440px);padding:29px 27px;background:#ffffffed;border:1px solid #e8efea;border-radius:25px;box-shadow:0 18px 48px #1e493811}.vault-mark{width:48px;height:48px;border-radius:16px;display:grid;place-items:center;background:#e7f3ed;color:#247e6f;font-size:21px;margin-bottom:17px}.vault-card h1{font-size:22px;letter-spacing:-.5px;margin:0;color:#1b332d}.vault-card>p{font-size:12px;line-height:1.55;color:#74847c;margin:8px 0 17px}.vault-warning{background:#fff7e9;border:1px solid #f2e4c6;border-radius:11px;color:#806b43;font-size:10px;line-height:1.5;padding:10px;margin:13px 0}.vault-submit{width:100%;height:47px;margin-top:17px}.vault-import{width:100%;margin-top:12px}.vault-foot{text-align:center;color:#93a099;font-size:9px;margin-top:17px}.vault-bottom{font-size:10px;color:#899791;margin-top:18px;text-align:center}.vault-error{padding:10px 12px;border-radius:10px;background:#fff0ee;color:#a3483f;font-size:11px;margin:12px 0}.field-help{font-size:10px;color:#819088;margin:6px 1px 0}.settings-action{width:100%;display:block;margin:8px 0}.settings-action.danger{margin-top:17px}.transaction[hidden]{display:none}
@media(max-width:760px){.visual-grid{grid-template-columns:1fr}.chart-card{min-height:185px}.donut-area{flex-direction:row;align-items:center;justify-content:center;gap:18px}.donut{width:124px;height:124px;flex:none}.donut-legend{max-width:165px}.vault-card{padding:24px 21px}}
body.desktop-readonly .fab,body.desktop-readonly button[data-action^="add-"],body.desktop-readonly [data-action="edit-account"],body.desktop-readonly [data-action="delete-account"],body.desktop-readonly [data-action="budget"],body.desktop-readonly [data-action="goal"],body.desktop-readonly [data-action="import"],body.desktop-readonly [data-action="resolve-conflict"],body.desktop-readonly [data-action="change-pass"]{display:none!important}.desktop-banner{max-width:850px;margin:6px auto 15px;padding:10px 14px;border:1px solid #dcebe3;border-radius:12px;background:#edf5f0;color:#527269;font-size:11px;font-weight:750;letter-spacing:.5px}.sync-warning{max-width:850px;margin:8px auto 15px;padding:13px 15px;display:grid;gap:8px;border:1px solid #e8d6b8;border-radius:14px;background:#fff9ed;color:#624e30;font-size:12px}.sync-warning div{display:flex;gap:8px}.sync-warning button{font-size:11px;padding:8px 11px}

