:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;--ink:#304941;--muted:#687e76;--green:#36786b;--green-dark:#285d53;--soft-green:#dbf1e7;--cream:#fffaf0;--paper:#fffdf7;--paper-line:#e8dcc5;--paper-shadow:#dccbad66;--line:#edf0e9;--orange:#f2ad63;--orange-soft:#fff0d9;--orange-ink:#966b37;--note-ink:#825a30;--red:#ae4e46;--red-soft:#f9ece8;--field:#f5f7f2;--chip:#e9eee6;--chip-ink:#738579;--nav:#fffdf8;--side:#e0f2e7;--jar-bg:#ddf0d7;--jar-line:#a5caaa;--jar-ink:#285d53;--texture:#a484510a;--btn-ink:#fff;--secondary-bg:#eef2ea;--secondary-line:#d5e5d6;--outline-bg:#fff;--outline-line:#dfe8de;--safe-bottom:env(safe-area-inset-bottom,0px);--safe-top:env(safe-area-inset-top,0px)}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--ink:#e6efe9;--muted:#a6b8b0;--green:#6fbfa6;--green-dark:#9fd8c4;--soft-green:#2b4a40;--cream:#1c2622;--paper:#24302b;--paper-line:#3b4a43;--paper-shadow:#0006;--line:#34413b;--orange:#e0a15a;--orange-soft:#4a3a26;--orange-ink:#f1c88f;--note-ink:#f1d2a4;--red:#f19a8f;--red-soft:#4a2c28;--field:#2c3833;--chip:#2f3b36;--chip-ink:#b0c2b8;--nav:#202b27;--side:#213830;--jar-bg:#2c4a3a;--jar-line:#4f7a60;--jar-ink:#d7f0e2;--texture:#ffffff06;--btn-ink:#0f1f1a;--secondary-bg:#2f3d37;--secondary-line:#44564d;--outline-bg:#24302b;--outline-line:#44564d}}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{min-height:100%;margin:0}body{background:var(--cream);background-image:repeating-linear-gradient(15deg, var(--texture) 0 1px, transparent 1px 5px);color:var(--ink);-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%;font-family:-apple-system,BlinkMacSystemFont,PingFang SC,Microsoft YaHei,sans-serif;font-size:16px;line-height:1.5}button,input{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed}:focus-visible{outline:3px solid var(--orange);outline-offset:2px}.app{min-height:100dvh}.main{max-width:640px;padding:calc(var(--safe-top) + 12px) 18px calc(96px + var(--safe-bottom));margin:0 auto}.sidebar{display:none}.tabbar{z-index:20;padding:8px 12px calc(8px + var(--safe-bottom));background:var(--nav);border-top:1px dashed var(--paper-line);display:flex;position:fixed;bottom:0;left:0;right:0}.tabbar button{min-height:52px;color:var(--chip-ink);background:0 0;border:0;flex:1;padding:4px 0;font-size:12px;position:relative}.tabbar button b{margin-bottom:3px;font-size:20px;line-height:1.1;display:block}.tabbar button.active{color:var(--green);font-weight:800}.dot-badge{background:var(--orange);color:#4a2f10;border-radius:9px;place-items:center;min-width:18px;height:18px;margin-left:4px;padding:0 5px;font-size:11px;font-weight:800;line-height:1;display:inline-grid}.tabbar .dot-badge{position:absolute;top:0;left:calc(50% + 6px)}.brand{align-items:center;gap:9px;font-size:17px;font-weight:800;display:flex}.brand-mark{background:#bfe6d0;border-radius:11px 9px 12px;place-items:center;width:34px;height:34px;display:grid}.brand-mark .jar-art{width:84%;height:84%}.jar-art{object-fit:contain;-webkit-user-select:none;user-select:none;-webkit-user-drag:none;display:block}.topline,.row,.greeting{justify-content:space-between;align-items:center;gap:10px;display:flex}.topline{justify-content:space-between;min-height:40px}.sync{color:#567b5f;white-space:nowrap;background:#e7f0e3;border:0;border-radius:30px;align-items:center;gap:6px;margin-left:auto;padding:6px 10px;font-size:12px;font-weight:700;display:inline-flex}.sync:before{content:"";background:#76a47a;border-radius:50%;width:7px;height:7px}.sync.syncing:before{background:var(--orange);animation:1s ease-in-out infinite pulse}.sync.offline,.sync.error{background:var(--orange-soft);color:var(--orange-ink)}.sync.offline:before,.sync.error:before{background:var(--orange)}@media (prefers-color-scheme:dark){.sync{color:#a9d2b0;background:#2b3f33}}@keyframes pulse{50%{opacity:.3}}.greeting{margin:22px 0 16px}.greeting .small{color:var(--muted);font-size:13px}.greeting h3{letter-spacing:-.03em;margin:4px 0 0;font-size:24px}.page-title{letter-spacing:-.02em;margin:18px 0 4px;font-size:26px;font-weight:800}.page-sub{color:var(--muted);font-size:14px;line-height:1.6}.section-title{margin:24px 0 10px;font-size:15px;font-weight:800}.section-title.first{margin-top:4px}.item-title{font-size:15px;font-weight:800;display:block}.item-sub{color:var(--muted);margin-top:2px;font-size:13px;line-height:1.6;display:block}.hint-line{color:var(--muted);margin:10px 2px 0;font-size:13px}.foot-note{margin:12px 3px}.empty-line{color:var(--muted);text-align:center;padding:18px 8px;font-size:14px}.child{background:var(--paper);border:1.5px solid var(--paper-line);white-space:nowrap;border-radius:42% 48% 45% 44%/50%;align-items:center;gap:7px;min-height:40px;padding:6px 12px 6px 6px;font-size:14px;font-weight:700;display:inline-flex}.avatar{color:#405d75;background:#d9e8fb;border-radius:50%;flex:none;place-items:center;width:28px;height:28px;font-size:14px;font-weight:800;display:inline-grid}.avatar.big{width:40px;height:40px;font-size:18px}.jar-card{border:2px solid var(--jar-line);background:var(--jar-bg);min-height:150px;color:var(--jar-ink);background-image:repeating-linear-gradient(-13deg,#649c6f13 0 2px,#0000 2px 6px);border-radius:25px 20px 24px 19px/22px 24px 19px 25px;padding:20px 120px 20px 20px;position:relative;overflow:hidden}.jar-card:after{content:"";background:#9bd6b750;border-radius:49% 51% 47% 53%;width:140px;height:140px;position:absolute;bottom:-58px;right:-22px}.jar-card .label{opacity:.85;font-size:13px}.jar-card .amount{z-index:1;letter-spacing:-.05em;white-space:nowrap;font-variant-numeric:tabular-nums;margin:8px 0 12px;font-size:44px;font-weight:800;line-height:1.1;position:relative}.jar-card .amount span{letter-spacing:0;font-size:15px;font-weight:600}.jar-card .hint{z-index:1;opacity:.85;font-size:13px;position:relative}.jar-illustration{z-index:1;width:116px;height:112px;position:absolute;bottom:12px;right:8px}.card{background:var(--paper);border:1.5px solid var(--paper-line);width:100%;box-shadow:1px 3px 0 var(--paper-shadow);text-align:left;background-image:repeating-linear-gradient(12deg,#b78f5307 0 1px,#0000 1px 5px);border-radius:21px 18px 22px 17px/18px 22px 18px 21px;padding:15px;display:block}.card+.card,.list .card+.card{margin-top:10px}button.card:not(:disabled):active{box-shadow:0 1px 0 var(--paper-shadow);transform:translateY(1px)}button.card:disabled{opacity:.55}.card.inactive{opacity:.6}.card.selected{border-color:var(--green)}.item{align-items:center;gap:12px;display:flex}.item-main{flex:1;min-width:0;display:block}.icon-box{background:var(--soft-green);background-image:repeating-linear-gradient(-18deg,#769f861c 0 2px,#0000 2px 5px);border:1px solid #a4cbb780;border-radius:13px 10px 12px 9px;flex:0 0 42px;place-items:center;width:42px;height:42px;font-size:21px;display:grid}.icon-box.peach{background-color:var(--orange-soft)}.icon-box.lilac{background-color:#eee4fa}.icon-box.blue{color:#405d75;background-color:#dceefa}.icon-box.big{width:64px;height:64px;margin:0 auto 8px;font-size:32px}.arrow{color:#a7b3a5;font-size:20px}.divider{background:var(--line);height:1px;margin:14px 0}.badge{white-space:nowrap;background:var(--soft-green);color:var(--green);border-radius:30px;align-items:center;padding:5px 10px;font-size:12px;font-weight:700;display:inline-flex}.badge.warm{background:var(--orange-soft);color:var(--orange-ink)}.plus{color:var(--green);white-space:nowrap;font-size:14px}.plus.big{font-size:17px}.muted-amount{color:var(--muted);white-space:nowrap;font-size:13px}.note{background:var(--orange-soft);color:var(--note-ink);background-image:repeating-linear-gradient(-12deg,#e6aa6a14 0 1px,#0000 1px 5px);border:1px dashed #e2bd82;border-radius:15px 11px 14px 12px;margin-top:12px;padding:12px 14px;font-size:13px;line-height:1.6}.note.spaced{margin:14px 0}.timer{letter-spacing:-.05em;text-align:center;font-variant-numeric:tabular-nums;margin:16px 0 2px;font-size:52px;font-weight:800}.timer.paused{opacity:.55}.timer-sub{text-align:center;color:var(--muted);margin-bottom:16px;font-size:13px}.progress{background:#e5f1e7;border:1px solid #bbd5bf;border-radius:40% 45% 38%/50%;height:12px;overflow:hidden}.progress>i{border-radius:inherit;background:#74b79b repeating-linear-gradient(-25deg,#fff4 0 1px,#0000 1px 4px);height:100%;transition:width .9s linear;display:block}.progress.warm>i{background-color:var(--orange)}@media (prefers-color-scheme:dark){.progress{background:#2a3a33;border-color:#4a6355}}.actions{gap:10px;margin-top:16px;display:flex}.actions>.btn{flex:1}.btn{background:var(--green);min-height:48px;color:var(--btn-ink);text-align:center;background-image:repeating-linear-gradient(-12deg,#ffffff12 0 1px,#0000 1px 4px);border:1px solid #2e685c;border-radius:13px 10px;justify-content:center;align-items:center;padding:10px 14px;font-size:15px;font-weight:800;display:inline-flex}.btn.secondary{background-color:var(--secondary-bg);border-color:var(--secondary-line);color:var(--green-dark)}.btn.outline{background:var(--outline-bg);color:var(--green-dark);border-color:var(--outline-line)}.btn.danger{background:var(--red-soft);color:var(--red);border-color:#efd8cd}.btn.block{width:100%;margin-top:10px;display:flex}.btn.small{min-height:40px;padding:6px 14px;font-size:14px}.btn:disabled{opacity:.5}.text-btn{color:var(--green);background:0 0;border:0;min-height:40px;padding:8px 6px;font-size:14px;font-weight:700}.text-btn.danger{color:var(--red)}.add-btn{margin-top:16px!important}.leave{margin:24px 0 8px!important}.home-grid{grid-template-columns:minmax(0,1fr);grid-template-areas:"jar""activity""parent";display:grid}.area-jar{grid-area:jar}.area-activity{grid-area:activity}.area-parent{grid-area:parent}.start-grid{grid-template-columns:1fr 1fr;gap:12px;display:grid}.start-card{background:var(--paper);border:1.5px solid var(--jar-line);box-shadow:1px 3px 0 var(--paper-shadow);text-align:left;border-radius:20px 16px 21px 15px/16px 21px 16px 20px;flex-direction:column;align-items:flex-start;gap:6px;padding:16px 14px;display:flex}.start-card.warm{border-color:#e7c79a}.start-card:disabled{opacity:.55}.start-card .item-sub{font-size:12px}.ent-balance{margin-top:10px!important}.tip p{margin:6px 0 0}.tip{margin-top:18px}.tabs{gap:8px;margin:18px 0 14px;display:flex}.tabs.scroll{scrollbar-width:none;overflow-x:auto}.tabs button{background:var(--chip);min-height:38px;color:var(--chip-ink);border:0;border-radius:20px;flex:none;padding:7px 16px;font-size:14px;font-weight:700}.tabs button.selected{color:#fff;background:var(--green)}@media (prefers-color-scheme:dark){.tabs button.selected{color:var(--btn-ink)}}.form h2{margin:8px 0 4px}.field{margin-top:14px;display:block}.field-label{color:var(--muted);margin-bottom:6px;font-size:13px;font-weight:700;display:block}.field input,.inline-form input{border:1.5px solid var(--paper-line);background:var(--field);border-radius:12px;width:100%;min-height:48px;padding:10px 14px;font-size:16px;font-weight:700}.fields{grid-template-columns:1fr 1fr;gap:12px;display:grid}.icon-pick{grid-template-columns:repeat(4,1fr);gap:8px;display:grid}@media (width>=560px){.icon-pick{grid-template-columns:repeat(8,1fr)}}.icon-pick button{border:1.5px solid var(--paper-line);background:var(--field);border-radius:12px;place-items:center;height:46px;padding:0;font-size:22px;line-height:1;display:grid}.icon-pick button.selected{border-color:var(--green);background:var(--soft-green)}.form-error{color:var(--red);margin:12px 0 0;font-size:14px}.inline-form{align-items:center;gap:8px;display:flex}.inline-form input{flex:auto;min-width:0}.inline-form .btn,.inline-form .text-btn{white-space:nowrap;flex:none}.inline-form .btn.small{min-height:48px;padding:10px 20px;font-size:15px}.inline-form.add{margin-top:14px}.join-code{border:2px dashed var(--jar-line);background:var(--field);letter-spacing:.06em;text-align:center;word-break:break-all;-webkit-user-select:all;user-select:all;border-radius:16px;margin:18px 0 6px;padding:16px;font-family:ui-monospace,SF Mono,Menlo,Consolas,monospace;font-size:20px;font-weight:800}.toggle{background:#c9d2c6;border:0;border-radius:20px;flex:none;justify-content:flex-start;width:52px;height:30px;padding:3px;transition:background .15s;display:flex}.toggle:after{content:"";background:#fff;border-radius:50%;width:24px;height:24px;box-shadow:0 1px 2px #0003}.toggle.on{background:#8bad8b;justify-content:flex-end}.about p{margin:0 0 6px}.sheet-backdrop{z-index:50;background:#1c26228c;justify-content:center;align-items:flex-end;animation:.15s ease-out fade;display:flex;position:fixed;inset:0}.sheet{width:100%;max-width:560px;max-height:90dvh;padding:8px 18px calc(22px + var(--safe-bottom));background:var(--cream);border-radius:24px 24px 0 0;animation:.2s ease-out rise;overflow-y:auto}.sheet-grip{background:var(--paper-line);border-radius:3px;width:40px;height:5px;margin:2px auto 10px}.sheet-head{justify-content:space-between;align-items:center;margin-bottom:10px;display:flex}.sheet-head h3{margin:0;font-size:18px}.sheet-note{color:var(--muted);margin:0 0 12px;font-size:14px}.confirm{text-align:center;padding:8px 4px 4px}.confirm h3{margin:4px 0 8px;font-size:19px}.confirm p{color:var(--muted);margin:0 0 12px;font-size:14px}@keyframes fade{0%{opacity:0}}@keyframes rise{0%{opacity:.6;transform:translateY(30px)}}.pin-pad{text-align:center;max-width:320px;margin:0 auto;padding:6px 0}.pin-title{font-size:17px;font-weight:800}.pin-sub{color:var(--muted);margin-top:4px;font-size:13px}.pin-dots{justify-content:center;gap:16px;margin:20px 0 6px;display:flex}.pin-dots i{border:2px solid #87a091;border-radius:50%;width:14px;height:14px}.pin-dots i.filled{background:var(--green);border-color:var(--green)}.pin-dots.shake{animation:.35s shake}.pin-error{min-height:22px;color:var(--red);margin-bottom:8px;font-size:13px}.keypad{grid-template-columns:repeat(3,1fr);gap:10px;display:grid}.keypad button{background:var(--field);border:0;border-radius:14px;min-height:56px;font-size:22px;font-weight:700}.keypad button:not(:disabled):active{background:var(--soft-green)}.keypad .key-text{background:0 0;font-size:15px}.text-btn.forgot{margin:10px auto 0;display:block}@keyframes shake{20%,60%{transform:translate(-8px)}40%,80%{transform:translate(8px)}}.onboarding{min-height:100dvh;padding:calc(var(--safe-top) + 32px) 22px calc(var(--safe-bottom) + 32px);justify-content:center;display:flex}.onboarding-inner{width:100%;max-width:440px}.onboarding h1{letter-spacing:-.04em;text-align:center;margin:12px 0 4px;font-size:34px}.onboarding h2{text-align:center}.onboarding .lead{color:var(--green);text-align:center;margin:0 0 10px;font-size:18px;font-weight:800}.onboarding .page-sub{text-align:center;margin-bottom:18px}.hero-art{width:170px;height:165px;margin:10px auto 0;display:block}.hero-art.small{width:112px;height:108px}.empty,.loading{text-align:center;color:var(--muted);padding:40px 10px}.empty h3{color:var(--ink)}.empty-art{width:124px;height:120px;margin:0 auto}.bob{animation:1.6s ease-in-out infinite bob}@keyframes bob{50%{transform:translateY(-6px)}}.toast{left:50%;bottom:calc(96px + var(--safe-bottom));z-index:60;color:#fff;background:#2f4740;border-radius:16px;max-width:calc(100vw - 40px);padding:12px 18px;font-size:14px;font-weight:700;animation:.15s ease-out fade;position:fixed;transform:translate(-50%);box-shadow:0 8px 24px #0003}.update-banner{background:var(--soft-green);border-radius:14px;align-items:center;gap:10px;margin-bottom:8px;padding:10px 14px;font-size:14px;font-weight:700;display:flex}.update-banner span{flex:1}.update-banner button{color:var(--green);background:0 0;border:0;min-height:36px;font-weight:800}@media (width>=900px){.app{grid-template-columns:220px minmax(0,1fr);display:grid}.sidebar{height:100dvh;padding:calc(var(--safe-top) + 26px) 16px 24px;background:var(--side);background-image:repeating-linear-gradient(-15deg,#7aab8512 0 2px,#0000 2px 6px);display:block;position:sticky;top:0}.sidebar .brand{margin-bottom:30px}.side-link{width:100%;min-height:46px;color:var(--chip-ink);text-align:left;background:0 0;border:0;border-radius:12px;align-items:center;gap:12px;margin:6px 0;padding:10px 12px;font-size:15px;font-weight:700;display:flex}.side-link.active{color:var(--green-dark);background:var(--paper)}.tabbar,.only-phone{display:none}.main{width:100%;max-width:1040px;padding:calc(var(--safe-top) + 20px) 32px 40px}.home-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"jar activity""parent activity";align-items:start;column-gap:24px}.area-activity>.section-title:first-child{margin-top:0}.toast{bottom:32px;left:calc(50% + 110px)}.sheet-backdrop{align-items:center}.sheet{border-radius:24px;padding-bottom:22px}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition:none!important;animation:none!important}}
