:root{--navy:#123a55;--navydeep:#092b45;--blue:#0785bd;--blue2:#1f9dd4;--pale:#edf7fc;--bg:#f5f8fb;--white:#fff;--ink:#17374d;--muted:#7890a0;--border:#e3ebf0;--success:#168c6a;--danger:#c34b4d;--shadow:0 10px 30px rgba(25,55,80,.06);font-family:-apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei','Noto Sans SC',system-ui,sans-serif;color:var(--ink)}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg)}body{font-size:14px}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #76c9ed;outline-offset:2px}[hidden]{display:none!important}.app-shell{display:flex;min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;width:255px;min-width:255px;padding:34px 24px;background:var(--navydeep);display:flex;flex-direction:column;color:#fff}.brand{display:flex;align-items:center;gap:12px}.brand-mark{width:44px;height:44px;background:linear-gradient(135deg,#0789c4,#32bee5);border-radius:13px;display:grid;place-items:center;font-weight:900;font-size:26px;letter-spacing:-2px;color:white}.brand-mark span,.mobile-logo span{font-size:17px;color:#b7edff;margin-left:1px}.brand-text{display:flex;flex-direction:column;gap:3px;letter-spacing:.1em}.brand-text strong{font-size:17px;letter-spacing:.12em}.brand-text small{font-size:8px;letter-spacing:.16em;color:#8ab6cf}.sidebar-tag{font-size:10px;letter-spacing:.14em;color:#6d9fba;padding:50px 14px 20px}.side-menu{display:grid;gap:10px}.nav-link{width:100%;border:0;background:transparent;color:#9abbd0;padding:15px 16px;text-align:left;display:flex;gap:16px;align-items:center;border-radius:12px;font-weight:600}.nav-link span{font-size:20px;width:20px;text-align:center}.nav-link.active,.nav-link:hover{color:#fff;background:#174d70}.sidebar-foot{margin-top:auto;border-top:1px solid #245571;color:#b2d5e5;line-height:1.8;padding:22px 4px;font-size:12px}.sidebar-foot small{color:#79a4bf}.dot{display:inline-block;background:#32cb9e;width:7px;height:7px;border-radius:50%;margin-right:5px}.main-column{width:calc(100% - 255px);min-width:0}.topbar{height:92px;background:white;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 5.4%}.topbar-left{display:flex;align-items:center;gap:12px}.topbar-eyebrow{font-size:10px;letter-spacing:.2em;color:#93a8b8;font-weight:700}.topbar h1{font-size:21px;margin:5px 0 0;font-weight:750}.topbar-right{display:flex;align-items:center;gap:12px;color:var(--ink);font-weight:650}.avatar{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#e8f5fb;color:var(--blue);font-weight:800;font-size:12px}.mobile-logo{display:none}.main-content{max-width:1430px;margin:auto;padding:36px 5.4% 80px}.page{display:none;animation:fade .22s ease}.page.active{display:block}@keyframes fade{from{opacity:.5;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}.eyebrow{color:#1093c7;letter-spacing:.16em;font-size:10px;font-weight:800;margin:0 0 12px}.greeting,.section-header{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:27px}.greeting h2,.section-header h2{font-size:27px;margin:0 0 9px;letter-spacing:-.03em}.greeting p:last-child,.section-header p:last-child{color:var(--muted);font-size:13px;margin:0}.btn{border:0;border-radius:11px;padding:13px 18px;font-size:13px;font-weight:700;display:inline-flex;align-items:center;gap:8px;justify-content:center;min-height:44px}.btn-primary{background:var(--blue);color:#fff;box-shadow:0 5px 16px rgba(8,133,189,.16)}.btn-primary:hover{background:#006b9d}.btn-outline{background:#fff;border:1px solid #d4e4ee;color:var(--navy)}.btn-outline:hover{background:#f2fbff}.btn-danger{color:#c63d46;border:1px solid #f2d9da;background:#fff}.overview-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(220px,.82fr);gap:18px}.budget-card{position:relative;overflow:hidden;background:linear-gradient(112deg,#073b5d,#075b84);border-radius:20px;color:white;padding:30px 33px;min-height:258px}.budget-glow{pointer-events:none;position:absolute;width:280px;height:280px;border-radius:50%;right:-60px;top:-80px;background:radial-gradient(circle,#36d0f03b,transparent 70%)}.budget-head,.budget-line{display:flex;align-items:center;justify-content:space-between;position:relative}.budget-head{font-size:14px;color:#cce8f6}.budget-chip{border:1px solid #5ba0bb;border-radius:7px;padding:4px 10px;font-size:10px;letter-spacing:.1em}.budget-amount{margin:28px 0 25px;font-size:52px;font-weight:750;letter-spacing:-.04em;line-height:1}.budget-amount small{font-size:19px;font-weight:550;letter-spacing:0;color:#9bd7ed}.budget-line{font-size:12px;color:#add4e6;gap:15px}.budget-line strong{color:white}.progress-track{width:100%;background:#377a9b;height:7px;border-radius:20px;overflow:hidden;margin-top:12px}.progress-fill{height:100%;width:0;background:linear-gradient(90deg,#61dcf9,#d0faff);border-radius:20px;transition:width .35s}.budget-bottom{margin-top:19px;color:#9ccfe5;font-size:11px}.kpi-stack{display:grid;gap:16px}.kpi{background:#fff;border:1px solid var(--border);border-radius:18px;padding:25px 22px;display:flex;align-items:center;gap:17px;box-shadow:var(--shadow)}.kpi-icon{width:56px;height:56px;display:grid;place-items:center;background:#edfbf4;color:#0b9d7f;font-size:25px;border-radius:14px}.kpi-icon.blue{background:#eaf7fe;color:#098ec1}.kpi>div:last-child{display:grid;gap:10px}.kpi-label{font-size:12px;color:var(--muted)}.kpi strong{font-size:25px;line-height:1}.kpi strong small{font-size:13px;color:var(--muted)}.quick-actions{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:22px 0}.quick-actions button{padding:20px 21px;border-radius:15px;display:flex;align-items:center;gap:15px;text-align:left;border:1px solid #d3e9f4;min-width:0}.quick-primary{background:#e5f5fe;color:#0a608c}.quick-secondary{background:#fff;color:var(--navy)}.action-icon{width:40px;height:40px;background:white;color:var(--blue);display:grid;place-items:center;border-radius:12px;font-size:25px;flex:none}.quick-actions button span:nth-child(2){display:grid;gap:5px;min-width:0}.quick-actions strong{font-size:15px}.quick-actions small{font-size:11px;color:#7999ae}.quick-actions b{margin-left:auto;font-size:20px;font-weight:400}.sections-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.panel{background:#fff;border-radius:18px;padding:25px;border:1px solid var(--border);box-shadow:var(--shadow);min-width:0}.panel-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.panel-title .eyebrow{margin-bottom:7px}.panel-title h3,.panel h3{font-size:17px;margin:0}.link-button,.minor-btn{background:transparent;border:0;color:var(--blue);font-size:12px;font-weight:700}.subtext{color:var(--muted);font-size:11px}.category-bars{display:grid;gap:22px}.cat-top{display:flex;align-items:center;justify-content:space-between;font-size:13px;margin-bottom:10px}.cat-top span:first-child{font-weight:650}.cat-top span:last-child{color:#617c90}.cat-track{height:7px;background:#edf3f7;border-radius:20px;overflow:hidden}.cat-fill{height:100%;background:#0e91c4;border-radius:20px}.cat-empty,.record-empty{padding:37px 10px;text-align:center;color:#869caa;line-height:1.8}.record-empty strong{display:block;color:var(--ink);font-size:15px}.record-list{display:grid}.record-item{padding:15px 0;border-bottom:1px solid #edf0f3;display:flex;align-items:center;gap:12px}.record-item:first-child{padding-top:0}.record-item:last-child{border-bottom:0;padding-bottom:0}.record-icon{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:12px;background:#edf7fb;font-size:21px}.record-info{min-width:0;flex:1}.record-info strong{font-size:13px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.record-info span{font-size:11px;color:#879aa8;display:block;margin-top:5px}.record-money{text-align:right;flex:none}.record-money strong{font-size:13px;display:block}.record-money small{font-size:11px;display:block;margin-top:5px;color:var(--muted)}.record-item button.edit-record{padding:6px;background:transparent;border:0;color:var(--muted);font-size:18px}.quiet-note{background:#eef5f9;border:1px solid #dfebf2;border-radius:12px;margin-top:24px;padding:15px 18px;color:#668296;font-size:12px;line-height:1.65}.section-header{margin-bottom:28px}.filters{display:flex;gap:14px;margin-bottom:20px;align-items:end}.filters label{display:grid;gap:8px;font-size:12px;color:#647e91;font-weight:600}.filters select,.filters input{min-width:168px}.ledger-panel{min-height:260px}.form-row{display:grid;gap:8px}.form-row label{display:grid;gap:8px}.report-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:22px;align-items:start}.report-stats{display:grid;grid-template-columns:1fr 1fr;gap:24px;padding:27px 0;border-bottom:1px solid var(--border)}.report-stats>div{display:grid;gap:10px}.report-stats span{color:var(--muted);font-size:12px}.report-stats strong{font-size:22px}.report-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:25px 0 13px}.fineprint,.muted{font-size:12px;line-height:1.8;color:var(--muted)}.report-preview{background:white;border-radius:17px;border:1px solid var(--border);box-shadow:var(--shadow);overflow:hidden}.preview-header{height:124px;background:linear-gradient(117deg,#0c3857,#05628b);padding:33px 35px;display:grid;gap:4px;color:#b2dbea;font-size:10px;letter-spacing:.17em}.preview-logo{font-size:28px;color:white;letter-spacing:.09em;font-weight:800}.preview-body{padding:25px 35px}.preview-body>p{color:var(--muted);font-size:12px}.preview-body h3{font-size:20px;margin:10px 0 23px}.preview-row{border-top:1px solid var(--border);padding:18px 0;display:flex;align-items:center;justify-content:space-between;gap:10px}.preview-row small{color:var(--muted)}.preview-row strong{font-size:22px}.preview-cat{border-top:1px solid var(--border);padding:20px 0}.preview-cat>div{display:flex;justify-content:space-between;color:#668194;font-size:12px;margin-bottom:10px}.preview-bottom{color:#a1b5c1;letter-spacing:.1em;text-align:center;font-size:9px;padding:16px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.settings-grid .panel h3{margin-bottom:21px}.form-stack{display:grid;gap:19px}.form-stack label,.form-row label{display:grid;gap:9px;font-weight:650;font-size:12px;color:#567186}.form-stack input,.form-stack select,.form-stack textarea,.filters input,.filters select,.form-row input{width:100%;background:#fff;border:1px solid #d6e4ed;border-radius:10px;padding:12px 13px;color:var(--ink);outline:none;min-height:45px}.form-stack input:focus,.form-stack select:focus,.form-stack textarea:focus,.filters input:focus,.filters select:focus{border-color:var(--blue)}.form-hint{color:#8096a5;font-weight:400;font-size:11px;line-height:1.5}.button-stack{display:grid;gap:12px;margin:23px 0}.warning{font-size:12px;color:#bb7c39;line-height:1.7;background:#fff9ef;border-radius:9px;padding:12px}.settings-info{grid-column:1/-1}.settings-info p{font-size:12px;color:#6c8392;line-height:1.7}.bottom-nav{display:none}.overlay{position:fixed;inset:0;background:#08263d99;z-index:100;display:flex;justify-content:center;align-items:center;padding:18px}.sheet{width:min(620px,100%);max-height:93vh;background:#fff;border-radius:20px;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 25px 70px #071a2b50}.sheet-top{padding:25px 27px 18px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--border)}.sheet-top .eyebrow{margin-bottom:5px}.sheet-top h2{font-size:21px;margin:0}.icon-button{width:36px;height:36px;border-radius:50%;border:0;background:#eef4f7;color:#65849b}.sheet-scroll{padding:23px 27px 30px;overflow:auto;overscroll-behavior:contain}.upload-area{border:1.5px dashed #aed4e7;background:#f5fbff;border-radius:15px;min-height:163px;padding:17px;text-align:center;display:grid;justify-items:center;gap:8px;margin-bottom:14px}.upload-symbol{font-size:31px;color:var(--blue)}.upload-area strong{font-size:14px}.upload-area>span{font-size:12px;color:var(--muted)}.upload-buttons{display:flex;gap:10px;margin-top:7px}.upload-buttons .btn{padding:10px 15px}.upload-area img{max-width:95%;max-height:225px;object-fit:contain;border-radius:10px;box-shadow:0 4px 12px #173e531d;margin-top:12px}.upload-area .minor-btn{margin-top:5px}.ocr-status{padding:12px 14px;background:#e7f7ff;border-radius:9px;color:#0477a5;font-size:12px;line-height:1.7;margin:0 0 12px}.ocr-status.error{background:#fff4ee;color:#bf6245}.ocr-details{font-size:12px;color:#608294;background:#f7f9fb;border-radius:9px;padding:10px 12px;margin-bottom:15px}.ocr-details pre{font-size:11px;white-space:pre-wrap;word-break:break-word;max-height:180px;overflow:auto}.input-two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.converted-amount{background:#edf7fc;border-radius:9px;padding:14px;font-size:12px;color:#5b819a;display:flex;justify-content:space-between;align-items:center}.converted-amount strong{font-size:19px;color:var(--blue)}.required{color:#d8524a}.save-big{width:100%;margin-top:6px;padding:15px}.toast{position:fixed;z-index:300;bottom:30px;left:50%;transform:translateX(-50%) translateY(18px);background:var(--navydeep);color:white;padding:14px 19px;border-radius:11px;box-shadow:0 10px 35px #0b31415c;max-width:90vw;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;line-height:1.5;white-space:pre-wrap}.toast.visible{opacity:1;transform:translateX(-50%) translateY(0)}@media(max-width:1100px){.sidebar{width:215px;min-width:215px}.main-column{width:calc(100% - 215px)}.main-content{padding:28px 4% 85px}.topbar{padding:0 4%}.budget-amount{font-size:40px}.budget-card{padding:25px}.kpi{padding:20px 14px}.kpi-icon{width:43px;height:43px}.kpi strong{font-size:21px}.sections-grid,.settings-grid{gap:13px}.panel{padding:21px}}@media(max-width:800px){.sidebar{display:none}.main-column{width:100%}.topbar{height:76px;padding:0 19px}.mobile-logo{display:grid;width:38px;height:38px;place-items:center;background:linear-gradient(120deg,#046ea2,#159ecb);color:white;border-radius:11px;font-size:23px;font-weight:800;letter-spacing:-2px}.topbar h1{font-size:17px}.topbar-eyebrow{font-size:9px}.topbar-name{font-size:11px;max-width:90px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.avatar{width:32px;height:32px}.main-content{padding:27px 17px 110px}.greeting h2,.section-header h2{font-size:22px}.desktop-new{display:none}.overview-grid{grid-template-columns:1fr}.budget-card{min-height:235px;padding:26px}.budget-amount{font-size:45px;margin:24px 0}.kpi-stack{grid-template-columns:1fr 1fr;gap:12px}.kpi{padding:18px 13px;gap:10px;border-radius:14px}.kpi-icon{width:36px;height:36px;font-size:19px;border-radius:10px}.kpi-label{font-size:10px}.kpi strong{font-size:20px}.quick-actions{gap:11px}.quick-actions button{padding:14px 13px;gap:9px}.quick-actions strong{font-size:13px}.quick-actions small{font-size:10px}.quick-actions b{display:none}.action-icon{width:34px;height:34px;font-size:23px}.sections-grid,.report-grid,.settings-grid{grid-template-columns:1fr}.panel{padding:21px}.panel-title{margin-bottom:22px}.report-actions{grid-template-columns:1fr}.settings-info{grid-column:auto}.bottom-nav{display:grid;position:fixed;bottom:0;left:0;right:0;height:calc(70px + env(safe-area-inset-bottom));padding:8px 8px calc(6px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--border);grid-template-columns:1fr 1fr 1fr 1fr 1fr;z-index:60;box-shadow:0 -5px 25px rgba(3,53,76,.05)}.bottom-link{background:transparent;border:0;color:#8da3b1;display:grid;gap:2px;align-content:center;justify-items:center;font-size:10px;padding:0}.bottom-link span{font-size:23px;line-height:1.2}.bottom-link.active{color:var(--blue);font-weight:700}.bottom-add{border:0;background:linear-gradient(140deg,#006ba3,#11a3d4);color:white;border-radius:17px;font-size:30px;width:50px;height:50px;margin:auto;box-shadow:0 5px 13px #1385b349}.toast{bottom:calc(83px + env(safe-area-inset-bottom))}.overlay{align-items:end;padding:0}.sheet{height:min(94dvh,900px);max-height:94dvh;border-radius:24px 24px 0 0;width:100%}.sheet-top{padding:22px 22px 15px}.sheet-scroll{padding:17px 20px 36px}.upload-area{min-height:150px}.filters{gap:9px}.filters label{flex:1;min-width:0}.filters select,.filters input{width:100%;min-width:0}.report-preview{max-width:420px;width:100%;margin:auto}}@media(max-width:375px){.main-content{padding-left:12px;padding-right:12px}.topbar{padding:0 12px}.budget-amount{font-size:38px}.budget-line{font-size:10px}.quick-actions small{font-size:9px}.quick-actions button{gap:6px}.kpi-icon{display:none}.kpi{padding:16px}.input-two{gap:9px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* V1.1 privacy-first controls */
.privacy-opts{background:#ecf7fd;border:1px solid #b6d8ea;padding:12px;border-radius:12px;margin:12px 0;color:#24485f;font-size:12px}
.privacy-option{display:flex!important;gap:9px;align-items:flex-start;margin-bottom:9px;font-weight:500;line-height:1.5;cursor:pointer}
.privacy-option input{width:17px;height:17px;flex-shrink:0;accent-color:#087eb5;margin-top:1px}
.privacy-opts small{display:block;color:#5e7787;margin-left:26px;line-height:1.5}
.backup-password{margin:14px 0}

/* V1.2: navigation icons rendered as inlined SVG; no emoji/font dependence */
.ui-icon{display:block;width:23px;height:23px;flex-shrink:0}
.nav-symbol{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;vertical-align:middle}
.nav-link .nav-symbol{margin-right:9px}
.nav-symbol .ui-icon{stroke:currentColor}
.bottom-link .nav-symbol{width:28px;height:28px}
.bottom-add .ui-icon{width:28px;height:28px;margin:auto}
.action-icon .ui-icon{width:25px;height:25px}
.upload-symbol .ui-icon{width:34px;height:34px}
.period-section{padding:13px 14px;background:#f4f9fc;border:1px solid #d9e8f1;border-radius:12px}
.period-switch{display:flex!important;align-items:flex-start;gap:11px;font-size:12px!important;line-height:1.65;color:#24485f!important;cursor:pointer}
.period-switch input{width:18px;height:18px;flex:none;accent-color:#087fb4;margin-top:1px}
.period-fields{margin-top:14px}
.period-fields[hidden]{display:none!important}
.period-tip{font-size:11px;color:#668397;line-height:1.7;margin-top:10px}
.record-info span{white-space:normal;line-height:1.55}
@media(max-width:800px){.bottom-link{min-height:48px}.bottom-link .nav-symbol{margin:0}.bottom-link .ui-icon{width:22px;height:22px}.bottom-add{display:grid;place-items:center}}
@media(max-width:390px){.period-fields .input-two{grid-template-columns:1fr}}
