/* PhotoToSticker UI refresh (round 1): visual layer only. Loaded last. */
@font-face {
  font-family: 'Nunito';
  src: url('/site-assets/fonts/nunito-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --ui-font: 'Nunito', ui-rounded, 'SF Pro Rounded', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --desktop-paper: #f7f6fd;
  --desktop-surface: #fff;
  --desktop-panel: #fff;
  --desktop-board: #eeecff;
  --desktop-ink: #1f1b3a;
  --desktop-muted: #5b5875;
  --desktop-line: #e8e6f5;
  --desktop-primary: #4f46e5;
  --desktop-primary-hover: #4338ca;
  --ui-subtle: #7a7795;
  --ui-track: #f1effb;
  --ui-mint: #ddf6ee;
  --ui-butter: #fff1c9;
  --ui-radius-lg: 24px;
  --ui-radius: 18px;
  --ui-radius-sm: 12px;
  --ui-shadow: 0 12px 32px -14px rgba(67, 56, 202, .28);
  --ui-shadow-lg: 0 30px 60px -32px rgba(49, 40, 140, .35);
  --ui-glow: 0 10px 22px -10px rgba(79, 70, 229, .75);
  --ui-gradient: linear-gradient(180deg, #5b52f0 0%, #4338ca 100%);
}

html, body, button, input, select, textarea { font-family: var(--ui-font); }
html { overflow-x: clip; }
body {
  color: var(--desktop-ink);
  background: #f5f6fb;
  -webkit-font-smoothing: antialiased;
}
body.site-home {
  position: relative;
  overflow-x: clip;
}
/* Top holographic aurora band: strictly above the workbench card, fading cleanly into neutral #f5f6fb so canvas stays 100% neutral */
body.site-home::before {
  content: '';
  position: absolute;
  top: 0;
  left: -8%;
  width: 116%;
  height: 360px;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(245, 246, 251, 0) 0px, rgba(245, 246, 251, 0) 225px, #f5f6fb 355px, #f5f6fb 100%),
    radial-gradient(640px 310px at 16% 80px, rgba(139, 92, 246, 0.30) 0%, transparent 70%),
    radial-gradient(620px 310px at 84% 80px, rgba(14, 165, 233, 0.28) 0%, transparent 70%),
    radial-gradient(520px 260px at 50% 88px, rgba(236, 72, 153, 0.18) 0%, transparent 72%),
    radial-gradient(460px 240px at 34% 84px, rgba(16, 185, 129, 0.18) 0%, transparent 72%),
    linear-gradient(90deg, #ede9fe 0%, #e0f2fe 38%, #fce7f3 70%, #e0e7ff 100%);
  will-change: transform;
  transform: translate3d(0, 0, 0);
}
body.site-home > * {
  position: relative;
  z-index: 1;
}
@keyframes pts-aurora-drift {
  0%   { transform: translate3d(-2.5%, 0, 0) scale(1); }
  50%  { transform: translate3d(2.5%, 0, 0) scale(1.02); }
  100% { transform: translate3d(-2.5%, 0, 0) scale(1); }
}
/* Gentle GPU-only drift on desktop landing state; automatically paused the instant editor-mode begins */
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  body.site-home:not(.editor-mode)::before {
    animation: pts-aurora-drift 14s ease-in-out infinite;
  }
  body.site-home.editor-mode::before {
    animation: none;
    will-change: auto;
    height: 220px;
    opacity: 0.5;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 28%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 28%, transparent 100%);
  }
}
/* Mobile: static ultra-subtle top glow <= 200px, alpha <= 6%, zero horizontal overflow */
@media (max-width: 899px) {
  body.site-home::before {
    left: 0;
    width: 100%;
    height: 196px;
    animation: none;
    will-change: auto;
    background:
      linear-gradient(180deg, rgba(245, 246, 251, 0) 0px, rgba(245, 246, 251, 0) 110px, #f5f6fb 194px, #f5f6fb 100%),
      radial-gradient(280px 150px at 20% 24px, rgba(139, 92, 246, 0.06) 0%, transparent 72%),
      radial-gradient(280px 150px at 80% 24px, rgba(14, 165, 233, 0.06) 0%, transparent 72%);
  }
}
::selection { background: #dcd9ff; }

/* Headings: one rounded sans family across the site. */
h1, h2, h3,
.desktop-hero h1, .desktop-section-heading h2, .site-home .site-section > h2,
.page-title, .dialog-title, #desktop-uses-title {
  font-family: var(--ui-font);
  font-weight: 850;
  letter-spacing: -.025em;
  color: var(--desktop-ink);
}
.site-home .desktop-maker-start .maker-start-title,
.site-home #empty .maker-start-title {
  font-family: var(--ui-font);
  font-weight: 850;
  letter-spacing: -.025em;
}
.site-home .print-header .dialog-title { font-family: var(--ui-font); font-weight: 850; letter-spacing: -.02em; }
/* Legacy theme files set serif headings with high-specificity `font` shorthands. */
.site-home .intro h1, .page-title, .site-section h2, .guide-step h2,
.desktop-section-heading h2, .desktop-uses #desktop-uses-title,
.site-home .desktop-maker-start .maker-start-title,
.site-home :is(.subject-dialog, .print-dialog) .print-header .dialog-title {
  font-family: var(--ui-font) !important;
  font-weight: 850 !important;
  letter-spacing: -.03em !important;
}
.site-home .intro h1 span { font-weight: inherit; }

/* Header: Full-width frosted glass + subtle 2px muted holographic bottom hairline + center link pill */
.site-header, .site-footer { background: rgba(255, 255, 255, .90); backdrop-filter: saturate(1.5) blur(16px); }
.site-header,
body.site-home > header {
  position: relative;
  z-index: 80 !important;
  border-bottom: 0;
  box-shadow: 0 6px 24px -14px rgba(31, 27, 58, 0.12);
}
.site-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg,
    color-mix(in srgb, #818cf8 55%, #ffffff) 0%,
    color-mix(in srgb, #38bdf8 55%, #ffffff) 32%,
    color-mix(in srgb, #34d399 55%, #ffffff) 58%,
    color-mix(in srgb, #f472b6 55%, #ffffff) 82%,
    color-mix(in srgb, #a78bfa 55%, #ffffff) 100%
  );
}
.site-header .site-brand, .site-footer .site-brand { font-weight: 850; letter-spacing: -.03em; color: var(--desktop-ink); }
@media (min-width: 900px) {
  .desktop-main-nav {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 4px 6px;
    border-radius: 999px;
    background: #f2f3fb;
    border: 1px solid #e4e6f6;
  }
  .desktop-main-nav a {
    font-weight: 750;
    color: #3a375c;
    border-radius: 999px;
    padding: 6px 13px;
    transition: color .15s, background-color .15s;
  }
  .desktop-main-nav a:hover { color: var(--desktop-primary); background: #ffffff; text-decoration: none; }
}
.storefront-header > .desktop-nav-cta {
  border-radius: 14px;
  background: var(--ui-gradient);
  box-shadow: var(--ui-glow), inset 0 -3px 0 rgba(0, 0, 0, .14);
  font-weight: 800;
}
.storefront-header > .desktop-nav-cta:hover { background: var(--ui-gradient); filter: brightness(1.06); transform: translateY(-1px); }

/* Primary buttons everywhere */
.site-home .primary, .content-page .cta-link {
  background: var(--ui-gradient);
  border: 0;
  border-radius: 14px;
  font-weight: 800;
  box-shadow: var(--ui-glow), inset 0 -3px 0 rgba(0, 0, 0, .14);
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
.site-home .primary:hover:not(:disabled), .content-page .cta-link:hover { background: var(--ui-gradient); filter: brightness(1.06); transform: translateY(-1px); }
.site-home .primary:active:not(:disabled) { transform: translateY(0) scale(.98); }
.site-home .primary:disabled { box-shadow: none; }

/* Hero */
@media (min-width: 900px) {
  .site-home .desktop-hero h1 { font-size: clamp(46px, 5vw, 76px); line-height: 1.04; }
  .site-home .desktop-hero > p { color: var(--desktop-muted); }
  .site-home.editor-mode .desktop-hero h1 { font-size: clamp(24px, 2.2vw, 32px); }
}
.desktop-hero h1 span { color: var(--desktop-primary); }

/* Workbench shell */
.site-home .workbench {
  border: 1.5px solid var(--desktop-line);
  border-radius: var(--ui-radius-lg);
  background: var(--desktop-surface);
  box-shadow: var(--ui-shadow-lg);
}
@media (min-width: 900px) {
  .site-home .workbench:has(#empty:not(.hidden)) {
    border: 1.5px solid transparent;
    border-radius: 28px;
    background:
      linear-gradient(#ffffff, #ffffff) padding-box,
      linear-gradient(135deg,
        color-mix(in srgb, #818cf8 60%, #ffffff) 0%,
        color-mix(in srgb, #38bdf8 60%, #ffffff) 32%,
        color-mix(in srgb, #34d399 60%, #ffffff) 58%,
        color-mix(in srgb, #f472b6 60%, #ffffff) 82%,
        color-mix(in srgb, #a78bfa 60%, #ffffff) 100%
      ) border-box;
    box-shadow: 0 22px 54px -28px rgba(31, 27, 58, 0.16);
  }
  .site-home .desktop-maker-start #choose { border-radius: 16px; border: 0; }
  .site-home .desktop-maker-art { border-radius: 0 26px 26px 0; }
}
.site-home .stage { border-radius: var(--ui-radius); }
.site-home .stage:not(.dark, .check) { background-color: #f1f0fc; }

/* Stage toolbar + thumbnails */
.site-home .stage-label { color: var(--desktop-muted); font-weight: 700; font-size: 14px; }
.site-home .stage-label i { background: #22c39a; box-shadow: 0 0 0 4px #22c39a26; }
.site-home .preview-background-caption { color: var(--ui-subtle); font-size: 12.5px; font-weight: 600; }
.site-home .bg-swatch { width: 22px; height: 22px; border: 2px solid #fff; outline: 1.5px solid #dcd9ee; box-shadow: 0 1px 3px rgba(31, 27, 58, .12); }
.site-home .bg-swatch.active { outline: 2px solid var(--desktop-primary); }
.site-home .photo-thumb { border-radius: 12px; }
.site-home #top-upload { border-radius: 12px; border: 1.5px dashed #c9c5f2; color: var(--desktop-primary); background: #fbfaff; }

/* Stage actions: clear hierarchy with Edit cutout highlighted first */
.site-home .editor-stage-actions {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px;
  padding-top: 10px;
}
.site-home .editor-stage-actions .subject-actions {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px;
  flex: 0 1 auto; justify-content: flex-start;
}
.site-home .editor-stage-actions .subject-actions .text-button,
.site-home .editor-stage-actions #reset-light {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 40px; padding: 0 15px;
  border: 1.5px solid #d4d0ec; border-radius: 12px;
  background: #f3f2fa; color: #2a254b;
  font-size: 14px; font-weight: 750;
  box-shadow: 0 1px 2px rgba(31, 27, 58, .06);
  transition: border-color .15s, color .15s, background-color .15s, transform .15s;
}
.site-home .editor-stage-actions .subject-actions .text-button:hover:not(:disabled),
.site-home .editor-stage-actions #reset-light:hover:not(:disabled) {
  border-color: #a7a0ea; color: var(--desktop-primary); background: #ebe9fb;
}
.site-home .editor-stage-actions .ui-edit-cutout-group {
  order: -1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.site-home .editor-stage-actions #edit-subject {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 40px; padding: 0 18px;
  border: 1.5px solid #1f1b3a; border-radius: 12px;
  background: #1f1b3a; color: #fff;
  font-size: 14.5px; font-weight: 800;
  box-shadow: 0 6px 14px -8px rgba(31, 27, 58, .65);
  transition: background-color .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.ui-erase-help-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.ui-erase-help-btn {
  width: 34px;
  height: 40px;
  padding: 0;
  border-radius: 12px;
  border: 1.5px solid #d4d0ec;
  background: #f3f2fa;
  color: #4f46e5;
  font-size: 14px;
  font-weight: 850;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .15s, background-color .15s, color .15s;
}
.ui-erase-help-wrap:hover .ui-erase-help-btn,
.ui-erase-help-wrap:focus-within .ui-erase-help-btn {
  border-color: var(--desktop-primary);
  background: #eae7ff;
  color: #3730a3;
}
.ui-erase-demo-card {
  position: absolute;
  left: -102px;
  bottom: calc(100% + 12px);
  z-index: 40;
  width: 262px;
  padding: 10px 11px 9px;
  border-radius: 16px;
  border: 1.5px solid #d7d9f2;
  background: #ffffff;
  box-shadow: 0 20px 44px -10px rgba(24, 20, 60, .28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.ui-erase-demo-card::after {
  content: "";
  position: absolute;
  left: 114px;
  top: 100%;
  border: 7px solid transparent;
  border-top-color: #ffffff;
  filter: drop-shadow(0 2px 1px rgba(24, 20, 60, .12));
}
.ui-erase-help-wrap:hover .ui-erase-demo-card,
.ui-erase-help-wrap:focus-within .ui-erase-demo-card {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.ui-erase-demo-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 3px;
  margin-bottom: 8px;
  border-radius: 10px;
  background: #f1f0fa;
}
.ui-demo-tab {
  text-align: center;
  padding: 4px 6px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 800;
  color: #6b6c8e;
}
.ui-erase-demo-stage {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e4e6f6;
  line-height: 0;
}
.ui-erase-demo-foot {
  margin-top: 7px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #6b6c8e;
}
/* 4.6s seamless looping real-photo Erase -> Restore demonstration */
.ui-demo-tab-erase { animation: ui-demo-tab-erase 4.6s ease-in-out infinite; }
.ui-demo-tab-restore { animation: ui-demo-tab-restore 4.6s ease-in-out infinite; }
.ui-demo-extra { animation: ui-demo-extra 4.6s ease-in-out infinite; }
.ui-demo-restore-bg { animation: ui-demo-restore-bg 4.6s ease-in-out infinite; }
.ui-demo-cursor { animation: ui-demo-cursor 4.6s ease-in-out infinite; }
.ui-demo-cursor-ring { animation: ui-demo-cursor-ring 4.6s linear infinite; }

@keyframes ui-demo-tab-erase {
  0%, 45% { background: #ffffff; color: #e11d48; box-shadow: 0 1px 3px rgba(31, 27, 58, .12); }
  50%, 96% { background: transparent; color: #6b6c8e; box-shadow: none; }
  100% { background: #ffffff; color: #e11d48; box-shadow: 0 1px 3px rgba(31, 27, 58, .12); }
}
@keyframes ui-demo-tab-restore {
  0%, 46% { background: transparent; color: #6b6c8e; box-shadow: none; }
  52%, 95% { background: #ffffff; color: #4f46e5; box-shadow: 0 1px 3px rgba(31, 27, 58, .12); }
  100% { background: transparent; color: #6b6c8e; box-shadow: none; }
}
@keyframes ui-demo-extra {
  0%, 14% { opacity: 1; }
  36%, 92% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes ui-demo-restore-bg {
  0%, 58% { opacity: 0; }
  80%, 93% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes ui-demo-cursor {
  0% { transform: translate(34px, 56px); opacity: 0; }
  10% { transform: translate(38px, 58px); opacity: 1; }
  22% { transform: translate(62px, 76px); opacity: 1; }
  34% { transform: translate(42px, 96px); opacity: 1; }
  43% { transform: translate(52px, 84px); opacity: 0; }
  52% { transform: translate(182px, 48px); opacity: 0; }
  60% { transform: translate(184px, 50px); opacity: 1; }
  72% { transform: translate(204px, 74px); opacity: 1; }
  82% { transform: translate(186px, 98px); opacity: 1; }
  91%, 100% { transform: translate(186px, 98px); opacity: 0; }
}
@keyframes ui-demo-cursor-ring {
  0%, 48% { stroke: #f43f5e; fill: rgba(244, 63, 94, .20); }
  50%, 100% { stroke: #4f46e5; fill: rgba(79, 70, 229, .22); }
}
.site-home .editor-stage-actions #edit-subject:hover:not(:disabled) {
  background: #312b5c; border-color: #312b5c; color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -8px rgba(31, 27, 58, .75);
}
.site-home .editor-stage-actions #edit-subject:active:not(:disabled) { transform: translateY(0) scale(.98); }
.site-home .editor-stage-actions .subject-action-icon { font-size: 15px; line-height: 1; }
.site-home #extra-cleanup-actions { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; margin: 0; }
.site-home #extra-cleanup-actions button {
  width: auto; min-height: 40px; padding: 0 15px;
  border: 1.5px solid #bdb7f5; border-radius: 12px;
  background: #eceaff; color: #3c34b8;
  font-size: 14px; font-weight: 800;
  box-shadow: 0 1px 2px rgba(67, 56, 202, .1);
  transition: border-color .15s, background-color .15s, transform .15s;
}
.site-home #extra-cleanup-actions button:hover:not(:disabled) {
  border-color: var(--desktop-primary); background: #e2dfff; transform: translateY(-1px);
}
.site-home #extra-cleanup-status { margin: 0; color: var(--desktop-muted); font-size: 13px; font-weight: 600; }
.site-home .stage-footer, .site-home .stage-footer #status { color: var(--ui-subtle); font-size: 13px; font-weight: 600; }

/* ---------- Editor inspector ---------- */
.site-home .editor-controls { background: var(--desktop-surface); border-left: 1.5px solid var(--desktop-line); }
.site-home .editor-controls label,
.site-home .editor-controls .editor-field-heading label { color: var(--desktop-ink); font-weight: 700; font-size: 14px; }
.site-home .editor-controls output { color: var(--desktop-muted); font-weight: 700; font-size: 13px; }

/* Advanced options are always visible; no "More options" fold. */
.site-home .editor-controls details[data-panel-advanced] { border: 0; padding: 0; margin: 0; }
.site-home .editor-controls details[data-panel-advanced] > summary { display: none; }

/* Finish cards */
.site-home .editor-controls .materials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 18px; }
.site-home .editor-controls .material {
  min-height: 96px; border: 1.5px solid var(--desktop-line); border-radius: 16px; background: #fff;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.site-home .editor-controls .material:hover { border-color: #c9c5f5; transform: translateY(-1px); }
.site-home .editor-controls .material.active {
  border-color: var(--desktop-primary); background: #f6f5ff;
  box-shadow: 0 0 0 3px #4f46e51f;
}
.site-home .editor-controls .material.active::after { content: none; }
.site-home .editor-controls .material strong { font-size: 13px; font-weight: 800; color: var(--desktop-ink); }
.site-home .editor-controls .material .orb { width: 48px; height: 48px; box-shadow: 0 6px 14px -6px rgba(31, 27, 58, .35); }

/* Sliders */
.site-home .editor-controls .range-field { margin: 0 0 16px; }
.site-home .editor-controls .editor-field-heading { margin-bottom: 6px; }
.site-home .editor-controls .color-button {
  width: 24px; height: 24px; min-width: 24px; border: 2px solid #fff;
  box-shadow: 0 0 0 1.5px #dcd9ee, 0 2px 4px rgba(31, 27, 58, .12);
}
.site-home .editor-controls input[type="range"] {
  -webkit-appearance: none; appearance: none;
  height: 22px; background: transparent; cursor: pointer;
  --fill: 50%;
}
.site-home .editor-controls input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 999px;
  background: linear-gradient(to right, var(--desktop-primary) 0 var(--fill), var(--ui-track) var(--fill) 100%);
}
.site-home .editor-controls input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: var(--ui-track); }
.site-home .editor-controls input[type="range"]::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--desktop-primary); }
.site-home .editor-controls input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; margin-top: -6px; border-radius: 50%;
  background: #fff; border: 2.5px solid var(--desktop-primary);
  box-shadow: 0 2px 6px rgba(67, 56, 202, .35);
}
.site-home .editor-controls input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 2.5px solid var(--desktop-primary);
  box-shadow: 0 2px 6px rgba(67, 56, 202, .35);
}
.site-home .editor-controls input[type="range"]:disabled { opacity: .45; cursor: not-allowed; }

/* Segmented controls (built by ui-refresh.mjs) */
.ui-visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }
.ui-field { display: grid; gap: 6px; margin: 0 0 14px; }
.ui-caption { color: var(--desktop-ink); font-size: 14px; font-weight: 700; }
.ui-seg {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
  gap: 4px; padding: 4px; border-radius: 14px; background: var(--ui-track);
}
.ui-seg button {
  min-height: 36px; padding: 0 6px; border: 0; border-radius: 10px;
  background: transparent; color: var(--desktop-muted);
  font-size: 13px; font-weight: 800; white-space: nowrap;
  transition: background-color .15s, color .15s, box-shadow .15s;
}
.ui-seg button:hover:not(:disabled) { color: var(--desktop-ink); }
.ui-seg button[aria-pressed="true"] { background: #fff; color: var(--desktop-primary); box-shadow: 0 1px 3px rgba(31, 27, 58, .14); }

/* Shape collapsible trigger + floating overlay grid with instant hover name tooltips */
.site-home .editor-controls .shape-picker { display: none !important; }
.ui-shape-collapsible { position: relative; z-index: 12; margin: 2px 0 12px; }
.ui-shape-trigger {
  display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 10px;
  width: 100%; min-height: 46px; padding: 6px 12px 6px 8px;
  border: 1.5px solid var(--desktop-line); border-radius: 14px;
  background: #fff; color: var(--desktop-ink); text-align: left;
  box-shadow: 0 1px 2px rgba(31, 27, 58, .05);
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.ui-shape-trigger:hover { border-color: #c9c5f5; background: #faf9ff; }
.ui-shape-trigger[aria-expanded="true"] {
  border-color: var(--desktop-primary); background: #f3f2ff;
  box-shadow: 0 0 0 3px #4f46e51f;
}
.ui-shape-trigger-icon {
  display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: 10px; background: var(--ui-track);
}
.ui-shape-trigger-icon img, .ui-shape-trigger-icon svg { width: 22px; height: 22px; display: block; }
.ui-shape-trigger-name { font-size: 14px; font-weight: 800; color: var(--desktop-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-shape-trigger-hint { font-size: 12.5px; font-weight: 800; color: var(--desktop-primary); white-space: nowrap; }

.ui-shape-popover {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40;
  padding: 10px 10px 0;
  border: 1.5px solid #c9c5f5; border-radius: 16px; background: #fff;
  box-shadow: 0 22px 44px -12px rgba(31, 27, 58, .34), 0 6px 16px -6px rgba(67, 56, 202, .18);
  max-height: 246px; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: none;
}
.ui-shape-popover::-webkit-scrollbar { display: none; }
.ui-shape-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; padding: 14px 0 12px; }
.ui-shape-grid button {
  position: relative;
  display: grid; place-items: center; aspect-ratio: 1; min-height: 42px; padding: 0;
  border: 1.5px solid var(--desktop-line); border-radius: 12px; background: #fff;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.ui-shape-grid button:hover:not(:disabled) { border-color: #c9c5f5; background: #faf9ff; z-index: 5; }
.ui-shape-grid button[aria-pressed="true"] { border-color: var(--desktop-primary); background: #f3f2ff; box-shadow: 0 0 0 3px #4f46e51f; }
.ui-shape-grid img, .ui-shape-grid svg { width: 25px; height: 25px; display: block; pointer-events: none; }
.ui-shape-grid button:disabled { opacity: .5; }
/* Instant hover name tooltip — hidden at rest, shown on hover/focus */
.ui-shape-grid button::after {
  content: attr(data-shape-name);
  position: absolute; bottom: calc(100% + 6px); left: 50%; translate: -50% 4px;
  padding: 4px 8px; border-radius: 8px;
  background: #1f1b3a; color: #fff;
  font-size: 11.5px; font-weight: 750; line-height: 1.2; white-space: nowrap;
  pointer-events: none; opacity: 0; visibility: hidden; z-index: 60;
  box-shadow: 0 6px 14px -4px rgba(31, 27, 58, .45);
  transition: opacity .12s ease, translate .12s ease;
}
.ui-shape-grid button:hover::after,
.ui-shape-grid button:focus-visible::after { opacity: 1; visibility: visible; translate: -50% 0; }
/* Keep edge tooltips from clipping left/right */
.ui-shape-grid button:nth-child(6n + 1)::after { left: 0; translate: 0 4px; }
.ui-shape-grid button:nth-child(6n + 1):hover::after,
.ui-shape-grid button:nth-child(6n + 1):focus-visible::after { translate: 0 0; }
.ui-shape-grid button:nth-child(6n)::after { left: auto; right: 0; translate: 0 4px; }
.ui-shape-grid button:nth-child(6n):hover::after,
.ui-shape-grid button:nth-child(6n):focus-visible::after { translate: 0 0; }

/* Active shape controls: mode switch, Move photo toggle, Zoom slider */
.ui-shape-active-controls { display: grid; gap: 10px; margin: 0 0 12px; padding: 10px 12px; border-radius: 14px; background: #faf9fe; border: 1.5px solid var(--desktop-line); }
.ui-shape-active-controls .ui-field { margin: 0; }
.ui-shape-adjust-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.ui-move-btn {
  min-height: 38px; padding: 0 12px; border-radius: 10px;
  border: 1.5px solid #c9c5f5; background: #fff; color: var(--desktop-ink);
  font-size: 13px; font-weight: 800; transition: background-color .15s, border-color .15s, color .15s;
}
.ui-move-btn:hover { border-color: var(--desktop-primary); color: var(--desktop-primary); }
.ui-move-btn[aria-pressed="true"] {
  border-color: var(--desktop-primary); background: var(--desktop-primary); color: #fff;
  box-shadow: 0 6px 14px -6px rgba(79, 70, 229, .7);
}
.ui-reset-frame-btn {
  min-height: 38px; padding: 0 12px; border-radius: 10px;
  border: 1.5px solid var(--desktop-line); background: #fff; color: var(--desktop-muted);
  font-size: 12.5px; font-weight: 750;
}
.ui-reset-frame-btn:hover { border-color: #c9c5f5; color: var(--desktop-ink); }
.ui-shape-zoom-field { margin: 0 !important; }
@media (max-width: 899px) {
  .ui-shape-popover { position: static; margin-top: 8px; box-shadow: none; max-height: 240px; }
  .ui-shape-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* Export block */
.site-home .editor-panel .download-block > .output-format,
.site-home .editor-panel .download-block > .download-top { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ui-export-summary {
  display: inline-flex; align-items: center; gap: 8px; justify-self: start;
  padding: 6px 12px; border-radius: 999px; background: #1f1b3a; color: #fff;
  font-size: 12.5px; font-weight: 700; letter-spacing: .01em; font-variant-numeric: tabular-nums;
}
.ui-export-summary::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #34d3a6; }
.site-home .editor-panel .download-block p { color: var(--ui-subtle); font-size: 12.5px; line-height: 1.5; margin: 8px 0 0; }

/* Download rail */
.site-home .editor-download-rail { display: grid; gap: 8px; background: var(--desktop-surface); }
.site-home .editor-controls #download {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 18px; border-radius: 16px;
  font-size: 16px; font-weight: 850;
}
.site-home .editor-controls #download .ui-btn-icon { order: -1; }
.ui-btn-icon { width: 20px; height: 20px; flex: none; }
.site-home .editor-download-rail #print-layout,
.site-home .editor-panel #print-layout {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 46px; padding: 0 16px;
  border: 1.5px solid #d9d5ff; border-radius: 16px;
  background: #fff; color: var(--desktop-primary);
  font-size: 15px; font-weight: 800; box-shadow: none;
  transition: border-color .15s, background-color .15s;
}
.site-home .editor-download-rail #print-layout:hover,
.site-home .editor-panel #print-layout:hover { border-color: var(--desktop-primary); background: #faf9ff; }
#print-layout > span:not(.ui-pill) { color: inherit; font-size: inherit; font-weight: inherit; }
#print-layout .ui-pill { padding: 2px 8px; border-radius: 999px; background: var(--desktop-board); font-size: 12px; font-weight: 800; color: var(--desktop-primary); }

/* Desktop: one scrolling inspector instead of three tabs */
@media (min-width: 900px) {
  .site-home .editor-controls .editor-tabs { display: none !important; }
  .site-home .editor-controls .editor-panel[hidden] { display: block !important; }
  .site-home .editor-controls .editor-panel { padding: 0 0 16px; margin: 0 0 16px; border-bottom: 1.5px solid var(--desktop-line); }
  .site-home .editor-controls .editor-panel:last-child { border-bottom: 0; margin-bottom: 0; }
  .site-home .editor-controls .editor-panel::before {
    display: block; margin: 0 0 12px;
    color: var(--ui-subtle); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  }
  #editor-panel-sticker::before { content: "Finish"; }
  #editor-panel-shape::before { content: "Shape & edge"; }
  #editor-panel-export::before { content: "Output"; }
  .site-home .editor-controls #shape-picker-label,
  .site-home .editor-controls #shape-gesture-help { display: none !important; }
  .site-home.editor-mode .editor-controls { padding: 18px 20px 0; gap: 0; }
  .site-home.editor-mode .editor-panels { padding-right: 4px; scrollbar-width: thin; scrollbar-color: #d9d6f2 transparent; }
  .site-home .editor-download-rail { padding: 14px 0 16px; border-top: 1.5px solid var(--desktop-line); }
}

/* Mobile: keep the bottom bar, refresh its look */
@media (max-width: 899px) {
  .site-home .editor-controls { border-left: 0; border-top: 1.5px solid var(--desktop-line); background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); grid-template-columns: minmax(0, 1fr) auto !important; }
  .site-home .editor-tabs { background: var(--ui-track); border: 0; border-radius: 14px; min-width: 0; }
  .site-home .editor-tabs button { border-radius: 10px; font-weight: 800; color: var(--desktop-muted); padding: 0 6px !important; font-size: 12.5px; min-width: 0; }
  .site-home .editor-tabs button[aria-selected="true"] { color: var(--desktop-primary); border-color: transparent; box-shadow: 0 1px 3px rgba(31, 27, 58, .14); }
  .site-home .editor-download-rail { flex: 0 0 auto; width: auto !important; }
  .site-home .editor-controls #download { min-height: 44px; border-radius: 14px; font-size: 12.5px; font-weight: 850; gap: 4px; padding: 0 12px; white-space: nowrap; width: auto !important; }
  .site-home .editor-controls #download .ui-btn-icon { width: 16px; height: 16px; flex: none; }
  .site-home .editor-panels { border-radius: 22px 22px 0 0; border-color: var(--desktop-line); }
  .site-home .editor-controls .quick-finishes .material { border-radius: 12px; }
  .site-home .editor-panel #print-layout { margin-top: 12px; }
  /* Mobile header: strict single-row 54px bar, zero wrapping or overlap with workbench */
  .site-header,
  body.site-home > header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    height: auto !important;
    min-height: 54px !important;
    padding: 8px 14px !important;
    gap: 8px !important;
  }
  .site-header .site-brand { flex: none; font-size: 17px !important; }
  .site-header nav[aria-label="Site links"] {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    flex-wrap: nowrap !important;
  }
  .site-header nav[aria-label="Site links"] a {
    padding: 5px 11px; border-radius: 999px; background: var(--ui-track);
    color: var(--desktop-muted); font-size: 12.5px; font-weight: 800; text-decoration: none; white-space: nowrap;
  }
  /* Keep mobile header uncluttered: only Pricing stays in top bar (Guide/Privacy/Terms/Contact are in footer) */
  .site-header nav[aria-label="Site links"] a:not([href="/pricing"]) { display: none !important; }
  /* In active mobile sticker editor, maximize canvas space for the shortest single-sticker path */
  body.site-home.editor-mode .site-header nav[aria-label="Site links"] { display: none !important; }
  .site-header .pts-nav-right-group { flex: none; margin-left: 0; }
  body.site-home.editor-mode .site-header .pts-nav-right-group { margin-left: auto; }
  .site-home .stage-label { font-size: 13px; }
  .site-home .preview-background-caption { display: none; }
  .site-home .editor-controls .quick-finishes .material:focus-visible { outline-offset: 1px; }
}

/* Below-the-fold polish */
.site-home .sample-grid figure img, .desktop-use-visual, .desktop-example-play img, .desktop-example-play { border-radius: var(--ui-radius); }
.site-home .faq details { border-radius: 16px; }
.site-home .faq summary { font-weight: 800; }
.content-page .lede { color: var(--desktop-muted); }

/* ---------- Empty state hero: upload sticker card + live sticker stack ---------- */
.site-home #empty:not(.hidden) { isolation: isolate; }
.site-home #empty .desktop-maker-start {
  position: relative;
  aspect-ratio: auto; width: 100%; max-width: 520px;
  align-items: flex-start; text-align: left;
  padding: clamp(26px, 3vw, 40px);
  border: 0; border-radius: 28px; background: #fff;
  box-shadow: 0 0 0 1.5px #ebe9f8, 0 30px 60px -30px rgba(49, 40, 140, .45);
}
/* A second sheet peeking out behind the card, like a sticker on its backing paper. */
.site-home #empty .desktop-maker-start::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: 28px; background: linear-gradient(135deg, #e7e4ff, #dff5ee);
  rotate: 3.2deg; translate: 10px 8px;
}
.site-home #empty .desktop-maker-start::before {
  content: ""; position: absolute; inset: 10px;
  border: 2px dashed #d6d2f7; border-radius: 20px; pointer-events: none;
}
.site-home #empty .maker-start-title { font-size: clamp(30px, 2.7vw, 42px) !important; line-height: 1.08; margin: 0; }
.site-home #empty .desktop-maker-start > p { margin: 10px 0 20px; text-align: left; color: var(--desktop-muted); font-size: 16px; }
.site-home #empty #choose { min-height: 54px; padding: 0 28px; font-size: 17px; }
.ui-drop-hint { margin-top: 10px; color: var(--ui-subtle); font-size: 13.5px; font-weight: 600; }
.ui-benefits { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 6px; padding: 0; list-style: none; }
.ui-benefits li {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: 999px;
  font-size: 13px; font-weight: 800; line-height: 1.2;
}
.ui-benefits li::before { content: "✓"; font-size: 12px; }
.ui-benefits li:nth-child(5n+1) { background: #ddf6ee; color: #0f6b57; }
.ui-benefits li:nth-child(5n+2) { background: #fff1c9; color: #8a5600; }
.ui-benefits li:nth-child(5n+3) { background: #eeecff; color: #4338ca; }
.ui-benefits li:nth-child(5n+4) { background: #ffe4ec; color: #b4235a; }
.ui-benefits li:nth-child(5n+5) { background: #e0f2fe; color: #075985; }
.site-home #empty .desktop-maker-start .file-note { margin-top: 6px; color: var(--ui-subtle); font-size: 12.5px; text-align: left; }
.site-home #empty #sample { display: none !important; }
.ui-samples { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1.5px dashed #e3e0f7; width: 100%; }
.ui-samples-label { color: var(--desktop-muted); font-size: 14px; font-weight: 700; margin-right: 2px; }
.ui-sample-thumb {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px 4px 4px; border: 1.5px solid var(--desktop-line); border-radius: 999px;
  background: #fff; color: var(--desktop-ink); font-size: 13.5px; font-weight: 800;
  box-shadow: 0 2px 6px -2px rgba(31, 27, 58, .12);
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.ui-sample-thumb img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.ui-sample-thumb:hover { transform: translateY(-2px); border-color: #c9c5f5; box-shadow: 0 8px 16px -8px rgba(67, 56, 202, .4); }

.ui-hero-art { --mx: 0; --my: 0; width: 100%; }
.ui-art-stage {
  position: relative; width: 100%; max-width: 580px; margin-inline: auto; aspect-ratio: 1.12;
  perspective: 900px;
  border-radius: 28px;
  background:
    radial-gradient(closest-side at 62% 48%, #ffffffcc, transparent 72%),
    radial-gradient(#c9c5f5 1.2px, transparent 1.3px) 0 0 / 18px 18px,
    linear-gradient(140deg, #eeecff 0%, #f4f2ff 45%, #e3f6ef 100%);
  box-shadow: inset 0 0 0 1.5px #e6e3f8;
}
.ui-art-sticker, .ui-art-photo, .ui-art-arrow {
  position: absolute; margin: 0;
  transform: rotate(var(--r, 0deg))
    translate3d(calc(var(--mx) * var(--d, 10) * 1px), calc(var(--my) * var(--d, 10) * 1px), 0)
    rotateX(calc(var(--my) * -9deg)) rotateY(calc(var(--mx) * 11deg));
  transform-style: preserve-3d; will-change: transform;
}
.ui-art-sticker img { display: block; width: 100%; height: auto; filter: drop-shadow(0 14px 18px rgba(31, 27, 58, .28)); }
/* Holographic sheen restricted to the sticker silhouette. */
.ui-art-sticker::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: var(--img) center / contain no-repeat; mask: var(--img) center / contain no-repeat;
  background: linear-gradient(115deg, transparent 30%, #ffffff8c 45%, #b9f3ff66 52%, #ffc8f566 58%, transparent 72%)
    calc(50% + var(--mx) * 60%) 50% / 260% 100% no-repeat;
  mix-blend-mode: soft-light; opacity: .9;
}
.ui-art-tag {
  position: absolute; left: 50%; bottom: -6px; translate: -50% 0;
  padding: 5px 11px; border-radius: 999px; white-space: nowrap;
  font-size: 12.5px; font-weight: 850; letter-spacing: .01em;
  box-shadow: 0 6px 14px -6px rgba(31, 27, 58, .35);
  transform: translateZ(30px);
}
.ui-art-main { --r: 0deg; --d: 16; left: 24%; top: 11%; width: 57%; }
.ui-art-main .ui-art-tag { background: #1f1b3a; color: #fff; bottom: 2%; }
.ui-art-can { --r: 11deg; --d: 26; right: 4%; top: 3%; width: 20%; }
.ui-art-can .ui-art-tag { background: #fff1c9; color: #8a5600; bottom: -14px; }
.ui-art-skate { --r: -8deg; --d: 22; left: 4%; bottom: 5%; width: 27%; }
.ui-art-skate .ui-art-tag { background: #ddf6ee; color: #0f6b57; }
.ui-art-fox { --r: 7deg; --d: 20; right: 4%; bottom: 4%; width: 22%; }
.ui-art-fox .ui-art-tag { background: #f3e8ff; color: #6d28d9; bottom: -10px; }
.ui-art-photo {
  --r: -9deg; --d: 8; left: 5%; top: 7%; width: 27%;
  padding: 7px 7px 26px; background: #fff; border-radius: 10px;
  box-shadow: 0 14px 26px -12px rgba(31, 27, 58, .38);
}
.ui-art-photo img { display: block; width: 100%; height: auto; border-radius: 5px; }
.ui-art-photo figcaption { position: absolute; left: 0; right: 0; bottom: 5px; text-align: center; font-size: 12px; font-weight: 800; color: var(--desktop-muted); }
.ui-art-arrow { --r: 6deg; --d: 6; left: 25%; top: 5%; width: 17%; color: var(--desktop-primary); }

@media (prefers-reduced-motion: no-preference) {
  .ui-art-main { animation: ui-float 6s ease-in-out infinite; }
  .ui-art-can { animation: ui-float 7s ease-in-out -2s infinite; }
  .ui-art-skate { animation: ui-float 8s ease-in-out -4s infinite; }
  .ui-art-fox { animation: ui-float 7.5s ease-in-out -3s infinite; }
  @keyframes ui-float { 50% { translate: 0 -8px; } }
}

@media (min-width: 900px) {
  .site-home #empty:not(.hidden) {
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: clamp(28px, 4vw, 64px);
    padding: clamp(32px, 4vw, 60px) clamp(28px, 4vw, 64px);
    align-items: center;
  }
  .site-home #empty .desktop-maker-start { justify-self: end; grid-column: 1; grid-row: 1; }
  .site-home .ui-hero-art { grid-column: 2; grid-row: 1; }
  .site-home .stage:has(#empty:not(.hidden)) { background: var(--desktop-surface); }
}
@media (max-width: 899px) {
  .site-home .intro h1 { font-size: clamp(28px, 7.6vw, 38px) !important; line-height: 1.08 !important; }
  .site-home #empty:not(.hidden) { gap: 18px; padding: 12px 10px 18px; }
  .site-home .ui-hero-art { order: 2; }
  .ui-benefits { gap: 5px; margin: 14px 0 4px; }
  .ui-benefits li { padding: 4px 9px; font-size: 11.5px; }
  .ui-art-stage { max-width: 360px; aspect-ratio: 1.25; }
  .ui-art-main { left: 30%; top: 8%; width: 52%; }
  .ui-art-can { width: 19%; }
  .ui-art-photo { width: 25%; }
  .ui-art-tag { font-size: 11px; padding: 4px 9px; }
  .site-home #empty .desktop-maker-start { max-width: none; width: auto; padding: 20px 18px; margin: 0 4px 6px; }
  .site-home #empty .desktop-maker-start::after { rotate: 1.6deg; translate: 0 6px; }
  .ui-sample-thumb[data-ui-sample="corgi"] { display: none; }
}

/* ---------- Edit cutout modal ("Refine the cutout") ---------- */
.site-home #subject-dialog {
  border-radius: var(--ui-radius-lg);
  border: 1.5px solid var(--desktop-line);
  box-shadow: var(--ui-shadow-lg);
}
@media (min-width: 651px) {
  .site-home #subject-dialog .subject-body {
    grid-template-columns: 316px minmax(0, 1fr);
  }
}
.site-home #subject-dialog .subject-tools {
  padding: 12px 16px 0;
  background: var(--desktop-surface);
  border-right: 1.5px solid var(--desktop-line);
}
.site-home #subject-dialog .subject-tool-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 0 10px;
  overflow: visible;
  scrollbar-width: none;
}
.site-home #subject-dialog .subject-tool-options::-webkit-scrollbar {
  display: none;
}
@media (max-height: 680px) {
  .site-home #subject-dialog .subject-tool-options {
    overflow-y: auto;
  }
}
.site-home #subject-dialog #subject-extra-tools {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.site-home #subject-dialog .print-section-title {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--desktop-ink);
  display: flex;
  align-items: center;
  gap: 6px;
}
.site-home #subject-dialog .print-section-title kbd {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--ui-track);
  border: 1px solid #d9d6f0;
  font-size: 11px;
  font-weight: 800;
  color: var(--desktop-muted);
}
.site-home #subject-dialog .brush-direction {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  border-radius: 14px;
  background: var(--ui-track);
}
.site-home #subject-dialog .brush-direction .subject-tool {
  min-height: 36px;
  padding: 4px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  color: var(--desktop-muted);
  transition: background-color .15s, color .15s, box-shadow .15s;
}
.site-home #subject-dialog .brush-direction .subject-tool b { font-size: 13.5px; font-weight: 800; color: inherit; }
.site-home #subject-dialog .brush-direction .subject-tool.active {
  background: #fff;
  color: var(--desktop-primary);
  box-shadow: 0 2px 6px rgba(31, 27, 58, .12);
}
.site-home #subject-dialog #subject-brush-control {
  grid-template-columns: minmax(0, 1fr) 36px;
  column-gap: 10px;
  row-gap: 4px;
}
.site-home #subject-dialog .subject-tools .print-label {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--desktop-ink);
}
.site-home #subject-dialog #brush-tip-preview {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1.5px solid var(--desktop-line);
  background: #f7f6fd;
}
.site-home #subject-dialog input[type="range"] {
  -webkit-appearance: none; appearance: none;
  height: 20px; background: transparent; cursor: pointer;
  --fill: 50%;
}
.site-home #subject-dialog input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 999px;
  background: linear-gradient(to right, var(--desktop-primary) 0 var(--fill), var(--ui-track) var(--fill) 100%);
}
.site-home #subject-dialog input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 17px; height: 17px; margin-top: -5.5px; border-radius: 50%;
  background: #fff; border: 2.5px solid var(--desktop-primary);
  box-shadow: 0 2px 6px rgba(67, 56, 202, .35);
}

/* Brush tip visual grid */
.ui-brush-tips-wrap { margin: 0; gap: 6px; }
.ui-tip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}
.ui-tip-grid button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px 2px 4px;
  border: 1.5px solid var(--desktop-line);
  border-radius: 10px;
  background: #fff;
  color: var(--desktop-muted);
  transition: border-color .15s, background-color .15s, box-shadow .15s, color .15s;
}
.ui-tip-grid button canvas { width: 22px; height: 22px; display: block; opacity: 1 !important; pointer-events: none; cursor: inherit; }
.ui-tip-grid button span { font-size: 10.5px; font-weight: 750; line-height: 1.1; white-space: nowrap; }
.ui-tip-grid button:hover { border-color: #c9c5f5; background: #faf9ff; color: var(--desktop-ink); }
.ui-tip-grid button[aria-pressed="true"] {
  border-color: var(--desktop-primary);
  background: #f3f2ff;
  color: var(--desktop-primary);
  box-shadow: 0 0 0 2px #4f46e51f;
}

/* Keep main subject button */
.site-home #subject-dialog #keep-main-subject {
  margin-top: 0;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 11px;
  border: 1.5px solid #c9c5f5;
  background: #f3f2ff;
  color: #3c34b8;
  font-size: 13px;
  font-weight: 800;
  transition: border-color .15s, background-color .15s;
}
.site-home #subject-dialog #keep-main-subject:hover:not(:disabled) {
  border-color: var(--desktop-primary);
  background: #eae7ff;
}

/* Stack Brush settings & Crop cleanly in 1 column */
.site-home #subject-dialog .subject-panel-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.site-home #subject-dialog :is(.brush-settings, .crop-settings) {
  margin: 0;
  padding: 8px 11px;
  border: 1.5px solid var(--desktop-line);
  border-radius: 12px;
  background: #faf9fe;
}
.site-home #subject-dialog :is(.brush-settings, .crop-settings) summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1px 0;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--desktop-ink);
  list-style: none;
}
.site-home #subject-dialog :is(.brush-settings, .crop-settings) summary::-webkit-details-marker { display: none; }
.site-home #subject-dialog :is(.brush-settings, .crop-settings) summary::after {
  content: "▾";
  color: var(--ui-subtle);
  font-size: 13px;
  transition: transform .15s;
}
.site-home #subject-dialog :is(.brush-settings, .crop-settings):not([open]) summary::after { transform: rotate(-90deg); }
.site-home #subject-dialog #subject-tip-name {
  margin-left: auto;
  margin-right: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--desktop-board);
  color: var(--desktop-primary);
  font-size: 11px;
  font-weight: 800;
}
.site-home #subject-dialog .crop-settings[open] {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
}
.site-home #subject-dialog .crop-settings[open] summary {
  grid-column: 1 / -1;
}
.site-home #subject-dialog .crop-settings .subject-tool {
  grid-column: 1;
  grid-row: 2;
  min-height: 36px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1.5px solid var(--desktop-line);
  background: #fff;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.site-home #subject-dialog .crop-settings .subject-tool small {
  display: none;
}
.site-home #subject-dialog .crop-settings #full-subject {
  grid-column: 2;
  grid-row: 2;
  border-radius: 10px;
  min-height: 36px;
  padding: 0 11px;
  font-size: 12.5px;
  font-weight: 750;
  white-space: nowrap;
}
.site-home #subject-dialog .print-help {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.3;
  color: var(--ui-subtle);
}

/* History bar */
.site-home #subject-dialog .subject-history-bar {
  padding: 10px 0 12px;
  border-top: 1.5px solid var(--desktop-line);
  background: var(--desktop-surface);
  display: grid;
  gap: 6px;
  flex: none;
}
.site-home #subject-dialog .subject-history {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.site-home #subject-dialog .subject-history button {
  min-height: 36px;
  border-radius: 10px;
  border: 1.5px solid var(--desktop-line);
  background: #f5f4fc;
  color: var(--desktop-ink);
  font-size: 13px;
  font-weight: 750;
}
.site-home #subject-dialog .subject-history button:hover:not(:disabled) {
  border-color: #b7b1f2;
  background: #eeecff;
  color: var(--desktop-primary);
}
.site-home #subject-dialog #reset-subject {
  min-height: 30px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 750;
}

/* Brush settings floating overlay over Crop */
.site-home #subject-dialog .subject-tool-options:has(.brush-settings[open]) { overflow: visible; }
.site-home #subject-dialog .subject-panel-details { position: relative; }
.site-home #subject-dialog .brush-settings { position: relative; z-index: 6; }
.site-home #subject-dialog .brush-settings[open] {
  border-color: var(--desktop-primary);
  background: #f3f2ff;
}
.site-home #subject-dialog .brush-settings .ui-brush-popover {
  position: absolute;
  left: -1.5px;
  right: -1.5px;
  top: calc(100% + 6px);
  z-index: 20;
  padding: 9px 12px 11px;
  border: 1.5px solid #c9c5f5;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 36px -10px rgba(31, 27, 58, .3), 0 4px 12px -4px rgba(67, 56, 202, .16);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.site-home #subject-dialog .brush-settings .ui-brush-popover label {
  margin-top: 0;
  gap: 1px 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--desktop-ink);
}
.site-home #subject-dialog .brush-settings .ui-brush-popover input[type="range"] { height: 16px; }
.site-home #subject-dialog .brush-settings .ui-brush-popover output {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--desktop-muted);
}

