/* Cover page maker. The preview stage, the paper controls and the print surface come from css/_print-kit.css. Borders: 1px hairline.
   Touch targets of the kit controls are raised to 44 px here, in this tool's scope only. */
#visu-tools .vt-cover-page-maker .vt-cpm-top { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
#visu-tools .vt-cover-page-maker .vt-cpm-note { margin: 0 !important; max-width: 56ch; color: var(--vt-muted); font-size: 15px; }
#visu-tools .vt-cover-page-maker .vt-cpm-tools { display: flex; flex-wrap: wrap; gap: 4px 18px; }
#visu-tools .vt-cover-page-maker .vt-cpm-form:not([hidden]) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; align-items: start; margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--vt-line); }
#visu-tools .vt-cover-page-maker .vt-cpm-form > .vt-hint { margin-top: -8px !important; }
#visu-tools .vt-cover-page-maker .vt-cpm-form textarea { min-height: 84px; }
#visu-tools .vt-cover-page-maker .vt-cpm-form .vt-seg { margin: 0; }
#visu-tools .vt-cover-page-maker .vt-cpm-look { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; align-items: start; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--vt-line); }
#visu-tools .vt-cover-page-maker .vt-cpm-look .vt-pk-logo[hidden] { display: none; }
#visu-tools .vt-cover-page-maker .vt-pk-sheet { margin-top: 16px; }
#visu-tools .vt-cover-page-maker .vt-cpm-privacy { margin-top: 16px !important; }
#visu-tools .vt-cover-page-maker .vt-out .vt-warn[hidden] { display: none; }
#visu-tools .vt-cover-page-maker .vt-out .vt-warn { margin-top: 12px !important; }
/* The sheet's box is reserved before any script runs, so nothing below it jumps when the first preview is drawn. */
#visu-tools .vt-cover-page-maker .vt-pk-stage { min-height: 596px; }
/* 44 px targets: the kit's radios (40), swatches (30), link buttons, the file field and the brand tick. */
#visu-tools .vt-cover-page-maker .vt-seg-item span { min-height: 44px; }
#visu-tools .vt-cover-page-maker .vt-pk-colors { gap: 4px; }
#visu-tools .vt-cover-page-maker .vt-pk-swatch { width: 44px; height: 44px; box-shadow: inset 0 0 0 7px #fff; }
#visu-tools .vt-cover-page-maker .vt-pk-swatch:hover { box-shadow: inset 0 0 0 7px #fff, 0 0 0 1px var(--vt-ink); }
#visu-tools .vt-cover-page-maker .vt-pk-swatch:focus-visible { outline: 2px solid var(--vt-accent-text); outline-offset: 2px; }
#visu-tools .vt-cover-page-maker .vt-link-btn { min-height: 44px; padding: 10px 0 !important; display: inline-flex; align-items: center; }
#visu-tools .vt-cover-page-maker .vt-pk-logo input[type=file] { min-height: 44px; }
#visu-tools .vt-cover-page-maker .vt-pk-brand .vt-check { min-height: 44px; align-items: center; }
#visu-tools .vt-cpm-paths .vt-more { min-height: 44px; align-items: center; }
@media (max-width: 600px) {
  #visu-tools .vt-cover-page-maker .vt-cpm-form:not([hidden]), #visu-tools .vt-cover-page-maker .vt-cpm-look { grid-template-columns: minmax(0, 1fr); }
  /* Few options per group: wrap them instead of a scroll strip, so no choice hides off screen. */
  #visu-tools .vt-cover-page-maker .vt-in .vt-seg-items { flex-wrap: wrap; overflow-x: visible; margin: 0; padding: 0; }
  /* A sheet taller than it is wide: the stage keeps that shape from the first paint (border box, so padding is inside). */
  #visu-tools .vt-cover-page-maker .vt-pk-stage { min-height: 0; aspect-ratio: 1 / 1.34; }
}
