/* ============================================================
   INCADE — Конструктор · Mobile-first
   ──────────────────────────────────────────────────────────
   Layout: header → config-bar → stage → tabs → drawer → CTA
   Брендинг: pixel-retro logo, жовтий #fbbe15, чорний/білий
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  --bg:           #ffffff;
  --bg-alt:       #f7f7f7;
  --bg-soft:      #fafafa;
  --ink:          #0a0a0a;
  --ink-2:        #1a1a1a;
  --ink-soft:     #6a6a6a;
  --ink-mute:     #b0b0b0;
  --border:       #e8e8e8;
  --border-strong:#0a0a0a;
  --accent:       #fbbe15;
  --accent-dark:  #e9a800;
  --accent-soft:  #fff4cc;
  --danger:       #ff3b30;
  --shadow-sm:    0 1px 2px rgba(0,0,0,0.04);
  --shadow:       0 4px 16px rgba(0,0,0,0.08);
  --shadow-up:    0 -4px 16px rgba(0,0,0,0.06);
  --radius:       6px;
  --radius-lg:    12px;
}

html, body {
  height: 100%;
  overflow: hidden;
  /* Жорстко фіксуємо область — Safari bar не може "налазити" */
  position: fixed;
  width: 100%;
  -webkit-overflow-scrolling: auto;
  overscroll-behavior: none;
  -webkit-touch-callout: none;
  touch-action: pan-x pan-y;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  background: var(--bg-alt);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01';
  font-size: 15px;
  line-height: 1.4;
}

/* ====== APP CONTAINER ====== */
.app {
  max-width: 480px;
  margin: 0 auto;
  /* 100svh = small viewport height (Safari URL bar показан).
     Це гарантує що UI вміщується навіть коли bar видно — кнопки знизу
     завжди доступні, нічого не "налазить". */
  height: 100vh;     /* fallback */
  height: 100svh;    /* основна — виключає Safari bar */
  display: flex;
  flex-direction: column;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  /* Запас 16px знизу під home indicator + safari URL bar */
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
}

@media (min-width: 768px) {
  .app {
    max-height: 920px;
    margin-top: max(20px, calc((100vh - 920px) / 2));
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 30px 80px rgba(0,0,0,0.12);
    overflow: hidden;
  }
}