/* Keep main subject row + "?" help popover */
.site-home #subject-dialog .subject-tool-options:has(.ui-keep-main-tip:not([hidden])) { overflow: visible; }
.ui-keep-main-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: 6px;
  align-items: center;
  z-index: 8;
}
.ui-keep-main-help {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 11px;
  border: 1.5px solid #d4d0ec;
  background: #f5f4fc;
  color: var(--desktop-primary);
  font-size: 14px;
  font-weight: 850;
  display: grid;
  place-items: center;
  transition: border-color .15s, background-color .15s;
}
.ui-keep-main-help:hover,
.ui-keep-main-help[aria-expanded="true"] {
  border-color: var(--desktop-primary);
  background: #eae7ff;
}
.ui-keep-main-tip {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  padding: 12px 14px;
  border: 1.5px solid #c9c5f5;
  border-radius: 14px;
  background: #fff;
  color: var(--desktop-ink);
  font-size: 12.5px;
  line-height: 1.5;
  box-shadow: 0 18px 36px -10px rgba(31, 27, 58, .3), 0 4px 12px -4px rgba(67, 56, 202, .16);
}
.ui-keep-main-tip strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--desktop-primary);
}
.ui-keep-main-tip ol {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
  color: var(--desktop-muted);
}
.ui-keep-main-tip b { color: var(--desktop-ink); font-weight: 800; }

