:root { color-scheme: dark; --bg:#000; --surface:#07090b; --raised:#101419; --hero:#081c2b; --text:#e9f0f6; --muted:#aebcc8; --line:#26313a; --teal:#85d2da; --pink:#ff8f9f; --primary:#b1dbf7; --primary-text:#082137; --shadow:0 24px 80px #0004; --sidebar:#05090e; --radius:23px; }
:root[data-theme=dark] { --bg:#10161d; --surface:#171f28; --raised:#202b35; --hero:#122b40; --line:#35414c; --sidebar:#131b24; }
:root[data-theme=light] { color-scheme:light; --bg:#f6f7f9; --surface:#fff; --raised:#eef3f6; --hero:#e8f0f5; --text:#132238; --muted:#617080; --line:#dce3e8; --teal:#2f6670; --pink:#c53a4a; --primary:#0b1f33; --primary-text:#fff; --shadow:0 24px 80px #1232; --sidebar:#fff; }
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--text); font-family:Inter,"Segoe UI",Roboto,"Noto Sans",Arial,sans-serif; font-size:14px; line-height:1.5; transition:background-color .25s ease,color .25s ease; -webkit-font-smoothing:antialiased; }
button,input,select,textarea { font:inherit; }
button,a,input,select,textarea { -webkit-tap-highlight-color:transparent; }
button,a { touch-action:manipulation; }
button { cursor:pointer; }
body:has(dialog[open]) { overflow:hidden; }
button:disabled { cursor:default; opacity:.5; }
button,input,select,textarea { color:inherit; }
button { border:0; }
a { color:var(--teal); text-decoration:none; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline:3px solid var(--teal); outline-offset:4px; }
button,.card,nav a { transition:background-color .22s ease,border-color .22s ease,transform .15s ease; }
button:active:not(:disabled) { transform:translateY(1px); }
.skip-link { position:fixed; top:-80px; left:20px; z-index:100; padding:12px; background:var(--surface); }
.skip-link:focus { top:10px; }
.icon { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; flex:none; }
.icon.small { width:16px; height:16px; }
.sidebar { position:fixed; inset-block:0; inset-inline-start:0; width:224px; padding:32px 22px; background:var(--sidebar); border-inline-end:1px solid var(--line); display:flex; flex-direction:column; z-index:5; }
.brand { display:flex; align-items:center; gap:11px; }
.brand img { width:46px; height:46px; }
.brand strong { font-size:24px; line-height:1.15; letter-spacing:-.8px; }
.brand small { display:block; font-size:11px; color:var(--muted); margin-top:3px; }
.sidebar nav { display:grid; gap:6px; margin-top:46px; }
.nav-link { display:flex; align-items:center; gap:13px; padding:12px 15px; border-radius:13px; color:var(--muted); font-weight:600; }
.nav-link.active { color:var(--teal); background:color-mix(in srgb,var(--teal) 14%,transparent); }
.nav-link:hover { background:var(--raised); }
.sidebar-foot { margin-top:auto; padding:18px 12px 0; border-top:1px solid var(--line); color:var(--muted); font-size:11px; }
.sidebar-foot .foot-line { display:flex; gap:8px; align-items:center; margin-bottom:8px; }
.layout { margin-inline-start:224px; max-width:1660px; }
.topbar { padding:26px 46px 0; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.demo-tag { display:inline-flex; align-items:center; gap:8px; text-transform:uppercase; font-size:10px; font-weight:700; letter-spacing:1.8px; color:var(--teal); }
.live-dot { width:6px; height:6px; background:var(--teal); border-radius:50%; box-shadow:0 0 0 4px color-mix(in srgb,var(--teal) 10%,transparent); }
.top-tools { display:flex; align-items:center; gap:8px; }
.icon-button { display:grid; place-items:center; height:38px; width:38px; border-radius:12px; background:var(--surface); border:1px solid var(--line); color:var(--muted); }
.language-select { width:111px; padding:8px 10px; font-size:12px; border:1px solid var(--line); border-radius:11px; background:var(--surface); }
main { padding:29px 46px 48px; max-width:1260px; margin-inline:auto; }
.page-head { display:flex; justify-content:space-between; align-items:center; gap:24px; margin-bottom:27px; }
h1,h2,h3,p { margin:0; }
h1 { font-size:31px; letter-spacing:-1.2px; font-weight:700; line-height:1.2; }
.subtitle { color:var(--muted); margin-top:9px; font-size:13px; }
.button { display:inline-flex; align-items:center; justify-content:center; gap:9px; padding:12px 17px; min-height:43px; border-radius:13px; background:var(--primary); color:var(--primary-text); font-weight:650; font-size:13px; white-space:nowrap; }
.button:hover:not(:disabled) { filter:brightness(1.08); }
.button.secondary { background:var(--raised); color:var(--text); border:1px solid var(--line); }
.button.quiet { background:transparent; color:var(--muted); border:1px solid var(--line); }
.button.danger { color:var(--pink); background:color-mix(in srgb,var(--pink) 12%,var(--surface)); border:1px solid color-mix(in srgb,var(--pink) 24%,var(--line)); }
.button.wide { width:100%; }
.demo-notice { color:var(--muted); font-size:12px; display:flex; align-items:center; gap:9px; padding:11px 15px; border:1px dashed var(--line); border-radius:12px; margin-bottom:22px; }
.card { padding:24px; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); min-width:0; }
.card h2 { font-size:17px; letter-spacing:-.3px; font-weight:650; }
.card-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:18px; }
.card-heading .subtitle { margin-top:4px; font-size:12px; }
.overview { display:grid; grid-template-columns:1.25fr 1fr; gap:19px; }
.latest { border:0; background:var(--hero); padding:27px 29px; display:flex; flex-direction:column; min-height:224px; }
.latest .card-heading { margin-bottom:22px; }
.round-icon { width:39px; height:39px; border-radius:13px; display:grid; place-items:center; background:color-mix(in srgb,var(--primary) 15%,transparent); color:var(--primary); }
.latest-label { display:flex; align-items:center; gap:13px; }
.latest-label h2 { font-size:16px; }
.muted { color:var(--muted); }
.small { font-size:12px; }
.reading-values { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.pressure { font-size:44px; line-height:1.15; letter-spacing:-1.6px; font-weight:700; white-space:nowrap; direction:ltr; }
.pressure span { font-weight:400; color:var(--muted); padding-inline:4px; }
.pressure-unit { display:block; font-size:12px; font-weight:400; color:var(--muted); margin-top:4px; letter-spacing:0; }
.pulse-value { font-size:26px; line-height:1.3; font-weight:650; display:flex; align-items:center; gap:7px; direction:ltr; }
.pulse-value .icon { color:var(--pink); fill:var(--pink); stroke-width:0; }
.reading-note { margin-top:auto; padding-top:18px; font-size:12px; color:var(--muted); overflow-wrap:anywhere; }
.sample-pill { font-size:10px; color:var(--muted); padding:3px 8px; border:1px solid var(--line); border-radius:7px; white-space:nowrap; }
.summary { border:0; padding:9px 0 0; background:transparent; }
.summary .card-heading { margin-bottom:15px; }
.stats { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.stat { padding:18px 14px; background:var(--surface); border:1px solid var(--line); border-radius:17px; }
.stat-label { font-size:11px; color:var(--muted); display:block; }
.stat-value { font-size:30px; line-height:1.2; margin-top:9px; display:block; font-weight:650; letter-spacing:-.9px; }
.stat-unit { font-size:11px; color:var(--muted); }
.summary-hint { margin-top:18px; display:flex; align-items:center; gap:8px; color:var(--muted); font-size:11px; }
.chart-layout { display:grid; grid-template-columns:1.65fr 1fr; gap:19px; margin-top:19px; }
.legend { display:flex; gap:15px; color:var(--muted); font-size:11px; }
.legend span { display:inline-flex; align-items:center; gap:6px; }
.legend i { height:7px; width:7px; border-radius:50%; background:var(--pink); }
.legend i.teal { background:var(--teal); }
.chart { width:100%; height:220px; display:block; overflow:visible; }
.chart text { fill:var(--muted); font-size:10px; font-family:inherit; }
.chart .grid { stroke:var(--line); stroke-width:1; }
.chart .sys { stroke:var(--pink); }
.chart .dia { stroke:var(--teal); }
.chart polyline { stroke-width:2.8; fill:none; stroke-linecap:round; stroke-linejoin:round; }
.chart-dates { display:flex; justify-content:space-between; margin-top:8px; color:var(--muted); font-size:10px; }
.report-teaser { display:flex; flex-direction:column; justify-content:space-between; gap:22px; background:linear-gradient(135deg,color-mix(in srgb,var(--teal) 8%,var(--surface)),var(--surface)); }
.report-teaser .round-icon { margin-bottom:16px; background:color-mix(in srgb,var(--teal) 14%,transparent); color:var(--teal); }
.report-teaser h2 { font-size:21px; letter-spacing:-.7px; }
.report-teaser p { color:var(--muted); margin-top:9px; font-size:12px; line-height:1.7; }
.tracking-note { display:flex; gap:13px; border-radius:15px; background:var(--raised); padding:17px 20px; margin-top:21px; align-items:flex-start; }
.tracking-note>.icon { margin-top:1px; color:var(--primary); }
.tracking-note strong { font-size:12px; }
.tracking-note p { color:var(--muted); font-size:11px; margin-top:4px; line-height:1.7; }
.segmented { display:flex; padding:4px; gap:4px; border:1px solid var(--line); background:var(--surface); border-radius:13px; width:fit-content; flex-wrap:wrap; }
.segmented button { padding:7px 12px; background:transparent; color:var(--muted); border-radius:9px; font-size:12px; }
.segmented button.active { color:var(--text); background:var(--raised); }
.history-toolbar { display:flex; flex-wrap:wrap; justify-content:space-between; gap:16px; align-items:center; margin-bottom:22px; }
.reading-list { margin-top:20px; }
.reading-row { display:grid; grid-template-columns:1.1fr 1fr .6fr 38px; align-items:center; gap:16px; padding:18px 2px; border-bottom:1px solid var(--line); }
.reading-row:last-child { border-bottom:0; }
.reading-row .row-pressure { font-size:23px; letter-spacing:-.5px; font-weight:650; direction:ltr; }
.reading-row .row-pressure small { font-size:11px; color:var(--muted); font-weight:400; margin-inline-start:5px; }
.row-date { font-size:12px; font-weight:600; }
.row-note { font-size:11px; color:var(--muted); overflow-wrap:anywhere; margin-top:3px; }
.row-pulse { font-size:17px; display:flex; align-items:center; gap:6px; direction:ltr; }
.row-pulse .icon { color:var(--pink); width:15px; }
.list-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.empty { padding:36px 12px; text-align:center; }
.empty>.icon { width:35px; height:35px; color:var(--teal); margin-bottom:14px; }
.empty p { margin-top:7px; font-size:12px; color:var(--muted); }
.form-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:18px; }
.field { display:flex; flex-direction:column; gap:8px; min-width:0; }
.field.full { grid-column:1/-1; }
.field>span,.field>label { color:var(--muted); font-size:12px; }
input,select,textarea { background:var(--surface); border:1px solid var(--line); border-radius:11px; padding:12px; width:100%; min-width:0; }
input[type=number] { appearance:textfield; }
input[type=number]::-webkit-inner-spin-button { appearance:none; }
.measurement-field input { font-size:27px; font-weight:600; padding:16px 14px; }
.input-suffix { position:relative; }
.input-suffix>span { position:absolute; top:50%; transform:translateY(-50%); right:13px; font-size:12px; color:var(--muted); }
.input-suffix input { padding-right:61px; }
textarea { min-height:82px; resize:vertical; }
.error { color:var(--pink); font-size:12px; min-height:19px; margin-top:14px; }
.two-cols { display:grid; grid-template-columns:1.2fr 1fr; gap:20px; }
.time-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:9px; margin-top:16px; }
.time-slot { border:1px solid var(--line); background:var(--raised); padding:9px 5px; border-radius:10px; text-align:center; direction:ltr; font-size:13px; font-variant-numeric:tabular-nums; }
.section-space { margin-top:24px; }
.section-label { font-size:12px; font-weight:600; margin-bottom:12px; }
.toggle-row { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:20px; }
.switch { width:41px; height:24px; border-radius:20px; background:var(--line); padding:3px; position:relative; }
.switch span { width:18px; height:18px; border-radius:50%; background:var(--muted); display:block; transition:transform .2s; }
.switch[aria-checked=true] { background:var(--teal); }
.switch[aria-checked=true] span { transform:translateX(17px); background:#082b33; }
.mode-options { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:10px; }
.mode-option { border:1px solid var(--line); background:var(--surface); color:var(--muted); border-radius:13px; padding:17px 10px; display:flex; flex-direction:column; align-items:center; gap:9px; font-size:12px; }
.mode-option.active { color:var(--teal); border-color:var(--teal); background:color-mix(in srgb,var(--teal) 7%,var(--surface)); }
.preview-actions { display:grid; gap:10px; }
.settings-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.settings-grid>.card { display:flex; flex-direction:column; }
.theme-options { display:grid; grid-template-columns:repeat(3,1fr); gap:9px; margin-top:19px; }
.theme-choice { border:1px solid var(--line); color:var(--muted); background:transparent; border-radius:13px; padding:9px; text-align:start; }
.theme-choice.active { border-color:var(--teal); color:var(--teal); }
.theme-swatch { height:51px; padding:8px; border-radius:7px; margin-bottom:7px; }
.theme-swatch div { height:7px; width:55%; border-radius:3px; margin-top:7px; }
.theme-swatch.light { background:#e7ecf0; }.theme-swatch.light div { background:#bccbd8; }
.theme-swatch.dark { background:#17212b; }.theme-swatch.dark div { background:#456176; }
.theme-swatch.amoled { background:#000; }.theme-swatch.amoled div { background:#163948; }
.theme-choice small { font-size:11px; }
.setting-action { display:flex; align-items:center; justify-content:space-between; gap:13px; padding:15px 0 0; margin-top:auto; color:var(--teal); font-size:12px; }
.settings-card-body { font-size:12px; color:var(--muted); margin:9px 0 16px; line-height:1.8; }
.signature { font-family:"Brush Script MT","Segoe Script",cursive; font-size:30px; margin-top:20px; background:linear-gradient(110deg,var(--teal),var(--primary),var(--pink),var(--teal)); background-size:250% 100%; color:transparent; background-clip:text; animation:signature-flow 9s linear infinite alternate; }
@keyframes signature-flow { from { background-position:0% 50%; } to { background-position:100% 50%; } }
.settings-footer { margin-top:20px; display:flex; gap:12px; flex-wrap:wrap; }
.app-footer { margin-top:29px; text-align:center; font-size:10px; color:var(--muted); opacity:.75; }
dialog { border:1px solid var(--line); background:var(--surface); color:var(--text); padding:0; border-radius:24px; width:min(520px,calc(100% - 30px)); max-height:calc(var(--viewport-height,100dvh) - 38px); box-shadow:var(--shadow); position:fixed; top:calc(var(--viewport-offset,0px) + var(--viewport-height,100dvh)/2); bottom:auto; margin:0 auto; transform:translateY(-50%); }
dialog::backdrop { background:#030a12b5; backdrop-filter:blur(5px); }
.modal-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:24px 24px 14px; }
.modal-head h2 { font-size:21px; letter-spacing:-.6px; }
.modal-body { padding:0 24px 24px; }
.modal-intro { color:var(--muted); font-size:12px; margin:0 0 22px; }
.modal-actions { padding:16px 24px 21px; position:sticky; bottom:0; background:var(--surface); border-top:1px solid var(--line); display:flex; gap:10px; justify-content:flex-end; }
.modal-actions .button { flex:1; }
.guide-content { display:flex; align-items:center; gap:24px; }
.guide-content img { width:140px; max-height:308px; object-fit:cover; object-position:top; border:1px solid var(--line); border-radius:18px; }
.guide-content h3 { font-size:22px; margin-bottom:12px; line-height:1.3; }
.guide-content p { font-size:12px; color:var(--muted); line-height:1.9; }
.guide-count { font-size:11px; color:var(--teal); margin-bottom:14px; }
.legal-block { margin-bottom:23px; }
.legal-block h3 { font-size:15px; margin-bottom:8px; }
.legal-block p { font-size:12px; color:var(--muted); line-height:1.9; }
dialog.alarm { background:#071b2b; color:#edf5fc; text-align:center; width:450px; border-color:#284858; }
.alarm-body { padding:30px 30px 34px; }
.alarm .modal-head { justify-content:flex-end; padding-bottom:0; }
.alarm .icon-button { color:#adc9da; border-color:#294b5f; background:#142e40; }
.alarm-visual { width:104px; height:104px; border-radius:50%; margin:0 auto 29px; display:grid; place-items:center; background:#123548; box-shadow:0 0 0 13px #0d2738,0 0 0 26px #0a2131; animation:alarm-pulse 3s ease-in-out infinite; }
.alarm-visual .icon { width:44px; height:44px; color:#9cdee6; }
@keyframes alarm-pulse { 0%,100% { box-shadow:0 0 0 13px #0d2738,0 0 0 26px #0a2131; } 50% { box-shadow:0 0 0 17px #0d2738,0 0 0 32px #0a2131; } }
.alarm-time { font-size:46px; font-weight:650; letter-spacing:-1px; direction:ltr; margin:10px 0; }
.alarm-eyebrow { font-size:10px; letter-spacing:2px; color:#87c6d0; }
.alarm h2 { font-size:27px; }
.alarm p { color:#b6c9d5; font-size:13px; line-height:1.8; margin:14px 0 24px; }
.alarm .button { background:#b2e4ea; color:#092935; margin-top:10px; }
.alarm .button.secondary { border-color:#355265; color:#c5dbe8; background:#142d3f; }
.toast { position:fixed; bottom:28px; left:50%; transform:translate(-50%,15px); opacity:0; pointer-events:none; background:var(--text); color:var(--bg); border-radius:14px; padding:14px 21px; font-size:13px; box-shadow:var(--shadow); z-index:30; max-width:min(520px,calc(100vw - 32px)); transition:opacity .2s,transform .2s; }
.toast.show { opacity:1; transform:translate(-50%,0); }
.bottom-nav,.mobile-brand { display:none; }
@media (min-width:1400px) { main { padding-top:40px; }.latest { min-height:242px; }.pressure { font-size:52px; }.chart { height:255px; } }
@media (max-width:1050px) { .sidebar { width:190px; padding:28px 15px; }.layout { margin-inline-start:190px; } main { padding:25px 27px 35px; }.topbar { padding:22px 27px 0; } h1 { font-size:27px; }.overview,.chart-layout { grid-template-columns:1fr; }.latest { min-height:216px; }.summary { padding:4px 0 0; }.summary-hint { display:none; }.report-teaser { display:none; }.two-cols { grid-template-columns:1fr; }.settings-grid { gap:13px; }.card { padding:21px; } }
@media (max-width:700px) { .sidebar { display:none; }.layout { margin-inline-start:0; }.topbar { padding:20px 20px 0; }.mobile-brand { display:flex; }.mobile-brand img { width:39px; height:39px; }.mobile-brand strong { font-size:24px; }.mobile-brand small { font-size:10px; }.topbar>.demo-tag { display:none; }.top-tools { gap:6px; }.top-tools .icon-button { width:34px;height:34px; }.language-select { width:89px; font-size:11px; padding:7px; } main { padding:26px 20px calc(91px + env(safe-area-inset-bottom)); } h1 { font-size:28px; }.page-head { display:block; margin-bottom:20px; }.page-head>.button { margin-top:17px; width:100%; }.subtitle { font-size:12px; }.demo-notice { font-size:10px; padding:9px 11px; line-height:1.65; margin-bottom:18px; }.demo-notice .icon { width:15px; }.overview { gap:18px; }.latest { min-height:215px; padding:23px; border-radius:24px; }.pressure { font-size:40px; }.pulse-value { font-size:24px; }.stat { padding:15px 10px; border-radius:16px; }.stat-label { font-size:10px; }.stat-value { font-size:28px; }.card { padding:19px; border-radius:20px; }.card h2 { font-size:16px; }.chart { height:200px; }.legend { font-size:9px; gap:9px; }.card-heading { gap:7px; }.chart-layout { margin-top:18px; }.tracking-note { padding:15px; }.tracking-note p { font-size:10px; }.bottom-nav { display:flex; position:fixed; bottom:0; inset-inline:0; padding:9px 12px calc(8px + env(safe-area-inset-bottom)); justify-content:space-around; gap:4px; background:var(--raised); border-top:1px solid var(--line); z-index:10; }.bottom-nav .nav-link { flex-direction:column; gap:4px; font-size:10px; padding:6px 10px; border-radius:12px; flex:1; min-width:0; }.bottom-nav .nav-link .icon { width:20px; height:20px; }.bottom-nav .nav-link.active { background:color-mix(in srgb,var(--teal) 13%,transparent); }.reading-row { grid-template-columns:1fr auto 30px; gap:10px; padding:15px 0; }.reading-row .row-pressure { font-size:20px; }.row-date { font-size:11px; }.row-pulse { font-size:13px; grid-column:2; grid-row:auto; }.reading-row .delete-reading { grid-column:3; grid-row:1/3; height:30px; width:30px; }.reading-row>div:first-child { grid-column:1; grid-row:1/3; }.reading-row>div:nth-child(2) { grid-column:2; grid-row:1; }.history-toolbar { gap:10px; }.settings-grid { grid-template-columns:1fr; }.settings-footer .button { flex:1; font-size:11px; }.form-grid { gap:13px; }.measurement-field input { font-size:25px; padding:14px 11px; }.modal-head { padding:20px 20px 14px; }.modal-body { padding:0 20px 21px; }.modal-actions { padding:13px 20px 18px; }.modal-head h2 { font-size:19px; }.guide-content { gap:16px; }.guide-content img { width:110px; max-height:255px; }.guide-content h3 { font-size:19px; }.guide-content p { font-size:11px; }.toast { bottom:90px; font-size:12px; }.theme-swatch { height:45px; }.app-footer { font-size:9px; } }
@media (max-width:370px) { main { padding-inline:15px; }.topbar { padding-inline:15px; }.pressure { font-size:35px; }.stat-label { font-size:9px; }.bottom-nav .nav-link { padding-inline:6px; }.guide-content img { width:92px; }.guide-content { gap:12px; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; } }
