@font-face {
  font-family: "Inter";
  src: url("assets/Inter-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("assets/Satoshi-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Huurhun Currency";
  src: url("assets/NotoSans-Tugrik.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+20AE;
}

:root {
  color-scheme: light;
  /* Same final storefront tokens as huurhun.mn/src/visual-tokens.css. */
  --paper: #fff;
  --card: #fff;
  --ink: #253633;
  --muted: #626d69;
  --line: #e4e9e6;
  --surface-soft: #f7f7f4;
  --photo-bg: #f3f3f0;
  --accent: #81d8d0;
  --accent-hover: #6bc8c0;
  --accent-ink: #153f3b;
  --link: #17615e;
  --accent-soft: #e6f5f3;
  --danger: #a24336;
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 280px; scroll-behavior: smooth; }
body.studio-app {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", "Huurhun Currency", Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; color: inherit; }
button, a, summary, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, a { touch-action: manipulation; }
button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  line-height: inherit;
}
button:disabled { cursor: default; opacity: .42; }
button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 4px;
}
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 1px;
  border-color: var(--link);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { display: block; flex-shrink: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: "Satoshi", "Inter", "Huurhun Currency", Arial, sans-serif; }
strong, b { font-weight: 650; }
button, a, summary { -webkit-user-select: none; user-select: none; }
[hidden] { display: none !important; }

.app-header {
  height: 82px;
  padding: 0 clamp(24px, 4.4vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 30;
}

/* Native checkout uses the same compact card and type scale as the editor. */
.store-link { font-size: 13px; font-weight: 600; padding: 10px 0; white-space: nowrap; }
.pending-payment { display: flex; align-items: center; justify-content: center; min-height: 42px; color: var(--link); background: var(--accent-soft); padding: 10px 20px; font-size: 12px; font-weight: 600; text-align: center; }
.checkout-form { display: grid; gap: 18px; }
.checkout-summary { color: var(--muted); font-size: 13px; margin-top: -6px; }
.checkout-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkout-form label:not(.check-line) { display: grid; gap: 6px; min-width: 0; font-size: 12px; font-weight: 600; }
.checkout-form input, .checkout-form select, .checkout-form textarea { font-size: 16px; }
.checkout-delivery { display: grid; gap: 14px; }
.checkout-prices { border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 9px; }
.checkout-prices > div { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 13px; }
.checkout-prices .checkout-grand-total { color: var(--ink); padding-top: 8px; font-size: 16px; }
.checkout-grand-total strong { font-size: 25px; letter-spacing: -.5px; }
.checkout-form .production-review { font-size: 11px; margin-top: -10px; }
.checkout-form > .field-error:empty { display: none; }
.checkout-form > .primary-action { width: 100%; }
.checkout-back { justify-self: center; }
@media(max-width:520px) {
 .checkout-contact { grid-template-columns: 1fr; gap: 14px; }
 .store-link { display: none; }
 .pending-payment { font-size: 11px; line-height: 1.4; }
 .checkout-form { gap: 16px; }
 .checkout-form .check-line { font-size: 12px; }
}
.brand {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -1.4px;
}
.brand-logo-image { width: 88px; height: 60px; object-fit: contain; flex: none; }
.brand-section {
  border-left: 1px solid var(--line);
  padding-left: 15px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 450;
  letter-spacing: 0;
}
.header-actions { display: flex; align-items: center; gap: 26px; }
.offline-badge { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; }
.offline-badge::before { content: ""; width: 5px; height: 5px; background: var(--muted); border-radius: 50%; }
.admin-link { color: var(--muted); font-size: 12px; }
.admin-link:hover { color: var(--ink); }
.cart-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 0 0 24px;
  border-left: 1px solid var(--line);
}
.cart-trigger > svg { width: 22px; height: 22px; }
#basket-count {
  width: 25px;
  height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 700;
}
.studio-main { max-width: 1480px; margin: 0 auto; padding: 32px clamp(24px, 4.4vw, 80px) 70px; }

