/* Shared popup close appearance. Existing click/Escape/history/audio handlers stay intact. */
dialog.hc-room .hc-room-header{padding-right:72px;min-height:56px}
dialog.hc-room .hc-room-header button:is([data-room-action="minimize"],[data-section-close]),
dialog.hc-lightbox button[data-gallery-close]{
 position:absolute;top:max(16px,env(safe-area-inset-top));right:max(16px,env(safe-area-inset-right));
 z-index:100;isolation:isolate;display:grid;place-items:center;box-sizing:border-box;
 width:56px;height:56px;min-width:56px;min-height:56px;margin:0;padding:0;
 border:0;border-radius:50%;background:transparent;color:#000;font-size:0;line-height:1;
 cursor:pointer;flex-shrink:0;touch-action:manipulation;
 transition:box-shadow .15s ease;outline-offset:4px;
}
dialog.hc-room .hc-room-header button:is([data-room-action="minimize"],[data-section-close])::before,
dialog.hc-lightbox button[data-gallery-close]::before{
 content:"";position:absolute;inset:2px;border-radius:50%;background:#fff;
 box-shadow:0 3px 18px #0006;z-index:-1;pointer-events:none;
}
dialog.hc-room .hc-room-header button:is([data-room-action="minimize"],[data-section-close])::after,
dialog.hc-lightbox button[data-gallery-close]::after{
 content:"×";color:#000;font:900 38px/1 Arial,sans-serif;pointer-events:none;
}
dialog.hc-room .hc-room-header button:is([data-room-action="minimize"],[data-section-close]):hover,
dialog.hc-lightbox button[data-gallery-close]:hover{background:transparent;color:#000;box-shadow:0 0 0 2px #ffffff30,0 4px 22px #ffffff18}
dialog.hc-room .hc-room-header button:is([data-room-action="minimize"],[data-section-close]):focus-visible,
dialog.hc-lightbox button[data-gallery-close]:focus-visible{outline:3px solid #ed526f;box-shadow:0 0 0 6px #09080b}
@media(max-width:760px),(pointer:coarse){
 dialog.hc-room .hc-room-header button:is([data-room-action="minimize"],[data-section-close])::before,
 dialog.hc-lightbox button[data-gallery-close]::before{inset:0}
}
@media(prefers-reduced-motion:reduce){
 dialog.hc-room .hc-room-header button:is([data-room-action="minimize"],[data-section-close]),
 dialog.hc-lightbox button[data-gallery-close]{transition:none}
}
