/* Intake is a floating window. The shared overlay manager retains focus,
   background isolation and scroll ownership; only its geometry changes here. */
html body #createDrawer {
  --request-gap: 16px;
  position: fixed;
  right: auto;
  bottom: auto;
  width: min(720px, calc(var(--overlay-width, 100vw) - 2 * var(--request-gap)));
  height: min(800px, calc(var(--overlay-height, 100dvh) - 2 * var(--request-gap)));
  left: calc(var(--overlay-left, 0px) + (var(--overlay-width, 100vw) - min(720px, var(--overlay-width, 100vw) - 2 * var(--request-gap))) / 2);
  top: calc(var(--overlay-top, 0px) + (var(--overlay-height, 100dvh) - min(800px, var(--overlay-height, 100dvh) - 2 * var(--request-gap))) / 2);
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 1px solid #b4c8df;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 80px #10284055;
  transform: none !important;
  transition: none !important;
  animation: none !important;
}
html body #createJobForm > .create-window-handle {
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
html body #createDrawer.dragging .create-window-handle { cursor: grabbing; }
#createJobForm > .create-window-handle:focus-visible {
  outline: 3px solid #a9d8ff;
  outline-offset: -4px;
}
#createDrawer .create-window-hint {
  display: block;
  margin-top: 5px;
  color: #d4e8fa;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
}
#createDrawer .create-window-help {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
#createDrawer .create-form-body { overflow-x: hidden; }
@media (max-width: 599px) {
  html body #createDrawer { --request-gap: 8px; border-radius: 12px; }
  #createJobForm .form-grid { grid-template-columns: minmax(0, 1fr); }
}