/* The first choice is the product itself. */
.catalog-page { max-width: 1250px; margin: 22px auto 0; }
.catalog-heading { margin-bottom: 35px; }
.catalog-heading h1 { font-size: clamp(30px, 3.2vw, 49px); font-weight: 550; line-height: 1.17; letter-spacing: -1.8px; }
.catalog-heading p { margin-top: 13px; color: var(--muted); font-size: 14px; }
.catalog-feature {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  width: 100%;
  min-height: 430px;
  text-align: left;
  background: var(--photo-bg);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .2s ease;
}
.catalog-feature:hover { box-shadow: 0 8px 35px #25363310; }
.feature-media {
  position: relative;
  min-width: 0;
  min-height: 430px;
  overflow: hidden;
  background: var(--photo-bg);
}
.feature-media img { position: absolute; width: 75%; height: 95%; object-fit: contain; mix-blend-mode: multiply; }
.feature-media .front-product { left: -1%; bottom: -3%; z-index: 2; transform: rotate(-9deg); }
.feature-media .light-product { right: -4%; top: -6%; width: 68%; height: 89%; transform: rotate(8deg); opacity: .94; }
.feature-copy { align-self: center; padding: 42px 54px 42px 20px; position: relative; z-index: 3; }
.product-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1.3px;
  font-weight: 650;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.product-tag::before { content: ""; width: 6px; height: 6px; background: var(--muted); border-radius: 50%; }
.feature-copy h2 { font-size: clamp(28px, 3vw, 43px); line-height: 1.18; letter-spacing: -1.5px; font-weight: 550; }
.feature-copy > p { color: var(--muted); max-width: 330px; margin: 17px 0 26px; font-size: 13px; line-height: 1.7; }
.feature-price { margin-bottom: 26px; font-size: 12px; color: var(--muted); }
.feature-price strong { color: var(--ink); font-size: 20px; font-weight: 600; margin-right: 7px; }
.primary-link {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  padding: 13px 19px;
  background: var(--accent);
  border-radius: 28px;
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 600;
}
.primary-link:hover { background: var(--accent-hover); }
.primary-link::after { content: "↗"; font-family: Arial, sans-serif; font-size: 21px; line-height: 1; font-weight: 400; }
.coming-section { margin-top: 41px; }
.coming-heading { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; gap: 16px; }
.coming-heading h2 { font-size: 17px; font-weight: 550; letter-spacing: -.35px; }
.coming-heading > span { color: var(--muted); font-size: 11px; }
.coming-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.coming-card { min-width: 0; border-radius: 18px; background: var(--surface-soft); overflow: hidden; }
.coming-card img { width: 100%; aspect-ratio: 1.4; object-fit: contain; mix-blend-mode: multiply; }
.coming-card h3 { padding: 0 18px 18px; font-size: 13px; font-weight: 500; }

/* Editor: a quiet canvas and one active tool at a time. */
.editor-top { display: flex; align-items: center; gap: 16px; margin-bottom: 23px; }
.back-button { width: 42px; height: 42px; border: 1px solid var(--line); background: var(--card); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.back-button svg { width: 18px; height: 18px; }
.back-button:hover { background: var(--line); }
.product-heading { flex: 1; min-width: 0; }
.product-heading h1 { font-size: 24px; letter-spacing: -.65px; line-height: 1.3; font-weight: 600; }
.product-heading p { margin-top: 2px; color: var(--muted); font-size: 11px; }
.editor-menu { position: relative; }
.editor-menu > summary { display: flex; width: 43px; height: 43px; align-items: center; justify-content: center; cursor: pointer; border-radius: 50%; list-style: none; }
.editor-menu > summary::-webkit-details-marker { display: none; }
.editor-menu > summary svg { width: 22px; height: 22px; }
.editor-menu > summary:hover, .editor-menu[open] > summary { background: var(--line); }
.menu-popover { position: absolute; top: calc(100% + 9px); right: 0; min-width: 200px; z-index: 50; border: 1px solid var(--line); border-radius: 14px; padding: 6px; background: white; box-shadow: 0 12px 35px #25363318; }
.menu-popover button { width: 100%; text-align: left; padding: 11px 13px; font-size: 12px; border-radius: 8px; }
.menu-popover button:hover { background: var(--surface-soft); }
.editor-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(345px, .83fr); gap: 38px; align-items: start; }
.preview-column { min-width: 0; position: sticky; top: 22px; }
.preview-shell { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.preview-toolbar { height: 61px; padding: 12px 19px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--surface-soft); }
.side-switch { display: flex; align-items: center; gap: 2px; background: var(--surface-soft); border-radius: 9px; padding: 3px; }
.side-switch button { min-width: 65px; min-height: 30px; padding: 4px 13px; border-radius: 6px; color: var(--muted); font-size: 10px; }
.side-switch button[aria-pressed="true"] { background: white; color: var(--ink); box-shadow: 0 1px 4px #25363310; font-weight: 600; }
.canvas-actions { display: flex; gap: 4px; align-items: center; }
.icon-button { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 42px; height: 42px; min-height: 42px; padding: 0; border-radius: 10px; color: var(--muted); }
.icon-button svg { width: 19px; height: 19px; }
.icon-button:hover { background: var(--surface-soft); color: var(--ink); }
.icon-button[aria-pressed="true"] { background: var(--accent-soft); color: var(--link); }
.canvas-actions .icon-button { width: 36px; height: 36px; min-height: 36px; border-radius: 8px; }
.canvas-actions .icon-button svg { width: 17px; height: 17px; }
.stage {
  --area-x: 35%;
  --area-y: 28.5%;
  --area-size: 30%;
  width: 100%;
  max-width: min(100%, 600px, calc(100dvh - 275px));
  aspect-ratio: 1;
  position: relative;
  margin: 0 auto;
  background: #fff;
  isolation: isolate;
}
.stage > .product-photo { width: 100%; height: 100%; object-fit: contain; }
.print-area {
  position: absolute;
  left: var(--area-x);
  top: var(--area-y);
  width: var(--area-size);
  height: var(--area-size);
  border: 1px dashed var(--link);
  background: #81d8d00a;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  z-index: 3;
}
.print-area::before { content: "50 × 50 мм"; position: absolute; top: -23px; left: 0; width: 100%; text-align: center; font-size: 9px; letter-spacing: .3px; color: var(--muted); white-space: nowrap; pointer-events: none; }
.print-area > svg { width: 100%; height: 100%; overflow: visible; display: block; }
.print-area .selection { fill: none; stroke: var(--link); stroke-width: .4; stroke-dasharray: 1.2 1; pointer-events: none; }
.print-area .handle { fill: #fff; stroke: var(--ink); stroke-width: .65; cursor: nwse-resize; }
.canvas-empty { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 7px; align-items: center; justify-content: center; pointer-events: none; color: var(--muted); text-align: center; font-size: 11px; line-height: 1.6; padding: 12px; }
.canvas-empty svg { width: 24px; height: 24px; opacity: .65; }
.canvas-empty span { max-width: 110px; }
.restricted-zone { position: absolute; left: 30%; width: 40%; z-index: 2; color: var(--line); font-size: 8px; line-height: 1.4; text-align: center; pointer-events: none; display: flex; justify-content: center; align-items: center; gap: 4px; }
.restricted-zone svg { width: 10px; height: 10px; }
.restricted-zone.lid { top: 15.5%; }
.restricted-zone.grip { top: 72.5%; }
.stage.no-guides .print-area { border-color: transparent; background: none; }
.stage.no-guides .print-area::before, .stage.no-guides .restricted-zone, .stage.no-guides .selection, .stage.no-guides .handle, .stage.no-guides .canvas-empty { display: none; }
.stage.zoomed > .product-photo { visibility: hidden; }
.stage.zoomed { background: var(--card); }
.stage.zoomed .print-area { left: 8% !important; top: 8% !important; width: 84% !important; height: 84% !important; border-color: var(--muted); background: var(--surface-soft); }
.stage.zoomed .restricted-zone { display: none; }
.stage.zoomed .print-area::before { top: -21px; }
.stage.zoomed .canvas-empty { color: var(--muted); font-size: 14px; }
.stage.zoomed svg [fill="url(#silver)"] { fill: var(--ink); }
.canvas-footer { border-top: 1px solid var(--surface-soft); padding: 13px 19px; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 50px; }
.canvas-caption { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; }
.canvas-caption svg { width: 13px; height: 13px; }
.area-help { position: relative; font-size: 10px; color: var(--muted); }
.area-help > summary { display: flex; gap: 5px; align-items: center; list-style: none; cursor: pointer; min-height: 24px; }
.area-help > summary::-webkit-details-marker { display: none; }
.area-help > summary svg { width: 14px; height: 14px; }
.area-help[open] { color: var(--ink); }
.area-help > p, .area-help > .area-help-content { position: absolute; z-index: 20; width: 225px; right: 0; bottom: 33px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 25px #25363314; padding: 13px 15px; font-size: 11px; line-height: 1.7; }
.mobile-helper { margin: 11px 0 0; color: var(--muted); font-size: 10px; text-align: center; }
.editor-panel { min-width: 0; padding: 1px 0; }
.product-options { margin-bottom: 23px; }
.product-options > h2, .product-options > h3, .product-options > label { font-size: 11px; font-weight: 550; display: block; margin-bottom: 10px; }
.color-choices { display: flex; gap: 9px; }
.color-choice { display: flex; align-items: center; gap: 8px; position: relative; min-width: 108px; min-height: 56px; padding: 7px 14px 7px 9px; background: var(--card); border: 1px solid var(--line); border-radius: 11px; font-size: 11px; color: var(--muted); }
.color-choice img { width: 25px; height: 39px; object-fit: contain; }
.color-choice > svg { width: 14px; height: 14px; margin-left: 8px; opacity: 0; color: var(--muted); }
.color-choice[aria-pressed="true"] { border-color: var(--link); color: var(--ink); background: var(--accent-soft); }
.color-choice[aria-pressed="true"] > svg { opacity: 1; }
.tool-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 23px; }
.tool-nav button { position: relative; display: flex; justify-content: center; align-items: center; gap: 8px; padding: 14px 4px 16px; min-height: 52px; font-size: 11px; color: var(--muted); }
.tool-nav button > svg { width: 17px; height: 17px; }
.tool-nav button::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 2px; border-radius: 2px; background: transparent; }
.tool-nav button[aria-pressed="true"] { color: var(--link); font-weight: 650; }
.tool-nav button[aria-pressed="true"]::after { background: var(--link); }
.tool-nav button:hover { color: var(--ink); }
.tool-content { min-width: 0; }
.text-entry { display: block; }
.text-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.text-heading label, .text-entry > label { font-size: 11px; font-weight: 550; }
.text-entry textarea { min-height: 83px; max-height: 180px; resize: vertical; font-size: 17px; line-height: 1.5; padding: 13px 15px; background: #fff; border-radius: 12px; border: 1px solid var(--line); width: 100%; display: block; }
.text-entry textarea::placeholder { color: var(--muted); }
.text-link { color: var(--link); font-size: 10px; font-weight: 550; min-height: 30px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.text-link svg { width: 13px; height: 13px; }
.text-link:hover { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.font-section { margin-top: 19px; }
.font-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.font-heading h3 { font-size: 11px; font-weight: 550; }
.upload-drop { padding: 28px 20px; text-align: center; border: 1px dashed var(--line); border-radius: 16px; background: var(--surface-soft); }
.upload-drop > svg { width: 30px; height: 30px; color: var(--muted); margin: 0 auto 13px; }
.upload-drop h3 { font-size: 15px; font-weight: 550; margin-bottom: 6px; }
.upload-drop p { font-size: 11px; line-height: 1.7; color: var(--muted); margin: 8px auto 0; max-width: 230px; }
.upload-drop button { min-height: 43px; padding: 10px 23px; margin-top: 14px; background: #fff; border: 1px solid var(--line); border-radius: 9px; font-size: 11px; font-weight: 600; }
.upload-drop button:hover { border-color: var(--muted); }
.upload-drop input[type="file"] { display: none; }
.symbol-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
.symbol-card { min-width: 0; aspect-ratio: 1; background: var(--card); border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: center; justify-content: center; padding: 15px; }
.symbol-card svg { width: 100%; height: 100%; max-height: 36px; }
.symbol-card:hover { background: var(--surface-soft); border-color: var(--line); }
.empty-tool { padding: 17px 0; color: var(--muted); text-align: center; font-size: 12px; }
.empty-tool svg { width: 28px; height: 28px; margin: 0 auto 12px; color: var(--muted); }
.selected-object { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 13px; border: 1px solid var(--line); background: #fff; border-radius: 12px; }
.selected-object > svg, .selected-object > img { width: 48px; height: 48px; object-fit: contain; padding: 4px; background: var(--surface-soft); border-radius: 7px; }
.selected-object > div { flex: 1; min-width: 0; }
.selected-object p { color: var(--muted); font-size: 10px; margin-top: 3px; }
.context-panel { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.context-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.selected-label { font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.object-actions { display: flex; gap: 3px; }
.object-actions .icon-button { width: 34px; height: 34px; min-height: 34px; border-radius: 8px; }
.object-actions .icon-button svg { width: 16px; height: 16px; }
.object-actions [data-action="remove"] { color: #9f8e7b; }
.object-actions [data-action="remove"]:hover { color: #a24336; background: #faeee8; }
.size-control { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.size-control > label, .size-control > span { color: var(--muted); font-size: 10px; }
.size-control output { min-width: 49px; text-align: right; font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
input[type="range"] { appearance: none; -webkit-appearance: none; width: 100%; height: 28px; background: transparent; padding: 0; border: 0; min-width: 0; outline-offset: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 3px; background: var(--line); border-radius: 10px; }
input[type="range"]::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 15px; height: 15px; border-radius: 50%; background: var(--link); border: 3px solid var(--card); box-shadow: 0 0 0 1px var(--link); margin-top: -6px; }
input[type="range"]::-moz-range-track { height: 3px; background: var(--line); border-radius: 10px; }
input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--link); border: 2px solid var(--card); }
.precision-controls { margin-top: 8px; }
.precision-controls > summary { color: var(--muted); font-size: 9px; cursor: pointer; display: flex; align-items: center; gap: 5px; list-style: none; min-height: 25px; }
.precision-controls > summary::-webkit-details-marker { display: none; }
.precision-controls > summary::after { content: "+"; font-size: 12px; }
.precision-controls[open] > summary::after { content: "−"; }
.precision-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-top: 7px; }
.precision-grid label { display: block; font-size: 9px; color: var(--muted); min-width: 0; }
.precision-grid input, .precision-grid select { margin-top: 4px; font-size: 11px; min-height: 34px; padding: 5px 8px; }
.layer-picker { display: flex; gap: 6px; overflow: auto; scrollbar-width: thin; padding: 11px 0 3px; max-width: 100%; }
.layer-picker button { max-width: 145px; flex: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; min-height: 30px; border: 1px solid var(--line); border-radius: 7px; padding: 5px 10px; color: var(--muted); }
.layer-picker button[aria-pressed="true"] { color: var(--link); border-color: var(--link); background: var(--accent-soft); }
.editor-status { font-size: 11px; color: var(--danger); line-height: 1.6; margin-top: 12px; }
.editor-status:empty { display: none; }
.saved-state { color: var(--muted); font-size: 9px; }
.order-dock { margin-top: 24px; padding-top: 21px; border-top: 1px solid var(--line); }
.dock-inner { display: grid; grid-template-columns: auto 1fr; gap: 17px 20px; align-items: center; }
.quantity-stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--card); height: 43px; }
.quantity-stepper button { display: flex; align-items: center; justify-content: center; width: 34px; height: 41px; min-width: 34px; color: var(--muted); font-size: 18px; }
.quantity-stepper button:hover { background: var(--line); color: var(--ink); }
.quantity-stepper input { width: 41px; min-width: 0; height: 39px; padding: 0; border: 0; background: transparent; text-align: center; font-size: 12px; font-weight: 600; -moz-appearance: textfield; }
.quantity-stepper input::-webkit-inner-spin-button, .quantity-stepper input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.dock-price { text-align: right; }
.dock-price span { display: block; font-size: 9px; color: var(--muted); margin-bottom: 2px; }
.dock-price strong { display: block; font-size: 23px; line-height: 1.3; font-weight: 600; letter-spacing: -.6px; font-variant-numeric: tabular-nums; }
.primary-action { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 47px; padding: 12px 24px; background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); border-radius: 28px; font-size: 12px; font-weight: 550; transition: background .15s ease; }
.primary-action svg { width: 17px; height: 17px; }
.primary-action:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.dock-inner > .primary-action { grid-column: 1 / -1; width: 100%; }
.secondary-action { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 10px 19px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--muted); font-size: 11px; font-weight: 550; }
.secondary-action:hover { background: var(--surface-soft); border-color: var(--muted); }
.secondary-action svg { width: 16px; height: 16px; }

/* Review and basket share the same clear visual hierarchy. */
dialog { color: var(--ink); font: inherit; width: 670px; max-width: calc(100vw - 40px); max-height: min(88dvh, 900px); padding: 27px; border: 1px solid var(--line); border-radius: 23px; background: var(--card); box-shadow: 0 30px 80px #25363334; overflow: auto; overscroll-behavior: contain; }
dialog::backdrop { background: #25363362; backdrop-filter: blur(5px); }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.dialog-header h2 { font-size: 23px; line-height: 1.35; font-weight: 550; letter-spacing: -.7px; }
.dialog-header .close { width: 35px; height: 35px; min-height: 35px; margin: -4px -5px 0 0; }
.dialog-intro { font-size: 12px; line-height: 1.7; color: var(--muted); margin: -6px 0 20px; }
.logo-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0 18px; }
.original-card, .selected-vector { min-width: 0; position: relative; aspect-ratio: 1.55; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 15px; background: #fff; padding: 27px; overflow: hidden; }
.original-card > img, .selected-vector > svg { width: 100%; height: 100%; object-fit: contain; }
.original-card > span, .selected-vector > span, .original-card > small, .selected-vector > small { position: absolute; top: 10px; left: 12px; font-size: 9px; color: var(--muted); }
.selected-vector { background: var(--surface-soft); }
.variant-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0 21px; }
.variant-option { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 10px 10px 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: center; }
.variant-option > svg { width: 100%; height: 110px; object-fit: contain; padding: 10px; margin-bottom: 7px; }
.variant-option b { font-size: 11px; font-weight: 550; }
.variant-option small { margin-top: 3px; font-size: 9px; color: var(--muted); }
.variant-option[aria-pressed="true"] { border-color: var(--link); background: var(--accent-soft); box-shadow: 0 0 0 1px #81d8d045; }
.variant-option[aria-pressed="true"]::after { content: "✓"; position: absolute; right: 8px; top: 7px; width: 17px; height: 17px; background: var(--link); color: white; border-radius: 50%; font-size: 10px; display: flex; justify-content: center; align-items: center; }
.modal-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; margin-top: 20px; }
.modal-actions .primary-action { min-width: 160px; }
.subtle-note { color: var(--muted); font-size: 10px; line-height: 1.7; margin: 12px 0; }
.warning-note { color: #967d50; font-size: 11px; line-height: 1.7; padding: 11px 13px; background: #f5efdf; border-radius: 9px; margin: 12px 0; }
.cart-summary { font-size: 11px; color: var(--muted); margin: -8px 0 17px; }
.cart-list { display: flex; flex-direction: column; }
.cart-item { display: grid; grid-template-columns: 77px minmax(0, 1fr) auto; align-items: center; gap: 15px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.cart-thumb { width: 77px; height: 77px; position: relative; border-radius: 11px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.cart-thumb > img { width: 100%; height: 100%; object-fit: contain; }
.cart-thumb .thumb-art { position: absolute; left: 35%; top: 28.5%; width: 30%; height: 30%; }
.cart-item-info { min-width: 0; }
.cart-item-info h3 { font-size: 12px; font-weight: 550; line-height: 1.5; }
.cart-item-info p { color: var(--muted); font-size: 10px; margin-top: 4px; overflow-wrap: anywhere; }
.cart-item-end { text-align: right; position: relative; display: flex; flex-direction: column; align-items: flex-end; }
.cart-item-end strong { font-size: 13px; font-weight: 600; white-space: nowrap; }
.cart-item-end > .text-link { font-size: 9px; }
.row-menu { position: relative; }
.row-menu summary { cursor: pointer; list-style: none; color: var(--muted); min-height: 22px; padding: 0 4px; font-size: 16px; }
.row-menu summary::-webkit-details-marker { display: none; }
.row-menu > div { position: absolute; right: 0; top: 23px; z-index: 5; min-width: 135px; border: 1px solid var(--line); border-radius: 9px; background: #fff; padding: 4px; box-shadow: 0 6px 20px #25363314; }
.row-menu button { width: 100%; padding: 8px 10px; text-align: left; font-size: 10px; border-radius: 6px; }
.row-menu button:hover { background: var(--surface-soft); }
.cart-footer { padding-top: 22px; }
.cart-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; font-size: 12px; color: var(--muted); }
.cart-total strong { font-size: 26px; font-weight: 600; letter-spacing: -.6px; color: var(--ink); }
.check-line { display: flex; align-items: flex-start; gap: 9px; font-size: 11px; color: var(--muted); line-height: 1.65; }
.check-line input[type="checkbox"] { appearance: none; -webkit-appearance: none; margin: 1px 0 0; width: 17px; height: 17px; min-height: 17px; padding: 0; border: 1px solid var(--line); border-radius: 4px; flex: none; background: #fff; position: relative; }
.check-line input[type="checkbox"]:checked { background: var(--link); border-color: var(--link); }
.check-line input[type="checkbox"]:checked::after { content: "✓"; color: #fff; font-size: 12px; position: absolute; left: 3px; top: -2px; }
.cart-footer > .primary-action { width: 100%; margin-top: 20px; }
.cart-secondary { display: flex; justify-content: center; gap: 18px; margin-top: 14px; flex-wrap: wrap; }
.empty-cart { text-align: center; padding: 45px 15px; color: var(--muted); }
.empty-cart svg { width: 35px; height: 35px; margin: 0 auto 17px; }
.empty-cart h3 { color: var(--muted); font-size: 17px; font-weight: 500; }
.empty-cart p { font-size: 12px; margin-top: 8px; }
.empty-cart .primary-action { margin-top: 23px; }
.bulk-help { border-top: 1px solid var(--line); padding-top: 13px; margin-top: 20px; color: var(--muted); font-size: 10px; }
.bulk-help summary { cursor: pointer; min-height: 26px; }
.bulk-help p { margin-top: 7px; line-height: 1.75; }
:where(input:not([type="checkbox"]):not([type="range"]), textarea, select) { width: 100%; min-width: 0; max-width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; min-height: 42px; }
input::placeholder, textarea::placeholder { color: var(--muted); }
select { cursor: pointer; }
.bulk-form { display: flex; flex-direction: column; gap: 17px; }
.bulk-form > label, .form-row > label { min-width: 0; display: block; font-size: 11px; font-weight: 500; }
.bulk-form label > textarea, .bulk-form label > input, .bulk-form label > select { margin-top: 7px; }
.bulk-form textarea { min-height: 230px; resize: vertical; font-size: 13px; line-height: 1.8; }
.form-row { display: grid; grid-template-columns: 1fr 115px; gap: 14px; }
.field-label { display: block; font-size: 11px; margin-bottom: 7px; }
.count-note { color: var(--muted); font-size: 10px; margin-top: 5px; font-weight: 400; }
.field-error { font-size: 11px; color: var(--danger); line-height: 1.65; margin-top: 7px; }
.receipt-amount { text-align: center; font-size: 38px; letter-spacing: -1.4px; font-weight: 550; padding: 25px 0 12px; }
.receipt-meta { color: var(--muted); font-size: 11px; text-align: center; margin-bottom: 26px; }
.receipt-status { background: var(--accent-soft); color: var(--link); border-radius: 11px; padding: 14px 16px; font-size: 11px; line-height: 1.7; text-align: center; }
#toast { display: none; position: fixed; z-index: 100; left: 50%; bottom: 25px; transform: translateX(-50%); max-width: calc(100vw - 32px); width: max-content; padding: 13px 20px; color: #fff; background: var(--ink); box-shadow: 0 6px 30px #25363324; border: 1px solid var(--ink); border-radius: 12px; font-size: 12px; text-align: center; }
#toast.visible { display: block; animation: toast-in .18s ease-out; }
@keyframes toast-in { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }

@media (min-width: 1600px) {
  .studio-main { padding-top: 40px; }
  .editor-layout { gap: 55px; grid-template-columns: minmax(0, 1.35fr) minmax(360px, .8fr); }
  .editor-panel { padding-top: 10px; }
  .stage { max-width: min(100%, 650px, calc(100dvh - 290px)); }
}

@media (max-width: 1100px) {
  .app-header { padding-inline: 30px; }
  .studio-main { padding-inline: 30px; }
  .editor-layout { gap: 25px; grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr); }
  .feature-media { min-height: 360px; }
  .catalog-feature { min-height: 360px; }
  .feature-copy { padding-right: 34px; }
  .feature-copy h2 { font-size: 34px; }
  .catalog-page { margin-top: 8px; }
  .coming-grid { gap: 12px; }
  .coming-card h3 { padding-inline: 14px; font-size: 12px; }
}

@media (max-width: 760px) {
  .app-header { height: 64px; padding: 0 20px; position: sticky; top: 0; background: #fffffff7; backdrop-filter: blur(10px); }
  .brand { font-size: 23px; letter-spacing: -1.1px; gap: 11px; }
  .brand-section { font-size: 10px; padding-left: 11px; }
  .header-actions { gap: 15px; }
  .offline-badge { font-size: 9px; }
  .admin-link { display: none; }
  .cart-trigger { padding-left: 14px; gap: 6px; }
  .cart-trigger > svg { width: 20px; height: 20px; }
  #basket-count { width: 22px; height: 22px; font-size: 10px; }
  .studio-main { padding: 24px 20px 55px; }
  .catalog-page { margin-top: 5px; }
  .catalog-heading { margin-bottom: 26px; }
  .catalog-heading h1 { max-width: 330px; font-size: 34px; line-height: 1.2; letter-spacing: -1.25px; }
  .catalog-heading p { margin-top: 12px; font-size: 12px; max-width: 290px; line-height: 1.75; }
  .catalog-feature { display: flex; flex-direction: column; border-radius: 23px; min-height: 0; }
  .feature-media { min-height: 265px; width: 100%; aspect-ratio: 1.35; }
  .feature-media .front-product { width: 73%; height: 105%; left: -1%; bottom: -9%; }
  .feature-media .light-product { width: 68%; height: 99%; right: -3%; top: -7%; }
  .feature-copy { padding: 10px 25px 26px; align-self: stretch; }
  .product-tag { font-size: 8px; letter-spacing: 1px; margin-bottom: 12px; }
  .feature-copy h2 { font-size: 31px; letter-spacing: -1.1px; max-width: 290px; }
  .feature-copy > p { margin: 12px 0 17px; font-size: 11px; line-height: 1.7; max-width: 280px; }
  .feature-price { font-size: 10px; margin-bottom: 19px; }
  .feature-price strong { font-size: 19px; }
  .primary-link { min-height: 44px; justify-content: space-between; width: 100%; padding: 11px 17px; font-size: 11px; }
  .coming-section { margin-top: 29px; }
  .coming-heading { margin-bottom: 14px; align-items: center; }
  .coming-heading h2 { font-size: 15px; }
  .coming-heading > span { font-size: 9px; }
  .coming-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .coming-card { border-radius: 13px; }
  .coming-card img { aspect-ratio: 1.25; }
  .coming-card h3 { padding: 0 13px 15px; font-size: 11px; }
  .editor-page { padding-bottom: 98px; }
  .editor-top { margin-bottom: 15px; gap: 10px; }
  .back-button { width: 35px; height: 35px; }
  .back-button svg { width: 15px; height: 15px; }
  .product-heading h1 { font-size: 20px; letter-spacing: -.55px; }
  .product-heading p { font-size: 9px; }
  .editor-menu > summary { width: 35px; height: 35px; }
  .editor-layout { display: flex; flex-direction: column; gap: 17px; }
  .preview-column { width: calc(100% + 40px); margin-inline: -20px; position: sticky; top: 64px; z-index: 20; padding: 0 20px 10px; background: var(--paper); }
  .preview-shell { border-radius: 17px; box-shadow: 0 4px 12px #25363305; }
  .preview-toolbar { height: 44px; padding: 5px 10px; }
  .side-switch { border-radius: 7px; padding: 2px; }
  .side-switch button { min-height: 26px; min-width: 54px; padding: 3px 10px; font-size: 9px; border-radius: 5px; }
  .canvas-actions { gap: 0; }
  .canvas-actions .icon-button { width: 34px; height: 34px; min-height: 34px; }
  .stage { max-width: min(100%, 36dvh); }
  .canvas-empty { font-size: 8px; line-height: 1.5; padding: 3px; gap: 3px; }
  .canvas-empty svg { width: 17px; height: 17px; }
  .canvas-empty span { max-width: 75px; }
  .print-area::before { font-size: 7px; top: -17px; letter-spacing: 0; }
  .restricted-zone { font-size: 6px; gap: 2px; }
  .restricted-zone svg { width: 8px; height: 8px; }
  .canvas-footer { min-height: 36px; padding: 6px 11px; gap: 7px; }
  .canvas-caption, .area-help { font-size: 8px; }
  .canvas-caption { gap: 4px; }
  .canvas-caption svg { width: 11px; height: 11px; }
  .area-help > summary { gap: 3px; }
  .area-help > summary svg { width: 12px; height: 12px; }
  .area-help > p, .area-help > .area-help-content { bottom: 28px; width: 200px; font-size: 10px; padding: 11px 12px; }
  .stage.zoomed .print-area::before { top: -17px; }
  .stage.zoomed .canvas-empty { font-size: 11px; }
  .mobile-helper { display: none; }
  .editor-panel { width: 100%; padding: 0; }
  .product-options { margin-bottom: 12px; }
  .product-options > h2, .product-options > h3, .product-options > label { display: none; }
  .color-choices { gap: 8px; }
  .color-choice { min-width: 100px; min-height: 44px; padding: 4px 10px 4px 7px; font-size: 10px; border-radius: 9px; gap: 6px; }
  .color-choice img { width: 19px; height: 32px; }
  .color-choice > svg { width: 12px; height: 12px; margin-left: 5px; }
  .tool-nav { margin-bottom: 17px; }
  .tool-nav button { padding: 10px 2px 13px; min-height: 45px; font-size: 10px; gap: 6px; }
  .tool-nav button > svg { width: 16px; height: 16px; }
  .tool-nav button::after { left: 9px; right: 9px; }
  .text-heading { margin-bottom: 7px; }
  .text-heading label, .text-entry > label { font-size: 10px; }
  .text-link { font-size: 9px; min-height: 25px; }
  .text-entry textarea { min-height: 73px; font-size: 16px; padding: 11px 13px; border-radius: 10px; }
  .font-section { margin-top: 14px; }
  .font-heading { margin-bottom: 7px; }
  .font-heading h3 { font-size: 10px; }
  .upload-drop { padding: 22px 18px; border-radius: 13px; }
  .upload-drop > svg { width: 25px; height: 25px; margin-bottom: 10px; }
  .upload-drop h3 { font-size: 14px; }
  .upload-drop p { font-size: 10px; }
  .symbol-grid { gap: 7px; }
  .symbol-card { padding: 13px; border-radius: 10px; }
  .context-panel { margin-top: 17px; padding-top: 10px; }
  .context-top { margin-bottom: 4px; }
  .selected-label { font-size: 9px; }
  .size-control { gap: 10px; }
  .size-control > label, .size-control > span, .size-control output { font-size: 9px; }
  .precision-grid { gap: 6px; }
  .precision-grid input, .precision-grid select { min-height: 37px; font-size: 12px; }
  .order-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fffffff5; border-top: 1px solid var(--line); padding: 13px 20px calc(13px + env(safe-area-inset-bottom, 0px)); margin: 0; backdrop-filter: blur(14px); box-shadow: 0 -5px 20px #25363305; }
  .dock-inner { max-width: 600px; margin: 0 auto; grid-template-columns: auto 1fr auto; gap: 12px; }
  .quantity-stepper { height: 43px; border-radius: 9px; }
  .quantity-stepper button { width: 29px; min-width: 29px; height: 41px; font-size: 17px; }
  .quantity-stepper input { width: 30px; height: 39px; font-size: 11px; padding: 0 !important; min-height: 0 !important; border: 0 !important; }
  .dock-price { text-align: left; }
  .dock-price span { font-size: 7px; margin-bottom: 0; }
  .dock-price strong { font-size: 18px; letter-spacing: -.5px; }
  .dock-inner > .primary-action { grid-column: auto; width: auto; min-height: 44px; border-radius: 9px; padding: 10px 18px; font-size: 10px; gap: 6px; white-space: nowrap; }
  .dock-inner > .primary-action svg { width: 15px; height: 15px; }
  .editor-status { font-size: 10px; margin-top: 9px; }
  .saved-state { font-size: 8px; }
  dialog { max-width: calc(100vw - 24px); max-height: calc(92dvh - env(safe-area-inset-bottom, 0px)); padding: 21px 19px; border-radius: 19px; }
  .dialog-header { margin-bottom: 17px; }
  .dialog-header h2 { font-size: 20px; letter-spacing: -.55px; }
  .dialog-intro { font-size: 11px; margin-bottom: 17px; }
  .logo-comparison { gap: 9px; margin: 16px 0; }
  .original-card, .selected-vector { border-radius: 11px; aspect-ratio: 1.1; padding: 27px 15px 18px; }
  .original-card > span, .selected-vector > span, .original-card > small, .selected-vector > small { left: 9px; top: 8px; font-size: 8px; }
  .variant-options { gap: 7px; margin: 16px 0; }
  .variant-option { border-radius: 10px; padding: 6px 6px 10px; }
  .variant-option > svg { height: 74px; padding: 8px 4px; margin-bottom: 4px; }
  .variant-option b { font-size: 9px; }
  .variant-option small { font-size: 7px; line-height: 1.4; }
  .variant-option[aria-pressed="true"]::after { width: 14px; height: 14px; right: 5px; top: 5px; font-size: 8px; }
  .modal-actions { margin-top: 18px; gap: 8px; }
  .modal-actions .primary-action { min-width: 0; flex: 1; font-size: 11px; padding-inline: 14px; }
  .modal-actions .secondary-action { font-size: 10px; padding-inline: 13px; }
  .subtle-note { font-size: 9px; }
  .warning-note { font-size: 10px; padding: 9px 11px; }
  .cart-summary { font-size: 10px; }
  .cart-item { grid-template-columns: 63px minmax(0, 1fr) auto; gap: 10px; padding: 14px 0; }
  .cart-thumb { width: 63px; height: 63px; border-radius: 9px; }
  .cart-item-info h3 { font-size: 10px; }
  .cart-item-info p { font-size: 8px; margin-top: 3px; }
  .cart-item-end strong { font-size: 11px; }
  .cart-item-end > .text-link { font-size: 8px; }
  .cart-total { font-size: 11px; margin-bottom: 15px; }
  .cart-total strong { font-size: 23px; }
  .check-line { font-size: 10px; }
  .cart-footer > .primary-action { margin-top: 18px; }
  .cart-secondary { gap: 15px; }
  .form-row { grid-template-columns: 1fr 87px; gap: 10px; }
  .bulk-form { gap: 14px; }
  .bulk-form textarea { min-height: 200px; font-size: 13px; }
  .bulk-form input, .bulk-form select { font-size: 13px; padding-inline: 9px !important; }
  .bulk-form > label, .form-row > label, .field-label { font-size: 10px; }
  .count-note { font-size: 9px; }
  #toast { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); font-size: 11px; padding: 11px 16px; border-radius: 10px; }
}

@media (max-width: 360px) {
  .app-header { padding-inline: 15px; }
  .brand { font-size: 21px; gap: 9px; }
  .brand-section { font-size: 9px; padding-left: 9px; }
  .offline-badge { display: none; }
  .header-actions { gap: 10px; }
  .cart-trigger { padding-left: 11px; }
  .studio-main { padding-inline: 15px; padding-top: 20px; }
  .catalog-heading h1 { font-size: 30px; }
  .catalog-heading p { font-size: 11px; }
  .feature-media { min-height: 230px; }
  .feature-copy { padding-inline: 20px; }
  .feature-copy h2 { font-size: 28px; }
  .coming-heading h2 { font-size: 14px; }
  .coming-heading > span { font-size: 8px; }
  .coming-card h3 { font-size: 10px; padding-inline: 10px; }
  .product-heading h1 { font-size: 18px; }
  .product-heading p { font-size: 8px; }
  .editor-top { gap: 9px; }
  .preview-column { width: calc(100% + 30px); margin-inline: -15px; padding-inline: 15px; }
  .stage { max-width: min(100%, 34dvh); }
  .canvas-caption, .area-help { font-size: 7px; }
  .color-choice { min-width: 94px; }
  .tool-nav button { font-size: 9px; }
  .tool-nav button > svg { width: 15px; height: 15px; }
  .symbol-card { padding: 10px; }
  .order-dock { padding-inline: 15px; }
  .dock-inner { gap: 9px; }
  .quantity-stepper button { width: 26px; min-width: 26px; }
  .quantity-stepper input { width: 27px; }
  .dock-price strong { font-size: 16px; }
  .dock-inner > .primary-action { font-size: 9px; padding-inline: 13px; gap: 5px; }
  .dock-inner > .primary-action svg { width: 13px; height: 13px; }
  dialog { padding-inline: 15px; }
  .dialog-header h2 { font-size: 18px; }
  .variant-options { gap: 5px; }
  .variant-option > svg { height: 65px; }
  .variant-option b { font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Integration with the editor markup. Secondary controls stay readable. */
.primary-link::after { content: none; }
.primary-link > svg { width: 21px; height: 21px; }
.feature-copy > p { font-size: 14px; }
.feature-price { font-size: 12px; }
.coming-card h3 { font-size: 14px; }
.back-button { width: auto; min-height: 44px; height: 44px; padding: 0 13px; border-radius: 11px; gap: 7px; font-size: 12px; }
.back-button > span { white-space: nowrap; }
.menu-popover button { display: flex; align-items: center; gap: 9px; min-height: 44px; font-size: 13px; }
.menu-popover button > svg { width: 17px; height: 17px; }
.preview-toolbar { min-height: 64px; height: auto; }
.side-switch { align-items: stretch; }
.side-switch button { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 42px; font-size: 12px; padding: 7px 13px; }
.side-switch small { font-size: 10px; color: var(--muted); font-weight: 400; }
.icon-button { width: 44px; height: 44px; min-height: 44px; }
.canvas-actions .icon-button { width: 44px; height: 44px; min-height: 44px; }
.canvas-actions .icon-button svg { width: 18px; height: 18px; }
.canvas-caption { font-size: 12px; }
.area-help { font-size: 12px; }
.area-help > summary { width: 35px; min-height: 30px; justify-content: center; }
.area-help > p, .area-help > .area-help-content { font-size: 12px; width: 260px; }
.area-help small { font-size: 11px; color: var(--muted); }
.product-options .field-label { font-size: 13px; margin-bottom: 10px; }
.color-choice { font-size: 13px; min-width: 118px; min-height: 55px; }
.color-check { width: 16px; height: 16px; margin-left: 9px; opacity: 0; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.color-check > svg { width: 16px; height: 16px; }
.color-choice[aria-pressed="true"] .color-check { opacity: 1; }
.tool-nav button { font-size: 14px; min-height: 54px; gap: 9px; }
.tool-nav button > svg { width: 20px; height: 20px; }
.text-heading { align-items: center; margin-bottom: 5px; }
.text-heading label, .text-entry > label { font-size: 13px; }
.text-link { min-height: 40px; font-size: 12px; }
.text-link svg { width: 15px; height: 15px; }
.font-heading { margin-bottom: 7px; }
.font-heading h3 { font-size: 13px; }
.upload-symbol { display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 50%; background: var(--line); color: var(--muted); margin: 0 auto 16px; }
.upload-symbol > svg { width: 25px; height: 25px; }
.upload-drop { padding: 26px 20px; }
.upload-drop h3 { font-size: 17px; }
.upload-drop p { font-size: 12px; margin-top: 7px; }
.upload-drop button { min-height: 46px; font-size: 13px; padding-inline: 26px; margin-top: 18px; }
.upload-drop.drag-over { background: var(--accent-soft); border-color: var(--link); box-shadow: inset 0 0 0 1px var(--link); }
.tool-content > .subtle-note { display: flex; gap: 8px; align-items: flex-start; }
.tool-content > .subtle-note > svg { width: 16px; height: 16px; margin-top: 2px; }
.tool-content > .subtle-note > span { flex: 1; min-width: 0; }
.selected-label { font-size: 12px; }
.object-actions .icon-button { width: 44px; height: 44px; min-height: 44px; }
.object-actions .icon-button svg { width: 18px; height: 18px; }
.size-control { grid-template-columns: minmax(0, 1fr) auto; gap: 15px; }
.size-control output { font-size: 12px; min-width: 58px; }
input[type="range"] { height: 36px; }
input[type="range"]::-webkit-slider-thumb { width: 21px; height: 21px; margin-top: -9px; border-width: 4px; }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-width: 3px; }
.precision-controls > summary { font-size: 12px; min-height: 40px; gap: 6px; }
.precision-controls > summary::after { content: none; }
.precision-controls > summary > svg { width: 14px; height: 14px; }
.precision-controls[open] > summary > svg { transform: rotate(180deg); }
.precision-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.precision-grid label { font-size: 11px; }
.precision-grid input, .precision-grid select { min-height: 42px; font-size: 13px; padding: 8px 10px; }
.precision-grid .dimensions { align-self: center; font-size: 11px; color: var(--muted); }
.precision-grid > .text-link { justify-self: end; }
.layer-picker button { min-height: 40px; font-size: 11px; padding: 8px 11px; }
.mobile-helper { display: flex; align-items: flex-start; gap: 7px; margin-top: 16px; font-size: 11px; text-align: left; line-height: 1.7; }
.mobile-helper > svg { width: 14px; height: 14px; margin-top: 2px; }
.mobile-helper > span:not(.saved-state) { flex: 1; }
.mobile-helper > .saved-state { margin-left: auto; white-space: nowrap; font-size: 10px; color: var(--muted); }
.order-dock { margin-top: 19px; padding-top: 19px; }
.quantity-stepper { height: 46px; }
.quantity-stepper button { width: 39px; min-width: 39px; height: 44px; }
.quantity-stepper input { width: 43px; height: 44px; font-size: 14px; }
.quantity-stepper button > svg { width: 16px; height: 16px; }
.dock-price span { font-size: 11px; }
.dock-price strong { font-size: 25px; }
.primary-action { font-size: 14px; min-height: 49px; }
.secondary-action { font-size: 13px; min-height: 45px; }
.dialog-intro { font-size: 14px; }
.original-card > span, .selected-vector > span, .original-card > small, .selected-vector > small { font-size: 11px; }
.variant-option b { font-size: 13px; }
.variant-option small { font-size: 11px; }
.logo-review > .primary-action { width: 100%; margin-top: 16px; }
.logo-review .modal-actions { justify-content: space-between; margin-top: 10px; }
.subtle-note { font-size: 12px; }
.warning-note { font-size: 13px; }
.cart-summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; }
.saved-state { font-size: 11px; }
.cart-item { grid-template-columns: 85px minmax(0, 1fr) auto; gap: 16px; }
.cart-thumb { width: 85px; height: 85px; }
.cart-item-info h3 { font-size: 14px; }
.cart-item-info p { font-size: 12px; }
.cart-item-end strong { font-size: 15px; }
.cart-item-end > .text-link { font-size: 12px; }
.cart-quantity { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.cart-quantity > input { width: 60px; min-height: 37px; padding: 6px 8px; font-size: 12px; text-align: center; border-radius: 7px; }
.cart-quantity > span { font-size: 11px; color: var(--muted); }
.row-menu summary { min-height: 38px; width: 38px; display: flex; align-items: center; justify-content: center; border-radius: 8px; }
.row-menu summary:hover { background: var(--surface-soft); }
.row-menu > .menu-popover { top: 40px; }
.row-menu button { font-size: 12px; }
.cart-total { font-size: 14px; }
.check-line { font-size: 13px; }
.check-line input[type="checkbox"] { width: 19px; height: 19px; min-height: 19px; margin-top: 1px; }
.check-line input[type="checkbox"]:checked::after { top: -1px; left: 4px; }
.cart-more { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 12px; }
.cart-more > summary { display: flex; align-items: center; justify-content: space-between; min-height: 42px; list-style: none; cursor: pointer; color: var(--muted); font-size: 12px; }
.cart-more > summary::-webkit-details-marker { display: none; }
.cart-more > summary::after { content: "+"; font-size: 17px; }
.cart-more[open] > summary::after { content: "−"; }
.cart-more .modal-actions { justify-content: flex-start; margin-top: 0; gap: 18px; }
.checkout-note { text-align: center; margin-bottom: 0; }
.field-label, .bulk-form > label, .form-row > label { font-size: 13px; }
.count-note { font-size: 12px; }
.bulk-form label > small:not(.count-note) { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.field-error { font-size: 12px; }
.receipt-status { width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; padding: 0; border-radius: 50%; margin: 10px auto 17px; }
.receipt-status > svg { width: 28px; height: 28px; }
.receipt-meta { font-size: 13px; margin-bottom: 10px; }
.receipt-dialog > .primary-action { width: 100%; margin-top: 17px; }
.receipt-dialog > .subtle-note { text-align: center; }
.loading-state { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 40px 20px; color: var(--muted); }
.loading-state p { font-size: 14px; }

@media (max-width: 760px) {
  .catalog-heading p { font-size: 13px; }
  .feature-copy > p { font-size: 13px; }
  .feature-price { font-size: 12px; }
  .feature-price strong { font-size: 22px; }
  .primary-link { font-size: 13px; min-height: 47px; }
  .coming-card h3 { font-size: 13px; }
  .back-button { width: 39px; min-width: 39px; height: 44px; min-height: 44px; padding: 0; border-radius: 10px; }
  .back-button > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .back-button > svg { width: 17px; height: 17px; }
  .editor-menu > summary { width: 44px; height: 44px; }
  .preview-toolbar { min-height: 58px; padding: 5px 8px; gap: 5px; }
  .side-switch button { min-height: 42px; min-width: 50px; padding: 5px 9px; font-size: 12px; flex-direction: column; gap: 0; line-height: 1.35; }
  .side-switch small { font-size: 9px; }
  .canvas-actions .icon-button { width: 42px; height: 44px; min-height: 44px; }
  .canvas-footer { min-height: 42px; padding: 4px 12px; }
  .canvas-caption { font-size: 10px; }
  .area-help { font-size: 11px; }
  .area-help > summary { width: 32px; min-height: 32px; }
  .area-help > summary > svg { width: 16px; height: 16px; }
  .area-help > p, .area-help > .area-help-content { font-size: 12px; width: 240px; }
  .canvas-empty { font-size: 9px; }
  .print-area::before { font-size: 8px; }
  .product-options .field-label { font-size: 12px; margin-bottom: 8px; }
  .color-choice { min-width: 113px; min-height: 49px; font-size: 13px; padding-inline: 10px; }
  .color-choice img { width: 23px; height: 36px; }
  .color-check { width: 15px; height: 15px; margin-left: 6px; }
  .color-check > svg { width: 15px; height: 15px; }
  .tool-nav button { font-size: 13px; min-height: 51px; padding: 12px 2px 15px; gap: 8px; }
  .tool-nav button > svg { width: 19px; height: 19px; }
  .text-heading label, .text-entry > label { font-size: 12px; }
  .text-link { min-height: 38px; font-size: 12px; }
  .text-entry textarea { min-height: 77px; font-size: 16px; }
  .font-heading h3 { font-size: 12px; }
  .font-section { margin-top: 16px; }
  .upload-drop { padding: 23px 18px; }
  .upload-drop h3 { font-size: 16px; }
  .upload-drop p { font-size: 12px; }
  .upload-drop button { font-size: 13px; min-height: 46px; }
  .upload-symbol { width: 48px; height: 48px; margin-bottom: 13px; }
  .upload-symbol > svg { width: 23px; height: 23px; }
  .selected-label { font-size: 12px; }
  .context-panel { padding-top: 11px; margin-top: 15px; }
  .object-actions .icon-button { width: 44px; height: 44px; min-height: 44px; }
  .size-control output { font-size: 12px; }
  .precision-controls > summary { min-height: 40px; font-size: 12px; }
  .precision-grid label { font-size: 11px; }
  .precision-grid input { min-height: 42px; font-size: 13px; }
  .layer-picker button { min-height: 40px; font-size: 11px; }
  .mobile-helper { display: flex; font-size: 10px; margin-top: 12px; gap: 6px; }
  .mobile-helper > .saved-state { font-size: 9px; }
  .mobile-helper > svg { width: 13px; height: 13px; }
  .order-dock { margin: 0; padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px)); }
  .dock-inner { gap: 11px; }
  .quantity-stepper { height: 46px; }
  .quantity-stepper button { width: 31px; min-width: 31px; height: 44px; }
  .quantity-stepper input { width: 30px; height: 44px; font-size: 13px; }
  .dock-price span { font-size: 10px; }
  .dock-price strong { font-size: 21px; }
  .dock-inner > .primary-action { min-height: 46px; font-size: 12px; padding-inline: 15px; gap: 7px; }
  .dock-inner > .primary-action > svg { width: 15px; height: 15px; }
  .primary-action { min-height: 47px; font-size: 13px; }
  .secondary-action { min-height: 44px; font-size: 12px; }
  .dialog-intro { font-size: 13px; }
  .original-card > span, .selected-vector > span { font-size: 10px; }
  .variant-option > svg { height: 82px; }
  .variant-option b { font-size: 11px; }
  .variant-option small { font-size: 10px; }
  .modal-actions .primary-action { font-size: 12px; }
  .modal-actions .secondary-action { font-size: 12px; }
  .subtle-note { font-size: 12px; }
  .warning-note { font-size: 12px; }
  .cart-summary { font-size: 12px; }
  .saved-state { font-size: 10px; }
  .cart-item { grid-template-columns: 66px minmax(0, 1fr) auto; gap: 11px; }
  .cart-thumb { width: 66px; height: 66px; }
  .cart-item-info h3 { font-size: 13px; }
  .cart-item-info p { font-size: 11px; }
  .cart-item-end strong { font-size: 13px; }
  .cart-item-end > .text-link { font-size: 11px; }
  .cart-quantity { gap: 6px; margin-top: 7px; }
  .cart-quantity > input { width: 51px; min-height: 36px; font-size: 12px; padding-inline: 6px; }
  .cart-quantity > span { font-size: 10px; }
  .cart-total { font-size: 13px; }
  .check-line { font-size: 12px; }
  .cart-more > summary { font-size: 11px; }
  .cart-secondary { gap: 10px 18px; }
  .form-row { grid-template-columns: 1fr 100px; }
  .field-label, .bulk-form > label, .form-row > label { font-size: 12px; }
  .count-note { font-size: 11px; }
  .field-error { font-size: 12px; }
  .receipt-meta { font-size: 12px; }
}

@media (max-width: 360px) {
  .side-switch button { min-width: 46px; padding-inline: 8px; font-size: 11px; }
  .canvas-actions .icon-button { width: 44px; }
  .canvas-caption { font-size: 10px; }
  .tool-nav button { font-size: 12px; }
  .mobile-helper > .saved-state { display: none; }
  .order-dock { padding-inline: 12px; }
  .dock-inner { gap: 8px; }
  .quantity-stepper button { width: 27px; min-width: 27px; }
  .quantity-stepper input { width: 26px; }
  .dock-price span { font-size: 9px; }
  .dock-price strong { font-size: 19px; }
  .dock-inner > .primary-action { font-size: 11px; padding-inline: 11px; gap: 4px; }
  .dock-inner > .primary-action > svg { width: 14px; height: 14px; }
  .cart-item { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 8px; }
  .cart-thumb { width: 56px; height: 56px; }
  .cart-item-info h3 { font-size: 12px; }
  .cart-item-info p { font-size: 10px; }
  .cart-item-end strong { font-size: 12px; }
}

/* Keep the everyday font choice on one line; the full collection has its own sheet. */

@media (min-width: 761px) {
  .editor-panel .product-options { margin-bottom: 12px; }
  .editor-panel .product-options .field-label { margin-bottom: 6px; }
  .editor-panel .tool-nav { margin-bottom: 12px; }
  .editor-panel .text-entry textarea { min-height: 72px; }
  .editor-panel .font-section { margin-top: 12px; }
  .editor-panel .font-heading { margin-bottom: 4px; }
  .editor-panel .context-panel { margin-top: 14px; padding-top: 8px; }
  .editor-panel .context-top { margin-bottom: 0; }
  .editor-panel .precision-controls { margin-top: 0; }
  .editor-panel .mobile-helper { margin-top: 9px; }
  .editor-panel .order-dock { margin-top: 14px; padding-top: 14px; }
  .dock-inner { grid-template-columns: auto minmax(0, 1fr) auto; gap: 13px; }
  .dock-inner > .primary-action { grid-column: auto; width: auto; padding-inline: 20px; white-space: nowrap; }
  .dock-price { text-align: left; }
  .dock-price strong { font-size: 23px; }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .dock-inner { grid-template-columns: auto minmax(0, 1fr); gap: 12px; }
  .dock-inner > .primary-action { grid-column: 1 / -1; width: 100%; }
  .dock-price { text-align: right; }
}


/* Area guidance appears when requested; keep the everyday preview quiet. */
.preview-shell .restricted-zone { display: none; }
.preview-shell:has(.area-help[open]) .restricted-zone { display: flex; padding: 4px 0; border: 1px dashed #b68e79; border-radius: 6px; color: #805c49; background: rgba(255,247,239,.8); }
.preview-shell:has(.area-help[open]) .stage.zoomed .restricted-zone,
.preview-shell:has(.area-help[open]) .stage.no-guides .restricted-zone { display: none; }
.print-area .handle-hit { fill: transparent; stroke: none; cursor: nwse-resize; }
.print-area .handle { pointer-events: none; }
.stage.no-guides .handle-hit { display: none; }

/* The lid is a viewing choice, separate from the two engraving sides. */
.canvas-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; }
.canvas-caption { display: block; min-width: 0; line-height: 1.5; }
.canvas-caption > span { white-space: nowrap; }
@media (max-width: 1100px) {
  .canvas-caption > .caption-context { display: none; }
}
@media (max-width: 760px) {
  .canvas-footer { padding: 4px 10px; gap: 6px; }
  .canvas-caption { font-size: 10px; }
}
@media (min-width: 1101px) {
  .stage { max-width: min(100%, 600px, max(280px, calc(100dvh - 370px))); }
}
@media (min-width: 1600px) {
  .stage { max-width: min(100%, 650px, max(280px, calc(100dvh - 370px))); }
}

/* Three small samples stay in the editor; the full set is a compact picker. */
.font-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.font-card { position: relative; min-width: 0; height: 54px; padding: 5px 8px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: var(--card); }
.font-card .font-sample { width: 100%; height: 28px; max-height: 28px; min-height: 0; flex: none; overflow: visible; }
.font-card small { display: block; margin: 0; padding-right: 12px; color: var(--muted); font-size: 9px; font-weight: 400; line-height: 1.2; letter-spacing: 0; }
.font-card .font-check { position: absolute; right: 5px; bottom: 5px; width: 11px; height: 11px; color: var(--link); opacity: 0; }
.font-check > svg { width: 11px; height: 11px; }
.font-card[aria-pressed="true"] { border-color: var(--link); background: var(--accent-soft); }
.font-card[aria-pressed="true"] .font-check { opacity: 1; }
.font-card:hover { border-color: var(--link); }
.font-dialog { width: 620px; }
.font-dialog .font-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.font-dialog .font-card { height: 54px; }
.lid-checkbox { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 3px; color: var(--ink); cursor: pointer; font-size: 12px; white-space: nowrap; }
.lid-checkbox input { appearance: auto; -webkit-appearance: checkbox; width: 18px; height: 18px; min-height: 18px; margin: 0; padding: 0; accent-color: var(--link); cursor: pointer; flex: none; }
@media (max-width: 760px) {
  .brand-logo-image { width: 67px; height: 46px; }
  .font-dialog .font-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .font-card { height: 52px; padding: 4px 7px; }
  .font-card .font-sample { height: 28px; max-height: 28px; }
  .font-card small { font-size: 9px; }
  .lid-checkbox { font-size: 11px; gap: 6px; }
}

/* Choose a product in one compact sheet, then keep the editor focused on the design. */
.change-product { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 8px 10px; border-radius: 8px; color: var(--link); font-size: 12px; font-weight: 500; white-space: nowrap; }
.change-product:hover { background: var(--accent-soft); }
.change-product > svg { width: 17px; height: 17px; }
.product-dialog { width: 600px; padding: 20px; border-radius: 20px; }
.product-dialog .dialog-header { margin-bottom: 12px; }
.product-dialog .dialog-header h2 { font-size: 22px; }
.product-dialog .dialog-header .close { width: 44px; height: 44px; min-height: 44px; }
.product-choice-list { display: grid; gap: 14px; }
.product-dialog .picker-product { position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 70px; padding: 10px 12px; text-align: left; border: 1px solid var(--line); border-radius: 11px; background: var(--card); }
.product-dialog .picker-product-photo { display: flex; align-items: center; justify-content: center; flex: none; width: 45px; height: 50px; overflow: hidden; border-radius: 5px; background: var(--photo-bg); }
.product-dialog .picker-product-photo img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.product-dialog .picker-product.is-active { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 14px; width: 100%; min-height: 0; padding: 12px; border-color: var(--accent-hover); background: #f0faf9; box-shadow: inset 0 0 0 1px var(--accent); transition: background .15s, border-color .15s; }
.product-dialog .picker-product.is-active:hover { background: var(--accent-soft); border-color: var(--link); }
.product-dialog .picker-product.is-active .picker-product-photo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr); grid-column: 1 / -1; justify-items: center; align-items: center; width: 100%; height: clamp(145px, calc(100dvh - 605px), 200px); border-radius: 7px; background: transparent; }
.product-dialog .picker-product.is-active .picker-product-photo img { width: clamp(175px, calc(100dvh - 575px), 230px); height: clamp(175px, calc(100dvh - 575px), 230px); max-width: none; }
.product-dialog .picker-product.is-active .picker-product-photo img + img { transform: scale(.92); }
.product-dialog .picker-product.is-active .picker-product-copy { padding: 0 2px 2px; }
.product-dialog .picker-product-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.product-dialog .picker-product-copy strong { font-size: 13px; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
.product-dialog .picker-product-copy small { color: var(--muted); font-size: 11px; line-height: 1.45; }
.product-dialog .picker-product.is-active .picker-product-copy strong { font-size: 17px; font-weight: 600; line-height: 1.35; }
.product-dialog .picker-product.is-active .picker-product-copy small { font-size: 12px; }
.product-dialog .picker-selected { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; color: var(--link); }
.product-dialog .picker-selected svg { width: 19px; height: 19px; }
.product-upcoming { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.product-choice-list + .product-upcoming { margin-top: 12px; }
.product-dialog .picker-product.is-soon { cursor: default; min-height: 70px; background: #f6f6f5; border-color: #e9eae8; }
.product-dialog .picker-product.is-soon .picker-product-photo { opacity: .48; filter: grayscale(1); background: transparent; }
.product-dialog .picker-product.is-soon .picker-product-copy strong { color: #626d69; }
.product-dialog .picker-soon { display: inline-flex; align-items: center; gap: 5px; color: #6c7571; font-size: 10px; line-height: 1.3; white-space: nowrap; }
.soon-spinner { display: inline-block; flex: none; width: 10px; height: 10px; border: 1px solid #c9cecb; border-right-color: #7e8b85; border-radius: 50%; animation: product-coming 1.8s linear infinite; }
.more-products { display: flex; grid-column: 1 / -1; align-items: center; gap: 12px; min-height: 63px; padding: 11px 14px; border: 1px dashed #d7ddda; border-radius: 11px; color: var(--muted); }
.more-products-symbol { display: flex; align-items: center; justify-content: center; width: 31px; height: 31px; flex: none; border-radius: 50%; background: var(--surface-soft); color: #78847f; font-size: 24px; font-weight: 300; line-height: 1; }
.more-products > div { display: flex; flex-direction: column; gap: 2px; }
.more-products strong { color: var(--ink); font-size: 13px; line-height: 1.4; font-weight: 500; }
.more-products small { font-size: 11px; line-height: 1.4; }
@keyframes product-coming { to { transform: rotate(360deg); } }

@media (max-width: 760px) {
  .editor-top .change-product { min-height: 44px; padding-inline: 5px; font-size: 11px; gap: 5px; }
  .editor-top .change-product > svg { width: 15px; height: 15px; }
  .product-dialog { padding: 18px; max-width: calc(100vw - 24px); border-radius: 17px; }
  .product-dialog .dialog-header { margin-bottom: 12px; }
  .product-dialog .dialog-header h2 { font-size: 20px; }
  .product-choice-list { gap: 12px; }
  .product-dialog .picker-product { gap: 8px; min-height: 63px; padding: 8px; border-radius: 9px; }
  .product-dialog .picker-product.is-active { min-height: 0; padding: 10px; gap: 8px 10px; }
  .product-dialog .picker-product.is-active .picker-product-photo { width: 100%; height: 190px; }
  .product-dialog .picker-product.is-active .picker-product-photo img { width: 205px; height: 205px; }
  .product-dialog .picker-product.is-active .picker-product-copy strong { font-size: 15px; }
  .product-dialog .picker-product.is-active .picker-product-copy small { font-size: 11px; }
  .product-dialog .picker-product-photo { width: 34px; height: 42px; }
  .product-dialog .picker-product-copy { gap: 4px; }
  .product-dialog .picker-product-copy strong { font-size: 11px; }
  .product-dialog .picker-product.is-soon { min-height: 63px; }
  .product-dialog .picker-soon { font-size: 9px; gap: 4px; }
  .product-dialog .picker-selected { width: 28px; height: 28px; }
  .product-dialog .picker-selected svg { width: 17px; height: 17px; }
  .product-upcoming { gap: 7px; }
  .more-products { min-height: 60px; gap: 10px; padding: 10px; }
  .more-products strong { font-size: 12px; }
  .more-products small { font-size: 10px; }
}

@media (max-width: 360px) {
  .editor-top .product-heading h1 { font-size: 15px; letter-spacing: -.35px; }
  .editor-top .change-product { font-size: 10px; gap: 3px; padding-inline: 2px; }
  .product-dialog { padding: 15px; }
  .product-dialog .picker-product.is-active { gap: 8px; }
  .product-dialog .picker-product.is-active .picker-product-photo { height: 175px; }
  .product-dialog .picker-product.is-active .picker-product-copy strong { font-size: 14px; }
  .product-dialog .picker-product-photo { width: 28px; }
  .product-dialog .picker-product { gap: 6px; padding-inline: 7px; }
  .product-dialog .picker-product-copy strong { font-size: 10px; }
  .product-dialog .picker-soon { font-size: 9px; gap: 3px; }
}

@media (max-height: 650px) {
  .product-dialog { padding: 14px 16px; }
  .product-dialog .dialog-header { margin-bottom: 8px; }
  .product-dialog .picker-product.is-active { gap: 5px 10px; padding: 8px 10px; }
  .product-dialog .picker-product.is-active .picker-product-photo { height: 160px; }
  .product-dialog .picker-product.is-active .picker-product-photo img { width: 185px; height: 185px; }
  .product-choice-list + .product-upcoming { margin-top: 8px; }
  .product-dialog .picker-product.is-soon { min-height: 55px; padding-block: 5px; }
  .product-dialog .picker-product.is-soon .picker-product-photo { height: 38px; }
  .product-upcoming { gap: 6px; }
  .product-dialog .more-products { min-height: 49px; padding-block: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  .soon-spinner { animation: none; }
}