/* ====== HEADER (Casetify-style yellow pill) ====== */
.header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px 8px;
  background: var(--bg);
  z-index: 5;
}
.header-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--ink);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  color: var(--ink);
  transition: all 0.15s;
}
.header-close:hover { background: var(--accent); }
.header-info {
  flex: 1;
  min-width: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 0 4px;
}
.header-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-price {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  margin-top: 1px;
}
.header-add {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 9px 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.header-add:hover { background: #2a2a2a; }
.header-add:active { transform: scale(0.96); }
.header-add .ha-icon { font-size: 14px; }
.header-add .ha-label { letter-spacing: 0.3px; }

/* Yellow pill background обёртка для header — как у Casetify */
.app .header {
  margin: 8px 8px 0;
  padding: 12px 12px;
  background: var(--accent);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.header-close { border-color: var(--ink); }

@media (max-width: 520px) {
  .app .header { margin: 6px 6px 0; padding: 10px; gap: 6px; }
  .header-close { width: 32px; height: 32px; font-size: 13px; }
  .header-title { font-size: 12px; }
  .header-sub { font-size: 10px; }
  .header-price { font-size: 11px; }
  .header-add { padding: 7px 13px; font-size: 13px; }
}

.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Press Start 2P', monospace;
  font-size: 15px;
  letter-spacing: 1px;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}
.logo .brand {
  color: var(--accent);
  text-shadow: 1px 1px 0 var(--accent-dark);
}
.logo .dot {
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 1px 1px 0 var(--accent-dark);
}

.header-action {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1.5px solid var(--ink);
  font-size: 16px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  transition: all 0.15s;
}
.header-action:hover {
  background: var(--accent);
  transform: rotate(180deg);
}

/* "В кошик" кнопка в header — на мобиле это primary CTA сверху, как у Casetify */
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  margin-left: auto;
  margin-right: 8px;
  background: var(--accent);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  box-shadow: 2px 2px 0 var(--ink);
}
.header-cta:hover { background: #ffd84d; transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.header-cta:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }
.header-cta .hc-price {
  font-size: 13px;
  font-weight: 900;
}
.header-cta .hc-label { font-size: 11px; }

/* ====== CONFIG BAR — скрыт на витрине, опции теперь в tabs (Пристрій/Модель/Тип) ====== */
.config-bar { display: none !important; }
.config-bar[hidden], [hidden] { display: none !important; }

/* ───── PICKER (Пристрій / Модель / Тип) — horizontal scroll like Casetify ───── */
.picker-grid {
  display: flex;
  flex-direction: row;
  gap: 14px;
  width: 100%;
  padding: 4px 4px 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.picker-grid::-webkit-scrollbar { display: none; }
.picker-grid > .picker-card {
  flex: 0 0 auto;
  scroll-snap-align: start;
}
.horiz-scroll {
  display: flex;
  flex-direction: row;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 4px 4px 8px;
}
.horiz-scroll::-webkit-scrollbar { display: none; }
.horiz-scroll > .picker-card { flex: 0 0 auto; }

/* ───── DROPDOWN row (Бренд + Модель в panel "Модель") ───── */
.dd-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.dd-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dd-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--ink-soft);
}
.dd-select {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  background: var(--bg);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%230a0a0a' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}
.dd-section-title,
.panel-section-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.panel-section-title {
  /* всередині .panel (drawer) — невеликий відступ зверху для розділення секцій */
  margin-top: 10px;
}
.picker-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  text-align: center;
  width: 80px;
  flex-shrink: 0;
}
.picker-card .pc-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  overflow: hidden;
  position: relative;
  transition: all 0.15s;
  flex-shrink: 0;
}
.picker-card .pc-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.picker-card:hover .pc-circle { transform: scale(1.05); border-color: var(--accent-dark); }
.picker-card.active .pc-circle { border: 2.5px solid var(--ink); background: var(--accent); }
.picker-card .pc-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  white-space: normal;
  word-break: break-word;
  max-width: 86px;
}
.picker-card .pc-sub {
  font-size: 10px;
  color: var(--ink-soft);
  font-weight: 600;
}
/* Color circles (для phone color / case tint) */
.picker-card.color-card .pc-circle {
  font-size: 0;
  border-width: 2px;
}
.picker-card.color-card.active .pc-circle {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-color: #fff;
}
.brand-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 8px;
  padding-bottom: 4px;
  flex-shrink: 0;
}
.brand-tabs::-webkit-scrollbar { display: none; }
.brand-tab {
  flex-shrink: 0;
  padding: 6px 12px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}
.brand-tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.picker-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}
.picker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
}
.picker-row:hover { background: var(--accent-soft); }
.picker-row.active { background: var(--accent); border-color: var(--ink); }
.picker-row .pr-check { color: var(--ink); font-weight: 800; }

.config-item {
  background: var(--bg);
  border: none;
  padding: 9px 12px 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  font-family: inherit;
  text-align: left;
  position: relative;
  transition: background 0.15s;
  min-width: 0;
}
.config-item:hover { background: var(--bg-alt); }
.config-item:active { background: var(--accent-soft); }

.cfg-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink-soft);
}
.cfg-value {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  width: 100%;
  min-width: 0;
}
.cfg-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.cfg-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}
.cfg-chev {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 10px;
  color: var(--ink-mute);
}

