[hidden]{display:none!important}
:root{--ink:#17313a;--muted:#61747b;--paper:#f7f4ec;--panel:#fffdf8;--teal:#22766f;--teal-dark:#155b57;--teal-soft:#dceee9;--coral:#d87054;--coral-dark:#b9573f;--coral-soft:#f7e2d8;--amber-soft:#fff1cc;--red:#a6423e;--red-soft:#f8dfdc;--line:#e1e5df;--shadow:0 14px 36px rgba(23,49,58,.08);font-family:-apple-system,BlinkMacSystemFont,"PingFang HK","Noto Sans HK","Microsoft JhengHei",sans-serif;color:var(--ink);font-size:19px;line-height:1.6}
*{box-sizing:border-box}html{background:var(--paper)}body{margin:0;background:radial-gradient(circle at 100% 0,#e3efe9 0,transparent 42%),linear-gradient(180deg,#fbfaf6,var(--paper))}
main{max-width:620px;margin:auto;padding:14px 16px calc(40px + env(safe-area-inset-bottom))}
h1{font-size:32px;line-height:1.3;margin:4px 0 8px}h2{font-size:23px;line-height:1.35;margin:0}h3{font-size:20px;margin:14px 0 8px}
p{margin:8px 0}.small{font-size:16px;color:var(--muted)}.muted{color:var(--muted)}.eyebrow{margin:0;color:var(--coral);font-weight:800;font-size:15px;letter-spacing:.04em}
.topbar{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink)}.brand b{display:block;font-size:22px;line-height:1.1}.brand small{display:block;font-size:13px;color:var(--muted)}
.brand-mark{width:44px;height:44px;display:grid;place-items:center;border-radius:14px;color:#fff;font-weight:900;font-size:22px;background:linear-gradient(145deg,var(--coral),var(--coral-dark));box-shadow:0 8px 18px rgba(216,112,84,.28)}.brand-mark.sm{width:34px;height:34px;font-size:17px;border-radius:10px}
button{font:inherit;cursor:pointer;min-height:50px;border-radius:14px;padding:11px 18px;border:0;font-weight:750;color:inherit}button:disabled{opacity:.45;cursor:not-allowed}
.primary{display:block;width:100%;background:var(--teal);color:#fff;margin:14px 0 6px;box-shadow:0 8px 18px rgba(34,118,111,.22)}.primary:active{background:var(--teal-dark)}.primary.big{min-height:60px;font-size:22px}
.secondary{display:block;width:100%;background:var(--teal-soft);color:var(--teal-dark);margin:10px 0}.quiet{background:transparent;color:var(--teal-dark);min-height:40px;padding:6px 10px}
.chip-btn{min-height:40px;padding:6px 14px;border-radius:999px;background:#fff;border:1px solid #cfe0da;color:var(--teal-dark);font-size:16px}
.card{background:rgba(255,253,248,.96);border:1px solid var(--line);border-radius:24px;padding:20px;margin:16px 0;box-shadow:var(--shadow)}.card.soft{background:linear-gradient(135deg,#fff8f1,#eef6f2)}
.card-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}
.notice{padding:12px 16px;border-radius:14px;background:var(--amber-soft);color:#6b4b0f;font-size:16px}
.toast{position:fixed;left:50%;bottom:calc(18px + env(safe-area-inset-bottom));transform:translate(-50%,30px);opacity:0;pointer-events:none;max-width:min(92vw,560px);padding:14px 20px;border-radius:16px;background:var(--ink);color:#fff;font-size:18px;box-shadow:0 12px 30px rgba(0,0,0,.25);transition:.25s;z-index:10}.toast.show{opacity:1;transform:translate(-50%,0)}
/* icons */
.ico{width:52px;height:52px;flex:0 0 auto;display:inline-grid;place-items:center;border-radius:17px;overflow:hidden;background:#e7f3ed}.ico svg{width:100%;height:100%;display:block}.ico.sm{width:36px;height:36px;border-radius:11px}.ico.big{width:74px;height:74px;border-radius:24px}
.i-medication{background:#e5f1cb}.i-blood_pressure{background:#dff0ec}.i-blood_glucose{background:#fbe3dd}.i-walk{background:#f5ddd3}.i-water{background:#dcecf6}.i-practice{background:#e3efe4}.i-voice,.i-reminder{background:#f9e3d9}.i-complete{background:#dceee9}
.i-dot{fill:#f2cbbd;opacity:.75}.i-dot.d2{fill:#a7d4c8}.i-paper{fill:#fffaf1;stroke:#1b6964;stroke-width:2.5}.i-fill{fill:#df765c;stroke:#8f4638;stroke-width:2}.i-fill2{fill:#8cc4b3;stroke:#1b6964;stroke-width:2}.i-screen{fill:#cfe7e1;stroke:#1b6964;stroke-width:2}.i-water{fill:#8fc3e3;stroke:none}
.i-stroke,.i-line,.i-seam,.i-wave,.i-spark{fill:none;stroke:#155a57;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.i-line{stroke-width:2.4}.i-wave{stroke:#61a99d}.i-spark{stroke:#e09a52}.i-check{stroke-width:5}.i-leaf{fill:#b9dcc9;stroke:#1b6964;stroke-width:2.2}
/* welcome */
.hero{position:relative;border-radius:26px;overflow:hidden;box-shadow:var(--shadow);background:#fff}.hero-img{display:block;width:100%;height:210px;object-fit:cover;object-position:center 30%}
.hero-text{padding:16px 20px 20px}.hero h1 span{color:var(--teal)}
.feature-row{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:14px 0}.feature{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;padding:14px 8px;border-radius:18px;background:#fff;border:1px solid var(--line)}.feature b{font-size:15px;line-height:1.35}
.consent{font-size:17px}.consent ul{padding-left:20px;margin:10px 0}.consent li{margin:8px 0}
.check{display:flex;gap:12px;align-items:flex-start;margin:14px 0;font-weight:650}.check input{min-width:28px;height:28px;margin-top:2px;accent-color:var(--teal)}
details summary{cursor:pointer;color:var(--teal-dark);font-weight:700;padding:6px 0}.quiet-details{margin:10px 0}
label{display:block;font-weight:650;margin:14px 0}label.inline{font-size:16px;margin:12px 0 0}
select,input[type=time],input:not([type]),textarea{display:block;width:100%;font:inherit;padding:12px;background:#fff;border:1px solid #c5d3cd;border-radius:12px;margin-top:6px;color:var(--ink)}
/* dashboard */
.greet{display:flex;justify-content:space-between;align-items:center;gap:12px}.greet h1{font-size:30px;margin:2px 0}
.ring{position:relative;width:84px;height:84px;flex:0 0 auto}.ring svg{width:100%;height:100%;transform:rotate(-90deg)}.ring-bg{fill:none;stroke:#e2ebe6;stroke-width:5}.ring-fg{fill:none;stroke:var(--coral);stroke-width:5;stroke-linecap:round;stroke-dasharray:0 200;transition:stroke-dasharray .5s}.ring b{position:absolute;inset:0;display:grid;place-items:center;font-size:19px}
.today{list-style:none;margin:0;padding:0}
.task{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;padding:12px;margin:10px 0;border-radius:20px;background:#fff;border:1px solid var(--line)}
.task-text b{display:block;font-size:22px;line-height:1.2}.task-text small{color:var(--teal);font-size:19px;font-weight:800}
.do-btn{min-width:96px;background:var(--coral);color:#fff;font-size:20px;box-shadow:0 8px 16px rgba(216,112,84,.25)}.done-btn{min-width:96px;background:var(--teal-soft);color:var(--teal-dark)}
.task.done{background:#f3f8f5}.task.done .task-text b{color:var(--muted)}
.empty{display:flex;flex-direction:column;align-items:center;text-align:center;padding:10px 0}.empty p{margin:10px 0 0}
.pill-ok{padding:4px 12px;border-radius:999px;background:var(--teal-soft);color:var(--teal-dark);font-weight:800;font-size:15px}
.moods{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}.moods button{background:transparent;padding:6px 0;display:flex;flex-direction:column;align-items:center;gap:4px;border:2px solid transparent;border-radius:18px}.moods button span{font-size:14px;color:var(--muted)}.moods button[aria-pressed=true]{border-color:var(--teal);background:#f1f8f5}
.face{width:56px;height:56px}.f-bg{fill:#f1c66f;stroke:#ba7b36;stroke-width:2}.f-cheek{fill:#e98068;opacity:.45}.f-line{fill:none;stroke:#4f4338;stroke-width:3.2;stroke-linecap:round}
.f1 .f-bg{fill:#b9c8c7;stroke:#6e8785}.f2 .f-bg{fill:#cdd4ad;stroke:#889164}.f3 .f-bg{fill:#e8c78f}.f4 .f-bg{fill:#f2bd74}.f5 .f-bg{fill:#ee9c6f;stroke:#b45f45}
.voice{display:flex;align-items:center;gap:12px;width:100%;margin:14px 0 4px;padding:10px 14px;min-height:66px;background:linear-gradient(135deg,var(--coral),var(--coral-dark));color:#fff;font-size:20px;border-radius:18px;box-shadow:0 10px 20px rgba(216,112,84,.25)}.voice .ico{width:46px;height:46px;background:#fff7f0}
.recording{animation:pulse 1.2s infinite}@keyframes pulse{50%{box-shadow:0 0 0 10px rgba(216,112,84,.2)}}
.examples{margin-top:6px}.heard{background:#fff;border:1px dashed #9ab5ab;border-radius:14px;padding:10px 14px}
.safety-note{background:var(--red-soft);color:var(--red);border-radius:14px;padding:12px 14px;font-weight:650}
.days{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:6px 0}.days button{min-height:58px;padding:6px 2px;background:#fff;border:1px solid var(--line);display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:16px;line-height:1.2}.days button small{font-size:13px;color:var(--teal)}.days button[aria-pressed=true]{background:var(--teal);color:#fff;border-color:var(--teal)}.days button[aria-pressed=true] small{color:#dff}
video{width:100%;border-radius:16px;background:#111;margin-top:6px}
.chat-log{display:flex;flex-direction:column;gap:8px;max-height:360px;overflow-y:auto;padding:4px 2px}
.bubble{max-width:86%;padding:11px 15px;border-radius:18px;font-size:18px;line-height:1.5}.bubble.ai{background:var(--teal-soft);border-bottom-left-radius:5px}.bubble.user{margin-left:auto;background:var(--coral-soft);border-bottom-right-radius:5px}
.bubble.lvl-red,.bubble.lvl-amber{background:var(--red-soft);color:#6e2a27}.bubble.lvl-info,.bubble.lvl-clarify{background:var(--amber-soft)}.typing{color:var(--muted)}
.starters{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}.starters button{min-height:42px;padding:6px 14px;border-radius:999px;background:#fff;border:1px solid #cfe0da;color:var(--teal-dark);font-size:16px}
.chat-input{display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:center}.chat-input input{margin:0}.mic{padding:0;min-height:50px;width:54px;background:transparent}.mic .ico{width:50px;height:50px}.send{width:auto;margin:0;padding:11px 16px}
.item-list{list-style:none;padding:0;margin:6px 0}.item-list li{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;padding:6px 0;border-bottom:1px dashed var(--line)}
.step{font-weight:800;margin:16px 0 8px}
.kinds{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.kinds button{background:#fff;border:2px solid var(--line);display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 4px;font-size:17px}.kinds button[aria-pressed=true]{border-color:var(--teal);background:#eef7f3}
.times{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.times button{background:#fff;border:2px solid var(--line);display:flex;flex-direction:column;align-items:center;padding:8px 4px;font-size:15px;color:var(--muted)}.times button b{font-size:22px;color:var(--ink)}.times button[aria-pressed=true]{border-color:var(--teal);background:#eef7f3}
.push-box{margin-top:18px;padding-top:12px;border-top:1px solid var(--line)}.push-example{display:flex;gap:10px;align-items:center;background:#f1efe8;border-radius:16px;padding:10px 14px;font-size:16px;line-height:1.35}
.howto ol{padding-left:22px}.howto li{margin:6px 0}
footer{margin-top:26px;text-align:center;color:var(--muted);font-size:14px}
@media (max-width:380px){html{font-size:18px}.feature b{font-size:14px}.do-btn,.done-btn{min-width:80px}}
/* ---- v3: onboarding, tabs, weekdays, modal ---- */
.center{text-align:center}.accent{color:var(--teal)}.q{font-weight:700;margin:18px 0 8px}.note{background:#f1efe8;border-radius:14px;padding:10px 14px;font-size:17px}
.step{animation:fade .25s ease}@keyframes fade{from{opacity:0;transform:translateY(6px)}to{opacity:1}}
.back{display:block;margin:4px auto 0}
.lang-pick{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}.lang-pick button{min-height:110px;background:#fff;border:2px solid var(--line);border-radius:22px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;box-shadow:var(--shadow)}.lang-pick button b{font-size:30px}.lang-pick button small{color:var(--muted);font-size:15px}.lang-pick button:active{border-color:var(--teal)}
.small-pick button{min-height:64px}.small-pick button b{font-size:22px}
.scale{display:flex;flex-wrap:wrap;gap:8px}.scale button{min-height:48px;padding:8px 14px;border-radius:999px;background:#fff;border:2px solid var(--line);font-size:17px;font-weight:650}.scale button[aria-pressed=true]{border-color:var(--teal);background:#eef7f3;color:var(--teal-dark)}
.tabbar{position:fixed;left:0;right:0;bottom:0;z-index:5;display:grid;grid-template-columns:repeat(4,1fr);gap:4px;padding:8px 10px calc(8px + env(safe-area-inset-bottom));background:rgba(255,253,248,.97);border-top:1px solid var(--line);box-shadow:0 -8px 24px rgba(23,49,58,.08)}
.tabbar button{min-height:64px;padding:4px 2px;background:transparent;display:flex;flex-direction:column;align-items:center;gap:2px;border-radius:16px;color:var(--muted)}.tabbar button b{font-size:16px}.tabbar .ico.sm{width:34px;height:34px}
.tabbar button[aria-current=true]{background:var(--teal-soft);color:var(--teal-dark)}
.nav-space{height:96px}
.modal{position:fixed;inset:0;z-index:20;background:rgba(23,49,58,.45);display:grid;place-items:end center;padding:16px}.modal-card{width:min(600px,100%);background:var(--panel);border-radius:26px;padding:22px 22px calc(18px + env(safe-area-inset-bottom));box-shadow:0 -10px 40px rgba(0,0,0,.2);animation:fade .2s}
.say-box{background:linear-gradient(135deg,#fff8f1,#eef6f2);border:1px solid var(--line);border-radius:20px;padding:14px 14px 10px;margin:8px 0 6px}
.step-label{font-weight:800;margin:18px 0 8px}
.label-row small{display:block;margin-top:4px;font-size:14px;font-weight:500}
.times{grid-template-columns:repeat(3,1fr)}.times button{font-size:22px;font-weight:800;color:var(--ink);min-height:56px}
.weekdays{display:grid;gap:8px}.wd-all{background:#fff;border:2px solid var(--line);min-height:50px}.wd-all[aria-pressed=true]{border-color:var(--teal);background:#eef7f3;color:var(--teal-dark)}
.wd-row{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}.wd-row button{min-height:50px;padding:0;background:#fff;border:2px solid var(--line);font-size:19px}.wd-row button[aria-pressed=true]{border-color:var(--teal);background:var(--teal);color:#fff}
.row-text b{display:block;font-size:18px}.row-text small{color:var(--muted);font-size:14px}
.kinds{grid-template-columns:repeat(4,1fr)}.kinds button{font-size:15px;padding:8px 2px}.kinds .ico{width:46px;height:46px}
.chat-card .chat-log{max-height:52vh;min-height:220px}
.ios-steps{padding-left:22px}.ios-steps li{margin:6px 0}
.toast{top:calc(12px + env(safe-area-inset-top));bottom:auto;transform:translate(-50%,-30px)}.toast.show{transform:translate(-50%,0)}
