:root{--purple:#6756e2;--purple-dark:#5745ce;--pale:#eeeafe;--ink:#242438;--muted:#9293a8;--bg:#f6f7fb;--line:#eeedf4;--green:#499579;--danger:#c25d66;--shadow:0 12px 40px #24243808;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);font-size:14px;line-height:1.5;font-synthesis:none}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}body{margin:0;background:var(--bg);overscroll-behavior-y:none}button,input,select{font:inherit}button,a{touch-action:manipulation}button{border:0;cursor:pointer;color:inherit;background:none}button:disabled{opacity:.5;cursor:wait}button:active{transform:scale(.98)}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:2px solid #9b8df2;outline-offset:3px}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}a{color:var(--purple);text-decoration:none}h1,h2,h3,p{margin:0}h1{font-size:27px;letter-spacing:-.8px;line-height:1.3}h2{font-size:19px;letter-spacing:-.4px}h3{font-size:15px}button,.tabular{font-variant-numeric:tabular-nums}#shell{max-width:620px;margin:auto;padding:calc(22px + env(safe-area-inset-top)) 21px calc(100px + env(safe-area-inset-bottom))}#desktopSidebar{display:none}#header{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px;gap:14px}#header p{font-size:12px;color:var(--muted);margin-top:7px}.brand-icon{width:46px;height:46px;border-radius:16px;background:var(--pale);color:var(--purple);display:grid;place-items:center;font-size:21px;flex:none}.header-logo{padding:0}.header-date{font-size:11px;color:#aaa7bc;margin-bottom:7px;letter-spacing:.3px}.section-title{display:flex;align-items:center;justify-content:space-between;margin:24px 0 12px}.section-title h2{font-size:18px}.text-button{color:var(--purple);font-size:13px;min-height:44px;padding:8px 0 8px 12px}.muted{color:var(--muted)}.hero{padding:23px;border-radius:27px;background:linear-gradient(120deg,#e8e3fe,#f0edff);position:relative;overflow:hidden}.hero:after{content:"";position:absolute;width:170px;height:170px;border:28px solid #ffffff27;border-radius:50%;right:-73px;top:-55px;pointer-events:none}.hero-label{display:flex;justify-content:space-between;font-size:13px;color:#88809f;position:relative;z-index:1}.hero-label small{font-size:11px}.hero-value{font-size:42px;letter-spacing:-1.6px;line-height:1.15;margin:18px 0 23px;font-weight:650;white-space:nowrap;font-variant-numeric:tabular-nums;font-family:ui-rounded,-apple-system,BlinkMacSystemFont,sans-serif;position:relative;z-index:1}.hero-value.long{font-size:29px}.hero-stats{display:grid;grid-template-columns:1fr 1fr;gap:20px}.hero-stats small{display:block;color:#918aa3;font-size:11px}.hero-stats strong{display:block;font-size:18px;font-weight:550;margin-top:6px;letter-spacing:-.3px;font-variant-numeric:tabular-nums}.quick-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}.quick-tile{display:flex;align-items:center;gap:11px;text-align:left;padding:17px 15px;background:var(--pale);border-radius:21px;min-height:84px}.quick-tile.blue{background:#e7f1ff}.quick-tile svg{color:var(--purple);width:25px;height:25px}.quick-tile strong{display:block;font-size:15px;font-weight:600}.quick-tile small{display:block;color:#9390a5;font-size:10px;margin-top:5px}.card{padding:18px;background:white;border-radius:23px;box-shadow:var(--shadow)}.budget-card{margin-top:14px}.budget-top{display:flex;justify-content:space-between;align-items:center}.budget-top .text-button{min-height:25px;padding:0 0 0 12px}.budget-card p{font-size:12px;color:var(--muted);margin-top:10px}.budget-track{height:6px;background:#efedf7;border-radius:5px;margin-top:13px;overflow:hidden}.budget-track span{height:100%;display:block;background:var(--purple);border-radius:5px}.budget-card.over p{color:var(--danger)}.budget-card.over .budget-track span{background:var(--danger)}.budget-meta{display:flex;justify-content:space-between;font-size:10px;color:#aaa3ba;margin-top:8px}.bill-group{background:white;border-radius:23px;padding:0 16px;box-shadow:var(--shadow)}.bill{width:100%;display:flex;align-items:center;text-align:left;gap:12px;padding:16px 0;min-height:78px}.bill+.bill{border-top:1px solid var(--line)}.bill-badge{width:42px;height:42px;background:var(--pale);color:var(--purple);border-radius:14px;display:grid;place-items:center;flex:none}.bill-badge.income{color:var(--green);background:#e9f4ee}.bill-badge svg{width:21px;height:21px}.bill-desc{flex:1;min-width:0}.bill-desc strong{font-size:14px;font-weight:550;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bill-desc small{font-size:11px;color:var(--muted);display:block;margin-top:6px}.bill-value{font-size:18px;font-family:ui-rounded,-apple-system,sans-serif;font-weight:550;letter-spacing:-.4px;flex:none;max-width:50%;overflow-wrap:anywhere}.bill-value.income{color:var(--green)}.empty{display:flex;align-items:center;flex-direction:column;padding:30px 20px;text-align:center}.empty-mark{height:54px;width:54px;border-radius:18px;background:var(--pale);color:#9b8fda;display:grid;place-items:center;margin-bottom:16px}.empty-mark svg{width:28px;height:28px}.empty h3{font-size:15px}.empty p{color:var(--muted);font-size:12px;margin-top:8px;max-width:280px}.chart-card{padding:20px 16px 16px}.week-chart{height:122px;display:grid;grid-template-columns:repeat(7,1fr);align-items:end;gap:12px}.chart-column{display:flex;flex-direction:column;align-items:center;justify-content:end;height:100%}.bar-wrap{height:84px;width:15px;background:#f6f4fb;border-radius:9px;position:relative;overflow:hidden}.chart-bar{position:absolute;bottom:0;width:100%;background:#cbc2f7;border-radius:9px;min-height:0}.chart-column:last-child .chart-bar{background:var(--purple)}.chart-column span{font-size:10px;color:var(--muted);margin-top:10px}.chart-column:last-child span{color:var(--purple)}.chart-note{color:var(--muted);font-size:11px;margin-top:14px;text-align:center}.install-card{display:flex;gap:12px;align-items:center;text-align:left;width:100%;margin-top:18px;padding:16px 18px}.install-card>svg{color:var(--purple)}.install-card div{flex:1}.install-card strong{display:block;font-size:14px;font-weight:550}.install-card small{display:block;font-size:11px;color:var(--muted);margin-top:5px}.install-card .arrow{width:16px;color:#b0a9c2}.local-footnote{font-size:11px;color:#a6a2b5;margin-top:18px;line-height:1.7;text-align:center}#pageFooter{text-align:center;font-size:10px;color:#b6b1c4;letter-spacing:2px;padding-top:26px}#bottomNav{position:fixed;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(5,1fr);align-items:center;padding:8px 10px calc(8px + env(safe-area-inset-bottom));background:#fffffff5;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border-top:1px solid #eeedf488;z-index:5}#bottomNav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:52px;color:#a29db2;font-size:10px;border-radius:15px}#bottomNav button.active{color:var(--purple)}#bottomNav button.active:not(.nav-add){background:#f4f1ff}#bottomNav svg{width:21px;height:21px}#bottomNav .nav-add{color:var(--purple);transform:translateY(-6px)}.nav-add i{width:45px;height:45px;border-radius:16px;background:var(--purple);color:white;display:grid;place-items:center;box-shadow:0 5px 15px #6756e233;font-style:normal}.nav-add i svg{width:23px;height:23px}.month-picker{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.month-picker button{color:var(--purple);min-height:44px;min-width:44px;border-radius:13px;background:white}.month-picker svg{height:17px;width:17px}.month-picker strong{font-size:18px;font-weight:600}.monthly-stats{display:grid;grid-template-columns:1fr 1fr;gap:18px}.stat-label{font-size:11px;color:var(--muted)}.stat-value{font-size:23px;letter-spacing:-.6px;font-weight:550;margin-top:7px;font-variant-numeric:tabular-nums}.stat-value.income{color:var(--green)}.search-wrap{display:flex;align-items:center;gap:10px;padding:0 14px;background:white;border-radius:15px;margin-top:16px}.search-wrap svg{color:#b1a9c4;width:18px;height:18px}.search-wrap input{width:100%;border:0;outline:0;background:transparent;height:48px;font-size:16px;min-width:0;color:var(--ink)}.search-wrap input::placeholder{font-size:13px;color:#aaa4b8}.filters{display:flex;gap:8px;margin:13px 0 16px;flex-wrap:wrap}.filter{font-size:12px;color:var(--muted);padding:9px 15px;border-radius:12px;background:#ecebf4;min-height:40px}.filter.active{background:var(--pale);color:var(--purple)}.day-heading{font-size:12px;font-weight:500;color:var(--muted);margin:20px 2px 10px;display:flex;justify-content:space-between}.day-heading small{font-size:11px;font-weight:400}.show-more{width:100%;color:var(--purple);font-size:13px;min-height:46px;margin-top:12px}.trend-summary{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:12px}.trend-summary span{display:block;font-size:12px;color:var(--muted)}.trend-summary strong{display:block;font-size:25px;letter-spacing:-.8px;margin-top:6px}.category-stat{margin-top:20px}.category-stat:first-child{margin-top:0}.category-stat-top{display:flex;align-items:center;gap:10px}.category-stat-top .bill-badge{width:34px;height:34px;border-radius:11px}.category-stat-top svg{width:17px;height:17px}.category-stat-name{flex:1;font-size:13px}.category-stat-amount{text-align:right;font-size:14px;font-weight:550}.category-stat-amount small{font-size:10px;color:var(--muted);font-weight:400;margin-left:7px}.category-stat .budget-track{margin-left:44px;margin-top:9px;height:5px}.settings-profile{padding:22px;display:flex;align-items:center;gap:15px}.profile-icon{width:54px;height:54px;border-radius:18px;background:var(--pale);display:grid;place-items:center;color:var(--purple)}.profile-icon svg{width:26px;height:26px}.settings-profile h2{font-size:20px}.settings-profile p{font-size:12px;color:var(--muted);margin-top:6px}.settings-group{padding:0 16px}.setting-row{width:100%;display:flex;align-items:center;gap:13px;text-align:left;padding:17px 0;min-height:76px}.setting-row+.setting-row{border-top:1px solid var(--line)}.setting-row>svg:first-child{color:var(--purple);height:20px;width:20px}.setting-row div{flex:1}.setting-row strong{display:block;font-size:14px;font-weight:500}.setting-row small{display:block;font-size:11px;color:var(--muted);margin-top:6px}.setting-row>.arrow{height:16px;width:16px;color:#b4aec1}.privacy-note{font-size:12px;color:var(--muted);line-height:1.8}.privacy-note strong{display:block;color:var(--ink);font-size:13px;font-weight:550;margin-bottom:8px}.status-chip{display:inline-flex;align-items:center;gap:6px;font-size:10px;color:var(--green);background:#e9f5ee;border-radius:20px;padding:5px 9px;margin-top:10px}.local-dot{display:inline-block;width:6px;height:6px;background:#73b49d;border-radius:50%;margin-right:5px}.sheet{position:fixed;inset:auto 0 0;width:min(100%,560px);max-width:100%;max-height:calc(100dvh - 18px);padding:0;margin:0 auto;border:0;border-radius:27px 27px 0 0;background:white;color:var(--ink);box-shadow:0 -10px 70px #1d18382b;overflow:hidden;overscroll-behavior:contain}.sheet::backdrop{background:#25213866;backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}.sheet-head{display:flex;align-items:center;justify-content:space-between;padding:15px 23px 7px;flex:none}.sheet-head h2{font-size:21px;letter-spacing:-.5px}.sheet-head button{font-size:14px;padding-left:14px}.sheet form{margin:0}.sheet#entryDialog form{height:min(830px,calc(100dvh - 20px));display:flex;flex-direction:column}.entry-scroll{overflow:auto;min-height:0;flex:1;padding:8px 23px 14px;-webkit-overflow-scrolling:touch;scrollbar-width:thin}.entry-footer{padding:9px 23px calc(15px + env(safe-area-inset-bottom));background:white;flex:none;border-top:1px solid #f7f5fb}.segmented{display:flex;background:var(--bg);padding:4px;border-radius:14px;gap:4px;margin-bottom:11px}.segmented button{width:50%;min-height:37px;font-size:14px;color:var(--muted);border-radius:11px}.segmented button.active{background:var(--pale);color:var(--purple);font-weight:550}.amount-label{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--muted);min-height:31px}.date-label{color:var(--purple);font-size:13px;max-width:165px}.date-label input{border:0;min-height:34px;max-width:165px;background:transparent;color:var(--purple);font-size:13px;padding:0;-webkit-appearance:none;appearance:none;font-family:inherit}.amount-input-wrap{display:flex;align-items:center;gap:8px;margin:0 0 10px;height:65px}.amount-input-wrap>span{font-size:31px;font-weight:500}.amount-input-wrap input{font-size:41px;letter-spacing:-1px;font-weight:600;color:var(--ink);font-family:ui-rounded,-apple-system,sans-serif;background:transparent;border:0;outline:0;padding:0;min-width:0;width:100%;font-variant-numeric:tabular-nums}.amount-input-wrap input::placeholder{color:#ccc8da}.category-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:6px 2px;margin:2px 0 14px}.category-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;height:56px;border-radius:14px;font-size:10px;color:#9995a9}.category-button svg{width:20px;height:20px}.category-button.active{color:var(--purple);background:var(--pale)}.field-label{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);margin-bottom:7px}.field-label span{font-size:10px;color:#b8b1c3}.field-input{width:100%;font-size:16px;border:1px solid transparent;outline:0;background:var(--bg);padding:12px 14px;border-radius:13px;color:var(--ink);min-height:47px}.field-input::placeholder{font-size:13px;color:#b1aabd}.number-pad{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-bottom:12px}.number-pad button{background:var(--bg);height:43px;border-radius:13px;font-size:24px;font-family:ui-rounded,-apple-system,sans-serif;font-weight:500}.number-pad button svg{width:25px;height:25px}.primary-button{display:flex;align-items:center;justify-content:center;width:100%;min-height:49px;background:var(--purple);border-radius:15px;color:white;font-size:15px;font-weight:550;letter-spacing:.2px}.primary-button:hover{background:var(--purple-dark)}.plain-button{width:100%;min-height:45px;color:var(--muted);font-size:13px;margin-top:8px}.small-sheet{max-height:calc(100dvh - 40px);overflow:auto}.small-content{padding:8px 23px calc(23px + env(safe-area-inset-bottom))}.small-content .primary-button{margin-top:19px}.small-content .subtle{color:var(--muted);font-size:13px;line-height:1.8;margin-bottom:19px}.small-content .field-label{margin-top:20px}.budget-input{font-size:24px;font-family:ui-rounded,-apple-system,sans-serif}.budget-input::placeholder{font-size:16px}.inline-error{color:var(--danger);font-size:12px;line-height:1.7;margin-top:12px}.delete-button{font-size:12px;color:var(--danger);min-height:42px;display:block;margin:7px auto 0}.receipt-notice{font-size:11px;padding:10px 12px;color:var(--purple);background:var(--pale);border-radius:12px;margin-bottom:12px;line-height:1.7}.amount-candidates{display:flex;gap:7px;overflow-x:auto;margin-bottom:12px;padding-bottom:3px}.candidate{flex:none;color:var(--purple);background:var(--pale);border-radius:10px;padding:8px 12px;min-height:36px;font-size:12px}.receipt-raw{margin-top:13px;color:var(--muted);font-size:11px}.receipt-raw summary{cursor:pointer;min-height:35px}.receipt-raw pre{white-space:pre-wrap;font:inherit;line-height:1.7;background:var(--bg);border-radius:12px;padding:12px;max-height:170px;overflow:auto}.help-icon{height:62px;width:62px;border-radius:20px;color:var(--purple);background:var(--pale);font-size:28px;display:grid;place-items:center;margin:6px auto 22px}.help-steps{padding-left:22px;line-height:1.9;font-size:14px}.help-steps li{margin-bottom:12px;padding-left:4px}.help-steps li::marker{color:var(--purple);font-weight:600}.help-note{font-size:12px;color:var(--muted);line-height:1.8;margin-top:14px}.import-icon{width:48px;height:48px;border-radius:15px;background:var(--pale);color:var(--purple);display:grid;place-items:center;margin:8px 0 16px}#importSummary{font-size:16px;line-height:1.8;margin-bottom:16px}.ocr-animation{width:58px;height:58px;border:2px solid #d8d0ff;border-radius:16px;margin:18px auto 22px;background:linear-gradient(180deg,transparent 0,var(--pale) 50%,transparent 100%);position:relative;overflow:hidden}.ocr-animation:after{content:"";height:2px;background:var(--purple);position:absolute;left:5px;right:5px;top:0;animation:scan 1.8s ease-in-out infinite}#ocrStatus{text-align:center;font-size:14px;color:var(--ink);margin-bottom:17px}#ocrProgress{display:block;width:100%;height:7px;border:0;accent-color:var(--purple)}#ocrProgress::-webkit-progress-bar{background:var(--pale);border-radius:10px}#ocrProgress::-webkit-progress-value{background:var(--purple);border-radius:10px}#toast{position:fixed;left:50%;bottom:calc(96px + env(safe-area-inset-bottom));transform:translateX(-50%);max-width:calc(100% - 36px);width:max-content;display:flex;align-items:center;gap:18px;padding:13px 17px;border-radius:15px;background:#2e2943;color:white;font-size:12px;box-shadow:0 8px 30px #24243820;z-index:30;line-height:1.6}#toast button{color:#d6caff;font-size:12px;min-height:28px;white-space:nowrap}.loading{padding:70px 20px;text-align:center;color:var(--muted);font-size:13px;display:flex;align-items:center;justify-content:center;gap:12px}.spinner{width:18px;height:18px;border-radius:50%;border:2px solid #dfd9f5;border-top-color:var(--purple);animation:spin 1s linear infinite}.fatal{padding:28px;line-height:1.9}.fatal h2{margin-bottom:12px}.fatal p{font-size:13px;color:var(--muted);margin-bottom:22px}.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.no-script{padding:24px;text-align:center;color:var(--danger)}[hidden]{display:none!important}@keyframes spin{to{transform:rotate(360deg)}}@keyframes scan{50%{top:95%}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;scroll-behavior:auto!important}}@media(min-width:900px){#shell{display:grid;grid-template-columns:220px minmax(0,620px);gap:48px;max-width:1020px;padding:36px 30px 60px}.app-column{min-width:0}#desktopSidebar{display:flex;flex-direction:column;position:sticky;top:36px;align-self:start;min-height:calc(100dvh - 72px)}.wordmark{display:flex;align-items:center;gap:12px;font-size:20px;font-weight:600;color:var(--ink)}.wordmark small{display:block;font-size:10px;color:var(--muted);font-weight:400;margin-top:5px}.wordmark .brand-icon{height:45px;width:45px;font-size:22px}#sideNav{display:flex;flex-direction:column;gap:8px;margin-top:45px}#sideNav button{min-height:48px;display:flex;gap:14px;align-items:center;text-align:left;padding:12px 18px;border-radius:15px;font-size:14px;color:#9390a3}#sideNav button.active{background:var(--pale);color:var(--purple)}#sideNav .side-new{background:var(--purple);color:white;margin-top:20px;justify-content:center;gap:10px}.sidebar-note{margin-top:auto;color:#9993aa;line-height:1.9;font-size:11px;padding:50px 15px 10px}.sidebar-note span:last-child{color:#b5aec2}#bottomNav{display:none}#toast{bottom:30px}.hero-value{font-size:46px}.quick-tile{min-height:92px}.week-chart{height:140px}.bar-wrap{height:100px}#header p{font-size:13px}.sheet{bottom:25px;border-radius:27px;max-height:calc(100dvh - 50px)}.sheet#entryDialog form{height:min(840px,calc(100dvh - 50px))}}@media(max-width:360px){#shell{padding-left:16px;padding-right:16px}.hero{padding:19px}.hero-value{font-size:35px}.hero-stats strong{font-size:16px}.quick-tile{gap:8px;padding:14px 11px}.quick-tile strong{font-size:14px}.quick-tile small{font-size:9px}.sheet-head{padding-left:18px;padding-right:18px}.entry-scroll,.entry-footer{padding-left:18px;padding-right:18px}.bill-value{font-size:16px}}