/* ====== STAGE ====== */
.stage {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background:
    radial-gradient(ellipse at top, rgba(251,190,21,0.06), transparent 50%),
    var(--bg);
  background-image:
    radial-gradient(circle at 20px 20px, rgba(0,0,0,0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  overflow: hidden;
  min-height: 0;
}

/* ====== FLOATING TOOLBAR ====== */
/* Прицепляется к bbox объекта (через JS computeUXLayout), не shift'ит layout */
.floating-tools {
  position: absolute;
  display: flex;
  gap: 4px;
  background: var(--ink);
  border-radius: 999px;
  padding: 4px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 60;
  transform: translate(-50%, -100%);     /* центрируется по X, ставится НАД bbox */
  white-space: nowrap;
}
.floating-tools.visible {
  opacity: 1;
  pointer-events: auto;
}
.ft-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.ft-btn:hover { background: rgba(255,255,255,0.15); }
.ft-btn:active { background: rgba(255,255,255,0.25); }
.ft-btn.danger:hover { background: var(--danger); }

/* ====== CASE SHELL ======
   ── LAYER STACK (bottom → top) ───────────────────────────
   z-1  .case-photo       Real product photo (case + phone)
   z-2  .case-tint        Optional background colour fill
   z-3  .canvas-container Fabric.js editing canvas (USER DESIGN)
   z-4  .safe-zone        Dashed print-area indicator (visual only)
   ──────────────────────────────────────────────────────── */
.case-shell {
  position: relative;
  width: 275px;
  height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,0.18));
  /* overflow: visible — Fabric controls (рамки/угловые ручки) могут
     выходить за пределы чехла, и они должны быть видны полностью */
  overflow: visible;
}
@media (min-height: 700px) { .case-shell { width: 310px; height: 620px; } }
@media (min-height: 820px) { .case-shell { width: 345px; height: 690px; } }

.case-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;          /* показать фото целиком, без обрезки */
  object-position: center center;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  /* Прихований до моменту завантаження фото — щоб не блимав
     старий cached image або alt-text. Показується через JS після onload. */
  opacity: 0;
  transition: opacity 0.15s ease-in;
}
.case-photo.loaded {
  opacity: 1;
}

/* PNG-маска — НЕ накладывается визуально, а используется как CSS mask
   для canvas-container (через JS). Этот элемент остаётся в DOM только
   для совместимости — но никогда не показывается. */
.case-mask-overlay {
  display: none !important;
}

/*
   PRINT ZONE — обчислені з фото користувача (рожевий прямокутник).
   У координатах canvas (320×660): x:47, y:214, w:229, h:436, rx:28
   У відсотках case-shell:        x:14.7%-86.3%, y:32.5%-98.5%, rx:8.75%
*/

/* Tint fills ONLY the print zone (так як друк йде тільки тут) */
.case-tint {
  position: absolute;
  left: 14.7%;
  top: 32.5%;
  width: 71.6%;
  height: 66%;
  z-index: 2;
  border-radius: 8.75% / 6.4%;
  background: transparent;
  transition: background 0.25s ease;
  pointer-events: none;
}

/* Canvas covers the FULL case-shell — mask limits visible content to print zone */
.canvas-container {
  position: absolute !important;
  inset: 0 !important;
  z-index: 3 !important;
  overflow: visible !important;
}
/* lower-canvas — содержимое дизайна, обрезается CSS-маской */
.canvas-container .lower-canvas { z-index: 1; }
.canvas-container .upper-canvas {
  z-index: 2;
  /* На canvas відключаємо browser-handling всіх жестів — Fabric & наш
     pinch-zoom отримують чисті touch events. */
  touch-action: none;
}
.canvas-container .lower-canvas { touch-action: none; }
#designCanvas { display: block; touch-action: none; }

/* ───── CUSTOM HANDLES OVERLAY ─────
   Свои HTML-ручки для редактирования. Живут в .stage поверх chехла.
   Не подчиняются CSS-маске (она на lower-canvas), не ограничены canvas
   pixel buffer. Видны где угодно: на чехле, за чехлом, в воздухе. */
