:root{--bg:#f4f6f8;--surface:#fff;--text:#1a2230;--muted:#4d5a6b;--border:#d5dce4;--accent:#1f5fbf;--accent-contrast:#fff;--focus:#b45309;--series-1:#2a78d6;--series-2:#eb6834;--green-bg:#e3f4e6;--green-fg:#14532d;--yellow-bg:#fff3cd;--yellow-fg:#664d03;--red-bg:#fde2e1;--red-fg:#8a1c1c;--radius:16px;--sans:system-ui, "Segoe UI", Roboto, sans-serif;font:18px/1.5 var(--sans);--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--bg:#10151c;--surface:#1b232d;--text:#f1f4f8;--muted:#b4c0cf;--border:#364354;--accent:#7db2ff;--accent-contrast:#0b1626;--focus:#fbbf24;--series-1:#3987e5;--series-2:#d95926;--green-bg:#173a22;--green-fg:#b9f0c6;--yellow-bg:#43360d;--yellow-fg:#ffe69c;--red-bg:#4a1a1a;--red-fg:#ffc9c7}}*,:before,:after{box-sizing:border-box}body{background:var(--bg);color:var(--text);margin:0}h1,h2,h3,p{margin:0}button,select,textarea{font:inherit;color:inherit}:focus-visible{outline:3px solid var(--focus);outline-offset:2px}.visually-hidden{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.app{max-width:480px;min-height:100dvh;margin:0 auto;padding:0 16px 32px}.page{gap:16px;transition:opacity .15s;display:grid}.page.is-pending{opacity:.6}.loading{text-align:center;padding:32px 0}.app-header{justify-content:space-between;align-items:center;gap:12px;padding:16px 0;display:flex}.brand{align-items:center;gap:10px;min-width:0;font-size:1.15rem;font-weight:700;line-height:1.2;display:flex}.brand-mark{flex:none;width:40px;height:40px}.lang-select select{border:1px solid var(--border);background:var(--surface);border-radius:12px;min-height:48px;padding:0 12px}.card{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);gap:8px;padding:16px;display:grid}.card h2{font-size:1.15rem}.card h3{font-size:1rem}.muted{color:var(--muted);font-size:.9rem}.eyebrow{color:var(--muted);text-transform:uppercase;letter-spacing:.04em;font-size:.85rem}.big{font-size:1.4rem;font-weight:700;line-height:1.25}.profile{grid-template-columns:auto 1fr;align-items:center;gap:16px}.profile h1{font-size:1.5rem;line-height:1.2}.age{font-weight:400}.avatar{object-fit:cover;background:var(--accent);width:64px;height:64px;color:var(--accent-contrast);border-radius:50%;place-items:center;font-size:1.8rem;font-weight:700;display:grid}.status-green{background:var(--green-bg);color:var(--green-fg);border-color:var(--green-fg)}.status-yellow{background:var(--yellow-bg);color:var(--yellow-fg);border-color:var(--yellow-fg)}.status-red{background:var(--red-bg);color:var(--red-fg);border-color:var(--red-fg)}.status-head{align-items:center;gap:14px;display:flex}.status-head h2{font-size:1.4rem}.status-icon{border:3px solid;border-radius:50%;flex:none;place-items:center;width:48px;height:48px;display:grid}.status-icon-svg{width:28px;height:28px;display:block}.status-contact{border-top:1px solid color-mix(in srgb, currentColor 35%, transparent);margin-top:4px;padding-top:12px;font-weight:600}.alert-list ul,.messages{margin:0;padding:0;list-style:none}.alert-list li{padding:4px 0}.metrics{grid-template-columns:1fr;gap:16px;display:grid}@media (width>=380px){.metrics{grid-template-columns:1fr 1fr}}.level{border:2px solid var(--border);background:var(--surface);color:var(--text);border-radius:22px;align-items:center;gap:8px;padding:5px 12px;font-size:1.1rem;font-weight:700;line-height:1.2;display:inline-flex}.level-icon{border:2px solid;border-radius:50%;place-items:center;width:1.5rem;height:1.5rem;font-size:.9rem;line-height:1;display:grid}.level-good{border-color:var(--green-fg);background:var(--green-bg);color:var(--green-fg)}.level-poor{border-color:var(--red-fg);background:var(--red-bg);color:var(--red-fg)}.level-unknown{color:var(--muted);border-style:dashed}.metric{transition:border-color .15s,background-color .15s;position:relative}.metric-top{justify-content:space-between;align-items:center;display:flex}.metric-icon{width:30px;height:30px;color:var(--accent);flex:none}.metric-chevron{color:var(--muted);margin-inline-start:auto;font-size:1.6rem;line-height:1}[dir=rtl] .metric-chevron{transform:scaleX(-1)}.metric-status{text-align:start;cursor:pointer;background:0 0;border:0;align-items:flex-start;min-height:48px;padding:0;display:flex}.metric-status:after{content:"";border-radius:var(--radius);position:absolute;inset:0}.metric:has(.metric-status:hover){border-color:var(--accent)}.metric:has(.metric-status:active){background:var(--bg)}.metric-status:focus-visible{outline:none}.metric:has(.metric-status:focus-visible){outline:3px solid var(--focus);outline-offset:2px}@media (prefers-reduced-motion:reduce){.metric{transition:none}}.metric-dialog{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);width:min(92vw,440px);max-height:88dvh;color:var(--text);padding:0}.metric-dialog::backdrop{background:#080c1299}.dialog-body{justify-items:start;gap:12px;padding:20px;display:grid}.dialog-body .btn{justify-self:stretch}.detail-list{gap:4px;width:100%;margin:0;display:grid}.detail-row{border-bottom:1px solid var(--border);gap:2px;padding:8px 0;display:grid}.detail-row dt{color:var(--muted);font-size:.9rem}.detail-row dd{margin:0}.dose-list{gap:8px;width:100%;margin:0;padding:0;list-style:none;display:grid}.dose{border:2px solid var(--border);border-radius:12px;gap:2px;padding:10px 14px;display:grid}.dose-drugs{opacity:.85;font-size:.9rem}.dose-taken{border-color:var(--green-fg);background:var(--green-bg);color:var(--green-fg)}.dose-late{border-color:var(--yellow-fg);background:var(--yellow-bg);color:var(--yellow-fg)}.dose-missed{border-color:var(--red-fg);background:var(--red-bg);color:var(--red-fg)}.messages{gap:12px;display:grid}.message{background:var(--bg);border-radius:12px;gap:6px;padding:12px;display:grid}.message-meta{color:var(--muted);font-size:.9rem}.badge{background:var(--red-bg);color:var(--red-fg);border-radius:999px;margin-inline-start:8px;padding:2px 8px;font-weight:700}details summary{cursor:pointer;gap:2px;min-height:48px;display:grid}form{gap:12px;display:grid}textarea{border:1px solid var(--border);background:var(--surface);resize:vertical;border-radius:12px;width:100%;padding:12px}.btn{background:var(--accent);min-height:48px;color:var(--accent-contrast);cursor:pointer;border:0;border-radius:12px;padding:0 20px;font-weight:700}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-secondary{color:var(--accent);border:2px solid var(--accent);background:0 0;justify-self:start}.demo{border-style:dashed}.demo-label{margin-top:4px;font-weight:600}.segmented{flex-wrap:wrap;gap:8px;display:flex}.segmented button{border:2px solid var(--border);background:var(--surface);cursor:pointer;border-radius:12px;flex:1 1 0;min-height:48px;padding:0 12px}.segmented button[aria-pressed=true]{border-color:var(--accent);background:var(--accent);color:var(--accent-contrast);font-weight:700}.app-footer{color:var(--muted);text-align:center;margin-top:24px;font-size:.85rem}.tabs{border-bottom:4px solid var(--accent);align-items:flex-end;gap:6px;margin-bottom:-4px;display:flex}.tabs button{border:2px solid var(--border);background:var(--bg);min-height:52px;color:var(--muted);cursor:pointer;border-bottom:0;border-radius:14px 14px 0 0;flex:1 1 0;font-size:1.1rem;font-weight:600}.tabs button:hover{border-color:var(--accent);color:var(--text)}.tabs button[aria-selected=true]{border-color:var(--accent);background:var(--accent);min-height:60px;color:var(--accent-contrast);font-size:1.2rem;font-weight:700}.panel,.ask{gap:16px;display:grid}.suggestions{gap:8px;display:grid}.suggestions button{border:2px solid var(--accent);min-height:48px;color:var(--accent);text-align:start;cursor:pointer;background:0 0;border-radius:12px;padding:8px 16px;font-weight:600}.chat{gap:12px;display:grid}.bubble{border:1px solid var(--border);border-radius:var(--radius);gap:4px;max-width:92%;padding:12px 16px;display:grid}.bubble-assistant{background:var(--surface);justify-self:start}.bubble-user{background:var(--accent);border-color:var(--accent);color:var(--accent-contrast);justify-self:end}.bubble-who{opacity:.8;font-size:.8rem;font-weight:700}.bubble-text{white-space:pre-wrap;overflow-wrap:anywhere}.ask-error{color:var(--red-fg);font-weight:600}.link-button{min-height:48px;color:var(--accent);cursor:pointer;background:0 0;border:0;justify-self:center;padding:0 12px;text-decoration:underline}.thinking{align-items:center;gap:8px;display:flex}.dots{gap:5px;display:inline-flex}.dots span{background:currentColor;border-radius:50%;width:8px;height:8px;animation:1.2s ease-in-out infinite dot-bounce}.dots span:nth-child(2){animation-delay:.15s}.dots span:nth-child(3){animation-delay:.3s}@keyframes dot-bounce{0%,60%,to{opacity:.35;transform:translateY(0)}30%{opacity:1;transform:translateY(-5px)}}@media (prefers-reduced-motion:reduce){.dots span{animation:1.6s ease-in-out infinite dot-fade}@keyframes dot-fade{0%,to{opacity:.35}50%{opacity:1}}}.dialog-trend{justify-self:stretch;gap:8px;display:grid}.dialog-trend h3,.dialog-subtitle{font-size:1rem}.dialog-subtitle{margin-top:4px}.trend{gap:8px;margin:0;display:grid}.trend-plot{border-radius:8px;position:relative}.trend-plot svg{touch-action:pan-y;width:100%;height:auto;display:block}.trend-grid{stroke:var(--border);stroke-width:1px}.trend-tick,.trend-ref-label{fill:var(--muted);font-size:13px}.trend-ref,.trend-cursor{stroke:var(--muted);stroke-width:1px}.trend-line{fill:none;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round}.trend-dot{stroke:var(--surface);stroke-width:2px}.trend-series-1 .trend-line{stroke:var(--series-1)}.trend-series-1 .trend-dot,.trend-series-1 .trend-lone{fill:var(--series-1)}.trend-series-2 .trend-line{stroke:var(--series-2)}.trend-series-2 .trend-dot,.trend-series-2 .trend-lone{fill:var(--series-2)}.trend-end-label{fill:var(--text);paint-order:stroke;stroke:var(--surface);stroke-width:3px;font-size:13px;font-weight:700}.trend-legend{flex-wrap:wrap;gap:4px 16px;margin:0;padding:0;font-size:.9rem;list-style:none;display:flex}.trend-key{vertical-align:middle;border-top:2px solid;width:18px;margin-inline-end:6px;display:inline-block}.trend-key-1{border-color:var(--series-1)}.trend-key-2{border-color:var(--series-2)}.trend-tooltip{border:1px solid var(--border);background:var(--surface);white-space:nowrap;pointer-events:none;border-radius:10px;padding:6px 10px;font-size:.9rem;position:absolute;top:0;transform:translate(-50%);box-shadow:0 4px 12px #0003}.trend-tooltip-date{color:var(--muted);font-size:.8rem}.trend-table summary{min-height:48px;color:var(--accent);cursor:pointer;align-items:center;gap:10px;font-weight:600;display:flex}.trend-table table{border-collapse:collapse;width:100%;font-size:.95rem}.trend-table th,.trend-table td{border-bottom:1px solid var(--border);text-align:start;padding:6px 8px}.trend-table th[scope=row]{font-weight:600}.chevron{border-bottom:3px solid;border-right:3px solid;width:.6em;height:.6em;margin-top:-.25em;transition:transform .15s;transform:rotate(45deg)}.faq-item{border-top:1px solid var(--border)}.faq-item summary{cursor:pointer;justify-content:space-between;align-items:center;gap:12px;min-height:48px;padding:8px 0;font-weight:600;display:flex}.faq-item summary .chevron{flex:none}.faq-item p{margin:0 0 12px}.trend-table[open] .chevron,.faq-item[open] .chevron{margin-top:.25em;transform:rotate(-135deg)}@media (prefers-reduced-motion:reduce){.chevron{transition:none}}.dictation-actions{flex-wrap:wrap;gap:12px;display:flex}.dictation-actions .btn{align-items:center;gap:8px;display:inline-flex}.dictation-actions .btn:first-child{justify-content:center;min-width:9.5rem}.stop-square{background:currentColor;border-radius:3px;width:14px;height:14px}.dictation-field{display:grid;position:relative}.listening{inset-inline:10px;border:2px solid var(--accent);background:var(--surface);pointer-events:none;border-radius:14px;align-items:center;gap:12px;padding:8px 12px;display:flex;position:absolute;bottom:10px}.mic-badge{background:var(--accent);width:38px;height:38px;color:var(--accent-contrast);border-radius:50%;flex:none;place-items:center;display:grid;position:relative}.mic-badge:before{content:"";border:2px solid var(--accent);border-radius:50%;animation:1.4s ease-out infinite ring-pulse;position:absolute;inset:0}.bars{align-items:center;gap:4px;height:30px;display:flex}.bars span{background:var(--accent);border-radius:3px;width:5px;height:100%;animation:.9s ease-in-out infinite bar-bounce}.bars span:nth-child(2){animation-delay:.12s}.bars span:nth-child(3){animation-delay:.24s}.bars span:nth-child(4){animation-delay:.36s}.bars span:nth-child(5){animation-delay:.48s}@keyframes ring-pulse{0%{opacity:.6;transform:scale(1)}to{opacity:0;transform:scale(1.7)}}@keyframes bar-bounce{0%,to{transform:scaleY(.2)}50%{transform:scaleY(.9)}}.listening-text{align-items:baseline;gap:10px;display:flex}.timer{color:var(--muted);font-variant-numeric:tabular-nums}.listening-text.thinking{align-items:center;gap:10px;display:flex}@media (prefers-reduced-motion:reduce){.mic-badge:before{opacity:.5;animation:none;transform:scale(1.15)}.bars span{animation:none;transform:scaleY(.5)}}
