:root{font-family:-apple-system,BlinkMacSystemFont,SF Pro Text,PingFang SC,Microsoft YaHei,sans-serif;color:#18352e;background:#f3f4ef;font-synthesis:none;--green: #173f35;--green-2: #245d4e;--orange: #e8734a;--cream: #f4f0df;--muted: #71807a;--line: #dfe3dc;--surface: #fff}*{box-sizing:border-box}html{min-height:100%;background:#f3f4ef}body{margin:0;min-width:320px;min-height:100%;-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit}button{color:inherit}button,a{-webkit-tap-highlight-color:transparent}.app-shell{min-height:100dvh;padding-bottom:calc(82px + env(safe-area-inset-bottom))}.topbar{position:sticky;z-index:20;top:0;height:calc(58px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 20px 0;display:flex;align-items:center;justify-content:space-between;background:#f3f4efe6;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.topbar>div{display:flex;align-items:center;gap:9px}.mini-logo{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;color:#fff;background:var(--green);font-weight:800}.sync-pill{border-radius:999px;padding:5px 9px;background:#e2eee8;color:#267057;font-size:11px;font-weight:700}.sync-pill.offline{background:#eee6dc;color:#8c6549}.content{width:min(100%,560px);margin:0 auto;padding:10px 16px 18px}.eyebrow{margin:0 0 8px;color:var(--orange);font-size:12px;font-weight:800;letter-spacing:.16em;text-transform:uppercase}.hero-card{position:relative;overflow:hidden;padding:26px 24px 22px;color:#fff;border-radius:28px;background:var(--green);box-shadow:0 16px 40px #173f352e}.hero-card:after{content:"";position:absolute;width:190px;height:190px;border:40px solid rgba(255,255,255,.045);border-radius:50%;right:-88px;top:-70px}.hero-card p{margin:0;color:#bdcec8;font-size:14px}.hero-card h1{margin:8px 0 22px;font-size:clamp(34px,11vw,50px);letter-spacing:-.045em}.hero-card h1.negative{color:#ffd9cb}.hero-stats{display:flex;align-items:center;gap:24px}.hero-stats span{display:flex;flex-direction:column;gap:3px}.hero-stats small{color:#9db8ae}.hero-stats b{font-size:15px}.hero-stats i{width:1px;height:32px;background:#ffffff2e}.capture-card{margin-top:14px;padding:20px;background:var(--surface);border:1px solid rgba(23,63,53,.05);border-radius:24px;box-shadow:0 8px 28px #2037300f}.quick-input{display:flex;align-items:stretch;gap:10px}.quick-input textarea{min-width:0;flex:1;resize:none;border:0;outline:0;border-radius:16px;padding:13px 14px;background:#f3f5f1;color:#19372f;line-height:1.5}.quick-input textarea::placeholder{color:#95a09b}.quick-input button{width:66px;border:0;border-radius:16px;background:var(--orange);color:#fff;font-weight:800}.quick-input button:disabled,.upload-button:disabled{opacity:.55}.capture-divider{display:flex;align-items:center;gap:12px;margin:14px 0;color:#adb4b0;font-size:11px}.capture-divider:before,.capture-divider:after{content:"";flex:1;height:1px;background:#e9ebe7}.upload-button{width:100%;display:flex;align-items:center;gap:13px;padding:5px 2px;border:0;background:transparent;text-align:left}.upload-button>span{display:grid;place-items:center;flex:0 0 46px;height:46px;border-radius:15px;background:var(--cream);color:#876b32;font-size:22px}.upload-button div{display:flex;flex:1;flex-direction:column;gap:3px}.upload-button small{color:var(--muted);font-size:11px}.upload-button i{font-style:normal;color:#a0aaa5;font-size:24px}.pending-banner{width:100%;display:flex;align-items:center;gap:12px;margin:14px 0 0;padding:14px;border:0;border-radius:20px;background:#fff5ea;text-align:left}.pending-banner>span{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#f1a061;color:#fff;font-weight:800}.pending-banner div{display:flex;flex:1;flex-direction:column;gap:2px}.pending-banner small{color:#956d4c}.pending-banner i{color:#a76638;font-size:12px;font-style:normal;font-weight:700}.section-block{margin-top:26px}.section-heading{display:flex;align-items:center;justify-content:space-between;padding:0 4px 8px}.section-heading h2,.report-card h2,.settings-list h2{margin:0;font-size:18px}.section-heading button{border:0;background:none;color:var(--green-2);font-size:12px;font-weight:700}.transaction-row{width:100%;display:flex;align-items:center;gap:12px;padding:12px 4px;border:0;border-bottom:1px solid var(--line);background:transparent;text-align:left}.category-dot{display:grid;place-items:center;flex:0 0 42px;height:42px;border-radius:14px;color:#fff;font-size:13px;font-weight:800}.transaction-main{min-width:0;display:flex;flex:1;flex-direction:column;gap:4px}.transaction-main b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.transaction-main small{color:var(--muted);font-size:11px}.money{font-size:14px;font-weight:800}.money.incoming{color:#2d8a61}.empty-state{display:grid;place-items:center;min-height:150px;color:#93a09b;text-align:center}.empty-state span{font-size:35px}.empty-state p{max-width:240px;margin:8px 0;font-size:13px}.page-heading{padding:14px 4px 16px}.page-heading h1{margin:0;font-size:32px;letter-spacing:-.04em}.search-box{display:flex;align-items:center;gap:8px;margin-bottom:18px;padding:0 14px;border:1px solid var(--line);border-radius:15px;background:#fff;color:#8d9893}.search-box input{width:100%;height:46px;border:0;outline:0;background:transparent}.day-group{margin-bottom:22px}.day-title{display:flex;justify-content:space-between;align-items:center;padding:0 4px 6px}.day-title b{font-size:14px}.day-title span{color:var(--muted);font-size:11px}.report-total{padding:25px;border-radius:24px;background:var(--cream)}.report-total p,.report-total h2,.report-total small{margin:0}.report-total p,.report-total small{color:#756c55}.report-total h2{margin:8px 0 2px;font-size:34px}.report-card{margin-top:14px;padding:20px;border-radius:24px;background:#fff}.report-card h2{margin-bottom:18px}.bar-row{display:grid;grid-template-columns:1fr 72px;align-items:center;gap:9px 16px;margin:14px 0}.bar-row>div:first-child{display:flex;align-items:center;gap:8px}.bar-row>div:first-child span{display:grid;place-items:center;width:30px;height:30px;color:#fff;border-radius:10px;font-size:10px;font-weight:800}.bar-row b{font-size:13px}.bar-row small{color:var(--muted);font-size:10px}.bar-row strong{grid-column:2;grid-row:1;text-align:right;font-size:12px}.bar-track{grid-column:1 / 3;height:6px;overflow:hidden;border-radius:99px;background:#edf0eb}.bar-track i{display:block;height:100%;border-radius:inherit}.merchant-row{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid var(--line)}.merchant-row span{display:grid;place-items:center;width:27px;height:27px;border-radius:9px;background:#edf2ee;font-size:11px;font-weight:800}.merchant-row b{flex:1;font-size:13px}.merchant-row strong{font-size:12px}.settings-card{display:flex;align-items:center;justify-content:space-between;padding:18px;border-radius:20px;background:var(--green);color:#fff}.settings-card>div{display:flex;flex-direction:column;gap:4px}.settings-card small{color:#b4c8c0}.status-dot{width:11px;height:11px;border:3px solid rgba(255,255,255,.35);border-radius:50%;background:#69d49f}.settings-list{margin-top:16px;overflow:hidden;border-radius:22px;background:#fff}.settings-list h2{padding:18px 18px 8px}.settings-list button{width:100%;display:grid;grid-template-columns:1fr auto;padding:14px 18px;border:0;border-bottom:1px solid var(--line);background:transparent;text-align:left}.settings-list button span{font-weight:700}.settings-list button small{grid-column:1;margin-top:3px;color:var(--muted)}.settings-list button i{grid-column:2;grid-row:1 / 3;align-self:center;color:#9aa49f;font-style:normal;font-size:22px}.setting-note{padding:8px 18px 20px;color:var(--muted);line-height:1.7;font-size:13px}.logout-button{width:100%;margin-top:18px;padding:14px;border:0;background:transparent;color:#bf5647;font-weight:700}.bottom-nav{position:fixed;z-index:30;left:50%;bottom:0;width:min(100%,560px);height:calc(68px + env(safe-area-inset-bottom));transform:translate(-50%);display:grid;grid-template-columns:repeat(4,1fr);padding:6px 10px env(safe-area-inset-bottom);border-top:1px solid rgba(23,63,53,.08);background:#fffffff0;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}.bottom-nav button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border:0;background:transparent;color:#89958f}.bottom-nav button>span{font-size:21px;line-height:1}.bottom-nav button small{font-size:10px}.bottom-nav button.active{color:var(--green);font-weight:800}.bottom-nav button>i{position:absolute;top:3px;right:24%;display:grid;place-items:center;min-width:17px;height:17px;padding:0 4px;border-radius:99px;background:var(--orange);color:#fff;font-size:9px;font-style:normal}.sheet-backdrop{position:fixed;z-index:50;inset:0;display:flex;align-items:flex-end;justify-content:center;background:#0a1c1770;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.editor-sheet{width:min(100%,560px);max-height:92dvh;overflow:auto;padding:8px 20px calc(22px + env(safe-area-inset-bottom));border-radius:28px 28px 0 0;background:#fafbf8;box-shadow:0 -20px 60px #00000029}.sheet-handle{width:42px;height:5px;margin:1px auto 14px;border-radius:99px;background:#d4d9d4}.sheet-title-row{display:flex;align-items:center;justify-content:space-between}.sheet-title-row h2{margin:0 0 16px}.icon-button{width:34px;height:34px;border:0;border-radius:50%;background:#ecefeb;font-size:24px}.warning-box{margin-bottom:14px;padding:11px 13px;border-radius:12px;background:#fff0df;color:#985d2e;font-size:12px}.type-segment{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;padding:4px;border-radius:14px;background:#e9ede8}.type-segment button{padding:9px 3px;border:0;border-radius:11px;background:transparent;font-size:12px;font-weight:700}.type-segment button.active{background:#fff;color:var(--green);box-shadow:0 2px 8px #0000000f}.editor-sheet label{display:flex;flex-direction:column;gap:7px;margin-top:14px;color:var(--muted);font-size:11px;font-weight:700}.editor-sheet input,.editor-sheet select,.editor-sheet textarea{width:100%;border:1px solid var(--line);border-radius:13px;outline:0;padding:11px 12px;background:#fff;color:#18352e;font-size:14px}.amount-field div{display:flex;align-items:center;gap:9px;padding:0 14px;border:1px solid var(--line);border-radius:15px;background:#fff}.amount-field div b{font-size:22px}.amount-field div input{border:0;padding:12px 0;font-size:28px;font-weight:800}.editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.receipt-preview{width:100%;max-height:210px;margin-top:14px;object-fit:contain;border-radius:14px;background:#e9ece8}.raw-text{margin-top:12px;padding:11px 13px;border-radius:12px;background:#eef1ed;color:var(--muted);font-size:11px}.raw-text summary{cursor:pointer;font-weight:700}.raw-text pre{overflow:auto;margin:10px 0 0;white-space:pre-wrap;font:inherit;line-height:1.6}.primary-button{width:100%;margin-top:18px;padding:14px;border:0;border-radius:15px;background:var(--green);color:#fff;font-weight:800}.primary-button:disabled{opacity:.55}.danger-button{width:100%;padding:13px;border:0;background:transparent;color:#bd5949;font-size:12px}.toast{position:fixed;z-index:80;left:50%;bottom:calc(84px + env(safe-area-inset-bottom));transform:translate(-50%);max-width:calc(100% - 40px);padding:11px 16px;border-radius:99px;background:#172e28;color:#fff;box-shadow:0 8px 28px #0000002e;font-size:12px;white-space:nowrap}.processing{position:fixed;z-index:70;left:50%;top:50%;transform:translate(-50%,-50%);width:min(280px,calc(100% - 48px));display:flex;flex-direction:column;align-items:center;gap:8px;padding:25px;border-radius:22px;background:#fff;box-shadow:0 20px 70px #051a1440;text-align:center}.processing small{color:var(--muted)}.spinner{width:34px;height:34px;margin-bottom:4px;border:3px solid #dce5e1;border-top-color:var(--green);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.login-page,.splash{min-height:100dvh;display:grid;place-items:center;padding:calc(30px + env(safe-area-inset-top)) 24px;background:var(--green);color:#fff}.login-card{width:min(100%,400px)}.brand-mark{display:grid;place-items:center;width:58px;height:58px;margin-bottom:24px;border-radius:19px;background:var(--cream);color:var(--green);font-size:25px;font-weight:900}.login-card .eyebrow{color:#f7a989}.login-card h1{margin:0;font-size:44px;line-height:1.12;letter-spacing:-.055em}.login-copy{margin:18px 0 28px;color:#b8cbc4;line-height:1.7}.login-card label{display:flex;flex-direction:column;gap:7px;margin-top:13px;color:#bdd0c9;font-size:12px}.login-card input{width:100%;padding:14px;border:1px solid rgba(255,255,255,.16);border-radius:14px;outline:0;background:#ffffff17;color:#fff}.login-card input::placeholder{color:#8ca79e}.login-card .primary-button{background:var(--orange)}.text-button{width:100%;margin-top:10px;border:0;background:transparent;color:#bdd0c9}.form-error{color:#ffc3ad;font-size:12px}.splash{align-content:center;color:#c5d5cf}.splash .brand-mark{margin:0 auto}@media(min-width:700px){body{background:#e8ebe5}.app-shell{width:560px;margin:auto;background:#f3f4ef;box-shadow:0 0 80px #1430281f}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation-duration:.01ms!important}}