.ux-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;     /* пропускает клики к canvas (для selection) */
  z-index: 50;
  display: none;
}
.ux-overlay.visible { display: block; }

.ux-border {
  position: absolute;
  border: 2px solid #fbbe15;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.6);
  pointer-events: none;
  box-sizing: border-box;
  border-radius: 2px;
}

.ux-handle {
  position: absolute;
  width: 18px;
  height: 18px;
  background: #fbbe15;
  border: 2px solid #0a0a0a;
  border-radius: 50%;
  pointer-events: auto;     /* handles перехватывают drag */
  box-sizing: border-box;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
  transform: translate(-50%, -50%);   /* центр handle = координата */
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  z-index: 51;
}
.ux-handle:hover { background: #ffd84d; transform: translate(-50%, -50%) scale(1.1); }

.ux-h-tl { cursor: nwse-resize; }
.ux-h-br { cursor: nwse-resize; }
.ux-h-tr { cursor: nesw-resize; }
.ux-h-bl { cursor: nesw-resize; }
.ux-h-ml { cursor: ew-resize; }
.ux-h-mr { cursor: ew-resize; }
.ux-h-mt { cursor: ns-resize; }
.ux-h-mb { cursor: ns-resize; }

.ux-rotate {
  cursor: grab;
  background: #fff;
  border: 2px solid #fbbe15;
  width: 22px;
  height: 22px;
}
.ux-rotate::after {
  content: '⟳';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #0a0a0a;
  font-weight: 900;
}
.ux-rotate:active { cursor: grabbing; }

/* ═════════ STAGE ACTIONS — фиксированная нижняя панель ═════════
   Всегда внизу stage area (под chехлом), горизонтальный pill-bar.
   Не привязана к bbox объекта — actions ВСЕГДА reachable, даже если
   объект растянут на весь экран или ушёл за края chехла. */
.stage-actions {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  background: var(--ink);
  border-radius: 999px;
  padding: 5px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.08);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 0.15s, transform 0.15s;
  z-index: 50;
}
.stage-actions.visible {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
.sa-btn {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.sa-btn:hover { background: rgba(255,255,255,0.15); }
.sa-btn:active { background: rgba(255,255,255,0.28); transform: scale(0.94); }
.sa-btn.sa-danger:hover { background: var(--danger); }
@media (max-width: 520px) {
  .stage-actions { bottom: 8px; gap: 4px; padding: 4px; }
  .sa-btn { width: 36px; height: 36px; font-size: 15px; }
}

/* ════════════════════════════════════════════════════════════════
   MOBILE TUNING — компактнее всё, чтобы chехол получал максимум места
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 520px) {
  /* HEADER — слим */
  .header { padding: 9px 14px; }
  .logo { font-size: 13px; }
  .header-action { width: 32px; height: 32px; font-size: 14px; }

  /* CONFIG-BAR — компактнее, меньше padding */
  .config-item { padding: 7px 10px 6px; }
  .cfg-label { font-size: 8px; letter-spacing: 0.6px; }
  .cfg-value { font-size: 11px; gap: 4px; }
  .cfg-icon { width: 14px; height: 14px; font-size: 10px; }
  .cfg-chev { top: 6px; right: 6px; font-size: 8px; }

  /* STAGE — даём максимум места chехлу */
  .stage { padding: 6px 8px; }

  /* CASE-SHELL — больше на мобиле, заполняет stage */
  .case-shell {
    width: min(82vw, 320px);
    height: auto;
    aspect-ratio: 1 / 2;
  }
  /* Override the height-based media queries on small screens */
  @media (min-height: 700px) {
    .case-shell { width: min(82vw, 335px); }
  }

  /* FLOATING TOOLS — компактные (стикятся к bbox) */
  .floating-tools { gap: 2px; padding: 3px; }
  .ft-btn { width: 30px; height: 30px; font-size: 13px; }

  /* FILTER ROW — single line scroll */
  .filter-row { gap: 3px; padding: 3px 6px; max-width: calc(100% - 16px); }
  .filter-chip { padding: 4px 9px; font-size: 10px; }

  /* CUSTOM HANDLES — меньше на тач-экране */
  .ux-handle { width: 16px; height: 16px; border-width: 1.5px; }
  .ux-rotate { width: 20px; height: 20px; }
  .ux-rotate::after { font-size: 12px; }
  .ux-border { border-width: 1.5px; }

  /* TABS — горизонтальный scroll, компактные. Свайпом вправо доступны все. */
  .tabs {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    grid-template-columns: unset !important;
    grid-template-rows: unset !important;
    -webkit-overflow-scrolling: touch;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab {
    flex: 0 0 auto !important;
    width: 22% !important;
    min-width: 72px;
    scroll-snap-align: start;
    padding: 6px 4px 5px !important;
    gap: 1px;
  }
  .tab-icon { font-size: 14px; }
  .tab-label { font-size: 8px; }
  .tab.active::after { height: 2px; width: 16px; }

  /* DRAWER — заметно меньше, chехлу больше места */
  .drawer { min-height: 130px !important; max-height: 175px !important; }
  .panel { padding: 8px 14px 10px; gap: 6px; }

  /* STAGE-HINT */
  .stage-hint { font-size: 11px; padding: 5px 12px; bottom: 8px; }

  /* CASE-SHELL — больше на мобиле */
  .case-shell {
    width: min(92vw, 410px);
  }

  /* На мобиле основной CTA — в header сверху */
  /* (.cta-bar скрыт глобально нижче, не дублюємо тут) */

  /* Меньше padding stage — chехлу больше места */
  .stage { padding: 4px 6px; }

  /* Drawer чуть короче для большего chехла */
  .drawer { min-height: 120px !important; max-height: 165px !important; }
}

/* CTA уніфіковано: завжди в шапці зверху, нижня плашка прихована скрізь.
   Юзер обрав цей варіант 2026-05-10 — менше дублювання, більше місця для
   конструктора на десктопі. */
.cta-bar { display: none !important; }

/* Очень маленькие экраны (≤380px iPhone SE etc) */
@media (max-width: 380px) {
  .header { padding: 8px 12px; }
  .logo { font-size: 12px; }
  .case-shell { width: min(88vw, 330px); }
  .config-item { padding: 6px 8px 5px; }
  .cfg-label { font-size: 7px; }
  .cfg-value { font-size: 10px; }
  .filter-chip { padding: 4px 8px; font-size: 9px; }
  .tab { min-width: 64px; }
  .tab-icon { font-size: 13px; }
  .tab-label { font-size: 7px; }
  .drawer { min-height: 120px; max-height: 165px; }
}

/* Низкие экраны (горизонталь, маленькие телефоны по высоте) */
@media (max-height: 700px) {
  .drawer { min-height: 130px; max-height: 180px; }
  .stage { padding: 4px 8px; }
  .case-shell { aspect-ratio: 1 / 1.95; }
}

/* Safe-zone SVG — больше не используется, скрыто всегда. */
.safe-zone {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
  transition: opacity 0.3s;
  display: none !important; /* всегда скрыто */
}
.safe-zone-label {
  display: none !important;  /* всегда скрыта */
}
.safe-zone.faded { opacity: 0.25; }

.stage-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--ink-soft);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  font-weight: 500;
  pointer-events: none;
  transition: opacity 0.2s;
}
.stage-hint.hidden { opacity: 0; }
.stage-hint strong { color: var(--ink); font-weight: 700; }

