@charset "UTF-8";:root{color-scheme:light;--cream: #fff9f0;--paper: #fffefb;--coral: #ef655b;--coral-dark: #b93f38;--coral-soft: #ffd0c8;--peach: #f8d8cc;--sage: #6e9a7e;--sage-dark: #4f8063;--sage-soft: #e7f1e8;--forest: #355f48;--apricot: #c9862b;--apricot-soft: #fff0c9;--sky-soft: #e5f0f4;--plum: #765a78;--ink: #2b2522;--muted: #665d58;--line: #eadfdc;--surface-muted: #f4efe9;background:var(--cream);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,PingFang SC,Microsoft YaHei,sans-serif;font-size:14px;font-synthesis:none}*{box-sizing:border-box}body{margin:0;padding-bottom:calc(72px + env(safe-area-inset-bottom))}button,input,select,textarea{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0}button:disabled{cursor:not-allowed}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin:0}[hidden]{display:none!important}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--sage-dark);outline-offset:3px}.material-icon{width:24px;height:24px;fill:currentColor;flex-shrink:0}.garden{max-width:560px;margin:auto;padding:calc(12px + env(safe-area-inset-top)) 20px 32px}.topbar{display:flex;align-items:center;gap:8px;height:44px;margin-bottom:28px}.brand{display:flex;align-items:center;gap:12px;flex:1;min-width:0}.child-avatar{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:var(--apricot-soft);font-size:17px;font-weight:700;flex-shrink:0}.brand-copy{min-width:0}.brand-caption{display:block;color:var(--muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.brand-title{display:block;margin-top:2px;font-size:15px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.account-button{background:var(--paper);color:var(--ink);display:flex;align-items:center;gap:6px;padding:7px 9px;border-radius:999px;font-size:16px;font-weight:700;min-height:40px}.flower-stamp,.flower-mark{display:grid;place-items:center;border-radius:50%;background:var(--coral);color:#fff;font-weight:700;width:30px;height:30px;font-size:13px;flex-shrink:0}.account-button .flower-mark{width:26px;height:26px;font-size:11px}.page-heading{margin-bottom:22px;position:relative}.eyebrow{font-size:13px;font-weight:500;color:var(--muted);letter-spacing:0}.page-heading h1,.section-heading h2{font-size:25px;line-height:1.2;font-weight:700;margin-top:4px}.page-heading p{font-size:12px;color:var(--muted);line-height:1.6;margin-top:10px}.page-heading .quiet{margin-bottom:12px}.page-heading.with-action{display:flex;justify-content:space-between;gap:12px;align-items:center}.page-heading.with-action .quiet{flex-shrink:0;margin:0}.subheading{display:flex;align-items:center;gap:12px;justify-content:space-between;margin:30px 0 12px}.subheading h2,.subheading h3,.settings-form h2{font-size:18px;font-weight:700;line-height:1.3}.subheading small{display:block;margin-top:3px;color:var(--muted);font-size:12px}.subheading>span{font-size:12px;color:var(--muted)}.quiet,.text-button{background:transparent;color:var(--sage-dark);font-size:12px;font-weight:600;padding:10px 8px;min-height:40px}.text-button{display:block;margin:12px auto}.primary-button,.outline-button{width:100%;padding:14px 20px;border-radius:12px;font-weight:700;min-height:48px}.primary-button{background:var(--sage-dark);color:#fff}.primary-button:disabled{opacity:.55}.preview-icon-button{display:grid;place-items:center;width:40px;height:40px;padding:8px;flex-shrink:0}.preview-icon-button .material-icon{width:22px;height:22px}.outline-button{background:transparent;color:var(--ink);border:1px solid var(--line)}.outline-button .material-icon{width:18px;height:18px;vertical-align:-4px;margin-right:8px}.hero{height:306px;border-radius:24px;background:var(--peach);overflow:hidden;position:relative;isolation:isolate;padding:22px;display:flex;flex-direction:column;align-items:flex-start}.garden-art{position:absolute;inset:0;width:100%;height:100%;z-index:-1}.date-pill{font-size:12px;color:var(--coral-dark);border-radius:999px;padding:7px 11px;background:#fffefbd1;max-width:100%}#greeting{font-size:25px;font-weight:700;line-height:1.25;margin:18px 0 0;letter-spacing:0;width:100%}#hello{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#greeting br{display:none}.balance-row{display:flex;align-items:center;gap:9px;margin-top:auto}.balance-row strong{font-size:32px;font-weight:700}.balance-row>span:last-child{font-size:14px;color:var(--muted);margin-left:-2px}.hero-progress{width:100%;margin-top:12px;padding:10px 13px 11px;border-radius:14px;background:#fffefbdc}.hero-progress>div{display:flex;justify-content:space-between;gap:6px;color:var(--muted);font-size:12px}progress{display:block;width:100%;height:8px;margin-top:8px;border:0;border-radius:99px;overflow:hidden;background:var(--line)}progress::-webkit-progress-bar{background:var(--line)}progress::-webkit-progress-value{background:var(--coral);border-radius:99px;transition:width .22s}progress::-moz-progress-bar{background:var(--coral);border-radius:99px}.today{display:none}#quick-rules{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:12px}#quick-rules>.empty{grid-column:1 / -1}.task-card{height:154px;padding:16px;border-radius:16px;display:flex;flex-direction:column;text-align:left;background:var(--sage-soft);color:var(--ink);min-width:0}.task-card:nth-child(2n){background:var(--apricot-soft)}.task-top{display:flex;align-items:center;justify-content:space-between;gap:6px;color:var(--sage-dark);font-weight:600}.task-card:nth-child(2n) .task-top{color:var(--apricot)}.task-icon{display:grid;place-items:center;background:var(--paper);width:42px;height:42px;border-radius:50%;flex-shrink:0}.behavior-icon-picker{border:0;padding:0;margin:20px 0 0}.behavior-icon-picker legend{color:var(--muted);font-size:12px;margin-bottom:10px}.behavior-icon-options{display:flex;flex-wrap:wrap;gap:8px}.behavior-icon-choice{display:flex;align-items:center;gap:6px;padding:10px;border:1px solid var(--line);border-radius:12px;cursor:pointer;font-size:13px}.behavior-icon-choice:has(input:checked){background:var(--sage-soft);border-color:var(--sage-dark);color:var(--sage-dark)}.behavior-icon-choice input{width:14px;height:14px;margin:0;accent-color:var(--sage-dark)}.task-card h3{font-size:15px;font-weight:600;margin-top:auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.task-card p{font-size:12px;color:var(--muted);margin-top:4px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.soft-panel{display:flex;align-items:flex-start;gap:12px;background:var(--sage-soft);border-radius:16px;padding:16px;margin-top:16px}.soft-panel .soft-icon{background:var(--paper);width:40px;height:40px}.soft-panel strong{display:block;font-size:14px;font-weight:700}.soft-panel p{font-size:12px;color:var(--muted);margin-top:5px;line-height:1.45}.soft-icon,.rule-symbol,.history-symbol{width:44px;height:44px;border-radius:50%;background:var(--sage-soft);color:var(--sage-dark);display:grid;place-items:center;flex-shrink:0}.entry-list{display:grid;gap:10px}.entry{padding:14px;border-radius:16px;background:var(--paper);border:1px solid var(--line);min-width:0}.entry-head{display:flex;gap:12px;align-items:center}.entry-detail{flex:1;min-width:0}.entry h3{font-size:15px;font-weight:600;overflow-wrap:anywhere}.entry p{font-size:12px;color:var(--muted);line-height:1.5;margin-top:4px;white-space:pre-wrap;overflow-wrap:anywhere}.entry-amount{display:flex;align-items:center;gap:3px;flex-shrink:0;font-size:13px;color:var(--sage-dark);font-weight:700}.entry-amount .flower-count{color:var(--coral-dark);font-size:21px;letter-spacing:-1px}.entry-amount.negative{color:var(--coral-dark)}.entry-actions{display:flex;gap:4px;justify-content:flex-end;flex-wrap:wrap;margin-top:4px}.entry-actions button{background:transparent;color:var(--sage-dark);font-size:12px;font-weight:600;min-height:34px;padding:7px 8px}.entry-actions .danger{color:var(--coral-dark)}.entry-actions .material-icon{width:17px;height:17px;vertical-align:-4px}.swipe-entry{position:relative;overflow:hidden;border-radius:16px;min-width:0;background:var(--paper)}.swipe-entry.is-open,.swipe-entry.is-dragging{background:var(--coral-dark)}.swipe-surface{position:relative;z-index:1;background:var(--paper);transition:transform .2s ease;touch-action:pan-y;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.swipe-delete{position:absolute;inset:0 0 0 auto;width:80px;border:0;border-radius:0;background:var(--coral-dark);color:#fff;font-weight:600;visibility:hidden}.swipe-edit{position:absolute;inset:0 80px 0 auto;width:80px;background:var(--sage-dark);color:#fff;font-weight:600;visibility:hidden}.swipe-entry.is-open .swipe-edit,.swipe-entry.is-dragging .swipe-edit{visibility:visible}.swipe-entry.is-open>.swipe-delete,.swipe-entry.is-dragging>.swipe-delete{visibility:visible}.swipe-entry.is-dragging>.swipe-surface{transition:none}.swipe-entry:focus-visible{outline:2px solid var(--sage-dark);outline-offset:2px}.history-list>.swipe-entry,#manage-rules>.swipe-entry,#manage-rewards>.swipe-entry,#day-records>.swipe-entry{border-radius:0}#manage-rules>.swipe-entry,#manage-rewards>.swipe-entry,#day-records>.swipe-entry{border-bottom:1px solid var(--line)}.history-list .swipe-surface{padding-left:12px;padding-right:12px;background:var(--cream)}@media(prefers-reduced-motion:reduce){.swipe-surface{transition:none}}.empty{background:var(--paper);border-radius:16px;color:var(--muted);font-size:12px;padding:30px 20px;text-align:center;line-height:1.8}.workspace-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}.workspace-heading h1{font-size:23px;margin:0}.workspace-heading p{margin-top:6px;font-size:13px}.record-filters{padding-bottom:16px;border-bottom:1px solid var(--line)}.record-filters .segments{margin-bottom:0}.behavior-list-heading{display:flex;align-items:center;justify-content:space-between;margin:14px 0 6px}.behavior-list-heading h2{font-size:14px;font-weight:600}.segments{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:4px;gap:4px;background:var(--surface-muted);border-radius:15px;margin-bottom:14px}.segments button{background:transparent;border-radius:10px;color:var(--muted);font-weight:600;padding:10px 8px;min-height:44px}.segments [aria-pressed=true]{background:var(--sage-dark);color:#fff}.rule-list{display:grid;gap:12px}#record-rules{margin-bottom:16px;background:var(--paper);border-radius:16px;gap:0;overflow:hidden}#record-rules .rule-card{border-radius:0;border-bottom:1px solid var(--line)}#record-rules .rule-card:last-child{border-bottom:0}.config-tabs{display:grid;grid-template-columns:repeat(2,1fr);border-bottom:1px solid var(--line);margin-bottom:20px}.config-tabs button{background:transparent;color:var(--muted);font-weight:700;padding:16px;border-bottom:2px solid transparent}.config-tabs [aria-pressed=true]{color:var(--forest);border-bottom-color:var(--sage-dark)}.pool-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:-4px 0 18px}.pool-next{min-width:0;display:flex;align-items:baseline;gap:8px;color:var(--muted);font-size:12px}.pool-next small{flex-shrink:0}.pool-next span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pool-next-button{flex-shrink:0;color:var(--sage-dark);font-size:12px;font-weight:600;min-height:40px}#manage-rules,#manage-rewards{background:var(--paper);border-radius:16px;gap:0;overflow:hidden;margin-bottom:16px}#manage-rules .entry,#manage-rewards .entry{border:0;border-bottom:1px solid var(--line);border-radius:0;padding:16px}#manage-rules .entry:last-child,#manage-rewards .entry:last-child{border-bottom:0}#manage-rules .rule-symbol{border-radius:12px}#page-rules .page-heading,#page-pool .page-heading{display:grid;grid-template-columns:40px 1fr;column-gap:12px;align-items:center}#page-rules .page-heading>.quiet,#page-pool .page-heading>.quiet{font-size:28px;color:var(--ink);padding:0;margin:0}#page-rules .page-heading p,#page-pool .page-heading p{grid-column:1 / -1}.rule-card{background:var(--paper);border-radius:16px;position:relative}.rule-row{width:100%;border-radius:0;padding:16px 14px;background:var(--paper);display:flex;align-items:center;gap:12px;color:var(--ink);text-align:left;min-width:0}.rule-row .rule-symbol{width:40px;height:40px;border-radius:12px}.rule-row.growth .rule-symbol{background:var(--coral-soft);color:var(--coral-dark)}.rule-info{min-width:0;flex:1}.rule-info strong{display:block;font-size:15px;font-weight:600;overflow-wrap:anywhere}.rule-info small{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin-top:4px;font-size:12px;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}.record-action{display:flex;flex-direction:column;align-items:flex-end;gap:6px;flex-shrink:0;color:var(--sage-dark)}.record-action strong{font-size:12px;font-weight:600}.rule-row.growth .record-action{color:var(--coral-dark)}.record-chip{font-size:12px;color:var(--muted)}.growth-help{background:var(--apricot-soft);margin:14px 0}.reward-box{padding:20px;border-radius:24px;background:var(--plum);color:#fff}.reward-balance-row{display:flex;justify-content:space-between;gap:16px;align-items:center}.reward-balance-row small{display:block;color:#d9cdd9;font-size:12px}.reward-balance-row strong{display:inline-block;margin-top:5px;font-size:38px;line-height:1;font-weight:700}.reward-balance-row span{color:#d9cdd9;font-size:12px;margin-left:6px}.reward-box-icon{width:62px;height:62px;border-radius:16px;background:#ffffff29;display:grid;place-items:center;color:#e6dce7}.reward-box-icon .material-icon{width:30px;height:30px}.reward-tiers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:22px}.tier{padding:15px;border-radius:14px;background:#ffffff1f;color:#fff;text-align:left}.tier[aria-pressed=true]{background:var(--paper);color:var(--ink)}.tier small{font-size:12px;color:#d9cdd9;display:block}.tier[aria-pressed=true] small{color:var(--muted)}.tier strong{display:block;margin-top:5px;font-size:14px;font-weight:700}.draw-button{width:100%;margin-top:16px;background:var(--coral);color:#fff;padding:14px 20px;min-height:48px;font-weight:700;font-size:14px;border-radius:12px}.draw-button:disabled{background:var(--coral-soft);color:#806766}.draw-disclaimer{text-align:center;color:#d9cdd9;font-size:12px;margin-top:12px;line-height:1.5}.prize-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.prize-chip{background:var(--apricot-soft);border-radius:16px;padding:16px;min-height:150px;min-width:0}.prize-chip:nth-child(2n){background:var(--sky-soft)}.prize-chip .history-symbol{background:var(--paper);color:var(--muted)}.prize-chip h3{font-size:15px;font-weight:600;margin-top:22px;overflow-wrap:anywhere}.prize-chip p{color:var(--muted);font-size:12px;margin-top:5px}.prize-chip.sold{opacity:.65}.prize-list>.empty{grid-column:1 / -1}.reward-thumb{width:44px;height:44px;object-fit:cover;border-radius:11px}.prize-chip .reward-thumb{width:100%;height:auto;aspect-ratio:1;border-radius:12px}.hidden-badge{display:inline-block;background:var(--apricot-soft);color:#966013;border-radius:6px;font-weight:700;padding:4px 8px;font-size:11px;margin:10px 0 -12px}.toolbar{display:flex;align-items:center;gap:12px;justify-content:space-between;flex-wrap:wrap;margin:12px 0}.toolbar label{font-size:12px;color:var(--muted)}.history-list{display:grid;gap:0}.history-item{display:flex;gap:12px;align-items:flex-start;flex-wrap:wrap;padding:18px 0;border-bottom:1px solid var(--line)}.history-item h3{font-size:15px;font-weight:600;overflow-wrap:anywhere}.history-item p{margin-top:5px;color:var(--muted);font-size:12px}.history-item .entry-actions{width:100%}.history-item .entry-amount{color:var(--sage-dark)}.month-stats{display:grid;grid-template-columns:repeat(2,1fr);padding:18px 0;gap:8px;background:var(--sage-dark);color:#fff;border-radius:16px;margin-bottom:20px}.month-stats>div{text-align:center}.month-stats strong{display:block;font-size:24px;font-weight:700}.month-stats small{display:block;margin-top:5px;color:#e7f1e8;font-size:12px}.calendar-panel{background:var(--paper);border-radius:16px;padding:14px 12px 16px}.month-bar{display:flex;align-items:center;gap:8px;margin-bottom:9px}.month-bar>button{width:40px;height:40px;font-size:28px;color:var(--ink);background:transparent}.month-bar input{flex:1;width:100%;min-width:0;font-size:15px;font-weight:600;text-align:center;color:var(--ink);background:transparent;border:0;padding:7px}.weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.weekdays{font-size:11px;font-weight:700;color:var(--muted);text-align:center;margin-bottom:8px}.calendar-grid button{margin:2px;border-radius:12px;background:transparent;color:var(--ink);min-height:44px;aspect-ratio:.9;padding:4px 0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-weight:600;font-size:14px}.calendar-grid [aria-pressed=true]{background:var(--coral);color:#fff;font-weight:900}.calendar-grid button:disabled{opacity:.35}.calendar-dots{display:flex;align-items:center;justify-content:center;min-height:5px;gap:2px}.calendar-dot{width:5px;height:5px;border-radius:50%;background:var(--sage-dark)}.calendar-dot.growth{background:var(--coral)}.calendar-grid [aria-pressed=true] .calendar-dot.growth{background:#fff}#day-records{background:var(--paper);border-radius:16px;gap:0;overflow:hidden}#day-records .entry{border:0;border-radius:0;border-bottom:1px solid var(--line)}#day-records .entry:last-child{border-bottom:0}.settings-heading{margin-bottom:18px}.settings-heading .eyebrow{font-size:12px}.settings-heading h1{font-size:23px;margin-top:5px}.settings-identity{border:1px solid var(--line);border-radius:16px;background:var(--paper);overflow:hidden}.settings-entry{width:100%;min-height:80px;padding:16px;display:flex;align-items:center;gap:12px;background:transparent;text-align:left;color:var(--ink)}.settings-entry+.settings-entry{border-top:1px solid var(--line)}.settings-entry-icon{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:var(--sage-soft);color:var(--sage-dark);flex-shrink:0}.settings-entry-icon .material-icon{width:22px;height:22px}.settings-entry-icon.profile-icon{background:var(--apricot-soft);color:var(--apricot)}.settings-entry-copy{flex:1;min-width:0}.settings-entry-copy strong{display:block;font-size:14px;font-weight:600;line-height:1.45;overflow-wrap:anywhere}.settings-entry-copy small{display:block;color:var(--muted);font-size:12px;line-height:1.45;margin-top:4px}.settings-entry-arrow{color:#928982;flex-shrink:0}.settings-entry-arrow .material-icon{width:18px;height:18px}.settings-entry:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--sage)}.settings-form h2{margin:30px 0 12px}.setting-group{border:1px solid var(--line);border-radius:16px;background:var(--paper);overflow:hidden}.settings-form .toggle{margin:0;padding:15px 10px 15px 17px;border-bottom:1px solid var(--line)}.setting-group>:last-child{border-bottom:0}.toggle{display:flex!important;align-items:center;gap:12px;justify-content:space-between;font-size:15px;color:var(--ink)}.toggle>span{flex:1;min-width:0}.toggle small{display:block;font-size:12px;line-height:1.45;color:var(--muted);margin-top:5px}input[type=checkbox]{appearance:none;-webkit-appearance:none;position:relative;background:var(--surface-muted);border:2px solid var(--muted);border-radius:99px;width:50px;height:30px;margin:0;flex-shrink:0;cursor:pointer;transition:background .18s}input[type=checkbox]:after{content:"";display:block;position:absolute;top:5px;left:5px;width:16px;height:16px;border-radius:50%;background:var(--muted);transition:transform .18s,width .18s}input[type=checkbox]:checked{background:var(--sage-dark);border-color:var(--sage-dark)}input[type=checkbox]:checked:after{width:22px;height:22px;top:2px;left:2px;background:#fff;transform:translate(20px)}.daily-limit-row{display:flex!important;justify-content:space-between;align-items:center;gap:12px;padding:15px 17px;border-bottom:1px solid var(--line)}.daily-limit-row span{font-size:15px;color:var(--ink)}.daily-limit-row small{display:block;margin-top:5px;color:var(--muted);font-size:12px}.settings-form .daily-limit-row input{width:58px;text-align:center;margin:0;padding:8px}.plan-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.plan-card{height:138px;padding:16px;border-radius:16px;background:var(--sage-soft);color:var(--ink);text-align:left;display:flex;flex-direction:column}.plan-card:nth-child(2){background:var(--apricot-soft)}.plan-count{width:40px;height:40px;background:var(--paper);color:var(--sage-dark);display:grid;place-items:center;border-radius:50%;font-weight:700;font-size:14px}.plan-card strong{display:flex;align-items:center;justify-content:space-between;font-size:15px;font-weight:600;margin-top:auto}.plan-card .material-icon{width:17px;height:17px;color:var(--muted)}.plan-card small{margin-top:3px;color:var(--muted);font-size:12px}.privacy-block{padding:17px;display:flex;gap:12px;align-items:flex-start}.privacy-block>.material-icon{color:var(--sage-dark)}.privacy-block p{color:var(--muted);font-size:12px;line-height:1.45;margin-top:5px}.settings-form .save-settings{margin-top:24px;background:var(--sage-dark)}.settings-form>label{display:block;margin:18px 0;font-size:12px;color:var(--muted)}.form-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px 17px}.form-columns label{color:var(--muted);font-size:12px;min-width:0}.settings-form input:not([type=checkbox]),#history-search,.sheet input:not([type=checkbox]),.sheet select,.sheet textarea{display:block;width:100%;margin-top:8px;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:var(--cream);color:var(--ink);font-size:16px;min-width:0}.settings-form .daily-limit-row input{width:58px;margin:0;padding:8px}select{color:var(--ink);background:var(--paper);border:1px solid var(--line);padding:10px;border-radius:12px;max-width:100%}.privacy-note{font-size:12px;color:var(--muted);line-height:1.6;margin:20px 0}footer{display:none;text-align:center;color:var(--muted);font-size:12px;margin-top:26px}body[data-page=settings] footer{display:block}footer p{font-size:11px;margin-top:3px}.bottom-nav{position:fixed;bottom:0;left:50%;transform:translate(-50%);z-index:10;width:min(100%,560px);min-height:calc(72px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(5,1fr);background:var(--paper);padding:8px 0 calc(8px + env(safe-area-inset-bottom))}.bottom-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:transparent;color:var(--muted);font-size:10px;font-weight:600;min-width:0}.bottom-nav button>span{display:grid;place-items:center;width:64px;max-width:90%;height:32px;border-radius:99px;color:#424c45;transition:background .18s}.bottom-nav .material-icon{width:24px;height:24px}.bottom-nav [aria-current=page]{color:var(--coral-dark);font-weight:800}.bottom-nav [aria-current=page]>span{background:var(--peach);color:var(--forest)}.status-bar{width:100%}.notice{position:fixed;z-index:12;bottom:calc(84px + env(safe-area-inset-bottom));left:50%;transform:translate(-50%);width:min(calc(100% - 32px),528px);padding:14px 16px;background:var(--ink);color:#fff;border-radius:12px;font-size:12px;line-height:1.5;box-shadow:0 2px 8px #00000014}.pending-banner{background:var(--apricot-soft);border-radius:14px;padding:14px;display:flex;gap:10px;align-items:center;margin-bottom:12px;font-size:12px;line-height:1.5}.pending-banner p{margin-top:4px;color:var(--muted)}.pending-banner button{color:var(--coral-dark);background:transparent;padding:10px;white-space:nowrap;font-weight:700;margin-left:auto}.sheet{border:0;border-radius:20px;background:var(--paper);color:var(--ink);width:calc(100% - 56px);max-width:440px;padding:28px 24px 24px;max-height:90dvh;overflow:auto}.sheet::backdrop{background:#0006}.sheet h2{font-size:22px;font-weight:700;padding-right:24px}.sheet>p{font-size:14px;color:var(--muted);line-height:1.6;margin:12px 0 20px}.close{position:absolute;right:12px;top:12px;width:36px;height:36px;padding:0;display:grid;place-items:center;border-radius:8px;-webkit-appearance:none;appearance:none;background:transparent;color:var(--muted);font-size:24px;line-height:1}.close:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--sage)}#action-title:focus{outline:none}.sheet-symbol{display:block;font-size:32px;color:var(--sage-dark);margin:0 0 16px}.sheet label{display:block;font-size:12px;color:var(--muted);margin:18px 0}.sheet .toggle{color:var(--ink)}.upload-control{position:relative;display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;margin-top:8px;padding:12px 16px;border:1px dashed var(--sage);border-radius:12px;background:var(--sage-soft);color:var(--sage-dark);font-size:14px;font-weight:600;cursor:pointer}.upload-control .material-icon{width:20px;height:20px}.sheet .upload-control input[type=file]{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;opacity:0;cursor:pointer}.upload-control:focus-within{outline:2px solid var(--sage-dark);outline-offset:3px}.upload-control:has(input:disabled){opacity:.55;cursor:not-allowed}.upload-selection{display:block;margin-top:8px;color:var(--ink);font-size:12px;line-height:1.5;overflow-wrap:anywhere}.upload-hint{display:block;margin-top:8px;color:var(--muted);font-size:11px;line-height:1.5}.sheet textarea{min-height:85px;resize:vertical}.sheet audio{width:100%;margin:16px 0}.sheet .evidence-image{width:100%;height:auto;border-radius:12px;margin:15px 0}.sheet>small{display:block;text-align:center;font-size:11px;color:var(--muted)}#auth-dialog{width:calc(100% - 40px);max-width:380px;padding:24px;border-radius:24px;max-height:calc(100dvh - 40px);box-shadow:0 18px 60px #2b252224;overscroll-behavior:contain}#auth-dialog::backdrop{background:#2b252247;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}#auth-dialog .close{top:16px;right:16px;width:32px;height:32px;font-size:22px;background:var(--surface-muted)}.auth-brand{display:flex;align-items:center;gap:9px;color:var(--sage-dark);font-size:13px;font-weight:700}.auth-mark{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:var(--sage-soft);font-size:24px;line-height:1}#auth-dialog h2{font-size:23px;line-height:1.3;margin-top:20px;padding-right:0;outline:none}#auth-description{font-size:12px;line-height:1.6;margin:8px 0 22px}#auth-form{display:grid;gap:16px}#auth-form label{margin:0;font-size:12px;color:var(--muted)}#auth-form input{padding:12px 14px;min-height:48px;margin-top:7px;border-radius:12px;background:var(--surface-muted);border-color:transparent}#auth-form input::placeholder{color:#928982}#auth-form input:focus-visible{border-color:var(--sage);outline:2px solid var(--sage-soft);outline-offset:0}#auth-submit{margin-top:4px;min-height:48px;padding:12px 18px;font-size:15px}#auth-error{margin:0}.auth-switch{display:flex;justify-content:center;align-items:center;gap:2px;flex-wrap:wrap;color:var(--muted);font-size:12px;margin-top:12px}#auth-mode{width:auto;margin:0;min-height:40px;padding:8px 4px;font-size:12px;font-weight:600}#auth-dialog[open]{animation:auth-in .18s ease-out}@keyframes auth-in{0%{transform:translateY(8px)}to{transform:none}}@media(max-width:360px){#auth-dialog{width:calc(100% - 32px);padding:22px 20px}#auth-dialog h2{font-size:22px}}.editor-sheet{width:min(100%,560px);max-width:560px;border-radius:24px 24px 0 0;margin:auto auto 0;padding:28px 24px calc(16px + env(safe-area-inset-bottom))}.editor-sheet{overflow:hidden}#editor-form{display:flex;flex-direction:column;max-height:calc(90dvh - 112px - env(safe-area-inset-bottom))}#editor-fields{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}#editor-form>button,#editor-error{flex-shrink:0}.editor-sheet:before{content:"";display:block;position:absolute;top:10px;left:calc(50% - 16px);width:32px;height:4px;border-radius:99px;background:var(--line)}.editor-sheet h2{font-size:20px;margin-bottom:20px}.editor-sheet input:not([type=checkbox]),.editor-sheet textarea,.editor-sheet select{background:var(--surface-muted);border-color:transparent}.editor-sheet .primary-button{background:var(--sage-dark);margin-top:20px;min-height:50px}.editor-hint{font-size:12px;color:var(--muted);line-height:1.5;margin:10px 0}.choice-options{display:flex;gap:8px;margin-top:8px}.choice-options button{flex:1;min-width:0;padding:12px 6px;border:1px solid var(--line);background:var(--paper);color:var(--muted);font-size:14px;font-weight:600;border-radius:12px;min-height:48px}.choice-options [aria-checked=true]{border-color:var(--sage);background:var(--sage-soft);color:var(--forest)}.form-error{color:var(--coral-dark)!important;font-size:12px;line-height:1.6;margin:10px 0}.form-error:empty{display:none}.drawing-sheet,.result-sheet{text-align:center;border-radius:22px;max-width:504px}#draw-title:focus,#result-name:focus{outline:none}.drawing-sheet{padding:30px 28px 32px}.drawing-mark{width:76px;height:76px;border-radius:50%;background:#f0e8f1;display:grid;place-items:center;margin:0 auto;animation:gift-pulse .9s linear infinite}.drawing-mark>span{width:52px;height:52px;background:var(--plum);color:#fff;border-radius:15px;display:grid;place-items:center}.drawing-mark .material-icon{width:28px;height:28px}.drawing-sheet h2{padding:0;margin-top:22px;font-size:20px;font-weight:800}.drawing-sheet>p{margin:8px 0 0;font-size:14px;line-height:1.5}.drawing-dots{display:flex;justify-content:center;align-items:center;gap:18px;height:9px;margin-top:22px}.drawing-dots i{display:block;width:7px;height:7px;border-radius:50%;background:var(--coral);opacity:.45;animation:draw-dot .9s step-end infinite}.drawing-dots i:nth-child(2){background:#d8b36a;animation-delay:.3s}.drawing-dots i:nth-child(3){background:var(--sage-dark);animation-delay:.6s}.result-sheet{padding:0;background:transparent;overflow:visible}.result-content{padding:28px 28px 24px;border-radius:22px;background:var(--paper);max-height:90dvh;overflow:auto}.result-sheet h2{font-size:12px;color:var(--coral-dark);padding:0;margin-top:18px}.result-sheet h3{font-size:24px;font-weight:800;margin-top:7px;overflow-wrap:anywhere}.result-mark{width:78px;height:78px;border-radius:50%;background:var(--apricot-soft);display:grid;place-items:center;margin:0 auto;color:var(--muted)}.result-mark>.material-icon{box-sizing:content-box;width:28px;height:28px;padding:11px;background:#fff;border-radius:14px}.result-mark:has(img){width:112px;height:112px;background:transparent;border-radius:18px}.result-mark .reward-thumb{width:112px;height:112px;border-radius:18px}.result-sheet #result-detail{margin-top:10px;color:var(--muted);font-size:14px;line-height:1.5}.result-invitation{margin-top:5px;color:var(--muted);font-size:14px;line-height:1.5}.result-sheet .hidden-badge{margin:18px 0 0}.result-sheet .hidden-badge:not([hidden])+h2{margin-top:8px}.result-sheet .primary-button{min-height:52px;margin-top:24px}.result-fireworks{position:absolute;top:-24px;left:0;width:100%;height:140px;pointer-events:none}.drawing-sheet[open]{animation:draw-panel-in .32s ease-out}.result-sheet[open]{animation:draw-panel-in .32s cubic-bezier(.34,1.56,.64,1)}@keyframes gift-pulse{0%{transform:scale(1)}to{transform:scale(1.045)}}@keyframes draw-dot{0%,33.33%{opacity:1;transform:scale(1.286)}33.34%,to{opacity:.45;transform:scale(1)}}@keyframes draw-panel-in{0%{opacity:0;transform:scale(.94)}to{opacity:1;transform:scale(1)}}.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}body:not([data-page=home]) .topbar{margin-bottom:24px;padding-bottom:12px;height:52px;border-bottom:1px solid var(--line)}body:not([data-page=home]) .child-avatar{width:32px;height:32px;font-size:14px}body:not([data-page=home]) .brand-title{display:none}body:not([data-page=home]) .brand-caption{color:var(--ink);font-size:14px;font-weight:600}.profile-heading{display:flex;align-items:center;gap:10px;margin-bottom:26px}.profile-heading h1{font-size:22px;letter-spacing:-.5px;margin:0}.profile-heading p{margin-top:5px;font-size:12px;color:var(--muted)}.back-button{background:transparent;color:var(--ink);font-size:30px;width:40px;height:44px;flex-shrink:0;padding:0;border-radius:12px}.profile-person{display:flex;align-items:center;gap:18px;margin:0 0 30px;padding:6px 4px}.profile-avatar{width:76px;height:76px;border-radius:26px 26px 30px 16px;display:grid;place-items:center;flex-shrink:0;background:var(--sage-soft);color:var(--forest);font-size:32px;font-weight:650;animation:profile-avatar-in .24s ease-out}@keyframes profile-avatar-in{0%{opacity:.4;transform:translateY(4px) scale(.96)}to{opacity:1;transform:none}}.profile-person>div{min-width:0}.profile-current-label{font-size:11px;color:var(--sage-dark);letter-spacing:1px}.profile-person h2{margin:6px 0;font-size:26px;font-weight:650;line-height:1.25;overflow-wrap:anywhere}.profile-person p{font-size:11px;color:var(--muted);line-height:1.7}.profile-section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.profile-section-heading h2{margin:0;font-size:14px;font-weight:650}.profile-section-heading>span{font-size:11px;color:var(--muted)}.profile-form{padding:22px;background:var(--paper);border:1px solid var(--line);border-radius:20px;margin-bottom:24px}.profile-section{margin:0}.profile-form .profile-section-heading{margin-bottom:24px}.profile-section label{display:block;font-size:12px;color:var(--muted)}.profile-section input{display:block;width:100%;font-size:16px;font-weight:550;padding:13px 14px;border:1px solid var(--line);border-radius:12px;background:var(--cream);min-height:48px;margin-top:10px;color:var(--ink);transition:background .16s,border-color .16s}.profile-section input:focus{background:var(--paper);border-color:var(--sage)}.field-hint{display:block;color:var(--muted);font-size:12px;line-height:1.6;margin-top:10px}.profile-section .field-hint{font-size:11px;line-height:1.8;margin-top:9px}.form-actions{display:flex;align-items:center;gap:12px;margin-top:24px}.form-actions .primary-button{flex:1;width:auto}.form-actions .reset-form{flex-shrink:0;margin:0;color:var(--muted);padding:12px}.profile-form .form-actions{margin-top:20px}.profile-form .primary-button{min-height:46px;border-radius:12px;font-size:14px}.profile-account-row{display:flex;align-items:center;gap:12px;width:100%;padding:0 4px 22px;text-align:left;background:transparent;color:var(--ink);border-bottom:1px solid var(--line)}.profile-account-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--sage-soft);color:var(--sage-dark);flex-shrink:0}.profile-account-icon .material-icon{width:20px;height:20px}.profile-account-row>span:nth-child(2){flex:1;min-width:0}.profile-account-row strong{display:block;font-size:13px;font-weight:600}.profile-account-row small{display:block;font-size:11px;color:var(--muted);margin-top:5px;line-height:1.7}.profile-account-row>.material-icon{width:18px;height:18px;color:var(--muted)}.profile-delete-button{display:grid;place-items:center;width:44px;min-height:44px;padding:12px;margin:-12px -10px -12px 0;border-radius:12px;background:transparent;color:var(--coral-dark)}.profile-delete-button .material-icon{display:block;width:20px;height:20px}.profile-delete-button:enabled:hover{background:var(--peach)}.profile-delete-button:disabled{opacity:.45}.account-sheet{width:calc(100% - 32px);max-width:440px;padding:24px}.account-sheet h2{font-size:20px}.children-panel{margin-bottom:26px}.children-picker{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:14px}.child-switcher{display:contents}.child-option{display:flex;align-items:center;gap:8px;min-height:46px;max-width:100%;padding:6px 10px 6px 6px;border:1px solid var(--line);border-radius:14px;background:var(--paper);color:var(--muted);transition:border-color .18s,background .18s,color .18s}.child-option[aria-pressed=true]{border-color:var(--sage);background:var(--sage-soft);color:var(--forest)}.child-option-avatar{display:grid;place-items:center;width:30px;height:30px;border-radius:10px;flex-shrink:0;background:var(--surface-muted);font-size:13px;font-weight:650}.child-option[aria-pressed=true] .child-option-avatar{background:var(--paper)}.child-option-name{font-size:12px;font-weight:600;max-width:120px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.child-option-check{font-size:11px;opacity:0}.child-option[aria-pressed=true] .child-option-check{opacity:1}.add-child-button{display:flex;align-items:center;gap:6px;padding:10px 8px;min-height:46px;background:transparent;color:var(--sage-dark);font-size:12px}.add-child-button>span{font-size:20px;line-height:1}.child-option:disabled,.add-child-button:disabled{opacity:.55}.child-add-sheet{padding:28px}.child-add-mark{width:52px;height:52px;border-radius:16px;background:var(--sage-soft);color:var(--sage-dark);display:grid;place-items:center;margin-bottom:18px}.child-add-sheet h2{font-size:21px;margin-bottom:10px}.child-add-sheet>p{color:var(--muted);font-size:12px;line-height:1.9;margin-bottom:24px}.child-add-sheet label{display:block;font-size:12px;color:var(--muted)}.child-add-sheet input{width:100%;display:block;min-height:48px;padding:13px 14px;border:1px solid var(--line);border-radius:12px;font-size:16px;background:var(--cream);color:var(--ink);margin-top:10px}.child-add-sheet .primary-button{margin-top:20px;border-radius:12px}#children-error{color:var(--coral-dark)}.danger-button{min-height:44px;padding:12px 16px;border-radius:10px;color:var(--coral-dark);background:var(--paper);border:1px solid var(--line)}.account-identity{display:flex;align-items:center;gap:12px;margin:24px 0}.account-identity>div{min-width:0}.account-identity .soft-icon{width:44px;height:44px;background:var(--sage-soft);color:var(--sage-dark)}.account-identity strong{font-size:15px}.account-identity p{font-size:13px;color:var(--muted);line-height:1.5;overflow-wrap:anywhere;margin-top:4px}.account-section{border-top:1px solid var(--line);padding-top:18px;margin-top:18px}.account-section h3{color:var(--muted);font-size:12px;font-weight:500;margin-bottom:10px}.account-sync-row{display:flex;align-items:center;gap:12px;justify-content:space-between}.account-sync-row strong{font-size:14px;color:var(--sage-dark)}.account-sync-row p{font-size:12px;color:var(--muted);line-height:1.5;margin-top:5px}.secondary-button{background:var(--sage-soft);color:var(--forest);padding:10px 12px;min-height:44px;border-radius:10px;font-size:12px;font-weight:600;flex-shrink:0}.account-data-row{background:transparent;color:var(--ink);display:flex;align-items:center;gap:12px;justify-content:space-between;width:100%;padding:6px 0;text-align:left;min-height:56px}.account-data-row strong{font-size:14px;font-weight:600}.account-data-row small{display:block;font-size:12px;color:var(--muted);line-height:1.5;margin-top:5px}.account-data-row>span:last-child{color:var(--muted)}.account-migration{margin-top:16px;padding-top:14px;border-top:1px solid var(--line);font-size:12px}.account-migration summary{color:var(--muted);cursor:pointer;min-height:32px}.account-footer{border-top:1px solid var(--line);margin-top:24px;padding-top:12px}.account-footer .text-button{color:var(--coral-dark);margin:0 auto}.app-page{animation:page-in .18s ease-out}.sheet[open]{animation:sheet-in .22s ease-out}button:enabled:active{filter:brightness(.97)}@keyframes page-in{0%{opacity:.65}to{opacity:1}}@keyframes sheet-in{0%{opacity:.3;transform:translateY(8px)}to{opacity:1;transform:none}}@media(max-width:360px){.topbar{gap:4px}.brand{gap:8px}.brand-title{font-size:13px}.brand-caption{font-size:11px}.task-card{padding:12px}.task-top{font-size:12px}.rule-row{padding:14px 12px;gap:10px}.rule-row .rule-symbol{width:36px;height:36px}.account-sheet{padding:24px 18px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
