/* HADER mobile patient identity */
html[data-balsam=care] body.hader-patient,html[data-balsam=care] body.hader-subpage{--accent:#007c94;--ink:#0a354a;--stroke:#b7e6ec;--tint:#e7faff;--muted:#486a7a;background:linear-gradient(150deg,#e9fbff,#f5fcff 45%,#d8f5f8)!important;color:var(--ink)!important}
.hader-patient .topbar{background:linear-gradient(115deg,#043248,#075a73)!important;border-bottom:1px solid #28b8c7!important;color:white!important}
.hader-patient .topbar .brand,.hader-patient .topbar .brand-sub{color:white!important}
.hader-patient .topbar-inner{max-width:900px!important}
.hader-patient.hader-approved .topbar .top-link,.hader-patient.hader-approved #portalTopbar,.hader-patient.hader-approved .topbar>a,.hader-patient.hader-approved main>.hero,.hader-patient #myBookingsButton{display:none!important}
.hader-top-tools{display:flex;gap:8px}
.hader-patient .hader-top-tools button{display:grid;place-items:center;width:44px;height:44px;padding:0;margin:0;background:#ffffff16!important;border:1px solid #70e3ed77!important;border-radius:14px!important}
.hader-top-tools svg{width:23px;height:23px}
.hader-patient main{max-width:900px!important;padding:16px 14px calc(100px + env(safe-area-inset-bottom))!important}
html[data-balsam=care] body.hader-patient.hader-approved{background:radial-gradient(ellipse at 5% 28%,#06adca55,transparent 43%),linear-gradient(175deg,#04374e 0%,#08768e 32%,#8ce7ec 65%,#e6fcff 100%)!important;min-height:100dvh}
.hader-patient #portalChoices{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;margin:0!important}
.hader-welcome{position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:1fr 1.15fr;align-items:center;min-height:200px;border-radius:24px;margin-bottom:16px;background:linear-gradient(120deg,#086781,#05445e 55%,#04334a);border:1px solid #78f2ff65;box-shadow:0 10px 30px #00293b44}
.hader-welcome::after{content:"";position:absolute;z-index:1;bottom:-17px;left:-5%;width:110%;height:48px;transform:rotate(-4deg);border-top:2px solid #ffe2a5;background:linear-gradient(0deg,#0cb5c7,transparent);border-radius:50%;pointer-events:none}
.hader-welcome-text{position:relative;z-index:2;padding:14px;color:white}
.hader-welcome .hader-eyebrow{font-size:.72rem;color:#9df5ef}
.hader-welcome h2{font-size:clamp(1.6rem,6vw,2.8rem)!important;margin:5px 0!important;color:#fff!important;line-height:1.35}
.hader-welcome p{font-size:clamp(.79rem,2.7vw,1.1rem);line-height:1.65;color:#e8fcff;margin:0}
.hader-welcome img{width:100%;height:100%;min-height:180px;object-fit:cover;object-position:center;mask-image:linear-gradient(to left,transparent 0%,black 17%)}
.hader-patient .hader-services{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;margin:0!important}
html[data-balsam=care] .hader-patient .hader-service{display:flex!important;align-items:center;gap:10px;min-width:0;min-height:116px;margin:0!important;padding:11px!important;text-align:right;background:linear-gradient(145deg,#ecfcff,#a1eaf0 68%,#d5f8fb)!important;border:1px solid #f1ffff!important;border-radius:21px!important;box-shadow:inset 0 1px 7px #fff,0 7px 17px #064f6750!important;color:#09364b!important}
.hader-service-icon{display:grid;place-items:center;flex:0 0 48px;height:48px;border-radius:15px;background:linear-gradient(150deg,#0790a4,#00506a 66%,#00c8c6);color:white;border:1px solid #b4ffff;box-shadow:0 2px 8px #047e9b55,inset 0 0 10px #22fff755}
.hader-service-icon svg{width:27px;height:27px;filter:drop-shadow(0 1px 2px #004a61)}
.hader-service-copy{display:block;min-width:0;flex:1}
.hader-patient .hader-service strong{font-size:clamp(.87rem,3vw,1.25rem)!important;color:#09364b!important;margin:0 0 4px!important;line-height:1.35}
.hader-patient .hader-service-copy>span{color:#295467!important;font-size:clamp(.72rem,2.6vw,.92rem)!important;line-height:1.5;display:block}
.hader-chevron{font-size:1.5rem;color:#075d74;line-height:1;flex:none}
html[data-balsam=care] .hader-patient .hader-emergency{grid-column:1/-1;min-height:91px;justify-content:center;background:linear-gradient(110deg,#f7ffff,#c4f4f3,#ffedc4)!important;border-color:#ffe2a5!important}
.hader-emergency .hader-service-copy{flex:0 1 65%}.hader-emergency .hader-service-icon{border-color:#ffda8a}
.hader-pulse{color:#d7a34d;display:flex;justify-content:center;margin:12px 0}.hader-pulse svg{width:200px;height:30px;filter:drop-shadow(0 0 4px #ffe8a4)}
.hader-bottom{position:fixed;z-index:60;bottom:max(10px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(860px,calc(100% - 20px));display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;padding:6px;background:linear-gradient(135deg,#06475d,#04364e);border:1px solid #56c9de;border-radius:22px;box-shadow:0 8px 28px #00344f66}
html[data-balsam=care] .hader-bottom button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:57px;min-width:0;margin:0;padding:5px 1px!important;background:transparent!important;color:#e7faff!important;border-radius:15px!important;font-size:clamp(.64rem,2.5vw,.85rem)!important;white-space:nowrap}
.hader-bottom svg{width:23px;height:23px}
html[data-balsam=care] .hader-bottom button.active{background:linear-gradient(145deg,#0a98a5,#007289)!important;border:1px solid #9ef9f7!important;box-shadow:inset 0 0 9px #65ffff55!important}
.hader-dialog{width:min(550px,calc(100% - 22px));max-height:85dvh;overflow:auto;border:1px solid #87e5ee;border-radius:25px;background:linear-gradient(140deg,#e4fcff,#b9eef4);color:#0a354a;box-shadow:0 18px 70px #00263b66;padding:18px;margin:auto auto max(12px,env(safe-area-inset-bottom))}
.hader-dialog::backdrop{background:#002a40a6}.hader-dialog header{display:flex;justify-content:space-between;align-items:center;gap:12px;background:transparent!important;border:0!important;padding:0 0 12px!important}.hader-dialog header h2{margin:0!important;color:#0a354a!important;font-size:1.25rem}.hader-dialog header button{margin:0;min-width:44px;min-height:44px}
.hader-menu-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
html[data-balsam=care] .hader-menu-grid button{min-height:48px;margin:0;padding:8px!important;background:#f7feff!important;color:#0b4053!important;border:1px solid #a1dce4!important;white-space:normal;font-size:.88rem}
html[data-balsam=care] .hader-menu-grid .hader-delete{color:#a72a32!important;background:#fff0ef!important;border-color:#f1c0bf!important}
.hader-patient main>section.card:not(#portalChoices){padding:clamp(14px,3vw,24px)!important;border-radius:22px!important}
.hader-patient :is(#centerList,#doctorList,#myAppointmentsList){grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:12px}
.hader-patient :is(.medical-history-form,.medical-record-form){grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr))}
.hader-patient :is(.doctor,.center-card,.medical-record-item){min-width:0;overflow-wrap:anywhere}
.hader-subpage main{max-width:900px!important;padding:clamp(12px,3vw,25px)!important}.hader-subpage :is(section,article){border-radius:20px!important;border-color:#b6e6eb!important}.hader-subpage :is(h1,h2,h3){color:#07536b!important}
@media(max-width:420px){.hader-patient .hader-service{gap:7px!important;padding:9px!important;min-height:104px}.hader-service-icon{flex-basis:39px;height:39px;border-radius:12px}.hader-service-icon svg{width:23px;height:23px}.hader-chevron{display:none}.hader-patient .hader-services{gap:9px!important}.hader-welcome{min-height:175px}.hader-welcome img{min-height:175px}.hader-welcome-text{padding:10px}.hader-patient main{padding-inline:10px!important}}
@media(prefers-reduced-motion:reduce){.hader-patient *{transition:none!important;scroll-behavior:auto!important}}
.hader-patient .brand-mark{background:url("./hader-logo.webp") center/cover no-repeat!important;width:48px!important;height:48px!important;border-radius:14px!important;box-shadow:0 0 12px #6cf9ff55!important}.hader-patient .brand-mark svg{visibility:hidden}
