:root{--bg:#eef3f5;--surface:#fff;--surface-soft:#f7f4f2;--primary:#2f6c83;--primary-dark:#204f67;--success:#3b7a5b;--warning:#8a5a17;--danger:#b00020;--text:#273844;--muted:#6f7d86;--line:#e5ecef;--shadow:0 10px 24px #1e344112;--radius:20px;--nav-h:78px;color:var(--text);background:var(--bg);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}html,body{min-width:320px;min-height:100vh;margin:0;overflow-x:hidden}body{background:linear-gradient(90deg,#d8e0e4,#eef3f5 50%,#d8e0e4);font-size:16px}a{color:inherit;text-decoration:none}button,input,select,textarea{font-family:inherit}button,a{-webkit-tap-highlight-color:transparent}.app-shell{background:0 0;min-height:100vh;padding:18px}.phone-frame{background:var(--surface-soft);border-radius:30px;width:100%;max-width:1280px;min-height:calc(100vh - 36px);margin:0 auto;position:relative;overflow:hidden visible}.screen{width:100%;padding:28px 34px 170px}.home-dashboard,.alerts-screen,.pressure-register-screen,.medication-screen,.measures-history-screen,.emergency-screen,.settings-screen,.configuration-screen,.profile-screen,.profile-edit-screen{max-width:1050px;margin:0 auto}.alerts-screen,.pressure-register-screen,.medication-screen,.measures-history-screen,.emergency-screen,.settings-screen,.configuration-screen,.profile-screen,.profile-edit-screen{max-width:560px}.icon-button{width:42px;height:42px;color:var(--primary);cursor:pointer;background:#edf4f6;border:none;border-radius:14px;flex-shrink:0;place-items:center;display:grid}.primary-button,.secondary-button,.logout-button{cursor:pointer;border-radius:16px;justify-content:center;align-items:center;gap:8px;width:100%;min-height:48px;font-size:14px;font-weight:800;display:flex}.primary-button{color:#fff;background:#3a7a90;border:none;box-shadow:0 8px 18px #3a7a902e}.primary-button:disabled{opacity:.55;cursor:not-allowed}.secondary-button{border:2px solid var(--primary);color:var(--primary);background:#fff}.logout-button{color:#c81d25;background:snow;border:1px solid #ffd5d5}.secondary-link-btn{color:var(--primary);text-underline-offset:3px;cursor:pointer;background:0 0;border:0;padding:0;font-weight:800;text-decoration:underline}.secondary-link-btn.muted{color:var(--muted);font-weight:700}.saved-message,.success-card{color:#2f7a58}.saved-message{text-align:center;margin:8px 0 0;font-size:12px;font-weight:800}.muted{color:var(--muted);line-height:1.45}.page-topbar,.header{align-items:center;gap:10px;margin-bottom:18px;display:flex}.page-topbar h1,.page-title h1,.header h1{color:var(--primary-dark);margin:0;font-size:clamp(1.4rem,3vw,1.8rem);line-height:1.15}.page-title p{color:var(--muted);margin:6px 0 16px}.health-card,.form-card,.history-card,.warning-card,.success-card,.profile-card,.pressure-panel,.pressure-ok-box,.keypad-card,.medication-section,.pressure-average-card,.contact-summary-card,.emergency-form-card,.settings-hero-card,.settings-group,.settings-help-card,.configuration-hub-card,.alerts-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);margin-bottom:16px;padding:18px 20px}.warning-card,.success-card,.pressure-ok-box{align-items:flex-start;gap:10px;display:flex}.warning-card{color:#7a4300;background:#fff3e6}.success-card{background:#e6faee}.warning-card h3,.success-card h3{margin:0 0 5px}.warning-card p,.success-card p{margin:0;font-size:13px;line-height:1.45}.home-dashboard{padding-bottom:180px}.home-topbar{justify-content:space-between;align-items:center;margin-bottom:22px;display:flex}.home-user{align-items:center;gap:14px;min-width:0;display:flex}.home-avatar,.avatar,.profile-avatar{color:var(--primary);border:3px solid var(--primary);background:#edf4f2;border-radius:50%;flex-shrink:0;place-items:center;font-weight:800;display:grid;overflow:hidden}.home-avatar{width:52px;height:52px;font-size:19px}.avatar{width:42px;height:42px}.profile-avatar{width:105px;height:105px;margin:0 auto 14px}.home-avatar img,.profile-avatar img,.contact-avatar-img,.photo-avatar-img,.profile-edit-avatar-img{object-fit:cover;width:100%;height:100%;display:block}.home-user-text span,.hello{color:#6c7b85;font-size:12px;font-weight:700;display:block}.home-user-text strong{color:var(--primary-dark);font-size:21px;font-weight:800;line-height:1.05;display:block}.home-user>strong{display:none}.home-topbar-actions{align-items:center;gap:12px;display:flex}.topbar-action-btn svg{width:20px;height:20px}.home-greeting{color:#fff;background:linear-gradient(135deg,#35758a,#1f536b);border-radius:24px;margin-bottom:18px;padding:24px 28px}.home-greeting-datetime{margin-bottom:14px;display:block}.home-greeting-date{color:#ffffffd9;letter-spacing:.04em;text-transform:uppercase;margin-bottom:5px;font-size:12px;font-weight:800;display:block}.home-greeting-time{color:#fff;font-size:24px;font-weight:800;line-height:1.05;display:block}.home-greeting-message{text-align:left;max-width:700px}.home-greeting-message h1{color:#fff;margin:0 0 6px;font-size:26px;font-weight:800;line-height:1.12}.home-greeting-message p{color:#ffffffeb;margin:0;font-size:14px;font-weight:600;line-height:1.45}.home-week-pill{color:#356d4c;background:#b9e7c4;border-radius:16px;align-items:center;gap:10px;max-width:540px;min-height:42px;margin-bottom:18px;padding:9px 14px;font-size:13px;font-weight:800;display:flex}.home-week-pill svg{width:17px;height:17px}.home-pressure-card,.home-ai-card,.home-med-card,.home-trend-card,.home-tip-card,.home-emergency-card,.home-muted-info{box-shadow:var(--shadow);background:#fff;border:0;border-radius:20px;margin-bottom:16px;padding:18px 20px}.home-pressure-card-header{color:var(--primary-dark);justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:12px;display:flex}.home-pressure-card h3,.home-ai-card h3,.home-med-card h3,.home-trend-card h3{color:var(--primary-dark);margin:0 0 6px;font-size:18px;font-weight:800;line-height:1.15}.home-card-subtitle{color:#7c8991;text-align:left;margin:0;font-size:13px;line-height:1.45}.home-pressure-card-header svg{flex-shrink:0;width:25px;height:25px}.pressure-gauge{background:#f2f7f8;border:0;border-radius:999px;place-items:center;width:100%;min-height:130px;margin:14px 0 10px;padding:14px 22px;display:grid}.pressure-inner h2{color:var(--primary-dark);letter-spacing:-.05em;margin:0;font-size:clamp(42px,5vw,58px);font-weight:800;line-height:1}.pressure-inner span{color:#7b8990;text-align:center;margin-top:2px;font-size:14px;font-weight:700;display:block}.heart-rate{color:#69777f;justify-content:center;align-items:center;gap:6px;margin:8px 0 10px;font-size:14px;display:flex}.heart-rate svg{color:#c23b45;fill:#c23b45;width:17px;height:17px}.home-status-box{width:100%;color:var(--success);background:#dcefdc;border-radius:999px;justify-content:center;padding:10px 12px;font-size:14px;font-weight:800;line-height:1.25;display:flex}.home-ai-card{align-items:flex-start;gap:12px;min-height:110px;display:flex}.home-card-header-icon{width:40px;height:40px;color:var(--primary);background:#edf4f6;border-radius:13px;flex-shrink:0;place-items:center;display:grid}.home-card-header-icon svg{width:21px;height:21px}.home-ai-card p,.home-tip-card p,.home-muted-info{color:var(--muted);margin:0;font-size:13px;line-height:1.35}.home-med-card h3{align-items:center;gap:10px;display:flex}.med-item{border:1px solid var(--line);background:#fbfcfc;border-radius:14px;grid-template-columns:30px 1fr auto;align-items:center;gap:10px;margin-bottom:10px;padding:10px 12px;display:grid}.med-check{background:var(--success);color:#fff;border-radius:50%;place-items:center;width:28px;height:28px;display:grid}.med-check-empty{background:0 0;border:2px solid #d7e1e5}.med-item strong{color:#263f4f;font-size:14px}.med-item p,.med-status{color:#78858d;margin:4px 0 0;font-size:12px}.med-status{color:var(--success);font-weight:800}.home-chart{background:#f3f7f8;border-radius:18px;justify-content:space-between;align-items:end;gap:8px;padding:12px 10px 8px;display:flex}.bar-day{flex-direction:column;align-items:center;gap:4px;min-width:20px;display:flex}.bar-top,.bar-bottom{width:20px;display:block}.bar-top{background:#d7e1e5;border-radius:16px 16px 8px 8px;height:34px}.bar-bottom{background:var(--primary);border-radius:12px;height:22px}.bar-day small,.home-chart-legend{color:#66767f;font-size:12px;font-weight:700}.home-chart-legend{justify-content:center;gap:16px;margin-top:10px;display:flex}.home-chart-legend span{align-items:center;gap:6px;display:flex}.legend-dot{border-radius:50%;width:10px;height:10px;display:inline-block}.legend-sys{background:var(--primary)}.legend-dia,.legend-dia-soft{background:#d7e1e5}.home-actions-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px;display:grid}.action-card{min-height:76px;color:var(--primary);text-align:center;background:#f3f6f7;border:0;border-radius:15px;flex-direction:column;justify-content:center;align-items:center;gap:8px;padding:10px 8px;font-size:12px;font-weight:800;display:flex}.action-card svg,.action-card-icon{width:19px;height:19px}.action-primary{color:#fff;background:#3a7a90}.action-warning{color:var(--warning);background:#f4e4cb}.home-emergency-card{justify-content:space-between;align-items:center;gap:14px;display:flex}.home-emergency-card p{color:var(--muted);margin:0 0 6px;font-size:13px;font-weight:700}.home-emergency-card h3{color:var(--primary-dark);margin:0;font-size:18px;font-weight:800}.home-emergency-card small{color:#78858d;font-size:13px}.home-emergency-actions{align-items:center;gap:12px;display:flex}.home-call-btn{color:#fff;background:#3a7a90;border-radius:999px;align-items:center;gap:8px;min-height:38px;padding:0 14px;font-size:13px;font-weight:800;display:inline-flex}.home-edit-contact-link{color:var(--primary);font-size:13px;font-weight:800}.home-hypertension-tips{flex-direction:column;gap:12px;display:flex}.home-hypertension-tips-head{align-items:center;gap:12px;display:flex}.home-hypertension-tips-title{color:var(--primary-dark);margin:0;font-size:18px;font-weight:800}.form-card label,.medication-label{color:#5d6c74;text-transform:uppercase;letter-spacing:.04em;margin:0 0 7px;font-size:12px;font-weight:900;display:block}.form-card input,.form-card select,.emergency-input,.medication-input-wrap input,.interval-select-wrap select,.time-input-elder,.profile-edit-textarea{border:1px solid var(--line);width:100%;min-height:44px;color:var(--text);background:#f9fafb;border-radius:12px;outline:none;padding:0 12px;font-size:15px}.profile-edit-textarea{resize:vertical;padding:12px}.form-card input:focus,.form-card select:focus,.emergency-input:focus,.medication-input-wrap input:focus,.time-input-elder:focus{box-shadow:0 0 0 2px #2f6c8340}.pressure-register-topbar{grid-template-columns:42px 1fr 42px;align-items:center;display:grid}.pressure-register-topbar h1{text-align:center}.pressure-topbar-spacer{width:42px}.pressure-values{grid-template-columns:1fr 1fr;gap:10px;display:grid}.pressure-value{border:1.5px solid var(--line);min-height:100px;color:var(--muted);cursor:pointer;background:#f8fafb;border-radius:16px;align-content:center;place-items:center;gap:4px;display:grid}.pressure-value strong{color:var(--text);font-size:1.9rem;line-height:1}.pressure-value span,.pressure-value small{font-size:12px;font-weight:800}.pressure-value.active{border-color:var(--primary);background:#fdfefe}.pressure-value.active strong,.pressure-value.active span{color:var(--primary)}.pulse-row,.first-dose-row,.food-row,.setting-row{justify-content:space-between;align-items:center;gap:12px;display:flex}.pulse-row{border-top:1px solid var(--line);margin-top:12px;padding-top:12px}.pulse-row p{align-items:center;gap:8px;margin:0;display:flex}.pulse-row svg{color:#c23b45;fill:#c23b45}.keypad-grid{grid-template-columns:repeat(3,1fr);gap:10px;display:grid}.keypad-key{border:1px solid var(--line);min-height:50px;color:var(--text);background:#f7f9fa;border-radius:12px;place-items:center;font-size:1.25rem;display:grid}.keypad-key-muted{background:#eee}.keypad-key-main{background:var(--primary);color:#fff;border:0}.medication-topbar,.emergency-topbar,.settings-topbar,.profile-edit-topbar{border-bottom:1px solid var(--line);justify-content:flex-start;padding-bottom:12px}.medication-section h2,.emergency-form-card h2,.settings-group h2{color:var(--primary-dark);margin:0 0 8px;font-size:1.25rem}.medication-section>p,.emergency-form-card>p,.configuration-intro,.profile-edit-intro{color:var(--muted);margin:6px 0 16px;line-height:1.45}.medication-input-wrap{border:1px solid var(--line);background:#f9fafb;border-radius:12px;align-items:center;gap:8px;margin-bottom:12px;padding:0 8px;display:flex}.medication-input-wrap input{background:0 0;border:0;padding:0 4px}.calendar-mini-btn,.dose-btn{color:var(--primary);cursor:pointer;background:#dfe8ec;border:0;border-radius:10px;place-items:center;display:grid}.calendar-mini-btn{width:30px;height:30px}.medication-suggestions,.time-editor-actions,.contact-photo-actions,.profile-edit-photo-actions{flex-wrap:wrap;gap:8px 14px;margin:10px 0 14px;display:flex}.suggestion-chip,.frequency-btn{color:var(--text);cursor:pointer;background:#f3f4f5;border:1px solid #ccd4da;border-radius:999px;min-height:34px;padding:0 12px;font-weight:800}.suggestion-chip.active,.frequency-btn.active{border-color:var(--primary);color:var(--primary);background:#dceff6}.dose-card,.frequency-section,.schedule-card{border:1px solid var(--line);border-radius:16px;margin-bottom:14px;padding:12px}.dose-card>span,.frequency-section>span{color:#6f7d86;text-transform:uppercase;margin-bottom:8px;font-size:12px;font-weight:900;display:block}.dose-controls{justify-content:space-between;align-items:center;display:flex}.dose-btn{color:#216d4f;background:#a8e9c6;width:42px;height:42px}.dose-value{text-align:center;color:var(--primary-dark)}.dose-value strong{font-size:2.1rem;line-height:1}.dose-value small{font-size:1rem;font-weight:800;display:block}.frequency-options{grid-template-columns:1fr 1fr;gap:10px;margin-bottom:10px;display:grid}.schedule-card{background:#fff5ea;border-color:#efc69c}.schedule-card h3{color:#543200;align-items:center;gap:8px;margin:0 0 10px;font-size:1.1rem;display:flex}.first-dose-row{background:#fef2e7;border-radius:12px;margin-bottom:10px;padding:10px}.first-dose-display,.first-dose-row strong{color:var(--text);font-size:1.35rem;font-weight:800}.first-dose-edit-btn{background:var(--warning);color:#fff;border:0;border-radius:10px;min-height:38px;padding:0 14px;font-weight:800}.time-editor-panel{background:#fffdf8;border:2px solid #e8d9c8;border-radius:14px;margin:14px 0 12px;padding:14px}.time-editor-hint{color:#5a4a3a;margin:0 0 10px;line-height:1.4}.food-switch{cursor:pointer;background:#b6a893;border:0;border-radius:999px;flex-shrink:0;justify-content:flex-start;width:38px;height:24px;padding:2px;display:flex}.food-switch span{background:#fff;border-radius:50%;width:20px;height:20px}.food-switch.on{background:var(--success);justify-content:flex-end}.medication-preview-card{border:1px solid var(--line);color:#45606d;background:#f9fcfd;border-radius:14px;align-items:center;gap:8px;margin-top:12px;padding:12px;display:flex}.medication-preview-card p{margin:0;font-size:13px}.alerts-topbar h1{text-align:center;flex:1;margin-right:42px}.alerts-intro{color:var(--muted);margin:0 0 18px;font-size:15px;line-height:1.45}.alerts-section-title{color:var(--primary-dark);margin:22px 0 12px;font-size:1.05rem}.alerts-list{flex-direction:column;gap:14px;display:flex}.alert-item{border:1px solid var(--line);background:#fff;border-radius:18px;align-items:flex-start;gap:14px;padding:16px;display:flex}.alert-item-icon{width:44px;height:44px;color:var(--warning);background:#fdf3e8;border-radius:14px;flex-shrink:0;place-items:center;display:grid}.alert-item--med .alert-item-icon{color:var(--primary);background:#e8f4f8}.alert-item h2{color:var(--primary-dark);margin:0 0 8px;font-size:1.1rem}.alert-item p{color:#3f484f;margin:0 0 8px;font-size:15px;line-height:1.4}.alert-item time,.alert-med-added{color:#8896a0;font-size:13px}.alerts-empty-meds{text-align:center;color:var(--muted);background:#f8fbfc;border:1px dashed #cfd7dc;border-radius:16px;padding:20px 16px;line-height:1.45}.alert-med-meta,.alert-med-hint{color:var(--muted);margin-bottom:8px;font-size:14px}.alert-reminder-times{color:var(--text);margin:0 0 12px;padding-left:1.1rem;font-size:15px;line-height:1.5}.alerts-footnote{color:var(--muted);align-items:flex-start;gap:8px;margin-top:20px;font-size:14px;line-height:1.45;display:flex}.history-subtitle{color:var(--muted);margin:0 0 14px;font-size:14px;line-height:1.45}.history-range-tabs{border:1px solid var(--line);background:#f6f7f8;border-radius:14px;grid-template-columns:repeat(3,1fr);gap:6px;margin-bottom:14px;padding:4px;display:grid}.history-range-tabs button{min-height:34px;color:var(--muted);background:0 0;border:0;border-radius:10px;font-weight:800}.history-range-tabs button.active{background:var(--primary);color:#fff}.average-header,.history-register-header{justify-content:space-between;align-items:center;gap:12px;display:flex}.average-header{color:var(--muted);font-size:12px;font-weight:800}.history-status-badge{border-radius:999px;align-items:center;gap:6px;padding:4px 10px;font-size:11px;font-weight:800;display:inline-flex}.history-status-dot{border-radius:50%;width:7px;height:7px;display:inline-block}.history-status-badge--normal{color:var(--success);background:#cfeadf}.history-status-badge--attention{color:#8a6d2a;background:#f2e4c9}.history-status-badge--high{color:#a83333;background:#f5d4d4}.history-status-badge--normal .history-status-dot{background:var(--success)}.history-status-badge--attention .history-status-dot{background:#c49b2e}.history-status-badge--high .history-status-dot{background:#ca3037}.history-average-reading,.pressure-average-card p{color:var(--primary);margin:10px 0 14px;font-size:1.15rem;font-weight:800}.history-chart{background:#f7fafb;border-radius:14px;padding:8px}.history-chart svg,.history-chart-svg{fill:none;width:100%;min-height:110px}.history-line--sys{stroke:var(--primary);stroke-width:2.5px;stroke-linecap:round;stroke-linejoin:round}.history-line--dia{stroke:#7ec4ea;stroke-width:2.2px;stroke-linecap:round;stroke-linejoin:round}.history-point--sys{fill:var(--primary);stroke:#fff;stroke-width:1.5px}.history-point--dia{fill:#7ec4ea;stroke:#fff;stroke-width:1.2px}.history-chart-legend-inline{color:var(--muted);justify-content:center;gap:20px;margin-top:4px;font-size:11px;font-weight:700;display:flex}.history-date-heading{color:#7b858d;margin:14px 0 8px;font-size:12px;font-weight:800}.measurement-item{border:1px solid var(--line);background:#fff;border-radius:16px;justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px;padding:10px;display:flex}.measurement-item-left{align-items:center;gap:10px;display:flex}.measurement-bar{background:var(--success);border-radius:999px;width:4px;height:34px}.measurement-bar--mid{background:#c49b2e}.measurement-bar--high{background:#ca3037}.measurement-item strong,.measurement-item-mid strong{color:var(--text);font-size:15px;display:block}.measurement-item small,.measurement-item-mid small{color:#7d8790;font-size:11px}.measurement-item-mid{text-align:center;min-width:48px}.measurement-pulse-icon{color:#ca3037}.measurement-chevron{color:#b8c2c8}.history-filter-btn{color:var(--primary);background:0 0;border:0;align-items:center;gap:5px;font-size:12px;font-weight:800;display:flex}.empty-state,.center-screen{text-align:center;min-height:65vh;color:var(--primary);place-items:center;display:grid}.center-screen{flex-direction:column;justify-content:center;display:flex}.contact-summary-card,.profile-card{text-align:center}.contact-avatar,.photo-avatar,.profile-edit-avatar-placeholder{color:var(--primary);background:#edf4f6;border-radius:50%;place-items:center;display:grid;overflow:hidden}.contact-avatar{width:64px;height:64px;margin:0 auto 8px}.photo-avatar{flex-shrink:0;width:40px;height:40px}.contact-summary-card h2,.profile-card h1{color:var(--primary-dark);margin:0;font-size:1.15rem}.contact-summary-card p,.profile-card p{color:var(--muted);margin:5px 0 14px;font-size:13px}.relation-grid{grid-template-columns:1fr 1fr;gap:8px;display:grid}.relation-card{border:1px solid var(--line);min-height:52px;color:var(--primary);background:#f9fafb;border-radius:12px;flex-direction:column;justify-content:center;align-items:center;gap:4px;font-size:13px;font-weight:800;display:flex}.relation-card.active{border-color:var(--primary);background:#ecf6fa}.photo-card{border:1px solid var(--line);text-align:left;background:#f7f8f8;border-radius:14px;align-items:center;gap:10px;width:100%;margin-top:14px;padding:10px 12px;display:flex}.photo-card strong{color:var(--primary)}.photo-card p{color:var(--muted);margin:2px 0 0;font-size:12px;line-height:1.35}.alerts-header{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.alerts-header h3{color:var(--primary);margin:0}.alerts-header p{color:var(--muted);margin:4px 0 0;font-size:13px;line-height:1.4}.hipaa-card{color:#2f7a58;background:#ecf7f1;border:1px solid #d8e8de;border-radius:11px;justify-content:center;align-items:center;gap:7px;width:100%;min-height:42px;margin-top:10px;font-size:13px;font-weight:700;display:flex}.delete-contact-btn{color:#d41f26;background:0 0;border:0;justify-content:center;align-items:center;gap:4px;width:100%;margin-top:10px;display:flex}.profile-file-input{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.profile-file-error{color:var(--danger);text-align:center;margin:8px 0 0;font-size:13px}.profile-stats{grid-template-columns:1fr 1fr;gap:12px;margin-top:16px;display:grid}.profile-stats div{background:#faf7f3;border-radius:16px;padding:12px 10px}.profile-stats span{color:#7a888e;font-size:12px;font-weight:800;display:block}.profile-stats strong{color:var(--primary);margin-top:4px;font-size:15px;display:block}.info-row{border-bottom:1px solid var(--line);align-items:center;gap:12px;padding:13px 0;display:flex}.info-row:last-child{border-bottom:0}.info-row svg{color:var(--primary)}.info-row span{color:#77858c;font-size:12px;display:block}.info-row strong{color:var(--text);margin-top:2px;font-size:14px;display:block}.profile-edit-avatar-wrap{width:112px;height:112px;margin:0 auto 12px;position:relative}.profile-edit-avatar-placeholder,.profile-edit-avatar-img{border-radius:50%;width:112px;height:112px}.profile-edit-camera-btn{background:var(--primary);color:#fff;border:0;border-radius:50%;place-items:center;width:36px;height:36px;display:grid;position:absolute;bottom:2px;right:2px}.profile-edit-name-preview{color:var(--primary-dark);margin:0;font-size:20px}.profile-edit-row{grid-template-columns:1fr 1fr;gap:12px;display:grid}.profile-edit-fieldset{border:1px solid var(--line);background:#fafbfb;border-radius:14px;margin:16px 0;padding:12px 14px}.profile-edit-fieldset legend{color:var(--muted);padding:0 6px;font-size:12px;font-weight:800}.profile-check-row{color:var(--text);align-items:center;gap:10px;margin-top:10px;font-size:15px;display:flex}.profile-check-row input{width:20px;height:20px;accent-color:var(--primary)}.profile-edit-cta{margin-bottom:16px}.settings-hero-card{color:#fff;background:linear-gradient(135deg,#1b6284,#2b7ea5)}.settings-hero-card p{letter-spacing:.06em;opacity:.85;margin:0;font-size:11px}.settings-hero-card h2{margin:6px 0 0;font-size:1.6rem;line-height:1.1}.settings-tools{grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:14px;display:grid}.settings-tools button{min-height:34px;color:var(--primary);background:#f8fbfc;border:1px solid #dce5ea;border-radius:10px;font-size:12px;font-weight:800}.setting-row{border:1px solid var(--line);background:#fff;border-radius:14px;margin-bottom:8px;padding:12px}.setting-row h3{color:var(--text);margin:0;font-size:15px}.setting-row p{color:var(--muted);margin:3px 0 0;font-size:13px}.settings-help-card{color:#b6e1f4;background:#022e45;justify-content:space-between;align-items:center;display:flex}.settings-help-card h3{color:#e7f5fc;margin:0;font-size:1.3rem}.settings-help-card p{color:#8cc4dd;margin:6px 0 0;font-size:14px;line-height:1.35}.configuration-topbar{justify-content:center}.configuration-intro{font-size:15px}.configuration-hub-grid{flex-direction:column;gap:14px;display:flex}.configuration-hub-card{align-items:center;gap:16px;min-height:80px;transition:transform .15s,box-shadow .15s;display:flex}.configuration-hub-card:hover{transform:translateY(-1px);box-shadow:0 12px 28px #0834441a}.configuration-hub-icon{width:46px;height:46px;color:var(--primary);background:#e8f4f8;border-radius:14px;flex-shrink:0;place-items:center;display:grid}.configuration-hub-text{flex:1;min-width:0}.configuration-hub-text h2{color:var(--text);margin:0 0 4px;font-size:1.05rem}.configuration-hub-text p{color:var(--muted);margin:0;font-size:14px;line-height:1.4}.configuration-hub-chevron{color:var(--primary)}.result-hero{text-align:center;color:#fff;border-radius:24px;margin-bottom:16px;padding:28px 20px}.result-hero.bajo{background:linear-gradient(135deg,#1d9a68,#0c6b48)}.result-hero.moderado{background:linear-gradient(135deg,#d99520,#9b6500)}.result-hero.alto{background:linear-gradient(135deg,#d65c21,#8f3400)}.result-hero.crítico,.result-hero.critico{background:linear-gradient(135deg,#c81d25,#7f000b)}.result-hero p{opacity:.86;margin:8px 0 4px}.result-hero h1{margin:0;font-size:1.8rem}.result-icon{background:#ffffff2b;border-radius:50%;place-items:center;width:76px;height:76px;margin:0 auto 12px;display:grid}.recommendations{flex-direction:column;gap:12px;display:flex}.recommendation-item{color:var(--muted);align-items:flex-start;gap:10px;font-size:14px;line-height:1.4;display:flex}.recommendation-item svg{color:#159262;flex-shrink:0}.risk-badge{border-radius:999px;padding:7px 12px;font-size:12px;font-weight:900;display:inline-flex}.risk-badge.bajo{color:#147247;background:#dff8ea}.risk-badge.moderado{color:#926500;background:#fff3cf}.risk-badge.alto{color:#a13b00;background:#ffe0d3}.risk-badge.crítico,.risk-badge.critico{color:#b00020;background:#ffe1e1}.symptoms-list{grid-template-columns:1fr;gap:10px;margin-top:14px;display:grid}.symptom-option{text-align:left;color:var(--text);cursor:pointer;background:#faf7f3;border:2px solid #0000;border-radius:16px;justify-content:space-between;gap:12px;padding:14px;display:flex}.symptom-option h3{margin:0 0 5px;font-size:15px}.symptom-option p{color:var(--muted);margin:0;font-size:12px;line-height:1.4}.symptom-option svg{color:#c6ced2;flex-shrink:0}.symptom-option.selected{border-color:var(--primary);background:#eaf8f6}.symptom-option.selected svg{color:var(--primary)}.submit-button{bottom:calc(var(--nav-h) + 16px);position:sticky}.bottom-nav{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);z-index:999;background:#fffffff5;border-radius:22px;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;width:min(100% - 32px,1248px);padding:7px 10px;display:grid;position:fixed;bottom:12px;left:50%;transform:translate(-50%);box-shadow:0 6px 18px #1d2e3a14}.nav-item{color:#a0a9af;text-transform:uppercase;text-align:center;border-radius:16px;flex-direction:column;justify-content:center;align-items:center;gap:5px;min-height:52px;font-size:8.5px;font-weight:800;display:flex}.nav-item.active{color:var(--primary);background:#e7f0f3}.nav-item-icon,.nav-item svg{width:18px;height:18px}@media (width>=900px){.home-dashboard{grid-template-columns:repeat(12,minmax(0,1fr));align-items:start;gap:18px;display:grid}.home-dashboard>.home-topbar,.home-dashboard>.home-greeting,.home-dashboard>.home-week-pill,.home-dashboard>.home-actions-grid,.home-dashboard>.home-muted-info,.home-dashboard>.home-emergency-card,.home-dashboard>.home-tip-card{grid-column:1/-1}.home-dashboard>.home-pressure-card{grid-column:1/span 6}.home-dashboard>.home-ai-card{grid-column:7/span 6}.home-dashboard>.home-med-card{grid-column:1/span 6}.home-dashboard>.home-trend-card{grid-column:7/span 6}.symptoms-list{grid-template-columns:repeat(2,1fr)}}@media (width>=1200px){.screen{padding-top:28px}.home-pressure-card{min-height:350px}.pressure-gauge{min-height:145px}.pressure-inner h2{font-size:56px}}@media (width<=700px){.app-shell{padding:0}.phone-frame{border-radius:0;min-height:100vh}.screen{padding:16px 14px 160px}.home-dashboard{max-width:100%;display:block}.home-topbar{margin-bottom:16px}.home-avatar{width:50px;height:50px;font-size:18px}.home-user-text strong{font-size:21px}.home-greeting{border-radius:22px;padding:22px 18px}.home-greeting-time{font-size:23px}.home-greeting-message h1{font-size:24px}.home-greeting-message p{font-size:14px}.home-week-pill{border-radius:16px;font-size:13px}.home-pressure-card,.home-ai-card,.home-med-card,.home-trend-card,.home-tip-card,.home-emergency-card,.home-muted-info{border-radius:18px;margin-bottom:14px;padding:16px}.home-pressure-card-header,.home-ai-card,.home-emergency-card{flex-direction:column;align-items:flex-start}.home-pressure-card h3,.home-ai-card h3,.home-med-card h3,.home-trend-card h3{font-size:18px}.pressure-gauge{min-height:110px}.pressure-inner h2{font-size:38px}.home-actions-grid,.frequency-options,.relation-grid,.pressure-values,.profile-edit-row{grid-template-columns:1fr}.home-actions-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.action-card{min-height:76px;font-size:12px}.bottom-nav{grid-template-columns:repeat(5,minmax(0,1fr));width:auto;bottom:8px;left:8px;right:8px;transform:none}.nav-item{min-height:56px;font-size:9px}.settings-tools{grid-template-columns:1fr}}.auth-screen{background:radial-gradient(circle at 0 0,#2f6c832e,#0000 32%),linear-gradient(135deg,#d8e0e4,#eef3f5 55%,#d8e0e4);place-items:center;width:100%;min-height:100vh;padding:24px;display:grid}.auth-card{background:var(--surface);border:1px solid var(--line);border-radius:28px;width:100%;max-width:430px;padding:28px;box-shadow:0 18px 42px #1e34411f}.auth-brand{align-items:center;gap:12px;margin-bottom:22px;display:flex}.auth-logo{width:48px;height:48px;color:var(--primary);background:#edf4f6;border:2px solid #2f6c8333;border-radius:16px;place-items:center;display:grid}.auth-brand-text strong{color:var(--primary-dark);font-size:18px;line-height:1.1;display:block}.auth-brand-text span{color:var(--muted);font-size:12px;font-weight:700;display:block}.auth-header{margin-bottom:22px}.auth-header h1{color:var(--primary-dark);margin:0 0 8px;font-size:clamp(1.8rem,6vw,2.2rem);line-height:1.05}.auth-header p{color:var(--muted);margin:0;font-size:14px;line-height:1.45}.auth-form{flex-direction:column;gap:15px;display:flex}.auth-field label{color:#5d6c74;text-transform:uppercase;letter-spacing:.04em;margin-bottom:7px;font-size:12px;font-weight:900;display:block}.auth-field input{border:1px solid var(--line);width:100%;min-height:48px;color:var(--text);background:#f9fafb;border-radius:14px;outline:none;padding:0 14px;font-size:15px}.auth-field input:focus{border-color:var(--primary);background:#fff;box-shadow:0 0 0 3px #2f6c8329}.auth-error{color:#b00020;background:#fff1f1;border:1px solid #ffd5d5;border-radius:14px;padding:11px 13px;font-size:13px;font-weight:700;line-height:1.4}.auth-submit{background:var(--primary);color:#fff;cursor:pointer;border:0;border-radius:16px;width:100%;min-height:50px;font-size:15px;font-weight:900;box-shadow:0 10px 22px #2f6c8333}.auth-submit:hover{background:var(--primary-dark)}.auth-submit:disabled{opacity:.6;cursor:not-allowed}.auth-footer{text-align:center;color:var(--muted);margin:18px 0 0;font-size:14px;line-height:1.45}.auth-footer a{color:var(--primary);text-underline-offset:3px;font-weight:900;text-decoration:underline}@media (width<=520px){.auth-screen{align-items:stretch;padding:16px}.auth-card{border-radius:26px;flex-direction:column;justify-content:center;max-width:none;min-height:calc(100vh - 32px);padding:24px 20px;display:flex}.auth-brand{margin-bottom:18px}.auth-logo{border-radius:14px;width:44px;height:44px}.auth-header{margin-bottom:18px}.auth-field input,.auth-submit{min-height:48px}}.pressure-values--three{grid-template-columns:repeat(3,1fr)}.pulse-value span{justify-content:center;align-items:center;gap:4px;display:inline-flex}.pulse-value strong{color:#2f6c83}.pulse-value.active strong{color:#b13737}.pulse-value.active{color:#ef4444;border-color:#ef4444;box-shadow:0 12px 28px #ef44442e}.pulse-value.active span,.pulse-value.active small{color:#ef4444}.alert-actions{align-items:center;gap:.75rem;margin-top:.85rem;display:flex}.alert-actions .primary-button{width:auto;min-height:38px;padding:0 1rem;font-size:.85rem}.home-trend-card--enhanced,.home-insight-card{box-shadow:var(--shadow);background:#fff;border:0;border-radius:20px;margin-bottom:16px;padding:18px 20px}.home-trend-head,.home-insight-head{justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:14px;display:flex}.home-insight-head{justify-content:flex-start}.home-insight-head h3{color:var(--primary-dark);margin:0 0 4px;font-size:18px;font-weight:800}.home-insight-head p{color:var(--muted);margin:0;font-size:13px;line-height:1.4}.weekly-trend-bars{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.weekly-trend-item{border:1px solid var(--line);background:#f7fafb;border-radius:18px;grid-template-rows:1fr auto;gap:10px;min-height:172px;padding:12px;display:grid}.weekly-trend-bars-wrap{justify-content:center;align-items:end;gap:8px;height:92px;padding-top:8px;display:flex}.weekly-bar{border-radius:999px 999px 8px 8px;width:22px;min-height:18px;display:block}.weekly-bar--previous{background:#d7e1e5}.weekly-bar--current{background:var(--primary);box-shadow:0 8px 16px #2f6c832e}.weekly-trend-info{text-align:center}.weekly-trend-info strong{color:var(--primary-dark);font-size:13px;font-weight:900;display:block}.weekly-trend-info span{color:var(--text);margin-top:3px;font-size:13px;font-weight:800;display:block}.trend-change{color:var(--muted);background:#eef3f5;border-radius:999px;margin-top:5px;padding:4px 8px;font-size:11px;font-weight:900;display:inline-flex}.trend-change--up{color:var(--warning);background:#fff3e6}.trend-change--down{color:var(--success);background:#e6faee}.home-chart-legend--enhanced{flex-wrap:wrap}.home-insight-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;display:grid}.insight-stat{border:1px solid var(--line);background:#f7fafb;border-radius:16px;padding:12px}.insight-stat span{color:var(--muted);text-transform:uppercase;letter-spacing:.04em;margin-bottom:6px;font-size:11px;font-weight:900;display:block}.insight-stat strong{color:var(--primary-dark);font-size:18px;font-weight:900;line-height:1.1;display:block}.insight-stat small{color:#7c8991;margin-top:5px;font-size:11px;font-weight:700;display:block}@media (width>=900px){.home-dashboard>.home-insight-card{grid-column:7/span 6}}@media (width<=700px){.weekly-trend-bars{grid-template-columns:1fr}.weekly-trend-item{grid-template-rows:none;grid-template-columns:86px 1fr;align-items:center;min-height:132px}.weekly-trend-bars-wrap{height:86px}.weekly-trend-info{text-align:left}.home-insight-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