/* ====== TABS ====== */
.tabs {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  background: var(--bg);
  border-top: 1px solid var(--border);
  z-index: 4;
}
.tab {
  background: transparent;
  border: none;
  padding: 10px 2px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: color 0.15s;
  position: relative;
  /* opacity тут не потрібно — приховані вкладки відсіюються через
     inline <style> у <head> (incade-instant-tabs) ще до рендеру DOM. */
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); }
.tab.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 3px;
  background: var(--accent);
  border-radius: 0 0 3px 3px;
}
.tab-icon { font-size: 17px; line-height: 1; }
.tab-label { font-size: 9px; }
.tab.active::after {
  width: 26px;
  height: 3px;
}

/* ====== DRAWER ====== */
.drawer {
  flex-shrink: 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  min-height: 200px;
  max-height: 280px;
  overflow: hidden;
  position: relative;
  /* Тільки вертикальний pan; pinch-zoom і двопальцеві жести заблоковані. */
  touch-action: pan-y;
}
.panel {
  position: absolute;
  inset: 0;
  padding: 14px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s;
  overflow-y: auto;
  /* Без цього на iOS можна було двома пальцями зумити вміст панелі
     (картки моделей/типів/кольорів), і зум застрягав. */
  touch-action: pan-y;
}
.panel.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.panel::-webkit-scrollbar { width: 4px; }
.panel::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.panel-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.panel-hint {
  font-size: 11px;
  color: var(--ink-mute);
  text-align: center;
  margin-top: -2px;
}

