:root{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#17251e;background:#f5f7f3;font-size:16px;--green:#237a59;--deep:#1f704f;--muted:#839087;--line:#e9eee9;--card:#fff}*{box-sizing:border-box}body{margin:0;min-height:100vh;padding-bottom:calc(82px + env(safe-area-inset-bottom));background:#f5f7f3}button,input,select,textarea{font:inherit}button{border:0;cursor:pointer}header{position:sticky;top:0;z-index:5;padding:calc(12px + env(safe-area-inset-top)) 18px 12px;background:rgba(245,247,243,.96);backdrop-filter:blur(12px);display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(230,235,230,.8)}.brand{display:flex;align-items:center;gap:10px;font-size:19px;font-weight:750}.brand img{width:36px;height:36px;border-radius:11px}.header-sub{font-size:12px;color:var(--muted);font-weight:500}.content{max-width:680px;margin:0 auto;padding:16px 16px 26px}.welcome{display:flex;align-items:flex-start;justify-content:space-between;margin:6px 2px 18px}.welcome h1{font-size:23px;margin:0 0 5px}.welcome p{font-size:13px;color:var(--muted);margin:0}.pill{font-size:11px;color:#4b6858;background:#e9f3ed;padding:6px 10px;border-radius:99px}.card{background:var(--card);border-radius:18px;padding:18px;margin-bottom:12px;box-shadow:0 3px 16px rgba(22,48,35,.04)}.hero{background:linear-gradient(135deg,#1f704f,#2b835f);color:white;padding:22px}.hero-label{font-size:13px;color:#d5eadf}.hero-money{font-size:36px;font-weight:800;margin:7px 0 14px;letter-spacing:-.5px}.row{display:flex;justify-content:space-between;align-items:center;gap:12px}.hero-sub{font-size:12px;color:#e0f0e7}.metrics{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0}.metric{height:116px;padding:16px;display:flex;flex-direction:column;justify-content:center}.metric-label{font-size:12px;color:var(--muted)}.metric-value{font-size:21px;font-weight:750;margin-top:9px;white-space:nowrap}.metric-note{text-align:center;color:var(--muted);font-size:12px;margin:-4px 0 14px}.section-head{display:flex;align-items:center;justify-content:space-between;margin:24px 2px 10px}.section-head h2{font-size:17px;margin:0}.section-head button,.text-button{background:none;color:var(--green);padding:4px 0;font-size:13px}.quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.quick{display:flex;align-items:center;gap:10px;background:#fff;border-radius:16px;padding:14px 12px;color:#1d3126;text-decoration:none;box-shadow:0 3px 14px rgba(22,48,35,.035)}.quick-icon{width:38px;height:38px;border-radius:12px;background:#e9f3ed;display:grid;place-items:center;font-size:19px}.quick-title{font-weight:700;font-size:13px}.quick-sub{font-size:11px;color:var(--muted);margin-top:3px}.owing{color:var(--green);font-weight:700}.small{font-size:12px;color:var(--muted)}.money{color:var(--green);font-weight:750}.bottom-nav{position:fixed;z-index:10;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(4,1fr);padding:8px 8px calc(8px + env(safe-area-inset-bottom));background:rgba(255,255,255,.96);border-top:1px solid var(--line);backdrop-filter:blur(10px)}.nav-item{display:flex;flex-direction:column;align-items:center;gap:2px;color:#88948c;font-size:10px;background:none;padding:5px}.nav-item b{font-size:19px;line-height:22px}.nav-item.active{color:var(--green);font-weight:700}.primary,.secondary,.danger-button{border-radius:13px;padding:13px 16px;font-weight:700}.primary{background:var(--green);color:white;width:100%;box-shadow:0 5px 14px rgba(35,122,89,.17)}.secondary{background:#e9f3ed;color:var(--green)}.danger-button{background:#fff0ed;color:#b45145}.full{width:100%;margin-top:9px}.field{margin:14px 0}.field label,.field-title{display:block;font-size:13px;font-weight:700;margin:0 0 7px}.input,select,input,textarea{width:100%;border:1px solid #e8ede8;border-radius:12px;background:#f8faf7;padding:12px;color:#17251e;outline:none}input:focus,select:focus,textarea:focus{border-color:#8dbba1;background:white}.input-row{display:flex;gap:8px}.input-row>*{flex:1}.form-actions{display:flex;gap:9px;margin-top:18px}.form-actions>*{flex:1}.page-title{font-size:22px;font-weight:750;margin:6px 2px 16px}.empty{text-align:center;color:var(--muted);padding:24px 16px}.item-row{display:flex;justify-content:space-between;align-items:center;gap:12px}.item-name{font-weight:700}.item-actions{display:flex;gap:14px;align-items:center}.item-actions button{background:none;color:var(--green);font-size:12px;padding:5px 0}.item-actions .del{color:#b45145}.tabs{display:flex;background:#e9eee9;border-radius:13px;padding:4px;margin:10px 0 16px}.tab{flex:1;text-align:center;padding:10px 3px;border-radius:10px;background:none;color:var(--muted);font-size:12px}.tab.active{background:white;color:var(--green);font-weight:700}.subtle{font-size:12px;color:var(--muted);line-height:1.6}.calendar-head{display:flex;align-items:center;justify-content:space-between}.calendar-head button{background:#e9f3ed;color:var(--green);border-radius:10px;width:38px;height:36px;font-size:20px}.calendar-title{font-size:16px;font-weight:700}.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;margin-top:12px}.day-name,.day{min-height:47px;display:flex;align-items:center;justify-content:center;font-size:12px;border-radius:10px}.day-name{color:var(--muted);min-height:27px}.day{position:relative;background:#f8faf7;flex-direction:column;gap:3px}.day.blank{background:transparent}.day.selected{background:#e1f0e7;color:var(--green);font-weight:800}.day.has-record:after{content:"";position:absolute;bottom:4px;width:4px;height:4px;border-radius:50%;background:#d6a442}.dropdown{border:1px solid var(--line);border-radius:13px;margin-top:8px;overflow:hidden}.check-item{display:flex;align-items:center;gap:10px;padding:12px;border-bottom:1px solid var(--line);font-size:13px}.check-item:last-child{border-bottom:0}.check-item input{width:auto;accent-color:var(--green)}.total-line{font-weight:750;font-size:16px}.badge{padding:5px 9px;border-radius:99px;background:#eef3ee;color:#51665a;font-size:11px}.danger-text{color:#b45145!important}.toast{position:fixed;z-index:30;bottom:90px;left:50%;transform:translateX(-50%);background:#25352c;color:#fff;padding:11px 17px;border-radius:99px;font-size:13px;box-shadow:0 5px 20px #0002}.modal-backdrop{position:fixed;inset:0;background:#1118;z-index:20;display:grid;place-items:center;padding:24px}.modal{width:min(100%,380px);background:#fff;border-radius:20px;padding:20px}.modal h3{margin:0 0 8px;font-size:17px}.modal p{margin:0;color:var(--muted);font-size:13px;line-height:1.55}.modal-actions{display:flex;gap:9px;margin-top:18px}.modal-actions button{flex:1}.backup-row{display:flex;gap:8px}.backup-row button{flex:1}.footer-note{text-align:center;color:#99a39c;font-size:11px;padding:18px 0}.payment-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.record-part{border:1px solid var(--line);border-radius:13px;padding:12px;margin:9px 0}.qty-price{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}@media(min-width:680px){.content{padding:24px}.bottom-nav{left:50%;right:auto;width:680px;transform:translateX(-50%);border-left:1px solid var(--line);border-right:1px solid var(--line)}.calendar-grid{gap:7px}.day{min-height:56px}}
