:root{--bg:#f8f4ed;--surface:#fffdf9;--ink:#3d4038;--muted:#838478;--line:#ebe6dc;--accent:#b96842;--accent-light:#f4e4d7;--green:#6e866a;--green-light:#edf1e8;--radius:24px;--font:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;font-family:var(--font);color:var(--ink);font-size:16px;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--bg);line-height:1.6;-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{opacity:.5;cursor:wait}a{color:inherit;text-decoration:none}button,input,select{outline-offset:4px}button:focus-visible,a:focus-visible{outline:3px solid var(--accent)}input:focus,select:focus{outline:2px solid #dba783;border-color:transparent}button{touch-action:manipulation}h1,h2,h3,p{margin:0}h1,h2,h3{font-weight:650}h1{font-size:30px;letter-spacing:-1px;line-height:1.35}h2{font-size:20px;letter-spacing:-.4px}h3{font-size:18px}.icon{display:inline-block;flex:none;vertical-align:middle;width:22px;height:22px}img{max-width:100%}.muted{color:var(--muted)}.fine-print{font-size:13px;color:var(--muted);line-height:1.8}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.boot{min-height:100dvh;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:20px;color:var(--muted)}.eyebrow,.section-kicker{font-size:10px;font-weight:650;letter-spacing:1.8px;color:#9b8c79;display:block}.section-kicker{font-size:9px;letter-spacing:1.5px;margin-bottom:4px}.button{border:1px solid transparent;display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:46px;padding:10px 19px;border-radius:13px;font-weight:600;font-size:15px;transition:background .15s,transform .15s;white-space:nowrap}.button:active{transform:translateY(1px)}.button.primary{background:var(--accent);color:#fffaf4;box-shadow:0 4px 12px #a9603420}.button.primary:hover{background:#a85a35}.button.secondary{background:var(--surface);border-color:#e2dacb;color:#6c6658}.button.secondary:hover{background:#f7f0e5}.button.danger{background:#a8483e;color:white}.button.danger-ghost{color:#a65d50;background:transparent;padding-left:0}.button.wide{width:100%}.text-button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:44px;border:0;background:none;padding:3px 0;color:var(--accent);font-weight:550;font-size:14px}.text-button .icon{width:17px;height:17px}.text-button.muted{color:var(--muted)}.icon-button{border:0;background:none;display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:8px;border-radius:10px;color:#77796d}.icon-button:hover{background:#ede7db}.stack{display:flex;flex-direction:column;gap:18px}label{display:block;font-size:14px;font-weight:550;color:#66685e}input:not([type=radio]),select{display:block;width:100%;min-width:0;border:1px solid #e2ddd2;background:#fffdf9;color:var(--ink);border-radius:11px;padding:12px 14px;min-height:48px;margin-top:7px;font-size:16px;line-height:1.4}input::placeholder{color:#a8a598;font-size:14px}input[type=date]{appearance:none;-webkit-appearance:none;min-height:48px}select{padding-right:30px}input[type=month]{cursor:pointer}input[type=password]{letter-spacing:1px}.form-error{color:#a0473d;font-size:14px;line-height:1.6;min-height:0}.form-error:empty{display:none}
/* A quiet welcome, before the ledger opens. */
.auth-layout{display:grid;grid-template-columns:1fr 1fr;min-height:100dvh}.auth-story{background:#ede5d5;padding:40px 56px;display:flex;flex-direction:column;position:relative;overflow:hidden}.brand{display:flex;align-items:center;gap:12px;width:fit-content;font-size:23px;font-weight:650;letter-spacing:2px;line-height:1.3}.brand img{border-radius:13px}.brand small{display:block;font-size:11px;letter-spacing:2px;color:#8c897d;font-weight:400;margin-top:6px}.auth-story-body{margin:auto 0;padding:65px 0 30px 14px}.auth-story h1{font-size:45px;line-height:1.6;letter-spacing:2px;margin:22px 0 18px}.auth-story p{font-size:17px;color:#8a806c;line-height:2}.home-illustration{display:block;width:280px;max-width:100%}.auth-story-body .home-illustration{width:285px;margin:20px auto 0}.auth-foot{display:flex;gap:10px;align-items:center;font-size:13px;letter-spacing:2px;color:#96866d}.auth-foot .icon{width:16px;height:16px}.auth-main{display:flex;align-items:center;justify-content:center;padding:44px 40px}.auth-card{max-width:390px;width:100%}.auth-card h2{font-size:29px;margin:11px 0 8px;letter-spacing:0}.auth-card>.muted{font-size:14px;margin-bottom:30px}.auth-card .stack{gap:16px}.auth-card .button{margin-top:8px;min-height:52px}.auth-privacy{font-size:12px;display:flex;align-items:center;justify-content:center;gap:5px;color:#939083;line-height:1.8;margin-top:24px}.auth-privacy .icon{height:15px;width:15px}.auth-card>.fine-print{text-align:center;margin-top:10px}.mobile-brand{display:none}
/* Household dashboard. */
.app-layout{display:flex;min-height:100dvh}.sidebar{width:230px;position:fixed;inset:0 auto 0 0;background:#f0eade;border-right:1px solid #e6dfd2;padding:34px 24px 22px;display:flex;flex-direction:column;z-index:10}.sidebar .brand{font-size:22px;gap:11px}.desktop-nav{display:flex;flex-direction:column;gap:9px;margin-top:55px}.nav-item{display:flex;align-items:center;gap:13px;background:none;border:0;padding:14px 16px;min-height:50px;border-radius:12px;color:#898779;text-align:left;font-size:15px;font-weight:500}.nav-item .icon{height:21px;width:21px}.nav-item.active{background:#e5d6c4;color:#925a38;font-weight:650}.nav-item:hover{background:#e7dfd1}.sidebar-add{margin-top:27px;width:100%}.sidebar-bottom{margin-top:auto;padding-top:50px}.sidebar-art .home-illustration{width:174px;margin:0 auto 9px;opacity:.85}.sidebar-bottom>p{text-align:center;font-size:14px;color:#827763;line-height:1.9}.sidebar-bottom>p>span{font-size:11px;color:#a29a89}.family-badge{border-top:1px solid #ded6c8;display:flex;align-items:center;gap:9px;margin-top:28px;padding-top:20px;font-size:13px;color:#7a7769}.family-badge .icon{width:18px;height:18px}.family-badge span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.main{margin-left:230px;width:calc(100% - 230px);padding:0 42px;max-width:1630px}.topbar{height:88px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);gap:20px}.breadcrumb{display:flex;align-items:center;gap:11px;font-size:12px;color:#868477;min-width:0}.breadcrumb .icon{width:16px;height:16px}.breadcrumb #top-family{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.breadcrumb-dot{color:#c6bfae;padding:0 4px}.sync-indicator{font-size:11px;color:#839078;display:flex;align-items:center;gap:6px;white-space:nowrap}.sync-indicator .icon{width:17px;height:17px}.sync-indicator.sync-error{color:#b36947}.page-content{padding-top:35px;min-height:calc(100dvh - 162px)}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:29px}.page-heading h1{margin-top:9px}.page-heading p{font-size:14px;color:#8b8a7e;margin-top:11px;letter-spacing:.3px}.month-picker{display:flex;align-items:center;gap:0;background:var(--surface);border:1px solid var(--line);padding:3px;border-radius:12px;flex-shrink:0}.month-picker .icon-button{min-width:33px;width:33px;padding:5px;min-height:38px}.month-picker .icon-button .icon{width:17px}.month-picker label{display:flex;align-items:center;gap:8px}.month-picker label>.icon{height:17px;width:17px;color:#96866d;margin-left:4px}.month-picker input{margin:0;padding:7px 0;min-height:38px;border:0;width:132px;background:transparent;font-size:14px;color:#6b6b5e}.month-picker input::-webkit-calendar-picker-indicator{margin:0;opacity:.4;width:15px;padding:0}.summary-grid{display:grid;grid-template-columns:1.65fr 1fr 1fr;gap:18px;margin-bottom:26px}.expense-card{background:#c9855e;border:1px solid #bf7c55;border-radius:var(--radius);padding:24px 27px 18px;color:#fffbf5;position:relative;overflow:hidden;min-width:0}.summary-label{display:flex;align-items:center;justify-content:space-between;gap:8px;position:relative;z-index:1}.summary-label>span:first-child{display:flex;align-items:center;gap:7px;font-size:14px;letter-spacing:.5px}.small-dot{height:5px;width:5px;background:#ffe7c6;border-radius:100%}.tag{font-size:10px;border:1px solid #e2b394;display:inline-block;line-height:1.5;padding:4px 9px;border-radius:7px;color:#ffecdb}.hero-amount{display:flex;align-items:baseline;gap:9px;margin-top:17px;position:relative;z-index:1;font-variant-numeric:tabular-nums;white-space:nowrap}.hero-amount>span{font-size:23px;font-weight:300}.hero-amount strong{font-size:42px;letter-spacing:-1.5px;font-weight:550;line-height:1.4}.expense-bottom{margin-top:18px;display:flex;align-items:center;justify-content:space-between;position:relative;z-index:1}.expense-bottom>span{color:#f9e2ce;font-size:11px}.expense-bottom>button{display:flex;justify-content:center;align-items:center;background:#e3ac863d;border:1px solid #f5d2b961;border-radius:50%;width:36px;height:36px;color:#ffeddc}.expense-bottom>button .icon{width:19px}.hero-decoration{position:absolute;inset:0;overflow:hidden;pointer-events:none}.hero-decoration span{width:170px;height:170px;border-radius:50%;border:1px solid #e8ba921f;position:absolute;right:-95px;top:-10px}.hero-decoration span:nth-child(2){width:225px;height:225px;right:-123px;top:-37px}.hero-decoration span:nth-child(3){width:280px;height:280px;right:-150px;top:-64px}.stat-card{border:1px solid var(--line);background:var(--surface);border-radius:var(--radius);padding:22px 22px 20px;position:relative;min-width:0;display:flex;flex-direction:column}.stat-icon{height:33px;width:33px;border-radius:10px;display:flex;align-items:center;justify-content:center;background:#edf0e6;color:#8a977d;margin-bottom:13px}.stat-icon .icon{height:19px;width:19px}.balance-card .stat-icon{background:#f3ede2;color:#ae9872}.stat-label{font-size:13px;color:#8a897e}.stat-amount{display:flex;align-items:baseline;gap:6px;margin-top:3px;font-variant-numeric:tabular-nums;white-space:nowrap}.stat-amount>span{font-size:18px;font-weight:350;color:#8a8c7e}.stat-amount>strong{font-weight:550;font-size:29px;letter-spacing:-1px;line-height:1.5}.stat-foot{font-size:10px;color:#a29c8e;margin-top:13px}.stat-amount.negative strong{color:#a96042}.overview-columns{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;min-width:0}.panel-heading{padding:25px 26px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px}.panel-heading h2{font-size:19px}.subtle-pill{font-size:10px;background:#f3f0e8;color:#9b927d;border-radius:7px;padding:6px 9px;white-space:nowrap}.category-content{padding:0 26px 24px}.donut-wrap{display:flex;justify-content:center;padding:12px 0 29px}.donut{height:190px;width:190px;border-radius:50%;padding:24px;position:relative;transform:rotate(-90deg)}.donut-center{background:var(--surface);border-radius:50%;width:100%;height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;transform:rotate(90deg)}.donut-center>span:first-child{font-size:12px;color:#9a9688}.donut-center>strong{font-size:19px;font-weight:600;margin-top:1px;max-width:95%;overflow-wrap:anywhere;text-align:center;line-height:1.6;font-variant-numeric:tabular-nums}.donut-center>span:last-child{font-size:10px;color:#aaa494;margin-top:4px}.category-list{display:flex;flex-direction:column;gap:16px}.category-stat{background:none;border:0;padding:0;width:100%;text-align:left;min-height:39px}.category-stat-top{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px}.category-stat-top>span{display:flex;align-items:center;gap:7px;white-space:nowrap}.category-stat-top i{height:7px;width:7px;display:block;border-radius:2px}.category-stat-top small{font-size:10px;color:#a29c8f;margin-left:1px}.category-stat-top strong{font-size:12px;font-weight:550;font-variant-numeric:tabular-nums;white-space:nowrap}.category-track{height:4px;background:#f5f1e9;border-radius:3px;overflow:hidden;margin-top:7px;margin-left:14px}.category-track span{height:100%;display:block;border-radius:3px}.panel-note{border-top:1px solid #eee9df;font-size:10px;color:#a29b8c;display:flex;align-items:center;gap:7px;padding:13px 24px;background:#fdfbf6}.panel-note .icon{height:14px;width:14px}.entry-list{padding:0 24px}.entry-row{display:flex;align-items:center;width:100%;background:none;text-align:left;border:0;border-bottom:1px solid #f0ece4;padding:17px 0;gap:13px;min-height:82px}.entry-row:hover .entry-description>strong{color:var(--accent)}.entry-row:last-child{border-bottom:0}.category-icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;background:color-mix(in srgb,var(--category) 12%,#fffdf9);color:var(--category);width:43px;height:43px;border-radius:14px}.category-icon .icon{height:22px;width:22px}.entry-description{min-width:0;flex:1;display:flex;flex-direction:column}.entry-description>strong{font-size:14px;font-weight:550;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.entry-description>span{font-size:10px;color:#a19c8e;margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.entry-description i{font-style:normal;margin:0 5px;color:#bab3a4}.entry-amount{font-size:15px;font-weight:550;font-variant-numeric:tabular-nums;white-space:nowrap;flex-shrink:0;letter-spacing:-.3px}.entry-amount.expense{color:#5c5b4e}.entry-amount.income,.income-text{color:var(--green)}.row-chevron{color:#b6afa2;height:13px;width:13px}.recent-panel .row-chevron{display:none}.recent-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--line);margin:4px 24px 0;padding:12px 0 15px;color:#a29b8a;font-size:11px}.recent-bottom strong{color:#817660;font-weight:550}.recent-bottom .text-button{font-size:12px}.warm-note{display:flex;align-items:center;justify-content:center;gap:7px;padding:15px 20px;font-size:11px;color:#ac9276;background:#f7f0e5}.warm-note .icon{height:14px;width:14px}.page-footer{display:flex;align-items:center;justify-content:space-between;padding:28px 0 23px;color:#aaa394;font-size:10px;gap:20px}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:300px;padding:32px 22px;gap:8px}.empty-icon{width:62px;height:62px;display:flex;align-items:center;justify-content:center;background:#f3eddf;color:#b7a180;border-radius:50%;margin-bottom:7px}.empty-icon .icon{height:28px;width:28px}.empty-state h3{font-size:17px;font-weight:550;color:#7a7564}.empty-state p{color:#aaa18f;font-size:12px;line-height:1.8}.empty-state .button{margin-top:15px;font-size:13px;min-height:43px}.mobile-nav,.mobile-logo{display:none}.loading-state{padding:100px 20px;text-align:center;font-size:14px;color:var(--muted)}.connection-error{padding:60px 25px;text-align:center;display:flex;align-items:center;flex-direction:column;gap:18px}.connection-error>.icon{height:40px;width:40px;color:#b3956f}.connection-error p{color:var(--muted);font-size:14px}
/* The month's records. */
.filters{display:flex;align-items:center;gap:16px;padding:23px 26px 18px;flex-wrap:wrap}.filter-select{display:flex;align-items:center;gap:8px;position:relative;font-size:12px;color:#929080}.filter-select select{font-size:13px;appearance:none;-webkit-appearance:none;min-height:40px;padding:8px 30px 8px 12px;margin:0;width:auto;max-width:170px;border-color:#e8e1d6;border-radius:9px}.filter-select>.icon{position:absolute;right:10px;width:14px;height:14px;pointer-events:none;color:#a59b86}.filters>.button{margin-left:auto;font-size:13px;min-height:40px}.reset-filters{font-size:11px}.filter-totals{display:flex;align-items:center;gap:27px;background:#f8f5ee;padding:12px 28px;font-size:12px;color:#9d9381;border-top:1px solid #f0ebe1;border-bottom:1px solid #f0ebe1}.filter-totals strong{color:#756b58;font-weight:550;margin-left:4px;font-variant-numeric:tabular-nums}.filter-totals .income-text{color:var(--green)}.day-group{padding:16px 28px 0}.day-group+.day-group{padding-top:22px}.day-heading{display:flex;align-items:center;gap:10px;margin-bottom:2px}.day-heading h2{font-size:13px;font-weight:600;color:#837b69}.day-heading>span{font-size:10px;color:#ada491}.day-group .entry-row{padding:17px 0;min-height:83px}.day-group:last-child{padding-bottom:20px}.load-more{display:flex;align-items:center;flex-direction:column;padding:20px;gap:12px}.load-more>span{font-size:12px;color:var(--muted)}
/* Household settings. */
.family-mark{background:#ece8db;color:#8c8067;font-size:12px;display:flex;gap:8px;align-items:center;border-radius:20px;padding:9px 15px}.family-mark .icon{width:17px;height:17px}.settings-grid{display:grid;grid-template-columns:1fr 1.25fr;gap:24px;align-items:start}.family-card{display:flex;align-items:center;flex-direction:column;text-align:center;padding:30px 26px 0}.family-avatar{background:#f0e0ce;border-radius:20px;display:flex;justify-content:center;align-items:center;width:67px;height:67px;color:#b5774e;margin-bottom:16px}.family-avatar .icon{width:34px;height:34px}.family-card h2{max-width:100%;overflow-wrap:anywhere;font-size:22px}.family-card>p{font-size:12px;color:#9a927f;margin:6px 0 19px}.family-card>.button{font-size:12px;min-height:39px;padding:8px 14px}.family-card>.button .icon{width:15px;height:15px}.account-details{border-top:1px solid var(--line);margin-top:26px;width:100%;display:flex;justify-content:space-between;gap:15px;font-size:12px;padding:19px 0;color:#9e9685}.account-details strong{font-weight:550;color:#736b59;overflow-wrap:anywhere;min-width:0}.account-note{background:#f9f5ec;border-top:1px solid var(--line);margin:0 -26px;padding:16px 20px;font-size:11px;color:#a39a86;width:calc(100% + 52px)}.member-list{padding:0 24px 16px}.member-row{display:flex;align-items:center;gap:11px;padding:13px 0;min-width:0}.member-row+.member-row{border-top:1px solid #f1ece2}.member-avatar{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:41px;height:41px;border-radius:50%;background:var(--avatar);color:#716c5c;font-size:15px;font-weight:550}.member-name{min-width:0;flex:1;display:flex;flex-direction:column;gap:3px}.member-name strong{font-size:14px;font-weight:550;overflow-wrap:anywhere}.member-name small{font-size:10px;color:#aaa28f}.member-row .icon-button{min-width:36px;min-height:36px;padding:8px}.member-row .icon-button .icon{height:15px;width:15px}.member-row .text-button{font-size:11px;white-space:nowrap;min-width:30px}.member-row.inactive .member-avatar{opacity:.5}.member-row.inactive .member-name strong{color:#999180}.settings-section{padding:0 25px 23px}.settings-section .panel-heading{padding:23px 0 17px}.settings-section .panel-heading>.icon{color:#ad9d80;width:21px;height:21px}.settings-section .muted{font-size:12px;line-height:1.8;margin-bottom:17px}.settings-section .button{font-size:12px;min-height:42px;padding:9px 13px}.settings-section>.fine-print{font-size:10px;margin-top:17px;line-height:1.8}.export-actions{display:flex;gap:10px;flex-wrap:wrap}.settings-bottom{display:flex;justify-content:space-between;gap:20px;padding:22px 4px 0}.settings-bottom .text-button{font-size:12px}.settings-bottom .icon{height:16px;width:16px}
/* Entry sheet and focused dialogs. */
dialog{padding:0;border:1px solid #e9e0d3;background:var(--surface);color:var(--ink);box-shadow:0 24px 90px #39312335;max-height:92dvh;overscroll-behavior:contain}dialog::backdrop{background:#39342c65;backdrop-filter:blur(3px)}body:has(dialog[open]){overflow:hidden}.sheet{width:min(520px,calc(100% - 32px));border-radius:26px}.sheet-header{display:flex;align-items:center;justify-content:space-between;padding:25px 27px 18px;gap:10px}.sheet-header h2{font-size:23px}.sheet-header .icon-button{margin-right:-9px}.sheet form{padding:0 27px 24px}.type-switch{display:flex;border-radius:11px;background:#f1ece3;padding:4px;gap:5px;width:100%}.type-switch button{flex:1;border:0;background:transparent;border-radius:8px;color:#9b917f;padding:8px;min-height:42px;font-size:15px}.type-switch button.selected{background:#fffdf9;box-shadow:0 2px 5px #5e432e0b;color:var(--accent);font-weight:650}.type-switch button[data-type=income].selected{color:var(--green)}.amount-field{padding:20px 0 14px;border-bottom:1px solid #eae2d5}.amount-field>span{font-size:12px;color:#9f9584}.amount-field>div{display:flex;align-items:baseline;gap:10px;margin-top:1px}.amount-field>div>span{font-size:28px;color:#aa9477;font-weight:300}.amount-field input{font-size:44px;font-weight:500;letter-spacing:-1px;padding:0;border:0;margin:0;background:transparent;min-height:64px;font-variant-numeric:tabular-nums;line-height:1.3}.amount-field input::placeholder{font-size:44px;color:#d1c8b9;font-weight:400}.amount-field input:focus{outline:0}.amount-field:focus-within{border-color:#c5875b}.category-field{border:0;margin:17px 0 20px;padding:0;min-width:0}.category-field legend{font-size:12px;color:#9f9584;margin-bottom:11px}.category-choices{display:grid;grid-template-columns:repeat(5,1fr);gap:12px 3px}.category-choice{position:relative;min-width:0;cursor:pointer}.category-choice>input{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;cursor:pointer}.category-choice>span{display:flex;align-items:center;flex-direction:column;padding:4px 0;border-radius:10px;border:1px solid transparent;gap:5px;font-size:11px;color:#a49884;pointer-events:none}.category-choice .category-icon{width:38px;height:38px;border-radius:12px;background:#f6f1e7;color:#aa9b83}.category-choice .category-icon .icon{height:20px;width:20px}.category-choice input:checked+span{color:#b47347;background:#fbf1e4;border-color:#e8c9a8}.category-choice input:checked+span .category-icon{background:#f2dfc5;color:#b1764b}.category-choice input:focus-visible+span{outline:2px solid var(--accent)}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-row label{font-size:12px;color:#968a76}.form-row input,.form-row select{font-size:14px;padding:10px 12px;margin-top:6px}.note-label{font-size:12px;color:#968a76;margin-top:17px}.note-label>.muted{font-size:10px;margin-left:5px;color:#b2a795}.note-label input{font-size:14px}.note-label input::placeholder{font-size:12px}.sheet .form-error{margin-top:14px;font-size:12px}.sheet-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:23px;padding-top:20px;border-top:1px solid #ece4d8}.sheet-footer .button{font-size:14px}.save-note{font-size:11px;color:#b3a38b}.small-dialog{width:min(420px,calc(100% - 32px));border-radius:22px;padding:24px}.small-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}.small-dialog-heading h2{font-size:21px;overflow-wrap:anywhere}.small-dialog-heading .icon-button{margin-right:-10px;margin-top:-7px}.dialog-description{font-size:14px;color:#8b806d;line-height:1.9;margin-bottom:22px;overflow-wrap:anywhere}.small-dialog .form-error{margin-top:12px}.dialog-actions{display:flex;gap:11px;justify-content:flex-end;margin-top:22px}.small-dialog .stack{gap:15px}.small-dialog label{font-size:13px}.install-guide>img{display:block;margin:0 auto 20px}.install-guide p{font-size:13px;color:#96866e;line-height:1.9;margin-bottom:15px}.install-guide strong{color:#75644b;font-size:14px}.install-guide .fine-print{font-size:11px;margin-bottom:22px}.toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);max-width:calc(100% - 32px);width:max-content;background:#535b48;color:#fffdf7;padding:13px 22px;border-radius:13px;z-index:100;font-size:14px;box-shadow:0 6px 28px #3d3e3025;pointer-events:none}.toast.error{background:#95604b}.toast[hidden]{display:none}
@media(min-width:1450px){.main{padding:0 65px}.summary-grid{grid-template-columns:1.65fr 1fr 1fr}.hero-amount strong{font-size:47px}.stat-amount>strong{font-size:34px}.overview-columns{grid-template-columns:1fr 1.1fr}.category-content{display:flex;align-items:center;gap:26px;padding:18px 26px 25px}.donut-wrap{padding:0}.donut{width:180px;height:180px;flex-shrink:0}.category-list{flex:1;min-width:0}.category-stat-top{font-size:12px}.category-stat-top small{font-size:9px}.category-stat-top strong{font-size:11px}.category-content:has(.category-stat:nth-child(7)){display:block}.category-content:has(.category-stat:nth-child(7)) .donut-wrap{padding-bottom:24px}}
@media(max-width:1150px){.sidebar{width:190px;padding:30px 18px 20px}.sidebar .brand{font-size:21px;gap:9px}.sidebar .brand img{width:37px;height:37px}.main{margin-left:190px;width:calc(100% - 190px);padding:0 25px}.nav-item{padding:12px 10px;font-size:14px;gap:10px}.page-heading{gap:16px}.page-heading h1{font-size:27px}.hero-amount strong{font-size:34px}.hero-amount>span{font-size:20px}.stat-amount>strong{font-size:24px}.expense-card{padding:23px 20px 16px}.stat-card{padding:22px 17px 20px}.summary-grid{gap:12px;grid-template-columns:1.5fr 1fr 1fr}.stat-foot{font-size:9px}.summary-label .tag{display:none}.overview-columns{gap:18px}.panel-heading{padding:22px 20px 18px}.panel-heading h2{font-size:17px}.section-kicker{font-size:8px;letter-spacing:1px}.recent-panel .panel-heading .text-button{font-size:11px}.entry-list{padding:0 19px}.entry-row{gap:10px}.entry-description>strong{font-size:13px}.entry-amount{font-size:13px}.category-content{padding:0 22px 22px}.category-icon{height:38px;width:38px;border-radius:12px}.category-icon .icon{height:20px;width:20px}.category-stat-top{font-size:12px}.category-stat-top small{font-size:9px}.category-stat-top strong{font-size:11px}.filters{gap:12px;padding:20px}.filter-select{gap:6px}.filter-select>span{display:none}.family-card{padding-left:20px;padding-right:20px}.settings-grid{gap:18px;grid-template-columns:1fr 1.15fr}.settings-section{padding-left:20px;padding-right:20px}.account-note{width:calc(100% + 40px);margin:0 -20px}.member-list{padding:0 18px 15px}.auth-story{padding:34px}.auth-story h1{font-size:38px}.auth-story-body{padding-left:0}.auth-main{padding:40px 35px}}
@media(max-width:900px) and (min-width:761px){.sidebar{width:165px;padding:28px 14px}.sidebar .brand{font-size:19px;gap:8px;letter-spacing:1px}.sidebar .brand small{font-size:9px;letter-spacing:1px}.sidebar .brand img{width:33px;height:33px}.main{margin-left:165px;width:calc(100% - 165px);padding:0 20px}.nav-item{font-size:13px;gap:8px}.page-heading{flex-wrap:wrap;gap:18px}.month-picker{margin-left:auto}.page-heading h1{font-size:25px}.summary-grid{grid-template-columns:1fr 1fr}.expense-card{grid-column:1 / -1;min-height:190px}.stat-card{min-height:180px}.overview-columns,.settings-grid{grid-template-columns:1fr}.hero-amount strong{font-size:43px}.stat-amount>strong{font-size:29px}.category-content{display:flex;align-items:center;gap:25px;padding-top:10px}.donut-wrap{padding:10px 0 20px}.donut{width:180px;height:180px}.category-list{flex:1}.category-content:has(.category-stat:nth-child(7)){display:block}.entry-description>strong{font-size:15px}.entry-amount{font-size:16px}.family-card{grid-row:1}.family-mark{display:none}}
@media(max-width:760px){:root{font-size:16px;--radius:21px}.sidebar{display:none}.main{margin-left:0;width:100%;max-width:100%;padding:0 20px}.topbar{height:74px;border-bottom:none;padding-top:env(safe-area-inset-top);gap:12px}.mobile-logo{display:flex;align-items:center;gap:9px;font-size:20px;font-weight:650;letter-spacing:1.5px}.mobile-logo img{border-radius:10px}.breadcrumb{display:none}.sync-indicator{font-size:10px;gap:4px}.sync-indicator .icon{width:16px;height:16px}.page-content{padding-top:15px;min-height:calc(100dvh - 205px)}.page-heading{align-items:flex-start;gap:18px;flex-direction:column;margin-bottom:23px}.page-heading .eyebrow{font-size:8px;letter-spacing:1.3px}.page-heading h1{font-size:27px;letter-spacing:-.7px;margin-top:9px}.page-heading p{font-size:13px;margin-top:9px}.month-picker{align-self:flex-start;margin-top:1px;padding:1px;border-radius:11px}.month-picker input{width:129px;font-size:14px;min-height:36px}.month-picker label>.icon{width:16px;height:16px}.month-picker .icon-button{width:36px;min-height:37px}.summary-grid{grid-template-columns:1fr 1fr;gap:12px;margin-bottom:23px}.expense-card{grid-column:1 / -1;padding:23px 24px 17px;border-radius:21px;min-height:192px}.summary-label>span:first-child{font-size:14px;letter-spacing:.4px}.summary-label .tag{display:block;font-size:10px}.hero-amount{gap:8px;margin-top:14px}.hero-amount>span{font-size:25px}.hero-amount strong{font-size:44px;letter-spacing:-1.5px}.expense-bottom{margin-top:10px}.expense-bottom>span{font-size:11px}.expense-bottom>button{width:34px;height:34px}.stat-card{padding:18px 18px 17px;min-height:167px;border-radius:20px}.stat-icon{width:31px;height:31px;border-radius:9px;margin-bottom:12px}.stat-icon .icon{height:18px;width:18px}.stat-label{font-size:12px}.stat-amount{gap:4px;margin-top:4px}.stat-amount>span{font-size:16px}.stat-amount>strong{font-size:26px;letter-spacing:-.7px}.stat-foot{font-size:9px;line-height:1.6;margin-top:10px}.overview-columns{grid-template-columns:1fr;gap:21px}.panel-heading{padding:23px 23px 19px}.panel-heading h2{font-size:19px}.section-kicker{font-size:8px;letter-spacing:1.2px}.category-content{padding:0 25px 24px}.donut-wrap{padding:5px 0 27px}.donut{width:181px;height:181px;padding:23px}.donut-center>strong{font-size:19px}.category-list{gap:16px}.category-stat-top{font-size:13px}.category-stat-top small{font-size:10px}.category-stat-top strong{font-size:12px}.panel-note{font-size:10px;padding:14px 22px;align-items:flex-start;line-height:1.8}.panel-note .icon{margin-top:2px}.entry-list{padding:0 23px}.entry-row{padding:17px 0;gap:12px;min-height:84px}.entry-description>strong{font-size:15px}.entry-description>span{font-size:11px;margin-top:5px}.entry-amount{font-size:16px}.category-icon{width:42px;height:42px;border-radius:13px}.category-icon .icon{height:22px;width:22px}.recent-panel .panel-heading .text-button{font-size:12px}.recent-bottom{margin-left:23px;margin-right:23px}.warm-note{font-size:11px;padding:16px}.page-footer{padding:26px 3px calc(110px + env(safe-area-inset-bottom));font-size:9px;gap:8px}.mobile-nav{display:grid;grid-template-columns:repeat(4,1fr);align-items:center;position:fixed;z-index:20;bottom:0;left:0;right:0;padding:8px 14px calc(8px + env(safe-area-inset-bottom));background:#fffdf9f5;backdrop-filter:blur(20px);border-top:1px solid #eae3d7;box-shadow:0 -8px 24px #5f4f2c04}.mobile-nav .nav-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border-radius:10px;padding:7px 5px;min-height:59px;font-size:10px;color:#a29989}.mobile-nav .nav-item .icon{width:22px;height:22px}.mobile-nav .nav-item.active{color:var(--accent);background:none}.mobile-nav .nav-item.active .icon{stroke-width:2}.mobile-nav .nav-add{padding:0;gap:2px;color:var(--accent)}.add-square{display:flex;align-items:center;justify-content:center;background:var(--accent);border-radius:12px;width:40px;height:35px;color:#fff5e9;box-shadow:0 3px 7px #ab5e2520}.add-square .icon{height:24px!important;width:24px!important}.filters{gap:9px;padding:17px 16px 16px;flex-wrap:wrap}.filter-select{flex:1;min-width:0}.filter-select select{width:100%;min-width:0;max-width:none;font-size:12px;min-height:40px;border-radius:8px;padding:9px 22px 9px 8px}.filter-select>.icon{right:7px;width:12px}.filter-select>span{display:none}.reset-filters{margin-left:auto;font-size:11px;min-height:30px}.desktop-only{display:none!important}.filter-totals{padding:12px 18px;gap:18px;font-size:10px;flex-wrap:wrap}.filter-totals strong{font-size:11px;margin-left:3px}.day-group{padding:19px 18px 0}.day-heading h2{font-size:13px}.day-heading>span{font-size:10px}.day-group .entry-row{gap:10px}.day-group .entry-description>strong{font-size:14px}.day-group .entry-amount{font-size:15px}.day-group .row-chevron{display:none}.settings-grid{grid-template-columns:1fr;gap:21px}.family-mark{display:none}.family-card{padding-top:27px}.members-card .panel-heading{padding-bottom:15px}.member-list{padding-left:22px;padding-right:22px}.member-name strong{font-size:15px}.member-name small{font-size:11px}.member-row .text-button{font-size:12px;min-width:36px}.member-row .icon-button{min-width:40px;min-height:44px}.member-row .icon-button .icon{width:16px;height:16px}.settings-section{padding:0 23px 23px}.settings-section .muted{font-size:13px}.settings-section .button{font-size:13px}.settings-bottom{gap:12px;padding-top:22px}.settings-bottom .text-button{font-size:12px}.toast{bottom:calc(100px + env(safe-area-inset-bottom));font-size:13px;padding:12px 17px;text-align:center;line-height:1.8}.auth-layout{display:block;min-height:100dvh}.auth-story{display:none}.auth-main{padding:32px 26px 40px;min-height:100dvh;align-items:center}.auth-card{max-width:390px}.mobile-brand{display:flex;align-items:center;gap:12px;font-size:24px;font-weight:650;letter-spacing:2px;margin-bottom:40px}.mobile-brand img{border-radius:13px}.auth-card h2{font-size:27px;margin-top:13px}.auth-card .eyebrow{font-size:9px}.auth-card>.muted{font-size:13px;line-height:1.9;margin-bottom:27px}.auth-card .stack{gap:17px}.auth-card .stack label{font-size:14px}.auth-card input{min-height:52px}.auth-card .button{min-height:54px;font-size:16px}.auth-privacy{font-size:11px;align-items:flex-start;text-align:center}.auth-privacy .icon{margin-top:2px}.sheet{position:fixed;inset:auto 0 0 0;margin:0;width:100%;max-width:100%;max-height:94dvh;border-radius:26px 26px 0 0;border-bottom:0}.sheet-header{padding:22px 24px 15px}.sheet-header h2{font-size:23px}.sheet-header .section-kicker{font-size:8px}.sheet form{padding:0 24px calc(24px + env(safe-area-inset-bottom))}.amount-field{padding-top:18px}.amount-field input{font-size:42px}.amount-field input::placeholder{font-size:42px}.category-field{margin-top:16px;margin-bottom:18px}.category-choices{gap:9px 2px}.category-choice>span{font-size:11px;gap:4px}.form-row{gap:12px}.form-row label{font-size:13px}.form-row input,.form-row select{font-size:15px;min-height:47px;padding:11px 9px}.note-label{font-size:13px;margin-top:15px}.note-label input{min-height:47px;font-size:15px}.note-label input::placeholder{font-size:13px}.sheet-footer{margin-top:21px;padding-top:17px}.sheet-footer .button{min-height:49px;font-size:15px}.save-note{font-size:11px}.small-dialog{padding:23px;max-height:90dvh}.small-dialog-heading h2{font-size:21px}.small-dialog .button{min-height:48px}.small-dialog .stack label{font-size:14px}.small-dialog .stack input{min-height:50px}.empty-state{min-height:285px}.empty-state p{font-size:12px}.empty-state h3{font-size:17px}.empty-state .button{font-size:14px}}
@media(max-width:374px){.main{padding:0 15px}.page-heading h1{font-size:24px}.expense-card{padding:22px 20px 16px}.hero-amount strong{font-size:39px}.stat-card{padding:17px 14px}.stat-amount>strong{font-size:23px}.stat-foot{font-size:8px}.panel-heading{padding-left:19px;padding-right:19px}.panel-heading h2{font-size:17px}.category-content{padding-left:20px;padding-right:20px}.entry-list{padding-left:18px;padding-right:18px}.entry-description>strong{font-size:14px}.entry-amount{font-size:14px}.entry-row{gap:9px}.entry-description>span{font-size:10px}.category-icon{width:37px;height:37px}.recent-panel .panel-heading .text-button{font-size:11px}.sheet-header{padding-left:20px;padding-right:20px}.sheet form{padding-left:20px;padding-right:20px}.save-note{display:none}.sheet-footer>.button.primary{margin-left:auto}.auth-main{padding:25px 22px 35px}.auth-card h2{font-size:24px}.mobile-brand{margin-bottom:28px}.small-dialog{padding:21px}.family-card h2{font-size:21px}}
.month-picker label{position:relative;min-height:38px;padding-right:8px;gap:8px}.month-label{font-size:14px;font-weight:550;white-space:nowrap;padding:5px 0;color:#706d5e;min-width:115px;text-align:center}.month-picker input{position:absolute;inset:0;opacity:0;width:100%;height:100%;padding:0;min-height:0}.month-picker label:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:2px;border-radius:6px}
.hero-amount strong,.stat-amount strong{overflow-wrap:anywhere;white-space:normal;min-width:0}.hero-amount,.stat-amount{min-width:0}.stat-amount{flex-wrap:nowrap}.hero-amount>span,.stat-amount>span{flex-shrink:0}.hero-amount strong{line-height:1.25}.stat-amount strong{line-height:1.35;flex:1}
@media(max-width:760px){.stat-label{font-size:13px}.entry-description>span{font-size:12px;color:#8f8778}.stat-foot{font-size:10px;color:#918b7d}.settings-section .muted{font-size:14px}.member-name small{font-size:12px;color:#8f8778}.settings-section>.fine-print{font-size:12px}.account-note{font-size:12px;color:#93866f}.account-details{font-size:13px}.panel-note{font-size:11px;color:#958a76}.category-stat-top{font-size:14px}.category-stat-top strong{font-size:13px}.category-stat-top small{font-size:11px;color:#958a76}.category-stat{min-height:44px}.fine-print{font-size:12px}.month-picker label{padding-right:7px}.month-label{font-size:14px;min-width:111px}.sheet .category-choice>span{font-size:12px}.recent-bottom{font-size:12px}.save-note{color:#9b8a72}}
@media(max-width:760px){.stat-amount>strong{font-size:clamp(19px,6vw,26px)}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

.family-photo-panel{margin-bottom:26px;padding:20px 24px;overflow:hidden}.family-photo-heading{display:flex;align-items:center;justify-content:space-between;gap:18px}.family-photo-heading h2{margin:0;font-size:19px;font-weight:600}.family-photo-heading p{margin:7px 0 0;color:var(--muted);font-size:13px;line-height:1.7}.family-photo-actions{display:flex;align-items:center;gap:14px;flex-shrink:0}.family-photo-actions .button{min-height:42px;font-size:13px;padding:10px 16px}.family-photo-image{display:block;width:100%;max-height:340px;object-fit:contain;background:#f4ece0;border-radius:15px;margin-top:18px}.family-photo-actions .text-button{min-height:44px}#photo-form input[type=file]{max-width:100%;font-size:14px;padding:12px 8px}#photo-form input::file-selector-button{border:0;border-radius:8px;padding:10px;background:#eee2d3;color:#7e5b43;margin-right:8px}
@media(max-width:760px){.family-photo-panel{padding:18px;margin-bottom:20px}.family-photo-heading{align-items:flex-start;gap:12px;flex-wrap:wrap}.family-photo-heading h2{font-size:17px}.family-photo-heading p{font-size:12px;margin-top:5px}.family-photo-actions{gap:16px}.family-photo-actions .button{min-height:44px;font-size:13px}.family-photo-image{max-height:240px;border-radius:12px;margin-top:15px}}

/* Configured household names may be longer than the product name. */
.sidebar .brand{max-width:100%}.sidebar .brand img,.mobile-logo img{flex-shrink:0}.sidebar .brand>span{min-width:0}.sidebar [data-family-name],.mobile-logo [data-family-name]{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mobile-logo{min-width:0}.mobile-logo [data-family-name]{min-width:0}

.filter-multiple{position:relative;display:flex;align-items:center;gap:10px;min-height:40px;max-width:170px;padding:8px 12px;margin:0;border:1px solid #e8e1d6;border-radius:9px;background:var(--surface);color:var(--ink);font:inherit;font-size:13px;cursor:pointer;overflow-wrap:anywhere;text-align:left}.filter-multiple .icon{width:14px;height:14px;flex-shrink:0;color:#a59b86}.filter-options{display:grid;gap:4px;max-height:55dvh;overflow-y:auto}.filter-options label{display:flex;align-items:center;gap:12px;min-height:44px;padding:8px;border-radius:8px;cursor:pointer}.filter-options label:has(input:checked){background:#fbf1e4}.filter-options input{width:18px;min-height:18px;height:18px;margin:0;accent-color:var(--accent);flex-shrink:0}.filter-options span{overflow-wrap:anywhere}
@media(max-width:760px){.filter-multiple{width:100%;max-width:none;justify-content:space-between;min-width:0;font-size:12px;padding:9px 8px;border-radius:8px}.filter-multiple .icon{width:12px;height:12px}}