/* ====== PHOTOS PANEL: Upload + Stickers side by side ====== */
.photos-row {
  display: flex;
  height: 100%;
  width: 100%;
}
.upload-tile {
  width: 100%;
  flex: 1;
  background: var(--bg-soft);
  border: 2px dashed var(--ink);
  border-radius: var(--radius-lg);
  padding: 18px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--ink);
  transition: all 0.15s;
  text-align: center;
  min-height: 100%;
}
.upload-tile:hover {
  background: var(--accent-soft);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
}
.upload-icon {
  font-size: 38px;
  line-height: 1;
  color: var(--accent-dark);
  font-weight: 100;
}

/* ====== TEMPLATES PANEL ====== */
.tpl-categories {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 -18px 8px;
  padding: 0 18px 4px;
  flex-shrink: 0;
}
.tpl-categories::-webkit-scrollbar { display: none; }
.tpl-cat {
  flex-shrink: 0;
  padding: 6px 12px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.tpl-cat:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.tpl-cat.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.tpl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 8px;
  overflow-y: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.tpl-grid::-webkit-scrollbar { width: 4px; }
.tpl-grid::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.tpl-card {
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.15s;
}
.tpl-card:hover { transform: translateY(-2px); }
.tpl-card:active { transform: scale(0.95); }

.tpl-preview {
  width: 100%;
  aspect-ratio: 1 / 1.95;       /* пропорція phone case */
  border-radius: 14px;
  border: 1.5px solid var(--ink);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  background: #f5f5f5;
  box-shadow: 2px 2px 0 var(--ink);
  transition: box-shadow 0.15s, transform 0.15s;
}
.tpl-card:hover .tpl-preview {
  box-shadow: 3px 3px 0 var(--accent);
}

/* Дрібний індикатор чохла з вирізом під камеру */
.tpl-preview::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 14px;
  height: 18px;
  border-radius: 4px;
  background: rgba(0,0,0,0.35);
  z-index: 5;
}

.tpl-name {
  font-size: 10px;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.2;
  padding: 0 2px;
}

.tpl-card.active .tpl-preview {
  box-shadow: 3px 3px 0 var(--accent);
  border-color: var(--accent-dark);
}

/* Превʼю-елементи всередині карточки */
.tpl-el {
  position: absolute;
  pointer-events: none;
  font-family: inherit;
}

/* ====== STICKERS GRID ====== */
.stickers-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.stickers-block .panel-hint {
  font-size: 10px;
  color: var(--ink-soft);
  text-align: left;
  margin: 0 0 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}
