.dq-room-regions-dialog,.dq-room-regions-dialog *{box-sizing:border-box}
.dq-room-regions-dialog{width:min(1180px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);margin:auto;padding:0;overflow:auto;border:1px solid #dce3ed;border-radius:14px;background:#fff;color:#263242;box-shadow:0 24px 80px #17274030;font-family:inherit}
.dq-room-regions-dialog::backdrop{background:#19233355}
.dq-room-regions-dialog>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:20px 24px 16px;border-bottom:1px solid #edf0f4}
.dq-room-regions-dialog header small{color:#87909e;font-size:11px}
.dq-room-regions-dialog h2{margin:5px 0 7px;font-size:21px;font-weight:600;line-height:1.3}
.dq-room-regions-dialog header p{margin:0;font-size:12px;line-height:1.6;color:#748091}
.dq-room-regions-dialog button{flex:none;display:inline-flex;justify-content:center;align-items:center;padding:7px 11px;min-height:32px;border:1px solid #dce2eb;border-radius:6px;background:#fff;color:#59677b;font:inherit;font-size:12px;line-height:1.4;cursor:pointer;white-space:nowrap}
.dq-room-regions-dialog button:hover{background:#f2f6fc;border-color:#b4cce8}
.dq-room-regions-dialog button[aria-pressed=true]{border-color:#b9d6f6;background:#eaf3ff;color:#0071e3}
.dq-room-regions-dialog button[data-primary=true]{border-color:#0071e3;background:#0071e3;color:#fff}
.dq-room-regions-dialog button:disabled{opacity:.42;cursor:default}
.dq-room-regions-dialog button:focus-visible,.dq-room-regions-dialog select:focus-visible{outline:2px solid #9ac8fb;outline-offset:2px}
.dq-room-regions-dialog header>button{padding:0;width:32px;height:32px;border:0;background:#f3f5f8;color:#687486;font-size:23px}
.dq-room-region-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:12px 24px;border-bottom:1px solid #edf0f4}
.dq-room-region-toolbar>label{display:flex;align-items:center;gap:8px;margin-right:9px;font-size:12px;color:#738094}
.dq-room-region-toolbar select{max-width:250px;min-width:170px;padding:7px 10px;border:1px solid #dce2eb;border-radius:6px;background:#fff;color:#2e3745;font:inherit;font-size:12px}
.dq-room-region-modes{display:flex;gap:4px;margin-right:6px}
.dq-room-region-stage{height:min(57dvh,660px);min-height:180px;padding:16px;background:#eef1f5;overflow:hidden}
.dq-room-regions-dialog .dq-room-region-stage>svg{display:block;width:100%;height:100%;max-width:none;fill:none;stroke:none;touch-action:none;cursor:crosshair;user-select:none;outline:none}
.dq-room-region-stage image,.dq-room-region-stage [data-room-region-overlays]{pointer-events:none}
.dq-room-region-stage text{font-family:inherit;stroke-linejoin:round}
.dq-room-region-instructions{display:flex;flex-wrap:wrap;align-items:center;gap:7px 20px;padding:10px 24px;min-height:39px;font-size:11px;line-height:1.6;color:#8490a0}
.dq-room-region-instructions strong{font-weight:500;color:#53687f}
.dq-room-regions-dialog>footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 24px;border-top:1px solid #edf0f4;background:#f8fafc}
.dq-room-regions-dialog footer>span{color:#778497;font-size:11px;line-height:1.7}
.dq-room-regions-dialog footer>div{display:flex;gap:8px}
.dq-room-region-error{margin:12px 24px 0;padding:10px 12px;border:1px solid #f0dfb7;border-radius:6px;background:#fffbf2;color:#946b25;font-size:12px;line-height:1.65}
.dq-room-regions-dialog [hidden]{display:none!important}
@media(max-width:700px){.dq-room-regions-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.dq-room-regions-dialog>header{padding:16px}.dq-room-region-toolbar{gap:7px;padding:10px 16px}.dq-room-region-toolbar>label{width:100%;margin:0}.dq-room-region-toolbar select{flex:1;max-width:none}.dq-room-region-stage{height:43dvh;padding:10px}.dq-room-regions-dialog>footer,.dq-room-region-instructions{padding:10px 16px}}

@media(min-width:701px){
 .dq-room-regions-dialog>header{padding:16px 20px}
 .dq-room-regions-dialog h2{font-size:20px}
 .dq-room-region-toolbar select{box-sizing:border-box;min-height:32px;height:32px;padding:5px 10px;line-height:20px}
 .dq-room-regions-dialog>footer{padding:12px 20px}
 .dq-room-regions-dialog>footer button{box-sizing:border-box;min-height:32px;height:32px;padding:5px 11px;line-height:20px}
}
