/* Authenticated Medical Alert PWA — static production stylesheet */
.app-button{min-height:46px;display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:0 18px;border:1px solid transparent;border-radius:13px;font-size:12px;font-weight:720;cursor:pointer;transition:.22s ease}.app-button svg{width:16px;height:16px}.app-button.primary{color:#fff;background:var(--red);box-shadow:0 10px 25px rgba(239,35,60,.2)}.app-button.primary:hover{background:var(--red-dark);transform:translateY(-1px)}.app-button.secondary{color:var(--navy);border-color:#d8e1ea;background:#fff}.app-button.light{color:var(--navy);background:#fff;box-shadow:0 10px 28px rgba(0,0,0,.13)}.app-button.wide{width:100%}.app-kicker{display:inline-flex;align-items:center;gap:7px;color:var(--red);font-size:9px;font-weight:800;letter-spacing:.15em}.app-kicker svg{width:14px;height:14px}.app-route-loader{min-height:100svh;display:grid;place-items:center;align-content:center;gap:16px;color:#708096;background:#f4f7fa}.app-route-loader span{width:36px;height:36px;border:3px solid #dce4ec;border-top-color:var(--red);border-radius:50%;animation:appSpin .8s linear infinite}.app-route-loader p{font-size:11px}@keyframes appSpin{to{transform:rotate(360deg)}}

/* Authentication */
.auth-page{min-height:100svh;display:grid;grid-template-columns:minmax(420px,.9fr) 1.1fr;background:#f5f8fb}.auth-brand-panel{position:relative;overflow:hidden;min-height:100svh;display:flex;flex-direction:column;padding:42px 54px;color:#fff;background:linear-gradient(145deg,#06162d,#0a3266)}.auth-brand-panel:before{content:"";position:absolute;inset:0;opacity:.18;background-image:linear-gradient(rgba(255,255,255,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.08) 1px,transparent 1px);background-size:58px 58px;mask-image:linear-gradient(135deg,#000,transparent 75%)}.auth-brand-panel:after{content:"";position:absolute;width:500px;height:500px;right:-250px;bottom:-220px;border:1px solid rgba(255,255,255,.12);border-radius:50%;box-shadow:0 0 0 80px rgba(255,255,255,.03),0 0 0 160px rgba(255,255,255,.025)}.auth-logo{position:relative;z-index:2;display:flex;align-items:center;gap:10px;font-size:10px;letter-spacing:.16em}.auth-logo span{display:grid}.auth-logo b{font-size:12px;letter-spacing:.1em}.auth-brand-copy{position:relative;z-index:2;margin:auto 0;max-width:560px}.auth-brand-copy .app-kicker{color:#95c7f6}.auth-brand-copy h1{margin:24px 0;color:#fff;font-size:clamp(48px,5vw,76px);font-weight:610;line-height:.98;letter-spacing:-.06em}.auth-brand-copy>p{max-width:500px;color:#a8bdd4;font-size:16px;line-height:1.7}.auth-trust-list{display:grid;gap:12px;margin-top:34px}.auth-trust-list span{display:flex;align-items:center;gap:11px;color:#d8e4f0;font-size:11px}.auth-trust-list svg{width:17px;color:#ff6071}.auth-brand-foot{position:relative;z-index:2;display:flex;align-items:center;gap:10px;color:#8299b4;font-size:9px;text-transform:uppercase;letter-spacing:.09em}.auth-pulse{width:7px;height:7px;border-radius:50%;background:#21d49b;box-shadow:0 0 0 6px rgba(33,212,155,.1)}.auth-form-panel{position:relative;display:grid;place-items:center;align-content:center;padding:50px}.auth-card{width:min(440px,100%);padding:38px;border:1px solid #dfe7ee;border-radius:25px;background:#fff;box-shadow:0 25px 70px rgba(7,26,54,.09)}.auth-heading{margin-bottom:27px}.auth-heading h2,.auth-success h2{margin:10px 0;color:var(--navy);font-size:34px;line-height:1.05;letter-spacing:-.045em}.auth-heading p,.auth-success p{margin:0;color:#718196;font-size:12px;line-height:1.65}.auth-row{display:flex;align-items:center;justify-content:space-between;margin:4px 0 20px;font-size:10px}.auth-row>a,.auth-switch>a{color:var(--red);font-weight:750}.check-label{display:flex;align-items:center;gap:7px}.auth-separator{display:flex;align-items:center;gap:10px;margin:24px 0;color:#a0adbb;font-size:8px;text-transform:uppercase;letter-spacing:.08em}.auth-separator:before,.auth-separator:after{content:"";flex:1;height:1px;background:#e2e8ee}.auth-switch{margin:0;text-align:center;color:#718196;font-size:10px}.access-note{display:flex;align-items:center;justify-content:center;gap:6px;margin:18px 0 0!important;padding-top:16px;border-top:1px solid #edf1f4;color:#8796a7!important;font-size:8px!important}.access-note svg{width:13px}.auth-legal{position:absolute;bottom:24px;color:#9aa6b4;font-size:8px}.auth-legal a{text-decoration:underline}.auth-mobile-logo{display:none}.auth-success{text-align:center}.auth-success-icon{width:62px;height:62px;display:grid;place-items:center;margin:0 auto 20px;color:#0c8b64;border-radius:50%;background:#e9f8f2}.auth-success-icon svg{width:26px}.auth-success .app-button{margin-top:24px}.clerk-card{box-shadow:0 25px 70px rgba(7,26,54,.09)!important;border:1px solid #dfe7ee!important}.clerk-primary{background:var(--red)!important}.clerk-input{border-color:#dce4ec!important}.field-error{margin:-4px 0 12px;color:var(--red);font-size:9px}

/* Shared fields */
.app-field{display:grid;gap:7px;color:#34485f;font-size:10px;font-weight:680}.app-field>span{display:flex;align-items:center;gap:5px}.app-field>span b{color:var(--red)}.app-field>span i{margin-left:auto;color:#99a6b5;font-size:8px;font-style:normal;font-weight:500}.app-field input,.app-field select,.app-field textarea{width:100%;min-height:46px;padding:0 13px;color:var(--navy);border:1px solid #d9e2ea;border-radius:11px;outline:0;background:#fff;font:inherit;font-size:11px;font-weight:540;transition:border-color .2s,box-shadow .2s}.app-field textarea{padding-block:12px;resize:vertical;line-height:1.55}.app-field input:focus,.app-field select:focus,.app-field textarea:focus{border-color:#7e9fc3;box-shadow:0 0 0 3px rgba(20,91,167,.08)}.app-field small{color:#8998a9;font-size:8px;font-weight:500}.field-control{position:relative}.field-control>svg{position:absolute;left:13px;top:14px;width:17px;color:#8393a5}.field-control input{padding-left:40px}.field-control button{position:absolute;right:10px;top:9px;width:28px;height:28px;display:grid;place-items:center;border:0;background:none;color:#7d8da0}.field-control button svg{width:16px}.code-control input{font-size:20px!important;letter-spacing:.35em;text-align:center}.form-grid{display:grid;gap:17px}.form-grid.two{grid-template-columns:1fr 1fr}.form-grid.three{grid-template-columns:repeat(3,1fr)}.span-2{grid-column:span 2}

/* App shell */
.app-shell{min-height:100svh;display:grid;grid-template-columns:238px minmax(0,1fr);background:#f3f6f9}.app-sidebar{position:fixed;inset:0 auto 0 0;z-index:50;width:238px;display:flex;flex-direction:column;padding:20px 14px 18px;color:#b7c5d5;background:#06172f}.app-sidebar-head{display:flex;align-items:center;justify-content:space-between;padding:0 7px 20px}.app-sidebar-head>button{display:none;border:0;background:none;color:#fff}.app-brand{display:flex;align-items:center;gap:9px;color:var(--navy);font-size:9px;letter-spacing:.16em}.app-sidebar .app-brand{color:#fff}.app-brand span{display:grid}.app-brand b{font-size:11px;letter-spacing:.08em}.app-profile-status{display:grid;grid-template-columns:42px 1fr;gap:11px;align-items:center;margin:6px 4px 22px;padding:12px;border:1px solid rgba(255,255,255,.08);border-radius:14px;background:rgba(255,255,255,.045)}.app-avatar{width:38px;height:38px;display:grid;place-items:center;color:#fff;border-radius:50%;background:linear-gradient(145deg,var(--red),#b71832);font-size:9px;font-weight:750}.app-profile-status b,.app-profile-status small{display:block}.app-profile-status b{color:#fff;font-size:10px}.app-profile-status small{margin-top:3px;color:#8499b1;font-size:7px}.app-profile-status small i{display:inline-block;width:5px;height:5px;margin-right:4px;border-radius:50%;background:#27d79e}.app-side-nav{display:grid;gap:4px}.app-side-nav a{position:relative;display:flex;align-items:center;gap:11px;min-height:42px;padding:0 12px;border-radius:11px;color:#91a5bd;font-size:10px;font-weight:620}.app-side-nav a:hover,.app-side-nav a.active{color:#fff;background:rgba(255,255,255,.08)}.app-side-nav a svg{width:17px}.app-side-nav a i{position:absolute;right:-14px;width:3px;height:20px;border-radius:4px;background:var(--red)}.app-sidebar-card{margin-top:auto;padding:15px;border:1px solid rgba(255,255,255,.08);border-radius:15px;background:linear-gradient(145deg,rgba(239,35,60,.11),rgba(255,255,255,.04))}.app-sidebar-card>svg{width:20px;color:#ff6173}.app-sidebar-card b{display:block;margin-top:10px;color:#fff;font-size:10px}.app-sidebar-card p{margin:5px 0 10px;color:#8196ae;font-size:8px;line-height:1.55}.app-sidebar-card a{color:#ef6d7d;font-size:8px;font-weight:720}.app-sidebar-help{display:flex;align-items:center;gap:9px;margin:12px 5px 0;padding-top:13px;border-top:1px solid rgba(255,255,255,.07)}.app-sidebar-help svg{width:17px}.app-sidebar-help b,.app-sidebar-help small{display:block}.app-sidebar-help b{color:#b8c7d7;font-size:8px}.app-sidebar-help small{color:#607891;font-size:7px}.app-workspace{grid-column:2;min-width:0}.app-topbar{position:sticky;top:0;z-index:30;min-height:88px;display:flex;align-items:center;justify-content:space-between;padding:14px 32px;border-bottom:1px solid rgba(210,220,230,.85);background:rgba(250,252,253,.86);backdrop-filter:blur(18px)}.app-page-title>span{color:#8796a6;font-size:7px;font-weight:750;letter-spacing:.13em}.app-page-title h1{margin:4px 0 0;color:var(--navy);font-size:22px;letter-spacing:-.035em}.app-page-title p{margin:3px 0 0;color:#7c8c9f;font-size:8px}.app-top-actions{display:flex;align-items:center;gap:10px}.app-icon-button{position:relative;width:40px;height:40px;display:grid;place-items:center;border:1px solid #dce4eb;border-radius:12px;background:#fff;color:#52657b}.app-icon-button svg{width:17px}.app-icon-button i{position:absolute;right:7px;top:5px;width:13px;height:13px;display:grid;place-items:center;color:#fff;border:2px solid #fff;border-radius:50%;background:var(--red);font-size:6px;font-style:normal}.app-account{position:relative}.app-account>button{display:grid;grid-template-columns:38px 1fr 14px;align-items:center;gap:9px;padding:4px 7px 4px 4px;border:1px solid #dce4eb;border-radius:13px;background:#fff;text-align:left}.app-account button>span:nth-child(2){min-width:110px}.app-account b,.app-account small{display:block}.app-account b{color:var(--navy);font-size:9px}.app-account small{margin-top:2px;color:#8b98a8;font-size:7px}.app-account>button>svg{width:13px}.account-popover{position:absolute;right:0;top:calc(100% + 10px);width:245px;padding:10px;border:1px solid #dce4eb;border-radius:15px;background:#fff;box-shadow:0 20px 50px rgba(7,26,54,.14)}.account-popover>div{display:grid;grid-template-columns:38px 1fr;gap:9px;align-items:center;padding:7px 7px 12px;margin-bottom:6px;border-bottom:1px solid #e9eef2}.account-popover a,.account-popover>button{width:100%;min-height:38px;display:flex;align-items:center;gap:10px;padding:0 9px;border:0;border-radius:9px;background:none;color:#42566d;font-size:9px}.account-popover a:hover,.account-popover>button:hover{background:#f3f6f9}.account-popover svg{width:15px}.app-menu-button{display:none}.app-main{padding:28px 32px 70px}.app-bottom-nav{display:none}.app-page-enter{animation:appPageIn .42s cubic-bezier(.2,.8,.2,1)}@keyframes appPageIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* Dashboard */
.setup-banner{position:relative;overflow:hidden;display:grid;grid-template-columns:74px 1fr auto;align-items:center;gap:20px;padding:24px 28px;color:#fff;border-radius:20px;background:linear-gradient(130deg,#0b3262,#06172f);box-shadow:0 18px 45px rgba(7,26,54,.14)}.setup-banner:after{content:"";position:absolute;right:20%;width:220px;height:220px;border:1px solid rgba(255,255,255,.08);border-radius:50%;box-shadow:0 0 0 50px rgba(255,255,255,.025)}.setup-banner>div,.setup-banner>a{position:relative;z-index:2}.setup-ring{width:66px;height:66px;display:grid;place-items:center;border-radius:50%;background:conic-gradient(var(--red) var(--progress),rgba(255,255,255,.13) 0)}.setup-ring:before{content:"";position:absolute;width:54px;height:54px;border-radius:50%;background:#0a294f}.setup-ring span{position:relative;z-index:1;font-size:11px;font-weight:750}.setup-banner .app-kicker{color:#94c8f6}.setup-banner h2{margin:6px 0 4px;font-size:20px;letter-spacing:-.03em}.setup-banner p{margin:0;color:#9eb4ca;font-size:9px}.overview-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:16px 0}.overview-metrics article{position:relative;min-height:124px;padding:17px;border:1px solid #dde5ec;border-radius:16px;background:#fff}.overview-metrics article>div{display:flex;align-items:flex-end;justify-content:space-between;margin-top:15px}.overview-metrics small{color:#7b8c9f;font-size:8px}.overview-metrics b{color:var(--navy);font-size:20px;letter-spacing:-.03em}.metric-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:10px}.metric-icon svg{width:17px}.metric-icon.red{color:var(--red);background:#fff0f2}.metric-icon.blue{color:#1765b3;background:#edf5fd}.metric-icon.navy{color:var(--navy);background:#edf1f6}.metric-icon.green{color:#0a946b;background:#eaf8f3}.overview-metrics article>i{display:block;height:4px;margin-top:11px;border-radius:9px;background:#e8edf2}.overview-metrics article>i em{display:block;height:100%;border-radius:inherit;background:var(--red)}.overview-metrics article>p{display:flex;align-items:center;gap:5px;margin:10px 0 0;color:#8191a3;font-size:7px}.overview-metrics article>p svg{width:11px;color:#0a9a6c}.overview-grid{display:grid;grid-template-columns:1.25fr .75fr;gap:12px}.app-panel{border:1px solid #dce4ec;border-radius:18px;background:#fff;box-shadow:0 8px 28px rgba(7,26,54,.035)}.profile-health-panel{grid-row:span 2;padding:22px}.qr-mini-panel{grid-row:span 2;padding:22px;text-align:center}.contacts-preview,.activity-preview{padding:20px}.panel-heading{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:17px;text-align:left}.panel-heading h3{margin:5px 0 0;color:var(--navy);font-size:16px;letter-spacing:-.025em}.panel-heading>a{display:flex;align-items:center;gap:5px;color:#315e91;font-size:8px;font-weight:680}.panel-heading>a svg{width:13px}.profile-health-list>div{display:grid;grid-template-columns:31px 1fr auto;align-items:center;gap:10px;padding:12px 0;border-top:1px solid #edf1f4}.profile-health-list>div>span:first-child{width:27px;height:27px;display:grid;place-items:center;border-radius:50%;font-size:9px;font-weight:800}.profile-health-list .complete{color:#087d5a;background:#e9f8f2}.profile-health-list .review{color:#b0760b;background:#fff5dc}.profile-health-list svg{width:13px}.profile-health-list b,.profile-health-list small{display:block}.profile-health-list b{font-size:9px}.profile-health-list small{margin-top:3px;color:#8493a4;font-size:7px}.health-state{color:#8796a6;font-size:7px}.panel-footer-link{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:12px;padding:12px;color:#204f82;border-radius:10px;background:#f0f5fa;font-size:8px;font-weight:720}.panel-footer-link svg{width:13px}.realistic-qr{position:relative;width:150px;height:150px;display:grid;place-items:center;margin:4px auto 12px;padding:14px;border:1px solid #dce4ec;border-radius:18px;background:#fff;box-shadow:0 12px 28px rgba(7,26,54,.08)}.qr-pattern{width:100%;height:100%;display:grid;grid-template-columns:repeat(9,1fr);gap:2px}.qr-pattern i{border-radius:1px;background:#fff}.qr-pattern i.fill{background:var(--navy)}.qr-logo{position:absolute;width:34px;height:34px;display:grid;place-items:center;color:#fff;border:4px solid #fff;border-radius:50%;background:var(--red)}.qr-status{display:inline-flex;align-items:center;gap:6px;margin:0 auto 14px;padding:6px 9px;color:#977110;border-radius:99px;background:#fff5dc;font-size:7px;font-weight:720}.qr-status i{width:5px;height:5px;border-radius:50%;background:#d49a13}.qr-status.active{color:#087b58;background:#e8f8f2}.qr-status.active i{background:#14a779}.mini-contact{display:grid;grid-template-columns:36px 1fr auto;align-items:center;gap:10px;padding:10px 0;border-top:1px solid #edf1f4}.contact-initial{width:34px;height:34px;display:grid;place-items:center;color:#fff;border-radius:50%;background:#244f80;font-size:8px;font-weight:750}.contact-initial.tone-1{background:var(--red)}.contact-initial.tone-2{background:#788a9f}.mini-contact b,.mini-contact small{display:block}.mini-contact b{font-size:9px}.mini-contact small{margin-top:2px;color:#8594a6;font-size:7px}.mini-contact>i{display:flex;gap:5px;color:#4b6d91;font-size:9px;font-style:normal}.mini-contact svg{width:12px}.mini-activity{display:grid;grid-template-columns:31px 1fr auto;gap:9px;align-items:start;padding:10px 0;border-top:1px solid #edf1f4}.mini-activity>span{width:29px;height:29px;display:grid;place-items:center;color:#416c98;border-radius:9px;background:#eef4fa}.mini-activity svg{width:14px}.mini-activity b,.mini-activity small{display:block}.mini-activity b{font-size:8px}.mini-activity small{margin-top:2px;color:#8594a5;font-size:7px}.mini-activity time{color:#a0acb9;font-size:6px}.emergency-message-callout{display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:13px;margin-top:12px;padding:16px 18px;border:1px solid #dce4ec;border-radius:16px;background:#fff}.emergency-message-callout>span{width:40px;height:40px;display:grid;place-items:center;color:var(--red);border-radius:12px;background:#fff0f2}.emergency-message-callout svg{width:18px}.emergency-message-callout b{font-size:10px}.emergency-message-callout p{margin:3px 0 0;color:#8090a1;font-size:8px}.emergency-message-callout>a{display:flex;align-items:center;gap:5px;color:#215488;font-size:8px;font-weight:720}.emergency-message-callout>a svg{width:13px}

/* Product pages */
.medical-summary-card{display:flex;align-items:center;justify-content:space-between;padding:24px;border-radius:20px;color:#fff;background:linear-gradient(135deg,#0a3263,#07182f)}.summary-identity{display:flex;align-items:center;gap:15px}.large-app-avatar{width:58px;height:58px;display:grid;place-items:center;color:#fff;border-radius:18px;background:var(--red);font-size:14px;font-weight:750}.summary-identity h2{margin:5px 0;font-size:23px}.summary-identity p{margin:0;color:#9eb3c9;font-size:8px}.blood-badge{width:52px;height:52px;display:grid;place-items:center;align-content:center;margin-left:12px;color:#ff6778;border:1px solid rgba(255,255,255,.12);border-radius:14px;background:rgba(255,255,255,.08);font-size:15px;font-weight:800}.blood-badge small{color:#8ea6be;font-size:6px;text-transform:uppercase}.summary-actions{display:flex;gap:8px}.medical-section-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}.summary-section{padding:20px}.summary-section-head{display:flex;align-items:center;gap:10px;margin-bottom:14px}.summary-section-head>span{width:34px;height:34px;display:grid;place-items:center;color:#285f99;border-radius:10px;background:#edf4fb}.summary-section-head svg{width:16px}.summary-section-head h3{font-size:13px}.summary-section-head i{display:flex;align-items:center;gap:4px;margin-left:auto;color:#86690d;font-size:7px;font-style:normal}.summary-section-head i svg{width:10px}.summary-row{display:flex;justify-content:space-between;gap:20px;padding:10px 0;border-top:1px solid #edf1f4;font-size:8px}.summary-row span{color:#8493a5}.summary-row b{text-align:right}.app-page-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;padding:18px;border:1px solid #dce4ec;border-radius:17px;background:#fff}.app-page-toolbar b{font-size:12px}.app-page-toolbar p{margin:4px 0 0;color:#7d8d9f;font-size:8px}.contact-management-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.managed-contact{padding:18px;border:1px solid #dce4ec;border-radius:18px;background:#fff}.managed-contact-head{display:grid;grid-template-columns:42px 1fr auto;gap:10px;align-items:center}.managed-contact-head .contact-initial{width:42px;height:42px}.managed-contact-head b,.managed-contact-head small{display:block}.managed-contact-head b{font-size:10px}.managed-contact-head small{margin-top:3px;color:#8795a6;font-size:7px}.managed-contact-head>button{border:0;background:none;color:#8493a5}.managed-contact-head svg{width:17px}.managed-contact-info{display:grid;gap:7px;margin:15px 0;padding:12px 0;border-top:1px solid #edf1f4;border-bottom:1px solid #edf1f4}.managed-contact-info span{display:flex;align-items:center;gap:7px;color:#61748a;font-size:8px}.managed-contact-info svg{width:13px}.permission-summary{display:flex;gap:6px}.permission-summary span{display:flex;align-items:center;gap:4px;padding:5px 8px;color:#8e9ba9;border-radius:7px;background:#f1f4f7;font-size:7px}.permission-summary span.on{color:#087b58;background:#e8f8f2}.permission-summary svg{width:10px}.contact-access{margin-top:13px;padding:10px;border-radius:10px;background:#f3f7fa}.contact-access small,.contact-access b{display:block}.contact-access small{color:#8998a8;font-size:6px;letter-spacing:.1em}.contact-access b{display:flex;align-items:center;gap:5px;margin-top:5px;font-size:8px}.contact-access svg{width:12px;color:#315f90}.card-actions{display:flex;gap:12px;margin-top:13px}.card-actions button{display:flex;align-items:center;gap:5px;border:0;background:none;color:#315f90;font-size:8px;font-weight:700}.card-actions button svg{width:12px}.card-actions .danger{color:#d7374b}.app-empty{min-height:380px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;border:1px dashed #cfd9e3;border-radius:20px;background:#fafcfd}.app-empty>svg{width:40px;color:#90a2b6}.app-empty h2{margin:15px 0 7px}.app-empty p{max-width:380px;margin:0 0 20px;color:#8090a2;font-size:9px;line-height:1.6}.app-modal-backdrop{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:20px;background:rgba(3,14,31,.56);backdrop-filter:blur(5px);animation:modalFade .2s}.app-modal{width:min(650px,100%);max-height:90svh;overflow:auto;padding:26px;border-radius:22px;background:#fff;box-shadow:0 30px 90px rgba(0,0,0,.22);animation:modalIn .3s cubic-bezier(.2,.8,.2,1)}@keyframes modalFade{from{opacity:0}}@keyframes modalIn{from{opacity:0;transform:translateY(14px) scale(.98)}}.app-modal-head{display:flex;justify-content:space-between;margin-bottom:20px}.app-modal-head h2{margin:6px 0 0;font-size:23px;letter-spacing:-.04em}.app-modal-head>button{width:34px;height:34px;border:0;border-radius:50%;background:#f0f3f6;font-size:20px}.modal-section{margin:20px 0}.modal-section>b{font-size:10px}.choice-row{display:flex;gap:8px;margin-top:9px}.choice-row button,.contact-permission-editor button{min-height:38px;display:flex;align-items:center;gap:6px;padding:0 11px;color:#607286;border:1px solid #dce4ec;border-radius:9px;background:#fff;font-size:8px}.choice-row button.selected,.contact-permission-editor button.selected{color:#0a7d5b;border-color:#bde1d4;background:#eaf8f3}.choice-row svg,.contact-permission-editor svg{width:13px}.app-modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:22px;padding-top:18px;border-top:1px solid #e7edf2}.qr-hero-card{display:grid;grid-template-columns:1fr 230px;align-items:center;gap:40px;padding:35px 45px;color:#fff;border-radius:23px;background:linear-gradient(140deg,#071a36,#0a3971)}.qr-hero-card h2{max-width:570px;margin:12px 0;font-size:35px;line-height:1.05;letter-spacing:-.05em}.qr-hero-card p{max-width:560px;color:#9fb5cd;font-size:10px;line-height:1.7}.large-qr-display{display:flex;flex-direction:column;align-items:center;padding:18px;color:var(--navy);border-radius:18px;background:#fff;box-shadow:0 20px 45px rgba(0,0,0,.2)}.qr-placeholder{position:relative;width:150px;height:150px;display:grid;place-items:center;background:repeating-linear-gradient(45deg,#071a36 0 5px,#fff 5px 10px)}.qr-placeholder>svg{width:105px;height:105px;padding:15px;color:var(--navy);background:#fff}.qr-center-mark{position:absolute;width:32px;height:32px;display:grid;place-items:center;color:#fff;border:4px solid #fff;border-radius:50%;background:var(--red)}.large-qr-display>span{margin-top:11px;font-size:9px;font-weight:800;letter-spacing:.12em}.large-qr-display small{color:#8291a2;font-size:6px}.qr-action-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:14px 0}.qr-action-grid article{padding:22px}.qr-action-grid article>svg{width:22px;color:#265f99}.qr-action-grid h3{margin:14px 0 7px;font-size:14px}.qr-action-grid p{min-height:42px;margin:0 0 15px;color:#7d8d9e;font-size:8px;line-height:1.6}.activation-strip{display:grid;grid-template-columns:38px 1fr auto;gap:12px;align-items:center;padding:17px;border:1px solid #f0ddab;border-radius:16px;background:#fff9e9}.activation-strip>svg{width:22px;color:#c38a09}.activation-strip b{font-size:10px}.activation-strip p{margin:3px 0 0;color:#8d7a50;font-size:8px}.activity-filter{display:flex;gap:5px;margin-bottom:16px}.activity-filter button{min-height:36px;padding:0 13px;border:1px solid #dce4ec;border-radius:9px;background:#fff;color:#718196;font-size:8px}.activity-filter button.active{color:#fff;border-color:var(--navy);background:var(--navy)}.activity-timeline{border:1px solid #dce4ec;border-radius:18px;background:#fff}.activity-timeline article{display:grid;grid-template-columns:42px 1fr auto;gap:13px;align-items:center;padding:18px 22px;border-bottom:1px solid #e8edf2}.activity-timeline article:last-child{border:0}.activity-symbol{width:38px;height:38px;display:grid;place-items:center;color:#2b6198;border-radius:11px;background:#edf4fa}.activity-symbol svg{width:17px}.activity-timeline b{font-size:10px}.activity-timeline p{margin:4px 0;color:#77889b;font-size:8px}.activity-timeline small{font-size:7px;color:#98a5b3}.activity-timeline article>i{padding:5px 7px;color:#0a7e5b;border-radius:99px;background:#e8f8f2;font-size:6px;font-style:normal}.app-empty.compact{min-height:190px;margin-top:12px}.settings-profile{display:flex;align-items:center;gap:14px;padding:22px}.settings-profile>div{flex:1}.settings-profile h2{margin:0;font-size:19px}.settings-profile p{margin:3px 0;color:#718297;font-size:9px}.settings-profile>div>span{color:#0a805c;font-size:7px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0}.settings-grid article{padding:22px}.settings-section-head{display:flex;gap:11px;margin-bottom:18px}.settings-section-head>svg{width:21px;color:#2c649d}.settings-section-head h3{margin:0;font-size:13px}.settings-section-head p{margin:4px 0 0;color:#7b8c9f;font-size:8px}.setting-row{display:flex;align-items:center;justify-content:space-between;padding:13px 0;border-top:1px solid #edf1f4}.setting-row b,.setting-row small{display:block}.setting-row b{font-size:9px}.setting-row small{margin-top:3px;color:#8796a6;font-size:7px}.setting-value{font-size:8px;color:#53687f}.mini-toggle{position:relative;width:34px;height:19px;border:0;border-radius:99px;background:#cbd5df}.mini-toggle i{position:absolute;top:3px;left:3px;width:13px;height:13px;border-radius:50%;background:#fff}.mini-toggle.on{background:#0f8d66}.mini-toggle.on i{left:18px}.danger-zone{display:flex;align-items:center;justify-content:space-between;padding:20px}.danger-zone>div{display:flex;align-items:center;gap:12px}.danger-zone svg{width:20px;color:#c43a4b}.danger-zone b{font-size:10px}.danger-zone p{margin:4px 0 0;color:#8191a3;font-size:8px}.danger-zone>button{color:#c92f43;border:1px solid #f0cbd1;border-radius:9px;background:#fff4f5;padding:9px 12px;font-size:8px}.reset-confirm{display:flex;align-items:center;gap:8px;color:#8b3440;font-size:8px}.reset-confirm button{border:0;border-radius:7px;padding:7px 9px}.reset-confirm button:first-child{color:#fff;background:#c92f43}

/* Onboarding */
.onboarding-shell{min-height:100svh;display:grid;grid-template-columns:300px minmax(0,1fr);background:#f5f8fb}.onboarding-sidebar{position:fixed;inset:0 auto 0 0;width:300px;overflow-y:auto;padding:24px 20px;color:#aebfd1;background:#071a36}.onboarding-brand{color:#fff;margin-bottom:38px}.onboarding-intro{padding:0 8px 22px;border-bottom:1px solid rgba(255,255,255,.08)}.onboarding-intro .app-kicker{color:#89bde9}.onboarding-intro h2{margin:11px 0 7px;color:#fff;font-size:20px;line-height:1.12;letter-spacing:-.03em}.onboarding-intro p{margin:0;color:#8298b0;font-size:8px;line-height:1.55}.onboarding-steps{display:grid;margin-top:16px}.onboarding-steps button{position:relative;display:grid;grid-template-columns:32px 1fr;gap:11px;align-items:center;padding:9px 8px;border:0;border-radius:10px;background:none;text-align:left}.onboarding-steps button>span{position:relative;z-index:2;width:29px;height:29px;display:grid;place-items:center;color:#7690aa;border:1px solid #294360;border-radius:50%;background:#0a2343;font-size:8px}.onboarding-steps button:not(:last-child):after{content:"";position:absolute;left:22px;top:39px;width:1px;height:10px;background:#294360}.onboarding-steps b,.onboarding-steps small{display:block}.onboarding-steps b{color:#9eb0c4;font-size:9px}.onboarding-steps small{margin-top:2px;color:#5f7690;font-size:7px}.onboarding-steps button.active{background:rgba(255,255,255,.07)}.onboarding-steps button.active>span{color:#fff;border-color:var(--red);background:var(--red);box-shadow:0 0 0 5px rgba(239,35,60,.1)}.onboarding-steps button.active b{color:#fff}.onboarding-steps button.done>span{color:#fff;border-color:#168b69;background:#168b69}.onboarding-steps svg{width:12px}.onboarding-security{display:flex;align-items:center;gap:10px;margin:18px 7px 0;padding-top:15px;border-top:1px solid rgba(255,255,255,.08)}.onboarding-security>svg{width:18px;color:#46c69f}.onboarding-security b,.onboarding-security small{display:block}.onboarding-security b{color:#adc0d3;font-size:8px}.onboarding-security small{margin-top:2px;color:#627a93;font-size:7px}.onboarding-main{grid-column:2;min-width:0}.onboarding-topbar{height:70px;display:flex;align-items:center;justify-content:space-between;padding:0 38px;border-bottom:1px solid #dce4ec;background:rgba(255,255,255,.86);backdrop-filter:blur(15px)}.onboarding-topbar a,.onboarding-topbar span{display:flex;align-items:center;gap:6px;color:#687b91;font-size:8px}.onboarding-topbar svg{width:14px}.onboarding-content{width:min(880px,calc(100% - 70px));margin:0 auto;padding:52px 0 120px;animation:stepIn .35s cubic-bezier(.2,.8,.2,1)}.onboarding-content.slide--1{animation-name:stepBack}@keyframes stepIn{from{opacity:0;transform:translateX(12px)}}@keyframes stepBack{from{opacity:0;transform:translateX(-12px)}}.onboarding-heading{position:relative;margin-bottom:30px}.step-chip{color:var(--red);font-size:8px;font-weight:800;letter-spacing:.12em}.onboarding-heading h1{margin:10px 0;color:var(--navy);font-size:38px;letter-spacing:-.05em}.onboarding-heading>p{max-width:670px;margin:0;color:#718297;font-size:11px;line-height:1.65}.heading-progress{position:absolute;right:0;top:0;width:180px}.heading-progress>span{display:block;margin-bottom:6px;color:#708196;font-size:8px;text-align:right}.heading-progress>i,.onboarding-mobile-progress>i{display:block;height:4px;border-radius:10px;background:#e2e8ee}.heading-progress em,.onboarding-mobile-progress em{display:block;height:100%;border-radius:inherit;background:var(--red);transition:width .4s}.step-stack{display:grid;gap:14px}.form-card{padding:23px;border:1px solid #dce4ec;border-radius:18px;background:#fff;box-shadow:0 8px 25px rgba(7,26,54,.035)}.form-heading{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:20px;padding-bottom:14px;border-bottom:1px solid #e9eef2}.form-heading h3{margin:0;color:var(--navy);font-size:14px}.form-heading p{margin:4px 0 0;color:#7c8c9e;font-size:8px}.card-section-heading{display:flex;justify-content:space-between;align-items:center}.card-section-heading>div{display:flex;align-items:center;gap:12px}.form-icon{width:38px;height:38px;display:grid;place-items:center;color:#2c639b;border-radius:11px;background:#edf4fb}.form-icon svg{width:18px}.card-section-heading h3{margin:0;font-size:13px}.card-section-heading p{margin:4px 0 0;color:#7e8fa1;font-size:8px}.card-section-heading>i{color:#9aa7b5;font-size:7px;font-style:normal}.photo-uploader{display:flex;align-items:center;gap:17px;margin-top:19px}.photo-preview{position:relative;width:76px;height:76px;display:grid;place-items:center;overflow:hidden;color:#8a9aab;border:1px dashed #becbd8;border-radius:18px;background:#f3f6f9}.photo-preview img{object-fit:cover}.photo-preview svg{width:26px}.photo-uploader>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.photo-uploader small{flex-basis:100%;color:#8c9aa9;font-size:7px}.text-button{border:0;background:none;font-size:8px}.text-button.danger{color:#cd3448}.setting-choice{display:flex;align-items:center;gap:11px;margin-top:20px;padding:14px;border-radius:12px;background:#f5f8fb}.setting-choice.inset{margin-bottom:-2px}.setting-choice b,.setting-choice small{display:block}.setting-choice b{font-size:9px}.setting-choice small{margin-top:3px;color:#8190a1;font-size:7px}.app-switch{position:relative;width:38px;height:21px;flex:0 0 auto;border:0;border-radius:99px;background:#cbd5df;cursor:pointer;transition:background .2s}.app-switch i{position:absolute;left:3px;top:3px;width:15px;height:15px;border-radius:50%;background:#fff;box-shadow:0 2px 5px rgba(0,0,0,.12);transition:transform .2s}.app-switch.on{background:#0d8f68}.app-switch.on i{transform:translateX(17px)}.records-toolbar{display:flex;align-items:center;justify-content:space-between;padding:15px 18px;border:1px solid #dce4ec;border-radius:16px;background:#fff}.records-toolbar>p{max-width:520px;margin:0;color:#718196;font-size:9px;line-height:1.55}.records-toolbar>div{display:flex;gap:7px}.record-card{border:1px solid #dce4ec;border-radius:17px;background:#fff;box-shadow:0 8px 25px rgba(7,26,54,.03)}.record-card summary{display:grid;grid-template-columns:17px 38px 1fr auto;gap:11px;align-items:center;padding:15px 17px;cursor:pointer;list-style:none}.record-card summary::-webkit-details-marker{display:none}.record-grip{color:#a2afbd}.record-grip svg{width:15px}.record-icon{width:37px;height:37px;display:grid;place-items:center;color:#2d659e;border-radius:10px;background:#edf4fa}.record-icon svg{width:17px}.record-card summary b,.record-card summary small{display:block}.record-card summary b{font-size:10px}.record-card summary small{width:max-content;margin-top:4px;padding:3px 6px;color:#637990;border-radius:99px;background:#eff3f7;font-size:6px}.record-card summary small.severe{color:#c12a3e;background:#fff0f2}.record-card summary small.moderate{color:#946b0b;background:#fff5dd}.record-controls{display:flex;gap:4px}.record-controls button{width:28px;height:28px;display:grid;place-items:center;color:#718297;border:1px solid #dfe6ed;border-radius:7px;background:#fff}.record-controls button:disabled{opacity:.35}.record-controls .danger{color:#cc3548}.record-controls svg{width:13px}.record-card-body{padding:19px;border-top:1px solid #e8edf2}.records-empty{min-height:240px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;border:1px dashed #cbd6e0;border-radius:17px;background:#fbfcfd}.records-empty>svg{width:34px;color:#91a2b4}.records-empty h3{margin:12px 0 8px;font-size:14px}.records-empty p{margin:0 0 15px;color:#7d8d9f;font-size:8px}.allergy-legend{display:flex;gap:14px;padding:0 4px;color:#788a9d;font-size:7px}.allergy-legend span{display:flex;align-items:center;gap:5px}.allergy-legend i{width:6px;height:6px;border-radius:50%}.allergy-legend .mild{background:#3ba880}.allergy-legend .moderate{background:#d4a329}.allergy-legend .severe{background:var(--red)}.severity-select.severe{color:#c82d42!important;border-color:#e9b7be!important;background:#fff5f6!important}.care-location-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.care-location-card{display:grid;gap:12px;padding:18px;border:1px solid #e0e7ed;border-radius:14px;background:#f9fbfc}.care-location-card>div:first-child{display:flex;align-items:center;gap:8px}.care-location-card>div:first-child span{width:30px;height:30px;display:grid;place-items:center;color:#2d6399;border-radius:8px;background:#eaf2fa}.care-location-card svg{width:15px}.care-location-card h3{font-size:10px}.private-notice{display:flex;align-items:center;gap:13px;padding:16px 18px;color:#705916;border:1px solid #eadba9;border-radius:15px;background:#fff9e9}.private-notice.strong{color:#842a37;border-color:#efc5cb;background:#fff3f4}.private-notice>svg{width:21px}.private-notice b{font-size:10px}.private-notice p{margin:3px 0 0;font-size:8px}.contact-permission-editor{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:end;margin-top:17px;padding:15px;border-radius:12px;background:#f5f8fa}.contact-permission-editor>div>span{display:block;margin-bottom:8px;color:#34485f;font-size:9px;font-weight:700}.contact-permission-editor button{display:inline-flex;margin-right:6px}.step-tabbar{display:grid;grid-template-columns:1fr 1fr;padding:5px;border:1px solid #dce4ec;border-radius:13px;background:#edf2f6}.step-tabbar button{min-height:42px;display:flex;align-items:center;justify-content:center;gap:8px;color:#63758b;border:0;border-radius:9px;background:none;font-size:9px;font-weight:700}.step-tabbar button.active{color:var(--navy);background:#fff;box-shadow:0 5px 16px rgba(7,26,54,.08)}.step-tabbar svg{width:15px}.master-profile-explainer{display:flex;align-items:center;gap:13px;padding:16px;border:1px solid #cfe1f2;border-radius:15px;background:#eff7fd}.master-profile-explainer>span{width:38px;height:38px;display:grid;place-items:center;color:#2264a3;border-radius:11px;background:#fff}.master-profile-explainer svg{width:19px}.master-profile-explainer b{font-size:10px}.master-profile-explainer p{margin:3px 0 0;color:#607a93;font-size:8px}.privacy-editor-grid,.message-editor-grid{display:grid;grid-template-columns:1.08fr .92fr;gap:14px;align-items:start}.sharing-list{border:1px solid #dce4ec;border-radius:18px;background:#fff}.sharing-list-head{display:flex;justify-content:space-between;align-items:center;padding:19px}.sharing-list-head h3{margin:6px 0 0;font-size:14px}.sharing-list-head>span{color:#8a98a7;font-size:7px}.permission-row{display:grid;grid-template-columns:35px 1fr auto;gap:10px;align-items:center;padding:13px 17px;border-top:1px solid #edf1f4}.permission-icon{width:32px;height:32px;display:grid;place-items:center;color:#376b9f;border-radius:9px;background:#edf4fa}.permission-icon svg{width:15px}.permission-row b,.permission-row small{display:block}.permission-row b{font-size:9px}.permission-row small{margin-top:3px;color:#8695a5;font-size:7px}.permission-row.locked{background:#fbfaf7}.permission-row.locked .permission-icon{color:#9b7416;background:#fff4d7}.private-pill{display:flex;align-items:center;gap:4px;padding:5px 7px;color:#866813;border-radius:99px;background:#fff2cd;font-size:7px;font-weight:700}.private-pill svg{width:10px}.profile-views,.message-preview{position:sticky;top:20px;display:grid;gap:10px}.profile-view{padding:20px;border:1px solid #dce4ec;border-radius:17px;background:#fff}.profile-view.comprehensive{border-top:3px solid var(--navy)}.profile-view.limited{border-top:3px solid var(--red)}.profile-view>div:first-child{display:flex;align-items:center;justify-content:space-between}.profile-view>div:first-child>span{width:34px;height:34px;display:grid;place-items:center;color:#2e649a;border-radius:10px;background:#edf4fb}.profile-view.limited>div:first-child>span{color:var(--red);background:#fff0f2}.profile-view svg{width:16px}.profile-view>div:first-child small{color:#8493a4;font-size:6px;letter-spacing:.1em}.profile-view h3{margin:14px 0 6px;font-size:15px}.profile-view>p{margin:0 0 12px;color:#7c8d9f;font-size:8px;line-height:1.5}.preview-lines{display:grid;gap:7px}.preview-lines span{display:flex;align-items:center;gap:6px;color:#4d6279;font-size:7px}.preview-lines svg{width:11px;color:#0a956a}.preview-lines .empty-preview{padding:12px;border-radius:10px;background:#f3f6f8;color:#8997a6}.preview-lines .empty-preview svg{color:#8997a6}.profile-transfer{display:flex;align-items:center;justify-content:center;gap:7px;color:#7c8c9d;font-size:7px}.profile-transfer svg{width:14px;color:var(--red)}.message-fields{display:grid;gap:12px}.variable-list{display:flex;flex-wrap:wrap;gap:6px}.variable-list button{display:flex;align-items:center;gap:5px;padding:7px 9px;color:#315f90;border:1px solid #d6e2ed;border-radius:8px;background:#f1f6fa;font-family:monospace;font-size:7px}.variable-list svg{width:11px}.character-count{display:block;margin-top:6px;color:#8997a7;font-size:7px;text-align:right}.phone-message{padding:15px;border:7px solid #111b28;border-radius:27px;background:#eef2f5;box-shadow:0 20px 45px rgba(7,26,54,.15)}.phone-message-bar{display:flex;justify-content:space-between;color:#41617f;font-size:7px}.message-sender{display:grid;justify-items:center;margin:18px 0 12px}.message-sender>span{width:38px;height:38px;display:grid;place-items:center;color:#fff;border-radius:50%;background:var(--red)}.message-sender b{margin-top:6px;font-size:9px}.message-sender small{color:#8190a0;font-size:6px}.phone-message>p{white-space:pre-wrap;margin:0;padding:12px;color:#243a52;border-radius:13px;background:#fff;font-size:8px;line-height:1.6}.phone-message>small{display:block;margin-top:6px;color:#8a98a7;font-size:6px;text-align:center}.email-preview{padding:22px;border:1px solid #dce4ec;border-radius:17px;background:#fff;box-shadow:0 15px 35px rgba(7,26,54,.06)}.email-brand{display:flex;align-items:center;gap:6px;margin-bottom:18px}.email-brand span{width:24px;height:24px;display:grid;place-items:center;color:#fff;border-radius:50%;background:var(--red);font-size:10px}.email-brand b{font-size:8px;letter-spacing:.09em}.email-preview>small{color:var(--red);font-size:6px;font-weight:800;letter-spacing:.1em}.email-preview h3{margin:8px 0;font-size:15px;line-height:1.25}.email-preview>p{color:#6f8195;font-size:8px;line-height:1.65}.email-preview>button{width:100%;min-height:38px;display:flex;align-items:center;justify-content:center;gap:6px;color:#fff;border:0;border-radius:9px;background:var(--red);font-size:8px;font-weight:700}.email-preview>button svg{width:13px}.email-preview>div:last-child{display:flex;align-items:center;justify-content:center;gap:5px;margin-top:11px;color:#8795a4;font-size:6px}.email-preview>div:last-child svg{width:10px}.onboarding-actions{position:fixed;z-index:20;right:0;bottom:0;left:300px;min-height:76px;display:flex;align-items:center;justify-content:space-between;padding:11px 38px;border-top:1px solid #dce4ec;background:rgba(255,255,255,.9);backdrop-filter:blur(18px)}.onboarding-actions>div{display:flex;align-items:center;gap:9px}.save-later{display:flex;align-items:center;gap:6px;padding:10px;border:0;background:none;color:#677a90;font-size:8px}.save-later svg{width:14px}.saved-feedback{display:flex;align-items:center;gap:4px;color:#0b8c65;font-size:8px;opacity:0;transform:translateY(4px);transition:.2s}.saved-feedback.show{opacity:1;transform:none}.saved-feedback svg{width:12px}.onboarding-mobile-progress{display:none}

/* Review */
.review-page{min-height:100svh;background:#f4f7fa}.review-header{height:72px;display:flex;align-items:center;justify-content:space-between;padding:0 40px;border-bottom:1px solid #dce4ec;background:#fff}.review-header>a:last-child{display:flex;align-items:center;gap:6px;color:#61748a;font-size:8px}.review-header svg{width:14px}.review-main{width:min(1040px,calc(100% - 40px));margin:auto;padding:55px 0 80px}.review-heading{text-align:center}.review-heading h1{margin:12px 0;color:var(--navy);font-size:42px;letter-spacing:-.05em}.review-heading p{max-width:650px;margin:auto;color:#718297;font-size:10px;line-height:1.65}.review-completion{display:flex;align-items:center;justify-content:center;gap:22px;margin:35px 0;padding:22px;border:1px solid #dce4ec;border-radius:20px;background:#fff}.large-progress{position:relative;width:95px;height:95px;display:grid;place-items:center;border-radius:50%;background:conic-gradient(var(--red) var(--progress),#e6ebf0 0)}.large-progress:before{content:"";position:absolute;width:79px;height:79px;border-radius:50%;background:#fff}.large-progress span{position:relative;z-index:1;text-align:center}.large-progress b,.large-progress small{display:block}.large-progress b{font-size:20px}.large-progress small{color:#8291a2;font-size:6px}.review-completion h2{margin:0 0 5px;font-size:18px}.review-completion p{margin:0;color:#7b8b9d;font-size:8px}.review-completion>div:last-child>span{display:flex;align-items:center;gap:5px;margin-top:9px;color:#087d5b;font-size:7px}.review-completion svg{width:12px}.review-layout{display:grid;grid-template-columns:1.2fr .8fr;gap:14px;align-items:start}.review-checklist{border:1px solid #dce4ec;border-radius:18px;background:#fff}.review-checklist article{display:grid;grid-template-columns:35px 1fr auto;gap:11px;align-items:center;padding:15px 18px;border-bottom:1px solid #e9eef2}.review-checklist article:last-child{border:0}.review-checklist>article>span{width:31px;height:31px;display:grid;place-items:center;border-radius:50%}.review-checklist .done{color:#087e5b;background:#e9f8f2}.review-checklist .optional{color:#98751c;background:#fff5dc}.review-checklist svg{width:14px}.review-checklist b{font-size:9px}.review-checklist p{margin:3px 0;color:#7e8e9f;font-size:7px}.review-checklist small{color:#0b8a64;font-size:6px}.review-checklist a{color:#2e5f91;font-size:8px;font-weight:700}.review-summary{position:sticky;top:20px;padding:22px;color:#fff;border-radius:19px;background:linear-gradient(145deg,#0a3262,#06162d)}.review-person{display:flex;align-items:center;gap:12px;padding-bottom:17px;border-bottom:1px solid rgba(255,255,255,.1)}.review-person>span{width:47px;height:47px;display:grid;place-items:center;border-radius:14px;background:var(--red);font-size:11px;font-weight:750}.review-person small{color:#7994b0;font-size:6px;letter-spacing:.1em}.review-person h3{margin:3px 0;font-size:14px}.review-person p{margin:0;color:#9bb1c8;font-size:7px}.review-critical{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:14px 0}.review-critical span{display:grid;grid-template-columns:16px 1fr auto;align-items:center;gap:6px;padding:9px;border-radius:9px;background:rgba(255,255,255,.06);font-size:7px}.review-critical svg{width:13px;color:#76b7f2}.review-profile-views{display:grid;gap:7px}.review-profile-views>span{display:grid;grid-template-columns:28px 1fr;gap:8px;padding:10px;border:1px solid rgba(255,255,255,.09);border-radius:10px}.review-profile-views svg{grid-row:span 2;width:16px;color:#ff6879}.review-profile-views b,.review-profile-views small{display:block}.review-profile-views b{font-size:8px}.review-profile-views small{color:#87a0b9;font-size:6px}.review-message{display:flex;align-items:center;gap:9px;margin-top:13px;padding-top:13px;border-top:1px solid rgba(255,255,255,.1)}.review-message>svg{width:16px;color:#78b8f2}.review-message b,.review-message small{display:block}.review-message b{font-size:8px}.review-message small{color:#819ab4;font-size:6px}.activation-panel{display:flex;align-items:center;justify-content:space-between;margin-top:18px;padding:25px;border-radius:20px;color:#fff;background:linear-gradient(130deg,#071a36,#0b3b73)}.activation-panel>div{display:flex;align-items:center;gap:14px}.activation-logo{width:65px;height:65px;display:grid;place-items:center;border-radius:18px;background:#fff}.activation-panel small{color:#7997b5;font-size:6px;letter-spacing:.12em}.activation-panel h2{margin:4px 0;font-size:18px}.activation-panel p{max-width:520px;margin:0;color:#93abc3;font-size:8px}.review-success{position:relative;min-height:100svh;display:grid;place-items:center;overflow:hidden;padding:30px;text-align:center;background:radial-gradient(circle at center,#fff,#e9f1f7)}.review-logo{position:absolute;top:25px;left:30px}.review-success section{position:relative;z-index:2;max-width:700px}.success-check{width:86px;height:86px;display:grid;place-items:center;margin:0 auto 25px;color:#fff;border-radius:50%;background:#0e956d;box-shadow:0 0 0 13px rgba(14,149,109,.1),0 20px 45px rgba(14,149,109,.2);animation:successPop .5s cubic-bezier(.2,.9,.2,1)}.success-check svg{width:38px}@keyframes successPop{from{transform:scale(.5);opacity:0}}.review-success h1{margin:14px 0;color:var(--navy);font-size:52px;letter-spacing:-.055em}.review-success section>p{max-width:570px;margin:0 auto;color:#6e8094;font-size:11px;line-height:1.7}.success-stats{display:flex;justify-content:center;gap:10px;margin:30px 0}.success-stats span{min-width:120px;padding:14px;border:1px solid #dce4ec;border-radius:13px;background:#fff}.success-stats b,.success-stats small{display:block}.success-stats b{font-size:19px}.success-stats small{margin-top:3px;color:#8392a3;font-size:7px}.review-success section>div:last-child{display:flex;justify-content:center;gap:8px}.success-confetti i{position:absolute;width:7px;height:18px;top:15%;left:20%;background:var(--red);transform:rotate(20deg);animation:confetti 2.8s ease-in-out infinite}.success-confetti i:nth-child(2){left:80%;top:22%;background:#1d72bd;animation-delay:.4s}.success-confetti i:nth-child(3){left:30%;top:75%;background:#10a77a;animation-delay:.8s}.success-confetti i:nth-child(4){left:72%;top:70%;background:#edb52d;animation-delay:1.2s}.success-confetti i:nth-child(5){left:50%;top:10%;animation-delay:1.6s}@keyframes confetti{50%{transform:translateY(18px) rotate(130deg)}}

@media(max-width:1100px){.auth-brand-panel{padding:38px}.auth-brand-copy h1{font-size:52px}.overview-metrics{grid-template-columns:1fr 1fr}.contact-management-grid{grid-template-columns:1fr 1fr}.onboarding-shell{grid-template-columns:255px 1fr}.onboarding-sidebar{width:255px;padding-inline:13px}.onboarding-actions{left:255px}.onboarding-content{width:min(820px,calc(100% - 44px))}}
@media(max-width:820px){.auth-page{grid-template-columns:1fr}.auth-brand-panel{display:none}.auth-form-panel{min-height:100svh;padding:90px 24px 60px}.auth-mobile-logo{display:block;position:absolute;top:25px;left:26px}.auth-legal{position:static;margin-top:20px}.app-shell{display:block}.app-sidebar{transform:translateX(-105%);transition:transform .3s}.app-sidebar.open{transform:none}.app-sidebar-head>button{display:grid}.app-sidebar-scrim{position:fixed;inset:0;z-index:40;border:0;background:rgba(3,14,31,.48)}.app-workspace{min-height:100svh}.app-topbar{min-height:78px;padding:12px 18px}.app-menu-button{width:38px;height:38px;display:grid;place-items:center;margin-right:10px;border:1px solid #dce4ec;border-radius:11px;background:#fff}.app-menu-button svg{width:18px}.app-page-title{flex:1}.app-account button>span:nth-child(2),.app-account button>svg{display:none}.app-main{padding:20px 18px 95px}.app-bottom-nav{position:fixed;z-index:35;left:12px;right:12px;bottom:calc(9px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(5,1fr);padding:7px;border:1px solid #dce4ec;border-radius:18px;background:rgba(255,255,255,.94);box-shadow:0 15px 40px rgba(7,26,54,.16);backdrop-filter:blur(18px)}.app-bottom-nav a{display:flex;flex-direction:column;align-items:center;gap:3px;padding:6px 2px;color:#8796a7;font-size:6px}.app-bottom-nav a.active{color:var(--red)}.app-bottom-nav svg{width:18px}.overview-grid{grid-template-columns:1fr}.profile-health-panel,.qr-mini-panel{grid-row:auto}.medical-section-grid,.settings-grid{grid-template-columns:1fr}.qr-hero-card{grid-template-columns:1fr 190px}.qr-action-grid{grid-template-columns:1fr}.onboarding-shell{display:block}.onboarding-sidebar{display:none}.onboarding-main{min-height:100svh}.onboarding-topbar{height:60px;padding:0 18px}.onboarding-mobile-progress{display:block;padding:14px 18px;background:#fff}.onboarding-mobile-progress span,.onboarding-mobile-progress b{font-size:8px}.onboarding-mobile-progress b{float:right}.onboarding-mobile-progress>i{clear:both;margin-top:7px}.onboarding-content{width:calc(100% - 32px);padding:35px 0 105px}.heading-progress{display:none}.onboarding-actions{left:0;padding:10px 18px}.review-layout{grid-template-columns:1fr}.review-summary{position:static}.privacy-editor-grid,.message-editor-grid{grid-template-columns:1fr}.profile-views,.message-preview{position:static}.review-main{padding-top:38px}}
@media(max-width:560px){.auth-form-panel{padding-inline:14px}.auth-card{padding:27px 20px;border-radius:20px}.auth-heading h2{font-size:30px}.app-topbar{padding-inline:12px}.app-page-title h1{font-size:17px}.app-page-title p{display:none}.app-top-actions>.app-button{display:none}.app-icon-button{display:none}.app-main{padding:15px 12px 90px}.setup-banner{grid-template-columns:55px 1fr;padding:18px}.setup-ring{width:52px;height:52px}.setup-ring:before{width:42px;height:42px}.setup-banner>a{grid-column:1/-1;width:100%}.overview-metrics{grid-template-columns:1fr 1fr;gap:8px}.overview-metrics article{min-height:112px;padding:13px}.overview-grid{gap:8px}.app-panel{border-radius:15px}.emergency-message-callout{grid-template-columns:38px 1fr}.emergency-message-callout>a{grid-column:2}.medical-summary-card{display:block;padding:20px}.summary-identity{align-items:flex-start}.blood-badge{margin-left:auto}.summary-actions{display:grid;margin-top:18px}.medical-section-grid{grid-template-columns:1fr}.app-page-toolbar{align-items:flex-start;gap:12px}.app-page-toolbar>div{max-width:60%}.contact-management-grid{grid-template-columns:1fr}.app-modal{padding:20px}.form-grid.two,.form-grid.three{grid-template-columns:1fr}.span-2{grid-column:auto}.qr-hero-card{grid-template-columns:1fr;padding:25px}.large-qr-display{width:210px;margin:auto}.settings-profile{align-items:flex-start;flex-wrap:wrap}.settings-profile>button{width:100%}.danger-zone{align-items:flex-start;gap:15px;flex-direction:column}.activity-filter{overflow-x:auto}.activity-filter button{flex:0 0 auto}.onboarding-topbar span{display:none}.onboarding-heading h1{font-size:32px}.onboarding-heading>p{font-size:10px}.form-card{padding:17px}.photo-uploader{align-items:flex-start}.records-toolbar{align-items:flex-start;gap:12px;flex-direction:column}.records-toolbar>div{width:100%}.records-toolbar .app-button{flex:1}.record-card summary{grid-template-columns:36px 1fr}.record-grip{display:none}.record-controls{grid-column:1/-1;justify-content:flex-end}.record-card-body{padding:15px}.care-location-grid{grid-template-columns:1fr}.contact-permission-editor{grid-template-columns:1fr}.onboarding-actions{padding:8px 12px}.onboarding-actions .save-later,.saved-feedback{display:none}.onboarding-actions .app-button{padding-inline:13px}.onboarding-actions>div{margin-left:auto}.review-header{height:64px;padding:0 16px}.review-header .app-brand span{display:none}.review-main{width:calc(100% - 24px)}.review-heading h1{font-size:34px}.review-completion{align-items:flex-start;padding:18px}.large-progress{width:75px;height:75px;flex:0 0 auto}.large-progress:before{width:63px;height:63px}.review-checklist article{padding:13px}.activation-panel{align-items:flex-start;flex-direction:column}.activation-panel>div:last-child{width:100%;display:grid}.review-success h1{font-size:42px}.success-stats{gap:6px}.success-stats span{min-width:0;flex:1;padding:11px 7px}.review-success section>div:last-child{display:grid}.review-logo{top:16px;left:16px}}

/* Readability and authentication polish */
.auth-form-panel{padding:44px clamp(34px,5vw,72px)}
.auth-card{width:min(500px,100%);display:grid;gap:18px;padding:38px 40px}
.auth-sign-up .auth-card{width:min(520px,100%)}
.auth-heading{margin-bottom:3px}
.auth-heading h2,.auth-success h2{font-size:36px}
.auth-card .app-field{gap:8px;font-size:12px}
.auth-card .app-field input{min-height:50px;font-size:13px}
.auth-card .field-control>svg{top:16px}
.auth-card .field-control button{top:11px}
.auth-row{margin:0 0 2px;font-size:11px}
.auth-separator{margin:2px 0 0;font-size:9px}
.auth-switch{font-size:11px}
.auth-legal{bottom:18px;font-size:9px}
.password-policy{padding:14px 15px;border:1px solid #dce6ee;border-radius:13px;background:#f7f9fb}
.password-policy-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px;color:#53677d;font-size:10px;font-weight:700}
.password-policy-head b{color:#167b5e;font-size:9px}
.password-strength{height:4px;overflow:hidden;border-radius:10px;background:#e1e7ed}
.password-strength i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#ef233c,#d9a323 55%,#14906b);transition:width .25s ease}
.password-policy ul{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px;margin:12px 0 0;padding:0;list-style:none}
.password-policy li{display:flex;align-items:center;gap:7px;color:#8795a5;font-size:10px}
.password-policy li>span{width:17px;height:17px;display:grid;place-items:center;flex:0 0 auto;border:1px solid #cbd5de;border-radius:50%;background:#fff}
.password-policy li svg{width:10px;opacity:0}
.password-policy li.met{color:#345f53}
.password-policy li.met>span{color:#fff;border-color:#14906b;background:#14906b}
.password-policy li.met svg{opacity:1}

.app-shell{grid-template-columns:256px minmax(0,1fr)}
.app-sidebar{width:256px;padding:24px 16px 20px}
.app-profile-status{grid-template-columns:46px 1fr;padding:14px}
.app-profile-status b{font-size:12px}
.app-profile-status small{font-size:9px}
.app-side-nav a{min-height:47px;padding:0 14px;font-size:12px}
.app-side-nav a svg{width:19px}
.app-sidebar-card b{font-size:12px}
.app-sidebar-card p{font-size:10px}
.app-sidebar-card a{font-size:10px}
.app-sidebar-help b{font-size:10px}
.app-sidebar-help small{font-size:9px}
.app-topbar{min-height:100px;padding:17px 34px}
.app-page-title>span{font-size:9px}
.app-page-title h1{font-size:27px}
.app-page-title p{font-size:11px}
.app-account button>span b{font-size:11px}
.app-account button>span small{font-size:9px}
.app-main{padding:32px 34px 42px}
.overview-page{max-width:1420px;margin:0 auto}
.overview-metrics{gap:16px}
.overview-metrics article{min-height:154px;padding:23px}
.overview-metrics article>div small{font-size:10px}
.overview-metrics article>div b{font-size:25px}
.overview-metrics article>p{font-size:9px}
.metric-icon{width:40px;height:40px}
.metric-icon svg{width:19px}
.overview-grid{gap:16px;margin-top:16px}
.app-panel{border-radius:20px}
.panel-heading{padding:24px 25px 18px}
.panel-heading h3{font-size:20px}
.panel-heading a{font-size:10px}
.profile-health-list>div{padding:15px 25px}
.profile-health-list b{font-size:12px}
.profile-health-list small{font-size:9px}
.health-state{font-size:8px}
.panel-footer-link{min-height:52px;margin:10px 24px 24px;font-size:10px}
.qr-mini-panel{padding-bottom:24px}
.qr-status{font-size:9px}
.mini-contact,.mini-activity{padding:15px 25px}
.mini-contact b,.mini-activity b{font-size:12px}
.mini-contact small,.mini-activity small{font-size:9px}
.mini-activity time{font-size:9px}
.emergency-message-callout{margin-top:16px;padding:20px 24px}
.emergency-message-callout b{font-size:13px}
.emergency-message-callout p{font-size:10px}
.emergency-message-callout a{font-size:11px}
.app-page-toolbar b{font-size:14px}
.app-page-toolbar p{font-size:10px}
.summary-section-head h3{font-size:15px}
.summary-row{font-size:11px}
.managed-contact-head b{font-size:12px}
.managed-contact-head small,.managed-contact-info span{font-size:9px}
.activity-timeline b{font-size:12px}
.activity-timeline p{font-size:10px}
.activity-timeline small{font-size:9px}
.settings-section-head h3{font-size:15px}
.settings-section-head p,.setting-row small{font-size:10px}
.setting-row b,.setting-value{font-size:11px}

@media(max-width:820px){.auth-form-panel{padding:86px 22px 48px}.auth-card{padding:32px;width:min(520px,100%)}.app-main{padding:22px 18px 105px}.app-topbar{min-height:82px}.app-page-title h1{font-size:22px}.app-bottom-nav a{font-size:9px}.overview-page{max-width:none}}
@media(max-width:560px){.auth-form-panel{padding:80px 14px 38px}.auth-card{gap:16px;padding:25px 20px}.auth-heading h2,.auth-success h2{font-size:31px}.password-policy ul{grid-template-columns:1fr}.auth-legal{font-size:8px}.app-main{padding:16px 12px 100px}.overview-metrics article{min-height:126px;padding:16px}.overview-metrics article>div b{font-size:22px}.panel-heading{padding:20px 18px 15px}.panel-heading h3{font-size:18px}.profile-health-list>div,.mini-contact,.mini-activity{padding:14px 18px}.emergency-message-callout{padding:18px}.app-bottom-nav a{font-size:8px}}

/* Product-scale dashboard: make the authenticated app feel like a confident, readable PWA. */
.app-shell{grid-template-columns:280px minmax(0,1fr)}
.app-sidebar{width:280px;padding:28px 20px 24px}
.app-sidebar-head{padding:0 8px 26px}
.app-brand{gap:10px;font-size:10px}
.app-brand b{font-size:13px}
.app-profile-status{grid-template-columns:52px 1fr;gap:13px;margin:6px 4px 28px;padding:16px}
.app-avatar{width:44px;height:44px;font-size:11px}
.app-profile-status b{font-size:14px}
.app-profile-status small{font-size:10px}
.app-side-nav{gap:7px}
.app-side-nav a{min-height:55px;padding:0 16px;gap:13px;border-radius:13px;font-size:14px}
.app-side-nav a svg{width:20px;height:20px}
.app-sidebar-card{padding:18px;border-radius:17px}
.app-sidebar-card b{font-size:13px}
.app-sidebar-card p{font-size:10px}
.app-sidebar-card a{font-size:10px}
.app-sidebar-help{margin-top:16px;padding-top:16px}
.app-sidebar-help b{font-size:10px}
.app-sidebar-help small{font-size:9px}
.app-topbar{min-height:112px;padding:20px 42px}
.app-page-title>span{font-size:10px}
.app-page-title h1{font-size:32px}
.app-page-title p{font-size:13px}
.app-top-actions{gap:13px}
.app-icon-button{width:44px;height:44px}
.app-account>button{grid-template-columns:44px 1fr 14px;gap:11px;padding:5px 9px 5px 5px}
.app-account b{font-size:11px}
.app-account small{font-size:9px}
.app-main{padding:38px 42px 54px}
.overview-page{max-width:1480px}
.setup-banner{grid-template-columns:82px 1fr auto;gap:24px;min-height:160px;padding:30px 34px;border-radius:22px}
.setup-ring{width:74px;height:74px}
.setup-ring:before{width:60px;height:60px}
.setup-ring span{font-size:13px}
.setup-banner h2{font-size:26px}
.setup-banner p{font-size:12px}
.setup-banner .app-kicker{font-size:10px}
.setup-banner .app-button{min-height:50px;padding-inline:22px;font-size:13px}
.overview-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:20px 0}
.overview-metrics article{min-height:180px;padding:28px;border-radius:19px}
.overview-metrics article>div{margin-top:20px}
.overview-metrics article>div small{font-size:12px}
.overview-metrics article>div b{font-size:34px}
.overview-metrics article>p{font-size:11px}
.metric-icon{width:48px;height:48px;border-radius:13px}
.metric-icon svg{width:22px;height:22px}
.overview-grid{grid-template-columns:minmax(0,1.2fr) minmax(360px,.8fr);gap:18px;margin-top:18px}
.app-panel{border-radius:22px}
.profile-health-panel,.qr-mini-panel{padding-bottom:28px}
.panel-heading{padding:28px 30px 22px;margin-bottom:0}
.panel-heading h3{font-size:23px}
.panel-heading>a{font-size:12px}
.profile-health-list>div{padding:19px 30px}
.profile-health-list>div>span:first-child{width:32px;height:32px;font-size:10px}
.profile-health-list b{font-size:14px}
.profile-health-list small{font-size:11px}
.health-state{font-size:10px}
.panel-footer-link{min-height:56px;margin:12px 30px 0;font-size:12px}
.realistic-qr{width:176px;height:176px;margin-top:10px}
.qr-status{font-size:10px}
.mini-contact,.mini-activity{padding:18px 30px}
.mini-contact b,.mini-activity b{font-size:14px}
.mini-contact small,.mini-activity small,.mini-activity time{font-size:11px}
.contact-initial{width:40px;height:40px;font-size:10px}
.mini-activity>span{width:34px;height:34px}
.emergency-message-callout{margin-top:18px;padding:24px 30px}
.emergency-message-callout b{font-size:15px}
.emergency-message-callout p{font-size:12px}
.emergency-message-callout>a{font-size:12px}

@media(max-width:1100px){
  .app-shell{grid-template-columns:260px minmax(0,1fr)}
  .app-sidebar{width:260px;padding-inline:16px}
  .app-main{padding-inline:30px}
  .app-topbar{padding-inline:30px}
  .overview-grid{grid-template-columns:minmax(0,1fr) minmax(300px,.8fr)}
}
@media(max-width:820px){
  .app-shell{grid-template-columns:1fr}
  .app-sidebar{width:280px}
  .app-topbar{min-height:82px;padding-inline:18px}
  .app-main{padding:22px 18px 105px}
  .app-page-title h1{font-size:24px}
  .app-page-title p{font-size:11px}
  .setup-banner{grid-template-columns:64px 1fr;padding:23px}
  .setup-ring{width:58px;height:58px}
  .setup-ring:before{width:46px;height:46px}
  .setup-banner>a{grid-column:1/-1}
  .overview-metrics{grid-template-columns:1fr 1fr;gap:12px}
  .overview-metrics article{min-height:150px;padding:20px}
  .overview-metrics article>div b{font-size:28px}
  .overview-grid{grid-template-columns:1fr;gap:14px}
  .panel-heading{padding:22px 24px 18px}
  .profile-health-list>div,.mini-contact,.mini-activity{padding:16px 24px}
  .emergency-message-callout{grid-template-columns:42px 1fr;padding:20px 24px}
  .emergency-message-callout>a{grid-column:2}
}
@media(max-width:560px){
  .app-main{padding:16px 12px 100px}
  .app-topbar{padding-inline:12px}
  .app-page-title h1{font-size:21px}
  .app-page-title>span{font-size:8px}
  .setup-banner{grid-template-columns:55px 1fr;padding:18px}
  .setup-ring{width:52px;height:52px}
  .setup-ring:before{width:42px;height:42px}
  .setup-banner h2{font-size:20px}
  .setup-banner p{font-size:10px}
  .overview-metrics{gap:8px}
  .overview-metrics article{min-height:126px;padding:16px}
  .overview-metrics article>div small{font-size:10px}
  .overview-metrics article>div b{font-size:23px}
  .overview-metrics article>p{font-size:9px}
  .metric-icon{width:40px;height:40px}
}

/* Final responsive safeguards. */
.admin-topbar>div:last-child>span{width:auto;min-width:32px;padding-right:2px}
@media(max-width:700px){.skeleton-grid{grid-template-columns:1fr}}
@media(max-width:1180px){.export-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.export-grid{grid-template-columns:1fr}}

/* Admin scale overrides must remain after the legacy app-shell rules. */
.admin-shell{grid-template-columns:280px minmax(0,1fr)}
.admin-sidebar{width:280px;padding:24px 18px}
.admin-sidebar>header img{width:44px;height:44px}.admin-sidebar>header b{font-size:12px}.admin-sidebar>header small{font-size:10px}
.admin-role{gap:13px;margin:30px 0 20px;padding:17px;border-radius:15px}.admin-role>svg{width:27px;height:27px}.admin-role b{font-size:13px}.admin-role small{font-size:10px}
.admin-sidebar nav{gap:7px}.admin-sidebar nav a{grid-template-columns:24px 1fr;gap:12px;min-height:52px;padding:0 15px;border-radius:12px;font-size:13px}.admin-sidebar nav a svg{width:20px;height:20px}.admin-sidebar nav a.active i{height:26px}
.admin-sidebar>footer{padding:18px 14px}.admin-sidebar>footer span{font-size:9px}.admin-sidebar>footer p{font-size:10px;line-height:1.6}
.admin-workspace{grid-column:2}.admin-topbar{min-height:116px;padding:22px 38px}.admin-topbar>div:nth-child(2)>span{font-size:9px}.admin-topbar h1{margin:4px 0;font-size:34px}.admin-topbar p{font-size:12px}
.admin-topbar>div:last-child{gap:15px}.admin-topbar>div:last-child>button{width:46px;height:46px;border-radius:12px}.admin-topbar>div:last-child>button svg{width:20px}.admin-topbar>div:last-child>span{grid-template-columns:38px auto;gap:10px;width:auto;min-width:38px;height:38px;border-radius:10px;font-size:11px}.admin-topbar>div:last-child small{font-size:10px}
.admin-main{padding:32px 38px 72px}.admin-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.admin-stat-grid article{min-height:185px;padding:26px 28px;border-radius:20px;box-shadow:0 8px 26px rgba(7,26,54,.035)}
.admin-stat-grid article>span{width:48px;height:48px;margin-bottom:18px;border-radius:14px}.admin-stat-grid svg{width:22px;height:22px}.admin-stat-grid article>i{top:22px;right:22px;font-size:10px}.admin-stat-grid b{font-size:36px}.admin-stat-grid small{font-size:13px;font-weight:700;color:#526a80}.admin-stat-grid p{margin:4px 0 0;color:#8493a1;font-size:10px}
.admin-overview-grid{grid-template-columns:minmax(0,1.7fr) minmax(300px,1fr);gap:18px;margin:18px 0}.admin-panel{border-radius:21px;box-shadow:0 8px 28px rgba(7,26,54,.03)}.admin-panel>header{padding:25px 27px}.admin-panel>header span{font-size:9px}.admin-panel>header h2{margin-top:7px;font-size:21px}.admin-panel>header p{font-size:11px}.admin-panel>header select{min-height:42px;padding:0 13px;border-radius:10px;font-size:11px}
.simple-chart{height:310px;padding:38px 30px 26px}.simple-chart span{gap:11px}.simple-chart i{max-width:46px}.simple-chart small{font-size:10px}.admin-health>div{min-height:55px;align-items:center;padding:15px 21px;font-size:12px}.admin-health b{font-size:11px}.admin-health b i{width:8px;height:8px}
.admin-recent>header a{font-size:11px}.admin-recent>header a svg{width:15px}.admin-recent>div{grid-template-columns:48px 1fr auto;gap:14px;min-height:76px;padding:16px 23px}.admin-event-icon{width:44px;height:44px;border-radius:12px}.admin-event-icon svg{width:19px}.admin-recent b{font-size:13px}.admin-recent small,.admin-recent time{font-size:10px}
.admin-table-toolbar{gap:12px;margin-bottom:18px;padding:17px;border-radius:17px}.admin-search{gap:10px;padding:0 14px;border-radius:11px}.admin-search svg{width:18px}.admin-search input{min-height:46px;font-size:13px}.admin-table-toolbar select{min-width:170px;padding:0 14px;border-radius:11px;font-size:12px}
.admin-table-wrap{border-radius:19px}.admin-table th{padding:16px 18px;font-size:9px}.admin-table td{padding:18px;font-size:12px}.admin-table td>small{margin-top:5px;font-size:10px}.admin-table td code{font-size:11px}.admin-table td>button,.admin-row-actions button,.admin-row-actions a{gap:6px;min-height:36px;padding:8px 11px;border-radius:9px;font-size:10px}.admin-table td button svg,.admin-row-actions svg{width:14px}
.table-user{gap:12px}.table-user>i{width:40px;height:40px;border-radius:11px;font-size:10px}.table-user>span{gap:4px}.table-user b{font-size:12px}.table-user small{font-size:9px}.admin-status{gap:6px;padding:7px 10px;font-size:9px}.admin-status i{width:7px;height:7px}.completion-cell{gap:9px}.completion-cell>i{width:88px;height:7px}
.admin-detail-list>div{padding:16px 0}.admin-detail-list.grid>div{padding:16px;border-radius:12px}.admin-detail-list span{font-size:11px}.admin-detail-list b{font-size:13px}.admin-detail-list small{font-size:10px}.channel-cell{gap:8px}.channel-cell svg{width:17px}
.admin-settings-grid{gap:18px}.admin-settings-grid>.admin-panel>header{gap:13px}.admin-settings-grid>.admin-panel>header>svg{width:27px;height:27px}.admin-setting-row{min-height:76px;padding:18px 24px}.admin-setting-row span{gap:5px}.admin-setting-row b{font-size:13px}.admin-setting-row small{font-size:10px}.admin-setting-row strong{font-size:11px}.admin-integration-status>div{min-height:58px;padding:15px 24px;font-size:12px}.admin-save{min-height:48px;font-size:12px}
@media(max-width:1180px){.admin-shell{grid-template-columns:260px minmax(0,1fr)}.admin-sidebar{width:260px;padding-inline:15px}.admin-workspace{grid-column:2}.admin-main{padding:28px 28px 64px}.admin-topbar{padding-inline:28px}.admin-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-overview-grid{grid-template-columns:1fr}}
@media(max-width:900px){.admin-shell{grid-template-columns:1fr}.admin-workspace{grid-column:1}.admin-sidebar{width:290px}.admin-topbar{min-height:96px;padding:16px 20px}.admin-topbar h1{font-size:29px}.admin-main{padding:24px 20px 60px}}
@media(max-width:600px){.admin-topbar{min-height:86px;padding:13px 14px}.admin-topbar h1{font-size:25px}.admin-main{padding:18px 12px 48px}.admin-stat-grid{grid-template-columns:1fr 1fr;gap:10px}.admin-stat-grid article{min-height:155px;padding:18px}.admin-stat-grid article>span{width:44px;height:44px;margin-bottom:14px}.admin-stat-grid article>i{top:17px;right:17px;font-size:9px}.admin-stat-grid b{font-size:28px}.admin-stat-grid small{font-size:10px}.admin-stat-grid p{font-size:9px}.admin-panel>header{padding:20px}.admin-panel>header h2{font-size:18px}.simple-chart{height:250px;padding-inline:20px}.admin-table-toolbar{align-items:stretch;flex-direction:column}.admin-table-toolbar select{min-height:44px}}

/* Admin readability and scale — aligned with the user dashboard. */
.admin-shell{grid-template-columns:280px minmax(0,1fr)}
.admin-sidebar{width:280px;padding:24px 18px}
.admin-sidebar>header img{width:44px;height:44px}
.admin-sidebar>header b{font-size:12px;letter-spacing:.09em}
.admin-sidebar>header small{margin-top:3px;font-size:10px}
.admin-role{gap:13px;margin:30px 0 20px;padding:17px;border-radius:15px}
.admin-role>svg{width:27px;height:27px}
.admin-role b{font-size:13px}
.admin-role small{margin-top:3px;font-size:10px}
.admin-sidebar nav{gap:7px}
.admin-sidebar nav a{grid-template-columns:24px 1fr;gap:12px;min-height:52px;padding:0 15px;border-radius:12px;font-size:13px}
.admin-sidebar nav a svg{width:20px;height:20px}
.admin-sidebar nav a.active i{height:26px}
.admin-sidebar>footer{padding:18px 14px}
.admin-sidebar>footer span{font-size:9px}
.admin-sidebar>footer p{font-size:10px;line-height:1.6}
.admin-workspace{grid-column:2}
.admin-topbar{min-height:116px;padding:22px 38px}
.admin-topbar>div:nth-child(2)>span{font-size:9px}
.admin-topbar h1{margin:4px 0;font-size:34px;letter-spacing:-.035em}
.admin-topbar p{font-size:12px}
.admin-topbar>div:last-child{gap:15px}
.admin-topbar>div:last-child>button{width:46px;height:46px;border-radius:12px}
.admin-topbar>div:last-child>button svg{width:20px}
.admin-topbar>div:last-child>span{grid-template-columns:38px auto;gap:10px;min-width:38px;height:38px;border-radius:10px;font-size:11px}
.admin-topbar>div:last-child small{font-size:10px}
.admin-main{padding:32px 38px 72px}
.admin-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.admin-stat-grid article{min-height:185px;padding:26px 28px;border-radius:20px;box-shadow:0 8px 26px rgba(7,26,54,.035)}
.admin-stat-grid article>span{width:48px;height:48px;margin-bottom:18px;border-radius:14px}
.admin-stat-grid svg{width:22px;height:22px}
.admin-stat-grid article>i{top:22px;right:22px;font-size:10px}
.admin-stat-grid b{font-size:36px;letter-spacing:-.035em}
.admin-stat-grid small{font-size:13px;font-weight:700;color:#526a80}
.admin-stat-grid p{margin:4px 0 0;color:#8493a1;font-size:10px}
.admin-overview-grid{grid-template-columns:minmax(0,1.7fr) minmax(300px,1fr);gap:18px;margin:18px 0}
.admin-panel{border-radius:21px;box-shadow:0 8px 28px rgba(7,26,54,.03)}
.admin-panel>header{padding:25px 27px}
.admin-panel>header span{font-size:9px}
.admin-panel>header h2{margin-top:7px;font-size:21px}
.admin-panel>header p{font-size:11px}
.admin-panel>header select{min-height:42px;padding:0 13px;border-radius:10px;font-size:11px}
.simple-chart{height:310px;padding:38px 30px 26px}
.simple-chart span{gap:11px}
.simple-chart i{max-width:46px}
.simple-chart small{font-size:10px}
.admin-health>div{min-height:55px;align-items:center;padding:15px 21px;font-size:12px}
.admin-health b{font-size:11px}
.admin-health b i{width:8px;height:8px}
.admin-recent>header a{font-size:11px}
.admin-recent>header a svg{width:15px}
.admin-recent>div{grid-template-columns:48px 1fr auto;gap:14px;min-height:76px;padding:16px 23px}
.admin-event-icon{width:44px;height:44px;border-radius:12px}
.admin-event-icon svg{width:19px}
.admin-recent b{font-size:13px}
.admin-recent small,.admin-recent time{font-size:10px}
.admin-table-toolbar{gap:12px;margin-bottom:18px;padding:17px;border-radius:17px}
.admin-search{gap:10px;padding:0 14px;border-radius:11px}
.admin-search svg{width:18px}
.admin-search input{min-height:46px;font-size:13px}
.admin-table-toolbar select{min-width:170px;padding:0 14px;border-radius:11px;font-size:12px}
.admin-table-wrap{border-radius:19px}
.admin-table th{padding:16px 18px;font-size:9px}
.admin-table td{padding:18px;font-size:12px}
.admin-table td>small{margin-top:5px;font-size:10px}
.admin-table td code{font-size:11px}
.admin-table td>button,.admin-row-actions button,.admin-row-actions a{gap:6px;min-height:36px;padding:8px 11px;border-radius:9px;font-size:10px}
.admin-table td button svg,.admin-row-actions svg{width:14px}
.table-user{gap:12px}
.table-user>i{width:40px;height:40px;border-radius:11px;font-size:10px}
.table-user>span{gap:4px}
.table-user b{font-size:12px}
.table-user small{font-size:9px}
.admin-status{gap:6px;padding:7px 10px;font-size:9px}
.admin-status i{width:7px;height:7px}
.completion-cell{gap:9px}
.completion-cell>i{width:88px;height:7px}
.admin-detail-list>div{padding:16px 0}
.admin-detail-list.grid>div{padding:16px;border-radius:12px}
.admin-detail-list span{font-size:11px}
.admin-detail-list b{font-size:13px}
.admin-detail-list small{font-size:10px}
.channel-cell{gap:8px}
.channel-cell svg{width:17px}
.admin-settings-grid{gap:18px}
.admin-settings-grid>.admin-panel>header{gap:13px}
.admin-settings-grid>.admin-panel>header>svg{width:27px;height:27px}
.admin-setting-row{min-height:76px;padding:18px 24px}
.admin-setting-row span{gap:5px}
.admin-setting-row b{font-size:13px}
.admin-setting-row small{font-size:10px}
.admin-setting-row strong{font-size:11px}
.admin-integration-status>div{min-height:58px;padding:15px 24px;font-size:12px}
.admin-save{min-height:48px;font-size:12px}

@media(max-width:1180px){
  .admin-shell{grid-template-columns:260px minmax(0,1fr)}
  .admin-sidebar{width:260px;padding-inline:15px}
  .admin-workspace{grid-column:2}
  .admin-main{padding:28px 28px 64px}
  .admin-topbar{padding-inline:28px}
  .admin-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .admin-overview-grid{grid-template-columns:1fr}
}
@media(max-width:900px){
  .admin-shell{grid-template-columns:1fr}
  .admin-workspace{grid-column:1}
  .admin-sidebar{width:290px}
  .admin-topbar{min-height:96px;padding:16px 20px}
  .admin-topbar h1{font-size:29px}
  .admin-main{padding:24px 20px 60px}
}
@media(max-width:600px){
  .admin-topbar{min-height:86px;padding:13px 14px}
  .admin-topbar h1{font-size:25px}
  .admin-topbar>div:nth-child(2)>span{font-size:8px}
  .admin-main{padding:18px 12px 48px}
  .admin-stat-grid{grid-template-columns:1fr 1fr;gap:10px}
  .admin-stat-grid article{min-height:145px;padding:18px}
  .admin-stat-grid article>span{width:44px;height:44px;margin-bottom:14px}
  .admin-stat-grid article>i{top:17px;right:17px;font-size:9px}
  .admin-stat-grid b{font-size:27px}
  .admin-stat-grid small{font-size:10px}
  .admin-panel>header{padding:20px}
  .admin-panel>header h2{font-size:18px}
  .simple-chart{height:250px;padding-inline:20px}
  .admin-table-toolbar{align-items:stretch;flex-direction:column}
  .admin-table-toolbar select{min-height:44px}
  .admin-table th{font-size:9px}
  .admin-table td{font-size:12px}
}
@media(max-width:1180px){.export-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.export-grid{grid-template-columns:1fr}}

/* Milestone 1 application surfaces */
.notification-control{position:relative}.notification-popover{position:absolute;z-index:80;top:calc(100% + 12px);right:0;width:min(390px,calc(100vw - 28px));overflow:hidden;border:1px solid #dbe4ec;border-radius:18px;background:#fff;box-shadow:0 22px 60px rgba(7,26,54,.18)}
.notification-popover>header{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid #e7edf2}.notification-popover>header div{display:grid;gap:2px}.notification-popover>header b{font-size:15px;color:var(--navy)}.notification-popover>header small{font-size:10px;color:#8291a2}.notification-popover>header button{display:flex;align-items:center;gap:5px;border:0;background:none;color:#2d6597;font-size:10px;font-weight:750}.notification-popover>header svg{width:14px}
.notification-popover>a:not(.notification-popover-footer){display:grid;grid-template-columns:34px 1fr;gap:11px;padding:14px 18px;color:inherit;border-bottom:1px solid #edf1f5}.notification-popover>a.unread{background:#f5f9fd}.notification-popover>a>span{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#eaf2fb;color:#225c93}.notification-popover>a svg{width:16px}.notification-popover>a div{display:grid;gap:3px}.notification-popover>a b{font-size:12px;color:var(--navy)}.notification-popover>a small,.notification-popover>a time{font-size:9px;color:#8291a2}.notification-popover-footer{display:flex!important;align-items:center!important;justify-content:center;gap:6px;padding:14px!important;color:#245f96!important;font-size:11px;font-weight:750}.notification-popover-footer svg{width:14px}

.dashboard-section-heading{display:flex;align-items:end;justify-content:space-between;margin:30px 2px 16px}.dashboard-section-heading h2{margin:6px 0 0;color:var(--navy);font-size:24px;letter-spacing:-.03em}.dashboard-section-heading>p{margin:0;color:#7e8fa1;font-size:12px}.dashboard-quick-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.quick-action{display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:12px;min-height:88px;padding:16px;border:1px solid #dce5ed;border-radius:18px;background:#fff;color:var(--navy);text-align:left;box-shadow:0 8px 26px rgba(7,26,54,.035);transition:.2s ease}.quick-action:hover{transform:translateY(-2px);border-color:#b9ccdd;box-shadow:0 14px 34px rgba(7,26,54,.08)}.quick-action>svg:first-child{width:42px;height:42px;padding:11px;border-radius:12px;background:#eff4f8;color:#285d8d}.quick-action>svg:last-child{width:17px}.quick-action span{display:grid;gap:4px}.quick-action b{font-size:13px}.quick-action small{font-size:9px;color:#8090a1}.quick-action.primary{color:#fff;border-color:#102d52;background:linear-gradient(135deg,#071a36,#153b67)}.quick-action.primary>svg:first-child{background:rgba(255,255,255,.13);color:#fff}.quick-action.primary small{color:#c0cfdd}.quick-action.qr{border-color:#ffd4da;background:#fff8f9}.quick-action.qr>svg:first-child{background:#ffeaed;color:#ed3147}.dashboard-identity{display:grid;grid-template-columns:58px 1fr 58px;align-items:center;gap:14px;padding:20px 24px;border-top:1px solid #edf1f5;border-bottom:1px solid #edf1f5}.dashboard-identity .large-app-avatar{width:58px;height:58px}.dashboard-identity>div{display:grid;gap:5px}.dashboard-identity b{font-size:16px;color:var(--navy)}.dashboard-identity small{font-size:10px;color:#8090a1}.qr-mini-actions{display:grid;grid-template-columns:repeat(2,1fr);gap:7px;margin-top:14px}.qr-mini-actions a,.qr-mini-actions button{display:flex;justify-content:center;padding:9px;border:1px solid #dce4eb;border-radius:9px;background:#fff;color:#315e8d;font-size:9px;font-weight:750}

.contact-filters{display:flex;gap:8px;margin:0 0 20px;overflow:auto;padding-bottom:3px}.contact-filters button{flex:none;min-height:40px;padding:0 16px;border:1px solid #dbe4ec;border-radius:99px;background:#fff;color:#60778d;font-size:11px;font-weight:700}.contact-filters button.active{border-color:#0b2a50;background:#0b2a50;color:#fff}.contact-reorder{display:flex;gap:4px}.contact-reorder button{display:grid;place-items:center;width:30px;height:30px;border:1px solid #dfe7ee;border-radius:8px;background:#fff;color:#52708e}.contact-reorder button:disabled{opacity:.3}.contact-reorder svg{width:14px}.managed-contact-info a{display:flex;align-items:center;gap:7px;color:#52708e}

.medical-manager-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:28px 30px;border:1px solid #dae4ec;border-radius:24px;background:linear-gradient(135deg,#fff,#f5f9fc);box-shadow:0 12px 36px rgba(7,26,54,.05)}.medical-manager-hero>div:last-child{display:flex;align-items:center;gap:10px}.status-pill{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:30px;padding:0 12px;border-radius:99px;font-size:10px;font-weight:800}.status-pill.active{color:#087b58;background:#e7f7f1}.status-pill.draft{color:#7d631b;background:#fff4d4}.medical-tabs{display:flex;gap:4px;margin:18px 0;padding:6px;overflow-x:auto;border:1px solid #dfe7ee;border-radius:15px;background:#eef3f7}.medical-tabs button{flex:none;min-height:40px;padding:0 14px;border:0;border-radius:10px;background:transparent;color:#667c91;font-size:10px;font-weight:730}.medical-tabs button.active{background:#fff;color:#0a294f;box-shadow:0 3px 12px rgba(7,26,54,.08)}.manager-overview-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.manager-card{padding:25px;border-radius:20px}.manager-card.sensitive,.manager-detail.sensitive{border-color:#dce4ec;background:linear-gradient(135deg,#fbfcfd,#f3f6f8)}.manager-card-head{display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:12px;margin-bottom:14px}.manager-card-head>span{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#edf4fa;color:#236095}.manager-card-head svg{width:19px}.manager-card-head h3{font-size:16px;color:var(--navy)}.manager-card-head button{display:flex;gap:5px;align-items:center;border:0;background:none;color:#2f6595;font-size:10px;font-weight:750}.manager-card-head button svg{width:13px}.manager-info-row{display:flex;align-items:start;justify-content:space-between;gap:16px;padding:13px 0;border-top:1px solid #edf1f4}.manager-info-row span{font-size:11px;color:#7a8b9d}.manager-info-row b{max-width:68%;font-size:12px;line-height:1.5;text-align:right;color:#173454}.manager-detail{padding:30px;border-radius:22px}.manager-detail>header{display:flex;justify-content:space-between;gap:20px;margin-bottom:22px}.manager-detail h2{margin:8px 0;font-size:26px;color:var(--navy)}.manager-detail p{margin:0;color:#72869a;font-size:12px}.privacy-intro{display:flex;align-items:center;gap:18px;padding:24px 28px;border-radius:20px;background:#0b294d;color:#fff}.privacy-intro>svg{width:40px}.privacy-intro>div{flex:1}.privacy-intro h2{margin:6px 0;font-size:22px}.privacy-intro p{margin:0;color:#c7d3df;font-size:11px}.sharing-manager-list{margin-top:16px;overflow:hidden}.sharing-manager-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 22px;border-bottom:1px solid #e7edf2}.sharing-manager-row:last-child{border-bottom:0}.sharing-manager-row>span{display:grid;gap:4px}.sharing-manager-row b{font-size:13px;color:var(--navy)}.sharing-manager-row small{font-size:10px;color:#7c8d9d}.sharing-manager-row>i{display:flex;align-items:center;gap:6px;color:#687b8d;font-size:10px}.sharing-manager-row>i svg{width:14px}

.profile-preview-page{min-height:100vh;background:#e8edf2;padding-bottom:60px}.profile-preview-toolbar{position:sticky;z-index:20;top:0;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:20px;min-height:76px;padding:12px 5vw;border-bottom:1px solid #d5dee6;background:rgba(255,255,255,.95);backdrop-filter:blur(14px)}.profile-preview-toolbar>a,.profile-preview-toolbar>div:last-child button{display:flex;align-items:center;gap:6px;color:#315e89;font-size:10px;font-weight:750}.profile-preview-toolbar svg{width:15px}.profile-preview-toolbar>div:nth-child(2){display:grid;text-align:center}.profile-preview-toolbar>div:nth-child(2) b{font-size:13px;color:var(--navy)}.profile-preview-toolbar>div:nth-child(2) small{font-size:9px;color:#7a8c9c}.profile-preview-toolbar>div:last-child{display:flex;justify-content:flex-end;gap:8px}.profile-preview-toolbar button{padding:9px 12px;border:1px solid #d9e2e9;border-radius:9px;background:#fff}.profile-preview-document{width:min(1020px,calc(100% - 40px));margin:34px auto;padding:46px;border-radius:8px;background:#fff;box-shadow:0 22px 70px rgba(7,26,54,.12)}.print-profile-header{display:grid;grid-template-columns:72px 1fr auto;align-items:center;gap:18px;padding-bottom:28px;border-bottom:3px solid #0b294e}.print-profile-header h1{margin:5px 0;font-size:32px;color:var(--navy)}.print-profile-header p{margin:0;color:#6e8296;font-size:12px}.print-profile-header>div>span{font-size:9px;font-weight:800;letter-spacing:.14em;color:#ed344a}.print-profile-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin-top:22px}.print-section{padding:22px;border:1px solid #dce5ec;border-radius:14px;break-inside:avoid}.print-section.sensitive{background:#f7f9fb}.print-section header{display:flex;align-items:center;gap:9px;margin-bottom:12px}.print-section header svg{width:17px;color:#e8354c}.print-section h2{flex:1;margin:0;font-size:14px;color:var(--navy)}.print-section header span{padding:4px 7px;border-radius:99px;background:#e9eef3;color:#62788c;font-size:8px;font-weight:750}.print-section .manager-info-row{padding:10px 0}.print-empty{color:#8091a1;font-size:11px}.limited-notice{display:flex;align-items:center;gap:13px;margin-bottom:20px;padding:15px 18px;border-radius:13px;background:#eaf6f1;color:#0a7154}.limited-notice>span{display:grid;gap:3px;flex:1}.limited-notice b{font-size:12px}.limited-notice small{font-size:9px}.limited-notice a{font-size:10px;font-weight:800;color:inherit}

.privacy-center-hero{display:flex;align-items:center;justify-content:space-between;gap:30px;padding:32px;border-radius:24px;background:linear-gradient(135deg,#09284b,#174b76);color:#fff}.privacy-center-hero h2{max-width:700px;margin:8px 0;font-size:32px;letter-spacing:-.035em}.privacy-center-hero p{max-width:760px;margin:0;color:#c7d5e1;font-size:12px;line-height:1.7}.privacy-score{display:grid;place-items:center;width:128px;height:128px;flex:none;border:1px solid rgba(255,255,255,.2);border-radius:50%;background:rgba(255,255,255,.08);text-align:center}.privacy-score b{font-size:38px}.privacy-score small{width:80px;font-size:8px;text-transform:uppercase;letter-spacing:.09em}.profile-access-explainer{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:16px 0}.profile-access-explainer article{display:grid;grid-template-columns:46px 1fr auto;align-items:center;gap:14px;padding:21px;border:1px solid #dce5ed;border-radius:18px;background:#fff}.profile-access-explainer article>svg{width:42px;height:42px;padding:11px;border-radius:12px;background:#eef4f8;color:#245d90}.profile-access-explainer span{font-size:8px;font-weight:800;letter-spacing:.12em;color:#e73349}.profile-access-explainer h3{margin:4px 0;font-size:16px;color:var(--navy)}.profile-access-explainer p{margin:0;font-size:9px;color:#7c8d9d}.profile-access-explainer a{display:flex;gap:4px;align-items:center;font-size:10px;font-weight:750;color:#2d6496}.profile-access-explainer a svg{width:14px}.privacy-workspace{display:grid;grid-template-columns:minmax(0,1fr) 320px;align-items:start;gap:18px}.privacy-controls{display:grid;gap:14px}.privacy-group{overflow:hidden}.privacy-group>header{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;border-bottom:1px solid #e7edf2}.privacy-group h3{font-size:16px;color:var(--navy)}.privacy-group header span{font-size:9px;color:#708397}.privacy-option{display:grid;grid-template-columns:40px 1fr auto auto;align-items:center;gap:12px;padding:16px 20px;border-bottom:1px solid #edf1f4}.privacy-option:last-child{border-bottom:0}.privacy-option-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#eef4f8;color:#286291}.privacy-option-icon svg{width:17px}.privacy-option>div b{font-size:12px;color:var(--navy)}.privacy-option>div p{margin:3px 0 0;font-size:9px;color:#8090a0}.privacy-state{padding:5px 8px;border-radius:99px;font-size:8px;font-weight:800;text-transform:uppercase}.privacy-state.private{color:#687b8d;background:#edf1f4}.privacy-state.shared{color:#087b58;background:#e5f6ef}.limited-live-preview{position:sticky;top:105px;padding:18px;border:1px solid #dae4ec;border-radius:20px;background:#fff}.limited-live-preview>header{display:flex;justify-content:space-between;margin-bottom:13px}.limited-live-preview>header span,.limited-live-preview>header a{display:flex;align-items:center;gap:5px;font-size:9px;font-weight:750;color:#41698f}.limited-live-preview svg{width:14px}.limited-phone{min-height:380px;padding:24px 18px;border:7px solid #102b4b;border-radius:26px;background:#f8fafc}.limited-phone>h3{margin:13px 0 3px;font-size:20px;color:var(--navy)}.limited-phone>p{margin:0 0 18px;font-size:9px;color:#798a9a}.mini-emergency-brand{font-size:8px;font-weight:850;letter-spacing:.12em;color:#ef3449}.limited-phone>div:not(.privacy-preview-empty){display:flex;gap:8px;padding:11px 0;border-top:1px solid #e6edf2}.limited-phone>div span{display:grid;gap:2px}.limited-phone>div b{font-size:10px;color:var(--navy)}.limited-phone>div small{font-size:8px;color:#77899b}.privacy-preview-empty{display:grid;place-items:center;gap:6px;padding:50px 10px;text-align:center}.privacy-preview-empty svg{width:26px}.privacy-preview-empty small{font-size:8px}

.message-variable-strip{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:16px 20px;border:1px solid #dbe5ed;border-radius:17px;background:#fff}.message-variable-strip>div{display:flex;align-items:center;gap:10px;margin-right:auto}.message-variable-strip>div>svg{width:24px;color:#e73349}.message-variable-strip span{display:grid;gap:2px}.message-variable-strip b{font-size:12px;color:var(--navy)}.message-variable-strip small{font-size:9px;color:#7f8f9f}.message-variable-strip>button{display:flex;align-items:center;gap:5px;padding:7px 9px;border:1px solid #dbe4eb;border-radius:8px;background:#f7f9fb;color:#3c6489;font-size:9px}.message-variable-strip>button svg{width:12px}.message-page-grid{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:18px;margin-top:16px}.message-editor{display:grid;align-content:start;gap:14px}.message-editor .app-panel{padding:24px}.sms-count{display:block;margin-top:8px;text-align:right;color:#7d8e9e;font-size:9px}.message-actions{display:flex;justify-content:flex-end;gap:9px}.message-previews{display:grid;align-content:start;gap:16px}.sms-preview,.transactional-email{padding:20px;border:1px solid #dbe4eb;border-radius:20px;background:#fff}.sms-preview>header{display:flex;align-items:center;gap:9px;margin-bottom:16px}.sms-preview>header>svg{width:28px;color:#276195}.sms-preview header span{display:grid}.sms-preview header b{font-size:12px;color:var(--navy)}.sms-preview header small{font-size:8px;color:#8090a0}.sms-preview>div{padding:15px;border-radius:15px 15px 15px 4px;background:#e9f0f6}.sms-preview>div b{font-size:10px;color:var(--navy)}.sms-preview p{white-space:pre-wrap;font-size:10px;line-height:1.6;color:#39536c}.sms-preview>div small{font-size:8px;color:#7e8e9e}.transactional-email header{display:flex;align-items:center;gap:8px;padding-bottom:15px;border-bottom:1px solid #e7edf2;color:#0a294e}.transactional-email header span{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#ed344a;color:#fff}.transactional-email>small{display:block;margin-top:20px;color:#ed344a;font-size:8px;font-weight:800;letter-spacing:.12em}.transactional-email h3{font-size:19px;color:var(--navy)}.transactional-email p{white-space:pre-wrap;font-size:10px;line-height:1.7;color:#566e84}.transactional-email>button{padding:11px 14px;border:0;border-radius:9px;background:#e83248;color:#fff;font-size:10px;font-weight:750}.transactional-email>button svg{width:13px}.transactional-email footer{display:flex;gap:6px;margin-top:19px;padding-top:13px;border-top:1px solid #e7edf2;color:#789;font-size:8px}.transactional-email footer svg{width:12px}

.premium-qr-hero{display:grid;grid-template-columns:1fr 330px;align-items:center;gap:38px;padding:42px 50px;border-radius:28px;background:linear-gradient(135deg,#071a36,#143f69);color:#fff}.premium-qr-hero h2{max-width:700px;margin:12px 0;font-size:44px;line-height:1.05;letter-spacing:-.045em}.premium-qr-hero p{max-width:650px;color:#bfd0df;font-size:13px;line-height:1.65}.qr-meta{display:flex;gap:18px;margin:22px 0}.qr-meta span{display:flex;align-items:center;gap:6px;font-size:9px;color:#bed0de}.qr-meta i{width:8px;height:8px;border-radius:50%;background:#e9b43c}.qr-meta i.active{background:#21bc87}.qr-meta b{color:#fff}.qr-primary-actions{display:flex;gap:8px;flex-wrap:wrap}.generated-qr{display:grid;place-items:center;gap:7px}.generated-qr>div{position:relative;display:grid;grid-template-columns:repeat(11,1fr);gap:2px;width:118px;height:118px;padding:11px;border-radius:13px;background:#fff}.generated-qr.large>div{width:230px;height:230px;padding:17px}.generated-qr i{border-radius:1px}.generated-qr i.fill{background:#071a36}.generated-qr>div>span{position:absolute;top:50%;left:50%;display:grid;place-items:center;width:30px;height:30px;transform:translate(-50%,-50%);border:4px solid #fff;border-radius:9px;background:#ee3348;color:#fff}.generated-qr>b{font-size:10px;letter-spacing:.13em}.generated-qr>small{font-size:8px;color:#aebfcd}.qr-placement{margin-top:24px}.qr-placement>header h2{margin:6px 0;font-size:27px;color:var(--navy)}.qr-placement>header p{margin:0;color:#75889a;font-size:11px}.product-mockup-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-top:18px}.product-mockup{overflow:hidden;border:1px solid #dae4ec;border-radius:19px;background:#fff}.product-mockup>div{position:relative;display:grid;place-items:center;min-height:170px;background:linear-gradient(145deg,#edf2f6,#fff)}.product-mockup>div>svg{position:absolute;top:14px;left:14px;width:22px;color:#ed3449}.product-mockup .generated-qr>div{width:90px;height:90px;padding:9px}.product-mockup .generated-qr>b,.product-mockup .generated-qr>small{display:none}.product-mockup>span{display:grid;gap:4px;padding:14px}.product-mockup>span b{font-size:12px;color:var(--navy)}.product-mockup>span small{font-size:8px;color:#7d8e9f}

.activity-summary-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin-bottom:16px}.activity-summary-grid article{display:flex;align-items:center;gap:13px;padding:20px;border:1px solid #dce5ed;border-radius:17px;background:#fff}.activity-summary-grid article>svg{width:40px;height:40px;padding:10px;border-radius:11px;background:#eef4f8;color:#296291}.activity-summary-grid span{display:grid}.activity-summary-grid b{font-size:22px;color:var(--navy)}.activity-summary-grid small{font-size:9px;color:#7e8f9f}.scan-event-list{display:grid;gap:12px}.scan-event{display:grid;grid-template-columns:50px 1fr auto auto;align-items:center;gap:17px;padding:22px}.scan-event-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:#eaf2f9;color:#276292}.scan-event h3{margin:4px 0;font-size:16px;color:var(--navy)}.scan-event p{display:flex;gap:10px;align-items:center;margin:0;color:#708497;font-size:10px}.scan-event p svg{width:13px}.scan-event-stats{display:flex;gap:8px}.scan-event-stats span{display:grid;min-width:56px;padding:9px;border-radius:10px;background:#f1f5f8;text-align:center}.scan-event-stats b{font-size:14px;color:var(--navy)}.scan-event-stats small{font-size:7px;color:#8191a1}.scan-event>button{display:flex;align-items:center;gap:5px;border:0;background:none;color:#2e6494;font-size:10px;font-weight:750}.scan-event>button svg{width:14px}.event-detail-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.event-detail-grid>div{display:grid;gap:5px;padding:14px;border-radius:12px;background:#f3f6f8}.event-detail-grid span{font-size:9px;color:#7a8c9c}.event-detail-grid b{font-size:12px;color:var(--navy)}.event-detail-grid small{font-size:9px;color:#7a8c9c}

.export-intro{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:28px 30px;border-radius:22px;background:#0a294e;color:#fff}.export-intro h2{margin:7px 0;font-size:29px}.export-intro p{margin:0;color:#c1d1de;font-size:11px}.export-intro>span{display:flex;align-items:center;gap:7px;padding:9px 12px;border-radius:99px;background:rgba(255,255,255,.1);font-size:9px}.export-intro>span svg{width:14px}.export-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-top:17px}.export-card{position:relative;padding:28px}.export-card>span{display:grid;place-items:center;width:50px;height:50px;border-radius:14px;background:#eef4f8;color:#286191}.export-card>span svg{width:23px}.export-card>i{position:absolute;top:24px;right:24px;padding:5px 8px;border-radius:99px;background:#eef2f5;color:#677c90;font-size:8px;font-weight:850}.export-card h3{margin:18px 0 8px;font-size:18px;color:var(--navy)}.export-card p{min-height:52px;color:#728699;font-size:10px;line-height:1.6}.export-card>div:last-child{display:flex;gap:8px}.export-progress{display:flex!important;align-items:center;gap:9px!important;min-height:43px;color:#2b6294;font-size:10px}.export-progress i{width:18px;height:18px;border:2px solid #bfd0de;border-top-color:#276293;border-radius:50%;animation:spin .8s linear infinite}.export-preview{border:1px solid #dce4eb}.export-preview>header{display:flex;gap:10px;padding:18px;background:#0a294e;color:#fff}.export-preview>header>span{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;background:#ed3449}.export-preview header div{display:grid}.export-preview header small{font-size:8px}.export-preview>section{display:flex;justify-content:space-between;padding:20px}.export-preview>section h3{margin:4px 0;color:var(--navy)}.export-preview>section p{font-size:9px;color:#7b8d9d}.export-preview>section>span{align-self:start;padding:5px 7px;border-radius:5px;background:#fff0f2;color:#d72b41;font-size:7px;font-weight:850}.export-preview-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;padding:0 20px 20px}.export-preview-grid article{padding:13px;background:#f3f6f8}.export-preview-grid b{font-size:10px;color:var(--navy)}.export-preview-grid p{font-size:9px;color:#687d91}

.notifications-toolbar{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border:1px solid #dce4ec;border-radius:18px;background:#fff}.notifications-toolbar div{display:grid;gap:4px}.notifications-toolbar b{font-size:14px;color:var(--navy)}.notifications-toolbar p{margin:0;font-size:10px;color:#7b8d9e}.notifications-toolbar button{display:flex;align-items:center;gap:5px;border:0;background:none;color:#2d6394;font-size:10px;font-weight:750}.notifications-toolbar button svg{width:14px}.notification-list{margin-top:14px;overflow:hidden;border:1px solid #dce5ed;border-radius:20px;background:#fff}.notification-row{display:grid;grid-template-columns:44px 1fr auto 18px;align-items:center;gap:14px;padding:18px 21px;border-bottom:1px solid #e7edf2;color:inherit}.notification-row:last-child{border-bottom:0}.notification-row.unread{background:#f3f8fc}.notification-type{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#edf4f9;color:#286191}.notification-type.scan{background:#fff0f2;color:#e63249}.notification-row>div{display:grid;gap:4px}.notification-row b{font-size:13px;color:var(--navy)}.notification-row p{margin:0;font-size:10px;color:#708498}.notification-row small{font-size:8px;color:#8997a5}.notification-row>i{padding:5px 7px;border-radius:99px;background:#e83248;color:#fff;font-size:7px;font-weight:800}.notification-row>svg{width:15px;color:#789}

.settings-account-card{display:grid;grid-template-columns:66px 1fr auto;align-items:center;gap:16px;padding:25px}.settings-account-card h2{margin:5px 0;font-size:23px;color:var(--navy)}.settings-account-card p{margin:0;color:#708497;font-size:11px}.settings-sections{display:grid;grid-template-columns:repeat(2,1fr);gap:15px;margin:16px 0}.settings-section{padding:25px}.settings-section>header{display:flex;gap:12px;padding-bottom:18px;border-bottom:1px solid #e7edf2}.settings-section>header>span{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#edf4f9;color:#286291}.settings-section>header svg{width:19px}.settings-section h3{margin:0 0 5px;font-size:17px;color:var(--navy)}.settings-section header p{margin:0;font-size:9px;color:#7a8c9d}.settings-form{display:grid;grid-template-columns:1fr 1fr auto;align-items:end;gap:12px;padding-top:18px}.settings-option,.setting-static{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border-bottom:1px solid #edf1f4;color:inherit}.settings-option:last-child{border-bottom:0}.settings-option>span,.setting-static>span{display:grid;gap:4px}.settings-option b,.setting-static b{font-size:12px;color:var(--navy)}.settings-option small,.setting-static small{font-size:9px;color:#7b8c9d}.settings-option.link>svg{width:16px;color:#2d6496}.setting-static strong{display:flex;align-items:center;gap:5px;color:#6e8194;font-size:9px}.setting-static strong svg{width:13px}.pwa-install-card{display:grid;gap:15px;padding-top:18px}.pwa-install-card>div{display:flex;align-items:center;gap:12px}.pwa-install-card>div>span{display:grid;place-items:center;width:48px;height:48px;border-radius:13px;background:#0c2a4e;color:#fff}.pwa-install-card>div>span svg{width:22px}.pwa-install-card>div>div{display:grid;gap:4px}.pwa-install-card b{font-size:13px;color:var(--navy)}.pwa-install-card p{margin:0;font-size:9px;line-height:1.5;color:#728598}.settings-danger{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 25px;border-color:#f1cfd4;background:#fffafb}.settings-danger>header{display:flex;align-items:center;gap:11px}.settings-danger>header>svg{width:25px;color:#d82c43}.settings-danger h3{margin:0 0 4px;font-size:15px;color:var(--navy)}.settings-danger p{margin:0;font-size:9px;color:#7d8e9f}.settings-danger>div{display:flex;gap:8px}.settings-danger>div button{display:flex;align-items:center;gap:5px;padding:9px 11px;border:1px solid #dce4eb;border-radius:9px;background:#fff;color:#526f89;font-size:9px;font-weight:750}.settings-danger>div button.danger{border-color:#f0c9cf;color:#d62e45}.settings-danger button svg{width:14px}

.app-toast{position:fixed;z-index:150;right:24px;bottom:24px;display:flex;align-items:center;gap:10px;min-width:280px;padding:13px 15px;border:1px solid #cce7dc;border-radius:14px;background:#fff;color:#0c6f53;box-shadow:0 18px 55px rgba(7,26,54,.18);animation:toast-in .25s ease}.app-toast.error{color:#c9293e;border-color:#efcbd0}.app-toast>span{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#e8f7f1}.app-toast svg{width:16px}.app-toast b{flex:1;font-size:11px}.app-toast button{border:0;background:none;color:inherit}.app-empty.polished{min-height:280px;border:1px dashed #ccd9e4;border-radius:20px;background:#fff}.app-modal.wide{width:min(760px,calc(100vw - 30px))}.confirmation-copy{display:flex;align-items:start;gap:12px;padding:17px;border-radius:12px;background:#fff4e3}.confirmation-copy svg{width:22px;color:#a67210}.confirmation-copy p{margin:0;font-size:11px;line-height:1.6;color:#6d5729}.page-skeleton{display:grid;gap:14px}.skeleton-hero{height:130px;border-radius:22px;background:linear-gradient(90deg,#e7edf2 25%,#f4f7f9 50%,#e7edf2 75%);background-size:200% 100%;animation:skeleton 1.4s infinite}.skeleton-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.skeleton-card{height:180px;border-radius:20px;background:linear-gradient(90deg,#e7edf2 25%,#f4f7f9 50%,#e7edf2 75%);background-size:200% 100%;animation:skeleton 1.4s infinite}.route-loading{min-height:100vh;padding:130px 5vw;background:#f3f6f8}.standalone-loading{min-height:100vh;padding:8vw;background:#f3f6f8}

.status-page{display:grid;place-items:center;min-height:100vh;padding:30px;background:radial-gradient(circle at top,#fff,#eef3f7)}.status-page>div{display:grid;place-items:center;max-width:650px;text-align:center}.status-page-icon{display:grid;place-items:center;width:72px;height:72px;margin-bottom:22px;border-radius:22px;background:#eaf2f8;color:#245f93}.status-page-icon.error{background:#fff0f2;color:#dd3046}.status-page-icon svg{width:32px}.status-page h1{margin:12px 0;font-size:42px;color:var(--navy);letter-spacing:-.04em}.status-page p{max-width:530px;margin:0 0 24px;color:#708497;font-size:13px;line-height:1.7}.status-page>div>div{display:flex;gap:10px}

/* Public emergency scanner */
.emergency-page{width:min(760px,100%);min-height:100vh;margin:auto;padding:0 20px 50px;background:#f4f6f8;color:#102d4d}.emergency-brand{display:flex;align-items:center;gap:10px;padding:17px 0;border-bottom:1px solid #d9e1e8}.emergency-brand>span:first-child{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#ed3047;color:#fff}.emergency-brand>div{display:grid}.emergency-brand b{font-size:11px;letter-spacing:.12em}.emergency-brand small{font-size:8px;color:#73879a}.emergency-live{display:flex!important;align-items:center;gap:6px;margin-left:auto;padding:6px 8px;border-radius:99px;background:#e8f7f1;color:#087858;font-size:8px;font-weight:800}.emergency-live i{width:7px;height:7px;border-radius:50%;background:#17ad7c}.location-request{position:relative;display:grid;grid-template-columns:50px 1fr;gap:15px;margin:18px 0;padding:19px;border:1px solid #bcd3e5;border-radius:17px;background:#eaf3f9}.location-request>button{position:absolute;top:10px;right:10px;border:0;background:none;color:#678097}.location-request>button svg{width:17px}.location-request>span{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:#fff;color:#246295}.location-request h2{margin:0 0 7px;font-size:18px}.location-request p{margin:0 0 13px;font-size:10px;line-height:1.6;color:#60788e}.location-request>div>div{display:flex;gap:7px;flex-wrap:wrap}.location-request button{min-height:38px;padding:0 12px;border:1px solid #bfd0df;border-radius:9px;background:#fff;color:#315e86;font-size:9px;font-weight:750}.location-request button.emergency-primary{border-color:#e83248;background:#e83248;color:#fff}.location-request button svg{width:14px}.emergency-person{display:grid;grid-template-columns:68px 1fr auto;align-items:center;gap:15px;margin:18px 0;padding:22px;border-radius:20px;background:#0a294e;color:#fff}.emergency-avatar{display:grid;place-items:center;width:66px;height:66px;border:2px solid rgba(255,255,255,.25);border-radius:18px;background:#274a6c;font-size:17px;font-weight:800}.emergency-person>div:nth-child(2)>span{font-size:8px;font-weight:800;letter-spacing:.13em;color:#ff8997}.emergency-person h1{margin:4px 0;font-size:27px}.emergency-person p{margin:0;color:#c1d1de;font-size:9px}.emergency-blood{display:grid;place-items:center;width:58px;height:58px;border-radius:50%;background:#fff;color:#e93248;font-size:19px;font-weight:850}.emergency-blood small{font-size:7px;text-transform:uppercase}.emergency-actions{display:grid;grid-template-columns:2fr 1fr 1fr;gap:9px}.emergency-actions a,.emergency-actions button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:48px;padding:0 12px;border:1px solid #d4dfe7;border-radius:12px;background:#fff;color:#1c456c;font-size:9px;font-weight:800;text-align:center}.emergency-actions .emergency-primary{border-color:#e72f46;background:#e72f46;color:#fff}.emergency-actions svg{width:17px}.location-success,.location-declined{display:flex;align-items:center;gap:10px;margin-top:10px;padding:12px 14px;border-radius:11px;background:#e6f6ef;color:#087858}.location-declined{background:#edf2f5;color:#567085}.location-success svg,.location-declined svg{width:18px}.location-success span,.location-declined span{display:grid}.location-success b,.location-declined b{font-size:10px}.location-success small,.location-declined small{font-size:8px}.emergency-sequence{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin:16px 0}.emergency-sequence>div{display:flex;align-items:center;gap:7px;padding:11px;border:1px solid #dbe3e9;border-radius:11px;background:#fff;color:#8291a0}.emergency-sequence>div.done{color:#0b7b5a;border-color:#c9e8dc;background:#f1faf6}.emergency-sequence>div.current{color:#276193;border-color:#bdd4e5;background:#f2f8fc}.emergency-sequence>div.pending{color:#87691d;background:#fff9e9}.emergency-sequence svg{width:16px}.emergency-sequence span{display:grid;gap:2px}.emergency-sequence b{font-size:8px}.emergency-sequence small{font-size:7px}.emergency-medical-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.emergency-section{overflow:hidden;border:1px solid #d9e2e9;border-radius:15px;background:#fff}.emergency-section.urgent{border-color:#efc5cb}.emergency-section>header{display:flex;align-items:center;gap:9px;padding:15px 17px;border-bottom:1px solid #e6ecf1}.emergency-section>header span{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:#edf4f8;color:#28618f}.emergency-section.urgent>header span{background:#fff0f2;color:#e52e45}.emergency-section h2{font-size:12px;text-transform:uppercase;letter-spacing:.06em}.emergency-section>div{padding:14px 17px;border-bottom:1px solid #edf1f4}.emergency-section>div:last-child{border-bottom:0}.emergency-section>div>b{font-size:11px}.emergency-section>div>p{margin:4px 0 0;font-size:9px;line-height:1.5;color:#647b90}.emergency-private{display:flex;align-items:center;gap:9px;color:#708397}.emergency-private svg{width:18px}.emergency-private span{display:grid}.emergency-private p{margin:3px 0 0!important}.emergency-footer{display:flex;align-items:center;justify-content:center;gap:9px;margin-top:18px;padding:17px;border-radius:13px;background:#e9eef2;color:#61798f}.emergency-footer svg{width:19px}.emergency-footer span{display:grid}.emergency-footer b{font-size:9px}.emergency-footer small{font-size:7px}

/* Administration */
.admin-shell{display:grid;grid-template-columns:260px 1fr;min-height:100vh;background:#f1f4f7;color:#173451}.admin-sidebar{position:fixed;z-index:50;inset:0 auto 0 0;width:260px;display:flex;flex-direction:column;padding:20px 15px;background:#071a36;color:#fff}.admin-sidebar>header a{display:flex;align-items:center;gap:10px;color:#fff}.admin-sidebar>header span{display:grid}.admin-sidebar>header b{font-size:10px;letter-spacing:.1em}.admin-sidebar>header small{font-size:8px;color:#8fa6b9}.admin-sidebar>header>button{display:none}.admin-role{display:flex;align-items:center;gap:10px;margin:24px 0 16px;padding:13px;border:1px solid rgba(255,255,255,.09);border-radius:12px;background:rgba(255,255,255,.05)}.admin-role>svg{width:22px;color:#5eb79d}.admin-role span{display:grid}.admin-role b{font-size:10px}.admin-role small{font-size:8px;color:#91a6b8}.admin-sidebar nav{display:grid;gap:4px}.admin-sidebar nav a{position:relative;display:grid;grid-template-columns:20px 1fr;align-items:center;gap:9px;min-height:43px;padding:0 12px;border-radius:10px;color:#91a7ba;font-size:10px;font-weight:700}.admin-sidebar nav a svg{width:17px}.admin-sidebar nav a.active{background:rgba(255,255,255,.1);color:#fff}.admin-sidebar nav a.active i{position:absolute;right:0;width:3px;height:20px;border-radius:3px;background:#ef344b}.admin-sidebar>footer{margin-top:auto;padding:14px}.admin-sidebar>footer span{font-size:7px;font-weight:850;letter-spacing:.12em;color:#ee6676}.admin-sidebar>footer p{font-size:8px;line-height:1.5;color:#8299ac}.admin-workspace{grid-column:2;min-width:0}.admin-topbar{display:flex;align-items:center;min-height:92px;padding:16px 32px;border-bottom:1px solid #dce4eb;background:#fff}.admin-topbar>button{display:none}.admin-topbar>div:nth-child(2){display:grid;gap:2px}.admin-topbar>div:nth-child(2)>span{font-size:7px;font-weight:850;letter-spacing:.13em;color:#e63349}.admin-topbar h1{margin:0;font-size:25px;color:var(--navy)}.admin-topbar p{margin:0;color:#7d8d9e;font-size:9px}.admin-topbar>div:last-child{display:flex;align-items:center;gap:12px;margin-left:auto}.admin-topbar>div:last-child>button{position:relative;display:grid;place-items:center;width:39px;height:39px;border:1px solid #dce4eb;border-radius:10px;background:#fff}.admin-topbar>div:last-child>button svg{width:17px}.admin-topbar>div:last-child>button i{position:absolute;top:-3px;right:-3px;display:grid;place-items:center;width:16px;height:16px;border-radius:50%;background:#ed3449;color:#fff;font-size:7px}.admin-topbar>div:last-child>span{display:grid;grid-template-columns:32px auto;align-items:center;gap:8px;width:32px;height:32px;border-radius:9px;background:#0b294e;color:#fff;font-size:9px;font-weight:800;text-align:center}.admin-topbar>div:last-child small{white-space:nowrap;color:#173451;font-size:8px}.admin-main{padding:26px 32px 60px}.admin-stat-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}.admin-stat-grid article{position:relative;display:grid;gap:4px;padding:17px;border:1px solid #dce5ed;border-radius:15px;background:#fff}.admin-stat-grid article>span{display:grid;place-items:center;width:34px;height:34px;margin-bottom:8px;border-radius:10px;background:#edf4f8;color:#276092}.admin-stat-grid svg{width:17px}.admin-stat-grid article>i{position:absolute;top:15px;right:14px;color:#0b7b5b;font-size:7px;font-weight:800}.admin-stat-grid b{font-size:21px;color:var(--navy)}.admin-stat-grid small{font-size:8px;color:#788a9b}.admin-overview-grid{display:grid;grid-template-columns:2fr 1fr;gap:14px;margin:14px 0}.admin-panel{border:1px solid #dbe4eb;border-radius:17px;background:#fff}.admin-panel>header{display:flex;align-items:center;justify-content:space-between;padding:20px;border-bottom:1px solid #e7edf2}.admin-panel>header span{font-size:7px;font-weight:850;letter-spacing:.11em;color:#e33248}.admin-panel>header h2{margin:5px 0 0;font-size:16px;color:var(--navy)}.admin-panel>header p{margin:3px 0 0;font-size:8px;color:#7b8c9d}.admin-panel>header select{padding:7px;border:1px solid #dce4eb;border-radius:8px;font-size:8px}.simple-chart{display:flex;align-items:end;justify-content:space-around;height:240px;padding:30px 24px 20px}.simple-chart span{display:grid;grid-template-rows:1fr auto;justify-items:center;width:8%;height:100%;gap:8px}.simple-chart i{align-self:end;width:100%;max-width:34px;border-radius:6px 6px 2px 2px;background:linear-gradient(#ef4458,#be2439)}.simple-chart small{font-size:7px;color:#8392a0}.admin-health>div{display:flex;justify-content:space-between;padding:13px 18px;border-bottom:1px solid #edf1f4;font-size:9px}.admin-health b{display:flex;align-items:center;gap:5px}.admin-health b i{width:7px;height:7px;border-radius:50%}.admin-health b.ready{color:#0b7b5b}.admin-health b.ready i{background:#18a97c}.admin-health b.offline{color:#987019}.admin-health b.offline i{background:#e8b43c}.admin-recent>header a{display:flex;align-items:center;gap:5px;color:#2b6395;font-size:9px;font-weight:750}.admin-recent>header a svg{width:13px}.admin-recent>div{display:grid;grid-template-columns:38px 1fr auto;align-items:center;gap:11px;padding:14px 18px;border-bottom:1px solid #edf1f4}.admin-event-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:#edf4f8;color:#2a6191}.admin-event-icon svg{width:16px}.admin-recent>div>span:nth-child(2){display:grid;gap:3px}.admin-recent b{font-size:10px}.admin-recent small,.admin-recent time{font-size:8px;color:#7b8d9d}.admin-table-toolbar{display:flex;gap:10px;margin-bottom:14px;padding:13px;border:1px solid #dbe4eb;border-radius:14px;background:#fff}.admin-search{display:flex;align-items:center;gap:8px;flex:1;padding:0 11px;border:1px solid #d9e2e9;border-radius:9px}.admin-search svg{width:15px}.admin-search input{flex:1;min-height:38px;border:0;outline:0;font-size:10px}.admin-table-toolbar select{min-width:140px;padding:0 11px;border:1px solid #d9e2e9;border-radius:9px;font-size:9px}.admin-table-wrap{overflow:auto;border:1px solid #dbe4eb;border-radius:16px;background:#fff}.admin-table{width:100%;border-collapse:collapse;white-space:nowrap}.admin-table th{padding:13px 15px;background:#f5f7f9;color:#708294;font-size:7px;letter-spacing:.08em;text-align:left;text-transform:uppercase}.admin-table td{padding:15px;border-top:1px solid #e9eef2;font-size:9px;color:#4e687f}.admin-table td>b{color:#173451}.admin-table td>small{display:block;margin-top:3px}.admin-table td code{font-size:8px;color:#2b6191}.admin-table td>button,.admin-row-actions button,.admin-row-actions a{display:inline-flex;align-items:center;gap:4px;padding:7px 9px;border:1px solid #dce4eb;border-radius:8px;background:#fff;color:#2d6190;font-size:8px;font-weight:750}.admin-table td button svg,.admin-row-actions svg{width:12px}.admin-row-actions{display:flex;gap:5px}.admin-row-actions .danger{color:#d62d44;border-color:#efcbd0}.admin-row-actions .success{color:#087b59;border-color:#cce8dc}.table-user{display:flex;align-items:center;gap:9px}.table-user>i{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:#e9f1f7;color:#245d8f;font-size:8px;font-weight:800}.table-user>span{display:grid;gap:2px}.table-user b{font-size:9px}.table-user small{font-size:7px;color:#8493a1}.admin-status{display:inline-flex;align-items:center;gap:5px;padding:5px 7px;border-radius:99px;background:#edf1f4;color:#60778c;font-size:7px;font-weight:800}.admin-status i{width:6px;height:6px;border-radius:50%;background:#7d8e9e}.admin-status.active,.admin-status.sent,.admin-status.delivered,.admin-status.available{color:#087b59;background:#e6f6ef}.admin-status.active i,.admin-status.sent i,.admin-status.delivered i,.admin-status.available i{background:#16aa7b}.admin-status.failed,.admin-status.disabled,.admin-status.inactive{color:#c92b40;background:#fff0f2}.admin-status.failed i,.admin-status.disabled i,.admin-status.inactive i{background:#df3047}.completion-cell{display:flex;align-items:center;gap:7px}.completion-cell>i{width:70px;height:5px;border-radius:99px;background:#e4ebf0}.completion-cell em{display:block;height:100%;border-radius:inherit;background:#e73349}.admin-detail-list{display:grid;gap:0}.admin-detail-list.grid{grid-template-columns:1fr 1fr;gap:9px}.admin-detail-list>div{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:13px 0;border-bottom:1px solid #e7edf2}.admin-detail-list.grid>div{display:grid;gap:4px;padding:13px;border:0;border-radius:10px;background:#f3f6f8}.admin-detail-list span{font-size:9px;color:#7a8b9d}.admin-detail-list b{font-size:10px;color:#173451}.admin-detail-list small{font-size:8px;color:#789}.channel-cell{display:flex;align-items:center;gap:6px}.channel-cell svg{width:14px}.admin-settings-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.admin-settings-grid>.admin-panel{overflow:hidden}.admin-settings-grid>.admin-panel>header{justify-content:flex-start;gap:10px}.admin-settings-grid>.admin-panel>header>svg{width:22px;color:#2a6192}.admin-setting-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:16px 20px;border-bottom:1px solid #edf1f4}.admin-setting-row span{display:grid;gap:3px}.admin-setting-row b{font-size:10px}.admin-setting-row small{font-size:8px;color:#7d8e9e}.admin-setting-row strong{font-size:8px;color:#087b59}.admin-integration-status>div{display:flex;align-items:center;justify-content:space-between;padding:13px 20px;border-bottom:1px solid #edf1f4;font-size:9px}.admin-save{align-self:end;justify-self:start}.admin-login{display:grid;grid-template-columns:1.05fr .95fr;min-height:100vh}.admin-login-brand{display:flex;flex-direction:column;padding:45px 7vw;background:linear-gradient(145deg,#071a36,#113c66);color:#fff}.admin-login-brand .app-brand{color:#fff}.admin-login-brand>div{margin:auto 0}.admin-login-brand h1{margin:15px 0;font-size:56px;line-height:.98;letter-spacing:-.05em}.admin-login-brand p{max-width:560px;color:#c4d3df;font-size:13px;line-height:1.75}.admin-login-brand footer{display:flex;align-items:center;gap:6px;font-size:9px;color:#8fa8ba}.admin-login-brand footer svg{width:14px}.admin-login-form{display:grid;place-items:center;padding:30px;background:#f4f7f9}.admin-login-form form{width:min(430px,100%);padding:38px;border:1px solid #dce4eb;border-radius:24px;background:#fff;box-shadow:0 20px 70px rgba(7,26,54,.1)}.admin-login-icon{display:grid;place-items:center;width:56px;height:56px;border-radius:16px;background:#eaf2f8;color:#286193}.admin-login-icon svg{width:26px}.admin-login-form h2{margin:19px 0 5px;font-size:28px;color:var(--navy)}.admin-login-form>form>p{margin:0 0 22px;color:#738699;font-size:10px}.admin-login-form .app-field{margin-top:15px}.password-input{position:relative}.password-input input{width:100%;padding-right:48px}.password-input button{position:absolute;top:50%;right:12px;transform:translateY(-50%);border:0;background:none;color:#718599}.password-input button svg{width:17px}.admin-login-note{display:flex;align-items:center;gap:9px;margin:16px 0;padding:12px;border-radius:11px;background:#eef4f8}.admin-login-note svg{width:18px;color:#2b6292}.admin-login-note span{display:grid}.admin-login-note b{font-size:9px}.admin-login-note small{font-size:7px;color:#798c9c}.admin-login-form form>a{display:block;margin-top:16px;text-align:center;color:#2d6393;font-size:9px;font-weight:750}

@keyframes spin{to{transform:rotate(360deg)}}@keyframes skeleton{to{background-position:-200% 0}}@keyframes toast-in{from{opacity:0;transform:translateY(8px)}}
@media(prefers-reduced-motion:reduce){.quick-action,.app-toast,.export-progress i,.skeleton-card{transition:none;animation:none!important}}
@media print{.profile-preview-toolbar{display:none}.profile-preview-page{background:#fff;padding:0}.profile-preview-document{width:100%;margin:0;box-shadow:none}}
@media(max-width:1180px){.dashboard-quick-grid{grid-template-columns:repeat(2,1fr)}.product-mockup-grid{grid-template-columns:repeat(3,1fr)}.admin-stat-grid{grid-template-columns:repeat(3,1fr)}.settings-form{grid-template-columns:1fr 1fr}.settings-form button{grid-column:1/-1}.premium-qr-hero{grid-template-columns:1fr 280px}.privacy-workspace{grid-template-columns:minmax(0,1fr) 285px}}
@media(max-width:900px){.message-page-grid{grid-template-columns:1fr}.message-previews{grid-template-columns:1fr 1fr}.privacy-workspace{grid-template-columns:1fr}.limited-live-preview{position:static}.settings-sections{grid-template-columns:1fr}.export-grid{grid-template-columns:1fr}.admin-shell{grid-template-columns:1fr}.admin-workspace{grid-column:1}.admin-sidebar{transform:translateX(-105%);transition:.25s ease}.admin-sidebar.open{transform:none}.admin-sidebar>header{display:flex;justify-content:space-between}.admin-sidebar>header>button{display:grid;place-items:center;width:34px;height:34px;border:0;border-radius:8px;background:rgba(255,255,255,.08);color:#fff}.admin-scrim{position:fixed;z-index:40;inset:0;border:0;background:rgba(7,26,54,.45)}.admin-topbar>button{display:grid;place-items:center;width:40px;height:40px;margin-right:13px;border:1px solid #dce4eb;border-radius:10px;background:#fff}.admin-overview-grid{grid-template-columns:1fr}.admin-login{grid-template-columns:1fr}.admin-login-brand{min-height:38vh}.admin-login-brand>div{margin:60px 0}.admin-login-brand h1{font-size:46px}.profile-preview-document{padding:30px}.profile-preview-toolbar{grid-template-columns:1fr auto}.profile-preview-toolbar>div:nth-child(2){display:none}}
@media(max-width:700px){.dashboard-section-heading{align-items:start;flex-direction:column;gap:5px}.dashboard-section-heading h2{font-size:21px}.dashboard-quick-grid{grid-template-columns:1fr}.quick-action{min-height:78px}.manager-overview-grid,.print-profile-grid,.profile-access-explainer,.emergency-medical-grid{grid-template-columns:1fr}.medical-manager-hero{align-items:flex-start;flex-direction:column;padding:22px}.medical-manager-hero>div:last-child{width:100%;justify-content:space-between}.manager-detail{padding:22px}.manager-detail>header{align-items:flex-start;flex-direction:column}.print-profile-header{grid-template-columns:58px 1fr}.print-profile-header>.status-pill{grid-column:1/-1;width:max-content}.print-profile-header h1{font-size:24px}.profile-preview-document{width:calc(100% - 20px);margin:16px auto;padding:20px}.privacy-center-hero{align-items:flex-start;flex-direction:column;padding:25px}.privacy-center-hero h2{font-size:27px}.privacy-score{width:100%;height:auto;display:flex;justify-content:center;gap:8px;padding:13px;border-radius:13px}.privacy-score b{font-size:22px}.profile-access-explainer article{grid-template-columns:40px 1fr}.profile-access-explainer article>a{grid-column:2}.privacy-option{grid-template-columns:36px 1fr auto}.privacy-option .privacy-state{grid-column:2}.message-previews{grid-template-columns:1fr}.premium-qr-hero{grid-template-columns:1fr;padding:30px 24px}.premium-qr-hero h2{font-size:34px}.premium-qr-hero>.generated-qr{grid-row:1;}.product-mockup-grid{grid-template-columns:repeat(2,1fr)}.activity-summary-grid{grid-template-columns:1fr}.scan-event{grid-template-columns:44px 1fr}.scan-event-stats,.scan-event>button{grid-column:2}.settings-account-card{grid-template-columns:58px 1fr}.settings-account-card>.status-pill{grid-column:1/-1;width:max-content}.settings-form{grid-template-columns:1fr}.settings-form button{grid-column:auto}.settings-danger{align-items:flex-start;flex-direction:column}.settings-danger>div{flex-wrap:wrap}.emergency-actions{grid-template-columns:1fr}.emergency-sequence{grid-template-columns:repeat(2,1fr)}.admin-stat-grid{grid-template-columns:repeat(2,1fr)}.admin-main{padding:20px 14px 50px}.admin-topbar{padding:13px 14px}.admin-topbar p{display:none}.admin-topbar>div:last-child>span small{display:none}.admin-table-wrap{margin-inline:-2px}.admin-settings-grid{grid-template-columns:1fr}.admin-login-brand{padding:28px}.admin-login-brand h1{font-size:38px}.admin-login-form{padding:18px}.admin-login-form form{padding:26px}.event-detail-grid,.admin-detail-list.grid{grid-template-columns:1fr}.status-page h1{font-size:33px}.page-skeleton{grid-template-columns:1fr}}
@media(max-width:430px){.notification-popover{right:-54px}.dashboard-quick-grid{gap:9px}.quick-action{padding:13px}.profile-access-explainer article{padding:17px}.privacy-option{padding:15px 14px}.privacy-option>div p{font-size:8px}.message-variable-strip>div{width:100%}.qr-primary-actions .app-button{width:100%;justify-content:center}.product-mockup-grid{grid-template-columns:1fr 1fr}.product-mockup>div{min-height:145px}.emergency-page{padding-inline:12px}.emergency-person{grid-template-columns:58px 1fr;padding:17px}.emergency-avatar{width:56px;height:56px}.emergency-blood{grid-column:1/-1;width:100%;height:36px;border-radius:9px;display:flex;gap:5px}.emergency-person h1{font-size:23px}.emergency-sequence{grid-template-columns:1fr}.emergency-actions a,.emergency-actions button{font-size:10px}.app-toast{right:12px;bottom:90px;left:12px;min-width:0}.profile-preview-toolbar{padding-inline:12px}.profile-preview-toolbar>div:last-child button{padding:8px}.profile-preview-toolbar>div:last-child button{font-size:0}.profile-preview-toolbar>div:last-child button svg{width:16px}.admin-stat-grid{gap:7px}.admin-stat-grid article{padding:14px}.admin-topbar h1{font-size:21px}}

/* Product page readability pass. These pages share the app shell but need a more generous reading scale than the overview cards. */
.medical-summary-card{padding:32px;border-radius:24px}
.summary-identity{gap:18px}
.large-app-avatar{width:68px;height:68px;border-radius:20px;font-size:16px}
.summary-identity h2{font-size:30px}
.summary-identity p{font-size:12px}
.blood-badge{width:60px;height:60px;font-size:17px}
.blood-badge small{font-size:7px}
.summary-actions{gap:10px}
.medical-section-grid{gap:18px;margin-top:18px}
.summary-section{padding:28px;border-radius:22px}
.summary-section-head{gap:13px;margin-bottom:18px}
.summary-section-head>span{width:42px;height:42px}
.summary-section-head svg{width:19px;height:19px}
.summary-section-head h3{font-size:19px}
.summary-section-head i{font-size:10px}
.summary-section-head i svg{width:13px;height:13px}
.summary-row{padding:14px 0;font-size:14px}
.summary-row span{font-size:13px}
.app-page-toolbar{margin-bottom:20px;padding:24px;border-radius:20px}
.app-page-toolbar b{font-size:17px}
.app-page-toolbar p{font-size:12px}
.contact-management-grid{gap:18px}
.managed-contact{padding:24px;border-radius:22px}
.managed-contact-head{grid-template-columns:50px 1fr auto;gap:13px}
.managed-contact-head .contact-initial{width:50px;height:50px}
.managed-contact-head b{font-size:15px}
.managed-contact-head small{font-size:11px}
.managed-contact-info{gap:9px;margin:18px 0;padding:15px 0}
.managed-contact-info span{font-size:12px}
.managed-contact-info svg{width:16px;height:16px}
.permission-summary span{padding:7px 10px;font-size:10px}
.contact-access{margin-top:16px;padding:13px}
.contact-access small{font-size:8px}
.contact-access b{font-size:11px}
.card-actions{margin-top:16px}
.card-actions button{font-size:11px}
.qr-hero-card{grid-template-columns:1fr 260px;gap:48px;padding:42px 48px;border-radius:26px}
.qr-hero-card h2{font-size:42px}
.qr-hero-card p{font-size:14px;line-height:1.65}
.large-qr-display{padding:22px;border-radius:20px}
.qr-placeholder{width:180px;height:180px}
.large-qr-display>span{font-size:11px}
.large-qr-display small{font-size:8px}
.qr-action-grid{gap:18px;margin:18px 0}
.qr-action-grid article{padding:30px;border-radius:22px}
.qr-action-grid article>svg{width:27px;height:27px}
.qr-action-grid h3{margin:18px 0 9px;font-size:20px}
.qr-action-grid p{min-height:68px;margin-bottom:20px;font-size:13px;line-height:1.6}
.qr-action-grid .app-button{font-size:13px}
.activation-strip{gap:16px;padding:22px;border-radius:19px}
.activation-strip>svg{width:26px;height:26px}
.activation-strip b{font-size:15px}
.activation-strip p{font-size:12px}
.activity-filter{gap:8px;margin-bottom:20px}
.activity-filter button{min-height:44px;padding-inline:17px;border-radius:11px;font-size:12px}
.activity-timeline{border-radius:22px}
.activity-timeline article{grid-template-columns:52px 1fr auto;gap:17px;padding:24px 28px}
.activity-symbol{width:46px;height:46px;border-radius:13px}
.activity-symbol svg{width:21px;height:21px}
.activity-timeline b{font-size:16px}
.activity-timeline p{margin:6px 0;font-size:13px}
.activity-timeline small{font-size:11px}
.activity-timeline article>i{padding:6px 9px;font-size:9px}
.app-empty.compact{min-height:220px;margin-top:18px}
.app-empty.compact h3{font-size:18px}
.app-empty.compact p{font-size:12px}
.settings-profile{gap:18px;padding:30px;border-radius:24px}
.settings-profile h2{font-size:28px}
.settings-profile p{font-size:13px}
.settings-profile>div>span{font-size:10px}
.settings-grid{gap:18px;margin:18px 0}
.settings-grid article{padding:30px;border-radius:22px}
.settings-section-head{gap:14px;margin-bottom:22px}
.settings-section-head>svg{width:26px;height:26px}
.settings-section-head h3{font-size:19px}
.settings-section-head p{font-size:12px}
.setting-row{padding:17px 0}
.setting-row b{font-size:14px}
.setting-row small{font-size:11px}
.setting-value{font-size:13px}
.mini-toggle{width:42px;height:23px}
.mini-toggle i{width:17px;height:17px}
.mini-toggle.on i{left:22px}
.danger-zone{padding:26px 30px;border-radius:22px}
.danger-zone>div{gap:15px}
.danger-zone svg{width:25px;height:25px}
.danger-zone b{font-size:14px}
.danger-zone p{font-size:11px}
.danger-zone>button{padding:11px 15px;font-size:11px}
.activity-filter-empty{display:grid;place-items:center;gap:8px;padding:60px 24px;text-align:center;color:#7a8b9e}
.activity-filter-empty svg{width:30px;height:30px;color:#7392b1}
.activity-filter-empty b{color:var(--navy);font-size:16px}
.activity-filter-empty p{margin:0;font-size:12px}
.settings-account-editor{display:flex;align-items:flex-end;gap:14px;flex:1}
.settings-account-editor .app-field{flex:1}
.settings-account-editor>div{display:flex;gap:8px}
.settings-account-editor .app-button{min-height:46px}

@media(max-width:1100px){
  .qr-hero-card{grid-template-columns:1fr 220px;gap:28px;padding:34px}
  .qr-hero-card h2{font-size:36px}
}
@media(max-width:820px){
  .medical-summary-card{padding:26px}
  .summary-identity h2{font-size:26px}
  .summary-row{font-size:13px}
  .qr-hero-card{grid-template-columns:1fr 190px;padding:28px}
  .qr-hero-card h2{font-size:32px}
  .qr-hero-card p{font-size:12px}
  .qr-placeholder{width:150px;height:150px}
  .qr-action-grid{grid-template-columns:1fr}
  .qr-action-grid article{padding:24px}
  .activity-timeline article{padding:20px 22px}
  .settings-profile{padding:24px}
  .settings-grid article{padding:24px}
}
@media(max-width:560px){
  .medical-summary-card{padding:20px}
  .large-app-avatar{width:56px;height:56px}
  .summary-identity h2{font-size:22px}
  .summary-identity p{font-size:10px}
  .summary-section{padding:20px}
  .summary-section-head h3{font-size:17px}
  .summary-row{padding:12px 0;font-size:12px}
  .summary-row span{font-size:11px}
  .qr-hero-card{grid-template-columns:1fr;padding:24px}
  .qr-hero-card h2{font-size:30px}
  .qr-hero-card p{font-size:11px}
  .large-qr-display{width:210px;margin:auto}
  .activity-timeline article{grid-template-columns:42px 1fr;gap:12px;padding:17px 18px}
  .activity-symbol{width:38px;height:38px}
  .activity-timeline b{font-size:14px}
  .activity-timeline p{font-size:11px}
  .activity-timeline small{font-size:10px}
  .activity-timeline article>i{grid-column:2;width:max-content}
  .settings-profile{padding:20px}
  .settings-profile h2{font-size:23px}
  .settings-profile p{font-size:11px}
  .settings-grid article{padding:20px}
  .settings-section-head h3{font-size:17px}
  .settings-section-head p{font-size:11px}
  .setting-row b{font-size:12px}
  .setting-row small{font-size:10px}
  .danger-zone{padding:20px}
  .settings-account-editor{align-items:stretch;flex-direction:column;gap:12px}
  .settings-account-editor>div{width:100%}
  .settings-account-editor .app-button{flex:1}
}

/* Onboarding wizard readability pass. Keep the one-step-at-a-time flow, but give every control room to breathe. */
.onboarding-shell{grid-template-columns:330px minmax(0,1fr)}
.onboarding-sidebar{width:330px;padding:30px 24px}
.onboarding-brand{margin-bottom:44px}
.onboarding-intro{padding:0 10px 26px}
.onboarding-intro h2{font-size:24px}
.onboarding-intro p{font-size:10px}
.onboarding-steps{margin-top:20px}
.onboarding-steps button{grid-template-columns:38px 1fr;gap:13px;padding:11px 10px;border-radius:12px}
.onboarding-steps button>span{width:34px;height:34px;font-size:10px}
.onboarding-steps button:not(:last-child):after{left:26px;top:45px;height:12px}
.onboarding-steps b{font-size:11px}
.onboarding-steps small{font-size:9px}
.onboarding-security{margin-top:24px;padding-top:18px}
.onboarding-security b{font-size:10px}
.onboarding-security small{font-size:9px}
.onboarding-main{grid-column:2}
.onboarding-topbar{height:78px;padding-inline:46px}
.onboarding-topbar a,.onboarding-topbar span{font-size:10px}
.onboarding-topbar svg{width:16px;height:16px}
.onboarding-content{width:min(980px,calc(100% - 84px));padding:64px 0 140px}
.onboarding-heading{margin-bottom:38px}
.step-chip{font-size:10px}
.onboarding-heading h1{margin:12px 0;font-size:48px}
.onboarding-heading>p{font-size:14px;line-height:1.6}
.heading-progress{width:220px}
.heading-progress>span{font-size:10px;margin-bottom:8px}
.heading-progress>i,.onboarding-mobile-progress>i{height:5px}
.step-stack{gap:18px}
.form-card{padding:30px;border-radius:22px}
.form-heading{margin-bottom:24px;padding-bottom:17px}
.form-heading h3{font-size:19px}
.form-heading p{font-size:11px}
.card-section-heading>div{gap:14px}
.form-icon{width:46px;height:46px;border-radius:13px}
.form-icon svg{width:21px;height:21px}
.card-section-heading h3{font-size:17px}
.card-section-heading p{font-size:11px}
.card-section-heading>i{font-size:10px}
.photo-uploader{gap:22px;margin-top:23px}
.photo-preview{width:92px;height:92px;border-radius:20px}
.photo-uploader small{font-size:9px}
.text-button{font-size:10px}
.form-grid{gap:21px}
.app-field{gap:9px;font-size:13px}
.app-field input,.app-field select,.app-field textarea{min-height:54px;padding-inline:16px;border-radius:13px;font-size:14px}
.app-field textarea{padding-block:14px}
.app-field>span i{font-size:10px}
.app-field small{font-size:10px}
.setting-choice{gap:13px;margin-top:24px;padding:17px;border-radius:14px}
.setting-choice b{font-size:12px}
.setting-choice small{font-size:10px}
.app-switch{width:44px;height:24px}
.app-switch i{width:18px;height:18px}
.app-switch.on i{transform:translateX(20px)}
.records-toolbar{padding:19px 22px;border-radius:18px}
.records-toolbar>p{font-size:11px}
.records-toolbar>div{gap:9px}
.record-card{border-radius:20px}
.record-card summary{grid-template-columns:20px 46px 1fr auto;gap:14px;padding:19px 22px}
.record-grip svg{width:18px}
.record-icon{width:46px;height:46px;border-radius:12px}
.record-icon svg{width:20px;height:20px}
.record-card summary b{font-size:13px}
.record-card summary small{font-size:8px}
.record-controls{gap:6px}
.record-controls button{width:34px;height:34px}
.record-card-body{padding:24px}
.records-empty h3{font-size:18px}
.records-empty p{font-size:11px}
.allergy-legend{font-size:10px}
.care-location-grid{gap:18px}
.care-location-card{gap:14px;padding:22px;border-radius:17px}
.care-location-card h3{font-size:13px}
.private-notice{gap:15px;padding:20px 22px}
.private-notice b{font-size:13px}
.private-notice p{font-size:10px}
.contact-permission-editor{gap:24px;margin-top:21px;padding:19px}
.contact-permission-editor>div>span{font-size:12px}
.step-tabbar{padding:6px;border-radius:15px}
.step-tabbar button{min-height:48px;font-size:11px}
.master-profile-explainer{gap:15px;padding:20px;border-radius:17px}
.master-profile-explainer>span{width:44px;height:44px}
.master-profile-explainer b{font-size:13px}
.master-profile-explainer p{font-size:10px}
.privacy-editor-grid,.message-editor-grid{gap:18px}
.sharing-list{border-radius:21px}
.sharing-list-head{padding:23px}
.sharing-list-head h3{font-size:18px}
.sharing-list-head>span{font-size:10px}
.permission-row{grid-template-columns:42px 1fr auto;gap:13px;padding:17px 22px}
.permission-icon{width:38px;height:38px}
.permission-row b{font-size:12px}
.permission-row small{font-size:9px}
.private-pill{font-size:9px}
.profile-view{padding:24px;border-radius:20px}
.profile-view h3{font-size:19px}
.profile-view>p{font-size:10px}
.preview-lines span{font-size:9px}
.variable-list button{padding:9px 11px;font-size:9px}
.character-count{font-size:9px}
.phone-message{padding:18px;border-width:8px}
.phone-message>p{font-size:10px}
.email-preview{padding:26px}
.email-preview h3{font-size:19px}
.email-preview>p{font-size:10px}
.onboarding-actions{left:330px;min-height:88px;padding:14px 46px}
.save-later{font-size:10px}
.saved-feedback{font-size:10px}

@media(max-width:1100px){
  .onboarding-shell{grid-template-columns:280px minmax(0,1fr)}
  .onboarding-sidebar{width:280px;padding-inline:18px}
  .onboarding-actions{left:280px}
  .onboarding-content{width:min(900px,calc(100% - 60px))}
  .onboarding-heading h1{font-size:42px}
}
@media(max-width:820px){
  .onboarding-shell{display:block}
  .onboarding-sidebar{display:none}
  .onboarding-main{min-height:100svh}
  .onboarding-topbar{height:64px;padding:0 20px}
  .onboarding-topbar a,.onboarding-topbar span{font-size:9px}
  .onboarding-mobile-progress{display:block;padding:16px 20px}
  .onboarding-mobile-progress span,.onboarding-mobile-progress b{font-size:10px}
  .onboarding-content{width:calc(100% - 36px);padding:38px 0 125px}
  .onboarding-heading{margin-bottom:28px}
  .onboarding-heading h1{font-size:36px}
  .onboarding-heading>p{font-size:12px}
  .heading-progress{display:none}
  .form-card{padding:24px}
  .form-grid.three{grid-template-columns:1fr 1fr}
  .span-2{grid-column:span 2}
  .onboarding-actions{left:0;min-height:76px;padding:11px 18px}
}
@media(max-width:560px){
  .onboarding-topbar{height:60px;padding:0 16px}
  .onboarding-topbar span{display:none}
  .onboarding-mobile-progress{padding:14px 16px}
  .onboarding-content{width:calc(100% - 28px);padding:30px 0 115px}
  .onboarding-heading{margin-bottom:22px}
  .onboarding-heading h1{font-size:31px}
  .onboarding-heading>p{font-size:11px}
  .step-stack{gap:12px}
  .form-card{padding:18px;border-radius:18px}
  .form-heading{margin-bottom:18px;padding-bottom:13px}
  .form-heading h3{font-size:17px}
  .form-heading p{font-size:10px}
  .card-section-heading h3{font-size:15px}
  .card-section-heading p{font-size:10px}
  .photo-uploader{gap:14px;margin-top:17px}
  .photo-preview{width:76px;height:76px}
  .photo-uploader small{font-size:8px}
  .form-grid,.form-grid.two,.form-grid.three{grid-template-columns:1fr;gap:15px}
  .span-2{grid-column:auto}
  .app-field{font-size:12px}
  .app-field input,.app-field select,.app-field textarea{min-height:50px;font-size:13px}
  .records-toolbar{padding:16px;gap:10px}
  .records-toolbar>p{font-size:10px}
  .records-toolbar>div{width:100%}
  .records-toolbar .app-button{flex:1}
  .record-card summary{grid-template-columns:40px 1fr;padding:16px}
  .record-grip{display:none}
  .record-controls{grid-column:1/-1;justify-content:flex-end}
  .record-card-body{padding:17px}
  .care-location-grid{grid-template-columns:1fr}
  .contact-permission-editor{grid-template-columns:1fr}
  .step-tabbar button{font-size:10px}
  .sharing-list-head{padding:18px}
  .sharing-list-head h3{font-size:16px}
  .permission-row{padding:15px 17px}
  .profile-view{padding:20px}
  .onboarding-actions{padding:9px 12px}
  .onboarding-actions .save-later,.saved-feedback{display:none}
  .onboarding-actions .app-button{padding-inline:13px;font-size:11px}
  .onboarding-actions>div{margin-left:auto}
}

/* Dashboard metric cards: turn the spacious 2×2 grid into useful at-a-glance status cards. */
.overview-metrics article.metric-card{display:flex;flex-direction:column;justify-content:space-between;min-height:180px;padding:26px 28px}
.metric-card-head{display:flex!important;align-items:center!important;justify-content:space-between!important;margin:0!important}
.metric-card-head .metric-icon{flex:0 0 auto}
.metric-badge{display:inline-flex;align-items:center;min-height:26px;padding:0 10px;border-radius:99px;font-size:10px;font-weight:750;letter-spacing:.01em}
.metric-badge.good{color:#087d5a;background:#e9f8f2}
.metric-badge.blue{color:#2a6094;background:#edf5fd}
.metric-badge.pending{color:#956d0c;background:#fff4d6}
.metric-badge.private{color:#4f667d;background:#eef2f6}
.metric-value{display:flex!important;align-items:flex-end!important;justify-content:space-between!important;margin:17px 0 0!important}
.metric-value small{font-size:13px!important}
.metric-value b{font-size:36px!important;line-height:1!important}
.metric-progress{display:grid!important;grid-template-columns:1fr;gap:9px;margin-top:17px!important}
.metric-progress>i{display:block;width:100%;height:7px;overflow:hidden;border-radius:99px;background:#e7edf2}
.metric-progress>i em{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--red),#ff6577)}
.metric-progress>span,.metric-support{display:flex;align-items:center;justify-content:flex-start!important;gap:7px;color:#8191a3;font-size:11px}
.metric-progress>span svg,.metric-support>svg{width:14px;height:14px;color:#15936e}
.metric-support{margin-top:17px}
.metric-support>a{display:flex;align-items:center;gap:4px;margin-left:auto;color:#315e91;font-size:11px;font-weight:750}
.metric-support>a svg{width:13px;height:13px}
@media(max-width:820px){
  .overview-metrics article.metric-card{min-height:160px;padding:21px}
  .metric-badge{font-size:9px}
  .metric-value small{font-size:11px!important}
  .metric-value b{font-size:29px!important}
  .metric-progress>span,.metric-support,.metric-support>a{font-size:10px}
}
@media(max-width:560px){
  .overview-metrics article.metric-card{min-height:142px;padding:16px}
  .metric-card-head .metric-icon{width:40px;height:40px}
  .metric-badge{min-height:22px;padding-inline:7px;font-size:8px}
  .metric-value{margin-top:12px!important}
  .metric-value small{font-size:10px!important}
  .metric-value b{font-size:24px!important}
  .metric-progress{gap:7px;margin-top:11px}
  .metric-progress>span,.metric-support,.metric-support>a{font-size:9px}
}

/* Final Milestone 1 overrides */
.admin-topbar>div:last-child>span{width:auto;min-width:32px;padding-right:2px}
@media(max-width:700px){.skeleton-grid{grid-template-columns:1fr}}
@media(max-width:1180px){.export-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.export-grid{grid-template-columns:1fr}}