/* ---------- Print layout modal ("Arrange a print sheet") ---------- */
.site-home #print-dialog {
  border-radius: var(--ui-radius-lg);
  border: 1.5px solid var(--desktop-line);
  box-shadow: var(--ui-shadow-lg);
}
.site-home #print-dialog .print-body {
  grid-template-columns: clamp(350px, 31vw, 420px) minmax(0, 1fr);
}
.site-home #print-dialog .print-settings {
  padding: 0 18px;
  background: var(--desktop-surface);
  border-right: 1.5px solid var(--desktop-line);
}
.site-home #print-dialog .print-settings :is(select, input[type="number"]) {
  height: 36px;
  border-radius: 10px;
  border: 1.5px solid var(--desktop-line);
  background: #faf9fe;
  font-size: 14px;
  font-weight: 700;
  color: var(--desktop-ink);
  appearance: textfield;
}
.site-home #print-dialog input[type="number"]::-webkit-inner-spin-button,
.site-home #print-dialog input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.site-home #print-dialog .print-asset {
  padding: 10px;
  border-radius: 14px;
  border: 1.5px solid var(--desktop-line);
  background: #fff;
  gap: 10px;
}
.site-home #print-dialog .print-asset[data-active] {
  border-color: var(--desktop-primary);
  background: #faf9ff;
  box-shadow: 0 0 0 3px #4f46e514;
}
.site-home #print-dialog .print-row-name {
  padding: 6px 10px;
  border-radius: 10px;
  border: 1.5px solid var(--desktop-line);
  font-weight: 750;
}
.site-home #print-dialog .print-asset-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
  align-items: end;
}
.site-home #print-dialog .print-asset-inputs > * {
  display: grid;
  gap: 4px;
  min-width: 0;
  margin: 0;
}
.site-home #print-dialog .print-asset-inputs label {
  margin: 0;
  font-size: 12.5px;
  font-weight: 750;
  line-height: 1.3;
  color: var(--desktop-muted);
}
.site-home #print-dialog .print-quantity-stepper {
  display: grid;
  grid-template-columns: 36px minmax(44px, 1fr) 36px;
  align-items: center;
  gap: 4px;
}
.site-home #print-dialog .print-quantity-stepper button {
  width: 36px;
  height: 36px;
  min-height: 36px;
  border-radius: 10px;
  border: 1.5px solid #c9c5f5;
  background: #f0eeff;
  color: var(--desktop-primary);
  font-size: 18px;
  font-weight: 850;
  line-height: 1;
  transition: background-color .15s, border-color .15s, transform .1s;
}
.site-home #print-dialog .print-quantity-stepper button:hover {
  background: #e3dfff;
  border-color: var(--desktop-primary);
}
.site-home #print-dialog .print-quantity-stepper button:active { transform: scale(.94); }
.site-home #print-dialog .print-quantity-stepper input {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 0 4px;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  border-radius: 10px;
  background: #fff;
}
.site-home #print-dialog .print-settings,
.site-home #print-dialog .print-actions {
  min-width: 0;
}
/* Horizontal filmstrip foundation for #photo-workspace (supports 12..50+ batch photos without wrapping) */
.site-home #photo-workspace:not([hidden]) {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
  position: relative;
}
.site-home .ui-strip-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
}
.site-home #photo-list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px;
  scrollbar-width: none;
  scroll-behavior: smooth;
}
.site-home #photo-list::-webkit-scrollbar {
  display: none;
}
.site-home #photo-list > * {
  flex: 0 0 auto;
}
.site-home #top-upload {
  flex: 0 0 auto;
}
.site-home .ui-strip-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 999px;
  border: 1.5px solid #d7d9f2;
  background: rgba(255, 255, 255, 0.94);
  color: #363458;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(24, 20, 60, 0.16);
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}
.site-home .ui-strip-nav:hover {
  border-color: var(--desktop-primary);
  background: #f5f4ff;
  color: var(--desktop-primary);
}
.site-home .ui-strip-nav.prev { left: 4px; }
.site-home .ui-strip-nav.next { right: 4px; }
.site-home .ui-strip-nav[hidden] { display: none !important; }
.site-home #print-dialog #print-picker {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  max-height: none;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 4px;
  scrollbar-width: none;
  scroll-behavior: smooth;
}
.site-home #print-dialog #print-picker::-webkit-scrollbar {
  display: none;
}
.site-home #print-dialog #print-picker > * {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  padding: 3px;
  overflow: hidden;
  box-sizing: border-box;
  background: #f6f6fc;
}
.site-home #print-dialog #print-picker > * img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.site-home #print-dialog :is(#apply-print-size, #fill-print) {
  min-height: 40px;
  border-radius: 12px;
  border: 1.5px solid #c9c5f5;
  background: #f3f2ff;
  color: #3c34b8;
  font-size: 13.5px;
  font-weight: 800;
}
.site-home #print-dialog :is(#apply-print-size, #fill-print):hover:not(:disabled) {
  border-color: var(--desktop-primary);
  background: #eae7ff;
}

