.components-modal__screen-overlay,.media-modal-backdrop{background:transparent!important;backdrop-filter:none!important;}
dialog::backdrop{background:transparent!important;backdrop-filter:none!important;}
.trs-movable-window{position:fixed!important;right:auto!important;bottom:auto!important;inset-inline-end:auto!important;transform:none!important;margin:0!important;resize:both!important;overflow:auto!important;min-width:min(280px,calc(100vw - 16px));min-height:160px;box-shadow:0 8px 30px #0005!important;}
.trs-window-handle{cursor:move!important;touch-action:none;}
.trs-window-handle:focus-visible{outline:2px solid #3858e9;outline-offset:-2px;}
.trs-window-drag-bar{padding:10px 14px;background:#f6f7f7;color:#1e1e1e;border-bottom:1px solid #ddd;font:600 13px/1.4 system-ui;}
.media-modal.trs-movable-window{overflow:hidden!important;}
.trs-floating-editor{resize:both;overflow:hidden;min-width:min(280px,calc(100vw - 20px));min-height:160px;max-width:calc(100vw - var(--trs-panel-left,10px) - 10px);max-height:calc(100vh - var(--trs-panel-top,10px) - 10px);}
.trs-floating-editor>.trs-floating-editor__body{flex:1;}
/* Shared safe bounds and reachable dismissal, including after orientation changes. */
.trs-movable-window{min-width:min(280px,calc(100vw - 16px));min-height:min(160px,calc(100dvh - 16px));overscroll-behavior:contain;scroll-padding-top:64px;}
.trs-movable-window>.trs-window-drag-bar{position:sticky;top:0;z-index:5;flex-shrink:0;}
.trs-movable-window :is(.components-modal__header,.media-modal-close,.staff-modal__close,.trs-photo-license-close),.trs-floating-editor>header button{min-width:44px;min-height:44px;}
.trs-floating-editor>header{flex-shrink:0;position:sticky;top:0;z-index:5;touch-action:none;}
.trs-floating-editor__body{min-height:0;overflow:auto;overscroll-behavior:contain;}
@media(max-width:782px){
 .trs-movable-window{max-width:calc(100vw - 16px)!important;max-height:calc(100dvh - 16px)!important;}
 .trs-floating-editor{max-width:calc(100vw - var(--trs-panel-left,10px) - 10px);max-height:calc(100dvh - var(--trs-panel-top,10px) - 10px);min-height:min(160px,calc(100dvh - 20px));}
 .trs-floating-editor>header{gap:8px;}
 .trs-floating-editor>header>span{min-width:0;overflow-wrap:anywhere;}
 .media-modal .media-frame-title{right:52px;}
 .media-modal .media-frame-content{overflow:auto;}
 .staff-modal__pager{flex-wrap:wrap;}
 .staff-modal__pager :is(button,a){min-height:44px;display:inline-flex;align-items:center;}
}
.trs-movable-window .components-modal__header button{min-width:44px;min-height:44px;}
