/* Watermark PDF — an uploader (after="hide") and a split: the preview card
   (the stamped page on a recessed stage, then the pager row) on the left, the
   watermark inspector on the right (layout from styles/components/form.css +
   uploader.css; the page stage is styles/components/preview.css); text style
   and placement live in the Options sheet. Only the pager and the 3×3
   position picker are the page's own. */

/* ── Preview: a styles/components/preview.css paper stage; the pager below ── */
.wm-pager { justify-content: center; }
.wm-pagelabel {
  font-size: 13px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  min-width: 96px;
  text-align: center;
}

/* ── 3×3 position picker ── */
.wm-grid {
  display: grid;
  grid-template-columns: repeat(3, 34px);
  grid-template-rows: repeat(3, 34px);
  gap: var(--space-1);
}
.wm-grid__cell {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm, 7px);
  background: var(--bg-elev);
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: border-color var(--duration-snap) var(--ease-standard),
              background-color var(--duration-snap) var(--ease-standard);
}
.wm-grid__cell::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--text-muted);
  opacity: 0.45;
  transition: opacity var(--duration-snap) var(--ease-standard);
}
.wm-grid__cell:hover { border-color: var(--accent); }
.wm-grid__cell.is-active {
  background: color-mix(in srgb, var(--accent) 16%, var(--bg-elev));
  border-color: var(--accent);
}
.wm-grid__cell.is-active::after { background: var(--accent); opacity: 1; }
