:root{--bg:#f7f8f5;--paper:#fff;--ink:#26392f;--muted:#89928a;--line:#e8ece5;--green:#427959;--light:#eef3e9;--orange:#bc8052;--radius:20px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px "Noto Sans SC",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button{border:0;background:none}button:focus-visible,a:focus-visible{outline:3px solid #8ab89c;outline-offset:4px}button:disabled{opacity:.45;cursor:not-allowed}svg{width:21px;height:21px;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}a{color:inherit;text-decoration:none}.sidebar{position:fixed;inset:0 auto 0 0;width:224px;background:#fff;border-right:1px solid var(--line);padding:38px 24px;display:flex;flex-direction:column}.brand{display:flex;gap:11px;align-items:center;font-size:23px;font-weight:700;letter-spacing:1px}.brand-mark{width:36px;height:36px;background:var(--green);border-radius:12px;color:#fff;display:grid;place-items:center}.brand-mark svg{width:24px;height:24px}.brand-sub{font-size:10px;letter-spacing:2px;color:var(--muted);margin-top:3px}.nav{margin-top:55px;display:grid;gap:10px}.nav button{display:flex;gap:13px;align-items:center;width:100%;padding:14px 17px;text-align:left;border-radius:12px;color:#7b877e}.nav .active{background:var(--light);color:var(--green);font-weight:600}.sidebar-bottom{margin-top:auto}.sidebar-note{font-size:12px;color:var(--muted);line-height:1.9;padding:0 10px 25px}.profile{display:flex;align-items:center;gap:10px;border-top:1px solid var(--line);padding:22px 5px 0}.profile small{display:block;color:var(--muted);font-size:11px;margin-top:4px}.avatar{display:inline-flex;align-items:center;justify-content:center;background:#e7ede0;color:#5a7455;border:2px solid white;width:33px;height:33px;border-radius:50%;font-size:12px;flex-shrink:0}.avatar:nth-child(2n){background:#f5e8d8;color:#a98461}.avatar:nth-child(3n){background:#e5eaf1;color:#7c8d9f}.main{margin-left:224px;max-width:1510px;padding:0 58px 60px}.topbar{height:95px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);color:#879085;font-size:12px}.topbar-right{display:flex;gap:22px;align-items:center}.pill{background:#edf2e8;color:#6e8667;border-radius:20px;padding:7px 12px;font-size:11px;display:inline-flex;align-items:center;gap:6px}.dot{height:5px;width:5px;background:#7d9d66;border-radius:50%}.hero{padding-top:40px;display:flex;align-items:center;justify-content:space-between;gap:16px}.eyebrow{font-size:11px;letter-spacing:2px;color:var(--green);margin-bottom:10px}h1{font-size:30px;letter-spacing:-.7px;margin:0;font-weight:600}h2{font-size:17px;margin:0;font-weight:600}p{line-height:1.8}.subtitle{color:var(--muted);margin:11px 0 0;font-size:13px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:11px;min-height:44px;padding:11px 19px;background:var(--green);color:#fff;font-size:13px;font-weight:500;white-space:nowrap}.btn svg{width:17px;height:17px}.btn.secondary{background:#fff;border:1px solid var(--line);color:#687c68}.btn.danger{background:#f9efeb;color:#a55f4e}.summary{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:20px;margin-top:30px}.stat{border:1px solid var(--line);background:#fff;border-radius:16px;padding:23px 25px}.stat:first-child{background:#eaf0e4;border-color:#eaf0e4}.stat-label{font-size:12px;color:#7f8c7d;display:flex;justify-content:space-between;align-items:center}.stat-label svg{width:17px;height:17px;opacity:.6}.stat-value{font-size:29px;letter-spacing:-1px;margin-top:14px;font-weight:500;font-variant-numeric:tabular-nums}.stat-value span{font-size:17px;margin-right:5px}.stat-foot{font-size:11px;color:#8c9687;margin-top:9px}.section-head{display:flex;align-items:center;justify-content:space-between;margin:37px 0 20px}.filters{display:flex;gap:7px}.filters button{padding:8px 13px;color:#929a91;font-size:12px;border-radius:8px}.filters button.active{background:#e9eee4;color:#5a7853}.section-label{display:flex;align-items:center;gap:10px}.count{font-size:11px;background:#e9eee4;padding:2px 7px;border-radius:6px;color:#7e8a73}.projects{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.project{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;text-align:left;width:100%;padding:0;transition:transform .2s,box-shadow .2s}.project:hover{transform:translateY(-3px);box-shadow:0 10px 25px #314c3110}.project-art{height:132px;position:relative;overflow:hidden;display:grid;place-items:center}.project-art.camp{background:#e8eddd}.project-art.daily{background:#f3eadd}.project-art.travel{background:#e5edf0}.art{width:100%;height:100%;position:absolute;inset:0;stroke:none;fill:none}.project-badge{position:absolute;top:14px;left:15px;background:#ffffffb8;border-radius:6px;padding:4px 8px;font-size:10px;color:#66715e;z-index:1}.project-art .arrow{position:absolute;right:15px;top:15px;width:25px;height:25px;background:#ffffff9c;border-radius:50%;display:grid;place-items:center}.arrow svg{width:13px;height:13px}.project-body{padding:20px}.project-title{display:flex;align-items:center;justify-content:space-between;font-size:17px;font-weight:600}.project-sub{font-size:11px;color:#9aa194;margin-top:8px}.project-money{margin-top:23px;display:flex;align-items:flex-end;justify-content:space-between}.tiny{font-size:10px;color:#99a093}.project-total{font-size:22px;margin-top:5px;font-weight:500;letter-spacing:-.5px}.project-total span{font-size:13px;margin-right:3px}.avatar-stack{display:flex;padding-right:3px}.avatar-stack .avatar{width:27px;height:27px;font-size:9px;margin-right:-5px}.project-footer{margin-top:18px;padding-top:14px;border-top:1px solid #f1f2ee;display:flex;justify-content:space-between;color:#9aa194;font-size:10px}.balance-positive{color:var(--green)}.balance-negative{color:var(--orange)}.activity{background:white;border:1px solid var(--line);border-radius:17px;padding:0 24px}.activity-row{display:flex;align-items:center;gap:14px;padding:19px 0;border-bottom:1px solid #f0f2ed}.activity-row:last-child{border:0}.category-icon{width:41px;height:41px;border-radius:12px;background:#f4eddf;color:#b69b70;display:grid;place-items:center;flex-shrink:0}.category-icon.交通{background:#eaf0ed;color:#7c9688}.category-icon.住宿{background:#e8edf3;color:#8193a5}.category-icon.购物{background:#f0eaf0;color:#ad8da3}.category-icon.还款{background:var(--light);color:var(--green)}.row-main{flex:1;min-width:0}.row-title{font-size:13px;font-weight:500;display:flex;gap:9px;align-items:center}.tag{font-size:9px;color:#919c85;background:#f3f5ef;padding:2px 6px;border-radius:4px;font-weight:400}.row-sub{font-size:11px;color:#9aa195;margin-top:6px}.row-amount{font-size:15px;text-align:right;font-variant-numeric:tabular-nums}.row-amount small{display:block;color:#a0a69b;font-size:10px;margin-top:5px}.footer-note{text-align:center;font-size:11px;color:#abb1a4;margin-top:29px;letter-spacing:1px}.mobile-brand,.bottom-nav{display:none}.back{display:inline-flex;gap:5px;align-items:center;font-size:12px;color:#8b9586;margin-bottom:18px}.detail-tabs{display:flex;gap:28px;border-bottom:1px solid var(--line);margin-top:30px}.detail-tabs button{padding:15px 4px;color:#909989;border-bottom:2px solid transparent}.detail-tabs button.active{color:var(--green);border-color:var(--green)}.detail-body{margin-top:22px}.notice{padding:13px 16px;background:#eef2e8;border-radius:10px;font-size:12px;color:#7b8b6c;line-height:1.7;margin-bottom:19px}.member-row{display:flex;align-items:center;gap:12px;padding:18px 0;border-bottom:1px solid var(--line)}.member-row .row-main{font-size:13px}.settlement{display:flex;gap:12px;align-items:center;padding:21px 0;border-bottom:1px solid var(--line)}.settlement .row-main{line-height:1.9}.settlement b{font-weight:500}.empty{padding:45px 20px;text-align:center;color:var(--muted);line-height:1.9}.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}.identity-button{display:flex;gap:9px;align-items:center;padding:7px 0 7px 10px;font-size:12px}.identity-button svg{width:13px;height:13px;color:var(--muted)}.overlay{position:fixed;inset:0;background:#22362d50;backdrop-filter:blur(3px);z-index:20;display:flex;align-items:center;justify-content:center;padding:20px}.modal{background:var(--bg);width:100%;max-width:480px;max-height:90dvh;border-radius:22px;overflow-y:auto;padding:27px;box-shadow:0 20px 100px #17251d20}.modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:23px}.modal-head h2{font-size:20px}.close{width:36px;height:36px;border-radius:50%;background:#edf0e8;display:grid;place-items:center}.modal p{color:var(--muted);font-size:12px}.field{display:block;margin:18px 0;font-size:12px;color:#7c8976}.field input,.field select{display:block;width:100%;min-height:46px;margin-top:8px;border:1px solid #e0e6da;border-radius:10px;padding:11px 13px;background:white;color:var(--ink);outline:none}.field input:focus,.field select:focus{border-color:var(--green);box-shadow:0 0 0 2px #42795912}.amount-input{position:relative;border-bottom:1px solid var(--line);padding:10px 0 18px;display:flex;gap:12px;align-items:center;font-size:30px}.amount-input input{width:100%;border:none;background:transparent;font-size:39px;color:var(--ink);outline:none;min-width:0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.form-grid .field{margin:0 0 16px}.checks{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.check{display:flex;gap:7px;align-items:center;padding:10px;background:white;border:1px solid var(--line);border-radius:9px;color:#78856f}.check:has(input:checked){border-color:#82a17a;background:#edf3e8;color:var(--green)}.check input{accent-color:var(--green);margin:0;width:15px;height:15px}.full{width:100%;margin-top:17px}.identity-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.identity-choice{background:white;border:1px solid var(--line);padding:20px 10px;border-radius:14px;display:flex;flex-direction:column;gap:10px;align-items:center}.identity-choice:hover{border-color:var(--green)}.identity-choice .avatar{width:42px;height:42px;font-size:16px}.error{font-size:12px;color:#b65d4f;min-height:18px;margin-top:10px}.custom-row{display:flex;align-items:center;gap:12px;margin:8px 0}.custom-row label{flex:1}.custom-row input{width:120px;padding:8px;border:1px solid var(--line);border-radius:7px}.receipt{display:flex;justify-content:space-between;margin:15px 0;font-size:13px}.receipt-total{font-size:34px;text-align:center;padding:20px}.receipt-note{border-top:1px solid var(--line);padding-top:15px;color:var(--muted);font-size:11px}.text-button{color:var(--green);font-size:12px;min-height:40px}#toast{position:fixed;bottom:35px;left:50%;transform:translate(-50%,20px);z-index:40;border-radius:10px;padding:12px 20px;background:#2c4436;color:#fff;opacity:0;pointer-events:none;transition:.2s;font-size:12px;max-width:90vw}#toast.show{opacity:1;transform:translate(-50%,0)}.prototype{font-size:10px;color:#a3ac9a}.intro-line{display:flex;gap:8px;align-items:center}.split-preview{font-size:12px;color:var(--green);padding:12px 0;line-height:1.8}.copy-value{width:100%;font-size:12px;padding:12px;border:1px solid var(--line);border-radius:8px;overflow-wrap:anywhere;background:white;user-select:all}
@media(min-width:1450px){.main{margin-right:auto;margin-left:max(224px,calc((100vw - 1250px)/2 + 160px))}}
@media(max-width:1150px){.sidebar{width:190px;padding:32px 18px}.main{margin-left:190px;padding:0 30px 40px}.projects{gap:14px}.project-body{padding:16px}.project-title{font-size:15px}.summary{gap:14px}.stat{padding:20px}.avatar-stack .avatar{width:24px;height:24px}}
@media(max-width:850px){.sidebar{width:155px;padding:28px 14px}.brand{font-size:19px;gap:7px}.brand-sub{font-size:8px}.main{margin-left:155px;padding:0 24px 40px}.projects{grid-template-columns:repeat(2,minmax(0,1fr))}.summary{gap:10px}.stat{padding:18px 14px}.stat-value{font-size:24px}.stat-foot{font-size:10px}.topbar-right .pill{display:none}}
@media(max-width:600px){body{font-size:14px}.sidebar{display:none}.main{margin:0;padding:0 20px calc(110px + env(safe-area-inset-bottom))}.topbar{height:76px;border:0;padding-top:env(safe-area-inset-top)}.topbar>span{display:none}.mobile-brand{display:flex;align-items:center;gap:8px;font-size:20px;font-weight:600}.mobile-brand .brand-mark{width:30px;height:30px;border-radius:10px}.mobile-brand svg{width:20px;height:20px}.topbar-right{gap:4px}.identity-button{font-size:11px;gap:5px}.identity-button .avatar{width:28px;height:28px}.hero{padding-top:18px;align-items:flex-start}.eyebrow{font-size:9px;margin-bottom:8px;letter-spacing:1.6px}h1{font-size:27px}.subtitle{font-size:12px;line-height:1.8;max-width:240px;margin-top:9px}.hero>.btn{font-size:11px;min-height:38px;padding:9px 11px;margin-top:23px;gap:4px}.hero>.btn svg{width:14px;height:14px}.summary{grid-template-columns:1fr 1fr;gap:10px;margin-top:24px}.stat:first-child{grid-column:1/-1;padding:18px 21px;position:relative}.stat:first-child .stat-label{max-width:none}.stat:first-child .stat-value{font-size:32px;margin-top:7px}.stat:first-child .stat-foot{position:absolute;bottom:22px;right:20px}.stat{border-radius:14px;padding:17px 18px}.stat-value{font-size:25px;margin-top:10px}.stat-foot{font-size:10px;margin-top:6px}.stat-label{font-size:11px}.section-head{margin:29px 0 16px}.section-head h2{font-size:16px}.filters{gap:0}.filters button{font-size:11px;padding:7px 10px}.projects{grid-template-columns:1fr;gap:17px}.project-art{height:138px}.project-body{padding:19px 21px}.project-title{font-size:17px}.project-sub{font-size:11px}.project-money{margin-top:18px}.project-total{font-size:24px}.project-footer{font-size:11px}.avatar-stack .avatar{width:29px;height:29px;font-size:10px}.activity{padding:0 16px;border-radius:15px}.activity-row{gap:10px;padding:17px 0}.category-icon{width:36px;height:36px;border-radius:10px}.row-title{font-size:12px;gap:5px;flex-wrap:wrap}.row-sub{font-size:10px}.row-amount{font-size:14px}.tag{font-size:8px}.bottom-nav{position:fixed;bottom:0;left:0;right:0;height:calc(73px + env(safe-area-inset-bottom));padding:9px 22px calc(8px + env(safe-area-inset-bottom));background:#fffffff5;backdrop-filter:blur(12px);border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;z-index:10}.bottom-nav button{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:54px;min-height:48px;color:#a0a995;font-size:10px}.bottom-nav button.active{color:var(--green)}.bottom-nav .quick-add{width:51px;height:51px;min-width:51px;background:var(--green);color:#fff;border-radius:17px;justify-content:center;box-shadow:0 4px 14px #42795926}.quick-add svg{width:25px;height:25px}.bottom-nav .quick-add span{display:none}.overlay{padding:0;align-items:flex-end}.modal{border-radius:24px 24px 0 0;max-height:92dvh;padding:24px 22px calc(25px + env(safe-area-inset-bottom))}.modal:before{content:"";display:block;width:32px;height:4px;background:#d9dfd2;border-radius:4px;margin:-12px auto 20px}.modal-head{margin-bottom:18px}.modal-head h2{font-size:19px}.identity-choice{min-height:102px}.footer-note{font-size:10px;margin-top:25px}.detail-tabs{margin-top:21px}.detail-body .activity{padding:0 13px}.settlement{gap:7px;flex-wrap:wrap}.settlement .btn{font-size:11px;padding:8px 12px;min-height:38px}.back{margin-bottom:10px}.actions .btn{flex:1}.receipt-total{padding:12px}.form-grid{gap:10px}#toast{bottom:100px}.prototype{display:none}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
.topbar{justify-content:flex-end}.home-topbar{display:none}.home-heading{padding-top:32px}.home-heading+.summary{margin-top:22px}
@media(max-width:600px){.topbar,.home-topbar{display:flex;justify-content:space-between}.home-heading{padding-top:12px;align-items:center}.home-heading>.btn{margin-top:0}}
.theme-field{border:0;padding:0;margin:18px 0;color:#7c8976;font-size:12px}.theme-field legend{padding:0}.theme-picker{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:10px}.theme-choice{position:relative;display:flex;flex-direction:column;gap:7px;padding:5px 5px 8px;border:1px solid var(--line);border-radius:10px;background:#fff;text-align:center;cursor:pointer}.theme-choice input{position:absolute;inset:0;margin:0;opacity:0;width:100%;height:100%;cursor:pointer;z-index:1}.theme-choice:has(input:checked){border-color:var(--green);box-shadow:0 0 0 1px var(--green);color:var(--green);background:#f0f5ec}.theme-choice:focus-within{outline:2px solid #8ab89c;outline-offset:3px}.theme-preview{position:relative;display:block;height:53px;overflow:hidden;border-radius:6px}.theme-preview .art{width:100%;height:100%}
