:root{color-scheme:light;--ink:#142724;--ink-soft:#566662;--forest:#123f38;--forest-2:#1b584e;--mint:#c9e5d7;--cream:#f4f0e7;--paper:#fffdf8;--line:rgba(20,39,36,0.12);--orange:#f06c4f;--yellow:#f2cf70;--shadow:0 24px 70px rgba(28,48,43,0.1);--radius-lg:32px;--radius-md:22px;--radius-sm:15px;font-family:-apple-system,BlinkMacSystemFont,SF Pro Display,PingFang SC,Helvetica Neue,sans-serif}*{box-sizing:border-box}html{scroll-behavior:smooth;background:var(--cream)}body{margin:0;min-width:320px;color:var(--ink);background:radial-gradient(circle at 12% -4%,rgba(242,207,112,.33),transparent 27rem),radial-gradient(circle at 95% 24%,rgba(166,213,194,.3),transparent 30rem),var(--cream);min-height:100vh;-webkit-font-smoothing:antialiased}button,input{font:inherit}button{color:inherit}a,button,input{-webkit-tap-highlight-color:transparent}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid rgba(240,108,79,.36);outline-offset:3px}.ambient{position:fixed;z-index:-1;width:280px;height:280px;border-radius:50%;filter:blur(90px);opacity:.32;pointer-events:none}.ambient-one{top:3%;left:-120px;background:var(--yellow)}.ambient-two{top:44%;right:-160px;background:#7fc2aa}.app-shell{width:min(1120px,calc(100% - 32px));margin:0 auto;padding:max(18px,env(safe-area-inset-top)) 0 max(28px,env(safe-area-inset-bottom))}.topbar{display:flex;justify-content:space-between;padding:12px 2px 26px}.brand,.topbar{align-items:center}.brand{display:inline-flex;gap:11px;color:inherit;text-decoration:none}.brand-mark{display:grid;place-items:center;width:46px;height:46px;color:var(--paper);background:var(--forest);border-radius:15px;box-shadow:0 9px 24px rgba(18,63,56,.2)}.brand-mark svg{width:28px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8}.brand small,.brand strong{display:block}.brand strong{font-size:18px;letter-spacing:.08em}.brand small{margin-top:3px;color:var(--ink-soft);font-size:11px;letter-spacing:.06em}.topbar-actions{display:flex;align-items:center;gap:8px}.setup-button,.vault-button{display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:0 15px;border:1px solid var(--line);border-radius:999px;background:rgba(255,253,248,.7);box-shadow:0 8px 30px rgba(20,39,36,.05);cursor:pointer}.vault-button{color:var(--forest);background:rgba(201,229,215,.48)}.vault-button svg{width:18px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.7}.setup-dot{width:8px;height:8px;border-radius:50%;background:var(--orange);box-shadow:0 0 0 4px rgba(240,108,79,.13)}.summary-card{position:relative;overflow:hidden;min-height:335px;padding:30px;color:#f8f5eb;background:linear-gradient(136deg,rgba(255,255,255,.06),transparent 45%),var(--forest);border-radius:var(--radius-lg);box-shadow:0 28px 70px rgba(18,63,56,.2)}.summary-card:after{content:"";position:absolute;width:300px;height:300px;right:-120px;top:-160px;border:1px solid rgba(255,255,255,.16);border-radius:50%;box-shadow:0 0 0 46px rgba(255,255,255,.025),0 0 0 92px rgba(255,255,255,.018)}.records-heading,.section-heading,.summary-topline{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.eyebrow{margin:0;color:#768681;font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase}.summary-card .eyebrow{color:rgba(255,255,255,.6)}.month-label{margin:5px 0 0;color:rgba(255,255,255,.9);font-size:15px}.privacy-pill{position:relative;z-index:1;display:inline-flex;align-items:center;gap:6px;padding:8px 11px;border:1px solid rgba(255,255,255,.12);border-radius:999px;color:rgba(255,255,255,.74);background:rgba(255,255,255,.06);font-size:11px;white-space:nowrap}.privacy-pill svg{width:14px;fill:none;stroke:currentColor;stroke-width:1.6}.month-total{display:flex;align-items:baseline;gap:8px;margin:24px 0 28px}.month-total span{color:var(--yellow);font-size:22px;font-weight:600}.month-total strong{font-size:clamp(44px,8vw,68px);font-weight:500;letter-spacing:-.055em;line-height:.95}.summary-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.summary-stat{min-width:0;padding:13px 14px;border:1px solid rgba(255,255,255,.08);border-radius:14px;background:rgba(255,255,255,.055)}.summary-stat span,.summary-stat strong{display:block}.summary-stat span{color:rgba(255,255,255,.52);font-size:10px;letter-spacing:.04em}.summary-stat strong{overflow:hidden;margin-top:7px;font-size:14px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.category-strip{display:flex;gap:4px;height:6px;margin-top:18px}.category-segment{min-width:6px;height:6px;border-radius:999px;transition:flex .3s ease}.strip-empty{color:rgba(255,255,255,.38);font-size:10px}.content-grid{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(340px,.92fr);gap:18px;margin-top:18px;align-items:start}.entry-card,.records-card{padding:28px;border:1px solid rgba(255,255,255,.9);border-radius:var(--radius-lg);background:rgba(255,253,248,.9);box-shadow:var(--shadow);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.dialog-header h2,.section-heading h1,.section-heading h2,.shortcut-copy h2{margin:5px 0 0;font-weight:650;letter-spacing:-.035em}.section-heading h1,.section-heading h2{font-size:25px}.type-switch{display:grid;grid-template-columns:1fr 1fr;padding:4px;border:1px solid var(--line);border-radius:13px;background:#f1eee6}.type-option{min-width:62px;height:34px;padding:0 12px;border:0;border-radius:9px;color:var(--ink-soft);background:transparent;font-size:13px;cursor:pointer}.type-option.active{color:var(--forest);background:var(--paper);box-shadow:0 3px 10px rgba(20,39,36,.09);font-weight:700}.amount-field{display:flex;align-items:baseline;gap:8px;margin-top:30px;padding-bottom:13px;border-bottom:2px solid var(--ink);cursor:text}.amount-field:focus-within{border-color:var(--orange)}.amount-field .currency{color:var(--orange);font-size:25px;font-weight:700}.amount-field input{width:100%;min-width:0;padding:0;border:0;outline:0;color:var(--ink);background:transparent;font-size:clamp(44px,8vw,60px);font-weight:560;letter-spacing:-.05em;line-height:1}.amount-field input::placeholder{color:#c8ccc6}.amount-unit{color:var(--ink-soft);font-size:12px}.field-message{min-height:18px;margin:8px 0 0;color:#7e8a87;font-size:11px}.field-message.error{color:#b54435}.field-message.prefilled{color:var(--forest-2);font-weight:600}.category-heading{display:flex;justify-content:space-between;margin:23px 0 12px;color:var(--ink);font-size:12px;font-weight:700}.category-heading span:last-child{color:#8b9692;font-size:11px;font-weight:500}.category-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.category-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:67px;padding:7px 3px;border:1px solid var(--line);border-radius:14px;background:#faf8f2;cursor:pointer;transition:transform .13s ease,border-color .13s ease,background .13s ease}.category-button:active{transform:scale(.96)}.category-button.selected{border-color:rgba(18,63,56,.28);background:var(--mint);box-shadow:inset 0 0 0 1px rgba(18,63,56,.08)}.category-icon{font-size:19px;line-height:1}.category-name{overflow:hidden;max-width:100%;color:#5f6d69;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.category-button.selected .category-name{color:var(--forest);font-weight:700}.detail-fields{display:grid;grid-template-columns:minmax(130px,.75fr) minmax(0,1.25fr);gap:10px;margin-top:20px}.detail-fields label{display:flex;flex-direction:column;gap:7px;color:var(--ink-soft);font-size:11px}.detail-fields em{color:#a3aaa7;font-style:normal;font-weight:400}.detail-fields input{width:100%;min-height:47px;padding:0 13px;border:1px solid var(--line);border-radius:13px;outline:0;color:var(--ink);background:#faf8f2;font-size:13px}.detail-fields input:focus{border-color:rgba(18,63,56,.35);box-shadow:0 0 0 3px rgba(18,63,56,.07)}.save-button{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:54px;margin-top:16px;border:0;border-radius:15px;color:#fffdf8;background:var(--forest);box-shadow:0 12px 24px rgba(18,63,56,.18);font-weight:700;cursor:pointer;transition:transform .14s ease,opacity .14s ease}.save-button svg{width:19px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.save-button:not(:disabled):active{transform:translateY(2px)}.save-button:disabled{opacity:.34;box-shadow:none;cursor:not-allowed}.records-card{min-height:536px}.text-button{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 10px;border:0;color:var(--forest-2);background:transparent;font-size:12px;font-weight:700;cursor:pointer}.text-button svg{width:17px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.7}.text-button:disabled{opacity:.3;cursor:not-allowed}.records-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:350px;text-align:center}.empty-icon{display:grid;place-items:center;width:74px;height:74px;margin-bottom:18px;border-radius:24px;color:var(--forest-2);background:var(--mint);transform:rotate(-3deg)}.empty-icon svg{width:44px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.7}.records-empty strong{font-size:16px}.records-empty p{margin:8px 0 0;color:#8b9692;font-size:12px}.records-list{margin-top:23px}.sync-error{display:grid;gap:8px;margin-top:24px;padding:18px;border:1px solid rgba(166,74,62,.16);border-radius:16px;color:#82463e;background:#fff3ef}.sync-error strong{font-size:14px}.sync-error span{font-size:11px;line-height:1.6}.sync-error button{justify-self:start;margin-top:3px;padding:0;border:0;color:var(--forest);background:transparent;font-size:11px;font-weight:800;cursor:pointer}.date-group+.date-group{margin-top:23px;padding-top:18px;border-top:1px solid var(--line)}.date-label{display:flex;justify-content:space-between;margin:0 0 9px;color:#8a9692;font-size:10px;font-weight:700;letter-spacing:.05em}.record-row{display:grid;grid-template-columns:42px minmax(0,1fr) auto 24px;align-items:center;gap:10px;min-height:61px}.record-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:13px;background:var(--record-color,#edf1ec);font-size:17px}.record-copy{min-width:0}.record-copy span,.record-copy strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.record-copy strong{font-size:13px}.record-copy span{margin-top:4px;color:#8d9794;font-size:10px}.record-amount{font-size:13px;white-space:nowrap}.record-amount.income{color:#1d775f}.record-delete{display:grid;place-items:center;width:24px;height:32px;padding:0;border:0;color:#a5aeaa;background:transparent;cursor:pointer}.record-delete svg{width:15px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-width:1.7}.shortcut-banner{display:grid;grid-template-columns:270px minmax(0,1fr);align-items:center;gap:50px;min-height:310px;margin-top:18px;padding:32px 8.5%;overflow:hidden;border:1px solid rgba(255,255,255,.92);border-radius:var(--radius-lg);background:rgba(255,253,248,.82);box-shadow:var(--shadow)}.shortcut-visual{display:grid;place-items:center}.phone-shell{position:relative;width:140px;height:246px;border:7px solid var(--ink);border-radius:34px;background:linear-gradient(155deg,#dfeee7,#f8e7b8);box-shadow:22px 26px 50px rgba(20,39,36,.17);transform:rotate(-7deg)}.phone-shell:after{content:"轻账";position:absolute;bottom:24px;left:50%;padding:6px 10px;border-radius:99px;color:white;background:var(--forest);font-size:10px;font-weight:700;transform:translateX(-50%)}.phone-notch{width:54px;height:15px;margin:-1px auto 0;border-radius:0 0 12px 12px;background:var(--ink)}.tap-center,.tap-ring{position:absolute;top:42%;left:50%;border-radius:50%;transform:translate(-50%,-50%)}.tap-ring{border:2px solid rgba(18,63,56,.26);animation:pulse 2.2s ease-out infinite}.tap-ring-one{width:64px;height:64px}.tap-ring-two{width:94px;height:94px;animation-delay:.4s}.tap-center{display:grid;place-items:center;width:48px;height:48px;color:white;background:var(--orange);box-shadow:0 9px 18px rgba(240,108,79,.3);font-size:14px;font-weight:800}@keyframes pulse{0%,35%{opacity:0;transform:translate(-50%,-50%) scale(.55)}55%{opacity:1}to{opacity:0;transform:translate(-50%,-50%) scale(1.1)}}.shortcut-copy h2{max-width:520px;font-size:clamp(28px,4vw,44px);line-height:1.08}.shortcut-copy>p:not(.eyebrow){max-width:550px;margin:17px 0 0;color:var(--ink-soft);font-size:14px;line-height:1.8}.done-button,.outline-button,.test-button{min-height:46px;border-radius:13px;font-weight:700;cursor:pointer}.outline-button{margin-top:23px;padding:0 18px;border:1px solid var(--ink);background:transparent}footer{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:30px 6px 10px;color:var(--ink-soft)}footer span,footer strong{display:block}footer strong{color:var(--ink);font-size:12px}footer span{margin-top:5px;font-size:10px;line-height:1.5}.danger-link{flex:0 0 auto;padding:2px 0;border:0;color:#a64a3e;background:transparent;font-size:11px;cursor:pointer}.danger-link:disabled{opacity:.28;cursor:not-allowed}.setup-dialog{width:min(610px,calc(100% - 28px));max-height:min(790px,calc(100dvh - 28px));padding:0;overflow:auto;border:0;border-radius:29px;color:var(--ink);background:var(--paper);box-shadow:0 34px 100px rgba(10,28,24,.35)}.setup-dialog::backdrop{background:rgba(11,27,24,.58);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.dialog-close{position:absolute;top:16px;right:16px;z-index:2;display:grid;place-items:center;width:38px;height:38px;padding:0;border:1px solid var(--line);border-radius:50%;background:rgba(255,253,248,.9);cursor:pointer}.dialog-close svg{width:18px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-width:1.8}.dialog-header{padding:34px 34px 27px;color:white;background:radial-gradient(circle at 90% -20%,rgba(242,207,112,.34),transparent 50%),var(--forest)}.dialog-kicker{color:var(--yellow);font-size:11px;font-weight:800;letter-spacing:.1em}.dialog-header h2{padding-right:45px;font-size:31px}.dialog-header p{max-width:480px;margin:12px 0 0;color:rgba(255,255,255,.67);font-size:13px;line-height:1.7}.setup-steps{display:grid;gap:22px;margin:0;padding:27px 34px 6px;list-style:none}.setup-steps li{display:grid;grid-template-columns:34px minmax(0,1fr);gap:14px}.step-number{display:grid;place-items:center;width:32px;height:32px;border-radius:11px;color:var(--forest);background:var(--mint);font-size:12px;font-weight:800}.setup-steps strong{font-size:14px}.setup-steps p{margin:6px 0 0;color:var(--ink-soft);font-size:12px;line-height:1.65}.url-box{display:flex;align-items:stretch;margin-top:10px;overflow:hidden;border:1px solid var(--line);border-radius:11px;background:#f3f0e9}.url-box code{flex:1 1;overflow:hidden;padding:11px;color:#48625c;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:10px;line-height:1.5;text-overflow:ellipsis;white-space:nowrap}.url-box button{flex:0 0 auto;padding:0 13px;border:0;border-left:1px solid var(--line);color:var(--forest);background:#ebe7dd;font-size:11px;font-weight:800;cursor:pointer}.regex-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:11px}.regex-grid>div{min-width:0;padding:10px;border:1px solid var(--line);border-radius:11px;background:#f3f0e9}.regex-grid span{display:block;margin-bottom:6px;color:var(--forest);font-size:10px;font-weight:800}.regex-grid code{display:block;overflow-wrap:anywhere;color:#48625c;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:9px;line-height:1.45;-webkit-user-select:all;user-select:all}.ocr-tip{margin:20px 34px 0;padding:14px 15px;border:1px dashed rgba(18,63,56,.22);border-radius:14px;background:rgba(201,229,215,.2)}.ocr-tip summary{color:var(--forest);font-size:12px;font-weight:800;cursor:pointer}.ocr-tip p{margin:10px 0;color:var(--ink-soft);font-size:11px;line-height:1.65}.ocr-tip code{display:block;overflow-wrap:anywhere;padding:10px;border-radius:9px;color:#36564f;background:rgba(255,255,255,.72);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:9px;line-height:1.5;-webkit-user-select:all;user-select:all}.dialog-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:25px 34px 30px}.dialog-actions form{display:contents}.vault-content{display:grid;gap:18px;padding:27px 34px 3px}.vault-status{display:grid;grid-template-columns:45px minmax(0,1fr);gap:13px;align-items:center;padding:15px;border:1px solid rgba(18,63,56,.1);border-radius:16px;background:rgba(201,229,215,.32)}.vault-status-icon{display:grid;place-items:center;width:43px;height:43px;border-radius:14px;color:white;background:var(--forest)}.vault-status-icon svg{width:23px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.7}.vault-import strong,.vault-status strong{font-size:13px}.vault-import p,.vault-status p{margin:4px 0 0;color:var(--ink-soft);font-size:11px;line-height:1.55}.vault-key-label{margin-bottom:-10px;color:var(--ink-soft);font-size:11px;font-weight:800;letter-spacing:.04em}.vault-key-box{display:grid;grid-template-columns:minmax(0,1fr) auto auto;overflow:hidden;border:1px solid var(--line);border-radius:12px;background:#f3f0e9}.vault-key-box input{min-width:0;padding:13px;border:0;outline:0;color:#35534c;background:transparent;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px}.vault-key-box button{padding:0 13px;border:0;border-left:1px solid var(--line);color:var(--forest);background:#ebe7dd;font-size:11px;font-weight:800;cursor:pointer}.vault-warning{margin:-9px 0 0;padding:12px 14px;border-radius:12px;color:#784b22;background:rgba(242,207,112,.24);font-size:11px;line-height:1.6}.vault-warning strong{color:#5e3510}.vault-import{display:grid;gap:10px;padding-top:18px;border-top:1px solid var(--line)}.vault-import input{width:100%;min-height:45px;padding:0 13px;border:1px solid var(--line);border-radius:12px;outline:0;color:var(--ink);background:white;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px}.import-button{min-height:44px;border:0;border-radius:12px;color:white;background:var(--forest);font-size:12px;font-weight:800;cursor:pointer}.import-button:disabled{opacity:.36;cursor:not-allowed}.vault-actions{padding-top:20px}.test-button{border:1px solid var(--line);background:#f4f1ea}.done-button{border:0;color:white;background:var(--forest)}.toast{position:fixed;z-index:20;left:50%;bottom:max(24px,calc(env(safe-area-inset-bottom) + 12px));max-width:calc(100% - 32px);padding:12px 18px;border-radius:999px;color:white;background:#102f2a;box-shadow:0 16px 38px rgba(10,29,25,.28);font-size:12px;opacity:0;pointer-events:none;transform:translate(-50%,14px);transition:opacity .18s ease,transform .18s ease}.toast.visible{opacity:1;transform:translate(-50%)}@media (max-width:800px){.app-shell{width:min(100% - 20px,620px)}.content-grid{grid-template-columns:1fr}.entry-card,.records-card,.shortcut-banner,.summary-card{border-radius:26px}.records-card{min-height:auto}.records-empty{min-height:250px}.shortcut-banner{grid-template-columns:150px minmax(0,1fr);gap:25px;padding:30px}.phone-shell{width:112px;height:198px;border-radius:28px}}@media (max-width:520px){.app-shell{width:calc(100% - 16px);padding-top:max(8px,env(safe-area-inset-top))}.topbar{padding:8px 4px 16px}.brand-mark{width:42px;height:42px}.brand small{display:none}.setup-button{min-height:38px;padding:0 12px;font-size:11px}.topbar-actions{gap:6px}.vault-button{display:grid;place-items:center;width:38px;min-height:38px;padding:0}.vault-button span{display:none}.vault-content{padding:23px 20px 2px}.ocr-tip{margin-right:20px;margin-left:20px}.regex-grid{grid-template-columns:1fr}.vault-actions{padding-top:18px}.summary-card{min-height:306px;padding:24px 21px}.month-total{margin:25px 0}.month-total strong{font-size:50px}.summary-stat{padding:12px 9px}.summary-stat strong{font-size:12px}.content-grid{gap:10px;margin-top:10px}.entry-card,.records-card{padding:23px 18px}.section-heading h1,.section-heading h2{font-size:23px}.amount-field{margin-top:28px}.amount-field input{font-size:48px}.category-grid{grid-template-columns:repeat(5,1fr);gap:6px}.category-button{min-height:63px;border-radius:12px}.category-icon{font-size:18px}.category-name{font-size:9px}.detail-fields,.shortcut-banner{grid-template-columns:1fr}.shortcut-banner{gap:26px;margin-top:10px;padding:38px 24px 32px;text-align:center}.phone-shell{width:108px;height:188px}.shortcut-copy h2{font-size:29px}.shortcut-copy>p:not(.eyebrow){font-size:13px}footer{padding:24px 7px 8px}footer span{max-width:245px}.setup-dialog{max-height:calc(100dvh - 16px);border-radius:24px}.dialog-actions,.dialog-header,.setup-steps{padding-left:22px;padding-right:22px}.dialog-header h2{font-size:28px}.dialog-actions{grid-template-columns:1fr}}@media (prefers-reduced-motion:reduce){*,:after,:before{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}