/* Full-window region selection; the selection UI is never included in the PNG. */
.capture-region {
  position:fixed; inset:0; margin:0; padding:0; border:0; border-radius:0;
  width:100vw; height:100dvh; max-width:none; max-height:none;
  overflow:hidden; background:#0b1220; color:#fff; overscroll-behavior:none;
}
.capture-region::backdrop {background:#0b1220;}
.capture-region-stage {width:100%; height:100%; display:flex; align-items:center; justify-content:center; overflow:hidden;}
.capture-region-canvas {display:block; flex:none; cursor:crosshair; touch-action:none; user-select:none; -webkit-user-select:none;}
.capture-region-hint {
  position:absolute; left:50%; top:max(18px,env(safe-area-inset-top)); transform:translateX(-50%);
  max-width:calc(100% - 32px); margin:0; padding:10px 16px; border:1px solid #ffffff55;
  border-radius:10px; background:#101e35ed; color:#fff;
  font-family:inherit; font-size:15px; font-weight:600; line-height:1.6;
  text-align:center; pointer-events:none; box-shadow:0 4px 20px #0005;
}
.capture-region-cancel {
  position:absolute; right:max(16px,env(safe-area-inset-right)); bottom:max(16px,env(safe-area-inset-bottom));
  min-height:44px; padding:10px 18px; border:1px solid #ffffff99; border-radius:9px;
  background:#101e35ed; color:#fff; font:inherit; font-size:15px; font-weight:600; cursor:pointer;
}
.capture-region-cancel:focus-visible {outline:3px solid #fff; outline-offset:3px;}
@media(max-width:480px) {.capture-region-hint {width:calc(100% - 32px); font-size:14px;}}
