/* Account photos stay private and fit beside the existing patient/doctor menu. */
body:is(.patient-session,.doctor-session) :is(#patient-account,#doctor-account){display:flex;align-items:center;gap:6px}
body:is(.patient-session,.doctor-session) :is(#patient-account,#doctor-account)>#portal-identity{flex:1 1 auto;min-width:0;box-sizing:border-box;min-height:46px}
#portal-avatar-wrap{position:relative;display:flex;flex:0 0 auto;align-items:center;min-width:0}
#portal-avatar{display:flex;justify-content:center;align-items:center;flex:0 0 auto;box-sizing:border-box;width:46px;height:46px;min-width:46px;min-height:46px;max-width:46px;padding:3px;margin:0;border:1px solid #b8cec1;border-radius:8px;background:#fff;color:#345f4e;cursor:pointer}
#portal-avatar:hover{background:#edf5f0;border-color:#729d87}
#portal-avatar:focus-visible{outline:3px solid #70a68f;outline-offset:2px}
#portal-avatar:disabled{cursor:wait;opacity:.7}
#portal-avatar img,#portal-avatar svg{display:block;width:38px;height:38px;max-width:none;background:#eef4f0}
#portal-avatar img{border-radius:4px;object-fit:contain;object-position:center}
#portal-avatar svg{border-radius:50%}
#portal-avatar svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;padding:2px;box-sizing:border-box}
#portal-avatar-input[hidden]{display:none!important}
#portal-avatar-status{position:absolute;top:calc(100% + 7px);right:0;z-index:80;width:max-content;max-width:min(280px,calc(100vw - 28px));padding:8px 10px;border:1px solid #cadad0;border-radius:7px;background:#fff;color:#244c3a;box-shadow:0 3px 12px #153b2819;font-size:12px;line-height:1.45;white-space:normal;overflow-wrap:anywhere}
#portal-avatar-status:empty{display:none}
#portal-avatar-status.is-error{border-color:#dfb9b0;color:#793b2c;background:#fffaf8}
@media(max-width:480px){body:is(.patient-session,.doctor-session) :is(#patient-account,#doctor-account)>#portal-identity{min-height:42px}#portal-avatar{width:42px;height:42px;min-width:42px;min-height:42px;max-width:42px;padding:3px}#portal-avatar img,#portal-avatar svg{width:34px;height:34px}}
@media print{#portal-avatar-wrap{display:none!important}}

.patient-case-identity{display:flex;align-items:center;gap:10px;min-width:0;margin:8px 0 14px}
.patient-case-portrait{position:relative;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;flex:0 0 44px;overflow:hidden;border:1px solid #cadbce;border-radius:50%;background:#e7f0ea;color:#28543e;font:700 15px/1 system-ui,sans-serif}
.patient-case-portrait img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}
.patient-case-identity>h1,.patient-case-identity>h2,#detail.wh-inline-detail .patient-case-identity>h1,#detail.wh-inline-detail .patient-case-identity>h2{margin:0;min-width:0;font-size:20px;line-height:1.3;overflow-wrap:anywhere}
