:root{
  --bg:#f4f7f6;--panel:#ffffff;--panel-2:#f8fbfa;--ink:#172a25;--ink-2:#324a44;--muted:#6f817c;
  --line:#dfe8e5;--line-strong:#cfdcd8;--brand:#0b6b5d;--brand-2:#138571;--brand-dark:#075349;
  --soft:#e9f5f1;--soft-2:#f2f8f6;--accent:#82d6c5;--danger:#b13d43;--danger-bg:#fff1f2;
  --warn:#9b6816;--warn-bg:#fff8e9;--success:#2f7b55;--success-bg:#edf8f1;--blue:#4676a8;
  --shadow-sm:0 5px 18px rgba(22,49,42,.05);--shadow:0 16px 46px rgba(22,49,42,.075);--shadow-lg:0 30px 80px rgba(9,47,39,.14);
  --radius:20px;--radius-lg:28px;--sidebar:254px;
}
[data-theme="dark"]{
  --bg:#101715;--panel:#17211e;--panel-2:#1b2824;--ink:#eef7f4;--ink-2:#c9d7d2;--muted:#92a69f;
  --line:#293a35;--line-strong:#354a43;--soft:#19352e;--soft-2:#1a2b26;--shadow-sm:none;--shadow:0 18px 45px rgba(0,0,0,.18);
  --danger-bg:#351d20;--warn-bg:#332817;--success-bg:#163126;
}
*{box-sizing:border-box}
html{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--ink);scroll-behavior:smooth}
body{margin:0;min-height:100vh;background:var(--bg);color:var(--ink);-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit}
button,a,input,select,textarea{outline:none}
button{cursor:pointer}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{box-shadow:0 0 0 3px rgba(19,133,113,.22)!important;border-color:var(--brand-2)!important}
.hidden{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.eyebrow,.kicker{text-transform:uppercase;letter-spacing:.13em;color:var(--brand);font-size:10px;font-weight:850;margin:0 0 8px}
.muted{color:var(--muted);font-size:13px;line-height:1.62}
.micro{font-size:11px;color:var(--muted);line-height:1.5}
.wide{width:100%}

/* auth */
.auth-shell{min-height:100vh;display:grid;grid-template-columns:minmax(500px,43%) 1fr;background:var(--panel)}
.auth-card{display:flex;align-items:center;justify-content:center;padding:48px clamp(28px,5vw,78px);background:var(--panel);position:relative;z-index:2}
.auth-inner{width:min(100%,520px)}
.brand{display:flex;align-items:center;gap:11px}
.brand-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:linear-gradient(145deg,var(--brand-2),var(--brand-dark));color:#fff;font-size:20px;box-shadow:0 8px 24px rgba(11,107,93,.22)}
.brand div{display:flex;flex-direction:column;line-height:1}
.brand strong{font-size:18px;letter-spacing:-.02em}
.brand span:not(.brand-mark){font-size:11px;color:var(--muted);margin-top:4px}
.brand-large{margin-bottom:52px}
.brand-large .brand-mark{width:50px;height:50px;border-radius:16px;font-size:23px}
.brand-large strong{font-size:22px}
.auth-copy{margin-bottom:28px}
.auth-copy .kicker{display:inline-flex;border:1px solid var(--line);border-radius:999px;padding:7px 10px;background:var(--panel-2);margin-bottom:16px}
.auth-copy h1{font-size:clamp(38px,4.4vw,57px);line-height:1.02;letter-spacing:-.055em;margin:0;max-width:560px}
.auth-copy h1 em{font-style:normal;color:var(--brand)}
.lead{font-size:16px;line-height:1.7;color:var(--muted);margin:18px 0 0;max-width:520px}
.info-banner{background:var(--soft);border:1px solid #c7e5dc;border-radius:14px;padding:13px 15px;margin:0 0 18px;color:var(--ink-2);font-size:12px;line-height:1.55}
.auth-tabs{display:flex;gap:22px;border-bottom:1px solid var(--line);margin:0 0 22px}
.tab{border:0;background:none;padding:12px 2px;color:var(--muted);font-weight:750;border-bottom:2px solid transparent}
.tab.active{color:var(--brand);border-color:var(--brand)}
.stack{display:flex;flex-direction:column;gap:17px}
.auth-form label,.stack>label,.field-grid label,.bp-entry label{font-size:12px;font-weight:760;color:var(--ink-2);display:flex;flex-direction:column;gap:7px}
.auth-form input,.stack input,.stack select,.stack textarea,.field-grid input,.field-grid select,.bp-entry input,.history-filter select,.data-table select{
  width:100%;border:1px solid var(--line);background:var(--panel-2);border-radius:12px;padding:12px 13px;color:var(--ink);transition:border-color .18s,box-shadow .18s,background .18s
}
input::placeholder,textarea::placeholder{color:#a3b0ac}
textarea{resize:vertical;min-height:92px}
.check-row{flex-direction:row!important;align-items:flex-start!important;font-weight:500!important;line-height:1.5;color:var(--muted)!important}
.check-row input{width:auto!important;margin-top:3px}
.auth-trust{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}
.auth-trust span{font-size:10px;color:var(--muted);padding:6px 9px;border-radius:999px;background:var(--panel-2);border:1px solid var(--line)}
.auth-art{position:relative;background:linear-gradient(145deg,#073f38 0%,#0b6b5d 58%,#0f7969 100%);overflow:hidden;display:flex;align-items:center;justify-content:center;padding:8vh 6vw}
.art-glow{position:absolute;border-radius:50%;filter:blur(4px)}
.art-glow.one{width:520px;height:520px;background:rgba(99,218,194,.14);right:-120px;top:-120px}
.art-glow.two{width:420px;height:420px;background:rgba(255,255,255,.07);left:-90px;bottom:-100px}
.preview-shell{width:min(620px,90%);padding:28px;border:1px solid rgba(255,255,255,.16);border-radius:32px;background:rgba(255,255,255,.095);box-shadow:0 45px 110px rgba(0,0,0,.23);backdrop-filter:blur(18px);color:#fff;position:relative;z-index:2;transform:rotate(-1deg)}
.preview-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px}
.preview-top div{display:flex;flex-direction:column;gap:5px}
.preview-top small{opacity:.62}
.preview-top strong{font-size:20px}
.preview-avatar{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.13);font-size:11px;font-weight:800}
.preview-focus{display:flex;justify-content:space-between;align-items:center;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.1);border-radius:22px;padding:22px}
.preview-focus>div:first-child{display:flex;flex-direction:column}
.preview-focus span{font-size:11px;opacity:.65}
.preview-focus strong{font-size:60px;letter-spacing:-.07em;line-height:1.05}
.preview-focus strong small{font-size:31px;opacity:.7}
.preview-focus em{font-style:normal;font-size:11px;color:#bff1e7;margin-top:7px}
.preview-ring{width:92px;height:92px;border-radius:50%;border:8px solid rgba(255,255,255,.12);border-top-color:#7ae0ca;display:grid;place-items:center}
.preview-ring div{text-align:center}
.preview-ring strong{font-size:24px!important}
.preview-ring span{display:block}
.preview-chart{height:190px;padding:14px 8px 4px}
.preview-chart svg{width:100%;height:100%}
.preview-mini-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.preview-mini-grid>div{background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.1);border-radius:18px;padding:16px;display:flex;flex-direction:column;gap:4px}
.preview-mini-grid span{font-size:10px;opacity:.6}.preview-mini-grid strong{font-size:24px}.preview-mini-grid strong small{font-size:12px}.preview-mini-grid small{font-size:10px;opacity:.58}
.feature-pills{position:absolute;bottom:5vh;display:flex;gap:8px;flex-wrap:wrap;justify-content:center;z-index:2}
.feature-pills span{color:#fff;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.08);padding:7px 10px;border-radius:999px;font-size:10px}

/* shell */
.app-shell{min-height:100vh;display:grid;grid-template-columns:var(--sidebar) 1fr;background:var(--bg)}
.sidebar{position:sticky;top:0;height:100vh;background:var(--panel);border-right:1px solid var(--line);padding:22px 17px 18px;display:flex;flex-direction:column;z-index:30}
.sidebar-top{display:flex;align-items:center;justify-content:space-between;padding:0 4px}
.product-pill{font-size:9px;font-weight:850;color:var(--brand);background:var(--soft);border:1px solid var(--line);padding:5px 7px;border-radius:8px}
.nav{display:flex;flex-direction:column;gap:4px;margin-top:38px}
.nav-label{font-size:9px;text-transform:uppercase;letter-spacing:.14em;color:#91a09b;font-weight:800;margin:0 10px 6px}
.nav-label.second{margin-top:22px}
.nav-item{border:0;background:none;text-align:left;padding:10px 11px;border-radius:11px;color:var(--muted);font-weight:700;display:flex;gap:11px;align-items:center;transition:.16s}
.nav-item:hover{background:var(--soft-2);color:var(--ink)}
.nav-item.active{background:var(--soft);color:var(--brand)}
.nav-icon{width:23px;height:23px;display:grid;place-items:center;font-size:15px;border-radius:7px}
.nav-item.active .nav-icon{background:rgba(11,107,93,.09)}
.sidebar-footer{margin-top:auto;border-top:1px solid var(--line);padding-top:13px;display:flex;flex-direction:column;gap:10px}
.theme-button{border:0;background:none;color:var(--muted);display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:10px;font-weight:700;text-align:left}
.theme-button:hover{background:var(--soft-2);color:var(--ink)}
.user-chip{display:grid;grid-template-columns:36px 1fr 28px;gap:9px;align-items:center;padding:8px;background:var(--panel-2);border:1px solid var(--line);border-radius:14px;min-width:0}
.user-chip>div:nth-child(2){display:flex;min-width:0;flex-direction:column}
.user-chip strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.user-chip span{font-size:10px;color:var(--muted);text-transform:capitalize}
.avatar{width:36px;height:36px;border-radius:11px;display:grid;place-items:center;background:linear-gradient(145deg,var(--brand-2),var(--brand));color:#fff;font-weight:850}
.user-menu-btn{width:28px;height:28px;border:0;background:none;color:var(--muted);border-radius:8px}
.user-menu-btn:hover{background:var(--soft);color:var(--brand)}

.workspace{padding:0 clamp(20px,3vw,44px) 30px;min-width:0;max-width:1600px;width:100%;margin:0 auto}
.topbar{height:96px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.topbar-copy h2{margin:0;font-size:25px;letter-spacing:-.035em}
.top-actions{display:flex;align-items:center;gap:10px}
.privacy-state{font-size:10px;color:var(--muted);display:flex;gap:7px;align-items:center}
.privacy-state i,.module-status i{width:7px;height:7px;background:#38a071;border-radius:50%;box-shadow:0 0 0 4px rgba(56,160,113,.1)}
.view{display:none;animation:fadeUp .22s ease}
.view.active{display:block}
@keyframes fadeUp{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}

/* buttons */
.btn{border:1px solid transparent;border-radius:11px;padding:11px 16px;font-weight:800;display:inline-flex;gap:7px;align-items:center;justify-content:center;text-decoration:none;transition:transform .15s,box-shadow .15s,background .15s}
.btn:hover{transform:translateY(-1px)}
.btn.primary{background:linear-gradient(145deg,var(--brand-2),var(--brand));color:#fff;box-shadow:0 9px 22px rgba(11,107,93,.16)}
.btn.primary:hover{box-shadow:0 12px 28px rgba(11,107,93,.22)}
.btn.secondary{background:var(--panel);border-color:var(--line);color:var(--ink)}
.btn.secondary:hover,.btn.ghost:hover{border-color:var(--line-strong);background:var(--panel-2)}
.btn.light{background:#fff;color:var(--brand);box-shadow:0 8px 22px rgba(0,0,0,.08)}
.btn.hero-ghost{color:#fff;border-color:rgba(255,255,255,.24);background:rgba(255,255,255,.05)}
.btn.compact{padding:10px 14px;font-size:12px}
.btn.small{padding:8px 11px;font-size:11px}
.link-btn{border:0;background:none;color:var(--brand);font-weight:800;font-size:11px;padding:6px}
.danger-text{color:var(--danger)}

/* overview */
.emergency-banner{border:1px solid #efb7bc;background:var(--danger-bg);color:var(--danger);border-radius:15px;padding:14px 17px;margin-bottom:15px;font-size:12px;line-height:1.55}
.overview-hero{background:linear-gradient(120deg,#0b6256,#0a7564 58%,#11836f);border-radius:var(--radius-lg);padding:28px;color:#fff;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(330px,.75fr);gap:28px;box-shadow:0 18px 50px rgba(11,107,93,.16);position:relative;overflow:hidden;margin-bottom:15px}
.overview-hero:after{content:"";position:absolute;width:430px;height:430px;border-radius:50%;border:1px solid rgba(255,255,255,.08);right:-170px;top:-210px}
.hero-copy,.hero-reading{position:relative;z-index:1}
.hero-date{font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:#aee6db;font-weight:800;margin:0 0 8px}
.hero-copy h3{font-size:32px;line-height:1.08;letter-spacing:-.04em;margin:0 0 10px}
.hero-copy>p:not(.hero-date){font-size:13px;line-height:1.65;max-width:640px;color:rgba(255,255,255,.76);margin:0}
.hero-actions{display:flex;gap:9px;margin-top:20px}
.hero-reading{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.16);border-radius:22px;padding:19px;backdrop-filter:blur(10px)}
.hero-reading-top{display:flex;justify-content:space-between;gap:10px;font-size:9px;color:rgba(255,255,255,.64);text-transform:uppercase;letter-spacing:.08em}
.hero-reading-main{display:flex;align-items:flex-end;gap:14px;margin:11px 0 15px}
.hero-reading-main>strong{font-size:55px;letter-spacing:-.065em;line-height:1}
.hero-reading-main>div>span{font-size:10px;color:rgba(255,255,255,.62)}
.status-pill{display:inline-flex;align-items:center;border-radius:999px;padding:5px 8px;font-size:9px;font-weight:850;margin-top:5px;background:rgba(255,255,255,.12)}
.status-pill.normal{background:rgba(124,228,171,.16);color:#c9f5dc}
.status-pill.elevated,.status-pill.stage_1{background:rgba(255,215,128,.15);color:#ffe3a5}
.status-pill.stage_2,.status-pill.severe_hypertension,.status-pill.hypertensive_emergency{background:rgba(255,147,147,.15);color:#ffd0d0}
.hero-reading-foot{border-top:1px solid rgba(255,255,255,.12);padding-top:12px;display:flex;gap:20px;font-size:10px;color:rgba(255,255,255,.66)}
.hero-reading-foot b{color:#fff;font-size:11px}

.metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:15px}
.metric-card,.panel{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-sm)}
.metric-card{padding:17px 18px;min-width:0}
.metric-head{display:flex;justify-content:space-between;gap:10px;align-items:center}
.metric-head>span:first-child{font-size:10px;color:var(--muted);font-weight:750}
.metric-icon{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:var(--soft);color:var(--brand);font-size:9px;font-weight:850}
.metric-card>strong{display:block;font-size:28px;margin:10px 0 4px;letter-spacing:-.04em;white-space:nowrap}
.metric-card>small{color:var(--muted);font-size:10px;display:block;min-height:18px}
.panel{padding:20px}
.content-grid{display:grid;gap:15px;margin-bottom:15px}
.trend-layout{grid-template-columns:minmax(0,1.65fr) minmax(290px,.75fr)}
.panel h3{margin:0;font-size:19px;letter-spacing:-.025em}
.panel-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:14px}
.compact-head{align-items:center}
.range-switch{display:flex;background:var(--panel-2);border:1px solid var(--line);border-radius:10px;padding:3px}
.range-switch button{border:0;background:none;border-radius:7px;color:var(--muted);font-size:9px;font-weight:850;padding:6px 9px}
.range-switch button.active{background:var(--panel);color:var(--brand);box-shadow:var(--shadow-sm)}
.chart-legend{display:flex;align-items:center;gap:15px;font-size:9px;color:var(--muted);margin-bottom:5px}
.chart-legend span{display:flex;align-items:center;gap:5px}
.chart-legend i{width:8px;height:8px;border-radius:50%}
.sys-dot{background:var(--brand)}.dia-dot{background:#72968d}
.chart-note{margin-left:auto!important}
.chart{min-height:280px;display:flex;align-items:center;justify-content:center}
.chart svg{width:100%;height:270px;overflow:visible}
.chart-grid{stroke:var(--line);stroke-width:1}
.chart-label{fill:var(--muted);font-size:9px}
.chart-sys{fill:none;stroke:var(--brand);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.chart-dia{fill:none;stroke:#72968d;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.chart-point-sys{fill:var(--panel);stroke:var(--brand);stroke-width:2}
.chart-point-dia{fill:var(--panel);stroke:#72968d;stroke-width:2}
.chart-band{fill:rgba(11,107,93,.035)}
.routine-score{font-size:10px;font-weight:850;color:var(--brand);background:var(--soft);border-radius:999px;padding:6px 8px}
.routine-list{display:flex;flex-direction:column;margin:14px 0}
.routine-item{display:grid;grid-template-columns:27px 1fr auto;gap:10px;align-items:center;padding:12px 0;border-top:1px solid var(--line)}
.routine-item:first-child{border-top:0}
.routine-check{width:26px;height:26px;border-radius:8px;background:var(--panel-2);border:1px solid var(--line);display:grid;place-items:center;color:var(--muted)}
.routine-item.done .routine-check{background:var(--success-bg);border-color:#bfe0cb;color:var(--success)}
.routine-item>div{display:flex;flex-direction:column;gap:3px}.routine-item strong{font-size:11px}.routine-item small{font-size:9px;color:var(--muted)}
.routine-item>span:last-child{font-size:9px;color:var(--muted)}
.routine-item.done>span:last-child{color:var(--success);font-weight:800}
.quality-tip{margin-top:13px;padding:12px;background:var(--soft-2);border-radius:13px;display:flex;gap:9px;align-items:flex-start}
.quality-tip>span{width:20px;height:20px;min-width:20px;border-radius:50%;display:grid;place-items:center;background:var(--soft);color:var(--brand);font-size:9px;font-weight:850}
.quality-tip p{font-size:9px;line-height:1.55;color:var(--muted);margin:0}.quality-tip strong{color:var(--ink-2)}

.reading-list{display:flex;flex-direction:column}
.reading-row{display:grid;grid-template-columns:118px 145px 145px 1fr auto;gap:13px;align-items:center;padding:12px 0;border-top:1px solid var(--line)}
.reading-row:first-child{border-top:0}
.reading-time strong{display:block;font-size:11px}.reading-time span,.reading-meta{font-size:10px;color:var(--muted)}
.reading-value{font-weight:850;font-size:18px;letter-spacing:-.03em}
.reading-device{font-size:10px;color:var(--ink-2)}
.badge{display:inline-flex;align-items:center;border-radius:999px;padding:5px 8px;font-size:9px;font-weight:850;background:var(--soft-2);color:var(--ink-2);white-space:nowrap}
.badge.normal{background:var(--success-bg);color:var(--success)}
.badge.elevated{background:#fff7df;color:#8c6813}
.badge.stage_1{background:#fff1dd;color:#9c5c10}
.badge.stage_2{background:#ffebe5;color:#a94431}
.badge.severe_hypertension,.badge.hypertensive_emergency{background:var(--danger-bg);color:var(--danger)}
[data-theme="dark"] .badge.elevated,[data-theme="dark"] .badge.stage_1{background:#332916;color:#edca79}
[data-theme="dark"] .badge.stage_2{background:#39201c;color:#f4a38f}

/* pages + forms */
.page-intro{padding:5px 3px 22px;display:flex;justify-content:space-between;gap:24px;align-items:flex-end}
.page-intro>div{max-width:730px}
.page-number{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:9px;background:var(--soft);color:var(--brand);font-size:9px;font-weight:900;margin-bottom:12px}
.page-number.inverse{background:rgba(255,255,255,.11);color:#fff}
.page-intro h3{font-size:30px;letter-spacing:-.045em;margin:0 0 8px}
.page-intro p:last-child{color:var(--muted);font-size:13px;line-height:1.65;margin:0}
.row-intro{align-items:center}
.form-layout{grid-template-columns:minmax(0,1.7fr) minmax(285px,.72fr)}
.reading-form{padding:24px}
.section-title{display:flex;gap:12px;align-items:flex-start}
.section-title h4{margin:1px 0 4px;font-size:15px}.section-title p{margin:0;color:var(--muted);font-size:10px}
.step-dot{width:29px;height:29px;min-width:29px;border-radius:9px;background:var(--soft);color:var(--brand);font-size:10px;font-weight:900;display:grid;place-items:center}
.bp-entry{display:grid;grid-template-columns:1fr auto 1fr .8fr;gap:11px;align-items:end;padding:17px;background:var(--soft-2);border:1px solid var(--line);border-radius:16px}
.bp-entry label>span{font-size:9px;color:var(--muted);font-weight:550}
.bp-entry input{font-size:27px;font-weight:850;letter-spacing:-.04em;background:var(--panel)}
.slash{font-size:30px;color:var(--muted);padding-bottom:10px}
.field-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:13px}
.profile-grid{grid-template-columns:repeat(4,1fr)}
.form-divider{height:1px;background:var(--line);margin:1px 0}
.symptom-fieldset{border:0;padding:0;margin:0}
.symptom-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.symptom-grid label{position:relative;display:flex;align-items:center;gap:8px;background:var(--panel-2);border:1px solid var(--line);border-radius:11px;padding:10px 11px;font-size:10px;font-weight:650;color:var(--ink-2);cursor:pointer}
.symptom-grid input{width:auto!important;accent-color:var(--brand)}
.symptom-grid label:has(input:checked){background:var(--danger-bg);border-color:#edc0c4;color:var(--danger)}
.save-reading{margin-top:3px}
.sticky-aside{position:sticky;top:110px;align-self:start}
.assessment-card{position:relative;overflow:hidden}
.assessment-icon{position:absolute;right:18px;top:17px;width:34px;height:34px;border-radius:11px;background:var(--soft);color:var(--brand);display:grid;place-items:center}
.assessment-card h3{max-width:230px}
.assessment-card.success{border-color:#bcdac8;background:var(--success-bg)}
.assessment-card.warn{border-color:#ead3a4;background:var(--warn-bg)}
.assessment-card.danger{border-color:#e9b6ba;background:var(--danger-bg)}
.assessment-reading{font-size:42px;font-weight:900;letter-spacing:-.055em;margin:6px 0}
.call-link{margin-top:9px}
.device-note{display:flex;gap:11px;align-items:flex-start}
.note-icon{width:30px;height:30px;min-width:30px;border-radius:10px;background:var(--soft);color:var(--brand);display:grid;place-items:center}
.device-note strong,.warning-note strong{font-size:11px}.device-note p,.warning-note p{font-size:10px;line-height:1.55;color:var(--muted);margin:5px 0 0}
.warning-note{background:var(--warn-bg);border-color:#ead9ba}

/* history */
.history-panel{padding:20px}
.history-filter select{width:auto;padding:8px 28px 8px 10px;font-size:10px}
.table-wrap{overflow:auto}
.data-table{width:100%;border-collapse:collapse;min-width:820px}
.data-table th,.data-table td{text-align:left;padding:12px 9px;border-top:1px solid var(--line);font-size:10px;vertical-align:middle}
.data-table th{color:var(--muted);font-size:9px;text-transform:uppercase;letter-spacing:.07em;font-weight:800}
.data-table tbody tr:hover{background:var(--panel-2)}
.data-table td strong{font-size:15px}
.data-table small{color:var(--muted)}
.data-table select{padding:7px 24px 7px 8px;font-size:10px}

/* insights */
.insight-hero{background:linear-gradient(120deg,#0a5c50,#0c7564);border-radius:var(--radius-lg);padding:28px;color:#fff;display:grid;grid-template-columns:1fr 180px;gap:24px;align-items:center;margin-bottom:15px;box-shadow:0 18px 50px rgba(11,107,93,.14);overflow:hidden;position:relative}
.insight-hero:before{content:"";position:absolute;width:400px;height:400px;border-radius:50%;border:1px solid rgba(255,255,255,.08);right:-170px;bottom:-240px}
.insight-hero>div{position:relative;z-index:1}
.insight-hero .eyebrow{color:#bce9df}
.insight-hero h3{font-size:31px;line-height:1.1;letter-spacing:-.04em;margin:0 0 9px;max-width:650px}
.insight-hero p:last-child{font-size:12px;line-height:1.6;color:rgba(255,255,255,.72);margin:0;max-width:690px}
.insight-orb{width:150px;height:150px;border-radius:50%;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.08);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.insight-orb span,.insight-orb small{font-size:9px;opacity:.65}.insight-orb strong{font-size:22px;margin:3px 0}
.recommendation-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.recommendation-card{background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:19px;box-shadow:var(--shadow-sm);position:relative}
.recommendation-card.priority{border-color:#e9d2ae;background:var(--warn-bg)}
.recommendation-card .num{width:27px;height:27px;border-radius:8px;background:var(--soft);color:var(--brand);display:grid;place-items:center;font-weight:900;font-size:9px;margin-bottom:13px}
.recommendation-card h4{margin:0 0 7px;font-size:14px}
.recommendation-card p{color:var(--muted);font-size:11px;line-height:1.62;margin:0 0 12px}
.recommendation-card small{color:#8da09a;font-size:9px}

/* profile/admin */
.profile-form{max-width:1120px;padding:24px}
.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-bottom:13px}
.admin-card{position:relative;min-height:220px}
.admin-card-icon{position:absolute;right:18px;top:18px;width:34px;height:34px;border-radius:11px;background:var(--soft);display:grid;place-items:center;color:var(--brand)}
.switch-row{margin-top:18px;display:flex!important;flex-direction:row!important;justify-content:space-between;align-items:center!important;gap:20px;padding:13px;background:var(--panel-2);border-radius:12px;border:1px solid var(--line)}
.switch-row span{display:flex;flex-direction:column;gap:3px}.switch-row small{font-weight:500;color:var(--muted);font-size:9px}.switch-row input{width:42px!important;height:22px;accent-color:var(--brand)}
.module-status{display:flex;align-items:center;gap:8px;color:var(--success);font-size:10px;font-weight:800;margin-top:18px}
.empty-state{color:var(--muted);font-size:11px;text-align:center;padding:38px 14px}
.app-footer{text-align:center;color:#91a09b;font-size:9px;padding:26px 10px 8px;line-height:1.5}
.toast{position:fixed;right:22px;bottom:22px;z-index:100;background:#163f35;color:#fff;padding:12px 15px;border-radius:11px;box-shadow:var(--shadow-lg);font-size:11px;transform:translateY(90px);opacity:0;transition:.24s;max-width:360px}
.toast.show{transform:translateY(0);opacity:1}.toast.error{background:#8c3035}
.mobile-bottom-nav{display:none}

@media(max-width:1200px){
  .metric-grid{grid-template-columns:repeat(2,1fr)}
  .overview-hero{grid-template-columns:1fr 330px}
  .trend-layout,.form-layout{grid-template-columns:1fr}
  .sticky-aside{position:static;display:grid;grid-template-columns:repeat(3,1fr)}
  .profile-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:980px){
  :root{--sidebar:220px}
  .auth-shell{grid-template-columns:1fr}
  .auth-art{display:none}
  .auth-card{min-height:100vh}
  .overview-hero{grid-template-columns:1fr}
  .hero-reading{max-width:520px}
  .reading-row{grid-template-columns:105px 135px 120px 1fr}
  .reading-row .reading-meta:last-child{display:none}
}
@media(max-width:760px){
  body{padding-bottom:74px}
  .app-shell{display:block}
  .sidebar{display:none}
  .workspace{padding:0 14px 22px}
  .topbar{height:76px;padding-top:5px}
  .topbar-copy h2{font-size:21px}
  .topbar-copy .eyebrow{display:none}
  .privacy-state{display:none}
  .top-actions .btn{width:39px;height:39px;padding:0;font-size:0;border-radius:12px}
  .top-actions .btn span{font-size:21px}
  .overview-hero{padding:20px;border-radius:21px;gap:18px}
  .hero-copy h3{font-size:26px}
  .hero-actions .btn{font-size:11px;padding:10px 12px}
  .hero-reading-main>strong{font-size:46px}
  .metric-grid{grid-template-columns:1fr 1fr;gap:9px}
  .metric-card{padding:14px}
  .metric-card>strong{font-size:24px}
  .panel{padding:16px;border-radius:17px}
  .trend-layout{grid-template-columns:1fr}
  .panel-head{align-items:center}
  .chart{min-height:245px}.chart svg{height:235px}
  .reading-row{grid-template-columns:88px 110px 1fr;gap:9px}
  .reading-device,.reading-row .reading-meta{display:none}
  .reading-value{font-size:16px}
  .page-intro{padding:2px 2px 18px}
  .page-intro h3{font-size:25px}
  .row-intro{align-items:flex-end}
  .bp-entry{grid-template-columns:1fr auto 1fr}.bp-entry label:last-child{grid-column:1/-1}
  .field-grid,.profile-grid,.symptom-grid{grid-template-columns:1fr}
  .sticky-aside{display:flex}
  .insight-hero{grid-template-columns:1fr;padding:22px}
  .insight-orb{display:none}
  .insight-hero h3{font-size:26px}
  .recommendation-grid,.admin-grid{grid-template-columns:1fr}
  .auth-card{padding:30px 22px}
  .brand-large{margin-bottom:38px}
  .auth-copy h1{font-size:38px}
  .mobile-bottom-nav{position:fixed;left:0;right:0;bottom:0;height:66px;background:rgba(255,255,255,.94);border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(5,1fr);z-index:50;padding:5px max(6px,env(safe-area-inset-left)) calc(5px + env(safe-area-inset-bottom));backdrop-filter:blur(16px)}
  [data-theme="dark"] .mobile-bottom-nav{background:rgba(23,33,30,.94)}
  .mobile-bottom-nav button{border:0;background:none;color:var(--muted);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border-radius:10px;font-weight:700}
  .mobile-bottom-nav button span{font-size:17px}.mobile-bottom-nav button small{font-size:8px}
  .mobile-bottom-nav button.active{color:var(--brand)}
  .mobile-bottom-nav .mobile-add{position:relative;top:-12px}
  .mobile-bottom-nav .mobile-add span{width:42px;height:42px;border-radius:14px;background:linear-gradient(145deg,var(--brand-2),var(--brand));color:#fff;display:grid;place-items:center;box-shadow:0 8px 20px rgba(11,107,93,.25)}
  .mobile-bottom-nav .mobile-add small{margin-top:1px}
  .toast{bottom:82px;left:14px;right:14px;max-width:none}
}
@media(max-width:430px){
  .metric-grid{grid-template-columns:1fr 1fr}
  .metric-card>strong{font-size:21px}
  .hero-reading-foot{flex-direction:column;gap:5px}
  .auth-copy h1{font-size:34px}
  .hero-actions{flex-direction:column;align-items:stretch}
}
@media(prefers-reduced-motion:reduce){
  *{scroll-behavior:auto!important;animation:none!important;transition:none!important}
}


/* guided BP sessions + protocol */
.entry-mode-switch{display:grid;grid-template-columns:1fr 1fr;gap:8px;background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:5px;margin:0 0 15px;max-width:580px}
.entry-mode-switch button{border:0;background:transparent;border-radius:11px;padding:10px 13px;text-align:left;color:var(--muted);display:flex;flex-direction:column;gap:2px}
.entry-mode-switch button span{font-size:11px;font-weight:850}.entry-mode-switch button small{font-size:9px}
.entry-mode-switch button.active{background:var(--soft);color:var(--brand);box-shadow:var(--shadow-sm)}
.guided-session{padding:24px;margin-bottom:15px}
.guided-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:18px}
.guided-heading h3{font-size:24px;margin:0 0 7px}.guided-heading p:last-child{font-size:11px;color:var(--muted);line-height:1.55;margin:0;max-width:670px}
.guided-badge{white-space:nowrap;font-size:9px;font-weight:850;color:var(--brand);background:var(--soft);border:1px solid var(--line);padding:7px 9px;border-radius:999px}
.prep-checklist{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:15px 0 18px}
.prep-checklist label{display:flex;gap:8px;align-items:center;border:1px solid var(--line);background:var(--panel-2);border-radius:12px;padding:11px;cursor:pointer}
.prep-checklist input{width:auto;accent-color:var(--brand)}
.prep-checklist span{display:flex;flex-direction:column;font-size:9px;color:var(--muted)}.prep-checklist b{font-size:11px;color:var(--ink)}
.prep-checklist label:has(input:checked){background:var(--success-bg);border-color:#bcdac8}
.guided-config{margin-bottom:16px}
.guided-progress{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}
.guided-progress>div:first-child{display:flex;flex-direction:column;gap:5px}
.guided-progress span{font-size:9px;text-transform:uppercase;letter-spacing:.08em;color:var(--brand);font-weight:850}
.guided-progress strong{font-size:18px;letter-spacing:-.02em}
.session-dots{display:flex;gap:7px}.session-dots i{width:10px;height:10px;border-radius:50%;border:1px solid var(--line-strong);background:var(--panel-2)}
.session-dots i.active{box-shadow:0 0 0 4px rgba(11,107,93,.1);border-color:var(--brand);background:var(--panel)}
.session-dots i.complete{background:var(--brand);border-color:var(--brand)}
.guided-timer{display:grid;grid-template-columns:110px 1fr;gap:18px;align-items:center;padding:18px;background:linear-gradient(135deg,var(--soft),var(--panel));border:1px solid var(--line);border-radius:18px;margin-bottom:18px}
.timer-ring{width:96px;height:96px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;border:8px solid var(--soft);border-top-color:var(--brand);background:var(--panel)}
.timer-ring strong{font-size:31px;line-height:1}.timer-ring span{font-size:8px;color:var(--muted);margin-top:3px;text-transform:uppercase;letter-spacing:.08em}
.guided-timer h4{margin:0 0 5px;font-size:15px}.guided-timer p{margin:0;color:var(--muted);font-size:10px;line-height:1.55}
.guided-reading-form{display:flex;flex-direction:column;gap:14px}
.guided-bp-entry{max-width:800px}
.guided-symptoms{border:1px solid var(--line);border-radius:12px;background:var(--panel-2);padding:10px 12px}
.guided-symptoms summary{cursor:pointer;font-size:10px;font-weight:800;color:var(--ink-2)}
.guided-symptoms .symptom-grid{margin-top:10px}
.session-readings{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:16px}
.session-reading-card{border:1px solid var(--line);background:var(--panel-2);border-radius:13px;padding:13px;display:flex;flex-direction:column;gap:4px}
.session-reading-card span{font-size:8px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:800}
.session-reading-card strong{font-size:22px;letter-spacing:-.04em}.session-reading-card small{font-size:9px;color:var(--muted)}
.session-average{margin-top:12px;padding:17px;border-radius:15px;background:linear-gradient(135deg,var(--brand-dark),var(--brand));color:#fff;display:flex;align-items:center;justify-content:space-between;gap:16px}
.session-average>div:first-child{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}.session-average span{font-size:9px;opacity:.7;text-transform:uppercase;letter-spacing:.07em}
.session-average strong{font-size:31px;letter-spacing:-.045em}.session-average small{font-size:9px;opacity:.7}
.session-average .status-pill{background:rgba(255,255,255,.12);color:#fff}
.guided-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}
.protocol-strip{margin-top:14px;border-top:1px solid var(--line);padding-top:13px}
.protocol-head{display:flex;justify-content:space-between;align-items:center;font-size:9px;color:var(--muted);margin-bottom:8px}.protocol-head strong{color:var(--brand);font-size:10px}
.protocol-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}
.protocol-day{display:grid;grid-template-columns:1fr 1fr;gap:3px;text-align:center}
.protocol-day b{grid-column:1/-1;font-size:8px;color:var(--muted);font-weight:750}
.protocol-day span{height:25px;border-radius:7px;border:1px solid var(--line);background:var(--panel-2);display:grid;place-items:center;font-size:7px;font-weight:800;color:var(--muted)}
.protocol-day span.done{background:var(--success-bg);border-color:#bcdac8;color:var(--success)}
.protocol-strip>small{display:block;font-size:8px;color:var(--muted);line-height:1.45;margin-top:7px}
.report-actions{display:flex;gap:8px;align-items:center}

@media(max-width:900px){
  .prep-checklist{grid-template-columns:repeat(2,1fr)}
  .session-readings{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:760px){
  .entry-mode-switch{max-width:none}
  .guided-session{padding:16px}
  .guided-heading{flex-direction:column}.guided-badge{white-space:normal}
  .prep-checklist{grid-template-columns:1fr 1fr}
  .guided-timer{grid-template-columns:82px 1fr;padding:14px}.timer-ring{width:76px;height:76px;border-width:6px}.timer-ring strong{font-size:25px}
  .session-readings{grid-template-columns:1fr 1fr}
  .session-average{align-items:flex-start;flex-direction:column}
  .guided-actions{flex-direction:column}.guided-actions .btn{width:100%}
  .report-actions{flex-direction:column;align-items:stretch}.report-actions .btn{font-size:10px;padding:9px 10px}
}
@media(max-width:430px){
  .entry-mode-switch{grid-template-columns:1fr}
  .prep-checklist{grid-template-columns:1fr}
  .session-readings{grid-template-columns:1fr}
}


/* connected health */
.connected-preview{margin-bottom:15px}
.connected-preview-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}
.connected-mini{border:1px solid var(--line);background:var(--panel-2);border-radius:13px;padding:13px;display:flex;flex-direction:column;gap:4px}
.connected-mini span{font-size:9px;color:var(--muted);font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.connected-mini strong{font-size:18px;letter-spacing:-.03em}.connected-mini small{font-size:9px;color:var(--muted)}
.connected-preview-empty{grid-column:1/-1;padding:14px;border-radius:12px;background:var(--soft-2);font-size:10px;color:var(--muted)}
.health-connect-hero{background:linear-gradient(120deg,#0b6256,#0a7564 58%,#11836f);color:#fff;border-radius:var(--radius-lg);padding:25px;display:grid;grid-template-columns:1fr 280px;gap:22px;align-items:center;margin-bottom:14px;box-shadow:0 18px 50px rgba(11,107,93,.14)}
.health-connect-hero .eyebrow{color:#bce9df}.health-connect-hero h3{font-size:25px;letter-spacing:-.035em;margin:0 0 8px}.health-connect-hero p:last-of-type{font-size:11px;line-height:1.6;color:rgba(255,255,255,.74);margin:0}
.health-connect-tags{display:flex;gap:7px;flex-wrap:wrap;margin-top:15px}.health-connect-tags span{font-size:8px;padding:6px 8px;border-radius:999px;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.14)}
.sync-state-card{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.15);border-radius:18px;padding:18px;display:flex;flex-direction:column;gap:5px}
.sync-state-card span{font-size:8px;text-transform:uppercase;letter-spacing:.08em;opacity:.65}.sync-state-card strong{font-size:22px}.sync-state-card small{font-size:9px;opacity:.65}
.health-metric-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:9px;margin-bottom:14px}
.health-metric-card{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:14px;box-shadow:var(--shadow-sm);display:flex;gap:10px;align-items:center;min-width:0}
.health-icon{width:34px;height:34px;min-width:34px;border-radius:11px;background:var(--soft);color:var(--brand);display:grid;place-items:center;font-size:10px;font-weight:900}
.health-metric-card div{display:flex;flex-direction:column;min-width:0}.health-metric-card small{font-size:8px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:800}.health-metric-card strong{font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.health-metric-card em{font-style:normal;font-size:8px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.health-detail-grid{grid-template-columns:minmax(0,1.5fr) minmax(280px,.8fr)}
.source-chip{font-size:8px;font-weight:800;color:var(--brand);background:var(--soft);border:1px solid var(--line);border-radius:999px;padding:5px 7px}
.mini-bar-chart{height:230px;display:flex;align-items:flex-end;gap:4px;padding:12px 2px 0}
.step-bar-wrap{height:100%;flex:1;min-width:3px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:4px}
.step-bar{width:70%;max-width:14px;min-height:3px;border-radius:5px 5px 2px 2px;background:linear-gradient(180deg,var(--brand-2),var(--brand))}
.step-bar-wrap small{font-size:6px;color:var(--muted)}
.health-list{display:flex;flex-direction:column}
.health-list-row{display:grid;grid-template-columns:1fr auto auto;gap:10px;align-items:center;padding:10px 0;border-top:1px solid var(--line)}
.health-list-row:first-child{border-top:0}.health-list-row>div{display:flex;flex-direction:column;gap:2px}.health-list-row strong{font-size:10px}.health-list-row small{font-size:8px;color:var(--muted)}.health-list-row b{font-size:11px}.health-list-row>span{font-size:8px;color:var(--muted)}
.health-privacy-note{display:grid;grid-template-columns:34px 1fr auto;gap:12px;align-items:start}.health-privacy-note strong{font-size:11px}.health-privacy-note p{font-size:10px;color:var(--muted);line-height:1.55;margin:4px 0 0}.health-privacy-note a{font-size:9px;color:var(--brand);font-weight:800;text-decoration:none}
@media(max-width:1200px){.health-metric-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:900px){.connected-preview-grid{grid-template-columns:repeat(2,1fr)}.health-connect-hero,.health-detail-grid{grid-template-columns:1fr}.health-metric-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:520px){.connected-preview-grid{grid-template-columns:1fr 1fr}.health-metric-grid{grid-template-columns:1fr 1fr}.health-connect-hero{padding:19px}.health-privacy-note{grid-template-columns:30px 1fr}.health-privacy-note a{grid-column:2}}
