/* v126: patient identity stays in normal document flow when scrolling. */
#currentPatientBar[hidden],#appView[hidden] #currentPatientBar{display:none!important}
#currentPatientBar{position:static;top:auto;z-index:auto;align-items:center;justify-content:flex-start;gap:14px;box-shadow:0 8px 26px rgba(0,14,24,.24);scroll-margin-top:16px}
#currentPatientBar .current-patient-main{display:flex;flex:1 1 220px;min-width:0;align-content:center;align-items:baseline;gap:5px 12px}
#currentPatientBar .patient-bar-label{flex-basis:100%;font-size:.65rem}
#currentPatientBar #patientBarName{font-size:1.18rem;color:#fff;line-height:1.25}
#currentPatientBar #patientBarMeta{font-size:.87rem;color:#cce5de}
#currentPatientBar #cgxPatientExtendedDetails{flex-basis:100%;font-size:.78rem;color:#c1ded8;line-height:1.5}
#currentPatientBar .current-patient-actions{margin-left:auto}
#currentPatientBar .current-patient-actions button{padding:7px 10px;font-size:.78rem}
.cgx-patient-avatar{flex:0 0 90px;width:90px;height:90px;border-radius:14px;position:relative;border:1px solid #558d8b;background:linear-gradient(135deg,#265461,#102b3b);display:grid;place-items:center;overflow:hidden}
.cgx-patient-avatar>span{font-size:2.1rem;font-weight:700;color:#dbf7ee}
.cgx-patient-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.cgx-patient-avatar img[hidden]{display:none!important}
.cgx-add-photo{position:absolute;bottom:0;left:0;right:0;background:rgba(9,33,41,.9);border:0;border-radius:0;color:#e7f9f4;padding:5px 2px;font-size:.64rem;font-weight:700;line-height:1.3}
.cgx-add-photo:hover{background:#24585d;color:#fff}
.cgx-add-photo:focus-visible,.cgx-ask-shortcut:focus-visible{outline:3px solid #f5e8a5;outline-offset:2px}
.cgx-patient-picture-hint{flex-basis:100%;font-size:.69rem;color:#adcbc6;min-height:0}
.cgx-patient-picture-hint:empty{display:none}
/* Keep the existing header Ask button. No bottom-left fixed shortcut. */
#workspaceHeading > #cgxAskCanigenixShortcut{display:inline-flex!important;visibility:visible;align-items:center;justify-content:center;gap:8px;margin-left:auto;white-space:nowrap;border:1px solid #65b9a9;background:#1c4547;color:#e9fff6;font-size:.86rem;font-weight:750;border-radius:10px;padding:10px 15px;min-height:40px;cursor:pointer}
#workspaceHeading > #cgxAskCanigenixShortcut:hover{background:#2b5b60;border-color:#9ee4d1}
#workspaceHeading > #cgxAskCanigenixShortcut:focus-visible{outline:3px solid #f5e8a5;outline-offset:2px}
/* Also hide the obsolete shortcut if a cached older script left one mounted. */
#cgxAskCanigenixFloating{display:none!important}
.cgx-ask-symbol{font-size:1.15rem;color:#9be9cc}
#clinicPhotoWorkspace .cgx-portrait-choice{display:flex;align-items:center;gap:9px;font-size:.83rem;color:#d9f5ef;margin:5px 0 10px}
#clinicPhotoWorkspace .cgx-portrait-choice input{flex:0 0 auto;width:auto;margin:0;accent-color:#79dac4}
@media(max-width:940px){#currentPatientBar{position:static;top:auto;backdrop-filter:none}#currentPatientBar .current-patient-actions{margin-left:0}}
@media(max-width:650px){#currentPatientBar{padding:12px;gap:10px}#currentPatientBar .cgx-patient-avatar{flex-basis:70px;width:70px;height:70px}#currentPatientBar .cgx-patient-avatar>span{font-size:1.7rem}#currentPatientBar .current-patient-main{flex:1 1 calc(100% - 84px)}#currentPatientBar .current-patient-actions{width:100%}#workspaceHeading > #cgxAskCanigenixShortcut{margin-left:0;font-size:.78rem;padding:8px 11px;white-space:normal;text-align:center}.workspace-heading{gap:10px}}
