:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#17202a;background:#eef1f4;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button,a{touch-action:manipulation}.app{min-height:100dvh;max-width:520px;margin:auto;background:#f8f9fb;padding-bottom:92px;box-shadow:0 0 30px #0001}header{padding:calc(20px + env(safe-area-inset-top)) 22px 16px;display:flex;justify-content:space-between;align-items:center;background:#fff;border-bottom:1px solid #e7e9ec}h1{font-size:1.45rem;margin:0}header p{margin:2px 0 0;color:#68717c;font-size:.82rem}.profile{color:inherit;text-decoration:none;background:#f0f2f4;border-radius:18px;padding:8px 12px}main{padding:22px}h2{font-size:1.35rem;margin:6px 0 10px}h3{margin:0 0 8px}.eyebrow{text-transform:uppercase;letter-spacing:.08em;font-size:.72rem;font-weight:700;color:#66717c}.hero,.card,.chart{background:#fff;border-radius:20px;padding:20px;border:1px solid #e7e9ec}.hero{margin-bottom:14px}.card,.chart{margin-top:16px}.bp{display:flex;align-items:baseline;gap:7px;margin:8px 0 4px}.bp strong{font-size:3.25rem;line-height:1}.bp span{font-size:2rem;color:#87909a}.bp small{margin-left:3px;color:#68717c}.hr{font-size:1.05rem;margin-top:12px}.date,.muted{color:#737d88;font-size:.9rem;margin-top:7px}.status{font-weight:650}.primary,.secondary{width:100%;border:0;border-radius:15px;padding:15px;font-weight:700;font-size:1rem}.primary{background:#17202a;color:#fff}.secondary{background:#eef1f4;color:#17202a}.button-link{display:block;text-align:center;text-decoration:none}.form-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}.text-link{font-weight:700;color:#17202a}.fields{display:grid;gap:15px;margin:20px 0}label{font-weight:650;font-size:.88rem}label>div{display:flex;margin-top:6px;border:1px solid #ccd2d8;border-radius:14px;background:#fff;overflow:hidden;align-items:center}label>div.error{border-color:#9b1c1c}label>div input{border:0;padding:13px 14px;font-size:1.35rem;width:100%;outline:none}label>div span{padding-right:14px;color:#68717c}.dt,textarea{display:block;width:100%;margin-top:6px;border:1px solid #ccd2d8;border-radius:14px;padding:13px;background:#fff}textarea{min-height:90px;resize:vertical}.optional{font-weight:400;color:#737d88}.error-text{display:block;color:#8b1a1a;margin-top:5px}.counter{display:block;text-align:right;color:#737d88}.alert{background:#fff0f0;border:1px solid #e4b8b8;padding:12px;border-radius:12px}.success{font-weight:700}.history{display:grid;gap:10px;margin-top:16px}.history article{background:#fff;border:1px solid #e7e9ec;border-radius:16px;padding:15px;display:flex;justify-content:space-between;gap:10px}.history time{display:block;color:#68717c;font-size:.8rem}.history strong{display:block;font-size:1.35rem;margin:5px 0}.history strong em{font-style:normal;font-size:.7rem;color:#68717c}.history span,.history p{font-size:.85rem;color:#59636d}.actions{display:flex;flex-direction:column;gap:5px}.actions a,.actions button{border:0;background:#f1f3f5;color:#17202a;text-decoration:none;border-radius:9px;padding:7px 9px;font-size:.75rem;text-align:center}.button-stack{display:grid;gap:10px;margin-top:14px}fieldset{border:1px solid #dfe3e7;border-radius:14px;padding:14px;display:grid;gap:12px}legend{font-weight:700;padding:0 5px}.target-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.summary,dl{margin:0}dl div{display:flex;justify-content:space-between;padding:6px 0;border-bottom:1px solid #eee}dd{margin:0;font-weight:700}.chart-heading{display:flex;justify-content:space-between;gap:12px;align-items:start}.chart-heading h2{margin-bottom:0}.chart svg{display:block;width:100%;height:auto;margin-top:8px;overflow:visible}.grid-line{stroke:#e4e7ea;stroke-width:1}.axis-label{fill:#737d88;font-size:11px}.systolic-line,.diastolic-line{fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.systolic-line{stroke:#17202a}.diastolic-line{stroke:#78838e}.systolic-point{fill:#17202a}.diastolic-point{fill:#78838e}.legend{display:flex;flex-wrap:wrap;justify-content:end;gap:8px 12px;color:#59636d;font-size:.76rem}.legend span{display:inline-flex;align-items:center;gap:5px}.legend i{display:inline-block;width:14px;height:3px;border-radius:2px}.systolic-key{background:#17202a}.diastolic-key{background:#78838e}.chart-unit{margin:-10px 0 0 42px;color:#737d88;font-size:.72rem}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}nav{position:fixed;bottom:0;left:50%;transform:translate(-50%);width:min(520px,100%);display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border-top:1px solid #dfe3e7;padding:8px 8px calc(8px + env(safe-area-inset-bottom));z-index:10}nav a{color:#737d88;text-decoration:none;font-size:.72rem;display:grid;gap:2px;justify-items:center;padding:3px}nav a span{font-size:1.35rem;line-height:1.2}nav a.active{color:#17202a;font-weight:800}@media(min-width:600px){.app{margin-top:20px;min-height:calc(100dvh - 40px);border-radius:24px;overflow:hidden}nav{bottom:20px;border-radius:0 0 24px 24px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}.file-label{display:block;margin-top:14px}.import-preview{margin-top:16px;padding-top:14px;border-top:1px solid #e7e9ec}.import-preview h4{margin:0 0 10px}.danger{width:100%;border:1px solid #b42318;border-radius:15px;padding:15px;font-weight:700;font-size:1rem;background:#fff;color:#8b1a1a}button:disabled{opacity:.55;cursor:not-allowed}.period-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-bottom:16px}.period-tabs button{border:1px solid #d8dde2;background:#fff;border-radius:10px;padding:8px 4px;font-size:.78rem}.period-tabs button.active{background:#17202a;color:#fff}.band{fill:#eef3ef}.diastolic-band{fill:#f2f4f6}.reference-line{stroke:#87938b;stroke-width:1;stroke-dasharray:4 4}.reference-label{fill:#59636d;font-size:9px}.personal-target{fill:none;stroke:#5c6570;stroke-width:2;stroke-dasharray:6 3}.pair-line{stroke:#aab1b8;stroke-width:1.25}.pulse-line{fill:none;stroke:#557f9f;stroke-width:2;stroke-dasharray:3 3}.pulse-point{fill:#557f9f;stroke:#fff;stroke-width:1.5}.pulse-key{background:#557f9f}.diastolic-point{fill:#fff;stroke:#78838e;stroke-width:2}.chart-guidance{margin-bottom:0}.chart-axis-labels{display:flex;justify-content:space-between;margin:-12px 30px 0 42px;color:#737d88;font-size:.72rem}.chart-help{margin:10px 0 0;font-size:.78rem}.chart-help a{color:inherit}.radio-row{display:flex;align-items:center;gap:8px}.radio-row input{width:auto}.source-list{padding-left:20px}.source-list li{margin:10px 0}.source-list a{color:#17202a}.report-range{display:grid;grid-template-columns:1fr 1fr;gap:10px}.print-report{margin-top:22px;background:#fff;padding:22px;border:1px solid #e1e5e8;border-radius:16px}.report-header{padding:0 0 14px;border-bottom:2px solid #17202a;background:none;align-items:start}.report-header h1{font-size:1.5rem}.report-header p{margin:4px 0}.report-details{display:grid;grid-template-columns:1fr 1fr;gap:20px}.report-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:18px 0}.report-summary div{border:1px solid #e1e5e8;border-radius:10px;padding:10px}.report-summary span,.report-summary small{display:block;color:#68717c;font-size:.72rem}.report-summary strong{display:block;font-size:1.3rem;margin:3px 0}.report-table{width:100%;border-collapse:collapse;font-size:.78rem}.report-table th,.report-table td{border-bottom:1px solid #e1e5e8;padding:7px 4px;text-align:left;vertical-align:top}.report-footnote{color:#68717c;font-size:.72rem;margin-top:18px}@media print{body{background:#fff}.app{max-width:none;box-shadow:none;padding:0}.app>header,nav,.no-print{display:none!important}main{padding:0}.print-report{border:0;margin:0;padding:0}.print-report .chart{break-inside:avoid}.report-table{font-size:9pt}}.systolic-line,.diastolic-line,.reference-line,.reference-label,.chart-axis-labels{display:none}.band-high{fill:#f8e9e8}.band-elevated{fill:#fbf2df}.band-reference{fill:#eaf3ed}.band-low{fill:#eef1f6}.axis-unit{fill:#59636d;font-size:10px}.pair-line{stroke:#9ca7b2;stroke-width:1.1}.chart-series-legend{justify-content:center;margin-top:2px;gap:10px 20px;color:#27313b;font-size:.8rem}.chart-series-legend i{width:12px;height:12px;border-radius:50%}.chart-series-legend .systolic-key{background:#17202a}.chart-series-legend .diastolic-key{background:#fff;border:2px solid #78838e}.chart-series-legend .pulse-key{width:20px;height:0;border-radius:0;border-top:2px dashed #557f9f;position:relative}.chart-series-legend .pulse-key:after{content:"";position:absolute;width:7px;height:7px;border-radius:50%;background:#557f9f;left:6px;top:-5px}.reference-legend{margin-top:12px;padding:10px 12px;border:1px solid #e1e5e8;border-radius:10px;display:grid;grid-template-columns:1fr 1fr;gap:6px 14px;font-size:.72rem}.reference-legend strong,.reference-legend small{grid-column:1 / -1}.reference-legend span{display:flex;align-items:center;gap:6px}.band-key{width:13px;height:13px;border-radius:3px;flex:0 0 auto}.band-key.high{background:#f8e9e8}.band-key.elevated{background:#fbf2df}.band-key.reference{background:#eaf3ed}.band-key.low{background:#eef1f6}.preference-row{display:flex;align-items:center;justify-content:space-between;gap:18px}.preference-row p{margin:4px 0 0;font-size:.82rem}.switch{position:relative;flex:0 0 auto;width:48px;height:28px}.switch input{position:absolute;opacity:0;width:1px;height:1px}.switch-control{position:absolute;inset:0;border-radius:999px;background:#cbd1d7;transition:background .15s ease}.switch-control:after{content:"";position:absolute;width:22px;height:22px;left:3px;top:3px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #00000040;transition:transform .15s ease}.switch input:checked+.switch-control{background:#33404c}.switch input:focus-visible+.switch-control{outline:3px solid #8da3b8;outline-offset:2px}@media(max-width:420px){.chart{padding-left:14px;padding-right:14px}.chart-heading h2{font-size:1.35rem}.chart-series-legend{gap:8px 13px;font-size:.74rem}}@media print{.report-chart .chart-help{display:none}.reference-legend{break-inside:avoid}}:root{color-scheme:light}html{-webkit-text-size-adjust:100%;text-size-adjust:100%}body{line-height:1.5}button,input,textarea,select,a{-webkit-tap-highlight-color:transparent}:where(a,button,input,textarea,select):focus-visible{outline:3px solid #376f9f;outline-offset:3px}.primary,.secondary,.danger,.button-link{min-height:48px;display:inline-flex;align-items:center;justify-content:center}.form-actions{align-items:stretch}.form-actions>*{min-width:0}.dt,label>div{min-height:48px}label>div input{min-height:46px}textarea{line-height:1.45}input[type=file].dt{padding:7px;min-height:52px}input[type=file]::file-selector-button{min-height:38px;margin-right:10px;border:1px solid #b9c1c9;border-radius:10px;padding:8px 12px;background:#eef1f4;color:#17202a;font:inherit;font-weight:700;cursor:pointer}input[type=file]::file-selector-button:hover{background:#e4e8ec}.radio-row{min-height:44px;padding:5px 0}.radio-row input{width:20px;height:20px;flex:0 0 auto}.switch{width:52px;height:32px}.switch-control:after{width:26px;height:26px}.switch input:checked+.switch-control:after{transform:translate(20px)}nav a{min-height:52px;align-content:center;border-radius:10px}nav a:focus-visible{outline-offset:-2px}.profile{min-height:44px;display:inline-flex;align-items:center}.period-tabs button{min-height:44px;font-size:.82rem}.actions{gap:8px}.actions a,.actions button{min-width:64px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;font-size:.82rem;border:1px solid #dfe3e7}.actions button{color:#8b1a1a;background:#fff;border-color:#e4b8b8}.text-link,.chart-help a,.source-list a{text-underline-offset:.18em;text-decoration-thickness:.08em}.chart-history-link{color:#17202a;font-weight:700;min-height:44px;display:inline-flex;align-items:center;white-space:nowrap;text-underline-offset:.18em}@media(max-width:380px){main{padding-left:16px;padding-right:16px}.target-grid,.report-range,.report-details{grid-template-columns:1fr}.form-actions{gap:8px}.chart-heading{align-items:start}}@media(forced-colors:active){.primary,.secondary,.danger,.period-tabs button,.actions a,.actions button,input[type=file]::file-selector-button{border:1px solid ButtonText}.systolic-point,.pulse-point{fill:CanvasText}.diastolic-point{fill:Canvas;stroke:CanvasText}}.local-data-notice{margin:12px 0 18px;padding:12px 14px;border:1px solid #cfd6dc;border-radius:12px;background:#f6f8fa}.local-data-notice p{margin:3px 0 0;font-size:.86rem}.medication-entry{margin:12px 0;padding:14px;border:1px solid #dfe3e7;border-radius:12px;background:#fafbfc}.medication-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.text-button{min-height:44px;border:0;background:transparent;color:#334f68;font:inherit;font-weight:700;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.compact-button{width:auto;padding-inline:18px}.date-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}.report-medications ul{padding-left:20px}.report-medications li{margin:5px 0}@media(max-width:520px){.date-pair{grid-template-columns:1fr}}.app-header{position:sticky;top:0;z-index:20;min-height:calc(82px + env(safe-area-inset-top))}.app-header-title{min-width:0}.profile{max-width:45%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:0 1 auto}:where(a,button):active{transform:translateY(1px);filter:brightness(.96)}.flash-status{margin:0 0 14px;padding:11px 13px;border:1px solid #b8d4c0;border-radius:12px;background:#edf7f0;color:#214c2d;font-weight:700}.app:has(main input:focus,main textarea:focus,main select:focus){padding-bottom:max(18px,env(safe-area-inset-bottom))}.app:has(main input:focus,main textarea:focus,main select:focus) nav{display:none}@media(max-width:520px){.chart{padding-left:10px;padding-right:10px}.chart-heading,.chart-help{margin-left:4px;margin-right:4px}}@media(orientation:landscape)and (max-height:520px){.app{max-width:760px;margin-top:0;min-height:100dvh;border-radius:0;overflow:visible;padding-bottom:calc(50px + env(safe-area-inset-bottom))}main{padding-top:14px;padding-bottom:14px}nav{bottom:0;width:min(760px,100%);border-radius:0;padding:2px 8px calc(2px + env(safe-area-inset-bottom))}nav a{min-height:44px;grid-template-columns:auto auto;justify-content:center;align-items:center;gap:5px;font-size:.68rem;padding:2px 4px}nav a span{font-size:1rem;line-height:1}}.preference-row-separated{border-top:1px solid #e1e5e8;margin-top:14px;padding-top:14px}.theme-select-label{flex:0 0 auto}.theme-select{min-height:44px;border:1px solid #cbd2d9;border-radius:10px;padding:7px 30px 7px 10px;background:#fff;color:#17202a;font:inherit;font-weight:700}html[data-theme=dark],html[data-theme=dark] body{color:#e6edf3;background:#0d1117}html[data-theme=dark] .app{background:#11161c;box-shadow:0 0 30px #0006}html[data-theme=dark] .app-header,html[data-theme=dark] nav,html[data-theme=dark] .hero,html[data-theme=dark] .card,html[data-theme=dark] .chart,html[data-theme=dark] .print-report,html[data-theme=dark] .history article,html[data-theme=dark] label>div,html[data-theme=dark] .dt,html[data-theme=dark] textarea,html[data-theme=dark] .period-tabs button,html[data-theme=dark] .theme-select{background:#171d24;color:#e6edf3;border-color:#303843}html[data-theme=dark] .app-header,html[data-theme=dark] nav{border-color:#303843}html[data-theme=dark] .profile,html[data-theme=dark] .secondary,html[data-theme=dark] .actions a,html[data-theme=dark] input[type=file]::file-selector-button{background:#222a33;color:#e6edf3}html[data-theme=dark] .primary,html[data-theme=dark] .period-tabs button.active{background:#e6edf3;color:#11161c}html[data-theme=dark] .muted,html[data-theme=dark] .date,html[data-theme=dark] header p,html[data-theme=dark] .eyebrow,html[data-theme=dark] .axis-label,html[data-theme=dark] .axis-unit,html[data-theme=dark] .chart-unit,html[data-theme=dark] .chart-axis-labels,html[data-theme=dark] .history time,html[data-theme=dark] .history span,html[data-theme=dark] .history p,html[data-theme=dark] .optional,html[data-theme=dark] .report-summary span,html[data-theme=dark] .report-summary small,html[data-theme=dark] .report-footnote{color:#aab4bf;fill:#aab4bf}html[data-theme=dark] .text-link,html[data-theme=dark] .chart-help a,html[data-theme=dark] .source-list a,html[data-theme=dark] .chart-history-link,html[data-theme=dark] .text-button{color:#dbe8f5}html[data-theme=dark] .local-data-notice,html[data-theme=dark] .medication-entry,html[data-theme=dark] .reference-legend{background:#151b22;border-color:#303843}html[data-theme=dark] fieldset,html[data-theme=dark] .report-summary div,html[data-theme=dark] .report-table th,html[data-theme=dark] .report-table td,html[data-theme=dark] dl div,html[data-theme=dark] .preference-row-separated{border-color:#303843}html[data-theme=dark] .grid-line{stroke:#313a44}html[data-theme=dark] .systolic-point,html[data-theme=dark] .chart-series-legend .systolic-key{fill:#e6edf3;background:#e6edf3}html[data-theme=dark] .diastolic-point{fill:#171d24;stroke:#aab4bf}html[data-theme=dark] .chart-series-legend{color:#d5dde5}html[data-theme=dark] .chart-series-legend .diastolic-key{background:#171d24;border-color:#aab4bf}html[data-theme=dark] .band-high{fill:#3b2628}html[data-theme=dark] .band-elevated{fill:#3a3223}html[data-theme=dark] .band-reference{fill:#203329}html[data-theme=dark] .band-low{fill:#242c38}html[data-theme=dark] .flash-status{background:#173021;border-color:#2d6240;color:#c7f0d2}html[data-theme=dark] .alert{background:#351d1f;border-color:#704044;color:#ffd7da}html[data-theme=dark] .danger,html[data-theme=dark] .actions button{background:#211719;color:#ffb4b9;border-color:#704044}:root{--app-bg: #f8f9fb;--surface: #ffffff;--surface-subtle: #f1f3f5;--text: #17202a;--muted: #68717c;--divider: #dfe3e7;--page-inset: 16px;--control-radius: 8px;--section-radius: 10px}html[data-theme=dark]{--app-bg: #11161c;--surface: #171d24;--surface-subtle: #222a33;--text: #e6edf3;--muted: #aab4bf;--divider: #303843}html{scrollbar-gutter:stable}body{overflow-x:clip}.app,main,main>*,section,.fields,label{min-width:0}input,textarea,select{min-width:0;max-width:100%}.app,.app-header{width:100%}.app-header-title{min-width:0;flex:1 1 auto}:where(a,button):active{filter:none}label>div:focus-within{outline:3px solid #376f9f;outline-offset:2px}label>div input:focus-visible{outline:none}html[data-theme=dark] label>div:focus-within{outline-color:#78a9d1}body{background:#eef1f4}html[data-theme=dark] body{background:#0d1117}.app{padding-bottom:calc(58px + env(safe-area-inset-bottom));background:var(--app-bg)}.app-header{min-height:calc(56px + env(safe-area-inset-top));padding:calc(7px + env(safe-area-inset-top)) max(var(--page-inset),env(safe-area-inset-right)) 7px max(var(--page-inset),env(safe-area-inset-left));background:var(--surface);border-bottom-color:var(--divider);gap:10px}.app-header-title h1{font-size:1.3rem;line-height:1.15}.app-header-title p{margin-top:1px;color:var(--muted);font-size:.75rem;line-height:1.2}.profile{max-width:min(42%,176px);min-height:44px;padding:5px 8px;border:1px solid var(--divider);border-radius:var(--control-radius);background:transparent;justify-content:center;font-size:.9rem;font-weight:650}.profile:focus-visible,.profile:hover{border-color:var(--divider);background:var(--surface-subtle)}main{padding:14px var(--page-inset) 18px}h2{margin-top:4px}.hero,.card,.chart{border-radius:var(--section-radius);padding:16px}.primary,.secondary,.danger{min-height:48px;border-radius:var(--control-radius);padding:11px 14px}.secondary{background:var(--surface-subtle)}fieldset,.local-data-notice,.medication-entry,.alert,.dt,textarea,label>div,.theme-select,.actions a,.actions button{border-radius:var(--control-radius)}.fields{gap:12px;margin:14px 0}label>div input{min-height:48px;padding:10px 12px}label>div span{flex:0 0 auto;padding:0 12px;color:var(--muted);border-left:1px solid var(--divider);line-height:48px}.dt,textarea{padding:11px 12px}.local-data-notice{border-color:var(--divider);background:color-mix(in srgb,var(--surface-subtle) 65%,transparent)}.home-page{width:100%}.home-section{margin:0;padding:15px 0;border:0;border-bottom:1px solid var(--divider);border-radius:0;background:transparent}.home-page>.home-section:first-of-type{padding-top:3px}.home-latest{border-bottom:0;padding-bottom:8px}.home-summary{border-top:1px solid var(--divider)}.metric-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:end}.home-latest .bp{margin:5px 0 2px;gap:5px}.home-latest .bp strong{font-size:clamp(2.35rem,10vw,2.85rem);line-height:.98;letter-spacing:-.035em}.home-latest .bp span{font-size:1.55rem}.home-latest .bp small{margin-left:2px;font-size:.72rem}.side-metric{display:grid;justify-items:end;align-content:end;color:var(--muted);line-height:1.1}.side-metric>span{margin-bottom:2px;font-size:.69rem;font-weight:750;text-transform:uppercase;letter-spacing:.07em}.side-metric>div{display:flex;align-items:baseline;justify-content:end;gap:5px}.side-metric strong{color:var(--text);font-size:1.55rem;line-height:1.05}.side-metric small{font-size:.7rem}.home-latest .date{margin:5px 0 0;font-size:.8rem}.home-add{display:inline-flex;width:auto;min-width:170px;align-items:center;justify-content:center;margin:5px 0 14px;padding-inline:18px}.section-heading-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.compact-link{min-height:44px;display:inline-flex;align-items:center;flex:0 0 auto;font-size:.82rem}.average-grid{margin-top:4px}.average-value{margin-top:0;gap:6px}.average-value strong,.average-pulse-stat strong{color:var(--text);font-size:1.55rem;line-height:1.1}.average-value small{color:var(--muted);font-size:.72rem}.home-summary-meta{margin:6px 0 10px;color:var(--muted);font-size:.76rem}.home-summary .period-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:0;margin:0;padding:2px;border:1px solid var(--divider);border-radius:var(--control-radius);background:var(--surface-subtle)}.home-summary .period-tabs button{min-height:44px;border:0;border-radius:6px;background:transparent;color:var(--muted);padding:5px 4px;font-size:.78rem;font-weight:650}.home-summary .period-tabs button+button{border-left:1px solid color-mix(in srgb,var(--divider) 75%,transparent)}.home-summary .period-tabs button.active{background:var(--surface);color:var(--text);box-shadow:0 1px 3px #00000012}.home-page>.chart{margin:0 -10px;padding:16px 0 12px;border:0;border-bottom:1px solid var(--divider);border-radius:0;background:transparent}.home-page .chart-heading,.home-page .chart-series-legend,.home-page .chart-help{margin-left:10px;margin-right:10px}.home-page .chart-heading h2{margin:0;font-size:1.18rem}.home-page .chart svg{margin-top:2px}.home-page .chart-series-legend{justify-content:flex-start;margin-top:0;gap:6px 14px;font-size:.76rem}.home-page .chart-help{margin-top:7px;text-align:left;font-size:.82rem}.home-report{padding-bottom:8px;border-bottom:0}.report-row{min-height:52px;display:flex;align-items:center;justify-content:space-between;gap:14px;color:inherit;text-decoration:none}.report-row>span:first-child{display:grid;gap:2px}.report-row strong{font-size:1rem}.report-row small{color:var(--muted);font-size:.78rem}.row-chevron{color:var(--muted);font-size:1.65rem;font-weight:350;line-height:1}.settings-page>.card,.guidance-page>.card{margin:0;padding:16px 0;border:0;border-top:1px solid var(--divider);border-radius:0;background:transparent}.settings-page>.card:first-of-type,.guidance-page>.card:first-of-type{margin-top:14px}.settings-page>.card h3,.guidance-page>.card h3{margin-bottom:6px}.settings-page .button-stack{gap:8px}.settings-page dl div{border-color:var(--divider)}.history{gap:0;margin-top:12px;border-top:1px solid var(--divider)}.history article{padding:14px 0;border:0;border-bottom:1px solid var(--divider);border-radius:0;background:transparent}.history article:last-child{border-bottom:0}.history .actions a,.history .actions button{border-radius:var(--control-radius)}fieldset{border-color:var(--divider);border-radius:var(--section-radius)}.medication-entry{border-color:var(--divider);border-radius:var(--control-radius)}.back-button{display:inline-flex;width:fit-content;min-height:44px;align-items:center;margin:-6px 0 2px -8px;padding:6px 8px;border:0;border-radius:var(--control-radius);background:transparent;color:#334f68;font:inherit;font-weight:700;cursor:pointer}.back-button:active{background:var(--surface-subtle)}html[data-theme=dark] .back-button{color:#dbe8f5}nav{min-height:calc(54px + env(safe-area-inset-bottom));padding:2px max(6px,env(safe-area-inset-right)) calc(2px + env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left));background:var(--surface);border-top-color:var(--divider)}nav a{position:relative;min-height:50px;gap:0;padding:3px 2px;border-radius:0;color:var(--muted);font-size:.68rem;font-weight:550}nav a span{font-size:1.12rem}nav a.active,html[data-theme=dark] nav a.active{background:transparent;color:var(--text);font-weight:750}nav a.active:after{content:"";position:absolute;bottom:1px;left:50%;width:20px;height:2px;border-radius:2px;background:currentColor;transform:translate(-50%)}nav a:active,html[data-theme=dark] nav a:active{background:transparent;color:var(--text);transform:translateY(1px)}html[data-theme=dark] .profile{background:transparent}html[data-theme=dark] .profile:focus-visible,html[data-theme=dark] .profile:hover,html[data-theme=dark] .secondary{background:var(--surface-subtle)}html[data-theme=dark] .home-section,html[data-theme=dark] .home-page>.chart,html[data-theme=dark] .settings-page>.card,html[data-theme=dark] .guidance-page>.card,html[data-theme=dark] .history article{background:transparent;border-color:var(--divider)}html[data-theme=dark] .home-summary .period-tabs{background:#10151b;border-color:var(--divider)}html[data-theme=dark] .home-summary .period-tabs button{background:transparent;color:var(--muted);border-color:var(--divider)}html[data-theme=dark] .home-summary .period-tabs button.active{background:var(--surface-subtle);color:var(--text);box-shadow:none}html[data-theme=dark] .report-row,html[data-theme=dark] .average-value strong,html[data-theme=dark] .side-metric strong{color:var(--text)}html[data-theme=dark] label>div span{color:var(--muted);border-color:var(--divider)}@media(max-width:360px){:root{--page-inset: 14px}.app-header-title h1{font-size:1.2rem}.profile{max-width:40%;font-size:.84rem}.home-latest .bp strong{font-size:2.25rem}.average-value strong,.side-metric strong{font-size:1.4rem}}@media(orientation:landscape)and (max-height:520px){:root{--page-inset: 14px}.app{max-width:920px;padding-bottom:calc(45px + env(safe-area-inset-bottom))}.app-header{min-height:calc(44px + env(safe-area-inset-top));padding:calc(2px + env(safe-area-inset-top)) max(var(--page-inset),env(safe-area-inset-right)) 2px max(var(--page-inset),env(safe-area-inset-left))}.app-header-title h1{font-size:1.08rem}.app-header-title p{display:none}.profile{max-width:32%;min-height:40px;padding:2px 7px;font-size:.82rem}main{padding:6px var(--page-inset) 8px}nav{min-height:calc(44px + env(safe-area-inset-bottom));width:min(920px,100%);padding:0 max(8px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(8px,env(safe-area-inset-left))}nav a{min-height:44px;display:flex;flex-direction:row;justify-content:center;align-items:center;gap:5px;padding:0 3px;font-size:.68rem}nav a span{font-size:.95rem}nav a.active:after{bottom:0}.home-page{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:14px;align-items:center}.home-page>.flash-status,.home-summary,.home-page>.chart,.home-report{grid-column:1 / -1}.home-latest{grid-column:1;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;padding:4px 0 7px;border-bottom:0}.home-latest>.eyebrow{margin:0}.home-latest-row{display:flex;align-items:baseline;justify-content:flex-start;gap:16px}.home-latest .bp{margin:0}.home-latest .bp strong{font-size:1.75rem}.home-latest .bp span{font-size:1.15rem}.latest-pulse{display:flex;align-items:baseline;gap:5px;padding:0}.latest-pulse>span{margin:0}.latest-pulse strong{font-size:1.15rem}.home-latest .date{margin:0;white-space:nowrap;font-size:.72rem}.home-add{grid-column:2;min-width:148px;min-height:44px;margin:0;padding:8px 12px}.home-summary{display:grid;grid-template-columns:auto minmax(190px,1fr) minmax(260px,.9fr);grid-template-areas:"heading metrics tabs" "meta meta tabs";gap:2px 16px;align-items:center;padding:7px 0 8px}.home-summary .section-heading-row{grid-area:heading;display:grid;align-content:center;gap:1px}.home-summary .compact-link{min-height:30px;align-items:end;font-size:.72rem}.home-summary .average-grid{grid-area:metrics;margin:0;gap:14px}.home-summary .average-value strong,.home-summary .side-metric strong{font-size:1.28rem}.home-summary-meta{grid-area:meta;margin:0;font-size:.7rem}.home-summary .period-tabs{grid-area:tabs;margin:0}.home-summary .period-tabs button{min-height:40px;font-size:.72rem}.home-page>.chart{margin-inline:-8px;padding:7px 0 5px}.home-page .chart-heading h2{font-size:1rem}.home-page .chart-help{margin-top:2px}.home-report{padding:6px 0 2px}.home-report .report-row{min-height:44px}}