.stickers-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  overflow-y: auto;
  max-height: 100%;
}
.sticker-btn {
  aspect-ratio: 1;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.12s;
  font-family: inherit;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sticker-btn:hover {
  border-color: var(--ink);
  background: var(--bg-alt);
  transform: scale(1.1);
}
.sticker-btn:active { transform: scale(0.95); }

/* ====== FILTER ROW (visible only when image is selected) ====== */
/* Фиксированно внизу stage, выше stage-actions. Не привязана к bbox. */
.filter-row {
  position: absolute;
  bottom: 60px;             /* над .stage-actions (38+12+10 запас) */
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  display: flex;
  gap: 4px;
  background: var(--ink);
  border-radius: 999px;
  padding: 4px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  max-width: calc(100% - 16px);
  overflow-x: auto;
  scrollbar-width: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s, transform 0.15s;
  z-index: 49;
}
.filter-row::-webkit-scrollbar { display: none; }
.filter-row.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.filter-chip {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.65);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  transition: all 0.15s;
}
.filter-chip:hover { color: #fff; background: rgba(255,255,255,0.1); }
.filter-chip.active {
  color: var(--ink);
  background: var(--accent);
}

/* ====== INPUTS ====== */
.text-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  color: var(--ink);
  /* 16px — мінімум на iOS, інакше Safari при focus автоматично зумить
     сторінку і НЕ повертає назад на blur. Виглядає так, ніби увесь
     конструктор "поплив" і не повертається. */
  font-size: 16px;
  font-family: inherit;
  font-weight: 500;
}
.text-input::placeholder { color: var(--ink-mute); font-weight: 400; }
.text-input:focus { outline: 3px solid var(--accent); outline-offset: 1px; }

/* iOS Safari зумить на focus якщо input/select має font-size < 16px.
   Цей блок гарантує що НА МОБІЛЬНОМУ всі поля введення мають 16px
   незалежно від того як їх стилізував окремий компонент. На десктопі
   правило не діє — там зум через focus неможливий. */
