:root{--bg: #fff3f5;--surface: #ffffff;--ink: #10070a;--muted: #797276;--line: #ffd0d4;--grid: #ffdadd;--brand: #c91d34;--brand-dark: #ab1428;--soft: #fff8f9;--shadow: 0 14px 35px rgba(120, 20, 32, .06)}*{box-sizing:border-box}html{min-width:320px}body{margin:0;color:var(--ink);background:var(--bg);font-family:Montserrat,Arial,sans-serif;letter-spacing:0}body.auth-screen{overflow:hidden}@media(min-width:761px){body.app-screen{overflow-x:hidden}body.app-screen #app{width:125vw;transform:scale(.8);transform-origin:top left}}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:var(--brand)}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.auth-page{min-height:100vh;display:grid;grid-template-columns:minmax(430px,746px) minmax(360px,590px);gap:clamp(34px,4.8vw,69px);align-items:center;justify-content:start;padding:clamp(12px,1.1vw,16px)}@media(min-width:761px){.auth-page{width:125vw;min-height:125vh;transform:scale(.8);transform-origin:top left}}.auth-visual{height:calc(100vh - 32px);min-height:500px;overflow:hidden;border-radius:20px}.auth-visual img{width:100%;height:100%;display:block;object-fit:cover;object-position:50% 0%}@media(min-width:761px){.auth-page .auth-visual{height:calc(125vh - 30px);max-width:700px}}.auth-panel{width:min(100%,625px)}.auth-heading-row{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}h1{margin:0 0 24px;color:var(--brand);font-size:clamp(2rem,4vw,3.35rem);line-height:1;font-weight:800}.auth-panel h1{margin-bottom:24px;font-size:clamp(2rem,2.65vw,2.55rem);white-space:nowrap}.auth-panel h2{font-size:clamp(1.55rem,2.25vw,2rem)}h2,.page-title{margin:0;font-size:clamp(1.55rem,2.6vw,2rem);font-weight:700}h3{margin:0 0 8px;font-size:clamp(1.15rem,2vw,1.45rem)}h4{margin:30px 0 16px;font-size:1rem}p{margin:0;line-height:1.55}.auth-copy{max-width:430px;color:#514b4e;font-size:.9rem}.ghost-pill{min-width:118px;border:0;border-radius:13px;padding:13px 23px;color:var(--brand);background:#fff;font-weight:800;font-size:.92rem}.auth-form{display:grid;gap:14px}.auth-form.compact{gap:13px}.grid{display:grid;gap:24px}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.field{display:grid;gap:8px}.field>span:first-child{font-size:.95rem;font-weight:500}.field input,.field select,.phone-input,.field textarea{width:100%;border:1px solid var(--line);border-radius:13px;color:var(--ink);background:#fff;outline:0}.field input,.field select,.phone-input{height:48px;padding:0 18px}.field textarea{min-height:124px;resize:vertical;padding:18px}.password-wrap{position:relative;display:block;font-size:1rem}.password-wrap input{padding-right:48px}.password-toggle{position:absolute;top:50%;right:12px;transform:translateY(-50%);width:32px;height:32px;display:grid;place-items:center;border:0;border-radius:8px;color:#70696d;background:transparent}.password-toggle:hover{color:var(--brand);background:var(--soft)}.password-toggle svg{width:19px;height:19px}.strength-meter{display:grid;gap:7px;margin-top:-2px}.strength-track{height:6px;overflow:hidden;border-radius:999px;background:#ffe2e5}.strength-track span{display:block;width:20%;height:100%;border-radius:inherit;background:#cfccd0;transition:width .18s ease,background .18s ease}.strength-meter p{color:#6f686c;font-size:.78rem}.strength-meter[data-strength=weak] .strength-track span,.strength-meter[data-strength=very-weak] .strength-track span{background:#c91d34}.strength-meter[data-strength=fair] .strength-track span{background:#d88916}.strength-meter[data-strength=good] .strength-track span{background:#5f7f36}.strength-meter[data-strength=strong] .strength-track span{background:#0a9a5f}.field input:focus,.field select:focus,.field textarea:focus,.phone-input:focus-within{border-color:var(--brand);box-shadow:0 0 0 3px #c91d341f}.phone-input{display:flex;align-items:center;padding:0 12px}.phone-input button{display:inline-flex;align-items:center;gap:6px;height:34px;border:0;border-radius:7px;background:var(--soft);font-size:.8rem}.phone-input button svg{width:14px}.phone-input input{height:100%;border:0;box-shadow:none;padding:0 0 0 10px}.flag{position:relative;width:20px;height:16px;background:#fff;border-left:7px solid #0aa968;border-right:7px solid #0aa968;border-radius:2px}.tabs{display:flex;gap:30px;margin-bottom:24px;overflow-x:auto}.tabs button{border:0;border-bottom:3px solid transparent;padding:0 0 8px;white-space:nowrap;color:var(--muted);background:transparent;font-size:clamp(1.03rem,2vw,1.35rem);font-weight:500}.tabs button.active{color:var(--ink);border-color:var(--brand);font-weight:700}.check-row{display:flex;align-items:center;gap:10px;min-width:0;font-size:.86rem}.check-row input{flex:0 0 18px;width:18px;height:18px;accent-color:var(--brand)}.primary-action,.outline-action{min-height:50px;border-radius:13px;padding:0 30px;font-weight:800;font-size:.92rem}.primary-action{border:0;color:#fff;background:var(--brand)}.primary-action:hover{background:var(--brand-dark)}.outline-action{border:1px solid var(--line);color:var(--brand);background:#fff}.align-link{justify-self:end;text-decoration:none;font-weight:700;font-size:.83rem}.text-action{border:0;color:var(--brand);background:transparent;padding:0}.back-to-login{justify-self:center;margin-top:4px;font-size:.83rem;font-weight:800}.inline-text{font-size:inherit;text-decoration:underline}.toast{position:fixed;top:18px;right:18px;z-index:20;max-width:min(360px,calc(100vw - 36px));border:1px solid var(--line);border-radius:12px;padding:13px 16px;color:var(--brand);background:#fff;box-shadow:0 15px 35px #6e0e1b24;font-size:.9rem;font-weight:700}.otp-panel{width:min(100%,490px)}.otp-inputs{display:grid;grid-template-columns:repeat(6,1fr);gap:18px;margin:34px 0 36px}.otp-inputs input{width:100%;aspect-ratio:1;border:1px solid var(--line);border-radius:8px;text-align:center;font-size:1.1rem;font-weight:700}.otp-panel .primary-action{width:100%}.otp-panel p{margin-top:30px;font-size:.86rem}.topbar{height:106px;display:grid;grid-template-columns:1.3fr 1.4fr 1fr;align-items:center;gap:24px;padding:0 clamp(22px,4vw,52px);background:#fff}.brand{display:inline-flex;align-items:center;gap:14px;border:0;color:var(--brand);background:transparent;text-align:left}.brand strong{font-size:clamp(1.1rem,2.4vw,1.6rem);line-height:1.1}.brand-logo{width:56px;height:56px;display:block;object-fit:contain;flex:0 0 auto}.nav-tabs{display:flex;justify-content:center;gap:clamp(12px,2vw,28px)}.nav-tabs button,.nav-tabs a{display:inline-flex;align-items:center;gap:8px;min-height:44px;border:0;border-radius:8px;padding:0 14px;color:var(--muted);background:transparent;font-weight:600;text-decoration:none}.nav-tabs button.active,.nav-tabs a.active{color:#fff;background:var(--brand)}.user-tools{position:relative;display:flex;justify-content:flex-end;align-items:center;gap:10px;min-width:0}.account-menu-wrap{position:relative}.account-trigger{display:inline-flex;align-items:center;gap:10px;max-width:280px;border:0;padding:0;color:var(--ink);background:transparent;text-align:left}.account-trigger:focus-visible{outline:3px solid rgba(201,29,52,.18);outline-offset:4px}.account-menu{position:absolute;top:calc(100% + 12px);right:0;z-index:18;width:230px;border:1px solid var(--line);border-radius:10px;padding:8px;background:#fff;box-shadow:0 18px 40px #10070a29}.account-menu:before{content:"";position:absolute;top:-7px;right:23px;width:12px;height:12px;border-top:1px solid var(--line);border-left:1px solid var(--line);background:#fff;transform:rotate(45deg)}.account-menu-head{display:grid;gap:3px;border-bottom:1px solid #f2dfe2;padding:10px 10px 12px;margin-bottom:6px}.account-menu-head small{color:var(--muted)}.account-menu button{width:100%;min-height:38px;border:0;border-radius:8px;padding:0 10px;color:#332c2f;background:transparent;text-align:left}.account-menu button:hover{color:var(--brand);background:var(--soft)}.account-menu .logout-action{color:var(--brand);font-weight:700}.icon-button,.dots{width:40px;height:40px;display:inline-grid;place-items:center;border:1px solid #cfd4e1;border-radius:8px;color:#141114;background:#fff}.icon-button svg{width:18px;height:18px}.badge{position:relative;border:0}.badge:after{content:"5";position:absolute;top:6px;right:7px;width:13px;height:13px;border-radius:50%;color:#fff;background:var(--brand);font-size:8px;line-height:13px;text-align:center}.avatar{width:42px;height:42px;display:grid;place-items:center;border:1px solid #ffd8dc;border-radius:50%;background:var(--soft);font-weight:600}.identity{min-width:0;display:grid}.identity strong,.identity small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.identity small{color:#514b4e;font-size:.95rem}.app-page{padding:32px clamp(20px,3.5vw,48px) 40px}.dashboard-grid{display:grid;grid-template-columns:1.35fr .9fr;gap:16px;margin:30px 0 14px}.panel{border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:var(--shadow)}.chart-card{min-width:0;padding:18px 18px 16px}.chart-card p,.inner-card>p{margin-bottom:14px}.line-chart,.pie-chart{width:100%;height:auto;margin-top:8px}.grid-line{stroke:var(--grid);stroke-dasharray:5 7;stroke-width:1}.axis,.pie-label{fill:#787477;stroke:none;font-size:12px}.pie-label{fill:#21191b}.pie-label.red{fill:var(--brand)}.pie-label.muted{fill:#777775}.trend-line{fill:none;stroke:var(--brand);stroke-width:2}.point{fill:#fff;stroke:var(--brand);stroke-width:2}.researcher-page .page-title{margin-bottom:28px}.ethics-notice{display:grid;grid-template-columns:auto 1fr;gap:16px;padding:22px 26px;margin-bottom:14px}.ethics-notice h3{font-size:1.45rem}.ethics-notice p{line-height:1.65}.research-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:14px 0}.metric-card{min-height:96px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 18px}.metric-card[role=button]{cursor:pointer}.metric-card[role=button]:hover{border-color:var(--brand)}.metric-card p{font-size:.92rem}.metric-card strong{display:block;margin:7px 0 2px;font-size:1.8rem;line-height:1}.metric-card small{color:var(--muted)}.admin-stat-grid .metric-card-green small{color:#18a765}.admin-stat-grid .metric-card-red small,.metric-icon{color:var(--brand)}.metric-icon.green{color:#18a765}.metric-icon svg{width:30px;height:30px}.metric-icon img{width:auto;max-width:90px;height:34px;display:block;object-fit:contain}.metric-icon.green img{filter:none}.sparkline{width:86px;height:46px}.sparkline path{fill:none;stroke:var(--brand);stroke-width:1.6}.sparkline.green path{stroke:#18a765}.dashboard-page.researcher-page .pie-chart{max-height:230px}.dashboard-page.researcher-page .bar-chart{max-height:248px}.research-chart-grid{display:grid;grid-template-columns:1fr .7fr;gap:16px}.research-chart-grid .chart-card{min-height:326px}.registry-metrics{margin-top:28px}.registry-charts{grid-template-columns:.72fr 1fr;margin-bottom:16px}.admin-stat-grid{margin-top:30px}.admin-chart-grid{display:grid;grid-template-columns:.72fr 1fr;gap:16px;margin-top:16px}.facilities-page .page-title{margin-bottom:32px}.facility-tabs{display:flex;flex-wrap:wrap;gap:28px;margin-bottom:38px}.facility-tabs button,.facility-toggle button{border:0;background:transparent;color:var(--muted);font-weight:500}.facility-tabs button{border-bottom:2px solid transparent;padding:0 0 8px}.facility-tabs button.active{border-color:var(--brand);color:var(--brand);font-weight:700}.facility-chart-row{margin-top:0}.facility-toggle{display:flex;gap:28px;margin:42px 0}.facility-toggle button{display:inline-flex;align-items:center;gap:10px;font-size:1rem}.facility-toggle span{width:18px;height:18px;border:2px solid #7c777a;border-radius:50%}.facility-toggle button.active{color:var(--brand);font-weight:700}.facility-toggle button.active span{border-color:var(--brand);box-shadow:inset 0 0 0 4px #fff;background:var(--brand)}.bar-chart{width:100%;height:auto;margin-top:26px}.axis-line{stroke:#6e686b;stroke-width:1}.vertical-bar{fill:#3f3a3c}.registry-charts .vertical-bar{fill:var(--brand)}.horizontal-bars{display:grid;gap:16px;max-width:620px;margin:24px auto 0}.horizontal-bars div{display:grid;grid-template-columns:190px 1fr;align-items:center;gap:20px}.horizontal-bars span{text-align:right}.horizontal-bars i,.progress-list i{display:block;height:10px;overflow:hidden;border-radius:999px;background:#e6e6e6}.horizontal-bars i{height:42px;border-radius:0;background:transparent}.horizontal-bars b{display:block;height:100%;border-radius:0 8px 8px 0;background:#777775}.progress-list{display:grid;gap:22px;margin-top:26px}.progress-list p{display:flex;justify-content:space-between;gap:16px;margin-bottom:8px}.progress-list b{display:block;height:100%;border-radius:inherit;background:var(--brand)}.status-active{color:#159957;font-weight:700}.status-inactive{color:var(--brand);font-weight:700}.status-deactivated{color:#3f3a3c;font-weight:700}.table-panel{padding:clamp(18px,2.2vw,30px)}.patient-registry-panel{margin-top:34px}.enroll-prompt-card{display:flex;align-items:center;justify-content:space-between;gap:24px;border:1px solid var(--line);border-radius:16px;padding:28px 24px;margin-bottom:48px;box-shadow:0 8px 16px #a016260d}.enroll-prompt-card h3{margin-bottom:4px;font-size:1.55rem}.enroll-prompt-card p{color:#332c2f}.enroll-prompt-button{min-width:236px;display:inline-flex;align-items:center;justify-content:center;gap:12px}.enroll-prompt-button span{font-size:1.3rem;line-height:1}.table-toolbar,.page-actions{display:flex;align-items:center;gap:12px}.table-toolbar{margin:30px 0 20px;flex-wrap:wrap}.toolbar-spacer{flex:1}.search-box{min-width:min(100%,385px);height:40px;display:flex;align-items:center;gap:12px;border:1px solid #cfd4e1;border-radius:12px;padding:0 14px}.search-box svg{color:#9aa0ad}.search-box input{width:100%;min-width:0;border:0;outline:0}.filter-button{height:40px;display:inline-flex;align-items:center;gap:10px;border:1px solid #cfd4e1;border-radius:8px;color:#332c2f;background:#fff;padding:0 14px}.filter-select-wrap,.date-filter-wrap{position:relative;display:inline-flex}.filter-select{min-width:132px;appearance:none;padding-right:38px;background-image:linear-gradient(45deg,transparent 50%,#141114 50%),linear-gradient(135deg,#141114 50%,transparent 50%);background-position:calc(100% - 18px) 18px,calc(100% - 13px) 18px;background-size:5px 5px,5px 5px;background-repeat:no-repeat;cursor:pointer}.date-filter{position:relative;gap:8px}.date-filter svg:first-child{width:20px;height:20px}.date-popover{position:absolute;top:calc(100% + 8px);right:0;z-index:18;border:1px solid #cfd4e1;border-radius:10px;padding:10px;background:#fff;box-shadow:0 18px 34px #10070a24}.date-popover input{width:162px;height:38px;border:1px solid #cfd4e1;border-radius:8px;padding:0 10px;color:#332c2f}.filter-divider{width:1px;height:16px;background:#6e686b}.filter-button svg:last-child{width:14px;fill:currentColor;stroke:currentColor}.table-wrap{width:100%;overflow:visible}table{width:100%;min-width:920px;border-collapse:separate;border-spacing:0;overflow:visible;border:1px solid #e7e5e5;border-radius:18px}th,td{border-right:1px solid #e7e5e5;border-bottom:1px solid #e7e5e5;padding:14px 20px;text-align:left;white-space:nowrap}th{color:#443c3f;background:var(--soft);font-weight:700}tr:last-child td{border-bottom:0}th:last-child,td:last-child{border-right:0;text-align:center}.empty-state{text-align:center;color:var(--muted)}.genotype{color:var(--brand)}.dots{width:30px;height:30px;border:0}.menu-cell{position:relative;overflow:visible}.actions-menu{position:absolute;top:30px;right:14px;z-index:5;min-width:180px;display:grid;gap:3px;border:1px solid var(--line);border-radius:7px;padding:8px 0;background:#fff;box-shadow:0 16px 35px #10070a1f;text-align:left}.actions-menu button{border:0;padding:8px 14px;color:var(--ink);background:transparent;text-align:left;white-space:nowrap}.actions-menu button:hover{color:var(--brand);background:var(--soft)}.page-actions{justify-content:space-between;margin-bottom:28px}.compact-button{width:auto;min-width:min(100%,300px)}.back-link{display:inline-flex;align-items:center;gap:10px;border:0;background:transparent;margin-bottom:34px;font-size:clamp(1.35rem,2.6vw,2rem);font-weight:500}.back-link svg{width:26px;height:26px}.enroll-shell{padding:clamp(26px,4vw,38px) clamp(18px,3vw,30px) 28px}.stepper{display:grid;grid-template-columns:auto 1fr auto 1fr auto;align-items:center;gap:clamp(16px,4vw,74px);margin-bottom:32px}.step{display:grid;justify-items:center;gap:12px}.step>span{width:80px;height:80px;display:grid;place-items:center;border-radius:50%;color:#7f7f7f;background:#dedede;font-size:2rem;font-weight:700}.step>span svg{width:30px;height:30px}.step.active>span,.step.done>span{color:#fff;background:var(--brand)}.step small{white-space:nowrap}.stepper i{height:1px;background:#dedede}.stepper i.filled{background:var(--brand)}.inner-card{border:1px solid var(--line);border-radius:18px;padding:clamp(22px,3vw,30px)}.notice{display:grid;grid-template-columns:auto 1fr;gap:16px;border:1px solid var(--line);border-radius:18px;padding:26px;margin:30px 0}.notice ul{margin:8px 0 0;line-height:1.9}.form-actions{display:flex;justify-content:flex-end;margin-top:62px}.select-field select{appearance:none;background-image:linear-gradient(45deg,transparent 50%,#231c1f 50%),linear-gradient(135deg,#231c1f 50%,transparent 50%);background-position:calc(100% - 28px) 22px,calc(100% - 22px) 22px;background-size:6px 6px,6px 6px;background-repeat:no-repeat;color:#8a8688}.registry-result{display:grid;justify-items:center;gap:14px;border:1px solid var(--line);border-radius:18px;padding:28px 18px;margin:30px 0;text-align:center}.registry-result span{font-size:1.3rem}.registry-result strong{color:var(--brand);font-size:clamp(1.5rem,4vw,2rem)}.split-actions{display:flex;justify-content:space-between;gap:18px;margin-top:50px;padding-top:10px}.settings-grid{display:grid;gap:20px;max-width:720px;margin-top:34px;padding:28px}.settings-panel{padding:28px;margin-top:34px}.settings-tabs{display:flex;gap:clamp(34px,8vw,96px);overflow-x:auto;border-bottom:1px solid var(--line);margin-bottom:30px}.settings-tabs button{border:0;border-bottom:2px solid transparent;padding:0 0 14px;color:var(--muted);background:transparent;font-weight:600;white-space:nowrap}.settings-tabs button.active{color:var(--brand);border-color:var(--brand);font-weight:800}.settings-content{display:grid;gap:22px}.settings-save-button{justify-self:end;min-width:220px}.settings-content>h3{font-size:1.55rem}.settings-card{border:1px solid var(--line);border-radius:18px;padding:28px}.settings-card h3{margin-bottom:28px;font-size:1.45rem}.roles-table ul{margin:0;padding-left:18px;line-height:1.55;white-space:normal}.roles-table td:nth-child(4){min-width:470px}.users-table td strong,.users-table td small{display:block}.users-table td small{color:var(--ink);font-size:.95rem;font-weight:400}.status.active{color:#149a55;font-weight:700}.status.inactive{color:var(--brand);font-weight:700}.status.deactivated{color:#4e484b;font-weight:700}.security-content .settings-card{display:grid}.security-content .grid{align-items:end}.form-actions.tight{margin-top:16px}.danger-zone{justify-items:center;text-align:center}.danger-outline{width:min(100%,1190px);height:44px;display:inline-flex;align-items:center;justify-content:center;gap:12px;border:1px solid var(--brand);border-radius:8px;color:var(--brand);background:#fff;font-weight:800}.danger-zone p{margin-top:16px}.patient-record-shell{padding:28px}.patient-summary-grid{display:grid;grid-template-columns:.72fr 1.18fr 1.18fr;gap:16px;margin-bottom:44px}.patient-profile-card,.record-card{border:1px solid var(--line);border-radius:18px;padding:28px 24px}.patient-profile-card{display:grid;place-items:center;align-content:center;text-align:center}.patient-initials,.large-avatar{width:110px;height:110px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;background:var(--soft);color:#3c373a;font-size:2rem;font-weight:800}.patient-profile-card h3{margin-top:22px;margin-bottom:6px}.patient-profile-card strong{color:var(--brand)}.record-card{position:relative}.edit-icon{position:absolute;top:22px;right:22px;border:0;color:var(--brand);background:transparent}.record-list{display:grid;gap:0;margin:18px 0 0}.record-list div{display:grid;grid-template-columns:.8fr 1.2fr;gap:16px;border-bottom:1px solid var(--line);padding:11px 0}.record-list dt,.clinical-grid dt{color:var(--muted)}.record-list dd,.clinical-grid dd{margin:0;color:var(--ink);font-weight:600}.history-heading{display:flex;justify-content:space-between;gap:18px;margin-bottom:-10px}.history-heading p{color:var(--muted);font-size:1.35rem}.modal-backdrop{position:fixed;inset:0;z-index:15;display:flex;align-items:center;justify-content:center;padding:24px;overflow-y:auto;background:#10070a38}.clinical-modal,.role-modal,.role-users-modal,.user-profile-modal,.facility-approval-modal,.confirm-modal{position:relative;width:min(100%,900px);border:1px solid var(--line);border-radius:8px;padding:32px 44px 34px;background:#fff;box-shadow:0 24px 60px #10070a33}.notifications-backdrop{align-items:flex-start;justify-content:flex-end;padding:22px 28px;background:#10070a2e}.notifications-modal{position:relative;width:min(100%,550px);max-height:calc(100vh - 44px);overflow:hidden;border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:0 22px 54px #10070a2e}.notifications-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid #e7e0e2;padding:20px 58px 8px 30px}.notifications-heading h3{font-size:1.55rem}.notification-tabs{display:flex;align-items:center;gap:10px}.notification-tabs button{min-height:38px;border:0;border-radius:10px;padding:0 13px;color:#746d71;background:transparent;font-weight:600}.notification-tabs button.active{color:var(--ink);background:var(--soft)}.notification-list{max-height:calc(100vh - 116px);overflow:auto}.notification-item{position:relative;display:grid;grid-template-columns:44px 1fr 12px;gap:12px;min-height:94px;border-bottom:1px solid #e7e0e2;padding:26px 30px}.notification-item:last-child{border-bottom:0}.notification-avatar{width:44px;height:44px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;background:var(--soft);font-weight:700}.notification-item p{display:flex;align-items:baseline;gap:8px;margin-bottom:3px}.notification-item strong{font-size:1rem}.notification-item time{color:#bbb5b8;font-size:.94rem;font-weight:600}.notification-item small{display:block;color:#1f1a1d;font-size:.88rem;line-height:1.35}.notification-dot{width:13px;height:13px;margin-top:0;border-radius:50%;background:var(--brand)}.notification-review{min-height:34px;border:0;border-radius:9px;padding:0 14px;margin-top:14px;color:#fff;background:var(--brand);font-weight:800}.empty-note{padding:28px 30px;color:var(--muted)}.capture-modal{max-height:calc(100vh - 36px);overflow:auto}.clinical-details-modal{width:min(100%,820px);max-height:none;overflow:visible;padding:26px 34px 28px}.clinical-details-modal>p{font-size:.95rem}.clinical-modal-heading h3{margin-bottom:4px}.clinical-modal-heading p{font-size:.95rem}.clinical-modal h3,.role-modal h3,.role-users-modal h3,.user-profile-modal h3,.facility-approval-modal h3,.confirm-modal h3{font-size:1.55rem}.clinical-tint,.user-summary{border-radius:18px;padding:24px 26px;margin:28px 0 16px;background:var(--soft)}.clinical-box,.clinical-notes,.assigned-users{border:1px solid var(--line);border-radius:18px;padding:22px 24px;margin:14px 0}.clinical-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 66px;margin:0}.clinical-details-modal .clinical-tint{border-radius:14px;padding:18px 22px;margin:20px 0 14px}.clinical-details-modal .clinical-box,.clinical-details-modal .clinical-notes{border-radius:14px;padding:16px 18px;margin:10px 0}.clinical-details-modal .clinical-grid{gap:16px 34px}.clinical-details-modal .clinical-grid dd{margin-top:5px;font-size:.95rem}.clinical-overview .clinical-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.clinical-detail-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;border-top:1px solid var(--line);padding-top:14px}.clinical-detail-columns h3{margin-bottom:10px;font-size:1.18rem}.clinical-detail-columns .clinical-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.clinical-notes-section{border-top:1px solid var(--line);margin-top:4px;padding-top:12px}.clinical-grid div{min-width:0}.clinical-grid dd{margin-top:8px}.clinical-modal>h3:not(:first-child),.user-profile-modal>h3:not(:first-child){border-top:1px solid var(--line);padding-top:17px;margin-top:16px}.clinical-details-modal>h3:not(:first-child){padding-top:14px;margin-top:12px}.clinical-notes-section h4{margin-top:0}.clinical-modal h4{margin:16px 0 10px;font-size:1rem;font-weight:500}.facility-approval-modal{width:min(100%,550px)}.facility-approval-modal .clinical-tint{margin-top:30px}.facility-approval-modal .clinical-grid{grid-template-columns:1fr;gap:28px}.capture-modal{width:min(100%,945px)}.capture-modal h4{border-top:1px solid var(--line);padding-top:18px}.capture-modal h4:first-of-type{border-top:0;padding-top:0}.input-with-icon{position:relative;display:block}.input-with-icon input{padding-right:52px}.input-with-icon svg{position:absolute;top:50%;right:18px;width:20px;height:20px;transform:translateY(-50%);color:#555}.capture-section{border-top:1px solid var(--line);padding-top:18px}.chip-group{display:flex;flex-wrap:wrap;gap:14px 16px}.chip-group label{display:inline-flex;align-items:center;min-height:40px;border:1px solid var(--line);border-radius:7px;padding:0 10px;background:#fff}.chip-group input{position:absolute;opacity:0}.chip-group span{color:#3b3437}.chip-group input:checked+span{color:var(--brand);font-weight:700}.modal-action{width:min(100%,200px);justify-self:end;margin-top:26px}.clinical-modal,.role-users-modal{display:grid}.clinical-details-modal .modal-action{margin-top:14px}.role-modal{width:min(100%,945px);display:grid;align-content:start}.role-modal>p{margin-bottom:28px}.role-modal h4{margin:10px 0 16px}.modal-security{border-top:1px solid var(--line);margin-top:16px;padding-top:18px}.switch-row{display:flex;align-items:center;gap:14px;margin:14px 0}.switch-row input{width:38px;height:20px;accent-color:var(--brand)}.role-modal .split-actions,.user-profile-modal .split-actions{margin-top:auto}.role-users-modal{width:min(100%,552px);display:grid;gap:20px}.plain-close{position:absolute;top:28px;right:28px;border:0;color:#827c80;background:transparent;font-size:1.35rem;font-weight:700;line-height:1}.assigned-users{margin-top:24px}.assigned-users>p{border-bottom:1px solid var(--line);padding-bottom:16px;margin-bottom:12px}.assigned-user{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;padding:8px 0}.assigned-user strong,.assigned-user small{display:block}.assigned-user small{color:#514b4e}.assigned-user button{display:inline-flex;align-items:center;gap:6px;border:0;color:var(--brand);background:transparent;font-weight:700}.assigned-user button svg{width:15px;height:15px}.small-avatar{width:40px;height:40px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;background:var(--soft);font-weight:700}.user-profile-modal{width:min(100%,980px);max-height:calc(100vh - 36px);display:flex;flex-direction:column;overflow:auto}.profile-modal-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding-right:38px}.user-summary{display:grid;grid-template-columns:190px 1fr;gap:18px;align-items:start;padding:16px;margin:24px 0 16px;border:1px solid var(--line);border-radius:8px;background:snow}.profile-identity-card{display:grid;align-content:center;justify-items:center;gap:8px;min-width:0;border:1px solid var(--line);border-radius:14px;padding:16px 14px;background:#fff;text-align:center}.profile-identity-card .large-avatar{width:86px;height:86px;font-size:1.65rem}.profile-identity-card h4{margin:8px 0 0;font-size:1.1rem}.profile-identity-card p{max-width:100%;color:var(--muted);font-size:.9rem;overflow-wrap:anywhere}.profile-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 12px}.profile-detail-grid div{min-width:0;border:1px solid #f2dfe2;border-radius:12px;padding:9px 12px;background:#fff}.profile-detail-grid div.wide{grid-column:1 / -1}.profile-detail-grid span{display:block;margin-bottom:4px;color:var(--muted);font-size:.78rem}.profile-detail-grid strong{display:block;font-size:.9rem;overflow-wrap:anywhere}.activity-table{min-width:780px}.user-profile-modal .table-wrap{flex:0 0 auto;max-height:min(28vh,260px);overflow:auto}.activity-table th:first-child,.activity-table td:first-child{white-space:normal}.confirm-modal{width:min(100%,460px);padding:28px 34px}.confirm-modal h3{border-bottom:1px solid var(--line);padding-bottom:12px}.confirm-modal p{margin:36px 0}.confirm-actions{display:flex;justify-content:flex-end;gap:20px}.confirm-actions .primary-action,.confirm-actions .outline-action{min-width:104px}.modal-close{position:absolute;top:14px;right:14px;width:34px;height:34px;border:1px solid var(--line);border-radius:8px;color:var(--brand);background:var(--soft);font-weight:800}@media(max-width:1050px){.auth-page{grid-template-columns:1fr}.auth-visual{height:340px;min-height:0}.auth-panel{width:100%}.topbar{height:auto;grid-template-columns:1fr;padding-block:18px}.brand,.user-tools{justify-content:center}.nav-tabs{order:3;overflow-x:auto;justify-content:flex-start}.dashboard-grid{grid-template-columns:1fr}.research-stat-grid,.research-chart-grid,.registry-charts,.admin-chart-grid{grid-template-columns:1fr 1fr}.patient-summary-grid,.clinical-grid,.clinical-detail-columns,.user-summary{grid-template-columns:1fr}.clinical-details-modal{max-height:calc(100vh - 36px);overflow:auto}.table-wrap{overflow-x:auto}}@media(max-width:900px){.app-page{padding-inline:18px}.metric-card{min-height:92px}.metric-card strong{font-size:1.7rem}.chart-card h3,.table-panel h3,.history-heading h3{font-size:1.28rem}}@media(max-width:760px){body.auth-screen{overflow:auto}body.app-screen{overflow-x:hidden}.auth-page,.app-page{padding:16px}.auth-page{min-height:100vh;align-items:start}.auth-visual{display:none}.auth-heading-row,.page-actions,.split-actions{align-items:stretch;flex-direction:column}h1{margin-bottom:14px}.auth-panel h1{white-space:normal}.chart-card{min-height:0;padding:18px 14px}.research-chart-grid .chart-card{min-height:0}.line-chart,.pie-chart,.bar-chart{min-width:0}.profile-detail-grid{grid-template-columns:1fr;gap:8px}.profile-detail-grid div.wide{grid-column:auto}.grid.two,.grid.three{grid-template-columns:1fr;gap:16px}.tabs{gap:22px}.otp-inputs{gap:8px}.identity{display:none}.nav-tabs button,.nav-tabs a{flex:1 0 auto}.table-toolbar{display:grid;grid-template-columns:auto 1fr}.enroll-prompt-card{flex-direction:column;align-items:stretch;margin-bottom:34px;padding:22px}.table-toolbar .filter-button{min-width:0}.toolbar-spacer{display:none}.filter-button{justify-content:center}.research-stat-grid,.research-chart-grid,.registry-charts,.admin-chart-grid{grid-template-columns:1fr}.admin-stat-grid,.research-stat-grid{gap:12px}.metric-card{min-height:98px;padding:16px}.metric-card strong{font-size:1.65rem}.sparkline{width:72px;height:42px}.facility-tabs{gap:18px;margin-bottom:26px}.facility-toggle{margin:28px 0}.history-heading{display:grid;gap:8px;margin-bottom:16px}.history-heading p{font-size:1rem}.ethics-notice{grid-template-columns:1fr}.horizontal-bars div{grid-template-columns:1fr;gap:8px}.horizontal-bars span{text-align:left}.stepper{grid-template-columns:1fr;gap:16px}.stepper i{display:none}.step{grid-template-columns:auto 1fr;justify-items:start}.step>span{width:56px;height:56px;font-size:1.4rem}.step small{white-space:normal}.notice{grid-template-columns:1fr;padding:18px}.form-actions{margin-top:34px}.primary-action,.outline-action,.compact-button{width:100%}.settings-panel,.patient-record-shell,.clinical-modal,.role-modal,.role-users-modal,.facility-approval-modal,.user-profile-modal{padding:18px}.role-modal,.role-users-modal,.facility-approval-modal,.confirm-modal,.user-profile-modal{max-height:calc(100vh - 32px);overflow:auto}.user-profile-modal{display:block}.user-summary{padding:12px;gap:12px}.profile-identity-card{padding:12px}.profile-identity-card .large-avatar{width:64px;height:64px;font-size:1.25rem}.profile-detail-grid div{padding:7px 9px}.settings-tabs{gap:28px}.record-list div{grid-template-columns:1fr;gap:4px}.clinical-grid{gap:22px}.assigned-user{grid-template-columns:auto 1fr}.assigned-user button{grid-column:2;justify-self:start}.confirm-actions{flex-direction:column}}.form-modal{max-height:92vh;overflow-y:auto}
