
  :where(.gx-um-host) { position: relative; }   /* zero weight, so the drawer rules (position: fixed when the window is narrow) always win */
  .gx-um { position: absolute; left: 50%; transform: translateX(-50%); z-index: 6; display: none; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 0;
      background: var(--red, #ed4245); color: #fff; font: inherit; font-size: 12px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.35); white-space: nowrap; }
  .gx-um.show { display: inline-flex; }
  .gx-um.top { top: 8px; } .gx-um.bot { bottom: 8px; } .gx-um:hover { filter: brightness(1.08); }
  .gx-um svg { width: 12px; height: 12px; }
  /* camera preview */
  .gx-cp-v { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
  .gx-cp-v video { width: 100%; height: 100%; object-fit: cover; display: block; }
  .gx-cp-v video.mirror { transform: scaleX(-1); }
  .gx-cp-v .gx-cp-wait { position: absolute; inset: 0; display: grid; place-items: center; color: #ccc; font-size: 13px; }
  .gx-cp-bgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; margin: 12px 0 4px; }
  .gx-cp-bg { aspect-ratio: 16 / 10; border-radius: 9px; border: 2px solid transparent; background: var(--bg-3, var(--bg-2)) center / cover; cursor: pointer; display: grid; place-items: center;
      color: var(--text); font: inherit; font-size: 11.5px; font-weight: 700; padding: 0; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
  .gx-cp-bg.on { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent); }
  .gx-cp-bg.add { border: 2px dashed var(--border); text-shadow: none; }
  .gx-cp-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
  .gx-cp-foot label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); cursor: pointer; }