/* Tinted preview sheet so white sticker outlines stand out clearly */
.site-home #print-dialog .print-preview-area {
  background: #f4f3fb;
  padding: 12px 20px;
}
.site-home #print-dialog .print-preview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.ui-sheet-bg-picker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--desktop-muted);
}
.ui-sheet-swatch {
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid #fff;
  outline: 1.5px solid #c9c5e6;
  box-shadow: 0 1px 3px rgba(31, 27, 58, .15);
}
.ui-sheet-swatch[data-sheet-bg="tint"] { background: #dcdaf0; }
.ui-sheet-swatch[data-sheet-bg="dark"] { background: #23213c; }
.ui-sheet-swatch[data-sheet-bg="white"] { background: #fff; }
.ui-sheet-swatch[aria-pressed="true"] { outline: 2.5px solid var(--desktop-primary); }

.site-home #print-dialog #print-pages[data-sheet-bg="tint"] .print-sheet {
  background: #e5e3f4;
  border: 1.5px solid #cbc7e8;
  box-shadow: 0 16px 36px -14px rgba(31, 27, 58, .28);
}
.site-home #print-dialog #print-pages[data-sheet-bg="tint"] .print-safe-area {
  border-color: #9b95d6;
}
.site-home #print-dialog #print-pages[data-sheet-bg="dark"] .print-sheet {
  background: #23213c;
  border: 1.5px solid #3c3863;
  box-shadow: 0 16px 36px -14px rgba(15, 13, 32, .5);
}
.site-home #print-dialog #print-pages[data-sheet-bg="dark"] .print-safe-area {
  border-color: #6b65a8;
}
.site-home #print-dialog #print-pages[data-sheet-bg="white"] .print-sheet {
  background: #fff;
  border: 1.5px solid var(--desktop-line);
  box-shadow: 0 16px 36px -14px rgba(31, 27, 58, .2);
}
.site-home #print-dialog {
  overscroll-behavior: contain;
}
.site-home #print-dialog .print-paper-settings {
  padding: 5px 0 6px;
}
.site-home #print-dialog .print-paper-settings .print-section-title {
  margin-bottom: 4px;
}
.site-home #print-dialog .print-paper-settings .print-two,
.site-home #print-dialog .print-paper-settings .margin-grid {
  gap: 5px 6px;
  margin-top: 3px;
}
.site-home #print-dialog .print-paper-settings label {
  gap: 2px;
  font-size: 11.5px;
}
.site-home #print-dialog .print-settings .print-paper-settings :is(select, input[type="number"]) {
  min-height: 28px;
  height: 28px;
  padding: 2px 7px;
  font-size: 12.5px;
}
.site-home #print-dialog .print-paper-settings .print-section-subtitle {
  margin: 4px 0 2px;
  font-size: 11.5px;
}
.site-home #print-dialog .print-paper-settings .print-default-help {
  display: none;
}
.site-home #print-dialog .print-designs {
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  padding: 6px 2px 8px;
}
.site-home #print-dialog .print-designs::-webkit-scrollbar {
  display: none;
}
.site-home #print-dialog .print-designs .print-section-title {
  margin-bottom: 4px;
}
.site-home #print-dialog .print-asset {
  padding: 6px 8px;
  margin: 4px 0;
  gap: 6px;
}
.site-home #print-dialog .print-row-name {
  min-height: 26px;
  height: 26px;
  padding: 2px 8px;
  font-size: 12.5px;
}
.site-home #print-dialog .print-asset-inputs {
  margin-top: 4px;
}
.site-home #print-dialog .print-asset-inputs label {
  font-size: 11px;
  gap: 2px;
}
.site-home #print-dialog .print-quantity-stepper button {
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
}
.site-home #print-dialog .print-quantity-stepper input {
  height: 30px;
  min-height: 30px;
}
.site-home #print-dialog .print-actions {
  padding: 6px 0 7px;
}
.site-home #print-dialog #print-picker > * {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
}
.site-home #print-dialog #fill-print {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12.5px;
}
.site-home #print-dialog #print-fill-help {
  margin-top: 3px;
  font-size: 11px;
}
/* Cut guides control & live preview overlays */
.site-home #print-dialog .print-cut-guides {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #e7e8f5;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.site-home #print-dialog .print-cut-seg button {
  min-height: 28px;
}
.site-home #print-dialog .print-cut-checks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 12px;
}
.site-home #print-dialog .print-cut-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.site-home #print-dialog .print-per-sheet {
  font-size: 11.5px;
  font-weight: 800;
  color: #4f46e5;
  background: #eeecff;
  padding: 2px 8px;
  border-radius: 999px;
}
.site-home #print-dialog .print-cut-seg {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 3px;
  border-radius: 11px;
  background: #f0effa;
}
.site-home #print-dialog .print-cut-seg button {
  min-height: 32px;
  padding: 0 6px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #4e4f73;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.site-home #print-dialog .print-cut-seg button[aria-pressed="true"] {
  background: #ffffff;
  color: #4338ca;
  box-shadow: 0 1px 3px rgba(31, 27, 58, 0.14);
}
.site-home #print-dialog .print-cut-seg button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.site-home #print-dialog .print-cut-seg button small {
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 4px;
  background: #e4e5f5;
  color: #646587;
}
.site-home #print-dialog .print-cut-hint {
  margin: 0;
  font-size: 11.5px;
  color: #646587;
}
.site-home #print-dialog .print-cal-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: #363458;
  cursor: pointer;
}
.site-home #print-dialog .print-cal-check input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #4f46e5;
}
.site-home #print-dialog .print-cut-box {
  position: absolute;
  border: 1px dashed #666666;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 3;
}
.site-home #print-dialog .print-smart-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}
.site-home #print-dialog .print-smart-svg polygon {
  fill: none;
  stroke: #4b4d6d;
  stroke-width: 1.25;
  stroke-dasharray: 4 3;
  vector-effect: non-scaling-stroke;
}
.site-home #print-dialog .print-crop-marks {
  position: absolute;
  pointer-events: none;
  z-index: 3;
}
.site-home #print-dialog .print-crop-marks i {
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: #666666;
  border-style: solid;
  border-width: 0;
}
.site-home #print-dialog .print-crop-marks .cm-tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.site-home #print-dialog .print-crop-marks .cm-tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.site-home #print-dialog .print-crop-marks .cm-bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.site-home #print-dialog .print-crop-marks .cm-br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.site-home #print-dialog .print-cal-preview {
  position: absolute;
  border: 1px solid #666666;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  color: #666666;
  pointer-events: none;
  z-index: 3;
}
@media (max-width: 700px) {
  .site-home #print-dialog .print-body { grid-template-columns: minmax(0, 1fr); }
  .site-home #print-dialog .print-asset-inputs { grid-template-columns: 1fr; }
}


