/* Full-screen wrap tool host (/services/paperback-wrap/editor).
   Site chrome is suppressed; the React island owns the header. */

html:has(.print-cover-tool-wrapper),
body:has(.print-cover-tool-wrapper) {
  /* Full-viewport tool: no site chrome, no UA margin scroll gap. */
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body:has(.print-cover-tool-wrapper) {
  /* Floating Studio controls render into a body-level portal. */
  --popover: var(--card);
  --popover-foreground: var(--card-foreground);
  --ring: var(--primary);
  padding-top: 0;
  padding-left: 0 !important;
  height: 100dvh;
}

.print-cover-tool-wrapper {
  /* The Studio island uses shadcn semantic tokens for floating controls.
     Site themes predate these two aliases, so provide them at the host
     boundary without changing the user's selected Bookshift palette. */
  --popover: var(--card);
  --popover-foreground: var(--card-foreground);
  --ring: var(--primary);
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  padding: 0;
}

.print-cover-tool {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.print-cover-island-root {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}
