:root{font-family:Inter,"Noto Sans TC","Microsoft JhengHei",system-ui,sans-serif;color:#353242;background:#f8f7f3;font-synthesis:none;--purple:#7462a8;--ink:#353242;--muted:#827e8e;--line:#ece9e8;--green:#527864}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}button,a,input,select,summary{outline-offset:4px}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin:0}h1{font-size:29px;font-weight:650;letter-spacing:-.8px;line-height:1.6}h2{font-size:17px;font-weight:650}h3{font-size:18px}button{border:0}input,select{color:var(--ink);background:white;border:1px solid #dedbe3;border-radius:10px;padding:11px 12px;min-width:0}input:focus,select:focus{outline:2px solid #b5a9d4;border-color:transparent}label{font-size:13px;font-weight:550;display:flex;flex-direction:column;gap:8px}small{font-size:12px;line-height:1.65}.sidebar{position:fixed;inset:0 auto 0 0;width:244px;background:#fdfcf9;border-right:1px solid var(--line);padding:35px 24px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:11px;font-size:20px;font-weight:750}.brand small{display:block;font-size:9px;letter-spacing:3px;margin-top:2px;color:#898192}.brand-mark{width:42px;height:42px;border-radius:15px;background:var(--purple);color:#fff1ce;display:grid;place-items:center;font-size:35px;line-height:1}.household{display:flex;gap:10px;align-items:center;border-bottom:1px solid var(--line);padding:29px 0 25px;margin-bottom:22px}.household strong{font-size:13px}.household small{display:block;font-size:11px;color:var(--muted);max-width:118px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.avatars{display:flex;align-items:center}.avatars b,.avatar{display:grid;place-items:center;border-radius:50%;font-weight:500;width:29px;height:29px;font-size:11px;background:#e9e1f3;color:#7b669f;border:2px solid #fdfcf9}.avatars b+b{margin-left:-7px;background:#e5eddf;color:#608364}.nav-item{display:flex;align-items:center;gap:13px;width:100%;text-align:left;padding:13px 15px;margin-bottom:8px;border-radius:11px;background:transparent;color:#807a8c;font-size:13px;font-weight:600}.nav-item>span{font-size:21px;line-height:20px}.nav-item.active{background:#eee8f7;color:#6c589a}.nav-item:hover{background:#f1edf4}.sidebar-note{margin-top:auto;padding:30px 11px 20px}.sidebar-note>span{font-size:11px;color:#9a8a9d}.sidebar-note p{font-size:14px;line-height:1.9;margin:9px 0}.little-house{font-size:48px;line-height:1;color:#cbbfac;position:relative;width:100px;margin-top:16px}.little-house span{font-size:28px;color:#b4a4cb;margin-left:2px}.storage{font-size:10px;color:#817b8c;padding-top:22px;border-top:1px solid var(--line)}.storage i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#bcac77;margin-right:5px}.storage small{display:block;font-size:10px;margin-left:11px;margin-top:4px;color:#a59ba5}main{margin-left:244px;max-width:1500px;padding:39px 44px 28px}header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}.eyebrow{font-size:10px;letter-spacing:2.7px;color:#a09aab;display:block;margin-bottom:8px}header p{color:var(--muted);font-size:13px;line-height:1.8;margin-top:4px}.button{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:42px;padding:10px 18px;border-radius:10px;white-space:nowrap;font-size:13px;font-weight:600;transition:background .18s}.button.primary{background:var(--purple);color:white;box-shadow:0 3px 6px #7462a817}.button.primary:hover{background:#62518f}.button.dark{background:#625080;color:white}.button.quiet{background:#f8f6fa;border:1px solid #e7e1ed;color:#776787}.button.quiet:hover{background:#efeaf4}.mode-banner{display:flex;justify-content:space-between;gap:15px;align-items:center;background:#f1eee6;border:1px solid #e9e4d7;border-radius:10px;padding:12px 15px;font-size:11px;color:#8b7c54;margin-bottom:24px}.mode-banner small{font-size:10px;display:block;margin-top:2px;color:#978b70}.mode-banner button{background:none;white-space:nowrap;color:inherit;font-size:11px;font-weight:650;text-decoration:underline;text-underline-offset:3px}.mode-banner.demo{background:#ece9f5;color:#766391;border-color:#e0d9ee}.overview{display:grid;grid-template-columns:.94fr 1.3fr;gap:22px;margin-bottom:25px}.card{border:1px solid #e9e6e3;background:#fffefd;border-radius:18px;box-shadow:0 4px 10px #42354c03}.balance{background:#ede8f5;border-color:#e2daed;position:relative;padding:28px;overflow:hidden}.balance-label{font-size:12px;color:#877397;position:relative;z-index:1}.balance-amount{font-size:43px;line-height:1.2;font-weight:650;letter-spacing:-1.5px;margin:15px 0 8px;position:relative;z-index:1}.balance-amount span{font-size:10px;font-weight:500;letter-spacing:1px;color:#95859f;margin-left:11px}.balance p{font-size:13px;color:#736184;margin-bottom:21px;position:relative;z-index:1;line-height:1.7}.balance strong{font-weight:600}.balance small{display:block;font-size:10px;color:#9e8fac;margin-top:10px;position:relative;z-index:1}.balance .button{position:relative;z-index:1}.balance-decoration{position:absolute;right:-10px;bottom:10px;transform:rotate(-18deg);color:#d8cde6;font-family:Georgia,serif;font-size:129px;line-height:1;pointer-events:none}.balance-decoration span+span{position:absolute;right:30px;top:-31px;font-size:82px;opacity:.5}.summary{padding:25px 27px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:14px}.section-heading>span{font-size:11px;color:#a4989b;background:#f7f4f2;padding:5px 10px;border-radius:7px}.monthly{display:flex;justify-content:space-between;align-items:center;margin:18px 0}.monthly small{color:var(--muted);font-size:11px}.monthly strong{display:block;font-size:29px;font-weight:600;letter-spacing:-.8px;margin-top:3px}.summary-flower{font-size:45px;color:#b5c2a4;line-height:1;transform:rotate(12deg);margin-right:8px}.person-summaries{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--line);padding-top:15px;gap:25px}.person-summaries>div{display:grid;grid-template-columns:28px 1fr;gap:5px 6px;align-items:center}.avatar{width:25px;height:25px;background:#e9e1f3}.avatar.p1{background:#e4ebdf;color:#668165}.person-summaries strong{font-size:12px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.person-summaries dl{grid-column:1/-1;margin:5px 0 0}.person-summaries dl div{display:flex;justify-content:space-between;gap:7px;font-size:11px;line-height:1.8}.person-summaries dt{color:#9a929d}.person-summaries dd{margin:0;color:#655c6b}.ledger{padding:24px 25px 0}.ledger-heading p{font-size:11px;color:#9a939f;margin-top:6px}.ledger-heading .button{min-height:35px;font-size:11px;padding:8px 12px}.filters{display:flex;gap:9px;margin:24px 0 16px;align-items:center}.filters input,.filters select{font-size:11px;height:37px;padding:8px 9px;border-color:#e9e5ea;background:#fcfbfc;border-radius:8px}.filters label{flex:0 1 145px}.filters .search{flex:1;position:relative;min-width:160px}.search span{position:absolute;left:10px;top:3px;font-size:25px;color:#a69dac;font-weight:400}.search input{padding-left:35px;width:100%}.reset{background:none;padding:7px 1px;color:#a495ae;font-size:11px}.table-labels{display:grid;grid-template-columns:2.1fr 1.1fr 1.1fr .9fr 56px;gap:15px;background:#faf8fb;border-radius:7px;padding:10px 12px;color:#a397ab;font-size:10px}.table-labels span:nth-child(4){text-align:right}.record{display:grid;grid-template-columns:2.1fr 1.1fr 1.1fr .9fr 56px;gap:15px;align-items:center;padding:18px 9px;border-bottom:1px solid #f0ecef}.record-title{display:flex;gap:12px;align-items:center;min-width:0}.category-icon{flex:0 0 39px;width:39px;height:39px;display:grid;place-items:center;background:#ece7f4;color:#9381af;border-radius:12px;font-size:21px}.cat-1{background:#fff2d8;color:#cba95b}.cat-2{background:#e8eff6;color:#8ba3bd}.cat-3{background:#f7e6dd;color:#ba8c77}.cat-4,.cat-5{background:#eef1e5;color:#9caa74}.category-icon.settlement{background:#e7eee8;color:#7b9a81}.record-title strong{font-size:12px;font-weight:600;display:block;overflow-wrap:anywhere}.record-title small{display:block;font-size:10px;color:#a29aa7;margin-top:5px}.record-paid,.record-split{font-size:10px;color:#8c8393;line-height:1.8;overflow-wrap:anywhere}.record-split{color:#aea3b5}.record-amount{text-align:right;font-size:13px;font-weight:600;white-space:nowrap}.record-amount small{display:block;font-weight:400;font-size:9px;color:#b3aab6;margin-top:4px}.record-amount.green{color:#6c8f74}.record-actions{display:flex;gap:2px}.record-actions button{background:none;color:#a998b2;width:28px;height:32px;font-size:19px;border-radius:6px}.record-actions button:hover{background:#f2edf6}.list-footer{display:flex;justify-content:space-between;gap:15px;padding:18px 2px;font-size:10px;color:#aaa0af}.footer-note{text-align:center;color:#b3a8b8;font-size:10px;margin-top:25px;letter-spacing:.7px}.empty{padding:44px 10px;text-align:center;color:#97869f}.empty>span{font-size:35px;color:#c5b7d2}.empty h3{margin:12px 0 8px;font-size:15px;color:#75687f}.empty p{font-size:12px;line-height:1.7}.empty .button{margin-top:20px}.empty.compact{padding:28px}.history{padding:24px;margin-bottom:20px}.muted{font-size:12px;color:#968b9f;line-height:1.8;margin-top:12px}.history-row{display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line);padding:18px 0}.history-row strong{font-size:13px}.history-row small{display:block;color:#978d9d;margin-top:5px}.audit{border-bottom:1px solid var(--line);padding:18px 0}.audit summary{display:flex;justify-content:space-between;gap:20px;cursor:pointer;font-size:12px}.audit small{color:#a398ae;font-size:10px}.audit pre{font-size:11px;white-space:pre-wrap;overflow-wrap:anywhere;color:#8c7f97;background:#f8f6fa;border-radius:8px;padding:14px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.settings{padding:28px}.settings>p{font-size:12px;line-height:1.8;color:#968b9d;margin:13px 0 20px}.settings form{display:grid;gap:18px}.settings form .button{justify-self:start}.settings>.button{margin-bottom:13px}.settings>small{display:block;color:#a299a6;font-size:11px;margin-top:5px}.import-label{cursor:pointer}.import-label input{display:none}.sync-info{grid-column:1/-1;position:relative;padding-right:160px}.sync-info p{margin-bottom:10px}.sync-symbol{position:absolute;right:55px;top:20px;font-size:110px;color:#c8bedb}.status-pill{display:inline-block;border-radius:20px;background:#f3f0e7;color:#938359;padding:6px 12px;font-size:11px;margin-top:5px}dialog{border:1px solid #ede6f0;border-radius:20px;padding:28px;color:var(--ink);background:#fffefd;max-width:min(540px,calc(100% - 28px));width:540px;max-height:calc(100dvh - 32px);overflow-y:auto;box-shadow:0 20px 90px #33274032}dialog::backdrop{background:#32264058;backdrop-filter:blur(3px)}.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;gap:20px}.dialog-head h2{font-size:21px}.close{background:#f4eff7;border-radius:50%;font-size:23px;color:#a692b5;width:33px;height:33px}.dialog-head .eyebrow{font-size:9px;margin-bottom:5px}#record-form{display:flex;flex-direction:column;gap:18px}.amount-input{padding:19px 22px;background:#f2edf8;border-radius:13px}.amount-input label{font-size:11px;color:#927ba3;display:flex;flex-direction:row;justify-content:space-between}.amount-input label span{font-size:10px;letter-spacing:1px}.amount-input>div{display:flex;align-items:center;gap:7px}.amount-input>div>span{font-size:24px;color:#a895b8}.amount-input input{background:none;border:none;font-size:36px;font-weight:600;padding:8px 0 0;width:100%;color:#625071;outline-offset:3px}.amount-input input::placeholder{color:#c7b8d6}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}fieldset{border:0;margin:0;padding:0}legend{font-size:13px;font-weight:550;margin-bottom:10px;padding:0}.split-options{display:flex;gap:8px}.split-options label{flex:1;flex-direction:row;align-items:center;justify-content:center;font-size:11px;padding:12px 8px;border:1px solid #e6dfed;border-radius:9px;white-space:nowrap;cursor:pointer}.split-options label:has(input:checked){background:#eee8f7;border-color:#c4b4d9;color:#7c639b}.split-options input{accent-color:var(--purple);margin:0;outline-offset:2px}.split-preview{background:#f7f6f2;border-radius:10px;padding:15px;display:flex;justify-content:space-between;gap:20px;color:#8f809c;font-size:11px}.split-preview div{flex:1}.split-preview div:last-child{text-align:right}.split-preview strong{display:block;font-size:17px;color:#6f607e;margin-top:5px}.rounding{font-size:10px;color:#a697b0;margin-top:-8px}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:8px}.form-error{font-size:12px;color:#ae5464;line-height:1.7}.form-error:empty{display:none}.settlement-note{display:flex;gap:12px;align-items:center;border-radius:10px;background:#f1f5ee;padding:15px;color:#8b9c7d}.settlement-note>span{font-size:23px}.settlement-note p{font-size:11px;line-height:1.8}#confirm{max-width:430px}#confirm>p{font-size:13px;color:#918296;line-height:1.8}#confirm .form-actions{margin-top:23px}#toast{position:fixed;bottom:28px;left:50%;transform:translate(-50%,20px);max-width:calc(100% - 32px);background:#514461;color:white;padding:12px 20px;font-size:12px;border-radius:11px;z-index:20;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;line-height:1.7}#toast.show{opacity:1;transform:translate(-50%,0)}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(min-width:1500px){main{margin-right:auto;margin-left:244px;padding-left:65px;padding-right:65px}}@media(max-width:1150px){.sidebar{width:210px;padding:30px 19px}main{margin-left:210px;padding:30px 28px}.overview{gap:18px;grid-template-columns:1fr 1.2fr}.balance{padding:24px}.balance-amount{font-size:35px}.summary{padding:23px}.filters{flex-wrap:wrap}.filters .search{flex-basis:100%}.filters label{flex:1}.table-labels,.record{grid-template-columns:1.9fr 1.15fr .9fr 50px;gap:12px}.record-split,.table-labels span:nth-child(3){display:none}.table-labels span:nth-child(4){text-align:right}.record-actions button{width:25px}.record-title{gap:9px}.category-icon{width:34px;height:34px;flex-basis:34px}}@media(max-width:800px){.sidebar{width:180px;padding:27px 16px}.brand{font-size:17px}.brand-mark{width:35px;height:35px;font-size:29px}.brand small{font-size:8px;letter-spacing:2px}.household{gap:6px}.household small{max-width:91px}.avatars b{width:24px;height:24px;font-size:10px}.nav-item{font-size:12px;padding:12px}.sidebar-note{padding-left:4px}main{margin-left:180px;padding:26px 22px}h1{font-size:23px}.overview{grid-template-columns:1fr}.balance{padding:23px}.balance-amount{font-size:40px}.balance-decoration{right:25px;bottom:22px}.summary{padding:23px}.monthly{margin:16px 0}.person-summaries{gap:30px}.table-labels,.record{grid-template-columns:1.8fr 1fr .9fr 48px}.record-paid{font-size:9px}.record-title strong{font-size:11px}.ledger{padding:22px 18px 0}.settings-grid{grid-template-columns:1fr}.sync-info{grid-column:auto;padding-right:28px}.sync-symbol{display:none}}@media(max-width:600px){body{padding-bottom:85px}.sidebar{width:auto;inset:auto 0 0;padding:0;background:#fffefd;border:0;border-top:1px solid var(--line);z-index:5;display:block}.sidebar .brand,.sidebar .household,.sidebar .sidebar-note,.sidebar .storage{display:none}.sidebar nav{display:flex;justify-content:space-around;padding:8px 10px max(9px,env(safe-area-inset-bottom))}.nav-item{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;border-radius:10px;margin:0;padding:9px 20px;font-size:10px;flex:1;max-width:125px}.nav-item>span{font-size:20px}.nav-item.active{background:#f4eef9}main{margin:0;padding:25px 18px 22px}header{margin-bottom:20px;gap:8px;align-items:flex-start}.eyebrow{font-size:8px;letter-spacing:2.3px;margin-bottom:5px}h1{font-size:22px;letter-spacing:-.8px;line-height:1.5;max-width:245px}header p{font-size:11px;max-width:230px;margin-top:7px;line-height:1.8}.add-top{padding:10px 12px;font-size:12px;min-height:39px;margin-top:26px}.mode-banner{font-size:10px;padding:11px 12px;gap:10px;margin-bottom:18px;line-height:1.6;align-items:flex-start}.mode-banner small{font-size:9px}.mode-banner button{font-size:10px;padding:2px 0}.overview{gap:15px;margin-bottom:19px}.balance{padding:24px;border-radius:15px}.balance-amount{font-size:43px;margin:13px 0 7px}.balance p{font-size:12px;margin-bottom:17px}.balance .button{font-size:12px;min-height:37px;padding:9px 16px}.balance small{font-size:9px}.balance-decoration{right:10px;bottom:17px;font-size:123px}.summary{padding:22px;border-radius:15px}.section-heading h2{font-size:15px}.monthly strong{font-size:28px}.monthly{margin:15px 0}.person-summaries{padding-top:14px;gap:22px}.person-summaries dl div{font-size:10px}.ledger{padding:20px 15px 0;border-radius:15px}.ledger-heading .button{font-size:10px;padding:7px 9px;min-height:32px}.ledger-heading p{font-size:9px;line-height:1.7}.filters{margin:19px 0 10px;gap:7px}.filters .search{min-width:0}.filters label{flex:1;min-width:120px}.filters select{max-width:115px;flex:1;padding:7px 8px;font-size:10px}.filters input{font-size:11px;height:36px;width:100%}.filters .reset{padding:7px 3px;font-size:10px}.table-labels{display:none}.record{display:grid;grid-template-columns:1fr auto 45px;gap:2px 9px;padding:16px 0}.record-title{grid-column:1;grid-row:1/3;gap:10px}.record-title strong{font-size:11px}.record-title small{font-size:9px}.category-icon{width:36px;height:36px;flex-basis:36px;border-radius:10px}.record-amount{grid-column:2;grid-row:1;align-self:end;font-size:12px;padding-top:2px}.record-amount small{display:none}.record-paid{grid-column:2;grid-row:2;text-align:right;align-self:start;font-size:8px;line-height:1.6;padding-top:3px}.record-actions{grid-column:3;grid-row:1/3}.record-actions button{width:23px;font-size:18px;height:32px}.record-title>div{max-width:153px}.list-footer{font-size:9px;line-height:1.6;gap:10px;padding:16px 0}.list-footer span{text-align:right;max-width:225px}.footer-note{font-size:9px;margin-top:21px}.history,.settings{padding:22px}.settings h2{font-size:16px}.settings>p{font-size:12px}.audit summary{flex-direction:column;gap:5px}.history-row{gap:10px}.history-row .button{padding:9px 13px;font-size:11px}.settings-grid{gap:15px}dialog{padding:23px 20px;max-width:calc(100% - 24px);max-height:calc(100dvh - 24px);border-radius:18px}.dialog-head{margin-bottom:21px}.dialog-head h2{font-size:20px}.amount-input{padding:17px 19px}.amount-input input{font-size:34px}#record-form{gap:17px}.split-options{gap:6px}.split-options label{font-size:10px;padding:11px 6px;gap:5px}.split-options input{width:12px;height:12px}.form-actions .button{font-size:12px;padding:11px 14px}#toast{bottom:95px;width:max-content;max-width:calc(100% - 28px);font-size:11px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}} 
.header-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.pending-section{margin:24px 0;padding:24px}.pending-section .section-heading p{color:var(--muted);font-size:13px}.pending-row{display:flex;align-items:center;gap:20px;padding:18px 0;border-top:1px solid #ebe9e3}.pending-row>div:first-child{flex:1;min-width:140px}.pending-row small{display:block;margin-top:6px;color:#74776c;font-size:12px}.pending-actions{display:flex;gap:8px;flex-wrap:wrap}.pending-actions .button{padding:9px 12px;font-size:12px}.settings a.button{display:inline-flex;margin:8px 8px 8px 0;text-decoration:none}@media(max-width:700px){.pending-section{padding:18px}.pending-row{flex-wrap:wrap;gap:12px}.pending-actions{width:100%}.header-actions .button{padding:10px 12px}}

.access-screen{margin:0;width:100%;min-height:100vh;display:grid;place-items:center;padding:32px 20px;box-sizing:border-box}.access-card{max-width:560px;width:100%;padding:36px;box-sizing:border-box}.access-card .brand{margin-bottom:38px}.access-card h1{font-size:28px;line-height:1.4;margin:12px 0}.access-card>p{color:var(--muted);line-height:1.8}.access-guidance{background:#f7f5f0;border-radius:16px;padding:20px;margin:24px 0}.access-guidance h2{font-size:17px;margin:0 0 8px}.access-guidance p{line-height:1.8;margin:0}.access-detail{font-size:13px}.browser-row{display:flex;gap:16px;align-items:center;justify-content:space-between;padding:16px 0;border-bottom:1px solid #ece9e1}.browser-row strong,.browser-row small{display:block}.browser-row small{margin-top:6px;line-height:1.5}.remembered{grid-column:1/-1}.sync-info .button{margin:5px}
@media(max-width:600px){.access-screen{padding:20px 14px}.access-card{padding:26px 22px}.access-card h1{font-size:25px}.access-card .brand{margin-bottom:28px}.access-guidance{padding:17px}.access-card>.button{width:100%}.browser-row{align-items:flex-start}.browser-row .button{flex-shrink:0}}

#confirm{width:min(430px,calc(100vw - 24px));max-width:min(430px,calc(100vw - 24px))}