/* Seamless site footer on #f5f6fb (no hard white rectangle cut-off on left/right) */
.site-footer {
  background: transparent !important;
  border-top: 1px solid rgba(108, 99, 178, 0.14);
  box-shadow: none !important;
  max-width: 1120px;
  width: calc(100% - 40px);
  margin: 40px auto 0 !important;
  padding: 24px 4px 36px !important;
  border-radius: 0 !important;
}
.site-footer nav a {
  text-decoration: none;
  color: #55587c;
  font-weight: 700;
  transition: color 0.15s ease;
}
.site-footer nav a:hover {
  color: #4f46e5;
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* Editorial Guide & Content Pages (/how-to-make-stickers, /how-to-make-holographic-stickers, /terms, /privacy) */
.content-page {
  max-width: 900px !important;
  width: calc(100% - 40px) !important;
  margin: 0 auto !important;
  padding: 48px 0 64px !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #3a3d5c;
  -webkit-font-smoothing: antialiased;
}
.content-page .page-title {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: clamp(2rem, 4.2vw, 3rem) !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.025em !important;
  color: #1f1b3a !important;
  max-width: 24ch !important;
  margin: 0 0 16px !important;
}
.content-page .lede {
  font-size: 17.5px !important;
  line-height: 1.75 !important;
  color: #4f5275 !important;
  max-width: 66ch !important;
  margin: 0 0 24px !important;
  font-weight: 450;
}
.content-page .cta-link {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 12px 22px !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, #5d55ec 0%, #4f46e5 100%) !important;
  color: #ffffff !important;
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 10px 22px -10px rgba(79, 70, 229, 0.65);
}
.content-page .cta-link:hover { filter: brightness(1.06); }
.content-page p,
.content-page li {
  font-size: 15.5px !important;
  line-height: 1.82 !important;
  letter-spacing: 0.005em;
  color: #3d4060 !important;
  max-width: 72ch;
}
.content-page p { margin: 0 0 15px; }
.content-page strong { color: #1f1b3a; font-weight: 700; }
.content-page h2 {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: clamp(1.4rem, 2.6vw, 1.85rem) !important;
  font-weight: 850 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.02em !important;
  color: #1f1b3a !important;
  margin: 0 0 14px !important;
}
.content-page h3 {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  letter-spacing: -0.01em !important;
  color: #262344 !important;
  margin: 22px 0 8px !important;
}
.content-page img {
  max-width: 100%;
  height: auto !important;
}
.guide-step {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 22px !important;
  background: #ffffff;
  border: 1px solid #e3e5f4 !important;
  border-radius: 22px;
  padding: clamp(22px, 3.5vw, 34px) clamp(20px, 4vw, 38px) !important;
  margin-top: 26px !important;
  box-shadow: 0 12px 30px -22px rgba(31, 27, 58, 0.14);
}
.guide-step figure {
  margin: 4px 0 0 !important;
  padding: 12px;
  background: #f7f8fd;
  border: 1px solid #e7e9f6;
  border-radius: 16px;
}
.guide-step figure img {
  display: block;
  width: 100% !important;
  height: auto !important;
  border-radius: 10px !important;
  border: 1px solid rgba(31, 27, 58, 0.08) !important;
  background: #ffffff;
}
.guide-step figcaption {
  font-size: 13.5px !important;
  line-height: 1.5;
  margin-top: 10px !important;
  color: #606385 !important;
  text-align: center;
}


/* Homepage section guide CTA links: clear secondary pill buttons */
.site-home .site-section a[href^="/how-to-make-stickers"] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1.5px solid #cfd2f5;
  background: #ffffff;
  color: #4338ca;
  font-size: 14.5px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 6px 16px -10px rgba(79, 70, 229, 0.35);
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.site-home .site-section a[href^="/how-to-make-stickers"]::after {
  content: "→";
  font-weight: 900;
  transition: transform 0.15s ease;
}
.site-home .site-section a[href^="/how-to-make-stickers"]:hover {
  border-color: #4f46e5;
  background: #eef0ff;
  color: #3730a3;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -12px rgba(79, 70, 229, 0.45);
}
.site-home .site-section a[href^="/how-to-make-stickers"]:hover::after {
  transform: translateX(3px);
}


/* Print sheet diagonal Free branding (top-left + bottom-right) & Pro 1:1 Real-Size Preview */
.print-sheet { position: relative; }
.print-brand-mark {
  position: absolute;
  font-size: clamp(7px, 1.05vw, 9px);
  font-weight: 700;
  letter-spacing: 0.015em;
  color: rgba(94, 98, 122, 0.72);
  pointer-events: none;
  user-select: none;
  z-index: 5;
}
.print-brand-mark.is-tl { top: 1.1%; left: 3.8%; }
.print-brand-mark.is-br { bottom: 1.1%; right: 3.8%; }

.print-real-size-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid #cfd2f5;
  background: #ffffff;
  color: #4338ca;
  font: inherit;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s, background-color 0.15s;
}
.print-real-size-btn:hover:not(:disabled) { border-color: #4f46e5; background: #eef0ff; }
.print-real-size-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.pts-realsize-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 36px);
  border: 1.5px solid #dfe1f4;
  border-radius: 22px;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
  color: #1f1b3a;
  box-shadow: 0 28px 64px -20px rgba(24, 20, 60, 0.35);
}
.pts-realsize-dialog[open] {
  display: flex;
  flex-direction: column;
}
.pts-realsize-dialog::backdrop { background: rgba(24, 21, 52, 0.45); backdrop-filter: blur(4px); }
.rs-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 24px 12px; flex: none; }
.rs-body {
  padding: 0 24px 22px;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 102, 241, 0.32) transparent;
}
.rs-body::-webkit-scrollbar,
.slb-stage::-webkit-scrollbar { width: 8px; height: 8px; }
.rs-body::-webkit-scrollbar-track,
.slb-stage::-webkit-scrollbar-track { background: transparent; margin: 6px; }
.rs-body::-webkit-scrollbar-thumb,
.slb-stage::-webkit-scrollbar-thumb { background: rgba(99, 102, 241, 0.32); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
.rs-body::-webkit-scrollbar-thumb:hover,
.slb-stage::-webkit-scrollbar-thumb:hover { background: rgba(79, 70, 229, 0.55); border: 2px solid transparent; background-clip: padding-box; }

/* Full-screen 100% Real-Size Sheet Viewer (PDF / Image viewer style) */
.pts-sheet-lightbox {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #e8ebf4;
  color: #1f1b3a;
}
.pts-sheet-lightbox[open] {
  display: flex;
  flex-direction: column;
}
.pts-sheet-lightbox::backdrop {
  background: rgba(18, 16, 40, 0.72);
  backdrop-filter: blur(6px);
}
.pts-sheet-lightbox .slb-topbar {
  flex: none;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 24px;
  background: #ffffff;
  border-bottom: 1px solid #dcdfef;
  box-shadow: 0 4px 16px -10px rgba(24, 20, 60, 0.22);
  z-index: 4;
}
.slb-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.slb-badge {
  display: inline-grid;
  place-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #5d55ec 0%, #4f46e5 100%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
}
.slb-title { display: block; font-size: 14.5px; font-weight: 900; color: #1f1b3a; line-height: 1.2; }
.slb-meta { display: block; font-size: 12px; font-weight: 700; color: #63678a; }
.slb-center { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.slb-page-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f2f4fb;
  border: 1px solid #d9dcf0;
  font-size: 12px;
  font-weight: 800;
  color: #36395c;
}
.slb-nav-btn {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 0;
  background: #ffffff;
  color: #36395c;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
}
.slb-nav-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.slb-action-btn {
  appearance: none;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid #cfd3ef;
  background: #ffffff;
  color: #3a3d61;
  font: inherit;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.slb-action-btn:hover { border-color: #4f46e5; color: #4338ca; background: #f5f4ff; }
.slb-action-btn.is-primary {
  border-color: rgba(79, 70, 229, 0.3);
  background: #eef0ff;
  color: #4338ca;
}
.slb-close {
  appearance: none;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid #d8dbf0;
  background: #f7f8fe;
  color: #36395c;
  font: inherit;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.slb-close:hover { background: #eceefb; color: #1f1b3a; }
.slb-accuracy-banner {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 18px;
  background: #fffbeb;
  border-bottom: 1px solid #f3e2a8;
  color: #6b4e0e;
  font-size: 12.5px;
  line-height: 1.45;
  text-align: center;
}
.slb-accuracy-banner.is-calibrated {
  background: #ecfdf5;
  border-bottom-color: #bfead7;
  color: #0e5a3b;
}
.slb-acc-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #f59e0b;
}
.slb-acc-dot.is-ok { background: #10b981; }
.slb-cal-panel {
  flex: none;
  padding: 14px 20px;
  background: #f5f4ff;
  border-bottom: 1px solid #d7d5fb;
}
.slb-cal-inner {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.slb-cal-copy { flex: 1 1 340px; }
.slb-cal-copy strong { display: block; font-size: 13.5px; color: #2b2470; margin-bottom: 4px; }
.slb-cal-copy p { margin: 0 0 10px; font-size: 12.5px; line-height: 1.5; color: #4b4785; }
.slb-cal-card { margin-bottom: 0; flex: none; }
.slb-stage {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 26px 28px 44px;
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 102, 241, 0.34) transparent;
}
.slb-canvas-wrap {
  width: max-content;
  min-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.slb-width-ruler {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  position: relative;
  color: #4338ca;
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: 0.02em;
}
.slb-width-ruler::before,
.slb-width-ruler::after {
  content: "";
  width: 2px;
  height: 12px;
  background: #4f46e5;
  border-radius: 2px;
  flex: none;
}
.slb-ruler-line {
  flex: 1 1 auto;
  height: 1.5px;
  background: rgba(79, 70, 229, 0.55);
}
.slb-ruler-label {
  flex: none;
  padding: 2px 10px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #cfd3f5;
  box-shadow: 0 2px 8px -4px rgba(31, 27, 58, 0.25);
}
.slb-sheet-slot .print-sheet {
  box-shadow: 0 22px 54px -20px rgba(24, 20, 60, 0.34), 0 0 0 1px rgba(96, 100, 145, 0.16);
}
@media (max-width: 720px) {
  .slb-topbar { flex-wrap: wrap; padding: 10px 14px; }
  .slb-accuracy-banner { font-size: 11.5px; text-align: left; }
}
.rs-eyebrow { display: block; font-size: 11px; font-weight: 900; letter-spacing: 0.08em; color: #4f46e5; }
.rs-title { margin: 4px 0 0; font-size: 20px; font-weight: 900; color: #1f1b3a; }
.rs-close { width: 34px; height: 34px; border-radius: 10px; border: 1px solid #e1e3f4; background: #f7f8fe; font-size: 20px; cursor: pointer; color: #474a6b; }
.rs-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0; padding: 10px 14px; border-radius: 12px; background: #f6f7fd; font-size: 13px; font-weight: 700; color: #3a3d5c; }
.rs-check { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.rs-cal-toggle { padding: 6px 12px; border-radius: 8px; border: 1px solid #cfd2f5; background: #ffffff; color: #4338ca; font: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer; }
.rs-cal-panel { margin-bottom: 14px; padding: 14px 16px; border-radius: 14px; background: #f3f2ff; border: 1px solid #d7d5fb; }
.rs-cal-help { margin: 0 0 10px; font-size: 13px; color: #3730a3; font-weight: 600; }
.rs-cal-card { border: 2px dashed #4f46e5; border-radius: 10px; background: rgba(255, 255, 255, 0.8); display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #4338ca; margin-bottom: 10px; }
.rs-cal-controls { display: flex; align-items: center; gap: 10px; }
.rs-cal-controls input[type="range"] { flex: 1; }
.rs-cal-save { padding: 6px 14px; border-radius: 8px; border: 0; background: #4f46e5; color: #ffffff; font-weight: 800; font-size: 12.5px; cursor: pointer; }
.rs-cal-reset { padding: 6px 12px; border-radius: 8px; border: 1px solid #cfd2f5; background: #ffffff; color: #474a6b; font-weight: 700; font-size: 12.5px; cursor: pointer; }
.rs-stage { overflow: auto; padding: 24px 20px 28px; border-radius: 16px; border: 1px solid #e4e6f5; background: #f8f9fe; }
.rs-ruler-x { position: relative; height: 22px; border-bottom: 1px solid #9da1bd; margin-bottom: 18px; }
.rs-tick { position: absolute; bottom: 0; width: 1px; height: 6px; background: #9da1bd; }
.rs-tick.is-major { height: 11px; background: #55587c; }
.rs-tick.is-major::after { content: attr(data-label); position: absolute; top: -12px; left: -8px; font-size: 9.5px; font-weight: 700; color: #55587c; }
.rs-items { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px; }
.rs-sticker-wrap img { display: block; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(31, 27, 58, 0.16)); }
.rs-card-ref { border: 1.5px dashed #8d91b5; border-radius: 10px; background: rgba(255, 255, 255, 0.72); display: grid; place-items: center; text-align: center; font-size: 12px; font-weight: 700; color: #5b5e80; line-height: 1.4; flex: none; }
.rs-foot { margin: 12px 0 0; font-size: 12px; color: #64678a; font-weight: 600; }


/* Homepage FAQ: Left photorealistic sticker-mosaic + Right clean chevron accordion */
.site-home .pts-faq-section {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}
.site-home .pts-faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 410px) minmax(0, 1fr);
  gap: clamp(28px, 4.5vw, 56px);
  align-items: stretch;
}
.site-home .pts-faq-mosaic {
  border-radius: 24px;
  overflow: hidden;
  background: #eceef8;
  border: 1.5px solid rgba(114, 108, 170, 0.16);
  box-shadow: 0 20px 44px -24px rgba(31, 27, 58, 0.22);
  display: flex;
}
.site-home .pts-faq-mosaic img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.site-home .pts-faq-eyebrow {
  margin: 0 0 8px;
  font-size: 13.5px;
  font-weight: 800;
  color: #4f46e5;
  letter-spacing: 0.02em;
}
.site-home .pts-faq-col h2 {
  margin: 0 0 10px !important;
  font-size: clamp(26px, 3.2vw, 34px) !important;
  line-height: 1.15 !important;
  letter-spacing: -0.025em !important;
  color: #1f1b3a !important;
}
.site-home .pts-faq-sub {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.65;
  color: #5b5e80;
  max-width: 56ch;
}
.site-home .pts-faq-col .faq {
  display: block !important;
  gap: 0 !important;
}
.site-home .pts-faq-col .faq details {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid #dfe1f2 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}
.site-home .pts-faq-col .faq details:first-of-type {
  border-top: 1px solid #dfe1f2 !important;
}
.site-home .pts-faq-col .faq summary {
  list-style: none;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 2px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #1f1b3a !important;
  cursor: pointer;
}
.site-home .pts-faq-col .faq summary::-webkit-details-marker { display: none; }
.site-home .pts-faq-col .faq summary::before { display: none !important; content: none !important; }
.site-home .pts-faq-col .faq summary::after {
  content: "" !important;
  flex: none;
  width: 18px;
  height: 18px;
  background: no-repeat center / 18px 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='m4.5 7 4.5 4.5L13.5 7' stroke='%2343466b' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  transition: transform 0.25s ease;
}
.site-home .pts-faq-col .faq details[open] summary { color: #4f46e5 !important; }
.site-home .pts-faq-col .faq details[open] summary::after { transform: rotate(180deg); }
.site-home .pts-faq-col .faq details p {
  margin: 0 0 18px !important;
  padding: 0 28px 0 2px !important;
  font-size: 14.5px !important;
  line-height: 1.72 !important;
  color: #55587c !important;
}
@media (max-width: 860px) {
  .site-home .pts-faq-grid { grid-template-columns: 1fr; gap: 28px; }
  .site-home .pts-faq-mosaic { max-width: 420px; margin: 0 auto; aspect-ratio: 4 / 3; }
}


/* Align "Where a sticker goes next" (.showcase) flush with .desktop-uses above and .site-section below */
.site-home .site-section.showcase {
  max-width: none !important;
  width: 100% !important;
  margin-inline: 0 !important;
}


/* Whole-sheet 100% Real-Size view bar, ? visual tooltip & dual-layer rough-cut polygon */
.print-rough-svg polygon {
  fill: none;
  stroke: rgba(132, 138, 166, 0.58);
  stroke-width: 0.35;
  stroke-dasharray: 5 3;
  vector-effect: non-scaling-stroke;
}
.print-pages.is-real-size {
  overflow: auto !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  padding: 16px !important;
}
.print-pages.is-real-size .print-sheet {
  flex: none !important;
  margin: 0 auto !important;
}
.print-view-bar {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.print-view-seg {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: #eceef9;
  border: 1px solid #d9dcf0;
  gap: 2px;
}
.print-view-pill {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 5px 11px;
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  color: #4c4f73;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.print-view-pill.is-real-btn {
  color: #4338ca;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(79, 70, 229, 0.25);
}
.print-view-pill[aria-pressed="true"] {
  background: linear-gradient(180deg, #5d55ec 0%, #4f46e5 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px -4px rgba(79, 70, 229, 0.65);
}
.print-view-pill:disabled { opacity: 0.45; cursor: not-allowed; }
.print-card-ruler-btn {
  appearance: none;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #d5d8ef;
  background: #ffffff;
  color: #474a6b;
  font: inherit;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.print-card-ruler-btn:hover:not(:disabled) { border-color: #4f46e5; color: #4338ca; background: #f5f4ff; }
.print-card-ruler-btn[hidden] { display: none !important; }

.print-realsize-help-wrap { position: relative; display: inline-flex; align-items: center; }
.print-realsize-help-btn {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid #cfd2f2;
  background: #ffffff;
  color: #4f46e5;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
}
.print-realsize-tip {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  z-index: 90;
  width: 268px;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1.5px solid #d7d9f2;
  background: #ffffff;
  box-shadow: 0 20px 44px -12px rgba(24, 20, 60, 0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
  text-align: left;
}
.print-realsize-help-wrap:hover .print-realsize-tip,
.print-realsize-help-wrap:focus-within .print-realsize-tip,
.print-realsize-help-wrap.is-open .print-realsize-tip {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.print-realsize-tip-title { font-size: 12.5px; font-weight: 900; color: #1f1b3a; margin-bottom: 8px; }
.print-realsize-tip-demo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 11px;
  background: #f5f6fd;
  border: 1px solid #e4e6f5;
  margin-bottom: 8px;
}
.rs-tip-mini, .rs-tip-real { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 800; color: #5b5e80; }
.rs-tip-dot-sm { display: block; width: 18px; height: 18px; border-radius: 6px; background: #c7cbef; border: 1.5px solid #ffffff; box-shadow: 0 2px 5px rgba(31,27,58,.15); }
.rs-tip-dot-lg { display: block; width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899); border: 2.5px solid #ffffff; box-shadow: 0 6px 14px -4px rgba(79,70,229,.45); }
.rs-tip-real b { font-size: 10px; color: #4f46e5; }
.rs-tip-arrow { font-size: 15px; font-weight: 900; color: #4f46e5; }

/* Print modal Gap & Default-size +/- steppers */
.print-field-stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  margin-top: 2px;
}
.print-field-stepper input {
  flex: 1 1 0;
  min-width: 44px;
  text-align: center;
  padding-inline: 4px !important;
}
.print-field-stepper button {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 999px;
}
.print-realsize-tip p { margin: 0; font-size: 11.5px; line-height: 1.5; color: #54567a; font-weight: 500; }
