/* Fix: fixed member dossier must own a vertical scrollport on desktop and touch. */
html:has(body>details.samu-member-detail[open]),body.samu-detail-visible{overflow:hidden!important}
body>details.samu-member-detail.samu-detail-record[open]{
 position:fixed!important;inset:0!important;height:100dvh!important;max-height:100dvh!important;
 padding:clamp(6px,1.5vw,16px)!important;display:flex!important;align-items:stretch!important;
 justify-content:center!important;overflow:hidden!important;overscroll-behavior:contain!important;
}
body>details.samu-member-detail.samu-detail-record[open]>.samu-record-body{
 display:block!important;flex:1 1 auto!important;width:100%!important;max-width:1600px!important;
 height:auto!important;max-height:100%!important;min-height:0!important;
 overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;
 -webkit-overflow-scrolling:touch!important;touch-action:pan-y!important;
 position:relative!important;scrollbar-gutter:stable!important;
}
body>details.samu-member-detail.samu-detail-record[open] .samu-detail-header{position:sticky!important;top:0!important;z-index:8!important}
@media(max-width:900px){
 body>details.samu-member-detail.samu-detail-record[open]{padding:5px!important;height:100dvh!important;max-height:100dvh!important}
 body>details.samu-member-detail.samu-detail-record[open]>.samu-record-body{padding:10px!important;max-height:100%!important;scrollbar-gutter:auto!important}
}
/* Drag-and-drop is additive; native file picker remains accessible. */
.samu-photo-drop-zone{border:2px dashed #aebdc9;border-radius:10px;padding:10px 12px;margin:8px 0;background:#f7f9fb;color:#213649;font-size:13px;line-height:1.4;cursor:pointer}
.samu-photo-drop-zone:focus-visible{outline:3px solid #4a83b0;outline-offset:2px}
.samu-photo-drop-zone.is-drag-over{background:#e8f3ff;border-color:#1c6caa}
.samu-photo-drop-zone small{display:block;color:#546577}
