*{box-sizing:border-box;margin:0;padding:0}
:root{--ink:#1c2430;--mut:#778;--bg:#f4f6f8;--teal:#0f766e;--teal2:#14b8a6;--per:#e11d48;--perbg:#fde8ec;--biz:#2563eb;--bizbg:#e0eaff}
html,body{background:var(--bg)}
body{font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:var(--ink);-webkit-tap-highlight-color:transparent}
#app{max-width:560px;margin:0 auto;min-height:100vh;position:relative}
.s{display:none;padding:18px 16px 110px}.s.on{display:block}
h1{font-size:22px}h2{font-size:15px;margin:16px 0 8px;color:#556}h3{font-size:14px;margin-bottom:6px}
.sub{color:var(--mut);font-size:13px}.small{font-size:12px}
.card{background:#fff;border-radius:16px;padding:14px;box-shadow:0 1px 3px #0001;margin-bottom:10px}
.row{display:flex;gap:10px;align-items:center}.sp{justify-content:space-between}.wrap{flex-wrap:wrap}.f1{flex:1;min-width:0}
.coach{background:linear-gradient(135deg,#0f766e,#14b8a6);color:#fff}.coach .sub{color:#d6fff8}
.rings{display:flex;justify-content:space-between}.ring{text-align:center;font-size:12px;color:#556;flex:1}
.ring svg{width:78px;height:78px}.ring b{display:block;font-size:13px;color:var(--ink)}
.pill{display:inline-block;font-size:11px;padding:3px 8px;border-radius:20px;background:#e6f4f1;color:var(--teal)}
.pill.biz{background:var(--bizbg);color:var(--biz)}.pill.per{background:var(--perbg);color:var(--per)}
.item{display:flex;gap:10px;align-items:flex-start;padding:9px 0 9px 10px;border-bottom:1px solid #eef;border-left:4px solid transparent;margin-left:-6px}
.item:last-child{border-bottom:0}.item.per{border-left-color:var(--per)}.item.biz{border-left-color:var(--biz)}
.item.overdue .when{color:#b45309;font-weight:600}
.chk{width:24px;height:24px;border-radius:50%;border:2px solid #cbd;flex:none;background:#fff;cursor:pointer;margin-top:1px}
.chk.d{background:var(--teal2);border-color:var(--teal2)}
.chk.d::after{content:'✓';color:#fff;font-size:14px;display:block;text-align:center;line-height:20px}
.done .ttl{text-decoration:line-through;color:#99a}
.ttl{font-size:15px;cursor:pointer}.ttl.per{color:#9f1239}.ttl.biz{color:#1e3a8a}
.pills{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}
.nav{position:fixed;bottom:0;left:0;right:0;height:66px;padding-bottom:env(safe-area-inset-bottom);background:#fff;border-top:1px solid #e5e8ec;display:flex;justify-content:space-around;align-items:center;font-size:11px;color:#889;z-index:20}
.nav a{text-align:center;color:inherit;text-decoration:none;flex:1}.nav a.a{color:var(--teal);font-weight:600}.nav i{display:block;font-style:normal;font-size:20px}
.mic{position:fixed;right:max(18px,calc(50% - 262px));bottom:80px;width:58px;height:58px;border-radius:50%;background:var(--teal);color:#fff;font-size:26px;border:0;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 12px #0f766e66;z-index:21;cursor:pointer}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.tile{background:#fff;border-radius:16px;padding:12px;box-shadow:0 1px 3px #0001}
.tile .big{font-size:20px;font-weight:700;margin:4px 0}
.btn{display:inline-block;padding:7px 12px;border-radius:10px;background:#e6f4f1;color:var(--teal);font-size:13px;font-weight:600;margin:2px 2px 0 0;border:0;cursor:pointer;font-family:inherit}
.btn.p{background:var(--teal);color:#fff}.btn.d{background:#fee2e2;color:#b91c1c}.btn.g{background:#eef0f3;color:#445}
.bar{height:8px;background:#e5e8ec;border-radius:8px;overflow:hidden}.bar i{display:block;height:100%;background:var(--teal2)}
.chips{display:flex;gap:6px;margin:8px 0;flex-wrap:wrap}
.chips button{padding:6px 12px;border-radius:20px;background:#fff;font-size:13px;border:1px solid #e2e6ea;cursor:pointer;font-family:inherit;color:#445}
.chips button.a{background:var(--ink);color:#fff;border-color:var(--ink)}
.chips.sm button{padding:4px 10px;font-size:12px}.chips.sm button.a{background:#e6f4f1;color:var(--teal);border-color:#b9e4dc;font-weight:600}
.legend{display:flex;gap:12px;font-size:12px;color:#556;margin:4px 0}.legend i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:4px;vertical-align:-1px}
.stage{display:flex;gap:10px;padding:10px 0;border-bottom:1px solid #eef}.stage:last-child{border:0}
.dot{width:28px;height:28px;border-radius:50%;background:#e5e8ec;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;flex:none}
.dot.current{background:var(--teal2);color:#fff}.dot.done{background:var(--teal);color:#fff}
.days{display:flex;gap:5px;margin-top:6px}.days b{width:34px;height:34px;border-radius:8px;background:#e5e8ec;font-size:10px;display:flex;align-items:center;justify-content:center;color:#667;flex-direction:column}
.days b.y{background:var(--teal2);color:#fff}.days b.x{opacity:.4}
.voice{background:var(--ink);color:#fff;border-radius:16px;padding:12px}.voice .sub{color:#aab}
.note{font-size:12px;line-height:1.4;background:#fff7ed;color:#9a3412;border-radius:10px;padding:8px 10px;margin-top:8px}
.sw{width:42px;height:24px;border-radius:12px;background:#cbd5e1;position:relative;flex:none;border:0;cursor:pointer}
.sw.on{background:var(--teal2)}.sw::after{content:'';position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;transition:.15s}.sw.on::after{left:21px}
input,select,textarea{font:inherit;font-size:15px;padding:9px 10px;border:1px solid #d5dae0;border-radius:10px;background:#fff;color:var(--ink);width:100%}
textarea{min-height:64px;resize:vertical}label{font-size:12px;color:#556;display:block;margin:8px 0 3px}
.cmd{display:flex;gap:8px}.cmd input{flex:1;background:#2a3442;border-color:#3a4555;color:#fff}.cmd input::placeholder{color:#aab}
.cmd button{flex:none;width:44px;border-radius:10px;border:0;background:var(--teal2);color:#fff;font-size:18px;cursor:pointer}
.tl{position:relative;height:54px;margin:4px 0 2px;overflow:hidden}
.tl .ax{position:absolute;left:0;right:0;top:24px;height:2px;background:#e5e8ec}
.tl .hr{position:absolute;top:32px;font-size:9px;color:#99a;transform:translateX(-50%)}
.tl .ev{position:absolute;top:16px;width:14px;height:14px;border-radius:50%;transform:translateX(-50%);border:2px solid #fff;box-shadow:0 0 0 1px #0002}
.tl .ev.per{background:var(--per)}.tl .ev.biz{background:var(--biz)}.tl .ev.dn{opacity:.35}
.tl .now{position:absolute;top:6px;bottom:18px;width:2px;background:#f59e0b}
.tl .lbl{position:absolute;top:0;font-size:9px;white-space:nowrap;transform:translateX(-50%);color:#556;max-width:70px;overflow:hidden;text-overflow:ellipsis}
.sheet{position:fixed;inset:0;background:#0007;display:none;align-items:flex-end;justify-content:center;z-index:40}.sheet.on{display:flex}
.sheet .pane{background:#fff;width:100%;max-width:560px;border-radius:18px 18px 0 0;padding:16px 16px calc(18px + env(safe-area-inset-bottom));max-height:92vh;overflow:auto}
.toast{position:fixed;left:50%;bottom:150px;transform:translateX(-50%);background:var(--ink);color:#fff;padding:10px 14px;border-radius:12px;font-size:14px;z-index:60;display:none;max-width:92vw;box-shadow:0 6px 20px #0004}
.toast.on{display:flex;gap:10px;align-items:center}.toast button{background:none;border:0;color:#5eead4;font-weight:700;font-size:14px;cursor:pointer}
.listen{font-size:42px;text-align:center;animation:pulse 1s infinite}@keyframes pulse{50%{opacity:.4}}
#auth{position:fixed;inset:0;background:linear-gradient(160deg,#0f766e,#14b8a6);display:none;align-items:center;justify-content:center;z-index:100;padding:20px}
#auth.on{display:flex}#auth .card{width:100%;max-width:380px}
.err{color:#b91c1c;font-size:13px;margin-top:6px;min-height:16px}
.seg{display:flex;border:1px solid #d5dae0;border-radius:10px;overflow:hidden}.seg button{flex:1;padding:9px;border:0;background:#fff;font:inherit;cursor:pointer}
.seg button.a.per{background:var(--per);color:#fff}.seg button.a.biz{background:var(--biz);color:#fff}
.term{display:flex;gap:8px;align-items:center;padding:6px 0;border-bottom:1px solid #eef;font-size:14px}
.term .x{border:0;background:none;color:#b91c1c;font-size:16px;cursor:pointer}
details summary{cursor:pointer;font-weight:600;font-size:14px;padding:4px 0}
.picks li{margin:4px 0 4px 18px;font-size:13px}.empty{color:#99a;font-size:13px;padding:8px 0;text-align:center}
.hdr{display:flex;justify-content:space-between;align-items:center}.icon{font-size:24px;text-decoration:none;cursor:pointer;background:none;border:0}
svg.chart{width:100%;height:220px;display:block}
@media (min-width:900px){#app{max-width:720px}.sheet .pane{border-radius:18px;margin-bottom:5vh}.grid.g4{grid-template-columns:repeat(4,1fr)}}
