:root{--bg:#1a1210;--surface:#261a16;--surface-2:#33231d;--line:#4a332a;--text:#e9c9a4;--muted:#a8876c;--accent:#d98a4a;--accent-text:#1a1210;--leaf:#8a9a4c;--bark:#6b4a35;--danger:#c0604a;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box}html,body{background:var(--bg);color:var(--text);-webkit-tap-highlight-color:transparent;margin:0;font-family:system-ui,-apple-system,PingFang TC,Noto Sans TC,sans-serif;font-size:18px;line-height:1.5}.avatar,.icon,.mood span,.card span,.tree text{filter:saturate(.6)brightness(.85)}button,input,a.primary{font:inherit;color:inherit}button{cursor:pointer;border:1px solid var(--line);background:var(--surface);border-radius:16px;min-height:48px;padding:12px 16px}button:disabled{opacity:.45;cursor:default}button:focus-visible,input:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.primary{background:var(--accent);color:var(--accent-text);border-color:var(--accent);text-align:center;border-radius:16px;padding:12px 20px;font-weight:600;text-decoration:none;display:inline-block}.secondary{background:var(--surface-2)}.danger{border-color:var(--danger);color:var(--danger);background:0 0}.link{color:var(--muted);background:0 0;border:none;min-height:0;padding:8px;text-decoration:underline}.big{padding:16px 28px;font-size:1.2rem}input{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:10px 12px}.screen{max-width:560px;min-height:100dvh;padding:max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));flex-direction:column;gap:16px;margin:0 auto;display:flex}h1{margin:8px 0;font-size:1.5rem}h2{margin:8px 0;font-size:1.3rem}h3{color:var(--muted);margin:8px 0 4px;font-size:1rem}.hint,.small{color:var(--muted);font-size:.85rem}.notice,.gentle{background:var(--surface-2);border:1px solid var(--line);border-radius:12px;padding:12px}.error{color:var(--danger)}.bar{justify-content:space-between;align-items:center;gap:8px;display:flex}.children{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;margin:0;padding:0;list-style:none;display:grid}.child{flex-direction:column;align-items:center;gap:4px;width:100%;padding:20px 12px;display:flex}.child .avatar{font-size:3rem}.child .name{font-size:1.2rem;font-weight:600}.child .status{color:var(--muted);font-size:.8rem}.home-nav{justify-content:center;gap:12px;margin-top:auto;display:flex}.signin{flex-direction:column;gap:12px;display:flex}.progress{gap:4px;display:flex}.pip{background:var(--line);border-radius:50%;width:8px;height:8px}.pip.on{background:var(--accent)}.page{flex-direction:column;gap:12px;animation:1.2s fade;display:flex}@keyframes fade{0%{opacity:0}to{opacity:1}}.answer{flex-direction:column;gap:10px;display:flex}.answer-row,.item-row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.mic{flex:1;padding:16px 20px;font-size:1.1rem}.compact .mic{padding:10px 14px;font-size:.95rem}.mic.recording{border-color:var(--accent);background:var(--surface-2)}.dot{background:var(--accent);border-radius:50%;width:10px;height:10px;animation:2.4s ease-in-out infinite breathe;display:inline-block}@keyframes breathe{50%{opacity:.3}}.icons{flex-wrap:wrap;gap:8px;display:flex}.icon{padding:6px 10px;font-size:1.6rem}.icon.picked,.mood.picked,.card.picked,.chip.on,.tab.on{border-color:var(--accent);background:var(--surface-2)}.moods{grid-template-columns:repeat(3,1fr);gap:10px;display:grid}.mood{flex-direction:column;align-items:center;font-size:.9rem;display:flex}.mood span{font-size:2.2rem}.cards,.choices{flex-direction:column;gap:10px;display:flex}.card{text-align:left;align-items:center;gap:12px;display:flex}.card span{font-size:1.6rem}.type{width:100%}.nav{justify-content:space-between;gap:12px;margin-top:auto;display:flex}.nav button{flex:1}.mission-label{font-size:1.1rem}.worry-box{background:var(--surface-2);border:1px solid var(--line);border-radius:12px;padding:12px;animation:1.5s fade}.goodnight{text-align:center;justify-content:center;align-items:center}.tree{width:min(80vw,320px);height:auto}.leaf{fill:var(--leaf);opacity:.85}.leaf.grow{animation:3s ease-out grow}@keyframes grow{0%{opacity:0;transform:scale(0)}to{opacity:.85;transform:scale(1)}}.surprise-mark{animation:4s fade}.leaf-text{font-size:1.1rem}.parent-surprise{flex-direction:column;align-items:center;gap:8px;display:flex}.memories{flex-direction:column;gap:8px;padding:0;list-style:none;display:flex}.memories li{justify-content:space-between;align-items:center;display:flex}.pin{align-items:stretch}.pin-input{letter-spacing:.6em;text-align:center;font-size:2rem}.tabs,.child-pick{gap:6px;display:flex;overflow-x:auto}.tab,.chip{white-space:nowrap;min-height:40px;padding:8px 12px;font-size:.9rem}.entries{flex-direction:column;gap:12px;padding:0;list-style:none;display:flex}.entry{background:var(--surface);border:1px solid var(--line);border-radius:16px;flex-direction:column;gap:6px;padding:12px;display:flex}.item label{flex-direction:column;gap:4px;display:flex}.mood-bars{flex-direction:column;gap:8px;padding:0;list-style:none;display:flex}.mood-bars li{grid-template-columns:7em 1fr 2em;align-items:center;gap:8px;display:grid}.bar-track{background:var(--surface-2);border-radius:5px;height:10px;overflow:hidden}.bar-fill{background:var(--accent);height:100%;display:block}.settings{flex-direction:column;gap:10px;display:flex}.toggle{align-items:center;gap:10px;display:flex}.toggle input{width:22px;height:22px}.child-settings{flex-direction:column;gap:6px;margin-bottom:16px;display:flex}@media (prefers-reduced-motion:reduce){*,:before,:after{animation:none!important}}
