:root{--paper:#faf9f7;--white:#fff;--ink:#282427;--muted:#716b70;--plum:#583d50;--hair:#e8e4e3;--soft:#f2edf0;color-scheme:light}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.55 -apple-system,BlinkMacSystemFont,"Helvetica Neue","PingFang SC","Microsoft YaHei",sans-serif;font-variant-numeric:tabular-nums}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible{outline:3px solid #b583a7;outline-offset:3px}button{border:0;background:transparent}button:disabled{opacity:.55;cursor:default}svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#brandbar{border-bottom:1px solid var(--hair);background:#fff}.barInner,main{width:min(960px,calc(100% - 64px));margin:auto}.barInner{height:70px;display:flex;align-items:center;justify-content:space-between}.brand,.brandMark,#members,.primary,.dock button{display:inline-flex;align-items:center;justify-content:center}.brand{gap:11px;font-size:21px;font-weight:720;letter-spacing:-.06em}.brandMark{width:33px;height:33px;border-radius:10px;background:var(--plum);position:relative}.brandMark i{width:9px;height:16px;border:1.7px solid #fff;border-radius:8px;transform:rotate(30deg);position:absolute;left:9px;top:7px}.brandMark i+i{left:15px;top:10px}.brandSub{font-size:13px;font-weight:450;color:var(--muted);letter-spacing:0;border-left:1px solid var(--hair);padding-left:12px}.barInner button{gap:7px;color:var(--plum);font-size:13px;padding:8px 14px;background:var(--soft);border-radius:20px}
main{padding-bottom:115px}.titleRow{display:flex;align-items:flex-end;justify-content:space-between;margin:31px 0 22px}.monthPicker{display:flex;align-items:center;gap:5px;color:var(--muted);font-size:14px;font-weight:500}.monthPicker button{border-radius:7px;font-size:20px;line-height:26px;min-width:28px}.monthPicker button:first-child{margin-left:-7px}.monthPicker button:hover{background:var(--soft)}h1{font-size:clamp(30px,4vw,43px);letter-spacing:-.065em;line-height:1.18;margin:6px 0 0;font-weight:680}.primary{gap:5px;background:var(--plum);color:white;border-radius:13px;font-weight:560;padding:11px 20px}.primary:hover{background:#493142}.primary b{font-size:19px;line-height:1}
#summary{isolation:isolate;position:relative;overflow:hidden;color:#fff;background:linear-gradient(115deg,#483542,#64495d 72%,#74596a);border-radius:23px;padding:23px 30px 21px}#summary:after{content:"";position:absolute;z-index:-1;right:-82px;top:-165px;width:450px;height:450px;border-radius:50%;background:repeating-radial-gradient(circle at center,transparent 0 20px,rgba(255,255,255,.075) 21px,transparent 22px 41px);pointer-events:none}.heroTop,.heroFoot,.sectionHead,.modalHead,.legendRow,.member,.expense,.actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.heroLabel{font-size:14px;color:#f2e7ee}.budgetEdit{border:1px solid #ffffff54;color:white;border-radius:20px;font-size:12px;padding:5px 12px;background:#513d4da1}.heroTotal{margin:9px 0 13px;font-size:clamp(40px,5.7vw,64px);line-height:1.08;font-weight:560;letter-spacing:-.055em}.heroTotal small{font-size:.48em;margin-right:6px;font-weight:450}.heroFoot{font-size:13px;color:#f2eaf0;flex-wrap:wrap}.heroFoot strong{color:#fff;font-weight:600}.progress{height:5px;border-radius:8px;background:#ffffff32;overflow:hidden;margin-top:10px}.progress i{display:block;background:#edc6dd;height:100%;border-radius:inherit}
#insights{display:grid;grid-template-columns:1.2fr 1fr;gap:16px;margin:16px 0}.panel,#ledger{border:1px solid var(--hair);border-radius:20px;background:var(--white);padding:21px 24px}.panel h2,.sectionHead h2,.modalHead h2{font-size:19px;line-height:1.4;letter-spacing:-.035em;margin:0;font-weight:640}.chartBody{display:flex;align-items:center;gap:23px;margin-top:17px}.ring{width:113px;height:113px;border-radius:50%;flex:none;display:grid;place-items:center}.ring>span{width:70%;height:70%;border-radius:50%;background:white;display:flex;align-items:center;justify-content:center;flex-direction:column}.ring strong{font-size:21px;line-height:1.3}.ring small,.member small,.entryInfo small,.sectionHead small,.chartBody small{color:var(--muted);font-size:12px}.legend{flex:1;min-width:0}.legendRow{font-size:12px;gap:7px;line-height:1.65}.legendRow i{width:8px;height:8px;border-radius:50%;flex:none}.legendRow span{flex:1}.legendRow b{font-weight:550}.memberList{margin-top:12px}.member{min-height:56px;gap:10px}.member+.member{border-top:1px solid var(--hair)}.avatar,.categoryIcon{width:38px;height:38px;border-radius:13px;display:grid;place-items:center;background:var(--soft);color:var(--plum);font-size:15px;flex:none}.memberInfo,.entryInfo{flex:1;text-align:left;min-width:0;overflow-wrap:anywhere}.memberInfo strong,.entryInfo strong{display:block;font-weight:570}.member>strong,.entryAmount{font-size:16px;white-space:nowrap}.sectionHead{margin-bottom:9px}.expense{width:100%;text-align:left;padding:13px 0}.expense+.expense{border-top:1px solid var(--hair)}.expense:hover{background:#faf8f9}.entryInfo small,.memberInfo small{display:block}.empty{text-align:center;color:var(--muted);padding:20px 4px}.empty strong{color:var(--ink);font-weight:530}.empty p{margin:5px 0;font-size:13px}
.dock{position:fixed;bottom:max(14px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);z-index:3;display:flex;padding:5px;gap:4px;border:1px solid #e4dfe2;border-radius:20px;background:#fffffff5;box-shadow:0 6px 28px #49384819}.dock button{gap:8px;padding:10px 22px;border-radius:15px;color:var(--muted);white-space:nowrap;font-size:14px;font-weight:550}.dock button.active,.dock button[aria-current=page]{background:var(--soft);color:var(--plum)}
dialog{width:min(440px,calc(100vw - 26px));max-height:90vh;max-height:90dvh;border:1px solid var(--hair);border-radius:22px;padding:24px;box-shadow:0 20px 80px #251c2833;color:var(--ink);background:#fff}dialog::backdrop{background:#21162265}.modalHead{margin:0 0 16px}.modalHead button{font-size:19px;padding:2px 8px;border-radius:12px;background:var(--soft)}.field{display:grid;gap:5px;font-size:13px;font-weight:530;margin:12px 0}.field input,.field select,.field textarea,dialog input:not([type=checkbox]),dialog select,dialog textarea{width:100%;min-width:0;padding:9px 11px;border:1px solid #d9d3d7;border-radius:10px;background:#fff;outline-color:#967389;font-size:16px}dialog textarea{resize:vertical}.rowFields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.checkField{display:flex;align-items:center;gap:7px;font-size:14px}input[type=checkbox]{accent-color:var(--plum);width:17px;height:17px}.actions{justify-content:flex-end;margin-top:19px;flex-wrap:wrap}.secondary,.danger{padding:9px 14px;border-radius:11px;background:var(--soft);font-size:14px}.danger,.formError{color:#9b3043}.formError:empty{display:none}dialog p{font-size:14px;color:var(--muted)}#toast{position:fixed;z-index:6;left:50%;bottom:90px;transform:translateX(-50%);max-width:90vw;padding:9px 15px;border-radius:12px;background:#332a32;color:white;font-size:14px;text-align:center}#toast:empty{display:none}
@media(max-width:680px){.barInner,main{width:calc(100% - 32px)}.barInner{height:55px}.brand{font-size:19px}.brandSub{font-size:12px}.barInner button{padding:6px 10px}.titleRow{margin:17px 0 14px}.monthPicker{font-size:12px}h1{font-size:31px}.primary{padding:9px 14px;border-radius:11px}#summary{padding:16px 18px;border-radius:18px}.heroTotal{font-size:42px;margin:7px 0 11px}.heroFoot{font-size:12px;gap:4px}#insights{grid-template-columns:1fr;gap:10px;margin:10px 0}.panel,#ledger{padding:14px 16px;border-radius:16px}.panel h2,.sectionHead h2{font-size:16px}.chartBody{margin-top:10px;gap:24px}.ring{width:94px;height:94px}.legendRow{line-height:1.5}.memberList{display:flex;gap:12px;margin-top:9px}.member{flex:1;min-width:0;align-items:flex-start;justify-content:flex-start;flex-wrap:wrap;gap:4px 7px;min-height:0}.member+.member{border-top:0;border-left:1px solid var(--hair);padding-left:12px}.member>strong{width:100%;font-size:15px}.member .avatar{width:29px;height:29px;border-radius:9px}.memberInfo{font-size:13px}.dock{bottom:0;width:100%;padding:5px 12px max(6px,env(safe-area-inset-bottom));border-radius:0;border-left:0;border-right:0;border-bottom:0;justify-content:space-around}.dock button{width:47%;padding:8px 6px;border-radius:11px}.expense{padding:11px 0}.empty{padding:13px 0}.empty p{font-size:12px}}
.budgetEdit{display:inline-flex;align-items:center;gap:4px}.budgetEdit svg{width:13px;height:13px}.heroFoot{margin-top:8px}.avatar2{background:#eef2ee;color:#496256}.entryAmount{font-weight:580}.rosterPerson{padding:7px 0;border-bottom:1px solid var(--hair)}dialog summary{font-size:13px;color:var(--plum);cursor:pointer}
#dailyPlan{margin-top:16px;background:#fcfdfb}.planHead,.dailyTop,.planFigures{display:flex;align-items:center}.planHead{justify-content:space-between;gap:8px}.planHead>span,.dailyTop>div>span,.planFigures span,#dailyPlan p{font-size:13px;color:var(--muted)}.dailyTop{gap:14px;margin:14px 0}.activityRing{background:conic-gradient(#53846d var(--arc),#e1ebe4 0);padding:6px;border-radius:50%;width:66px;height:66px;display:grid;place-items:center;flex:none}.activityRing>span{display:flex;gap:1px;align-items:baseline;justify-content:center;align-content:center;flex-wrap:wrap;width:100%;height:100%;border-radius:50%;background:#fcfdfb;color:#476451;font-size:10px}.activityRing strong{font-size:20px}.dailyTop>div:nth-child(2)>strong{display:block;font-size:32px;line-height:1.2;letter-spacing:-.045em;color:#344d40}.planFigures{gap:24px}.planFigures b,#dailyPlan p b{color:#344d40;font-weight:600}#dailyPlan p{margin:12px 0 0;line-height:1.6}.planResult{font-size:23px;font-weight:600;margin-top:10px;color:#344d40}#lastSettlement{padding:12px 16px;border-radius:12px;background:#eaf2eb;color:#395744;margin-top:10px;font-size:14px}@media(max-width:680px){#dailyPlan{margin-top:10px}.dailyTop{margin:10px 0}.activityRing{width:56px;height:56px;padding:5px}.dailyTop>div:nth-child(2)>strong{font-size:28px}.planFigures{gap:15px;flex-wrap:wrap}}