@media (pointer: coarse) {
  .text-input,
  .dd-select,
  input[type="text"],
  input[type="search"],
  input[type="email"],
  input[type="number"],
  input[type="tel"],
  input[type="url"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* ====== BUTTONS ====== */
.btn {
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1.5px solid var(--ink);
  background: var(--bg);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn.primary {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.btn.primary:hover {
  background: var(--accent-dark);
  color: var(--ink);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}
.btn.primary:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

/* ====== FONT GRID ====== */
.font-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}
.font-btn {
  aspect-ratio: 1;
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--ink);
  border-radius: var(--radius);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.font-btn:hover { border-color: var(--ink); background: var(--bg-alt); }
.font-btn.active {
  background: var(--accent);
  border-color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}

/* ====== COLOR / BG GRIDS ====== */
.color-grid, .bg-grid, .bg-color-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
}
.color-btn, .bg-btn, .bg-color-btn {
  aspect-ratio: 1;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s;
  padding: 0;
}
.color-btn:hover, .bg-btn:hover, .bg-color-btn:hover { transform: translate(-1px, -1px); }
.color-btn.active, .bg-btn.active, .bg-color-btn.active {
  border-color: var(--ink);
  box-shadow: 2px 2px 0 var(--accent);
  transform: translate(-1px, -1px);
}

/* ──── Background Style picker (8 visualних візерунків) ──── */
.bg-style-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.bg-style-btn {
  aspect-ratio: 1;
  border: 2px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.15s;
  padding: 0;
  background: #fff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}
.bg-style-btn:hover { transform: translate(-1px, -1px); }
.bg-style-btn.active {
  border-color: var(--ink);
  border-width: 3px;
  box-shadow: 2px 2px 0 var(--accent);
}
.bg-style-btn[data-bg-style="none"]::before {
  content: "⊘";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #999;
}

/* ====== CTA BAR ====== */
.cta-bar {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px max(12px, env(safe-area-inset-bottom));
  background: var(--ink);
  color: #fff;
  gap: 12px;
}

.price-block {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.price-label {
  font-size: 9px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
}
.price-value {
  font-family: 'Press Start 2P', monospace;
  font-size: 18px;
  color: #fff;
  letter-spacing: 1px;
}

.cta {
  flex: 1;
  background: var(--accent);
  color: var(--ink);
  border: none;
  padding: 14px 20px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.15s;
  max-width: 220px;
}
.cta:hover { background: #fff; color: var(--ink); }
.cta:active { transform: scale(0.98); }

/* ====== BOTTOM SHEET (для config-вибору) ====== */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.sheet-backdrop[hidden] { display: none; }
.sheet-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

.sheet {
  width: 100%;
  max-width: 480px;
  background: var(--bg);
  border-radius: 20px 20px 0 0;
  padding: 0 0 max(20px, env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}
.sheet-backdrop.visible .sheet { transform: translateY(0); }

.sheet-handle {
  width: 36px;
  height: 4px;
  background: var(--ink-mute);
  border-radius: 2px;
  margin: 8px auto 4px;
  flex-shrink: 0;
}

.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.sheet-head h3 {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.sheet-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: none;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  color: var(--ink);
}
.sheet-close:hover { background: var(--ink); color: #fff; }

.sheet-body {
  padding: 12px 16px;
  overflow-y: auto;
  flex: 1;
  /* Блокуємо pinch-zoom усередині sheet (Бренд/Модель/Тип picker),
     лишаємо тільки вертикальний скрол. */
  touch-action: pan-y;
}

/* === Sheet content tiles === */
.sheet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sheet-option {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 12px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: all 0.15s;
  position: relative;
  align-items: flex-start;
}
.sheet-option:hover {
  border-color: var(--ink);
  background: var(--bg-alt);
}
.sheet-option.active {
  border-color: var(--ink);
  background: var(--accent-soft);
  box-shadow: 3px 3px 0 var(--ink);
}
.sheet-option.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.sheet-option-preview {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border);
}
.sheet-option-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.sheet-option-desc {
  font-size: 11px;
  color: var(--ink-soft);
}
.sheet-option-price {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  color: var(--ink);
  margin-top: 2px;
}
.sheet-option-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sheet-option-badge.accent { background: var(--accent); color: var(--ink); }

.sheet-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sheet-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: all 0.15s;
  width: 100%;
}
.sheet-row:hover {
  border-color: var(--ink);
  background: var(--bg-alt);
}
.sheet-row.active {
  border-color: var(--ink);
  background: var(--accent-soft);
}
.sheet-row-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.sheet-row-text {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
}
.sheet-row-meta {
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 500;
}
.sheet-row-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  opacity: 0;
}
.sheet-row.active .sheet-row-check { opacity: 1; }

.sheet-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink-soft);
  margin: 14px 0 8px;
}
.sheet-section-title:first-child { margin-top: 0; }

/* ====== MODAL (preview after checkout) ====== */
.preview-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; padding: 20px;
  backdrop-filter: blur(8px);
}
.preview-modal-content {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--accent);
}
.preview-modal h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.preview-modal .sub {
  color: var(--ink-soft);
  font-size: 13px;
  margin-bottom: 18px;
}
.preview-modal img {
  max-width: 180px;
  border-radius: 22px;
  border: 3px solid var(--ink);
  margin-bottom: 18px;
  box-shadow: 4px 4px 0 var(--accent);
}
.preview-modal .info {
  font-size: 11px;
  text-align: left;
  color: var(--ink-soft);
  background: var(--bg-alt);
  padding: 12px;
  border-radius: var(--radius);
  margin-top: 14px;
  line-height: 1.6;
}
.preview-modal .info strong { color: var(--ink); }
