/* Move Elements' window (move-elements.js; the mock: vault/197, round 7,
   "Move Elements"). A pop-up over a page gone dark (no blur), on every page
   and on the canvas, in the canvas's own greys. */
html.me-open, html.me-open body { overscroll-behavior: none; }
.me-scrim {
  position: fixed; inset: 0; z-index: 2147483000;
  display: grid; place-items: center; padding: 16px;
  background: rgba(0, 0, 0, .62);
  overscroll-behavior: contain;
}
.me-win {
  width: min(620px, 100%); max-height: calc(100vh - 32px); box-sizing: border-box;
  display: flex; flex-direction: column; gap: 11px; padding: 12px;
  background: #202020; color: #D6D6D6;
  border: 1px solid #3D3D3D; border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
  font: 400 13px/1.2 'Barlow', 'Helvetica Neue', Arial, sans-serif;
  outline: none;
}
.me-win button, .me-win input { text-transform: none; letter-spacing: normal; box-shadow: none; }
.me-win .me-ic { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.me-hdr { display: flex; align-items: center; gap: 7px; font: 500 13px/1 'Barlow', sans-serif; color: #D6D6D6; }
.me-hdr > .me-ic { color: #9A9A9A; }
.me-of { color: #9A9A9A; font-weight: 400; }
.me-x {
  margin-left: auto; width: 22px; height: 22px; padding: 0; display: inline-grid; place-items: center;
  border: 0; border-radius: 4px; background: none; color: #9A9A9A; cursor: pointer;
}
.me-x .me-ic { width: 13px; height: 13px; }
.me-x:hover { background: #2A2A2A; color: #EFEFEF; }

.me-sf {
  position: relative; overflow: hidden; width: 100%; background: #111;
  outline: 1px solid rgba(255, 255, 255, .55); user-select: none; -webkit-user-select: none;
  touch-action: none;
}
.me-sf.is-selecting { cursor: crosshair; }
.me-base { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.me-layer { position: absolute; inset: 0; pointer-events: none; }
.me-el { position: absolute; pointer-events: none; }
.me-el img { display: block; width: 100%; height: 100%; pointer-events: none; }
/* Hover outlines the element by its own shape. */
.me-el.is-hover img {
  filter: drop-shadow(1px 0 0 #fff) drop-shadow(-1px 0 0 #fff)
          drop-shadow(0 1px 0 #fff) drop-shadow(0 -1px 0 #fff);
}
.me-box { position: absolute; border: 1px solid #fff; box-sizing: border-box; pointer-events: none; }
.me-box .me-h { position: absolute; width: 6px; height: 6px; background: #fff; pointer-events: auto; }
.me-box .me-h::after { content: ''; position: absolute; inset: -6px; }
.me-h[data-corner="nw"] { left: -3px; top: -3px; cursor: nwse-resize; }
.me-h[data-corner="ne"] { right: -3px; top: -3px; cursor: nesw-resize; }
.me-h[data-corner="sw"] { left: -3px; bottom: -3px; cursor: nesw-resize; }
.me-h[data-corner="se"] { right: -3px; bottom: -3px; cursor: nwse-resize; }
.me-dash {
  position: absolute; box-sizing: border-box; pointer-events: none;
  border: 1.5px dashed #61A0FF; background: rgba(97, 160, 255, .08);
}
.me-lift {
  height: 26px; padding: 0 8px 0 6px; display: inline-flex; align-items: center; gap: 5px;
  border: 0; border-radius: 4px; background: #E4E4E4; color: #171717; cursor: pointer;
  font: 500 11px/1 'IBM Plex Mono', ui-monospace, Menlo, monospace; white-space: nowrap; flex: none;
}
.me-lift .me-ic { width: 12px; height: 12px; }
.me-lift .me-p { padding-left: 6px; border-left: 1px solid rgba(20, 20, 20, .28); }
.me-lift:hover:not(:disabled) { background: #F2F2F2; }
.me-pick { position: absolute; height: 22px; box-shadow: 0 2px 8px rgba(0, 0, 0, .4); }

.me-say { margin: -3px 0 0; font: 400 12.5px/1.35 'Barlow', sans-serif; color: #EFA063; }
.me-due { margin: -3px 0 0; font: 400 12.5px/1.35 'Barlow', sans-serif; color: #BDBDBD; }
.me-bar { display: flex; align-items: center; gap: 8px; }
.me-pr {
  flex: none; width: 28px; height: 26px; padding: 0; display: inline-grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 4px; background: none; color: #D6D6D6;
}
.me-pr:hover:not(:disabled), .me-pr.is-on { background: #343434; color: #fff; border-color: #4A4A4A; }
.me-note {
  flex: 1; min-width: 0; height: 26px; padding: 0 9px; box-sizing: border-box;
  background: #272727; border: 1px solid #343434; border-radius: 4px; outline: none;
  font: 400 13px/1 'Barlow', sans-serif; color: #D6D6D6;
}
.me-note::placeholder { color: #6F6F6F; }
.me-note:focus { border-color: #4A4A4A; }
.me-busy { flex: none; font: 400 12px/1 'Barlow', sans-serif; color: #9A9A9A; }
.me-go {
  flex: none; height: 28px; padding: 0 12px; display: inline-flex; align-items: center; gap: 7px;
  border: 0; border-radius: 6px; background: #EFE6D6; color: #141414; cursor: pointer;
  font: 500 13.5px/1 'Barlow', sans-serif;
}
.me-go .me-p { font: 500 11.5px/1 'IBM Plex Mono', ui-monospace, monospace; padding-left: 8px;
  border-left: 1px solid rgba(20, 20, 20, .28); }
.me-win button:disabled { opacity: .38; cursor: default; }
.me-win.is-busy .me-sf { opacity: .8; }
.me-win [hidden] { display: none !important; }
/* Move Elements is never drawn on a page: a right-click row and a node on
   the canvas, not a button and not a row of a More list (Brett, 2026-11-19).
   Every page carries it as a hidden control the right-click menu presses
   (picture_row.html's move_item, board.html, lightbox.js). app.css gives
   every <button> a display, which beats the browser's own [hidden] rule, so
   without this the hidden control stands on the page as a button (it did:
   the scene page's shot cards, the design page's verdict row). */
[data-move-elements][hidden] { display: none !important; }
@media (max-width: 520px) {
  .me-bar { flex-wrap: wrap; }
  .me-note { flex-basis: 100%; order: 3; }
}
