:root{font-family:Microsoft YaHei,PingFang SC,Noto Sans CJK SC,sans-serif;color:#15314f;background:#ddecf8;font-synthesis:none;--primary: #2684ff;--primary-dark: #0d62d7;--accent: #ffcf4a;--success: #22a95d;--surface: rgba(255, 255, 255, .94);--surface-soft: rgba(239, 248, 255, .91);--border: rgba(65, 126, 185, .18);--shadow: 0 12px 34px rgba(38, 91, 139, .16)}*{box-sizing:border-box}html,body,#app{width:100%;min-width:320px;min-height:100%;margin:0;overscroll-behavior:none;touch-action:pan-x pan-y}button,a,input,select,textarea,[role=button]{touch-action:pan-x pan-y}button,input,select{font:inherit}button{border:0;cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}button:focus-visible{outline:3px solid #ffd354;outline-offset:3px}h1,h2,p{margin-top:0}.app-shell{position:relative;min-height:100vh;background:#dcefff;--theme-action: #2684ff;--theme-action-dark: #0d62d7}.app-shell.home-locked{position:fixed;top:0;right:0;bottom:0;left:0;width:100%;height:var(--app-viewport-height, 100vh);min-height:0;overflow:hidden}.theme-art{position:fixed;top:0;right:0;bottom:0;left:0;z-index:0;background-color:#9bd7ff;background-position:center;background-size:cover;pointer-events:none}.theme-ocean .theme-art{background-image:url(../theme-art/ocean.webp)}.theme-ice .theme-art{background-image:url(../theme-art/ice.webp)}.theme-fairy .theme-art{background-image:url(../theme-art/fairy.webp)}.theme-forest{--theme-action: #228b4e;--theme-action-dark: #146b39;--accent: #f3ca45}.theme-forest .theme-art{background-image:url(../theme-art/forest.webp)}.theme-fairy{--theme-action: #f24f79;--theme-action-dark: #d63462;--accent: #ffcf3f}.theme-art:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:#e1f3ff47}.topbar{position:sticky;z-index:20;top:0;display:flex;align-items:center;justify-content:space-between;min-height:76px;padding:max(12px,env(safe-area-inset-top)) 28px 10px;color:#fff;background:#1469be57;border-bottom:1px solid rgba(255,255,255,.3);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.profile-entry,.profile-button,.topbar-actions,.gem-count,.theme-entry{display:flex;align-items:center}.profile-entry{min-width:0;gap:6px}.profile-button{gap:12px;padding:0;color:inherit;text-align:left;background:transparent}.profile-button strong{display:block;font-size:22px;letter-spacing:0}.profile-button small{display:block;margin-top:2px;color:#ffffffd4}.child-switch-trigger{display:grid;width:38px;height:38px;flex:none;place-items:center;border-radius:50%;color:#fff;background:#ffffff29}.avatar{display:block;width:48px;aspect-ratio:1;object-fit:cover;border:3px solid #fff;border-radius:50%;background:#ddebfa;box-shadow:0 5px 14px #194b7838}.avatar.large{width:76px;font-size:26px}.topbar-actions{gap:12px}.topbar-context{display:flex;min-width:0;align-items:center;gap:12px}.topbar-context>span{display:grid;min-width:0}.topbar-context small{color:#ffffffd1;font-size:12px;font-weight:700}.topbar-context strong{overflow:hidden;font-size:21px;text-overflow:ellipsis;white-space:nowrap}.topbar-back{display:inline-flex;min-height:44px;align-items:center;justify-content:center;gap:2px;padding:0 12px;border:1px solid rgba(255,255,255,.55);border-radius:8px;color:#fff;background:#0f4b7d57;font-weight:800}.topbar-command{min-height:44px;padding:0 15px;border:1px solid rgba(255,255,255,.62);border-radius:8px;color:#174b76;background:#fffffff0;font-weight:800}.gem-count{gap:7px;padding:10px 15px;border-radius:8px;color:#fff;background:#ffffff2e;font-weight:800}.theme-entry{gap:8px;padding:10px 15px;border-radius:8px;color:#164571;background:#ffffffeb;font-weight:700}.sound-toggle{flex:0 0 42px;width:42px;height:42px;color:#164571;background:#ffffffeb}.demo-banner{position:fixed;z-index:21;top:max(8px,env(safe-area-inset-top));left:50%;display:flex;min-height:42px;max-width:min(520px,48vw);align-items:center;justify-content:center;gap:14px;padding:5px 12px;color:#174b76;background:#fff0bd;border:1px solid #e2b94f;border-radius:8px;box-shadow:0 6px 18px #394b5b26;transform:translate(-50%)}.demo-banner>span{display:flex;align-items:center;gap:7px}.demo-banner strong{white-space:nowrap}.demo-banner small{color:#725c22}.demo-banner button{min-height:34px;padding:0 13px;border-radius:8px;color:#fff;background:#176bff;font-weight:800}.main-content{position:relative;z-index:2;min-height:calc(100vh - 76px);padding:26px clamp(24px,5vw,80px) 32px}.home-view,.content-view{width:min(1220px,100%);margin:0 auto}.welcome-copy{max-width:660px;margin:0 0 22px 3%;color:#fff;text-shadow:0 2px 16px rgba(16,70,115,.36)}.welcome-copy small,.section-heading small{font-weight:700}.welcome-copy h1,.section-heading h1{margin:4px 0 6px;font-size:clamp(30px,4vw,48px);line-height:1.15;letter-spacing:0}.welcome-copy p{margin:0;font-size:17px}.home-overview{display:grid;grid-template-columns:minmax(280px,1.15fr) minmax(260px,.85fr) minmax(250px,.72fr);min-height:112px;align-items:stretch;margin-bottom:18px;overflow:hidden;border:1px solid rgba(255,255,255,.52);border-radius:8px;background:#ffffffed;box-shadow:var(--shadow)}.home-overview .welcome-copy{display:grid;align-content:center;max-width:none;margin:0;padding:18px 24px;color:#173b5a;text-shadow:none}.home-overview .welcome-copy small{color:var(--theme-action-dark)}.home-overview .welcome-copy h1{margin:2px 0 3px;font-size:29px}.home-overview .welcome-copy p{color:#60758a;font-size:14px}.home-overview .progress-panel,.home-overview .message-entry{min-height:0;border:0;border-left:1px solid var(--border);border-radius:0;background:transparent;box-shadow:none}.home-overview .progress-panel{grid-column:auto;padding:17px 20px}.home-overview .message-entry{padding:17px 20px}.home-grid{display:grid;grid-template-columns:minmax(360px,1.25fr) minmax(220px,.75fr);gap:12px;align-items:stretch}.home-active-section{margin-bottom:22px}.home-active-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:0 2px 10px;color:#fff;text-shadow:0 2px 14px rgba(16,70,115,.34)}.home-active-heading small{font-weight:700}.home-active-heading h2{margin:2px 0 0;font-size:27px}.home-active-heading .active-count{display:inline-flex;min-height:36px;align-items:center;gap:3px;padding:7px 11px;border-radius:8px;color:#fff;background:#0f4b7d6b;font-size:13px;font-weight:800;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.challenge-heading-actions{display:flex;align-items:center;gap:8px}.home-active-heading .pending-count{display:inline-flex;min-height:36px;align-items:center;gap:5px;padding:7px 11px;border:1px solid rgba(255,255,255,.52);border-radius:8px;color:#704d05;background:#fff2c8;font-size:13px;font-weight:800;text-shadow:none}.home-active-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.home-active-list article{display:grid;grid-template-columns:52px minmax(0,1fr) auto;align-items:center;gap:12px;min-height:108px;padding:14px 16px;border:1px solid var(--border);border-radius:8px;background:var(--surface);box-shadow:var(--shadow)}.home-active-list .challenge-copy em{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.home-active-list .reward{align-self:start}.home-active-list .row-action,.home-active-list .status-chip{grid-column:2 / -1;justify-self:end;min-height:44px}.home-active-list .status-complete{color:#137d45;background:#dff6e9}.featured-task,.progress-panel,.message-entry,.voucher-alert,.challenge-row,.voucher-strip button,.benefit-item,.my-benefits,.profile-summary,.voice-history,.gem-jar-panel,.milestone-panel{border:1px solid var(--border);border-radius:8px;background:var(--surface);box-shadow:var(--shadow)}.featured-task{position:relative;display:grid;min-height:132px;grid-template-columns:58px minmax(0,1fr) auto;grid-template-rows:auto auto 1fr;align-items:center;gap:2px 14px;padding:15px 18px;overflow:hidden}.featured-task:after{content:"";position:absolute;right:-30px;bottom:-52px;width:190px;height:190px;border:30px solid rgba(38,132,255,.08);border-radius:50%}.eyebrow{display:flex;align-items:center;gap:8px;color:var(--theme-action-dark);font-weight:800}.featured-task .eyebrow{grid-column:2;grid-row:1;font-size:13px}.task-icon{display:grid;width:56px;height:56px;grid-column:1;grid-row:1 / 4;margin:0;place-items:center;border-radius:8px;color:#e38a1b;background:#fff2c7}.task-icon svg{width:34px;height:34px}.featured-task h2{grid-column:2;grid-row:2;margin:0;font-size:21px}.featured-task p{display:-webkit-box;grid-column:2;grid-row:3;max-width:430px;margin:2px 0 0;overflow:hidden;color:#5c7185;font-size:13px;-webkit-box-orient:vertical;-webkit-line-clamp:2}.recommendation-reason{display:block;color:var(--theme-action-dark);font-weight:800}.primary-command,.secondary-command,.row-action{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:0 20px;border-radius:8px;font-weight:800}.primary-command,.row-action{color:#fff;background:var(--theme-action)}.primary-command:hover,.row-action:hover{background:var(--theme-action-dark)}.featured-task .primary-command{position:static;z-index:1;grid-column:3;grid-row:1 / 4;min-height:44px;padding-inline:15px}.featured-actions{z-index:1;display:grid;grid-column:3;grid-row:1 / 4;gap:6px;min-width:108px}.featured-actions .primary-command,.featured-actions .secondary-command{grid-column:auto;grid-row:auto;min-height:44px;padding-inline:12px;white-space:nowrap}.featured-empty .task-icon{color:#15925b;background:#ddf7e9}.secondary-command{color:var(--theme-action-dark);background:#eff7ff;border:1px solid #80b8f5}.home-side{display:grid;grid-template-columns:1fr;gap:8px}.progress-panel{grid-column:span 2;padding:24px}.progress-panel>div:first-child{display:flex;align-items:center;justify-content:space-between}.progress-panel small{color:#67819a;font-weight:700}.progress-panel strong{color:var(--theme-action-dark);font-size:26px}.progress-panel p{margin:12px 0 0;color:#60758a}.progress-summary{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 16px;margin-top:10px;color:#60758a;font-size:14px;font-weight:800}.progress-track{height:12px;margin-top:13px;overflow:hidden;border-radius:8px;background:#dceaf4}.progress-track span{display:block;height:100%;border-radius:inherit;background:var(--theme-action);transition:width .35s ease}.message-entry,.voucher-alert{display:flex;min-height:126px;align-items:center;gap:15px;padding:20px;color:#183b5d;text-align:left}.message-entry>span:first-child,.voucher-alert>svg{flex:0 0 auto}.message-entry>span:first-child{display:grid;width:48px;height:48px;place-items:center;border-radius:50%;color:#fff;background:var(--theme-action)}.message-entry>span:nth-child(2),.voucher-alert>span{flex:1;min-width:0}.message-entry strong,.message-entry small,.voucher-alert strong,.voucher-alert small{display:block}.message-entry small,.voucher-alert small{margin-top:5px;color:#6d8296}.voucher-alert{color:#5f4600;background:#fff7d9;border-color:#eed17a}.voucher-alert>svg{color:#e49a10}.milestone-alert{color:#174f79;background:#e9f6ff;border-color:#9ecff2}.milestone-alert>svg{color:var(--theme-action)}.expiry-alert{display:flex;width:100%;min-height:72px;align-items:center;gap:12px;padding:14px 18px;border:1px solid #efb55a;border-radius:8px;color:#684208;background:#fff3d5;text-align:left}.expiry-alert span{min-width:0}.expiry-alert strong,.expiry-alert small{display:block}.expiry-alert small{margin-top:3px;color:#8a672b}.benefits-alert{color:#245271;background:#eef8ff;border-color:#b6d8ee}.benefits-alert small{color:#607d93}.benefits-alert>svg:last-child{margin-left:auto}.growth-alert{color:#245271;background:#eef8ff;border-color:#b6d8ee}.growth-alert small{color:#607d93}.growth-alert>svg:first-child{color:#e39a12}.growth-alert>svg:last-child{margin-left:auto}.section-heading{display:flex;align-items:flex-end;justify-content:space-between;margin:0 0 20px;color:#fff;text-shadow:0 2px 14px rgba(22,63,100,.3)}.section-heading h1{margin-bottom:0}.view-section-heading{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:end;gap:16px}.back-home{display:inline-flex;min-width:90px;min-height:44px;align-items:center;justify-content:center;gap:3px;border:1px solid rgba(255,255,255,.62);border-radius:8px;color:#174b76;background:#fffffff0;font-weight:800;text-shadow:none}.feature-view{animation:feature-view-in .2s ease-out both}@keyframes feature-view-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}.title-chip,.rest-button{padding:10px 16px;border-radius:8px;color:#174b76;background:#ffffffe6;font-weight:800;text-shadow:none}.rest-button{border:1px solid rgba(255,255,255,.65)}.segmented-control{display:flex;gap:6px;width:max-content;max-width:100%;margin-bottom:15px;padding:5px;overflow-x:auto;border-radius:8px;background:#ffffffde}.segmented-control button{min-width:100px;padding:10px 14px;border-radius:6px;color:#577087;background:transparent;font-weight:700;white-space:nowrap}.segmented-control button.active{color:#fff;background:var(--theme-action)}.category-control{margin-top:-7px;background:#ffffffb8}.category-control button{min-width:92px;padding-block:8px;font-size:14px}.reward-sections{margin-bottom:18px}.reward-sections button{display:inline-flex;align-items:center;justify-content:center;gap:7px}.challenge-list{display:grid;gap:10px}.challenge-row{display:grid;grid-template-columns:58px minmax(220px,1fr) 90px 150px;min-height:92px;align-items:center;gap:16px;padding:14px 18px}.challenge-icon{display:grid;width:54px;height:54px;place-items:center;border-radius:8px;color:var(--theme-action-dark);background:#e6f3ff}.habit-emoji{display:grid;width:100%;height:100%;place-items:center;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;font-size:30px;line-height:1}.task-icon .feature-emoji{font-size:43px}.challenge-copy strong,.challenge-copy small,.challenge-copy em{display:block}.challenge-copy small{color:#73899d}.challenge-copy strong{margin:3px 0;font-size:19px}.challenge-copy em{color:#60768b;font-size:14px;font-style:normal}.reward{display:flex;align-items:center;gap:5px;color:#176bd5;font-weight:800}.status-chip{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:36px;padding:6px 12px;border-radius:8px;color:#9b690a;background:#fff2c8;font-weight:700}.challenge-empty{display:grid;min-height:220px;place-items:center;align-content:center;gap:14px;padding:30px;border:1px solid var(--border);border-radius:8px;color:#527189;background:var(--surface);text-align:center;box-shadow:var(--shadow)}.challenge-empty>svg{color:var(--theme-action)}.gem-layout{display:grid;grid-template-columns:minmax(240px,.55fr) minmax(0,1.45fr);gap:20px}.gem-jar-panel{display:grid;min-height:320px;place-items:center;background:#e5f7ffed}.jar{position:relative;display:flex;width:min(220px,68%);aspect-ratio:.82;align-items:center;justify-content:center;overflow:hidden;border:8px solid rgba(255,255,255,.86);border-top-width:19px;border-radius:18px 18px 54px 54px;background:#85d7ff66;box-shadow:inset 0 0 0 3px #2184c947,0 15px 26px #2c6f9d29}.jar:before{content:"";position:absolute;top:-16px;left:12%;width:76%;height:28px;border-radius:8px;background:#b9783d;box-shadow:inset 0 -5px #59341626}.jar-shine{position:absolute;top:18%;left:12%;width:14px;height:42%;border-radius:8px;background:#ffffffa6}.gem-pile{position:absolute;top:43%;right:7%;bottom:5%;left:7%;display:flex;flex-wrap:wrap-reverse;align-content:flex-start;justify-content:center;gap:3px}.gem-pile i{width:30px;height:27px;clip-path:polygon(50% 0,95% 32%,79% 100%,21% 100%,5% 32%);background:#1685ef;border:3px solid #75ceff}.jar>strong{position:relative;z-index:2;padding:9px 15px;border-radius:8px;color:#0872dd;background:#fff;font:800 32px DIN Alternate,Noto Sans SC,sans-serif;box-shadow:0 7px 18px #145d9329}.jar>strong small{margin-left:4px;font-size:17px}.milestone-panel{padding:24px}.milestone-path{display:grid;grid-template-columns:repeat(4,1fr);position:relative;gap:8px}.milestone-path:before{content:"";position:absolute;top:32px;left:10%;right:10%;height:5px;background:#d5e4ee}.milestone{position:relative;z-index:1;display:grid;justify-items:center;text-align:center}.milestone>span{display:grid;width:64px;height:64px;place-items:center;border:5px solid #fff;border-radius:50%;color:#9babba;background:#e5edf2;box-shadow:0 5px 12px #25567921}.milestone.unlocked>span{color:#fff;background:var(--theme-action)}.milestone strong{margin-top:10px}.milestone small{margin-top:6px;color:#6f8294}.next-progress{margin-top:38px;padding:20px;border-radius:8px;background:#eff8ff}.next-progress strong,.next-progress small{display:block}.next-progress small{margin-top:5px;color:#60788e}.weekly-progress{margin-top:18px;padding:18px;border:1px solid #d3e6f5;border-radius:8px;background:#f7fbff}.weekly-progress strong,.weekly-progress small{display:block}.weekly-progress small{margin-top:4px;color:#60788e}.voucher-strip{display:flex;gap:12px;margin-bottom:14px}.voucher-strip button{display:flex;min-width:230px;align-items:center;gap:12px;padding:14px 18px;color:#235271;text-align:left}.voucher-strip button.active{border:2px solid var(--theme-action)}.voucher-strip small,.voucher-strip strong{display:block}.voucher-strip strong{margin-top:3px;font-size:22px}.benefit-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(270px,.5fr);gap:18px}.catalog-grid{display:grid;grid-template-columns:repeat(2,minmax(260px,1fr));gap:12px}.benefit-item{display:grid;grid-template-columns:56px 1fr;gap:13px;min-height:165px;padding:17px}.benefit-item.selected{outline:3px solid var(--accent)}.benefit-icon{display:grid;width:54px;height:54px;place-items:center;border-radius:8px;color:#1f78d3;background:#e5f3ff}.benefit-item strong{display:block;font-size:18px}.benefit-item p{min-height:38px;margin:5px 0;color:#64798c;font-size:14px}.benefit-item small{color:#7a8da0}.benefit-item .row-action{grid-column:1 / -1;justify-self:stretch}.my-benefits{padding:20px}.reward-owned{width:min(820px,100%);margin:0 auto}.reward-catalog-grid{grid-template-columns:repeat(3,minmax(240px,1fr))}.my-benefits>article{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:17px 0;border-bottom:1px solid #e1ebf2}.my-benefits strong,.my-benefits small{display:block}.my-benefits small{margin-top:5px;color:#738799}.my-benefits article button{padding:9px 15px;border-radius:8px;color:#fff;background:var(--theme-action);font-weight:800}.empty-copy{color:#748899}.profile-view,.reward-center{height:calc(var(--app-viewport-height, 100vh) - 134px);min-height:0;overflow:hidden}.profile-view{display:block}.reward-center{display:grid;grid-template-rows:auto minmax(0,1fr)}.profile-view>.profile-layout{height:100%}.profile-layout{display:grid;min-height:0;grid-template-columns:minmax(300px,.72fr) minmax(0,1.28fr);grid-template-rows:auto minmax(0,1fr);gap:18px;overflow:hidden}.profile-summary{display:flex;min-height:150px;align-items:center;gap:18px;padding:24px}.profile-layout>.profile-summary{grid-column:1 / -1}.profile-summary h2{margin:0 0 4px;font-size:27px}.profile-summary p{margin:0;color:#698096}.edit-avatar-button{display:inline-flex;min-height:44px;align-items:center;gap:6px;margin-left:auto;padding:0 12px;border:1px solid #9cc8eb;border-radius:8px;color:var(--theme-action-dark);background:#edf7ff;font-weight:800;white-space:nowrap}.guide-replay-button{margin-left:0}.profile-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;text-shadow:none}.voice-history,.growth-stats,.reward-content-scroll{min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.voice-history{padding:20px}.message-entry.compact{min-height:82px;margin:14px 0;box-shadow:none}.voice-row{display:grid;grid-template-columns:36px minmax(60px,1fr) 48px minmax(118px,auto);align-items:center;gap:10px;min-height:58px;border-top:1px solid #e1ebf2}.voice-row button{display:grid;width:30px;height:30px;place-items:center;border-radius:50%;color:#fff;background:var(--theme-action)}.voice-row button.playing{background:#22a45d}.mini-wave{height:18px;background:repeating-linear-gradient(90deg,#83c2ff 0 3px,transparent 3px 7px);opacity:.8}.voice-row .mini-wave.playing{animation:voice-pulse .8s ease-in-out infinite alternate}@keyframes voice-pulse{to{opacity:.45;transform:scaleY(.7)}}.voice-meta{display:grid;justify-items:end;gap:2px}.voice-row .voice-timestamp{color:#71869a;font-size:11px;font-weight:700;white-space:nowrap}.voice-row .voice-status{color:#1f9a55;font-weight:700}.reward-content-scroll{padding:2px 4px 10px 0}.avatar-chooser{grid-column:1 / -1;padding:22px;border:1px solid var(--border);border-radius:8px;background:var(--surface);box-shadow:var(--shadow)}.avatar-picker-layer{z-index:45}.avatar-picker-panel{width:min(920px,94vw);max-height:88vh;overflow-x:hidden;overflow-y:auto}.avatar-picker-close{display:grid;width:42px;height:42px;flex:0 0 42px;place-items:center;border:1px solid #a9c9e4;border-radius:50%;color:var(--theme-action-dark);background:#edf7ff}.avatar-picker-close:hover{background:#dcefff}.avatar-chooser-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:18px}.avatar-chooser-heading small,.avatar-chooser-heading span{color:#6d8296;font-weight:700}.avatar-chooser-heading h2{margin:3px 0 0;font-size:24px}.avatar-options{display:grid;width:100%;grid-template-columns:repeat(10,minmax(0,1fr));gap:12px}.avatar-options button{position:relative;display:grid;min-width:0;gap:7px;justify-items:center;padding:8px 5px 10px;border:2px solid transparent;border-radius:8px;color:#526b80;background:#f0f6fb;font-size:12px;font-weight:700}.avatar-options button:hover{border-color:#9cc8ff;background:#fff}.avatar-options button.current{border-color:var(--theme-action);color:var(--theme-action-dark);background:#e7f3ff}.avatar-options img{width:min(72px,100%);aspect-ratio:1;object-fit:cover;border-radius:50%}.avatar-options .custom-avatar-option{min-height:92px;color:var(--theme-action-dark)}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.avatar-options button>span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.avatar-options i{position:absolute;top:4px;right:4px;display:grid;width:24px;height:24px;place-items:center;border:2px solid #fff;border-radius:50%;color:#fff;background:var(--theme-action)}.modal-layer{position:fixed;z-index:30;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;padding:24px;background:#102d4675;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px)}.voice-panel,.theme-picker{position:relative;width:min(760px,94vw);max-height:90vh;overflow:auto;border-radius:8px;background:#f5fbff;box-shadow:0 24px 70px #0c2e484d}.binding-panel{display:grid;width:min(460px,94vw);gap:12px;padding:32px;border-radius:8px;color:#173b5a;background:#f7fbff;box-shadow:0 24px 70px #0c2e484d}.first-entry-panel{position:relative}.binding-close{position:absolute;top:12px;right:12px}.binding-panel>svg{color:var(--theme-action)}.binding-panel small{color:#6c8193;font-weight:700}.binding-panel h2{margin:0;font-size:29px}.binding-panel p{margin:0 0 6px;color:#60788d}.binding-panel label{font-weight:700}.binding-panel input{width:100%;height:48px;padding:0 13px;border:1px solid #a8c8e4;border-radius:8px;color:#173b5a;background:#fff}.binding-panel .primary-command{margin-top:5px}.binding-panel .binding-error{margin:0;color:#a92835;font-weight:700}.binding-panel input{text-transform:uppercase;letter-spacing:4px;font-size:22px;font-weight:800;text-align:center}.demo-entry-button{display:flex;min-height:52px;align-items:center;justify-content:center;gap:8px;border-radius:8px;color:#fff;background:#25a86b;font-weight:900}.binding-divider{display:flex;align-items:center;gap:12px;color:#7b8e9e;font-size:13px;font-weight:700}.binding-divider:before,.binding-divider:after{content:"";height:1px;flex:1;background:#ccdbe7}.binding-help{margin-bottom:0!important;font-size:14px}.guide-layer{position:fixed;z-index:120;top:0;right:0;bottom:0;left:0;pointer-events:none}.guide-spotlight{position:fixed;z-index:1;border:4px solid #ffd24d;border-radius:12px;box-shadow:0 0 0 9999px #08233ab8,0 0 0 8px #ffd24d38;transition:left .24s ease,top .24s ease,width .24s ease,height .24s ease,opacity .18s ease}.guide-card{position:fixed;z-index:2;left:50%;bottom:max(18px,env(safe-area-inset-bottom));display:grid;width:min(620px,calc(100vw - 32px));gap:11px;padding:22px;border:2px solid rgba(255,255,255,.9);border-radius:8px;color:#173b5a;background:#f7fbff;box-shadow:0 24px 70px #031d326b;transform:translate(-50%);pointer-events:auto}.guide-card-top{display:flex;align-items:center;justify-content:space-between;gap:16px;color:#176bff;font-size:13px;font-weight:900}.guide-card-top button{padding:6px 10px;border-radius:8px;color:#667c8f;background:#e7eef4;font-weight:800}.guide-progress{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}.guide-progress i{height:5px;border-radius:5px;background:#d7e4ee}.guide-progress i.active{background:#176bff}.guide-card h2{margin:2px 0 0;font-size:27px}.guide-card p{margin:0;color:#536d82;font-size:17px;line-height:1.65}.guide-start-voice{display:flex;min-height:52px;align-items:center;justify-content:center;gap:9px;border-radius:8px;color:#fff;background:#176bff;font-weight:900}.guide-controls{display:flex;align-items:center;justify-content:space-between;gap:14px}.guide-audio-actions,.guide-navigation{display:flex;align-items:center;gap:8px}.guide-audio-actions button{display:grid;width:44px;height:44px;place-items:center;padding:0;border:1px solid #a8c9e4;border-radius:50%;color:#176bff;background:#eaf4ff}.guide-navigation button{min-height:44px;padding:0 15px;border-radius:8px;color:#41617a;background:#e8eff5;font-weight:800}.guide-navigation .guide-next{min-width:130px;color:#fff;background:#176bff}.install-guide-layer{z-index:70}.install-guide{position:relative;display:grid;width:min(430px,92vw);gap:12px;padding:30px;border-radius:8px;color:#173b5a;background:#f7fbff;box-shadow:0 24px 70px #0c2e484d;text-align:center}.install-guide h2,.install-guide p{margin:0}.install-guide p{color:#60788d;line-height:1.65}.install-guide>small{color:#3977a8;font-weight:800}.install-guide-icon{display:grid;place-items:center;width:68px;height:68px;margin:0 auto;border-radius:8px;color:#fff;background:var(--theme-action)}.install-guide-close{position:absolute;top:12px;right:12px}.install-steps{display:flex;align-items:center;gap:10px;padding:13px 15px;border:1px solid #b9d8ef;border-radius:8px;color:#245d89;background:#eaf5ff;text-align:left;font-weight:700}.install-steps svg{flex:0 0 auto}.install-later{border:0;color:#60788d;background:transparent;font-weight:700}.growth-stats{display:grid;gap:16px;padding:22px;border:1px solid var(--border);border-radius:8px;background:var(--surface);box-shadow:var(--shadow)}.growth-stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.growth-stat-grid article{display:grid;min-width:0;gap:5px;padding:18px;border:1px solid var(--theme-border);border-radius:8px;background:#ffffffc2}.growth-stat-grid svg{color:var(--theme-action)}.growth-stat-grid strong{font-size:28px;color:var(--theme-text)}.growth-stat-grid small{color:var(--theme-muted);font-weight:700}.habit-stat-list{display:grid;gap:8px}.habit-stat-list article{display:flex;min-width:0;align-items:center;justify-content:space-between;gap:14px;padding:13px 16px;border:1px solid var(--theme-border);border-radius:8px;background:#ffffffb8}.habit-stat-list article span{display:grid;min-width:0;gap:4px}.habit-stat-list article small{color:var(--theme-muted)}.habit-stat-list article b{flex:none;color:var(--theme-action);font-size:19px}.daily-limit-copy{color:var(--theme-action)!important;font-weight:800}.privacy-layer{z-index:130}.privacy-panel{display:grid;width:min(680px,94vw);max-height:min(760px,92vh);gap:12px;overflow-y:auto;padding:30px;border-radius:8px;color:#173b5a;background:#f7fbff;box-shadow:0 24px 70px #0c2e484d}.privacy-panel>small{color:var(--theme-action);font-weight:800}.privacy-panel h2{margin:0;font-size:30px}.privacy-copy{display:grid;gap:10px;padding:16px;border:1px solid var(--theme-border);border-radius:8px;background:#fff}.privacy-copy p{margin:0;color:#516b80;line-height:1.72}.guardian-consent{display:flex;align-items:flex-start;gap:10px;padding:10px 2px;color:#284a64;font-weight:800}.guardian-consent input{width:20px;height:20px;flex:none;margin-top:1px;accent-color:var(--theme-action)}.privacy-panel .primary-command{width:100%}.privacy-version{margin:0;color:#7a8c9b;font-size:13px;text-align:center}.pairing-spinner{animation:pairing-spin .9s linear infinite}@keyframes pairing-spin{to{transform:rotate(360deg)}}.voice-panel{display:grid;min-height:560px;justify-items:center;align-content:center;padding:38px}.voice-panel h2{margin:12px 0 20px;font-size:31px}.private-note{display:flex;align-items:center;gap:6px;color:#6c8193}.icon-button{display:grid;width:42px;height:42px;place-items:center;border-radius:50%;color:#41617b;background:#eaf4fb;font-size:27px}.close-button{position:absolute;top:20px;right:20px}.waveform{display:flex;width:100%;height:130px;align-items:center;justify-content:center;gap:4px;overflow:hidden}.waveform i{width:5px;height:var(--bar);border-radius:4px;background:#86c7ff}.waveform.active i{background:var(--theme-action);animation:wave .65s ease-in-out var(--delay) infinite alternate}@keyframes wave{0%{transform:scaleY(.35)}to{transform:scaleY(1)}}.hold-record{display:grid;width:108px;aspect-ratio:1;place-items:center;border:8px solid rgba(38,132,255,.16);border-radius:50%;color:#fff;background:var(--theme-action);box-shadow:0 0 0 14px #2684ff14;touch-action:none;-webkit-user-select:none;user-select:none}.hold-record.recording{background:#ee4d59}.voice-panel>strong{margin-top:26px;font-size:21px}.record-time{margin-top:7px;color:var(--theme-action-dark);font-size:18px;font-weight:800}.subtle{color:#687f93}.error-text{color:#c43e46;font-weight:700}.preview-row{display:flex;align-items:center;gap:16px;margin:8px 0 28px}.round-play{display:grid;width:60px;aspect-ratio:1;place-items:center;border-radius:50%;color:#fff;background:var(--theme-action)}.icon-button,.avatar-picker-close,.child-switch-trigger,.voice-row button,.round-play{padding:0;line-height:0;align-items:center;justify-items:center}.icon-button>svg,.avatar-picker-close>svg,.child-switch-trigger>svg,.voice-row button>svg,.round-play>svg{display:block}.voice-row button>svg,.round-play>svg{transform:translate(1px)}.voice-actions{display:grid;grid-template-columns:1fr 1.4fr;width:min(560px,100%);gap:14px}.cancel-record{margin-top:14px;padding:9px 18px;border-radius:8px;color:#a92835;background:#ffe8ea;font-weight:800}.upload-progress{width:min(560px,100%);height:9px;margin-top:18px;overflow:hidden;border-radius:8px;background:#dceaf4}.upload-progress span{display:block;height:100%;border-radius:inherit;background:var(--theme-action);transition:width .18s linear}.theme-picker{padding:24px}.child-switcher{width:min(520px,94vw);padding:24px;border-radius:8px;color:#173b5a;background:#f7fbff;box-shadow:0 24px 70px #0c2e484d}.child-switch-list{display:grid;gap:10px}.child-switch-list button{display:grid;grid-template-columns:58px minmax(0,1fr) 24px;min-height:78px;align-items:center;gap:13px;padding:10px 14px;border:2px solid transparent;border-radius:8px;color:#21445f;background:#eaf4fc;text-align:left}.child-switch-list button.current{border-color:var(--theme-action);background:#fff}.child-switch-list img{width:56px;aspect-ratio:1;object-fit:cover;border:2px solid #fff;border-radius:50%}.child-switch-list strong,.child-switch-list small{display:block}.child-switch-list strong{font-size:19px}.child-switch-list small{margin-top:3px;color:#6a8092}.child-switch-list svg{color:var(--theme-action)}.switch-error{margin:12px 0 0;color:#a92835;font-weight:700}.switch-profile-entry{width:100%;margin-top:16px}.picker-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.picker-heading small{color:#73889c;font-weight:700}.picker-heading h2{margin:2px 0 0;font-size:29px}.theme-options{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.theme-options article{display:grid;grid-template-columns:48px 1fr;align-items:center;gap:12px;min-height:154px;padding:18px;border:2px solid transparent;border-radius:8px;color:#173c5b}.theme-options article.current{border-color:var(--theme-action)}.theme-options strong,.theme-options small{display:block}.theme-options strong{font-size:20px}.theme-options small{margin-top:4px;color:#557087}.theme-options button,.theme-options article>span{grid-column:1 / -1;display:flex;min-height:42px;align-items:center;justify-content:center;gap:7px;border-radius:8px;color:#fff;background:#2684ff;font-weight:800}.theme-option-ocean{background:#dff4ff}.theme-option-ice{background:#eefbff}.theme-option-fairy{background:#fff0f4;box-shadow:inset 5px 0 #ff6f74,inset 10px 0 #ffd345,inset 15px 0 #54c986}.theme-option-fairy button{background:#f24f79}.theme-option-forest{background:#e8f7e9}.theme-option-forest button,.theme-option-forest>span{background:#228b4e!important}.confirm-panel{display:grid;width:min(480px,94vw);justify-items:center;gap:10px;padding:34px;border-radius:8px;color:#173b5a;background:#f7fbff;box-shadow:0 24px 70px #0c2e484d;text-align:center}.confirm-panel>svg{color:var(--theme-action)}.confirm-panel small{color:#6c8193;font-weight:800}.confirm-panel h2{margin:0;font-size:29px}.confirm-panel p{margin-bottom:8px;color:#60788d}.confirm-cost{display:flex;align-items:center;gap:8px;padding:12px 16px;border-radius:8px;color:#71500b;background:#fff0bd;font-weight:800}.milestone-celebration{position:fixed;z-index:100;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;overflow:hidden;padding:24px;color:#fff;background:#042748eb;isolation:isolate}.milestone-celebration:before{content:"";position:absolute;z-index:-1;top:-20%;right:-20%;bottom:-20%;left:-20%;background:radial-gradient(circle at 50% 46%,rgba(255,255,255,.26) 0 8%,transparent 32%),linear-gradient(145deg,#096fc6,#0b9bd4);animation:celebration-glow 1.8s ease-in-out infinite alternate}.milestone-celebration>section{position:relative;z-index:3;display:grid;width:min(660px,92vw);justify-items:center;gap:12px;text-align:center;text-shadow:0 3px 20px rgba(0,35,67,.34);animation:celebration-arrive .62s cubic-bezier(.2,.8,.25,1.15) both}.milestone-celebration>section>svg{color:#ffd24d;filter:drop-shadow(0 8px 16px rgba(113,74,0,.28));animation:celebration-gem 1.15s ease-in-out infinite alternate}.milestone-celebration section small{font-size:16px;font-weight:800}.milestone-celebration section h1{max-width:100%;margin:0;font-size:clamp(36px,7vw,72px);line-height:1.08;overflow-wrap:anywhere}.milestone-celebration section p{margin:0;font-size:20px;font-weight:700}.celebration-rewards{display:flex;width:min(100%,560px);flex-wrap:wrap;align-items:center;justify-content:center;gap:9px 14px;margin:8px 0;padding:12px 18px;border:1px solid rgba(255,255,255,.45);border-radius:8px;background:#ffffff2b;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);font-weight:800}.celebration-rewards span{min-width:0;overflow-wrap:anywhere}.milestone-celebration .primary-command{min-width:170px;margin-top:8px;color:#16415f;background:#fff}.celebration-spark{--spark-index: 1;position:absolute;z-index:1;left:calc(var(--spark-index) * 2.37%);top:calc(var(--spark-index) * 1.83%);width:14px;height:14px;background:#fff;opacity:.85;animation:ocean-bubble calc(2.2s + var(--spark-index) * 18ms) linear infinite;animation-delay:calc(var(--spark-index) * -.07s)}.celebration-ocean .celebration-spark{border:2px solid rgba(255,255,255,.92);border-radius:50%;background:#63d6ff52}.celebration-ice:before{background:radial-gradient(circle at 50% 46%,rgba(255,255,255,.44) 0 7%,transparent 30%),linear-gradient(145deg,#d8f5ff,#278bc7)}.celebration-ice .celebration-spark{width:12px;height:20px;background:#fff;clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%);animation-name:ice-crystal}.celebration-fairy:before{background:radial-gradient(circle at 50% 46%,rgba(255,255,255,.32) 0 7%,transparent 30%),linear-gradient(135deg,#ef526f 0,#ef526f 24%,#f5a92c 24%,#f5a92c 48%,#27aa6d 48%,#27aa6d 72%,#168de0 72%)}.celebration-fairy .celebration-spark{background:hsl(calc(var(--spark-index) * 47deg),88%,62%);clip-path:polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 94%,50% 72%,21% 94%,32% 57%,2% 35%,39% 35%);animation-name:fairy-star}.celebration-forest:before{background:radial-gradient(circle at 50% 46%,rgba(255,226,98,.25) 0 8%,transparent 31%),linear-gradient(145deg,#194f35,#2c9d5c)}.celebration-forest .celebration-spark{width:12px;height:24px;border-radius:90% 0;background:#9fe06e;animation-name:forest-leaf}@keyframes celebration-arrive{0%{opacity:0;transform:translateY(28px) scale(.86)}to{opacity:1;transform:none}}@keyframes celebration-glow{0%{transform:scale(1);filter:brightness(.95)}to{transform:scale(1.06);filter:brightness(1.08)}}@keyframes celebration-gem{0%{transform:translateY(0) scale(1)}to{transform:translateY(-8px) scale(1.08)}}@keyframes ocean-bubble{0%{transform:translateY(110vh) scale(.5);opacity:0}20%{opacity:.9}to{transform:translateY(-120vh) scale(1.35);opacity:0}}@keyframes ice-crystal{0%{transform:translateY(-110vh) rotate(0);opacity:0}18%{opacity:.95}to{transform:translateY(120vh) rotate(360deg);opacity:0}}@keyframes fairy-star{0%{transform:translateY(-110vh) rotate(0) scale(.65);opacity:0}15%{opacity:1}to{transform:translateY(120vh) rotate(620deg) scale(1.2);opacity:0}}@keyframes forest-leaf{0%{transform:translate(-35vw,-110vh) rotate(0);opacity:0}15%{opacity:.9}to{transform:translate(35vw,120vh) rotate(540deg);opacity:0}}.toast{position:fixed;z-index:50;left:50%;bottom:24px;display:flex;align-items:center;gap:8px;max-width:calc(100vw - 40px);padding:13px 20px;transform:translate(-50%);border-radius:8px;color:#fff;background:#153b5c;box-shadow:0 12px 28px #0c2b4440;font-weight:700}.toast-enter-active,.toast-leave-active{transition:opacity .18s ease,transform .18s ease}.toast-enter-from,.toast-leave-to{opacity:0;transform:translate(-50%,12px)}.positive-feedback{position:fixed;z-index:94;left:50%;top:50%;display:flex;width:min(520px,calc(100vw - 32px));min-height:112px;align-items:center;justify-content:center;gap:16px;padding:22px 30px;transform:translate(-50%,-50%);overflow:hidden;border:3px solid rgba(255,255,255,.92);border-radius:8px;color:#fff;background:#1689d8;box-shadow:0 22px 60px #07325652;pointer-events:none}.positive-feedback>svg,.positive-feedback>span:not(.positive-spark){position:relative;z-index:2}.positive-feedback>svg{flex:0 0 auto;color:#ffe261;filter:drop-shadow(0 4px 8px rgba(58,51,0,.2))}.positive-feedback>span:not(.positive-spark){display:grid;min-width:0;gap:4px}.positive-feedback strong{font-size:25px;line-height:1.1}.positive-feedback small{font-size:15px;font-weight:700;line-height:1.35}.positive-reward{background:#16a06b}.positive-confirmed{background:#6264c9}.positive-spark{--spark-index: 1;position:absolute;left:calc(var(--spark-index) * 7.1%);top:calc(var(--spark-index) * 13%);width:8px;height:8px;transform:rotate(45deg) scale(.65);background:#ffffffd1;animation:positive-sparkle .9s ease-in-out infinite alternate;animation-delay:calc(var(--spark-index) * -.08s)}.positive-feedback-enter-active,.positive-feedback-leave-active{transition:opacity .2s ease,transform .3s cubic-bezier(.2,.85,.25,1.2)}.positive-feedback-enter-from,.positive-feedback-leave-to{opacity:0;transform:translate(-50%,-42%) scale(.82)}@keyframes positive-sparkle{0%{opacity:.28;transform:rotate(45deg) scale(.65)}to{opacity:1;transform:rotate(45deg) scale(1.35)}}@media(min-width:901px)and (max-height:850px)and (orientation:landscape){html,body,#app{min-height:0}.app-shell{min-height:var(--app-viewport-height, 100vh)}.topbar{min-height:64px;padding:max(6px,env(safe-area-inset-top)) 24px 6px}.avatar{width:42px}.profile-button strong{font-size:19px}.profile-button small{margin-top:0;font-size:12px}.gem-count,.theme-entry{padding:8px 11px}.main-content{min-height:calc(var(--app-viewport-height, 100vh) - 64px);padding:10px clamp(24px,4vw,48px) 16px}.profile-view,.reward-center{height:calc(var(--app-viewport-height, 100vh) - 90px)}.home-overview{grid-template-columns:minmax(240px,1.05fr) minmax(230px,.85fr) minmax(230px,.72fr);min-height:86px;margin-bottom:10px}.home-overview .welcome-copy{padding:10px 16px}.home-overview .welcome-copy small{display:none}.home-overview .welcome-copy h1{margin:0 0 2px;font-size:25px;line-height:1.08}.home-overview .welcome-copy p{font-size:12px}.progress-panel{padding:11px 16px}.progress-panel strong{font-size:21px}.progress-summary{margin-top:5px;font-size:12px}.progress-track{height:8px;margin-top:7px}.home-overview .message-entry{min-height:0;gap:10px;padding:10px 14px}.message-entry>span:first-child{width:42px;height:42px}.message-entry small{margin-top:2px}.home-active-section{margin-bottom:10px}.home-active-heading{align-items:center;margin-bottom:6px}.home-active-heading small{display:none}.home-active-heading h2{margin:0;font-size:21px}.home-active-heading .active-count,.home-active-heading .pending-count{min-height:44px;padding:5px 10px;font-size:12px}.home-active-list{gap:8px}.home-active-list article{grid-template-columns:40px minmax(0,1fr) auto auto;min-height:70px;gap:8px;padding:8px 10px}.home-active-list .challenge-icon{width:40px;height:40px;grid-column:1;grid-row:1}.home-active-list .challenge-icon .habit-emoji{font-size:25px}.home-active-list .challenge-copy{grid-column:2;grid-row:1}.home-active-list .challenge-copy small{font-size:11px}.home-active-list .challenge-copy strong{margin:1px 0;font-size:16px}.home-active-list .challenge-copy em{font-size:12px}.home-active-list .reward{grid-column:3;grid-row:1;align-self:center;font-size:12px}.home-active-list .row-action,.home-active-list .status-chip{grid-column:4;grid-row:1;min-height:44px;padding:0 11px;white-space:nowrap}.home-active-section.many-active .home-active-heading{margin-bottom:4px}.home-active-section.many-active .home-active-list{gap:6px 8px}.home-active-section.many-active .home-active-list article{grid-template-columns:34px minmax(0,1fr) auto auto;min-height:52px;padding:5px 8px}.home-active-section.many-active .home-active-list .challenge-icon{width:34px;height:34px}.home-active-section.many-active .home-active-list .challenge-icon svg{width:22px;height:22px}.home-active-section.many-active .home-active-list .challenge-icon .habit-emoji{font-size:22px}.home-active-section.many-active .challenge-copy small,.home-active-section.many-active .challenge-copy em{display:none}.home-active-section.many-active .challenge-copy strong{margin:0;font-size:15px}.home-active-section.many-active .home-active-list .row-action,.home-active-section.many-active .home-active-list .status-chip{min-height:44px;padding:0 9px;font-size:13px}.home-view{min-height:calc(var(--app-viewport-height, 100vh) - 90px)}.home-view.balanced-home{display:flex;flex-direction:column}.home-view.balanced-home .home-grid{margin-top:auto}.home-grid{grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);gap:10px;align-items:stretch}.featured-task{display:grid;min-height:126px;grid-template-columns:52px minmax(0,1fr) auto;grid-template-rows:auto auto 1fr;align-items:center;gap:2px 12px;padding:12px 16px}.featured-task:after{width:110px;height:110px;border-width:18px}.featured-task .eyebrow{grid-column:2;grid-row:1;font-size:13px}.featured-task .task-icon{width:50px;height:50px;grid-column:1;grid-row:1 / 4;margin:0}.featured-task .task-icon svg{width:30px;height:30px}.featured-task .task-icon .feature-emoji{font-size:31px}.featured-task h2{grid-column:2;grid-row:2;margin:0;font-size:20px}.featured-task p{display:-webkit-box;grid-column:2;grid-row:3;margin:2px 0 0;overflow:hidden;font-size:13px;-webkit-box-orient:vertical;-webkit-line-clamp:2}.featured-task .primary-command{position:static;grid-column:3;grid-row:1 / 4;min-height:40px;padding:0 14px}.featured-task{align-self:stretch}.featured-actions{min-width:104px}.featured-actions .primary-command,.featured-actions .secondary-command{grid-column:auto;grid-row:auto;min-height:44px;padding-inline:10px;font-size:13px}.home-side{grid-template-columns:1fr;gap:8px}.voucher-alert,.expiry-alert{min-height:59px;padding:10px 13px}.voucher-alert small,.expiry-alert small{margin-top:1px;font-size:12px}.home-active-section.many-active+.home-grid .featured-task{min-height:108px;padding-block:9px}.home-active-section.many-active+.home-grid .voucher-alert,.home-active-section.many-active+.home-grid .expiry-alert{min-height:50px;padding-block:7px}}@media(max-width:900px){.topbar{padding-inline:16px}.profile-button small{display:none}.theme-entry{padding-inline:11px}.main-content{padding:20px 16px 28px}.home-grid,.gem-layout,.benefit-layout{grid-template-columns:1fr}.profile-view,.reward-center{height:calc(var(--app-viewport-height, 100vh) - 124px)}.profile-layout{grid-template-columns:minmax(260px,.8fr) minmax(0,1.2fr)}.home-active-list,.home-side,.home-overview{grid-template-columns:1fr}.home-overview .progress-panel,.home-overview .message-entry{grid-column:auto;border-top:1px solid var(--border);border-left:0}.catalog-grid{grid-template-columns:1fr}.reward-catalog-grid{grid-template-columns:repeat(2,minmax(220px,1fr))}.challenge-row{grid-template-columns:52px 1fr 90px}.challenge-row>:last-child{grid-column:2 / -1;justify-self:stretch}.milestone-path{grid-template-columns:repeat(2,1fr);gap:26px 8px}.milestone-path:before{display:none}.next-progress{margin-top:35px}.avatar-options{grid-template-columns:repeat(5,minmax(0,1fr))}.view-section-heading{grid-template-columns:auto minmax(0,1fr);align-items:center}.view-section-heading>:last-child:not(div){grid-column:1 / -1;justify-self:end}.view-section-heading .profile-actions{grid-column:1 / -1;justify-self:stretch}.demo-banner small{display:none}}@media(max-width:580px){.topbar{min-height:66px}.profile-button strong{font-size:18px}.child-switch-trigger{width:34px;height:34px}.avatar{width:40px}.topbar-actions{gap:6px}.topbar-context{gap:7px}.topbar-context small{display:none}.topbar-context strong{font-size:18px}.topbar-back{min-width:44px;padding:0 8px;font-size:0}.topbar-back svg{width:22px;height:22px}.gem-count,.theme-entry{padding:8px}.theme-entry{font-size:0}.welcome-copy{margin-left:0}.welcome-copy h1,.section-heading h1{font-size:30px}.home-overview .welcome-copy{padding:16px}.featured-task{grid-template-columns:48px minmax(0,1fr);padding:14px}.featured-task .task-icon{width:46px;height:46px}.featured-task .task-icon svg{width:28px;height:28px}.featured-task .primary-command{grid-column:2;grid-row:4;justify-self:stretch;margin-top:8px}.featured-actions{display:grid;grid-template-columns:1fr 1fr;grid-column:2;grid-row:4;min-width:0;margin-top:8px}.featured-actions .primary-command,.featured-actions .secondary-command{grid-column:auto;grid-row:auto;margin:0;padding-inline:8px}.profile-summary{flex-wrap:wrap}.profile-view,.reward-center{height:calc(var(--app-viewport-height, 100vh) - 114px)}.profile-layout{grid-template-columns:1fr;grid-template-rows:auto minmax(110px,.8fr) minmax(130px,1.2fr);gap:10px}.profile-layout>.profile-summary{grid-column:1}.edit-avatar-button{width:100%;justify-content:center;margin-left:0}.voice-row{grid-template-columns:32px minmax(44px,1fr) 40px minmax(106px,auto);gap:7px}.challenge-row{grid-template-columns:48px 1fr}.challenge-row .reward,.challenge-row>:last-child{grid-column:2}.reward-catalog-grid{grid-template-columns:1fr}.reward-sections{width:100%}.reward-sections button{min-width:max-content}.theme-options{grid-template-columns:1fr}.voucher-strip{overflow-x:auto}.profile-actions{max-width:108px}.profile-actions .theme-entry{width:44px;font-size:0}.confirm-panel{padding:26px 20px}.milestone-celebration section h1{font-size:38px}.milestone-celebration section p{font-size:17px}.celebration-rewards{flex-direction:column;padding-inline:12px}.avatar-chooser{padding:16px 12px}.avatar-chooser-heading{align-items:flex-start;flex-direction:column}.avatar-options{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.avatar-options button{padding-inline:3px}.demo-banner{position:relative;top:auto;left:auto;min-height:38px;max-width:none;justify-content:space-between;gap:8px;padding-inline:9px;border-width:0 0 1px;border-radius:0;transform:none}.demo-banner>span{min-width:0}.demo-banner button{flex:none;min-height:30px;padding-inline:8px;font-size:12px}.demo-mode .profile-view,.demo-mode .reward-center{height:calc(var(--app-viewport-height, 100vh) - 152px)}.guide-card{bottom:max(10px,env(safe-area-inset-bottom));gap:8px;padding:16px}.guide-card h2{font-size:22px}.guide-card p{font-size:15px;line-height:1.5}.guide-controls{align-items:stretch;flex-direction:column}.guide-audio-actions{justify-content:center}.guide-navigation{display:grid;grid-template-columns:.7fr 1.3fr}.guide-navigation button{width:100%}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
