:root{
  --bg:#f5f8f7;--surface:#fff;--surface-2:#eef7f4;--ink:#17312f;--muted:#71817f;
  --primary:#0f766e;--primary-2:#159082;--primary-soft:#dff3ee;--line:#e4ecea;
  --coral:#ec6a5d;--coral-soft:#fff0ed;--lavender:#7068b0;--lavender-soft:#efedff;
  --blue:#4e7fb6;--blue-soft:#eaf3ff;--yellow:#d59a3b;--yellow-soft:#fff5dd;
  --shadow:0 16px 40px rgba(24,74,68,.10);--radius:26px;--radius-sm:18px;
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
}
*{box-sizing:border-box}html{background:#dbe6e3}body{margin:0;background:#dbe6e3;color:var(--ink);-webkit-font-smoothing:antialiased}
button,input,select{font:inherit}button{cursor:pointer}.app-shell{width:min(100%,480px);min-height:100dvh;margin:0 auto;background:var(--bg);position:relative;overflow:hidden;box-shadow:0 0 80px rgba(0,0,0,.12)}
.status-strip{height:28px;padding:7px 20px 0;display:flex;justify-content:space-between;font-size:11px;font-weight:700;color:#314c49}.status-icons{display:flex;gap:6px;align-items:center;font-size:8px}
.topbar{height:64px;padding:4px 18px 12px;display:flex;align-items:center;justify-content:space-between;background:linear-gradient(180deg,rgba(245,248,247,.98),rgba(245,248,247,.88));position:sticky;top:0;z-index:20;backdrop-filter:blur(16px)}
.brand-lockup{display:flex;align-items:center;gap:10px}.brand-lockup strong{font-size:16px;display:block;letter-spacing:-.3px}.brand-lockup small{font-size:10px;color:var(--muted);display:block;margin-top:2px}.brand-mark{width:34px;height:34px;border-radius:12px;background:linear-gradient(145deg,#0f766e,#3ab5a4);display:grid;place-items:center;box-shadow:0 6px 16px rgba(15,118,110,.22)}.brand-mark svg{width:24px;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.icon-btn{width:38px;height:38px;border:0;border-radius:14px;background:var(--surface);display:grid;place-items:center;color:var(--ink);position:relative}.icon-btn.subtle{background:transparent}.icon-btn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.avatar{width:36px;height:36px;border-radius:13px;background:linear-gradient(145deg,#d9eee9,#bce2d8);display:grid;place-items:center;font-size:11px;font-weight:800;color:#0a695f}.notification-dot{position:absolute;right:7px;top:6px;width:7px;height:7px;border-radius:50%;background:var(--coral);border:2px solid var(--bg)}
main{padding:4px 16px 108px}.screen{display:none;animation:fadeIn .24s ease}.screen.active{display:block}@keyframes fadeIn{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
.hero{padding:20px 20px 18px;border-radius:30px;background:linear-gradient(140deg,#0e6e67 0%,#159181 58%,#81caba 130%);color:#fff;display:flex;position:relative;overflow:hidden;min-height:158px;box-shadow:0 16px 30px rgba(15,118,110,.22)}.hero-copy{position:relative;z-index:2;max-width:72%}.hero .eyebrow{color:#d6f1eb}.hero h1{font-size:28px;line-height:1;margin:6px 0 10px;letter-spacing:-.7px}.hero p{font-size:13px;line-height:1.55;margin:0;color:#e6f8f4}.hero-orb{position:absolute;width:170px;height:170px;right:-55px;bottom:-80px;border-radius:50%;border:1px solid rgba(255,255,255,.3)}.hero-orb:before,.hero-orb:after{content:"";position:absolute;border-radius:50%;border:1px solid rgba(255,255,255,.2)}.hero-orb:before{inset:18px}.hero-orb:after{inset:38px}.hero-orb span{position:absolute;width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.16);top:-20px;left:30px;box-shadow:0 0 0 9px rgba(255,255,255,.07)}
.eyebrow{font-size:10px;text-transform:uppercase;letter-spacing:1.25px;color:#83918f;font-weight:800}.eyebrow.green{color:var(--primary)}
.quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}.metric-card{padding:15px;border-radius:22px;background:var(--surface);border:1px solid rgba(228,236,234,.8);box-shadow:0 8px 22px rgba(32,64,60,.055);transition:.2s}.metric-card:active{transform:scale(.985)}.metric-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.metric-icon{width:34px;height:34px;border-radius:12px;display:grid;place-items:center;font-size:16px}.metric-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.metric-icon.coral{color:var(--coral);background:var(--coral-soft)}.metric-icon.lavender{color:var(--lavender);background:var(--lavender-soft)}.metric-icon.blue{color:var(--blue);background:var(--blue-soft)}.metric-icon.mint{color:var(--primary);background:var(--primary-soft)}.metric-icon.yellow{color:var(--yellow);background:var(--yellow-soft)}
.badge{font-size:9px;font-weight:800;padding:5px 8px;border-radius:20px;white-space:nowrap}.badge.success{background:#e4f6ef;color:#14705f}.badge.calm{background:#efeffa;color:#5f5b9a}.metric-label{font-size:11px;color:var(--muted);display:block}.metric-value{display:flex;align-items:baseline;gap:5px;margin:5px 0 3px}.metric-value strong{font-size:22px;letter-spacing:-.6px}.metric-value span{font-size:9px;color:var(--muted)}.metric-card small{font-size:9px;color:#94a09f}
.section-block{margin-top:18px}.section-block.flat{margin-top:20px}.section-heading{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:11px}.section-heading.compact{align-items:flex-start}.section-heading h2{font-size:18px;margin:3px 0 0;letter-spacing:-.4px}.duration-chip{font-size:10px;background:#e6f5f1;color:#0b6e63;padding:6px 9px;border-radius:20px;font-weight:700}.text-action{border:0;background:transparent;color:var(--primary);font-size:11px;font-weight:800;padding:3px}.text-action span{margin-left:4px}
.breathing-card{padding:18px;border-radius:27px;background:linear-gradient(145deg,#edf8f5,#e4f3f0);border:1px solid #d8ece7}.breathing-content{display:flex;align-items:center;gap:18px}.breathing-circle{width:88px;height:88px;flex:0 0 88px;border-radius:50%;border:0;background:linear-gradient(145deg,#0f766e,#3bb39e);color:#fff;display:grid;place-items:center;position:relative;box-shadow:0 9px 26px rgba(15,118,110,.28)}.play-icon{position:relative;z-index:3;font-size:19px;margin-left:3px}.breath-ring{position:absolute;border:1px solid rgba(255,255,255,.38);border-radius:50%;inset:9px}.ring-two{inset:18px}.breathing-circle.running{animation:breathe 8s ease-in-out infinite}.breathing-circle.running .breath-ring{animation:ringPulse 8s ease-in-out infinite}@keyframes breathe{0%,100%{transform:scale(.92)}50%{transform:scale(1.06)}}@keyframes ringPulse{0%,100%{opacity:.45}50%{opacity:1}}.breathing-copy p{font-size:12px;line-height:1.55;color:#55706c;margin:0 0 8px}
.lesson-feature{background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:12px;display:grid;grid-template-columns:112px 1fr;gap:14px;box-shadow:0 8px 24px rgba(32,64,60,.05)}.lesson-visual{min-height:120px;border-radius:18px;background:radial-gradient(circle at 28% 25%,#eff9f7,#d7efea);display:grid;place-items:center;overflow:hidden}.heart-blob{width:74px;height:74px;border-radius:40% 60% 55% 45%;background:rgba(255,255,255,.84);display:grid;place-items:center;transform:rotate(-7deg)}.heart-blob svg{width:50px;transform:rotate(7deg);fill:#f58b80;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.lesson-copy{padding:6px 5px 2px 0}.lesson-index{font-size:9px;color:var(--primary);font-weight:800;letter-spacing:1px}.lesson-copy h3{font-size:16px;margin:5px 0}.lesson-copy p{font-size:10.5px;line-height:1.5;color:var(--muted);margin:0 0 12px}.progress-row{display:flex;align-items:center;gap:8px}.progress{height:6px;flex:1;background:#e8efed;border-radius:10px;overflow:hidden}.progress span{height:100%;background:linear-gradient(90deg,#0f766e,#48ae9c);display:block;border-radius:10px}.progress-row small{font-size:9px;color:#60726f;font-weight:700}
.habit-list{display:grid;gap:9px}.habit-item{position:relative;display:grid;grid-template-columns:22px 38px 1fr;align-items:center;gap:9px;background:var(--surface);border:1px solid var(--line);padding:12px 14px;border-radius:18px}.habit-item input{position:absolute;opacity:0}.checkmark{width:20px;height:20px;border:1.5px solid #c8d4d1;border-radius:7px;display:grid;place-items:center}.habit-item input:checked + .checkmark{background:var(--primary);border-color:var(--primary)}.habit-item input:checked + .checkmark:after{content:"✓";font-size:12px;color:#fff;font-weight:900}.habit-icon{width:36px;height:36px;border-radius:12px;display:grid;place-items:center}.habit-icon.mint{background:var(--primary-soft)}.habit-icon.blue{background:var(--blue-soft)}.habit-icon.yellow{background:var(--yellow-soft)}.habit-item strong{font-size:12px;display:block}.habit-item small{font-size:9px;color:var(--muted);display:block;margin-top:3px}
.page-title{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;padding:12px 2px 16px}.page-title h1{font-size:26px;margin:4px 0 7px;letter-spacing:-.7px}.page-title p{font-size:11px;color:var(--muted);line-height:1.5;margin:0;max-width:280px}.round-stat{width:66px;height:66px;border-radius:22px;background:var(--primary-soft);color:var(--primary);display:grid;place-content:center;text-align:center;flex:0 0 66px}.round-stat strong{font-size:20px;line-height:1}.round-stat span{font-size:10px}.round-stat small{font-size:8px;margin-top:3px}.round-stat.lavender-bg{background:var(--lavender-soft);color:var(--lavender)}.search-box{display:flex;align-items:center;gap:9px;background:var(--surface);border:1px solid var(--line);height:46px;border-radius:16px;padding:0 14px;margin-bottom:14px}.search-box svg{width:18px;fill:none;stroke:#889693;stroke-width:1.8}.search-box input{border:0;outline:0;background:transparent;width:100%;font-size:12px;color:var(--ink)}
.lesson-list{display:grid;gap:10px}.lesson-item{display:grid;grid-template-columns:46px 1fr auto;align-items:center;gap:12px;background:var(--surface);border:1px solid var(--line);border-radius:19px;padding:11px 12px}.lesson-num{width:46px;height:46px;border-radius:15px;background:#eaf5f2;color:var(--primary);display:grid;place-items:center;font-weight:900;font-size:12px}.lesson-item h3{font-size:13px;margin:0 0 4px}.lesson-item p{font-size:9.5px;line-height:1.35;color:var(--muted);margin:0}.lesson-action{width:31px;height:31px;border-radius:11px;border:0;background:#f1f5f4;color:var(--ink);font-size:14px}.lesson-item.completed .lesson-num{background:var(--primary);color:#fff}.lesson-item.completed .lesson-action{background:#e6f5f1;color:var(--primary)}
.primary-icon-btn{width:46px;height:46px;border-radius:16px;border:0;background:var(--primary);color:#fff;font-size:26px;font-weight:300;box-shadow:0 10px 20px rgba(15,118,110,.24)}.trend-card{background:linear-gradient(145deg,#0f756e,#166e75);border-radius:26px;padding:18px;color:#fff;box-shadow:0 14px 30px rgba(15,118,110,.2)}.trend-head{display:flex;justify-content:space-between;align-items:flex-start}.trend-card .eyebrow{color:#bfe9df}.trend-card h2{font-size:17px;margin:3px 0}.trend-card .badge{background:rgba(255,255,255,.13);color:#eaf9f6}.mini-chart{width:100%;height:130px;margin:8px 0 4px;overflow:visible}.chart-grid{stroke:rgba(255,255,255,.12);stroke-width:1}.line-sys,.line-dia{fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.line-sys{stroke:#ffe9c7}.line-dia{stroke:#9de4d8}.chart-point{stroke:#166e75;stroke-width:2}.point-sys{fill:#ffe9c7}.point-dia{fill:#9de4d8}.chart-legend{display:flex;gap:18px;font-size:9px;color:#d4eeea}.chart-legend span{display:flex;align-items:center;gap:6px}.dot{width:7px;height:7px;border-radius:50%;display:inline-block}.dot.systolic{background:#ffe9c7}.dot.diastolic{background:#9de4d8}
.monitor-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:13px}.small-stat{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:13px}.small-stat>span:not(.metric-icon){display:block;font-size:10px;color:var(--muted);margin:9px 0 4px}.small-stat strong{font-size:19px}.small-stat small{font-size:9px;color:#91a09d;margin-left:4px}.timeline{display:grid;gap:0}.timeline-item{display:grid;grid-template-columns:38px 1fr;gap:12px;position:relative;padding-bottom:14px}.timeline-item:before{content:"";position:absolute;left:18px;top:35px;bottom:-1px;width:1px;background:#dde8e5}.timeline-item:last-child:before{display:none}.timeline-dot{width:36px;height:36px;border-radius:13px;background:#edf6f4;display:grid;place-items:center;font-size:14px}.timeline-content{padding:3px 0 0}.timeline-content strong{font-size:11px}.timeline-content p{font-size:9.5px;color:var(--muted);margin:4px 0 0}.timeline-content time{float:right;font-size:8px;color:#9aa7a5}
.info-banner{display:flex;gap:10px;background:#edf4fb;border:1px solid #dce8f3;color:#4f6a83;padding:12px 13px;border-radius:17px;margin-bottom:12px}.info-banner>span{width:22px;height:22px;border-radius:50%;background:#dbe9f6;display:grid;place-items:center;font-weight:800;flex:0 0 22px}.info-banner p{font-size:9.5px;line-height:1.45;margin:0}.questionnaire{display:grid;gap:10px}.question-card{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:14px}.question-card p{font-size:11px;line-height:1.5;margin:0 0 12px}.question-card p b{color:var(--primary);margin-right:5px}.scale-options{display:grid;grid-template-columns:repeat(5,1fr);gap:5px}.scale-options label{position:relative}.scale-options input{position:absolute;opacity:0}.scale-options span{height:35px;border:1px solid #dde6e4;border-radius:11px;display:grid;place-items:center;font-size:10px;font-weight:700;color:#83918e;background:#fafcfc}.scale-options input:checked + span{background:var(--primary);border-color:var(--primary);color:#fff;box-shadow:0 5px 12px rgba(15,118,110,.18)}
.primary-btn{border:0;border-radius:16px;background:linear-gradient(135deg,#0f766e,#159382);color:#fff;padding:13px 18px;font-size:12px;font-weight:800;box-shadow:0 8px 18px rgba(15,118,110,.18)}.primary-btn.full{width:100%;margin-top:14px}.result-card{margin-top:12px;border-radius:20px;background:var(--surface);border:1px solid var(--line);padding:16px}.result-card.hidden{display:none}.result-card h3{font-size:15px;margin:0 0 6px}.result-card p{font-size:10px;line-height:1.5;color:var(--muted);margin:0}.result-card strong{color:var(--primary)}
.profile-hero{text-align:center;padding:18px 0 20px}.profile-avatar{width:76px;height:76px;border-radius:26px;background:linear-gradient(145deg,#c8ebe3,#8fd2c3);display:grid;place-items:center;margin:0 auto 11px;font-size:20px;font-weight:900;color:#0a695f;box-shadow:0 10px 25px rgba(15,118,110,.14)}.profile-hero h1{font-size:24px;margin:0 0 4px}.profile-hero p{font-size:10px;color:var(--muted);margin:0 0 9px}.profile-form{background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:16px}.profile-form label,#monitorForm label{font-size:9px;color:#667774;font-weight:700;display:grid;gap:6px}.profile-form input,.profile-form select,#monitorForm input{width:100%;height:42px;border:1px solid #dae5e2;border-radius:13px;background:#fbfdfc;padding:0 12px;color:var(--ink);outline:none;font-size:11px}.profile-form input:focus,.profile-form select:focus,#monitorForm input:focus{border-color:#84c8b9;box-shadow:0 0 0 3px #e8f5f2}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:11px}.profile-form>label{margin-top:11px}.prototype-note{margin-top:12px;background:#fff8e8;border:1px solid #f1e0b8;padding:14px;border-radius:18px}.prototype-note strong{font-size:11px;color:#926919}.prototype-note p{font-size:9.5px;line-height:1.5;color:#816d43;margin:5px 0 0}
.bottom-nav{position:fixed;z-index:30;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,480px);height:82px;padding:9px 14px max(11px,env(safe-area-inset-bottom));background:rgba(255,255,255,.94);border-top:1px solid #e5eeec;backdrop-filter:blur(18px);display:grid;grid-template-columns:repeat(5,1fr);align-items:start}.nav-item{border:0;background:transparent;color:#95a19f;font-size:8.5px;font-weight:700;display:grid;gap:4px;place-items:center;padding:5px 0}.nav-item svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.nav-item.active{color:var(--primary)}.center-nav{margin-top:-25px;color:var(--muted)}.center-nav-icon{width:52px;height:52px;border-radius:19px;background:linear-gradient(145deg,#0f766e,#1f9c8b);border:5px solid var(--bg);display:grid;place-items:center;color:#fff;box-shadow:0 8px 20px rgba(15,118,110,.27)}.center-nav-icon svg{width:21px;height:21px}.center-nav.active{color:var(--primary)}
.sheet-backdrop{position:fixed;z-index:39;inset:0;background:rgba(15,37,34,.36);opacity:0;pointer-events:none;transition:.25s;backdrop-filter:blur(3px)}.sheet-backdrop.show{opacity:1;pointer-events:auto}.bottom-sheet{position:fixed;z-index:40;left:50%;transform:translate(-50%,110%);bottom:0;width:min(100%,480px);background:var(--surface);border-radius:28px 28px 0 0;padding:10px 18px calc(24px + env(safe-area-inset-bottom));transition:.32s cubic-bezier(.2,.8,.2,1);box-shadow:0 -20px 50px rgba(0,0,0,.16)}.bottom-sheet.show{transform:translate(-50%,0)}.sheet-handle{width:42px;height:4px;background:#d8e2df;border-radius:10px;margin:0 auto 14px}.sheet-head{display:flex;justify-content:space-between;align-items:flex-start}.sheet-head h2{font-size:20px;margin:3px 0 8px}.sheet-head .icon-btn{font-size:24px;background:#f1f4f3}.toggle-row{margin:14px 0 4px!important}.toggle-label{display:flex!important;align-items:center!important;justify-content:space-between;border:1px solid var(--line);padding:10px 11px;border-radius:14px}.toggle-label input{position:absolute;opacity:0}.toggle{width:34px;height:20px;border-radius:20px;background:#d6dfdd;position:relative}.toggle:after{content:"";position:absolute;width:16px;height:16px;left:2px;top:2px;background:#fff;border-radius:50%;transition:.2s;box-shadow:0 1px 4px rgba(0,0,0,.18)}.toggle-label input:checked + .toggle{background:var(--primary)}.toggle-label input:checked + .toggle:after{transform:translateX(14px)}
.toast{position:fixed;z-index:60;left:50%;bottom:96px;transform:translate(-50%,20px);background:#183b37;color:#fff;padding:10px 14px;border-radius:13px;font-size:10px;opacity:0;pointer-events:none;transition:.25s;box-shadow:0 8px 20px rgba(0,0,0,.16);max-width:80%;text-align:center}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(min-width:481px){body{padding:22px 0}.app-shell{min-height:calc(100dvh - 44px);border-radius:34px}.bottom-nav{bottom:22px;border-radius:0 0 34px 34px}.bottom-sheet{bottom:22px;border-radius:28px}.status-strip{border-radius:34px 34px 0 0}.toast{bottom:118px}}
