/*
  THESIS: The customer experience is a working creative studio, not a light ecommerce shell.
  OWN-WORLD: cold-black stage, porcelain type, acid-lime actions, cyan creative focus, 12px tool surfaces.
  STORY: discover real work, choose a product, make it yours, and move directly into production.
  FIRST VIEWPORT: brand and proposition face a live product carousel; the artwork library is visible below.
  FORM: grounded surface candidate 3, seed b16bf6b5.
  FINISH: unreviewed and undocumented is unfinished; this build ends with the finish review, the verdict, and DESIGN.md
*/

@font-face {
  font-family: "Manrope Studio";
  src: url("./assets/manrope-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

.customer-app {
  --bg: #070909;
  --panel: #0b0e0e;
  --panel-strong: #101414;
  --line: rgba(242, 245, 239, 0.11);
  --line-strong: rgba(242, 245, 239, 0.2);
  --text: #f2f5ef;
  --muted: #89938e;
  --soft: #c8d0cb;
  --cyan: #28d7e5;
  --green: #b8ff3d;
  --coral: #ff6b55;
  --gold: #d8be78;
  --black: #071008;
  --radius: 12px;
  --shadow: 0 24px 72px rgba(0, 0, 0, 0.34);
  min-height: 100dvh;
  color: var(--text);
  background: var(--bg);
  font-family: "Manrope Studio", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

.customer-app *,
.customer-app *::before,
.customer-app *::after { box-sizing: border-box; }

.customer-app button,
.customer-app input,
.customer-app select,
.customer-app textarea { font: inherit; }

.home-app,
.catalog-app,
.editor-shell {
  min-height: 100dvh;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 18%, rgba(40, 215, 229, 0.08), transparent 30rem),
    var(--bg);
}

.home-topbar,
.catalog-topbar,
.editor-shell .topbar {
  position: sticky;
  top: 0;
  z-index: 18;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 72px;
  padding: 10px clamp(16px, 3vw, 48px);
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  background: rgba(7, 9, 9, 0.88);
  box-shadow: none;
  backdrop-filter: blur(22px) saturate(130%);
}

.home-topbar .brand,
.catalog-topbar .brand,
.editor-shell .brand { justify-self: start; }

.brand-mark,
.catalog-brand .brand-mark,
.editor-shell .brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(40, 215, 229, 0.28);
  border-radius: 10px;
  color: var(--green);
  background: #0d1110;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.brand strong,
.brand-home-button {
  color: var(--text);
  font-size: 14px;
  font-weight: 760;
}

.brand span,
.catalog-top-meta { color: var(--muted); }

.home-nav {
  justify-self: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
}

.home-nav button {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  color: rgba(242, 245, 239, 0.62);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}

.home-nav button:hover { color: white; }

.home-actions,
.catalog-account,
.top-actions { justify-self: end; }

.button,
.icon-button,
.user-chip,
.mode-button,
.mini-button {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: none;
}

.button {
  min-height: 44px;
  border-radius: 999px;
  padding: 0 17px;
  font-weight: 720;
  white-space: nowrap;
}

.button:hover,
.icon-button:hover,
.user-chip:hover,
.mode-button:hover {
  border-color: rgba(40, 215, 229, 0.52);
  color: #fff;
  background: rgba(40, 215, 229, 0.08);
  transform: translateY(-1px);
}

.button:active,
.icon-button:active,
.user-chip:active { transform: translateY(0) scale(0.98); }

.button.primary,
.customer-app .button.primary,
.customer-app .button.pay {
  border-color: var(--green);
  color: #071008;
  background: var(--green);
  box-shadow: 0 14px 34px rgba(184, 255, 61, 0.12);
}

.button.primary:hover,
.customer-app .button.primary:hover,
.customer-app .button.pay:hover {
  border-color: #d7ff88;
  color: #071008;
  background: #d7ff88;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(440px, 1.18fr);
  align-items: center;
  gap: clamp(36px, 6vw, 100px);
  min-height: calc(100dvh - 72px);
  max-width: 1560px;
  margin: 0 auto;
  padding: clamp(52px, 8vw, 112px) clamp(20px, 4vw, 64px);
}

.home-hero h1 {
  max-width: 10ch;
  margin: 0;
  color: var(--text);
  font-size: clamp(52px, 6.6vw, 94px);
  font-weight: 760;
  line-height: 0.96;
  letter-spacing: -0.035em;
}

.home-hero p {
  max-width: 34rem;
  margin: 28px 0 0;
  color: rgba(242, 245, 239, 0.58);
  font-size: 17px;
  line-height: 1.75;
}

.home-hero > div:first-child .button { margin-top: 34px; }

.home-hero-preview {
  position: relative;
  min-height: min(72dvh, 760px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0b0e0e;
  box-shadow: 0 38px 110px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.home-hero-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: inherit;
  pointer-events: none;
}

.hero-feature-card,
.hero-slide { border-radius: 0; }

.home-section {
  max-width: 1560px;
  margin: 0 auto;
  padding: 104px clamp(20px, 4vw, 64px);
}

.home-section + .home-section { border-top: 1px solid var(--line); }

.home-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 48px;
}

.home-section h2,
.home-split h2 {
  max-width: 12ch;
  margin: 0;
  color: var(--text);
  font-size: clamp(36px, 4.6vw, 68px);
  font-weight: 740;
  line-height: 1;
  letter-spacing: -0.03em;
}

.home-feed-tabs,
.home-artwork-filters { border-color: var(--line); background: rgba(255, 255, 255, 0.035); }
.home-feed-tabs button,
.home-artwork-filters button { color: var(--muted); }
.home-feed-tabs button.active,
.home-artwork-filters button.active { color: #071008; background: var(--green); }

.home-showcase-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 31vw);
  grid-template-columns: none;
  gap: 14px;
  padding-bottom: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--cyan) transparent;
}

.home-design-card {
  grid-column: auto !important;
  min-width: 0;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: none;
}

.home-design-card:hover { border-color: rgba(40, 215, 229, 0.48); transform: translateY(-3px); }
.home-design-image { aspect-ratio: 1.22; min-height: 0; background: #101414; }
.home-design-image img { object-fit: contain; padding: 18px; }
.home-design-body { display: grid; gap: 16px; padding: 18px; }
.home-design-copy h3 { font-size: 18px; }
.home-design-actions { align-items: center; }
.home-design-copy h3,
.home-design-card strong { color: var(--text); }
.home-design-card span { color: var(--muted); }

.home-art-grid { gap: 10px; }
.home-art-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: none;
}

.catalog-app { background: var(--bg); }
.catalog-topbar { padding-inline: clamp(16px, 3vw, 48px); }
.catalog-user-chip { border-color: var(--line); background: rgba(255,255,255,.04); }

.catalog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  align-items: end;
  gap: 48px;
  max-width: 1480px;
  padding: 70px 32px 44px;
}

.catalog-hero h1 {
  max-width: 12ch;
  margin: 0;
  color: var(--text);
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 740;
  line-height: 1;
  letter-spacing: -0.03em;
}

.catalog-hero p { color: var(--muted); }
.filter-label,
.catalog-product-category { color: var(--cyan); letter-spacing: 0; text-transform: none; }

.catalog-search { color: var(--muted); }
.catalog-search input,
.customer-app .field input,
.customer-app .field select,
.customer-app .text-form input {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #0b0e0e;
}

.catalog-search input:focus,
.customer-app .field input:focus,
.customer-app .field select:focus,
.customer-app .text-form input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(40, 215, 229, 0.12);
}

.catalog-layout {
  grid-template-columns: 220px minmax(0, 1fr);
  max-width: 1480px;
  gap: 38px;
}

.catalog-category-tab { border-radius: 8px; color: var(--muted); }
.catalog-category-tab:hover { color: var(--text); background: rgba(255,255,255,.045); }
.catalog-category-tab.active { color: #071008; background: var(--green); }
.catalog-results-head strong,
.catalog-product-content h2,
.catalog-product-footer strong { color: var(--text); }

.catalog-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.catalog-product-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: var(--panel);
  box-shadow: none;
}

.catalog-product-card:hover {
  border-color: rgba(40, 215, 229, 0.48);
  box-shadow: 0 24px 62px rgba(0, 0, 0, 0.3);
}

.catalog-product-image { background: #101414; }
.catalog-product-badge { color: var(--text); background: rgba(7, 9, 9, 0.72); }
.catalog-empty { border-color: var(--line); color: var(--muted); background: var(--panel); }

.editor-shell {
  padding: 0 18px 22px;
  background: var(--bg);
}

.editor-shell .topbar {
  margin: 0 -18px;
  background: rgba(7, 9, 9, 0.92);
}

.editor-progress {
  max-width: 640px;
  margin: 16px auto;
  color: var(--muted);
}

.progress-step.active { color: var(--cyan); }
.progress-step.complete { color: var(--green); }
.progress-line { background: var(--line-strong); }

.customer-app .studio {
  grid-template-columns: minmax(238px, 0.72fr) minmax(480px, 1.7fr) minmax(290px, 0.88fr);
  gap: 12px;
  max-width: 1640px;
}

.customer-app .panel,
.customer-app .stage-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: var(--panel);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

.customer-app .panel { padding: 16px; }
.customer-app .stage-panel { padding: 14px; }
.customer-app .stage-header h1,
.customer-app .panel h2 { color: var(--text); }

.customer-app .category-tile,
.customer-app .secondary-chip,
.customer-app .side-button,
.customer-app .artwork-filter-chip,
.customer-app .artwork-card,
.customer-app .selected-empty,
.customer-app .layer-row,
.customer-app .saved-empty,
.customer-app .saved-item,
.customer-app .order-draft-item,
.customer-app .cart-row {
  border-color: var(--line);
  color: var(--soft);
  background: rgba(255, 255, 255, 0.035);
}

.customer-app .category-tile:hover,
.customer-app .category-tile.active,
.customer-app .side-button.active,
.customer-app .secondary-chip.active,
.customer-app .artwork-filter-chip.active {
  border-color: rgba(40, 215, 229, 0.52);
  color: var(--text);
  background: rgba(40, 215, 229, 0.09);
}

.customer-app .canvas-shell {
  min-height: min(78dvh, 920px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #111514;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.customer-app .creator-artwork-section {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.customer-app .creator-artwork-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.customer-app .creator-artwork-heading h3 {
  margin: 2px 0 0;
  color: #f7f7ef;
  font-size: 18px;
  line-height: 1.1;
}
.customer-app .creator-artwork-heading strong {
  color: #aaff2c;
  font-size: 12px;
}
.customer-app .creator-artwork-library {
  display: grid;
  gap: 10px;
}
.customer-app .creator-artwork-card {
  display: grid;
  grid-template-columns: 88px minmax(0,1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(170,255,44,.08), rgba(34,232,255,.05)), rgba(5,7,8,.72);
}
.customer-app .creator-artwork-image {
  position: relative;
  grid-row: span 2;
  padding: 0;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 9px;
  background: #f2f4ef;
  overflow: hidden;
}
.customer-app .creator-artwork-image img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}
.customer-app .creator-artwork-image span {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  padding: 4px 6px;
  border-radius: 999px;
  color: #071011;
  background: rgba(170,255,44,.9);
  font-size: 10px;
  font-weight: 950;
}
.customer-app .creator-artwork-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.customer-app .creator-artwork-author {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}
.customer-app .creator-artwork-author .avatar,
.customer-app .creator-artwork-author .avatar-fallback {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}
.customer-app .creator-artwork-author span:last-child,
.customer-app .creator-artwork-copy > strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.customer-app .creator-artwork-author strong,
.customer-app .creator-artwork-copy > strong {
  color: #f7f7ef;
  font-size: 12px;
}
.customer-app .creator-artwork-author small {
  display: block;
  color: rgba(247,247,239,.45);
  font-size: 10px;
}
.customer-app .creator-artwork-card .button {
  min-height: 32px;
  align-self: end;
}
.customer-app .saved-position-previews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 3px;
  width: 100%;
}
.customer-app .saved-position-previews img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 7px;
}

.customer-app .upload-box { border-color: var(--line); color: var(--muted); background: #0d1110; }
.customer-app .upload-box:hover { border-color: var(--cyan); background: rgba(40,215,229,.06); }
.customer-app .upload-box.is-uploading {
  border-color: rgba(40, 215, 229, .76);
  background: rgba(40, 215, 229, .08);
  cursor: wait;
}
.customer-app .upload-box.is-uploading strong::after {
  content: " · 处理中";
  color: var(--cyan);
  font-size: 11px;
}
.customer-app .asset-upload-status {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px 10px;
  margin-top: 9px;
  padding: 10px 12px;
  border: 1px solid rgba(40, 215, 229, .32);
  border-radius: 9px;
  color: var(--text);
  background: rgba(40, 215, 229, .06);
}
.customer-app .asset-upload-status[hidden] { display: none; }
.customer-app .asset-upload-status-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 2px solid rgba(40, 215, 229, .28);
  border-top-color: var(--cyan);
  border-radius: 50%;
}
.customer-app .asset-upload-status.is-busy .asset-upload-status-icon { animation: asset-upload-status-spin .72s linear infinite; }
.customer-app .asset-upload-status-icon::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 2px 10px rgba(184, 255, 61, .34);
}
.customer-app .asset-upload-status-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}
.customer-app .asset-upload-status-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.customer-app .asset-upload-status-copy strong { font-size: 12px; font-weight: 850; }
.customer-app .asset-upload-status-copy small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.customer-app .asset-upload-progress {
  grid-column: 1 / -1;
  display: block;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
}
.customer-app .asset-upload-progress > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--cyan);
  transition: width 160ms ease;
}
.customer-app .asset-upload-status.is-error {
  border-color: rgba(255, 104, 75, .62);
  background: rgba(255, 104, 75, .08);
}
.customer-app .asset-upload-status.is-error .asset-upload-status-icon {
  border-color: var(--coral);
  animation: none;
}
.customer-app .asset-upload-status.is-error .asset-upload-status-icon::after {
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--coral);
  box-shadow: none;
  transform: rotate(45deg);
}
.customer-app .asset-upload-status.is-success {
  border-color: rgba(184, 255, 61, .5);
  background: rgba(184, 255, 61, .07);
}
.customer-app .asset-upload-status.is-success .asset-upload-status-icon {
  border-color: var(--green);
  animation: none;
}
.customer-app .asset-upload-status.is-success .asset-upload-status-icon::after {
  content: "✓";
  width: auto;
  height: auto;
  color: var(--green);
  background: transparent;
  box-shadow: none;
  font-size: 15px;
  line-height: 1;
}
.customer-app .asset-upload-status.is-success .asset-upload-progress { display: none; }
@keyframes asset-upload-status-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .customer-app .asset-upload-status.is-busy .asset-upload-status-icon { animation: none; }
  .customer-app .asset-upload-progress > span { transition: none; }
}
.customer-app .status-pill { border-color: rgba(184,255,61,.3); color: var(--green); background: rgba(184,255,61,.07); }
.customer-app .artwork-image-button {
  background-color: #f4f6f4;
  background-image: linear-gradient(45deg, rgba(18, 24, 24, 0.08) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, rgba(18, 24, 24, 0.08) 75%), linear-gradient(45deg, transparent 75%, rgba(18, 24, 24, 0.08) 75%), linear-gradient(45deg, rgba(18, 24, 24, 0.08) 25%, transparent 25%);
  background-position: 0 0, 0 0, 9px 9px, 9px 9px;
  background-size: 18px 18px;
}
.customer-app .artwork-card span,
.customer-app .order-draft-copy strong { color: var(--muted); }
.customer-app .saved-item strong { color: white; background: rgba(7,9,9,.76); }
.customer-app .saved-item.active { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(40,215,229,.12); }
.customer-app .order-draft-total,
.customer-app .total-row strong { color: var(--green); }

@media (max-width: 1180px) {
  .home-topbar,
  .catalog-topbar,
  .editor-shell .topbar { grid-template-columns: 1fr auto; }
  .home-nav { display: none; }
  .home-hero { grid-template-columns: 1fr; }
  .home-hero-preview { min-height: 620px; }
  .catalog-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-app .studio { grid-template-columns: 1fr 1fr; }
  .customer-app .stage-panel { grid-column: 1 / -1; grid-row: 1; }
}

@media (max-width: 820px) {
  .home-topbar,
  .catalog-topbar,
  .editor-shell .topbar {
    display: flex;
    min-height: auto;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .home-actions,
  .catalog-account,
  .top-actions { width: 100%; justify-content: flex-start; overflow-x: auto; }
  .home-hero { grid-template-columns: 1fr; min-height: auto; padding-block: 64px; }
  .home-hero h1 { font-size: clamp(42px, 13vw, 64px); }
  .home-hero-preview { min-height: 520px; }
  .home-section { padding-block: 72px; }
  .home-section-head { align-items: flex-start; flex-direction: column; }
  .home-design-card,
  .home-design-card:nth-child(5n + 1),
  .home-design-card:nth-child(5n + 2) { grid-column: 1 / -1; }
  .catalog-hero,
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-hero { padding-top: 54px; }
  .catalog-category-tabs { display: flex; overflow-x: auto; }
  .catalog-category-tab { flex: 0 0 auto; }
  .catalog-product-grid { grid-template-columns: 1fr; }
  .customer-app .studio { grid-template-columns: 1fr; }
  .customer-app .stage-panel { grid-column: auto; }
  .customer-app .canvas-shell { min-height: auto; aspect-ratio: 1; }
}

/* The product tool is a live operations catalog, not a static category picker. */
.customer-app .editor-product-catalog {
  grid-template-columns: minmax(0, 1fr);
}

.customer-app .editor-product-option {
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
}

.customer-app .editor-product-option:hover,
.customer-app .editor-product-option.active {
  border-color: rgba(40, 215, 229, 0.58);
  background: rgba(40, 215, 229, 0.1);
}

.customer-app .editor-product-media {
  background: #eef3f2;
}

@media (prefers-reduced-motion: reduce) {
  .customer-app *,
  .customer-app *::before,
  .customer-app *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Customized product detail workspace */
body.customized-detail-open {
  overflow: hidden;
}

.customer-app .customized-detail-modal {
  z-index: 2400;
  padding: 0;
  align-items: stretch;
  background: rgba(3, 6, 6, 0.92);
}

.customer-app .customized-detail-shell {
  display: grid;
  width: 100%;
  height: 100dvh;
  min-height: 0;
  grid-template-rows: auto auto minmax(0, 1fr);
  color: #edf2ed;
  background: #080b0b;
}

.customer-app .customized-detail-header {
  display: grid;
  min-height: 78px;
  padding: 14px clamp(18px, 3vw, 48px);
  grid-template-columns: minmax(110px, 0.3fr) minmax(0, 1fr) 44px;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid rgba(230, 240, 233, 0.11);
  background: #0b0f0e;
}

.customer-app .customized-detail-back {
  display: inline-flex;
  width: fit-content;
  min-height: 40px;
  padding: 0;
  align-items: center;
  gap: 9px;
  border: 0;
  color: rgba(230, 239, 233, 0.7);
  background: transparent;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.customer-app .customized-detail-back:hover {
  color: #28d7e5;
}

.customer-app .customized-detail-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
}

.customer-app .customized-detail-heading h2 {
  margin: 0;
  color: #f3f6f2;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: 0;
}

.customer-app .customized-detail-heading p {
  margin: 6px 0 0;
  overflow: hidden;
  color: rgba(216, 226, 219, 0.5);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-app .customized-detail-state strong {
  display: inline-flex;
  min-height: 28px;
  padding: 0 11px;
  align-items: center;
  border: 1px solid rgba(184, 255, 61, 0.35);
  border-radius: 999px;
  color: #b8ff3d;
  background: rgba(184, 255, 61, 0.06);
  font-size: 11px;
}

.customer-app .customized-detail-close {
  width: 42px;
  height: 42px;
  border-color: rgba(230, 240, 233, 0.14);
  border-radius: 50%;
  font-size: 23px;
}

.customer-app .customized-detail-tabs {
  display: grid;
  min-height: 58px;
  padding: 0 clamp(18px, 3vw, 48px);
  grid-template-columns: repeat(4, minmax(128px, 1fr));
  border-bottom: 1px solid rgba(230, 240, 233, 0.11);
  background: #0b0f0e;
}

.customer-app .customized-detail-tabs button {
  position: relative;
  min-height: 58px;
  padding: 0 18px;
  border: 0;
  color: rgba(219, 228, 222, 0.52);
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 720;
  cursor: pointer;
}

.customer-app .customized-detail-tabs button::after {
  position: absolute;
  right: 20%;
  bottom: -1px;
  left: 20%;
  height: 2px;
  background: transparent;
  content: "";
}

.customer-app .customized-detail-tabs button:hover {
  color: #f0f4ef;
}

.customer-app .customized-detail-tabs button.active {
  color: #f6f9f5;
}

.customer-app .customized-detail-tabs button.active::after {
  background: #28d7e5;
}

.customer-app .customized-detail-body {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

.customer-app .customized-detail-panel {
  width: min(1480px, 100%);
  min-height: 100%;
  margin: 0 auto;
  padding: clamp(24px, 3vw, 48px);
  animation: customized-panel-enter 220ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.customer-app .customized-detail-panel[hidden] {
  display: none;
}

@keyframes customized-panel-enter {
  from { opacity: 0.01; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.customer-app .customized-overview-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.62fr);
  align-items: start;
  gap: clamp(28px, 4vw, 68px);
}

.customer-app .customized-gallery {
  display: grid;
  min-width: 0;
  gap: 14px;
}

.customer-app .customized-gallery-stage {
  position: relative;
  display: grid;
  width: 100%;
  min-height: min(66vh, 720px);
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #eef1ed;
}

.customer-app .customized-gallery-stage > img {
  display: block;
  width: 100%;
  height: min(66vh, 720px);
  object-fit: contain;
}

.customer-app .customized-gallery-stage > span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #eef4ef;
  background: rgba(6, 10, 9, 0.82);
  font-size: 11px;
}

.customer-app .customized-gallery-thumbs {
  display: flex;
  min-height: 84px;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.customer-app .customized-gallery-thumb-wrap {
  position: relative;
  flex: 0 0 84px;
  height: 84px;
}

.customer-app .customized-gallery-thumb-wrap > button:first-child {
  width: 84px;
  height: 84px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(230, 240, 233, 0.14);
  border-radius: 6px;
  background: #eef1ed;
  cursor: pointer;
}

.customer-app .customized-gallery-thumb-wrap.active > button:first-child {
  border-color: #28d7e5;
  box-shadow: 0 0 0 2px rgba(40, 215, 229, 0.2);
}

.customer-app .customized-gallery-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.customer-app .customized-gallery-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  width: 24px;
  height: 24px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  color: #fff;
  background: rgba(6, 9, 8, 0.84);
  cursor: pointer;
}

.customer-app .customized-overview-copy {
  display: grid;
  align-content: start;
  gap: 28px;
}

.customer-app .customized-overview-title > span {
  display: block;
  margin-bottom: 8px;
  color: #28d7e5;
  font-size: 12px;
  font-weight: 760;
}

.customer-app .customized-overview-title h3 {
  margin: 0;
  color: #f4f7f3;
  font-size: 42px;
  line-height: 1.12;
  letter-spacing: 0;
}

.customer-app .customized-product-facts {
  margin: 0;
  border-top: 1px solid rgba(230, 240, 233, 0.12);
}

.customer-app .customized-product-facts > div {
  display: grid;
  min-height: 50px;
  padding: 12px 0;
  grid-template-columns: 94px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(230, 240, 233, 0.1);
}

.customer-app .customized-product-facts dt {
  color: rgba(216, 226, 219, 0.46);
  font-size: 12px;
}

.customer-app .customized-product-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: rgba(241, 245, 241, 0.9);
  font-size: 13px;
  line-height: 1.55;
  text-align: right;
}

.customer-app .customized-actual-upload {
  display: grid;
  padding: 18px;
  gap: 14px;
  border: 1px dashed rgba(40, 215, 229, 0.35);
  border-radius: 8px;
  background: rgba(40, 215, 229, 0.035);
}

.customer-app .customized-actual-upload > div {
  display: grid;
  gap: 5px;
}

.customer-app .customized-actual-upload strong {
  font-size: 14px;
}

.customer-app .customized-actual-upload span,
.customer-app .customized-actual-upload small {
  color: rgba(216, 226, 219, 0.52);
  font-size: 12px;
  line-height: 1.55;
}

.customer-app .customized-upload-button {
  width: 100%;
  min-height: 42px;
  cursor: pointer;
}

.customer-app .customized-panel-heading {
  display: flex;
  margin-bottom: 30px;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.customer-app .customized-panel-heading h3 {
  margin: 0;
  color: #f4f7f3;
  font-size: 40px;
  line-height: 1.14;
  letter-spacing: 0;
}

.customer-app .customized-panel-heading p {
  max-width: 680px;
  margin: 9px 0 0;
  color: rgba(216, 226, 219, 0.5);
  font-size: 13px;
  line-height: 1.65;
}

.customer-app .customized-panel-heading > span {
  flex: 0 0 auto;
  color: rgba(216, 226, 219, 0.58);
  font-size: 13px;
}

.customer-app .customized-repurchase-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.55fr);
  gap: clamp(28px, 5vw, 80px);
}

.customer-app .customized-size-table-head,
.customer-app .customized-size-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(110px, 0.45fr) 42px;
  align-items: center;
  gap: 12px;
}

.customer-app .customized-size-table-head {
  padding: 0 0 10px;
  color: rgba(216, 226, 219, 0.46);
  font-size: 11px;
}

.customer-app .customized-size-row {
  min-height: 66px;
  padding: 11px 0;
  border-top: 1px solid rgba(230, 240, 233, 0.11);
}

.customer-app .customized-size-row:last-child {
  border-bottom: 1px solid rgba(230, 240, 233, 0.11);
}

.customer-app .customized-size-row select,
.customer-app .customized-size-row input {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(230, 240, 233, 0.15);
  border-radius: 6px;
  color: #eff4ef;
  background: #101514;
}

.customer-app .customized-size-row > button {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(230, 240, 233, 0.14);
  border-radius: 50%;
  color: rgba(230, 240, 233, 0.65);
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}

.customer-app .customized-size-row > button:disabled {
  opacity: 0.25;
  cursor: default;
}

.customer-app .customized-add-size {
  min-height: 42px;
  margin-top: 16px;
}

.customer-app .customized-repurchase-summary {
  align-self: start;
  padding: 24px;
  border-radius: 8px;
  background: #111615;
}

.customer-app .customized-repurchase-summary h4 {
  margin: 0 0 17px;
  font-size: 18px;
}

.customer-app #creatorDesignDiscountTiers {
  display: flex;
  padding-bottom: 18px;
  flex-wrap: wrap;
  gap: 7px;
  border-bottom: 1px solid rgba(230, 240, 233, 0.1);
}

.customer-app #creatorDesignDiscountTiers span {
  padding: 5px 8px;
  border: 1px solid rgba(230, 240, 233, 0.12);
  border-radius: 999px;
  color: rgba(216, 226, 219, 0.5);
  font-size: 10px;
}

.customer-app #creatorDesignDiscountTiers span.active {
  border-color: rgba(184, 255, 61, 0.4);
  color: #b8ff3d;
}

.customer-app .customized-price-summary {
  display: grid;
  padding: 14px 0 20px;
  gap: 10px;
}

.customer-app .customized-price-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(220, 229, 223, 0.58);
  font-size: 12px;
}

.customer-app .customized-price-summary > div strong {
  color: #eef3ee;
}

.customer-app .customized-price-summary > div.total {
  margin-top: 5px;
  padding-top: 16px;
  align-items: end;
  border-top: 1px solid rgba(230, 240, 233, 0.12);
}

.customer-app .customized-price-summary > div.total strong {
  color: #b8ff3d;
  font-size: 26px;
}

.customer-app .customized-price-summary small {
  color: rgba(216, 226, 219, 0.46);
  line-height: 1.5;
}

.customer-app .customized-repurchase-summary > .button {
  width: 100%;
  min-height: 48px;
}

.customer-app .customized-publication-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr);
  gap: clamp(28px, 5vw, 80px);
}

.customer-app .customized-publication-options {
  border-top: 1px solid rgba(230, 240, 233, 0.12);
}

.customer-app .customized-switch-row {
  display: grid;
  min-height: 86px;
  padding: 16px 0;
  grid-template-columns: minmax(0, 1fr) 50px;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid rgba(230, 240, 233, 0.12);
  cursor: pointer;
}

.customer-app .customized-switch-row > span {
  display: grid;
  gap: 6px;
}

.customer-app .customized-switch-row strong {
  font-size: 15px;
}

.customer-app .customized-switch-row small {
  color: rgba(216, 226, 219, 0.48);
  font-size: 12px;
  line-height: 1.5;
}

.customer-app .customized-switch-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.customer-app .customized-switch-row i {
  position: relative;
  display: block;
  width: 48px;
  height: 26px;
  border: 1px solid rgba(230, 240, 233, 0.18);
  border-radius: 999px;
  background: #171d1b;
  transition: background 180ms ease, border-color 180ms ease;
}

.customer-app .customized-switch-row i::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(238, 244, 239, 0.74);
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), background 180ms ease;
  content: "";
}

.customer-app .customized-switch-row input:checked + i {
  border-color: #b8ff3d;
  background: #b8ff3d;
}

.customer-app .customized-switch-row input:checked + i::after {
  background: #071009;
  transform: translateX(22px);
}

.customer-app .customized-switch-row input:disabled + i {
  opacity: 0.35;
}

.customer-app .customized-switch-row:focus-within i {
  outline: 2px solid #28d7e5;
  outline-offset: 3px;
}

.customer-app .customized-markup-controls {
  display: grid;
  padding-top: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.customer-app .customized-publication-grid .creator-manage-income {
  align-self: start;
  padding: 24px;
  border: 0;
  border-radius: 8px;
  background: #111615;
}

.customer-app .customized-publication-grid .creator-manage-income > strong {
  color: #b8ff3d;
  font-size: 48px;
}

.customer-app .customized-publication-grid .creator-manage-income > div {
  display: flex;
  padding-top: 12px;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(230, 240, 233, 0.1);
  color: rgba(216, 226, 219, 0.56);
  font-size: 12px;
}

.customer-app .customized-publication-grid .creator-manage-income > div b {
  color: #edf3ed;
}

.customer-app .customized-publication-grid .creator-manage-income > div.income-total b {
  color: #28d7e5;
}

.customer-app .customized-publication-grid .creator-manage-income > small {
  color: rgba(216, 226, 219, 0.42);
  line-height: 1.55;
}

.customer-app .customized-publication-actions {
  display: flex;
  margin-top: 34px;
  padding-top: 20px;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  border-top: 1px solid rgba(230, 240, 233, 0.1);
}

.customer-app .customized-publication-actions > span {
  color: rgba(216, 226, 219, 0.48);
  font-size: 12px;
}

.customer-app .customized-publication-actions .button {
  min-width: 220px;
  min-height: 46px;
}

.customer-app .customized-poster-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.62fr) minmax(380px, 1fr);
  align-items: center;
  gap: clamp(34px, 7vw, 110px);
}

.customer-app .customized-poster-preview {
  display: grid;
  place-items: center;
}

.customer-app .customized-poster-canvas {
  display: grid;
  width: min(100%, 390px);
  aspect-ratio: 9 / 16;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(230, 240, 233, 0.12);
  border-radius: 8px;
  background: #0f1413;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

.customer-app .customized-poster-canvas img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.customer-app .customized-poster-canvas > div {
  display: grid;
  max-width: 260px;
  padding: 24px;
  place-items: center;
  gap: 9px;
  color: rgba(231, 238, 233, 0.8);
  text-align: center;
}

.customer-app .customized-poster-canvas > div span {
  color: rgba(216, 226, 219, 0.46);
  font-size: 12px;
  line-height: 1.6;
}

.customer-app .customized-poster-controls {
  display: grid;
  max-width: 640px;
  gap: 20px;
}

.customer-app .customized-poster-controls .customized-panel-heading {
  margin-bottom: 4px;
}

.customer-app .customized-poster-controls textarea {
  min-height: 96px;
  resize: vertical;
}

.customer-app .customized-poster-background {
  display: grid;
  gap: 8px;
  color: rgba(231, 238, 233, 0.82);
  font-size: 12px;
}

.customer-app .customized-poster-background input {
  width: 100%;
  padding: 11px;
  border: 1px solid rgba(230, 240, 233, 0.14);
  border-radius: 6px;
  color: rgba(231, 238, 233, 0.72);
  background: #101514;
}

.customer-app .customized-poster-background small,
.customer-app .customized-poster-status {
  margin: 0;
  color: rgba(216, 226, 219, 0.46);
  font-size: 11px;
}

.customer-app .customized-poster-actions {
  display: grid;
  grid-template-columns: minmax(150px, 1.35fr) repeat(2, minmax(100px, 0.65fr));
  gap: 10px;
}

.customer-app .customized-detail-shell button:focus-visible,
.customer-app .customized-detail-shell input:focus-visible,
.customer-app .customized-detail-shell select:focus-visible,
.customer-app .customized-detail-shell textarea:focus-visible {
  outline: 2px solid #28d7e5;
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .customer-app .customized-overview-panel,
  .customer-app .customized-repurchase-workspace,
  .customer-app .customized-publication-grid,
  .customer-app .customized-poster-panel {
    grid-template-columns: 1fr;
  }

  .customer-app .customized-gallery-stage,
  .customer-app .customized-gallery-stage > img {
    min-height: 0;
    height: min(54vh, 560px);
  }

  .customer-app .customized-overview-copy {
    gap: 22px;
  }

  .customer-app .customized-repurchase-summary,
  .customer-app .customized-publication-grid .creator-manage-income {
    width: 100%;
  }

  .customer-app .customized-poster-preview {
    order: 2;
  }

  .customer-app .customized-poster-controls {
    order: 1;
    max-width: none;
  }

  .customer-app .customized-poster-canvas {
    width: min(72vw, 390px);
  }
}

@media (max-width: 620px) {
  .customer-app .customized-detail-header {
    min-height: 64px;
    padding: 9px 12px;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 8px;
  }

  .customer-app .customized-detail-back {
    display: grid;
    width: 40px;
    place-items: center;
    font-size: 20px;
  }

  .customer-app .customized-detail-back span,
  .customer-app .customized-detail-state,
  .customer-app .customized-detail-heading p {
    display: none;
  }

  .customer-app .customized-detail-heading h2 {
    font-size: 18px;
  }

  .customer-app .customized-detail-tabs {
    min-height: 52px;
    padding: 0 5px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .customer-app .customized-detail-tabs button {
    min-width: 0;
    min-height: 52px;
    padding: 0 4px;
    font-size: 11px;
  }

  .customer-app .customized-detail-tabs button::after {
    right: 12%;
    left: 12%;
  }

  .customer-app .customized-detail-panel {
    padding: 16px 14px max(32px, env(safe-area-inset-bottom));
  }

  .customer-app .customized-overview-panel {
    gap: 24px;
  }

  .customer-app .customized-gallery-stage,
  .customer-app .customized-gallery-stage > img {
    height: min(48vh, 430px);
  }

  .customer-app .customized-gallery-thumb-wrap,
  .customer-app .customized-gallery-thumb-wrap > button:first-child {
    width: 72px;
    height: 72px;
  }

  .customer-app .customized-gallery-thumb-wrap {
    flex-basis: 72px;
  }

  .customer-app .customized-overview-title h3,
  .customer-app .customized-panel-heading h3 {
    font-size: 25px;
  }

  .customer-app .customized-panel-heading {
    margin-bottom: 22px;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .customer-app .customized-size-table-head,
  .customer-app .customized-size-row {
    grid-template-columns: minmax(0, 1fr) 92px 38px;
    gap: 8px;
  }

  .customer-app .customized-repurchase-workspace,
  .customer-app .customized-publication-grid,
  .customer-app .customized-poster-panel {
    gap: 24px;
  }

  .customer-app .customized-repurchase-summary,
  .customer-app .customized-publication-grid .creator-manage-income {
    padding: 18px;
  }

  .customer-app .customized-markup-controls {
    grid-template-columns: 1fr;
  }

  .customer-app .customized-publication-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .customer-app .customized-publication-actions .button {
    width: 100%;
    min-width: 0;
  }

  .customer-app .customized-poster-canvas {
    width: min(88vw, 360px);
  }

  .customer-app .customized-poster-actions {
    grid-template-columns: 1fr 1fr;
  }

  .customer-app .customized-poster-actions .button:first-child {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .customer-app .customized-detail-panel {
    animation: none;
  }
}

/* Service-account notification activation */
.customer-app .official-follow-card {
  display: grid;
  gap: 24px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(40, 215, 229, 0.24);
  border-radius: 12px;
  color: #f2f5ef;
  background: #0a0f0e;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.28);
}

.customer-app .payment-official-follow {
  margin: -30px 0 72px;
}

.customer-app .official-follow-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 16px;
}

.customer-app .official-follow-identity h2,
.customer-app .official-follow-identity h3 {
  margin: 0;
  color: #f2f5ef;
  font-size: clamp(22px, 2.8vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.customer-app .official-follow-identity h3 { font-size: 24px; }

.customer-app .official-follow-identity p {
  max-width: 64ch;
  margin: 8px 0 0;
  color: rgba(226, 239, 233, 0.68);
  font-size: 13px;
  line-height: 1.65;
}

.customer-app .official-follow-avatar {
  display: grid;
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(184, 255, 61, 0.42);
  border-radius: 14px;
  color: #b8ff3d;
  background: #101612;
  font-size: 16px;
  font-weight: 900;
}

.customer-app .official-follow-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.customer-app .official-follow-content {
  display: grid;
  grid-template-columns: minmax(148px, 188px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  padding-top: 22px;
  border-top: 1px solid rgba(226, 239, 233, 0.1);
}

.customer-app .official-follow-content.is-enabled {
  grid-template-columns: 1fr;
}

.customer-app .official-follow-qr {
  display: grid;
  margin: 0;
  gap: 9px;
}

.customer-app .official-follow-qr img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  background: white;
}

.customer-app .official-follow-qr img[hidden] { display: none; }

.customer-app .official-follow-qr figcaption {
  color: rgba(226, 239, 233, 0.55);
  font-size: 11px;
  line-height: 1.55;
  text-align: center;
}

.customer-app .official-follow-actions {
  display: grid;
  max-width: 520px;
  gap: 10px;
}

.customer-app .official-follow-actions .button {
  width: 100%;
  min-height: 44px;
}

.customer-app .official-follow-signal {
  display: grid;
  margin-bottom: 8px;
  grid-template-columns: 10px 1fr;
  gap: 2px 10px;
}

.customer-app .official-follow-signal > span {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: #28d7e5;
  box-shadow: 0 5px 16px rgba(40, 215, 229, 0.24);
}

.customer-app .official-follow-signal strong { font-size: 15px; }
.customer-app .official-follow-signal small { grid-column: 2; color: rgba(226, 239, 233, 0.48); line-height: 1.55; }

.customer-app .official-follow-feedback {
  min-height: 18px;
  margin: 2px 0 0;
  color: #28d7e5;
  font-size: 12px;
  line-height: 1.55;
}

.customer-app .profile-official-follow {
  margin: 18px 0 26px;
  box-shadow: none;
}

.customer-app .official-follow-state {
  margin-left: auto;
  padding: 7px 11px;
  border-radius: 999px;
  color: #d9e1dc;
  background: rgba(226, 239, 233, 0.08);
  font-size: 11px;
  font-weight: 850;
}

.customer-app .official-follow-state[data-state="enabled"] { color: #071010; background: #b8ff3d; }
.customer-app .official-follow-state[data-state="unfollowed"],
.customer-app .official-follow-state[data-state="unavailable"] { color: #ffd4ca; background: rgba(255, 104, 75, 0.14); }

.customer-app .profile-nav-count {
  position: absolute;
  top: 8px;
  right: 5px;
  display: grid;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  place-items: center;
  border-radius: 999px;
  color: #071010;
  background: #b8ff3d;
  font-size: 10px;
  font-weight: 900;
}

.customer-app .notification-list {
  display: grid;
  border-top: 1px solid rgba(226, 239, 233, 0.1);
}

.customer-app .notification-row {
  display: grid;
  min-width: 0;
  padding: 18px 0;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid rgba(226, 239, 233, 0.09);
}

.customer-app .notification-row.is-read { opacity: 0.62; }
.customer-app .notification-row.is-unread strong { color: #f2f5ef; }

.customer-app .notification-type {
  display: grid;
  min-height: 34px;
  place-items: center;
  border-radius: 999px;
  color: #28d7e5;
  background: rgba(40, 215, 229, 0.1);
  font-size: 11px;
  font-weight: 850;
}

.customer-app .notification-row p,
.customer-app .notification-row time { display: block; margin: 5px 0 0; color: rgba(226, 239, 233, 0.56); font-size: 12px; line-height: 1.6; }
.customer-app .notification-row time { color: rgba(226, 239, 233, 0.38); font-size: 11px; }

.customer-app .notification-empty {
  display: grid;
  min-height: 180px;
  place-content: center;
  gap: 8px;
  color: rgba(226, 239, 233, 0.52);
  text-align: center;
}

.customer-app .notification-empty strong { color: #f2f5ef; font-size: 18px; }

@media (max-width: 680px) {
  .customer-app .payment-official-follow { margin: -12px 0 42px; }
  .customer-app .official-follow-card { padding: 20px 16px; gap: 18px; }
  .customer-app .official-follow-content { grid-template-columns: 1fr; gap: 20px; }
  .customer-app .official-follow-qr { width: min(100%, 220px); justify-self: center; }
  .customer-app .official-follow-avatar { width: 52px; height: 52px; flex-basis: 52px; }
  .customer-app .official-follow-identity h2 { font-size: 24px; }
  .customer-app .official-follow-state { padding: 6px 8px; }
  .customer-app .notification-row { grid-template-columns: 48px minmax(0, 1fr); }
  .customer-app .notification-row .mini-button { grid-column: 2; justify-self: start; }
}

/* Product picker: real operations categories drive a bounded, distortion-free product list. */
.customer-app #productPanel .editor-product-filters {
  display: flex;
  gap: 6px;
  margin: 0 0 10px;
  padding-bottom: 2px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.customer-app #productPanel .editor-product-filter {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  background: #101414;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.customer-app #productPanel .editor-product-filter strong {
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding-inline: 4px;
  border-radius: 5px;
  color: currentColor;
  background: rgba(255, 255, 255, 0.08);
  font-size: 10px;
}

.customer-app #productPanel .editor-product-filter:hover,
.customer-app #productPanel .editor-product-filter.active {
  border-color: rgba(40, 215, 229, 0.58);
  color: var(--cyan);
  background: rgba(40, 215, 229, 0.1);
}

.customer-app #categoryGrid.editor-product-catalog {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  width: 100%;
  max-height: 390px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.customer-app #categoryGrid .editor-product-option {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  min-height: 116px;
  align-items: center;
  gap: 12px;
  padding: 8px;
  overflow: hidden;
}

.customer-app #categoryGrid .editor-product-media {
  position: relative;
  display: grid;
  width: 92px;
  min-width: 92px;
  max-width: 92px;
  height: 100px;
  min-height: 100px;
  max-height: 100px;
  place-items: center;
  contain: layout paint;
  overflow: hidden;
  border-radius: 8px;
  background: #eef3f2;
}

.customer-app #categoryGrid .editor-product-media img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  padding: 6px;
  object-fit: contain;
  object-position: center;
}

.customer-app #categoryGrid .editor-product-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #18201c;
  font-size: 24px;
  font-weight: 900;
}

.customer-app #categoryGrid .editor-product-copy {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 5px;
}

.customer-app #categoryGrid .editor-product-copy small,
.customer-app #categoryGrid .editor-product-copy strong,
.customer-app #categoryGrid .editor-product-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-app #categoryGrid .editor-product-copy small { color: var(--cyan); }
.customer-app #categoryGrid .editor-product-copy strong { font-size: 14px; }
.customer-app #categoryGrid .editor-product-meta { color: var(--muted); font-size: 10px; }

@media (max-width: 820px) {
  .customer-app #categoryGrid.editor-product-catalog {
    grid-template-columns: minmax(0, 1fr);
    max-height: min(48dvh, 420px);
    overflow-x: hidden;
  }

  .customer-app #categoryGrid .editor-product-option { min-width: 0; }
}

* {
  box-sizing: border-box;
}

/* Editorial carousel and case index: several works stay visible in one frame. */
.customer-app .hero-carousel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  width: min(94%, 760px);
  min-height: 560px;
  margin-left: 0;
  padding: 16px;
  border: 1px solid rgba(242, 245, 239, 0.18);
  border-radius: 12px;
  background: #0b0e0e;
  box-shadow: 0 34px 94px rgba(0, 0, 0, 0.48);
  transform: perspective(1200px) rotateY(-3deg) rotateX(1deg);
}

.customer-app .hero-carousel-kicker {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  padding: 2px 2px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.customer-app .hero-carousel-kicker b { color: var(--cyan); font-weight: 800; }

.customer-app .hero-feature-card {
  grid-column: 1;
  grid-row: 2;
  min-height: 410px;
  padding: 28px;
  border: 1px solid rgba(40, 215, 229, 0.26);
  border-radius: 10px;
  background: #101414;
}

.customer-app .hero-feature-card::before,
.customer-app .hero-feature-card::after {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: rgba(184, 255, 61, 0.68);
  content: "";
  pointer-events: none;
}

.customer-app .hero-feature-card::before { top: 12px; left: 12px; border-top: 1px solid; border-left: 1px solid; }
.customer-app .hero-feature-card::after { right: 12px; bottom: 12px; border-right: 1px solid; border-bottom: 1px solid; }
.customer-app .hero-feature-card img { max-height: 350px; }
.customer-app .hero-feature-caption { position: absolute; right: 16px; bottom: 14px; color: var(--muted); font-size: 10px; letter-spacing: 0.04em; }
.customer-app .hero-thumb-rail { grid-column: 2; grid-row: 2 / span 2; gap: 8px; }
.customer-app .hero-thumb { min-height: 68px; border-radius: 8px; }
.customer-app .hero-carousel-meta { grid-column: 1; grid-row: 3; padding: 12px 2px 0; border-top: 1px solid var(--line); border-radius: 0; }
.customer-app .hero-carousel-meta strong { font-size: 18px; }
.customer-app .hero-carousel-meta span { color: var(--muted); }

.customer-app .home-showcase-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 31vw);
  grid-template-columns: none;
  gap: 14px;
  padding-bottom: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--cyan) transparent;
}

.customer-app .home-showcase-grid .home-design-card {
  grid-column: auto !important;
  min-width: 0;
  scroll-snap-align: start;
}

.customer-app .home-design-card:hover { border-color: rgba(40, 215, 229, 0.48); transform: translateY(-3px); }
.customer-app .home-design-image { aspect-ratio: 1.22; min-height: 0; }
.customer-app .home-design-image img { object-fit: contain; padding: 18px; }
.customer-app .home-design-body { display: grid; gap: 16px; padding: 18px; }
.customer-app .home-design-signal { display: grid; grid-template-columns: auto auto; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: 0.12em; }
.customer-app .home-design-signal strong { color: var(--cyan); font-size: 14px; letter-spacing: 0; }
.customer-app .home-design-signal i { grid-column: 1 / -1; display: block; height: 3px; overflow: hidden; background: rgba(242, 245, 239, 0.12); }
.customer-app .home-design-signal b { display: block; height: 100%; background: var(--green); }

.site-legal-footer {
  position: relative;
  z-index: 4;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #070909;
}

.site-legal-inner {
  display: flex;
  max-width: 1560px;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto;
  padding: 18px clamp(20px, 4vw, 64px);
  font-size: 11px;
  letter-spacing: 0.02em;
}

.site-legal-inner strong { color: rgba(242, 245, 239, 0.72); font-weight: 700; }
.site-legal-inner a { color: var(--muted); text-decoration: none; }
.site-legal-inner a:hover { color: var(--green); }

@media (max-width: 560px) {
  .site-legal-inner { align-items: flex-start; flex-direction: column; gap: 7px; }
}

/* Checkout details stay readable and expose optional production guidance. */
.customer-app #checkoutModal .checkout-item-row {
  align-items: start;
  min-height: 96px;
}

.customer-app #checkoutModal .checkout-item-row > div {
  align-content: start;
  gap: 6px;
}

.customer-app #checkoutModal .checkout-item-row > div > strong,
.customer-app #checkoutModal .checkout-item-row > div > span {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  line-height: 1.5;
}

.customer-app #checkoutModal .checkout-item-row > div > span {
  font-size: 13px;
}

.customer-app #checkoutModal .checkout-item-row > :last-child {
  align-self: start;
  white-space: nowrap;
  font-size: 15px;
}

.customer-app .checkout-print-size-suggestions {
  display: grid;
  gap: 8px;
  margin-top: 5px;
  padding: 10px;
  border: 1px solid rgba(40, 215, 229, 0.24);
  border-radius: 8px;
  background: rgba(40, 215, 229, 0.045);
}

.customer-app .checkout-print-size-suggestions-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.customer-app .checkout-print-size-suggestions-head > div {
  display: grid;
  gap: 3px;
}

.customer-app .checkout-print-size-suggestions-head strong {
  color: var(--soft);
  font-size: 13px;
}

.customer-app .checkout-print-size-suggestions-head strong small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.customer-app .checkout-print-size-suggestions-head span,
.customer-app .checkout-print-size-empty {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.customer-app .checkout-print-size-suggestions-head .button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 10px;
  font-size: 11px;
}

.customer-app .checkout-print-size-list {
  display: grid;
  gap: 7px;
}

.customer-app .checkout-print-size-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
  align-items: end;
  gap: 7px;
}

.customer-app .checkout-print-size-row label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
}

.customer-app .checkout-print-size-row input {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 0 8px;
  color: var(--soft);
  background: rgba(5, 8, 9, 0.72);
  font-size: 16px;
}

.customer-app .checkout-print-size-row em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.customer-app .checkout-print-size-times {
  padding-bottom: 10px;
  color: var(--cyan);
  font-size: 16px;
  font-weight: 800;
}

.customer-app .checkout-print-size-row .mini-button {
  min-height: 38px;
  padding: 0 8px;
  white-space: nowrap;
}

@media (min-width: 821px) {
  .customer-app #checkoutModal .checkout-dialog > .order-summary {
    max-height: min(52vh, 520px);
    font-size: 14px;
  }
}

@media (max-width: 520px) {
  .customer-app #checkoutModal .checkout-item-row {
    grid-template-columns: 52px minmax(0, 1fr) auto;
  }

  .customer-app .checkout-print-size-suggestions {
    grid-column: 1 / -1;
  }

  .customer-app .checkout-print-size-row {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .customer-app .checkout-print-size-row .mini-button {
    grid-column: 1 / -1;
    justify-self: end;
    min-height: 34px;
  }
}

@media (max-width: 820px) {
  .customer-app .home-hero > div:first-child { align-items: flex-start; }
  .customer-app .home-hero .button.primary { width: max-content; min-width: 0; }
  .customer-app .home-hero-preview { min-height: 0; border: 0; background: transparent; box-shadow: none; overflow: visible; }
  .customer-app .hero-carousel { width: 100%; min-height: 0; transform: none; }
  .customer-app .hero-feature-card { min-height: 350px; padding: 20px; }
  .customer-app .hero-feature-card img { max-height: 290px; }
  .customer-app .home-showcase-grid { grid-auto-columns: minmax(76vw, 330px); }
}

@media (max-width: 480px) {
  .customer-app .home-hero { gap: 34px; padding-top: 38px; padding-bottom: 52px; }
  .customer-app .home-hero p { max-width: 31ch; font-size: 15px; line-height: 1.65; }
  .customer-app .hero-carousel { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr) auto auto; min-height: 0; padding: 10px; }
  .customer-app .hero-feature-card { grid-column: 1; grid-row: 2; min-height: 0; aspect-ratio: 0.92; padding: 12px; }
  .customer-app .hero-feature-card img { max-height: 260px; }
  .customer-app .hero-feature-caption { right: 12px; bottom: 11px; font-size: 9px; }
  .customer-app .hero-carousel-meta { grid-column: 1; grid-row: 3; }
  .customer-app .hero-thumb-rail { display: flex; grid-column: 1; grid-row: 4; gap: 8px; overflow-x: auto; padding: 4px 0 2px; scrollbar-width: none; }
  .customer-app .hero-thumb-rail::-webkit-scrollbar { display: none; }
  .customer-app .hero-thumb { flex: 0 0 62px; min-height: 62px; }
}

/* Final editor layout: this file loads after styles.css, so these rules are authoritative. */
@media (min-width: 821px) {
  .customer-app .editor-shell { display: flex; flex-direction: column; height: 100dvh; min-height: 100dvh; padding: 12px 18px 16px; overflow: hidden; }
  .customer-app .editor-shell .topbar { flex: 0 0 auto; min-height: 64px; margin: 0 0 8px; border-radius: 12px; }
  .customer-app .editor-progress { flex: 0 0 30px; margin: 0 auto 8px; }
  .customer-app .studio { display: grid; grid-template-columns: 76px minmax(290px, 330px) minmax(0, 1fr); gap: 12px; flex: 1 1 auto; width: 100%; max-width: none; height: auto; min-height: 0; align-items: stretch; }
  .customer-app .studio > .toolbox-jump { grid-column: 1; grid-row: 1; width: 76px; min-height: 0; border-radius: 12px; background: linear-gradient(180deg, rgba(17,22,23,.98), rgba(9,12,13,.98)); }
  .customer-app .studio > .product-panel,
  .customer-app .studio > .edit-panel { grid-column: 2; grid-row: 1; width: 100%; min-width: 0; max-height: none; border-radius: 12px; }
  .customer-app .studio > .stage-panel { position: relative; grid-column: 3; grid-row: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; border-radius: 12px; overflow: hidden; }
  .customer-app .canvas-shell { position: relative; display: flex; flex: 1 1 auto; min-height: 340px; align-items: center; justify-content: center; padding: 8px; border-radius: 12px; background: linear-gradient(135deg,rgba(40,215,229,.06),transparent 42%), repeating-linear-gradient(0deg,rgba(255,255,255,.025) 0 1px,transparent 1px 44px), repeating-linear-gradient(90deg,rgba(255,255,255,.025) 0 1px,transparent 1px 44px), #111514; overflow: auto; }
  .customer-app #designCanvas { flex: 0 1 auto; width: min(100%, calc(100dvh - 178px)); height: auto; aspect-ratio: 1; max-width: 100%; max-height: 100%; margin: auto; object-fit: contain; }
  .customer-app .canvas-layer-panel { position: absolute; top: 14px; right: 14px; z-index: 12; width: min(286px, calc(100% - 28px)); max-height: calc(100% - 28px); margin: 0; padding: 9px 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; background: rgba(8,11,12,.9); box-shadow: 0 18px 48px rgba(0,0,0,.36); backdrop-filter: blur(16px); overflow: hidden; }
  .customer-app .canvas-layer-panel.collapsed { width: 52px; }
  .customer-app .canvas-layer-head { min-height: 28px; margin-bottom: 6px; }
  .customer-app .canvas-layer-head > div span { display: none; }
  .customer-app .canvas-layer-panel .layer-list { display: grid; gap: 8px; max-height: min(360px, calc(100dvh - 310px)); overflow-y: auto; scrollbar-width: thin; }
  .customer-app .canvas-layer-panel .layer-row { width: 100%; }
  .customer-app .canvas-zoom-control { position: static; align-self: flex-end; flex: 0 0 auto; width: min(360px,100%); margin: 8px 0 0; }
  .customer-app .quickbar { flex: 0 0 auto; margin-top: 8px; }
}

@media (max-width: 820px) {
  .customer-app .canvas-shell { position: relative; min-height: min(78vw, 560px); padding: 8px; }
  .customer-app .canvas-layer-panel { position: absolute; top: 10px; right: 10px; z-index: 12; width: min(286px, calc(100% - 20px)); max-height: calc(100% - 20px); margin: 0; background: rgba(8,11,12,.92); backdrop-filter: blur(14px); }
  .customer-app .canvas-layer-panel.collapsed { width: 52px; }
}

/* Customer homepage 2026: commerce clarity with Creativerse artwork energy. */
.customer-app .home-app {
  color: #f2f5ef;
  background: #070909;
}

.customer-app .home-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(220px, auto) 1fr auto;
  width: 100%;
  max-width: none;
  min-height: 72px;
  margin: 0;
  padding: 10px max(22px, calc((100vw - 1500px) / 2));
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
  border-radius: 0;
  background: rgba(7,9,9,.96);
  backdrop-filter: blur(18px);
}

.customer-app .home-topbar .brand { min-width: 0; }
.customer-app .home-topbar .brand-mark { width: 46px; height: 46px; border-radius: 8px; }
.customer-app .home-topbar .brand strong { font-size: 17px; }
.customer-app .home-topbar .brand span { font-size: 11px; }

.customer-app .home-nav {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transform: none;
}

.customer-app .home-nav button {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  color: rgba(242,245,239,.68);
  background: transparent;
  font-weight: 760;
}

.customer-app .home-nav button:hover,
.customer-app .home-nav button:focus-visible { color: #fff; background: rgba(255,255,255,.07); }
.customer-app .home-actions { flex-wrap: nowrap; justify-content: flex-end; gap: 8px; }
.customer-app .home-actions .button { min-height: 42px; white-space: nowrap; }

.customer-app .home-hero {
  display: grid;
  grid-template-columns: minmax(380px,.82fr) minmax(520px,1.18fr);
  align-items: center;
  gap: clamp(42px,6vw,96px);
  width: 100%;
  max-width: none;
  height: clamp(620px,calc(100svh - 104px),820px);
  min-height: 620px;
  margin: 0;
  padding: 52px max(24px,calc((100vw - 1500px) / 2));
  color: #101211;
  background: #f3f2ee;
}

.customer-app .home-hero-copy { align-items: flex-start; }
.customer-app .home-hero h1 {
  max-width: 9ch;
  margin: 0;
  color: #101211;
  font-size: 72px;
  font-weight: 820;
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
}

.customer-app .home-hero p {
  max-width: 31rem;
  margin: 26px 0 0;
  color: #4f5652;
  font-size: 17px;
  line-height: 1.7;
}

.customer-app .home-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.customer-app .home-hero-actions .button { min-width: 132px; min-height: 48px; margin: 0 !important; white-space: nowrap; }
.customer-app .home-hero-actions .button.ghost { border-color: #b9bfbb; color: #161918; background: transparent; }
.customer-app .home-hero-actions .button.ghost:hover { border-color: #161918; color: #161918; background: #fff; }

.customer-app .home-hero-preview {
  position: relative;
  min-height: 0;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.customer-app .home-hero-preview::before,
.customer-app .home-hero-preview::after { display: none; }

.customer-app .hero-carousel {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0,1fr) auto auto;
  gap: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #dff0ea;
  box-shadow: 0 28px 70px rgba(17,26,22,.16);
  transform: none;
  overflow: hidden;
}

.customer-app .hero-carousel[data-source="design"] { background: #ffd8cf; }
.customer-app .hero-feature-card {
  position: relative;
  display: grid;
  grid-column: 1;
  grid-row: 1;
  min-height: 0;
  padding: 32px 42px 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
}
.customer-app .hero-feature-card::before,
.customer-app .hero-feature-card::after { display: none; }
.customer-app .hero-feature-card img { width: 100%; height: 100%; max-height: none; object-fit: contain; transition: transform 500ms cubic-bezier(.2,.8,.2,1); }
.customer-app .hero-feature-card:hover img { transform: scale(1.035); }
.customer-app .hero-feature-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  padding: 7px 10px;
  border: 1px solid rgba(16,18,17,.24);
  border-radius: 5px;
  color: #101211;
  background: rgba(255,255,255,.76);
  font-size: 11px;
  font-weight: 800;
}
.customer-app .hero-feature-no-image { place-self: center; color: #101211; font-size: 28px; font-weight: 800; }
.customer-app .hero-carousel-meta {
  display: flex;
  grid-column: 1;
  grid-row: 2;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  min-height: 82px;
  padding: 14px 20px;
  border: 0;
  border-top: 1px solid rgba(16,18,17,.14);
  color: #101211;
  background: rgba(255,255,255,.62);
}
.customer-app .hero-carousel-meta > div { display: grid; gap: 3px; min-width: 0; }
.customer-app .hero-carousel-meta strong { overflow: hidden; color: #101211; font-size: 18px; text-overflow: ellipsis; white-space: nowrap; }
.customer-app .hero-carousel-meta span { color: #57605b; font-size: 11px; }
.customer-app .hero-carousel-count { flex: 0 0 auto; color: #101211 !important; font-weight: 800; }
.customer-app .hero-carousel-controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-row: 3;
  align-items: center;
  gap: 18px;
  min-height: 50px;
  padding: 8px 14px;
  color: #101211;
  background: #fff;
}
.customer-app .hero-carousel-controls > button {
  min-height: 34px;
  padding: 0 8px;
  border: 0;
  border-radius: 4px;
  color: #101211;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}
.customer-app .hero-carousel-controls > button:hover { background: #edf0ed; }
.customer-app .hero-carousel-dots { display: flex; align-items: center; justify-content: center; gap: 7px; }
.customer-app .hero-carousel-dots button { width: 22px; height: 3px; padding: 0; border: 0; border-radius: 0; background: #c5cbc7; }
.customer-app .hero-carousel-dots button.active { background: #101211; }

.customer-app .home-service-rail {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  width: 100%;
  padding: 0 max(24px,calc((100vw - 1500px) / 2));
  border-top: 1px solid rgba(255,255,255,.12);
  border-bottom: 1px solid rgba(255,255,255,.12);
  background: #0b0e0e;
}
.customer-app .home-service-rail > div { display: grid; gap: 4px; min-height: 116px; align-content: center; padding: 20px 30px; border-right: 1px solid rgba(255,255,255,.12); }
.customer-app .home-service-rail > div:first-child { padding-left: 0; }
.customer-app .home-service-rail > div:last-child { border-right: 0; }
.customer-app .home-service-rail strong { color: #fff; font-size: 17px; }
.customer-app .home-service-rail span { color: #8f9994; font-size: 13px; line-height: 1.55; }

.customer-app .home-product-section {
  width: 100%;
  padding: 96px max(24px,calc((100vw - 1500px) / 2));
  color: #101211;
  background: #fff;
}
.customer-app .home-product-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 38px; }
.customer-app .home-product-heading h2,
.customer-app .home-section h2,
.customer-app .home-closing-section h2 { margin: 0; font-size: 48px; font-weight: 820; line-height: 1.08; letter-spacing: 0; text-wrap: balance; }
.customer-app .home-product-heading h2 { max-width: 13ch; color: #101211; }
.customer-app .home-product-heading p { max-width: 42rem; margin: 14px 0 0; color: #616965; line-height: 1.65; }
.customer-app .home-product-heading .button { border-color: #aeb5b1; color: #101211; background: transparent; white-space: nowrap; }
.customer-app .home-product-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px,1fr); gap: 10px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.customer-app .home-product-card { min-width: 0; border: 1px solid #dde1de; border-radius: 8px; background: #f5f6f4; scroll-snap-align: start; overflow: hidden; }
.customer-app .home-product-card button { display: grid; width: 100%; height: 100%; padding: 0; border: 0; color: #101211; background: transparent; text-align: left; }
.customer-app .home-product-media { display: grid; place-items: center; aspect-ratio: 1; padding: 16px; background: #edf0ed; overflow: hidden; }
.customer-app .home-product-media img { width: 100%; height: 100%; object-fit: contain; transition: transform 320ms ease; }
.customer-app .home-product-card:hover img { transform: scale(1.05); }
.customer-app .home-product-placeholder { display: grid; place-items: center; width: 54%; aspect-ratio: 1; border-radius: 50%; color: #101211; background: #b8ff3d; font-size: 42px; font-weight: 820; }
.customer-app .home-product-copy { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 16px; }
.customer-app .home-product-copy > span { grid-column: 1 / -1; color: #6a716d; font-size: 11px; font-weight: 760; }
.customer-app .home-product-copy strong { overflow: hidden; color: #101211; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.customer-app .home-product-copy b { color: #101211; font-size: 13px; }

.customer-app .home-creation-path {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  width: 100%;
  padding: 0 max(24px,calc((100vw - 1500px) / 2));
  color: #101211;
  background: #b8ff3d;
}
.customer-app .home-creation-path > div { position: relative; display: grid; grid-template-columns: 38px 1fr; gap: 2px 16px; align-content: center; min-height: 166px; padding: 26px 34px; border-right: 1px solid rgba(16,18,17,.24); }
.customer-app .home-creation-path > div:first-child { padding-left: 0; }
.customer-app .home-creation-path > div:last-child { border-right: 0; }
.customer-app .home-creation-path span { grid-row: 1 / span 2; color: rgba(16,18,17,.52); font-size: 12px; font-weight: 820; }
.customer-app .home-creation-path strong { font-size: 20px; }
.customer-app .home-creation-path p { margin: 6px 0 0; color: #384138; font-size: 13px; line-height: 1.55; }

@media (min-width: 821px) and (max-width: 1180px) {
  .customer-app .home-creation-path { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .customer-app .home-creation-path > div { border-bottom: 1px solid rgba(16,18,17,.24); }
  .customer-app .home-creation-path > div:nth-child(odd) { padding-left: 0; }
  .customer-app .home-creation-path > div:nth-child(even) { padding-right: 0; border-right: 0; }
  .customer-app .home-creation-path > div:nth-last-child(-n + 2) { border-bottom: 0; }
}

.customer-app .home-section { width: 100%; max-width: none; margin: 0; padding: 104px max(24px,calc((100vw - 1500px) / 2)); }
.customer-app .home-section + .home-section { border-top: 1px solid rgba(255,255,255,.12); }
.customer-app .home-section-head { margin-bottom: 42px; }
.customer-app .home-section h2 { max-width: 14ch; color: #f2f5ef; }
.customer-app .home-showcase-section { color: #101211; background: #f0eeea; }
.customer-app .home-showcase-section h2 { color: #101211; }
.customer-app .home-showcase-section .button.ghost { border-color: #aeb5b1; color: #101211; background: transparent; }
.customer-app .home-showcase-section .home-design-card { border-color: #d8dcd8; border-radius: 8px; background: #fff; }
.customer-app .home-showcase-section .home-design-copy h3,
.customer-app .home-showcase-section .home-design-card strong { color: #101211; }
.customer-app .home-showcase-section .home-design-card span { color: #656d68; }
.customer-app .home-art-tile,
.customer-app .home-exhibition-card { border-radius: 8px; }

.customer-app .home-closing-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
  width: 100%;
  min-height: 330px;
  padding: 64px max(24px,calc((100vw - 1500px) / 2));
  color: #101211;
  background: #ff684b;
}
.customer-app .home-closing-section h2 { max-width: 17ch; color: #101211; font-size: 54px; }
.customer-app .home-closing-section p { margin: 16px 0 0; color: #432019; font-size: 16px; }
.customer-app .home-closing-section .button.primary { flex: 0 0 auto; min-width: 150px; min-height: 50px; border-color: #101211; color: #fff; background: #101211; white-space: nowrap; box-shadow: 0 18px 42px rgba(55,17,10,.22); }

@media (max-width: 1180px) {
  .customer-app .home-topbar { grid-template-columns: auto 1fr; }
  .customer-app .home-nav { display: none; }
  .customer-app .home-hero { grid-template-columns: minmax(320px,.8fr) minmax(430px,1.2fr); gap: 36px; }
  .customer-app .home-hero h1 { font-size: 58px; }
  .customer-app .home-product-rail { grid-auto-columns: minmax(230px,29vw); }
}

@media (max-width: 820px) {
  .customer-app .home-topbar { display: flex; min-height: 64px; padding: 9px 14px; }
  .customer-app .home-topbar .brand { flex: 1 1 auto; }
  .customer-app .home-topbar .brand span { display: none; }
  .customer-app .home-actions { gap: 6px; overflow-x: auto; }
  .customer-app .home-actions #homeStartBtn { display: none; }
  .customer-app .home-actions .button { min-height: 40px; padding-inline: 11px; }
  .customer-app .home-actions .cart-button span { display: none; }
  .customer-app .home-hero { grid-template-columns: 1fr; gap: 34px; height: auto; min-height: 0; padding: 52px 18px 32px; }
  .customer-app .home-hero h1 { max-width: 10ch; font-size: 44px; }
  .customer-app .home-hero p { margin-top: 18px; font-size: 15px; }
  .customer-app .home-hero-preview { height: 500px; }
  .customer-app .hero-feature-card { padding: 24px 18px 12px; }
  .customer-app .hero-carousel-meta { min-height: 76px; padding-inline: 14px; }
  .customer-app .home-service-rail { grid-template-columns: 1fr; padding-inline: 18px; }
  .customer-app .home-service-rail > div { min-height: 90px; padding: 18px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .customer-app .home-service-rail > div:last-child { border-bottom: 0; }
  .customer-app .home-product-section,
  .customer-app .home-section { padding: 70px 18px; }
  .customer-app .home-product-heading { align-items: flex-start; flex-direction: column; margin-bottom: 28px; }
  .customer-app .home-product-heading h2,
  .customer-app .home-section h2 { font-size: 36px; }
  .customer-app .home-product-rail { grid-auto-columns: minmax(220px,72vw); }
  .customer-app .home-creation-path { grid-template-columns: 1fr; padding: 0 18px; }
  .customer-app .home-creation-path > div { min-height: 120px; padding: 24px 0; border-right: 0; border-bottom: 1px solid rgba(16,18,17,.24); }
  .customer-app .home-creation-path > div:last-child { border-bottom: 0; }
  .customer-app .home-closing-section { align-items: flex-start; flex-direction: column; min-height: 0; padding: 64px 18px; }
  .customer-app .home-closing-section h2 { font-size: 40px; }
}

@media (max-width: 480px) {
  .customer-app .home-topbar .brand strong { font-size: 14px; }
  .customer-app .home-topbar .brand-mark { width: 40px; height: 40px; }
  .customer-app .home-actions #authEntryBtn { padding-inline: 10px; font-size: 12px; }
  .customer-app .home-hero { padding-top: 40px; }
  .customer-app .home-hero h1 { font-size: 38px; }
  .customer-app .home-hero-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .customer-app .home-hero-actions .button { width: 100%; min-width: 0; }
  .customer-app .home-hero-preview { height: 420px; }
  .customer-app .hero-carousel-controls { gap: 8px; padding-inline: 8px; }
  .customer-app .hero-carousel-controls > button { padding-inline: 4px; }
  .customer-app .hero-carousel-dots { gap: 4px; }
  .customer-app .hero-carousel-dots button { width: 14px; }
  .customer-app .home-product-heading h2,
  .customer-app .home-section h2 { font-size: 32px; }
  .customer-app .home-closing-section h2 { font-size: 36px; }
}

/* Configurable hero backgrounds and a compact, collapsible hot-artwork rail. */
.customer-app .home-hero-copy > .eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  color: #0d7f86;
  font-size: 12px;
  font-weight: 820;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.customer-app .hero-carousel.has-slide-background {
  background-repeat: no-repeat;
  background-blend-mode: normal;
}
.customer-app .hero-carousel.has-slide-background::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  background: rgba(255,255,255,.34);
  pointer-events: none;
}
.customer-app .hero-carousel.has-slide-background .hero-feature-card,
.customer-app .hero-carousel.has-slide-background .hero-carousel-meta,
.customer-app .hero-carousel.has-slide-background .hero-carousel-controls { position: relative; z-index: 1; }

.customer-app .home-section-intro {
  margin: 12px 0 0;
  color: rgba(247,247,239,.58);
  font-size: 14px;
  line-height: 1.6;
}
.customer-app .home-library-section:not(.is-expanded) {
  padding-top: 48px;
  padding-bottom: 58px;
}
.customer-app .home-library-section:not(.is-expanded) .home-section-head { margin-bottom: 24px; }
.customer-app .home-library-section:not(.is-expanded) .home-art-wall {
  grid-template-columns: none;
  grid-template-rows: repeat(2, 208px);
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 21vw);
  min-height: 436px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 16px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.customer-app .home-library-section:not(.is-expanded) .home-art-tile,
.customer-app .home-library-section:not(.is-expanded) .home-art-tile:nth-child(3n + 1),
.customer-app .home-library-section:not(.is-expanded) .home-art-tile:nth-child(4n + 2),
.customer-app .home-library-section:not(.is-expanded) .home-art-tile:nth-child(5n + 4),
.customer-app .home-library-section:not(.is-expanded) .home-art-tile:nth-child(8n + 5) {
  grid-column: auto;
  grid-row: auto;
  min-width: 0;
  height: 208px;
  scroll-snap-align: start;
}
.customer-app .home-library-section:not(.is-expanded) .home-art-tile .home-art-social { opacity: 0; transform: translateY(5px); transition: opacity 180ms ease, transform 180ms ease; }
.customer-app .home-library-section:not(.is-expanded) .home-art-tile:hover .home-art-social,
.customer-app .home-library-section:not(.is-expanded) .home-art-tile:focus-within .home-art-social { opacity: 1; transform: translateY(0); }
.customer-app .home-artwork-controls { flex-wrap: wrap; }

@media (max-width: 820px) {
  .customer-app .home-library-section:not(.is-expanded) .home-art-wall {
    grid-auto-columns: minmax(160px, 45vw);
    grid-template-rows: repeat(2, 190px);
    min-height: 400px;
  }
  .customer-app .home-library-section:not(.is-expanded) .home-art-tile,
  .customer-app .home-library-section:not(.is-expanded) .home-art-tile:nth-child(3n + 1),
  .customer-app .home-library-section:not(.is-expanded) .home-art-tile:nth-child(4n + 2),
  .customer-app .home-library-section:not(.is-expanded) .home-art-tile:nth-child(5n + 4),
  .customer-app .home-library-section:not(.is-expanded) .home-art-tile:nth-child(8n + 5) { height: 190px; }
}

.customer-app .home-faq-section {
  padding-block: 88px;
  background: #070909;
}

.customer-app .home-faq-list {
  display: grid;
  max-width: 960px;
}

.customer-app .home-faq-item { border-top: 1px solid rgba(242,245,239,.16); }
.customer-app .home-faq-item:last-child { border-bottom: 1px solid rgba(242,245,239,.16); }
.customer-app .home-faq-item summary {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  color: #f2f5ef;
  font-size: 16px;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}
.customer-app .home-faq-item summary::-webkit-details-marker { display: none; }
.customer-app .home-faq-item summary::after { content: "+"; flex: 0 0 auto; color: #28d7e5; font-size: 22px; font-weight: 400; }
.customer-app .home-faq-item[open] summary::after { content: "−"; color: #b8ff3d; }
.customer-app .home-faq-answer {
  max-width: 72ch;
  padding: 0 44px 20px 0;
  color: #aeb8b4;
  font-size: 14px;
  line-height: 1.75;
}
.customer-app .home-faq-pagination { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.customer-app .home-faq-pagination[hidden] { display: none; }
.customer-app .home-faq-pagination button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(242,245,239,.22);
  border-radius: 50%;
  color: #f2f5ef;
  background: #101414;
}
.customer-app .home-faq-pagination button:disabled { opacity: .36; cursor: not-allowed; }
.customer-app .home-faq-pagination span { color: #89938e; font-size: 12px; font-weight: 800; }

@media (max-width: 820px) {
  .customer-app .home-faq-section { padding-block: 64px; }
  .customer-app .home-faq-item summary { min-height: 58px; font-size: 15px; }
  .customer-app .home-faq-answer { padding-right: 0; }
}

/* Hero deck: an expandable preview rail gives the first viewport a live studio feel. */
.customer-app .hero-visual-area {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 174px;
  gap: 10px;
  min-height: 0;
  padding: 14px;
  transition: grid-template-columns 320ms cubic-bezier(.2,.8,.2,1);
}
.customer-app .hero-carousel.is-rail-condensed .hero-visual-area { grid-template-columns: minmax(0, 1fr) 58px; }
.customer-app .hero-carousel.no-rail .hero-visual-area { grid-template-columns: minmax(0,1fr); }
.customer-app .hero-carousel.no-rail .hero-carousel-rail { display: none; }
.customer-app .hero-feature-card {
  min-width: 0;
  padding: 22px 26px;
  border: 1px solid rgba(16,18,17,.14);
  border-radius: 6px;
  background: rgba(255,255,255,.22);
}
.customer-app .hero-feature-signal {
  position: absolute;
  right: 16px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border: 1px solid rgba(16,18,17,.18);
  border-radius: 4px;
  color: #101211;
  background: rgba(255,255,255,.72);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 800;
}
.customer-app .hero-feature-signal i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00b9c7;
  box-shadow: 0 0 0 4px rgba(0,185,199,.14);
  animation: hero-signal-pulse 1800ms ease-in-out infinite;
}
@keyframes hero-signal-pulse {
  0%, 100% { opacity: .45; transform: scale(.8); }
  50% { opacity: 1; transform: scale(1); }
}
.customer-app .hero-carousel-rail {
  display: grid;
  grid-template-rows: auto minmax(0,1fr);
  min-width: 0;
  border: 1px solid rgba(9,213,228,.4);
  border-radius: 6px;
  background: rgba(7,10,11,.9);
  box-shadow: 0 14px 38px rgba(0,0,0,.2), inset 2px 0 0 rgba(9,213,228,.62);
  overflow: hidden;
}
.customer-app .hero-rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 40px;
  padding: 7px 8px 7px 12px;
  border-bottom: 1px solid rgba(9,213,228,.22);
}
.customer-app .hero-rail-head > span {
  color: #8feaf0;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.customer-app .hero-rail-head button {
  min-height: 26px;
  padding: 0 7px;
  border: 1px solid rgba(143,234,240,.28);
  border-radius: 4px;
  color: #d8fdff;
  background: transparent;
  font-size: 10px;
  white-space: nowrap;
}
.customer-app .hero-rail-head button:hover { border-color: #8feaf0; background: rgba(143,234,240,.1); }
.customer-app .hero-rail-list { display: grid; grid-template-rows: repeat(3,minmax(0,1fr)); gap: 1px; min-height: 0; background: rgba(143,234,240,.12); }
.customer-app .hero-rail-slide {
  position: relative;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #ecffff;
  background: #0b1112;
  overflow: hidden;
  text-align: left;
}
.customer-app .hero-rail-slide::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 2px;
  content: "";
  background: transparent;
  transition: background 180ms ease;
}
.customer-app .hero-rail-slide:hover::after,
.customer-app .hero-rail-slide:focus-visible::after { background: #aaff2c; }
.customer-app .hero-rail-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: .64;
  transition: opacity 180ms ease, transform 260ms ease;
}
.customer-app .hero-rail-slide:hover img,
.customer-app .hero-rail-slide:focus-visible img { opacity: 1; transform: scale(1.06); }
.customer-app .hero-rail-slide > span:not(.hero-rail-no-image) {
  position: absolute;
  left: 8px;
  bottom: 7px;
  max-width: calc(100% - 42px);
  overflow: hidden;
  color: rgba(236,255,255,.78);
  font-size: 9px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.customer-app .hero-rail-slide b {
  position: absolute;
  right: 8px;
  bottom: 6px;
  color: #aaff2c;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}
.customer-app .hero-rail-no-image { display: grid; place-items: center; width: 100%; height: 100%; color: #8feaf0; font-size: 24px; font-weight: 800; }
.customer-app .hero-carousel.is-rail-condensed .hero-rail-head { justify-content: center; padding-inline: 4px; }
.customer-app .hero-carousel.is-rail-condensed .hero-rail-head > span,
.customer-app .hero-carousel.is-rail-condensed .hero-rail-slide > span:not(.hero-rail-no-image) { display: none; }
.customer-app .hero-carousel.is-rail-condensed .hero-rail-head button { width: 46px; padding: 0; }
.customer-app .hero-carousel.is-rail-condensed .hero-rail-slide img { opacity: .35; }
.customer-app .hero-carousel.is-rail-condensed .hero-rail-slide b { right: 50%; bottom: 50%; transform: translate(50%,50%); }
.customer-app .hero-carousel.has-slide-background .hero-visual-area { z-index: 1; }

@media (max-width: 820px) {
  .customer-app .home-hero-preview { height: 560px; }
  .customer-app .hero-visual-area,
  .customer-app .hero-carousel.is-rail-condensed .hero-visual-area {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0,1fr) 104px;
    padding: 10px;
  }
  .customer-app .hero-carousel-rail { grid-template-columns: auto minmax(0,1fr); grid-template-rows: 1fr; }
  .customer-app .hero-rail-head { flex-direction: column; justify-content: center; width: 70px; min-height: 0; padding: 6px; border-right: 1px solid rgba(9,213,228,.22); border-bottom: 0; }
  .customer-app .hero-rail-list { grid-template-columns: repeat(3,minmax(0,1fr)); grid-template-rows: 1fr; }
  .customer-app .hero-carousel.is-rail-condensed .hero-visual-area { grid-template-rows: minmax(0,1fr) 46px; }
  .customer-app .hero-carousel.is-rail-condensed .hero-carousel-rail { grid-template-columns: 1fr; }
  .customer-app .hero-carousel.is-rail-condensed .hero-rail-head { width: 100%; flex-direction: row; border-right: 0; }
  .customer-app .hero-carousel.is-rail-condensed .hero-rail-list { display: none; }
}

@media (max-width: 480px) {
  .customer-app .home-hero-preview { height: 500px; }
  .customer-app .hero-feature-card { padding: 18px 12px; }
  .customer-app .hero-feature-signal { right: 10px; bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .customer-app .hero-visual-area,
  .customer-app .hero-rail-slide img,
  .customer-app .hero-feature-signal i { animation: none; transition: none; }
}

/* Collapse the entire hero artwork area, leaving only a slim reopen handle. */
.customer-app .home-hero {
  position: relative;
  isolation: isolate;
  background: var(--home-hero-bg-color, #f3f2ee);
  overflow: hidden;
  transition: grid-template-columns 360ms cubic-bezier(.2,.8,.2,1), gap 360ms ease;
}
.customer-app .home-hero::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  background-image: var(--home-hero-bg-image, none);
  background-repeat: no-repeat;
  background-position: var(--home-hero-bg-position, right center);
  background-size: var(--home-hero-bg-fit, contain);
  opacity: 0;
  filter: saturate(.92) contrast(.96);
  transform: scale(1.01);
  pointer-events: none;
}
.customer-app .home-hero-background {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: var(--home-hero-bg-fit, cover);
  object-position: var(--home-hero-bg-position, right);
  opacity: .38;
  filter: saturate(.92) contrast(.96);
  transform: scale(1.01);
  pointer-events: none;
}
.customer-app .home-hero-background[hidden] { display: none; }
.customer-app .home-hero.is-background-entering .home-hero-background { animation: home-hero-background-enter 560ms cubic-bezier(.2,.8,.2,1) both; }
@keyframes home-hero-background-enter {
  from { opacity: 0; transform: scale(1.035); }
  to { opacity: .38; transform: scale(1.01); }
}
.customer-app .home-hero-copy,
.customer-app .home-hero-preview { position: relative; z-index: 1; }
.customer-app .home-hero-bg-controls {
  display: grid;
  grid-template-columns: 34px auto minmax(70px,1fr) 34px;
  align-items: center;
  gap: 10px;
  width: min(100%, 420px);
  min-height: 46px;
  margin-top: 34px;
  padding-top: 12px;
  border-top: 1px solid rgba(16,18,17,.22);
}
.customer-app .home-hero-bg-controls:empty { display: none; }
.customer-app .home-hero-bg-controls > button {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(16,18,17,.24);
  border-radius: 4px;
  color: #101211;
  background: rgba(243,242,238,.62);
  font-size: 16px;
}
.customer-app .home-hero-bg-controls > button:hover,
.customer-app .home-hero-bg-controls > button:focus-visible { border-color: #008d98; color: #006c74; background: rgba(255,255,255,.82); }
.customer-app .home-hero-bg-controls > span {
  color: #101211;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.customer-app .home-hero-bg-controls > div { display: flex; align-items: center; justify-content: center; gap: 6px; }
.customer-app .home-hero-bg-controls > div button {
  width: 8px;
  min-width: 8px;
  height: 6px;
  min-height: 6px;
  flex: 0 0 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(16,18,17,.24);
  transition: width 180ms ease, flex-basis 180ms ease, background 180ms ease;
}
.customer-app .home-hero-bg-controls > div button.active {
  width: 20px;
  flex-basis: 20px;
  background: #008d98;
  box-shadow: 0 4px 12px rgba(0,141,152,.24);
}
.customer-app .home-hero.has-collapsed-carousel {
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 18px;
}
.customer-app .home-hero-preview.is-collapsed {
  display: grid;
  width: 28px;
  min-width: 28px;
  height: 100%;
  overflow: visible;
}
.customer-app .hero-carousel-collapsed-tab {
  display: grid;
  place-items: center;
  height: 100%;
}
.customer-app .hero-carousel-collapsed-tab button {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 142px;
  padding: 0;
  border: 1px solid rgba(9,213,228,.62);
  border-radius: 4px;
  color: #aaff2c;
  background: #071011;
  box-shadow: 0 0 22px rgba(9,213,228,.18), inset 0 0 0 1px rgba(170,255,44,.12);
}
.customer-app .hero-carousel-collapsed-tab button::before {
  position: absolute;
  top: 13px;
  left: 7px;
  width: 12px;
  height: 2px;
  content: "";
  background: #09d5e4;
  box-shadow: 0 7px 0 rgba(9,213,228,.54), 0 14px 0 rgba(9,213,228,.24);
}
.customer-app .hero-carousel-collapsed-tab button span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.customer-app .hero-carousel-collapsed-tab button b {
  margin-top: 20px;
  color: #aaff2c;
  font-size: 22px;
  font-weight: 400;
}
.customer-app .hero-carousel-collapsed-tab button:hover,
.customer-app .hero-carousel-collapsed-tab button:focus-visible {
  border-color: #aaff2c;
  box-shadow: 0 0 30px rgba(9,213,228,.32), 0 0 0 2px rgba(170,255,44,.12);
}

@media (max-width: 820px) {
  .customer-app .home-hero.has-collapsed-carousel { grid-template-columns: 1fr; gap: 16px; }
  .customer-app .home-hero-preview.is-collapsed { width: 100%; min-width: 0; height: 34px; }
  .customer-app .hero-carousel-collapsed-tab { justify-items: end; }
  .customer-app .hero-carousel-collapsed-tab button { width: 100%; height: 34px; }
  .customer-app .hero-carousel-collapsed-tab button::before { top: 9px; left: calc(50% - 6px); box-shadow: 0 5px 0 rgba(9,213,228,.54), 0 10px 0 rgba(9,213,228,.24); }
  .customer-app .hero-carousel-collapsed-tab button b { margin-top: 12px; font-size: 18px; }
}

@media (max-width: 480px) {
  .customer-app .home-hero-bg-controls {
    grid-template-columns: 32px auto auto 32px;
    justify-content: space-between;
    gap: 10px;
  }
  .customer-app .home-hero-bg-controls > button { width: 32px; height: 32px; }
  .customer-app .home-hero-bg-controls > div { justify-content: flex-start; gap: 5px; width: auto; overflow: hidden; }
  .customer-app .home-hero-bg-controls > div button { width: 7px; min-width: 7px; min-height: 6px; flex: 0 0 7px; }
  .customer-app .home-hero-bg-controls > div button.active { width: 18px; flex-basis: 18px; }
}

/* Printful-like editor proportion: compact product controls, dominant canvas workspace. */
.customer-app .process-picker-card {
  display: grid;
  gap: 10px;
  margin: 14px 0 16px;
  padding: 14px;
  border: 1px solid rgba(170,255,44,.28);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(170,255,44,.1), rgba(34,232,255,.05) 48%, rgba(255,255,255,.025));
}
.customer-app .process-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.customer-app .process-picker-head span {
  color: rgba(247,247,239,.72);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.customer-app .process-picker-head strong {
  color: #aaff2c;
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}
.customer-app .process-picker-card select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  color: #fff;
  background: rgba(6,8,9,.88);
  padding: 0 12px;
}
.customer-app .process-meta,
.customer-app .price-formula {
  margin: 0;
  color: rgba(247,247,239,.58);
  font-size: 12px;
  line-height: 1.55;
}
.customer-app .price-formula {
  margin-top: -4px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
}

/* Canvas-first studio: the work fills the stage and frequent actions dock at right. */
@media (min-width: 821px) {
  .customer-app .stage-panel {
    padding: 10px;
  }

  .customer-app .stage-header {
    min-height: 44px;
    margin-bottom: 8px;
  }

  .customer-app .stage-header h1 {
    font-size: 22px;
  }

  .customer-app .stage-actions {
    flex-wrap: nowrap;
  }

  .customer-app .canvas-position-switcher {
    min-height: 44px;
    padding-block: 5px;
  }

  .customer-app .canvas-shell {
    min-height: 0;
    padding: 10px 100px 10px 10px;
    overflow: auto;
  }

  .customer-app #designCanvas {
    max-width: none;
    max-height: none;
  }

  .customer-app .canvas-layer-panel {
    top: 12px;
    right: auto;
    left: 12px;
    max-height: calc(100% - 24px);
  }
}

.customer-app .canvas-command-rail {
  position: absolute;
  top: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 14;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 78px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.customer-app .canvas-command-rail::-webkit-scrollbar { display: none; }

.customer-app .canvas-rail-zoom,
.customer-app .quickbar {
  border: 1px solid rgba(242, 245, 239, 0.15);
  border-radius: 10px;
  background: rgba(7, 10, 10, 0.92);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
}

.customer-app .canvas-rail-zoom {
  display: grid;
  justify-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 9px 8px;
}

.customer-app .canvas-rail-label {
  color: rgba(242, 245, 239, 0.52);
  font-size: 9px;
  font-weight: 800;
}

.customer-app .canvas-rail-icon,
.customer-app .canvas-rail-fit {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 32px;
  padding: 0;
  border: 1px solid rgba(242, 245, 239, 0.14);
  border-radius: 7px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  font-weight: 800;
}

.customer-app .canvas-rail-icon {
  font-size: 20px;
  line-height: 1;
}

.customer-app .canvas-rail-fit {
  color: rgba(242, 245, 239, 0.66);
  font-size: 10px;
}

.customer-app .canvas-rail-icon:hover,
.customer-app .canvas-rail-fit:hover,
.customer-app .canvas-rail-icon:focus-visible,
.customer-app .canvas-rail-fit:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(40, 215, 229, 0.09);
}

.customer-app .canvas-command-rail .canvas-zoom-control {
  position: static;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 5px;
  width: 100%;
  min-height: 96px;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--soft);
  background: transparent;
  box-shadow: none;
}

.customer-app .canvas-command-rail .canvas-zoom-control input {
  width: 24px;
  height: 72px;
  min-height: 72px;
  margin: 0;
  accent-color: var(--green);
  writing-mode: vertical-lr;
  direction: rtl;
}

.customer-app .canvas-command-rail .canvas-zoom-control output {
  color: var(--green);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.customer-app .canvas-command-rail .quickbar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  flex: 0 0 auto;
  margin: 0;
  padding: 7px;
}

.customer-app .canvas-command-rail .canvas-command-button {
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  gap: 2px;
  width: 100%;
  min-width: 0;
  min-height: 54px;
  padding: 6px 3px;
  border-radius: 8px;
  white-space: normal;
}

.customer-app .canvas-command-button strong {
  color: var(--cyan);
  font-size: 8px;
  font-weight: 800;
}

.customer-app .canvas-command-button span {
  color: rgba(242, 245, 239, 0.78);
  font-size: 10px;
  font-weight: 760;
  line-height: 1.2;
}

.customer-app .canvas-command-button.primary strong,
.customer-app .canvas-command-button.primary span {
  color: #071008;
}

@media (max-width: 820px) {
  .customer-app .canvas-shell {
    min-height: min(92vw, 640px);
    padding: 8px 8px 78px;
  }

  .customer-app .canvas-layer-panel {
    top: 10px;
    right: auto;
    left: 10px;
  }

  .customer-app .canvas-command-rail {
    top: auto;
    right: 8px;
    bottom: 8px;
    left: 8px;
    flex-direction: row;
    width: auto;
    height: 62px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .customer-app .canvas-rail-zoom {
    grid-template-columns: 28px minmax(96px, 132px) 28px 40px;
    flex: 0 0 auto;
    gap: 5px;
    padding: 6px;
  }

  .customer-app .canvas-rail-label { display: none; }

  .customer-app .canvas-command-rail .canvas-zoom-control {
    grid-template-columns: minmax(70px, 1fr) 34px;
    min-height: 0;
  }

  .customer-app .canvas-command-rail .canvas-zoom-control input {
    width: 100%;
    height: 28px;
    min-height: 28px;
    writing-mode: horizontal-tb;
    direction: ltr;
  }

  .customer-app .canvas-command-rail .quickbar {
    grid-template-columns: repeat(4, 68px);
    flex: 0 0 auto;
    padding: 6px;
  }

  .customer-app .canvas-command-rail .canvas-command-button {
    min-height: 48px;
  }

  .customer-app .canvas-command-button strong { display: none; }
}

@media (min-width: 1024px) {
  .customer-app .studio {
    grid-template-columns: 76px minmax(300px, 350px) minmax(900px, 1fr);
    gap: 10px;
  }
  .customer-app .studio > .stage-panel {
    min-height: calc(100dvh - 128px);
  }
  .customer-app .canvas-shell {
    min-height: 0;
    padding: 8px;
  }
  .customer-app #designCanvas {
    width: min(100%, calc(100dvh - 118px), 1180px);
    max-width: min(100%, 1180px);
  }
}

@media (min-width: 1440px) {
  .customer-app .studio {
    grid-template-columns: 78px minmax(315px, 370px) minmax(1040px, 1fr);
  }
  .customer-app #designCanvas {
    width: min(100%, calc(100dvh - 108px), 1280px);
    max-width: min(100%, 1280px);
  }
}

/* Design studio controls: precise, compact, and visibly connected to pricing. */
.customer-app .visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.customer-app .product-panel .side-switcher { display: none; }
.customer-app .color-native-field { display: none; }
.customer-app .attribute-label { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 8px; }
.customer-app .attribute-label span { color: rgba(247,247,239,.72); font-size: 12px; font-weight: 900; }
.customer-app .attribute-label strong { color: #28d7e5; font-size: 10px; font-weight: 850; }
.customer-app .canvas-position-switcher {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
  min-height: 50px;
  padding: 7px 10px;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: #0b0e0e;
  overflow-x: auto;
  scrollbar-width: none;
}
.customer-app .canvas-position-switcher::-webkit-scrollbar { display: none; }
.customer-app .canvas-position-switcher .side-button {
  flex: 0 0 auto;
  min-width: 74px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: rgba(247,247,239,.64);
  background: transparent;
  font-weight: 850;
}
.customer-app .canvas-position-switcher .side-button:hover { color: #fff; background: rgba(255,255,255,.05); }
.customer-app .canvas-position-switcher .side-button.active {
  color: #071011;
  border-color: rgba(40,215,229,.5);
  background: #28d7e5;
  box-shadow: 0 8px 22px rgba(40,215,229,.18);
}
.customer-app .size-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(48px,1fr));
  gap: 7px;
}
.customer-app .size-choice {
  min-height: 38px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 8px;
  color: rgba(247,247,239,.7);
  background: rgba(5,7,8,.62);
  font-weight: 900;
}
.customer-app .size-choice:hover { border-color: rgba(40,215,229,.6); color: #fff; }
.customer-app .size-choice.active {
  color: #071011;
  border-color: #b8ff3d;
  background: #b8ff3d;
  box-shadow: 0 9px 24px rgba(184,255,61,.16);
}
.customer-app .swatch-row {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 7px;
}
.customer-app .swatch-row .color-choice {
  display: grid;
  grid-template-columns: 24px minmax(0,1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 38px;
  padding: 5px 8px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(5,7,8,.64);
}
.customer-app .swatch-row .color-choice i {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.08);
}
.customer-app .swatch-row .color-choice span {
  min-width: 0;
  overflow: hidden;
  color: rgba(247,247,239,.64);
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
}
.customer-app .swatch-row .color-choice.active { border-color: #28d7e5; background: rgba(40,215,229,.11); }
.customer-app .swatch-row .color-choice.active i { box-shadow: 0 0 0 2px #071011, 0 0 0 3px #28d7e5; }
.customer-app .process-option-grid { display: grid; gap: 7px; }
.customer-app .process-option {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 3px 10px;
  width: 100%;
  min-height: 58px;
  padding: 10px 11px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  color: #f7f7ef;
  text-align: left;
  background: rgba(5,7,8,.66);
}
.customer-app .process-option span { font-weight: 900; }
.customer-app .process-option strong { color: #e8b86a; font-size: 12px; }
.customer-app .process-option small { grid-column: 1 / -1; color: rgba(247,247,239,.48); font-size: 10px; }
.customer-app .process-option.active { border-color: #28d7e5; background: rgba(40,215,229,.1); box-shadow: 0 10px 30px rgba(0,0,0,.24); }
.customer-app .order-panel .control-grid.two { grid-template-columns: minmax(0,1.4fr) minmax(150px,.8fr); align-items: stretch; }
.customer-app .order-size-field { grid-column: auto; }
.customer-app .order-size-matrix { display: grid; gap: 7px; margin-top: 7px; }
.customer-app .order-size-row {
  display: grid;
  grid-template-columns: 46px minmax(64px,1fr) auto;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 5px 6px 5px 10px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
}
.customer-app .order-size-row strong { color: #28d7e5; }
.customer-app .order-size-row input { width: 100%; min-height: 32px; }
.customer-app .bulk-discount-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(232,184,106,.28);
  border-radius: 8px;
  background: rgba(232,184,106,.07);
}
.customer-app .bulk-discount-card span { color: rgba(247,247,239,.58); font-size: 11px; font-weight: 850; }
.customer-app .bulk-discount-card strong { color: #e8b86a; font-size: 16px; }
.customer-app .bulk-discount-card small { color: rgba(247,247,239,.48); line-height: 1.45; }
.customer-app .order-draft-actions { display: grid; justify-items: end; gap: 8px; }

@media (max-width: 820px) {
  .customer-app .canvas-position-switcher { order: 1; }
  .customer-app .swatch-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .customer-app .order-panel .control-grid.two { grid-template-columns: 1fr; }
}

/* Independent hot rail: this section uses platform hot-content strategy, not the hero banner slides. */
.customer-app .home-hot-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 12px;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4,6,7,0) 40%, rgba(4,6,7,.72) 100%),
    radial-gradient(circle at 18% 10%, rgba(34,232,255,.18), transparent 34%);
  opacity: .88;
}
.customer-app .home-hot-tile.is-design-hot::before {
  content: "CASE";
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 4;
  padding: 5px 8px;
  border: 1px solid rgba(170,255,44,.34);
  border-radius: 999px;
  color: #aaff2c;
  background: rgba(5,8,8,.76);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .08em;
  pointer-events: none;
}
.customer-app .home-hot-meta {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 48px;
  z-index: 4;
  display: grid;
  gap: 3px;
  color: #fff;
  pointer-events: none;
  text-shadow: 0 8px 20px rgba(0,0,0,.55);
}
.customer-app .home-hot-meta strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.customer-app .home-hot-meta small {
  overflow: hidden;
  color: rgba(247,247,239,.66);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.customer-app .home-hot-no-image {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: #e7ffbb;
  background:
    linear-gradient(135deg, rgba(170,255,44,.22), transparent 42%),
    radial-gradient(circle at 80% 20%, rgba(34,232,255,.22), transparent 36%),
    #111514;
  font-size: 15px;
  font-weight: 950;
}
.customer-app .home-hot-tile .home-art-mark {
  top: 10px;
  right: 10px;
  bottom: auto;
  z-index: 5;
  max-width: calc(100% - 20px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.customer-app .home-hot-tile .home-art-social {
  right: 9px;
  left: 9px;
  bottom: 9px;
  z-index: 5;
  align-items: center;
  justify-content: flex-start;
}
.customer-app .home-hot-tile .application-count {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  color: rgba(247,247,239,.82);
  background: rgba(5,6,8,.76);
  box-shadow: 0 8px 22px rgba(0,0,0,.28);
  backdrop-filter: blur(10px);
  font-size: 11px;
  font-weight: 900;
}

/* Authoritative editor geometry. Keep this last so legacy canvas sizing cannot reclaim the dock. */
@media (min-width: 821px) {
  .customer-app .studio {
    grid-template-columns: 76px minmax(290px, 350px) minmax(0, 1fr);
  }

  .customer-app .studio > .stage-panel {
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: visible;
  }

  .customer-app .canvas-position-switcher {
    min-height: 44px;
    padding-block: 5px;
  }

  .customer-app .canvas-shell {
    flex: 1 1 auto;
    min-height: 0;
    padding: 10px 100px 10px 10px;
  }

  .customer-app #designCanvas {
    max-width: none;
    max-height: none;
  }
}

@media (min-width: 1440px) {
  .customer-app .studio {
    grid-template-columns: 78px minmax(315px, 370px) minmax(0, 1fr);
  }
}

/* Printful-style product color chips: compact swatches, check mark and hover name. */
.customer-app .product-panel,
.customer-app .product-panel section { overflow: visible; }

.customer-app .swatch-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 50px;
  padding: 2px 0 10px;
  overflow: visible;
}

.customer-app .swatch-row .color-choice {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 3px;
  border: 1px solid rgba(242, 245, 239, 0.2);
  border-radius: 9px;
  background: transparent;
}

.customer-app .swatch-row .color-choice i {
  position: relative;
  display: block;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(7, 16, 8, 0.22);
  border-radius: 7px;
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.customer-app .swatch-row .color-choice span {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  z-index: 50;
  width: max-content;
  max-width: 220px;
  padding: 9px 11px;
  border-radius: 5px;
  color: #fff;
  background: rgba(8, 9, 10, 0.96);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.36);
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transform: translate(-50%, 4px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.customer-app .swatch-row .color-choice span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 0;
  height: 0;
  border: 8px solid transparent;
  border-top-color: rgba(8, 9, 10, 0.96);
  transform: translateX(-50%);
}

.customer-app .swatch-row .color-choice:hover span,
.customer-app .swatch-row .color-choice:focus-visible span {
  opacity: 1;
  transform: translate(-50%, 0);
}

.customer-app .swatch-row .color-choice:hover,
.customer-app .swatch-row .color-choice:focus-visible {
  border-color: rgba(242, 245, 239, 0.62);
}

.customer-app .swatch-row .color-choice.active {
  border-color: rgba(242, 245, 239, 0.92);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 1px rgba(7, 16, 8, 0.95), 0 0 0 3px rgba(242, 245, 239, 0.88);
}

.customer-app .swatch-row .color-choice.active i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 10px;
  border-left: 2.5px solid #101316;
  border-bottom: 2.5px solid #101316;
  transform: translate(-50%, -64%) rotate(-45deg);
}

.customer-app .swatch-row .color-choice[data-color="#121317"].active i::after,
.customer-app .swatch-row .color-choice[data-color="#000000"].active i::after,
.customer-app .swatch-row .color-choice[data-color="#091629"].active i::after,
.customer-app .swatch-row .color-choice[data-color="#0b1b33"].active i::after,
.customer-app .swatch-row .color-choice[data-color="#1f2937"].active i::after {
  border-color: #f7f7ef;
}

.customer-app .swatch-row .color-choice.is-dark.active i::after {
  border-color: #f7f7ef;
}

.customer-app .order-size-summary {
  display: grid;
  gap: 5px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
}

.customer-app .order-size-summary span {
  color: rgba(247, 247, 239, .48);
  font-size: 11px;
}

.customer-app .order-size-summary strong {
  color: #f7f7ef;
  font-size: 13px;
}

.customer-app .bulk-trial-card {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(5, 7, 8, .46);
}

.customer-app .bulk-trial-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.customer-app .bulk-trial-card > div span,
.customer-app .bulk-trial-card em {
  color: rgba(247, 247, 239, .56);
  font-size: 11px;
  font-style: normal;
}

.customer-app .bulk-trial-card > div strong {
  color: var(--green);
  font-size: 13px;
}

.customer-app .bulk-trial-card input[type="range"] {
  width: 100%;
  min-height: 20px;
  margin: 0;
  accent-color: var(--green);
  cursor: ew-resize;
}

/* The editor shell is viewport-locked; the long product settings column owns its scroll. */
@media (min-width: 821px) {
  .customer-app .studio > .product-panel,
  .customer-app .studio > .edit-panel {
    height: 100%;
    min-height: 0;
    max-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(40, 215, 229, .58) rgba(255, 255, 255, .06);
    padding-bottom: 72px;
  }

  .customer-app .studio > .product-panel::-webkit-scrollbar,
  .customer-app .studio > .edit-panel::-webkit-scrollbar {
    width: 8px;
  }

  .customer-app .studio > .product-panel::-webkit-scrollbar-thumb,
  .customer-app .studio > .edit-panel::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(40, 215, 229, .58);
  }
}

@media (max-width: 820px) {
  .customer-app .editor-shell {
    overflow-x: clip !important;
    overflow-y: visible !important;
  }

  .customer-app .studio > .product-panel,
  .customer-app .studio > .edit-panel {
    height: auto;
    min-height: 0;
    max-height: calc(100dvh - 150px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    padding-bottom: 72px;
  }
}

/* Keep the campaign frame stable while slide copy and image ratios change. */
.customer-app .home-hero {
  height: clamp(620px, calc(100svh - 104px), 820px);
  min-height: 620px;
  max-height: 820px;
}

.customer-app .home-hero-copy {
  width: 100%;
  min-height: 0;
}

.customer-app #homeHeroTitle {
  display: -webkit-box;
  height: 3.06em;
  min-height: 3.06em;
  max-height: 3.06em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.customer-app #homeHeroDescription {
  display: -webkit-box;
  height: 5.1em;
  min-height: 5.1em;
  max-height: 5.1em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.customer-app .home-hero-background {
  contain: layout paint;
}

@media (max-width: 820px) {
  .customer-app .home-hero {
    height: 700px;
    min-height: 700px;
    max-height: 700px;
  }

  .customer-app .home-hero::before {
    background-position: center;
    background-size: cover;
    opacity: .14;
    filter: blur(18px) saturate(.82);
    transform: scale(1.08);
  }

  .customer-app .home-hero-background {
    object-fit: contain !important;
    object-position: center !important;
    opacity: .44;
    filter: saturate(.92) contrast(.98);
    transform: none;
  }

  .customer-app #homeHeroTitle {
    min-height: 3.06em;
  }

  .customer-app #homeHeroDescription {
    height: 6.6em;
    min-height: 6.6em;
    max-height: 6.6em;
    -webkit-line-clamp: 4;
  }
}

@media (max-width: 480px) {
  .customer-app .home-hero {
    height: 640px;
    min-height: 640px;
    max-height: 640px;
  }


  .customer-app .home-hero-bg-controls {
    gap: 7px;
  }

  .customer-app .home-hero-bg-controls > span {
    font-size: 10px;
  }
}

/* Final mobile studio geometry. This must remain last to beat legacy editor rules. */
@media (max-width: 820px) {
  .customer-app .editor-shell {
    padding-inline: 8px;
    padding-bottom: max(88px, calc(72px + env(safe-area-inset-bottom)));
  }

  .customer-app .studio {
    gap: 10px;
  }

  .customer-app .editor-progress {
    margin-block: 8px;
  }

  .customer-app .studio > .stage-panel {
    padding: 8px;
    overflow: visible;
  }

  .customer-app .stage-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-bottom: 8px;
  }

  .customer-app .stage-header > div:first-child {
    min-width: 0;
  }

  .customer-app .stage-header h1 {
    font-size: 18px;
  }

  .customer-app .stage-header #canvasMeta {
    display: block;
    max-width: 46vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .customer-app .stage-actions {
    grid-column: 2;
    grid-row: 1;
    grid-template-columns: repeat(2, minmax(72px, 1fr));
    width: auto;
  }

  .customer-app .stage-actions .mode-button {
    min-height: 44px;
    padding-inline: 10px;
  }

  .customer-app .print-area-toolbar {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .customer-app .print-area-menu-trigger {
    width: 100%;
    min-height: 48px;
  }

  .customer-app .canvas-position-switcher {
    min-height: 48px;
    padding: 4px;
  }

  .customer-app .canvas-position-switcher .side-button {
    min-width: 88px;
    min-height: 40px;
  }

  .customer-app .canvas-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 60px;
    align-items: center;
    justify-items: center;
    min-height: 0;
    aspect-ratio: auto;
    gap: 6px;
    padding: 6px;
    overflow: hidden;
  }

  .customer-app #designCanvas {
    grid-row: 1;
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: none;
    margin: 0;
  }

  .customer-app .canvas-layer-panel {
    top: 14px;
    right: 14px;
    left: auto;
    width: min(236px, calc(100% - 28px));
    max-height: min(52%, 300px);
    padding: 7px;
  }

  .customer-app .canvas-layer-panel.collapsed {
    width: 48px;
  }

  .customer-app .canvas-layer-head,
  .customer-app .canvas-layer-head .icon-button {
    min-height: 44px;
  }

  .customer-app .canvas-command-rail {
    position: static;
    grid-row: 2;
    display: flex;
    width: 100%;
    height: 60px;
    gap: 6px;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
  }

  .customer-app .canvas-rail-zoom {
    grid-template-columns: 44px minmax(112px, 1fr) 44px 52px;
    flex: 0 0 min(100%, 292px);
    min-height: 58px;
    gap: 4px;
    padding: 6px;
    scroll-snap-align: start;
  }

  .customer-app .canvas-rail-icon,
  .customer-app .canvas-rail-fit {
    min-width: 44px;
    min-height: 44px;
  }

  .customer-app .canvas-command-rail .canvas-zoom-control {
    grid-template-columns: minmax(76px, 1fr) 34px;
    min-height: 0;
  }

  .customer-app .canvas-command-rail .canvas-zoom-control input {
    width: 100%;
    height: 44px;
    min-height: 44px;
    writing-mode: horizontal-tb;
    direction: ltr;
  }

  .customer-app .canvas-command-rail .quickbar {
    grid-template-columns: repeat(4, 76px);
    flex: 0 0 auto;
    min-height: 58px;
    padding: 5px;
    scroll-snap-align: start;
  }

  .customer-app .canvas-command-rail .canvas-command-button {
    min-width: 76px;
    min-height: 48px;
    padding: 5px 7px;
  }

  .customer-app .studio > .toolbox-jump {
    top: auto;
    bottom: max(6px, env(safe-area-inset-bottom));
    z-index: 28;
    gap: 5px;
    padding: 5px;
    box-shadow: 0 -14px 34px rgba(0,0,0,.42);
  }

  .customer-app .studio > .toolbox-jump button {
    min-width: 76px;
    min-height: 48px;
  }
}

@media (max-width: 430px) {
  .customer-app .stage-header {
    grid-template-columns: 1fr;
  }

  .customer-app .stage-actions {
    grid-column: 1;
    grid-row: 2;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }

  .customer-app .print-area-toolbar {
    grid-row: 3;
  }

  .customer-app .stage-header #canvasMeta {
    max-width: 100%;
  }
}

/* Workbench clarity pass: one mobile command rail, no onboarding overlay. */
.customer-app .canvas-onboarding {
  position: relative;
  inset: auto;
  transform: none;
  width: auto;
  max-width: none;
  margin: 10px 0 12px;
  padding: 14px 48px 14px 16px;
  border: 1px solid rgba(40, 215, 229, .34);
  border-radius: 12px;
  background: linear-gradient(110deg, rgba(19, 41, 39, .94), rgba(9, 14, 14, .96));
}

.customer-app .canvas-onboarding h2 { margin: 3px 0 4px; font-size: 20px; }
.customer-app .canvas-onboarding p { margin: 0; max-width: 680px; font-size: 12px; }
.customer-app .canvas-onboarding-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.customer-app .canvas-onboarding-actions .button { min-height: 40px; padding: 7px 14px; }
.customer-app .canvas-onboarding-close { top: 9px; right: 9px; }

.customer-app .order-size-matrix-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.customer-app .order-size-matrix-head span { color: var(--text); font-weight: 800; }
.customer-app .order-size-matrix-head small { color: var(--muted); font-size: 11px; }
.customer-app .order-size-options { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.customer-app .order-size-option { min-width: 48px; min-height: 40px; padding: 5px 10px; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; color: var(--muted); background: rgba(255,255,255,.035); font: inherit; cursor: pointer; }
.customer-app .order-size-option.active { border-color: var(--cyan); color: var(--text); background: rgba(40,215,229,.12); }
.customer-app .order-size-option b { margin-left: 4px; color: var(--green); font-size: 11px; }

@media (max-width: 820px) {
  .customer-app .editor-action-dock { display: none !important; }
  .customer-app .editor-mobile-dock { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .customer-app .editor-mobile-dock .editor-mobile-order-duplicate { display: grid; }
  .customer-app .studio.editor-order-open .editor-mobile-dock { display: none !important; }
  .customer-app .editor-mobile-dock button strong { font-size: 9px; }
  .customer-app .canvas-onboarding { margin: 8px 4px 10px; padding: 12px 44px 12px 13px; }
  .customer-app .canvas-onboarding h2 { font-size: 17px; }
  .customer-app .canvas-onboarding p { font-size: 11px; }
  .customer-app .canvas-onboarding-actions { gap: 6px; }
  .customer-app .canvas-onboarding-actions .button { min-height: 38px; padding-inline: 11px; font-size: 11px; }
  .customer-app .stage-header { grid-template-columns: minmax(0, 1fr) auto; }
  .customer-app .stage-actions { width: auto; max-width: none; }
  .customer-app .print-area-toolbar { min-height: 46px; }
  .customer-app .checkout-dialog { display: flex; flex-direction: column; }
  .customer-app .checkout-dialog > .section-title-row { order: 0; }
  .customer-app .checkout-dialog > .order-summary { order: 1; }
  .customer-app .checkout-dialog > .checkout-address-panel { order: 2; }
  .customer-app .checkout-dialog > .checkout-payment-method { order: 3; }
  .customer-app .checkout-dialog > .checkout-refund-notice { order: 4; }
  .customer-app .checkout-dialog > .checkout-preview-panel { order: 5; }
  .customer-app .checkout-dialog > #payBtn { order: 6; }
  .customer-app .checkout-preview-panel { max-height: 150px; overflow: hidden; }
  .customer-app .checkout-preview-gallery { grid-auto-columns: minmax(132px, 42vw); }
  .customer-app .checkout-payment-method small { display: block; max-height: 34px; overflow: hidden; }
  .customer-app .order-size-matrix-head { align-items: flex-start; flex-direction: column; gap: 2px; }
  .customer-app .order-size-options { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
  .customer-app .order-size-option { flex: 0 0 auto; }
}

@media (max-width: 430px) {
  .customer-app .editor-shell .topbar { min-height: 48px; }
  .customer-app .editor-shell .topbar .brand strong { font-size: 14px; }
  .customer-app .editor-shell .topbar .brand small { display: none; }
  .customer-app .editor-progress { margin-block: 5px 7px; }
  .customer-app .editor-progress .progress-step { min-height: 34px; padding-inline: 10px; font-size: 11px; }
  .customer-app .canvas-shell { max-height: min(64svh, 540px); }
}

/* Four-step editor path: equal visual weight and centered labels at every width. */
.customer-app .editor-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 760px);
  gap: 10px;
}

.customer-app .editor-progress .progress-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 112px;
  min-height: 36px;
  padding: 0 14px;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.customer-app .editor-progress .progress-line {
  flex: 1 1 20px;
  min-width: 16px;
  max-width: 42px;
}

@media (max-width: 820px) {
  .customer-app .editor-progress {
    justify-content: flex-start;
    width: 100%;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .customer-app .editor-progress::-webkit-scrollbar {
    display: none;
  }

  .customer-app .editor-progress .progress-step {
    min-width: 112px;
    min-height: 36px;
  }

  .customer-app .editor-progress .progress-line {
    flex: 0 0 20px;
    min-width: 20px;
  }
}

/* Order operations: clear, auditable actions without exposing sensitive state to caching. */
.customer-app .order-status-cancelled {
  display: flex;
  align-items: center;
  gap: 12px;
  grid-column: 1 / -1;
  padding: 16px;
  border: 1px solid rgba(255, 111, 113, 0.34);
  background: rgba(255, 111, 113, 0.08);
}

.customer-app .order-status-cancelled i {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 50%;
  color: #080909;
  background: #ff6f71;
  font-size: 22px;
  font-style: normal;
  font-weight: 900;
}

.customer-app .order-status-cancelled div,
.customer-app .order-service-event div,
.customer-app .customer-service-content {
  display: grid;
  gap: 4px;
}

.customer-app .order-status-cancelled span,
.customer-app .order-service-event span,
.customer-app .order-service-event small {
  color: rgba(247, 247, 239, 0.58);
}

.customer-app .order-service-history {
  display: grid;
  gap: 0;
}

.customer-app .order-service-event {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.customer-app .order-service-event > i {
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(34, 232, 255, 0.1);
}

.customer-app .order-service-event > i.status-rejected,
.customer-app .order-service-event > i.status-cancelled {
  background: #ff6f71;
  box-shadow: 0 0 0 4px rgba(255, 111, 113, 0.1);
}

.customer-app .order-service-event > i.status-refunded,
.customer-app .order-service-event > i.status-approved {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(184, 255, 61, 0.1);
}

.customer-app .order-action-dialog,
.customer-app .customer-service-dialog {
  width: min(560px, calc(100vw - 28px));
}

/* Order actions are modal layers above the full-screen order detail view. */
.customer-app .order-secondary-modal {
  z-index: 64;
}

.customer-app .order-detail-header-actions .danger-button {
  border-color: rgba(255, 111, 113, 0.46);
  color: #ff8a8c;
}

.customer-app .order-detail-header-actions .danger-button:hover {
  border-color: #ff6f71;
  color: #080909;
  background: #ff6f71;
}

.customer-app .order-action-note {
  margin: 0 0 16px;
  color: rgba(247, 247, 239, 0.62);
  line-height: 1.65;
}

.customer-app .order-address-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.customer-app .order-address-fields .field:last-child {
  grid-column: 1 / -1;
}

.customer-app .customer-service-content {
  justify-items: center;
  padding: 8px 0 2px;
  text-align: center;
}

.customer-app .customer-service-content img {
  width: min(300px, 76vw);
  aspect-ratio: 1;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #fff;
  object-fit: contain;
}

.customer-app .customer-service-content strong {
  margin-top: 10px;
  font-size: 18px;
}

.customer-app .customer-service-content span,
.customer-app .customer-service-content small {
  color: rgba(247, 247, 239, 0.58);
  line-height: 1.6;
}

@media (max-width: 640px) {
  .customer-app .order-detail-header-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .customer-app .order-detail-header-actions .button {
    width: 100%;
    min-width: 0;
  }

  .customer-app .order-address-fields {
    grid-template-columns: 1fr;
  }

  .customer-app .order-address-fields .field:last-child {
    grid-column: 1;
  }
}

/* Material licensing workspace */
.home-hero.hero-banner-only.is-hero-loading:not(.has-loaded-hero-image) {
  --home-hero-bg-color: #0a0e0e !important;
  --home-hero-bg-image: none !important;
}

.home-hero.hero-banner-only.is-hero-loading:not(.has-loaded-hero-image)::after {
  content: "CREATIVERSE";
  position: absolute;
  inset-inline-end: clamp(24px, 7vw, 112px);
  inset-block-end: clamp(24px, 7vw, 84px);
  color: rgba(247, 247, 239, 0.32);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.profile-material-upload {
  position: relative;
  flex: 0 0 auto;
  cursor: pointer;
}

.profile-material-upload input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.creator-manage-dialog[aria-label="原创素材详情"] {
  inline-size: min(1040px, calc(100vw - 32px));
  max-block-size: min(900px, calc(100dvh - 32px));
  overflow: auto;
}

.creator-manage-dialog[aria-label="原创素材详情"] .creator-manage-layout {
  align-items: start;
}

.creator-license-panel {
  display: grid;
  gap: 18px;
  margin-block-start: 8px;
  padding-block-start: 20px;
  border-block-start: 1px solid rgba(247, 247, 239, 0.16);
}

.creator-license-intro {
  display: grid;
  gap: 5px;
}

.creator-license-intro strong {
  color: #f7f7ef;
  font-size: 18px;
}

.creator-license-intro span,
.creator-watermark-file small {
  color: #aeb8b4;
  font-size: 13px;
  line-height: 1.55;
}

.creator-watermark-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.creator-watermark-file input[type="file"] {
  inline-size: 100%;
  min-inline-size: 0;
  color: #aeb8b4;
  font-size: 13px;
}

.creator-watermark-preview {
  display: grid;
  gap: 8px;
}

.creator-watermark-preview > span {
  color: #aeb8b4;
  font-size: 12px;
  font-weight: 800;
}

.creator-watermark-preview canvas {
  display: block;
  inline-size: 100%;
  aspect-ratio: 4 / 3;
  block-size: auto;
  max-block-size: 310px;
  border-radius: 8px;
  background: #090c0c;
  object-fit: contain;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.creator-watermark-preview canvas.is-dragging { cursor: grabbing; }

/* Personal materials are compact management records, not full-size gallery tiles. */
.customer-app #profileArtworkList.creator-artwork-list {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  align-items: start;
  gap: 12px;
}

.customer-app #profileArtworkList .creator-artwork-row {
  display: grid;
  min-height: 156px;
  padding: 12px;
  grid-template-columns: 132px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 10px 14px;
  aspect-ratio: auto;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(12, 18, 18, 0.96), rgba(4, 7, 7, 0.98));
}

.customer-app #profileArtworkList .creator-artwork-media {
  position: relative;
  inset: auto;
  grid-row: 1 / -1;
  width: 132px;
  height: 132px;
  aspect-ratio: 1;
  border: 1px solid rgba(226, 239, 233, 0.14);
  border-radius: 7px;
}

.customer-app #profileArtworkList .creator-artwork-media img {
  border-radius: 7px;
  object-fit: contain;
}

.customer-app #profileArtworkList .profile-gallery-overlay {
  position: static;
  align-content: end;
  min-height: 0;
  padding: 4px 0 0;
  opacity: 1;
  background: none;
  pointer-events: auto;
  transform: none;
}

.customer-app #profileArtworkList .profile-gallery-overlay strong {
  font-size: 14px;
}

.customer-app #profileArtworkList .profile-gallery-overlay span {
  margin-top: 5px;
  white-space: normal;
  line-height: 1.45;
}

.customer-app #profileArtworkList .creator-artwork-actions {
  position: static;
  align-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  opacity: 1;
}

.customer-app #profileArtworkList .creator-artwork-actions .mini-button {
  min-width: 96px;
}

.customer-app #profileArtworkList .profile-ai-asset-row .profile-gallery-type {
  color: #2dd8e6;
  border-color: rgba(45, 216, 230, 0.38);
  background: rgba(45, 216, 230, 0.12);
}

.customer-app #profileArtworkList .profile-ai-asset-row .creator-artwork-actions .mini-button {
  min-width: 88px;
}

.customer-app #profileArtworkList .profile-gallery-save-mark { display: none; }

@media (max-width: 680px) {
  .customer-app #profileArtworkList.creator-artwork-list { grid-template-columns: 1fr; }

  .customer-app #profileArtworkList .creator-artwork-row {
    min-height: 136px;
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .customer-app #profileArtworkList .creator-artwork-media {
    width: 112px;
    height: 112px;
  }
}

.creator-original-agreement {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 8px;
  background: rgba(184, 255, 61, 0.06);
  border: 1px solid rgba(184, 255, 61, 0.2);
}

.creator-original-agreement > strong {
  color: #f7f7ef;
  font-size: 15px;
}

.creator-original-agreement > div {
  max-block-size: 150px;
  overflow: auto;
  color: #c9d2ce;
  font-size: 13px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.creator-original-agreement label {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: #f7f7ef;
  font-size: 14px;
  line-height: 1.55;
  cursor: pointer;
}

.creator-original-agreement input {
  inline-size: 18px;
  block-size: 18px;
  margin-block-start: 2px;
  accent-color: #b8ff3d;
}

.creator-original-agreement input:disabled {
  opacity: 1;
  cursor: not-allowed;
}

.creator-original-agreement input:disabled + span {
  color: #b8ff3d;
}

@media (max-width: 760px) {
  .profile-gallery-toolbar {
    align-items: stretch;
  }

  .profile-material-upload {
    inline-size: fit-content;
  }

  .creator-manage-dialog[aria-label="原创素材详情"] {
    inline-size: calc(100vw - 16px);
    max-block-size: calc(100dvh - 16px);
    padding: 16px;
  }

  .creator-manage-dialog[aria-label="原创素材详情"] .creator-manage-layout,
  .creator-watermark-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .creator-manage-dialog[aria-label="原创素材详情"] > .modal-actions {
    position: sticky;
    inset-block-end: -16px;
    z-index: 3;
    margin: 8px -16px -16px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: #0b0e0e;
    border-block-start: 1px solid rgba(247, 247, 239, 0.14);
  }
}

/* Order center: compact pagination, expiring payments and safe cancelled-order cleanup. */
.customer-app .profile-order-tabs {
  display: flex;
  overflow-x: auto;
  scrollbar-width: thin;
}

.customer-app .profile-order-tabs button {
  flex: 0 0 auto;
  width: max-content;
  min-width: 112px;
  white-space: nowrap;
}

.customer-app .profile-order-manage {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 8px 10px;
  border: 1px solid rgba(242, 245, 239, 0.12);
  background: rgba(5, 6, 8, 0.52);
}

.customer-app .profile-order-manage[hidden] {
  display: none;
}

.customer-app .profile-order-manage label {
  display: inline-flex;
  width: auto;
  align-items: center;
  gap: 8px;
  color: var(--soft);
  cursor: pointer;
}

.customer-app .profile-order-manage input,
.customer-app .profile-order-select input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.customer-app .profile-order-manage > span {
  margin-right: auto;
  color: rgba(247, 247, 239, 0.56);
  font-size: 12px;
}

.customer-app .profile-order-manage .mini-button {
  width: auto;
  min-width: 100px;
  min-height: 36px;
  padding: 0 14px;
}

.customer-app .profile-order-row.selected {
  border-color: rgba(40, 215, 229, 0.48);
  background: rgba(40, 215, 229, 0.06);
}

.customer-app .profile-order-row:has(.profile-order-select) {
  grid-template-columns: 26px 74px minmax(0, 1fr) auto;
}

.customer-app .profile-order-select {
  display: grid;
  width: 26px;
  min-height: 44px;
  place-items: center;
  cursor: pointer;
}

.customer-app .profile-order-countdown,
.customer-app .profile-order-cancel-reason,
.customer-app .profile-order-refund {
  width: fit-content;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.customer-app .profile-order-countdown.urgent {
  color: var(--coral, #ff684b);
}

.customer-app .profile-order-refund {
  color: var(--cyan, #26f4ff);
}

.customer-app .profile-order-refund.status-failed {
  color: var(--coral, #ff684b);
}

.customer-app .profile-order-refund.status-refunded {
  color: var(--green, #b8ff3d);
}

.customer-app .order-logistics-alert,
.customer-app .order-logistics-empty {
  margin: 12px 0 0;
  color: rgba(247, 247, 239, 0.66);
  font-size: 12px;
  line-height: 1.55;
}

.customer-app .order-logistics-alert {
  color: var(--coral, #ff684b);
}

.customer-app .order-logistics-timeline {
  display: grid;
  gap: 0;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.customer-app .order-logistics-timeline li {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 10px;
  position: relative;
  padding: 0 0 16px;
}

.customer-app .order-logistics-timeline li:not(:last-child)::after {
  position: absolute;
  top: 12px;
  bottom: 0;
  left: 5px;
  width: 1px;
  background: rgba(247, 247, 239, 0.18);
  content: "";
}

.customer-app .order-logistics-timeline i {
  z-index: 1;
  width: 11px;
  height: 11px;
  margin-top: 3px;
  border: 2px solid rgba(247, 247, 239, 0.42);
  border-radius: 50%;
  background: #111317;
}

.customer-app .order-logistics-timeline .current i {
  border-color: var(--green, #b8ff3d);
  background: var(--green, #b8ff3d);
}

.customer-app .order-logistics-timeline div {
  display: grid;
  gap: 4px;
}

.customer-app .order-logistics-timeline strong {
  color: var(--text);
  font-size: 12px;
  line-height: 1.5;
}

.customer-app .order-logistics-timeline span {
  color: rgba(247, 247, 239, 0.56);
  font-size: 11px;
}

.customer-app .profile-order-cancel-reason {
  color: rgba(247, 247, 239, 0.58);
  font-weight: 700;
}

.customer-app .profile-order-aside {
  grid-template-columns: repeat(2, auto);
  align-items: center;
  gap: 6px;
}

.customer-app .profile-order-aside > strong {
  grid-column: 1 / -1;
  justify-self: end;
}

.customer-app .profile-order-aside .mini-button {
  width: auto;
  min-width: 82px;
  min-height: 36px;
  padding: 0 12px;
}

.customer-app .profile-order-pagination {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.customer-app .profile-order-pagination button {
  width: auto;
  min-width: 88px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(242, 245, 239, 0.16);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(5, 6, 8, 0.58);
  cursor: pointer;
}

.customer-app .profile-order-pagination button:hover:not(:disabled),
.customer-app .profile-order-pagination button:focus-visible {
  border-color: var(--cyan);
}

.customer-app .profile-order-pagination button:disabled {
  opacity: 0.36;
  cursor: default;
}

.customer-app .profile-order-pagination span {
  color: rgba(247, 247, 239, 0.58);
  font-size: 12px;
}

.customer-app .payment-share-card {
  display: grid;
  width: min(1180px, 100%);
  margin: 0 auto 72px;
  padding: 32px;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(32px, 5vw, 64px);
  border: 1px solid rgba(226, 239, 233, 0.16);
  border-radius: 8px;
  background: #0a0e0e;
}

.customer-app .payment-share-copy {
  display: grid;
  grid-column: 2;
  grid-row: 1;
  align-content: center;
  gap: 14px;
  min-width: 0;
  padding-block: 8px;
}

.customer-app .payment-share-copy .section-kicker {
  color: var(--cyan);
}

.customer-app .payment-share-copy h2 {
  max-width: none;
  margin: 0;
  color: var(--soft);
  font-size: 30px;
  line-height: 1.15;
}

.customer-app .payment-share-copy > p:not(.payment-share-status) {
  max-width: 42ch;
  margin: 0;
  color: rgba(226, 239, 233, 0.62);
  font-size: 14px;
  line-height: 1.75;
}

.customer-app .payment-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 10px;
}

.customer-app .payment-share-actions .button {
  width: auto;
  min-height: 44px;
}

.customer-app .payment-share-status {
  min-height: 20px;
  margin: 0;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.customer-app .payment-share-poster-frame {
  display: grid;
  grid-column: 1;
  grid-row: 1;
  gap: 10px;
  width: min(100%, 320px);
  margin: 0;
  justify-self: start;
}

.customer-app .payment-share-poster-canvas {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 9 / 16;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(226, 239, 233, 0.2);
  border-radius: 8px;
  background: #070a0a;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.36);
}

.customer-app .payment-share-poster-canvas img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.customer-app .payment-share-poster-frame figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(226, 239, 233, 0.52);
  font-size: 12px;
}

.customer-app .payment-share-poster-frame figcaption strong {
  color: var(--soft);
  font-size: 13px;
}

.customer-app .payment-share-poster-empty {
  display: grid;
  height: 100%;
  padding: 28px;
  place-content: center;
  justify-items: center;
  gap: 10px;
  color: rgba(226, 239, 233, 0.5);
  text-align: center;
}

.customer-app .payment-share-poster-empty[hidden] { display: none; }

.customer-app .payment-share-poster-empty span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(184, 255, 61, 0.46);
  border-radius: 50%;
  color: var(--green);
  font-size: 30px;
  line-height: 1;
}

.customer-app .payment-share-poster-empty strong {
  color: var(--soft);
  font-size: 16px;
}

.customer-app .payment-share-poster-empty small { font-size: 12px; }

.customer-app .payment-success-intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.customer-app .payment-success-intro-actions .button {
  width: auto;
  min-height: 44px;
}

.customer-app .payment-success-page {
  display: flex;
  flex-direction: column;
}

.customer-app .payment-success-topbar { order: 0; }
.customer-app .payment-success-intro { order: 1; }
.customer-app .payment-official-follow { order: 2; }
.customer-app .publication-console { order: 3; }
.customer-app .payment-share-card { order: 4; }
.customer-app .purchase-success-card { order: 5; }

.customer-app .payment-success-page.creator-tools-open .payment-success-intro {
  min-height: 0;
  padding-block: 42px;
}

.customer-app .payment-success-page.creator-tools-open .payment-success-intro h1 {
  max-width: 16ch;
  font-size: 42px;
}

.customer-app .payment-success-page.creator-tools-open .payment-success-check {
  width: 44px;
  margin-bottom: 16px;
  font-size: 22px;
}

.customer-app .payment-success-page.creator-tools-open .payment-success-preview {
  width: min(100%, 280px);
  justify-self: end;
}

.customer-app .publication-console {
  padding: 28px 30px 30px;
  border: 1px solid rgba(226, 239, 233, 0.16);
  border-radius: 8px;
  background: #0a0e0e;
}

.customer-app .publication-heading {
  align-items: center;
  margin-bottom: 20px;
}

.customer-app .publication-heading h2 {
  font-size: 30px;
}

.customer-app .publication-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
  border-block: 1px solid rgba(226, 239, 233, 0.12);
}

.customer-app .publication-flow span {
  display: flex;
  min-width: 0;
  min-height: 54px;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: rgba(226, 239, 233, 0.56);
  font-size: 13px;
  font-weight: 800;
}

.customer-app .publication-flow span + span {
  border-inline-start: 1px solid rgba(226, 239, 233, 0.12);
}

.customer-app .publication-flow b {
  display: grid;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid rgba(226, 239, 233, 0.2);
  border-radius: 50%;
  color: var(--soft);
  font-size: 12px;
}

.customer-app .publication-flow .active {
  color: var(--soft);
}

.customer-app .publication-flow .active b {
  border-color: var(--green);
  color: #070909;
  background: var(--green);
}

.customer-app .publication-option {
  transition: border-color 160ms ease-out, background 160ms ease-out;
}

.customer-app .publication-option:has(.publication-option-head input:checked) {
  border-color: rgba(184, 255, 61, 0.34);
  background: rgba(184, 255, 61, 0.055);
}

.customer-app .publication-option-head {
  min-height: 88px;
  padding: 18px 20px;
}

.customer-app .publication-option-head > div {
  gap: 5px;
}

.customer-app .publication-option-head strong {
  font-size: 16px;
}

.customer-app .publication-option-head span {
  font-size: 13px;
}

.customer-app .publication-actions {
  align-items: center;
}

@media (max-width: 680px) {
  .customer-app .profile-order-row,
  .customer-app .profile-order-row:has(.profile-order-select) {
    grid-template-columns: 26px 60px minmax(0, 1fr);
  }

  .customer-app .profile-order-row:not(:has(.profile-order-select)) {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .customer-app .profile-order-aside {
    grid-column: 2 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-items: stretch;
    width: 100%;
  }

  .customer-app .profile-order-aside > strong {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .customer-app .profile-order-aside .mini-button {
    width: 100%;
    min-width: 0;
  }

  .customer-app .profile-order-manage {
    flex-wrap: wrap;
  }

  .customer-app .profile-order-manage > span {
    flex: 1 1 auto;
  }

  .customer-app .profile-order-pagination {
    justify-content: space-between;
  }

  .customer-app .payment-share-card {
    margin-bottom: 42px;
    padding: 24px 18px;
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .customer-app .payment-share-copy { grid-column: 1; grid-row: 1; }
  .customer-app .payment-share-copy h2 { font-size: 28px; }
  .customer-app .payment-share-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .customer-app .payment-share-actions .button { width: 100%; min-width: 0; }
  .customer-app .payment-share-actions .button:first-child { grid-column: 1 / -1; }
  .customer-app .payment-share-poster-frame { grid-column: 1; grid-row: 2; width: min(100%, 300px); justify-self: center; }
  .customer-app .payment-success-intro-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .customer-app .payment-success-intro-actions .button { width: 100%; min-width: 0; }
  .customer-app .payment-success-intro-actions .share-earnings-button { grid-column: 1 / -1; }
  .customer-app .publication-console { padding: 22px 18px 24px; }
  .customer-app .publication-flow { grid-template-columns: 1fr; }
  .customer-app .publication-flow span + span { border-inline-start: 0; border-top: 1px solid rgba(226, 239, 233, 0.12); }
}

/* Editor edge controls: structural positioning prevents canvas overlays. */
.customer-app .stage-panel {
  position: relative;
}

.customer-app .toolbox-collapse {
  position: absolute;
  top: 50%;
  left: -13px;
  z-index: 32;
  display: grid;
  place-items: center;
  width: 24px;
  height: 52px;
  min-width: 24px;
  min-height: 52px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(53, 231, 232, 0.36) !important;
  border-radius: 7px !important;
  color: var(--cyan) !important;
  background: #0a0e0f !important;
  box-shadow: 8px 14px 26px rgba(0, 0, 0, 0.3);
  transform: translateY(-50%);
  transition: color 150ms ease-out, border-color 150ms ease-out, background 150ms ease-out;
}

.customer-app .toolbox-collapse:hover,
.customer-app .toolbox-collapse:focus-visible {
  border-color: var(--green) !important;
  color: #07100b !important;
  background: var(--green) !important;
}

.customer-app .toolbox-collapse-icon {
  display: block;
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
}

@media (min-width: 821px) {
  .customer-app .studio.toolbox-collapsed .toolbox-collapse {
    left: -25px;
  }
}

.customer-app .canvas-workbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 8px;
  flex: 0 0 auto;
  min-width: 0;
  margin-bottom: 8px;
}

.customer-app .canvas-workbar .canvas-position-switcher {
  min-width: 0;
  margin: 0;
}

.customer-app .canvas-save-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 112px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(184, 255, 61, 0.48);
  border-radius: 8px;
  color: #eef5ed;
  background: #0a0e0f;
  box-shadow: none;
  transition: color 150ms ease-out, background 150ms ease-out, border-color 150ms ease-out;
}

.customer-app .canvas-save-action strong {
  font-size: 12px;
  line-height: 1;
}

.customer-app .canvas-save-state {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.customer-app .canvas-save-action:hover,
.customer-app .canvas-save-action:focus-visible,
.customer-app .canvas-save-action.is-saved {
  border-color: var(--green);
  color: #07100b;
  background: var(--green);
}

.customer-app .canvas-save-action:hover .canvas-save-state,
.customer-app .canvas-save-action:focus-visible .canvas-save-state,
.customer-app .canvas-save-action.is-saved .canvas-save-state {
  background: #07100b;
}

.customer-app .canvas-command-rail .quickbar {
  grid-template-columns: 1fr;
}

@media (max-width: 820px) {
  .customer-app .toolbox-collapse {
    top: 18px;
    right: 10px;
    left: auto;
    width: 44px;
    height: 30px;
    min-width: 44px;
    min-height: 30px;
    border-radius: 7px !important;
    transform: none;
  }

  .customer-app .toolbox-collapse-icon {
    font-size: 20px;
    transform: rotate(90deg);
  }

  .customer-app .toolbox-collapse.is-collapsed .toolbox-collapse-icon {
    transform: rotate(-90deg);
  }

  .customer-app .canvas-workbar {
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: 6px;
  }

  .customer-app .canvas-save-action {
    min-width: 104px;
    min-height: 42px;
    padding-inline: 10px;
  }

  .customer-app .canvas-command-rail .quickbar {
    grid-template-columns: repeat(3, 68px);
  }
}

@media (max-width: 430px) {
  .customer-app .canvas-workbar {
    grid-template-columns: minmax(0, 1fr) 96px;
  }

  .customer-app .canvas-save-action {
    min-width: 96px;
    padding-inline: 8px;
  }
}

/* Mobile studio v2: canvas first, contextual tools, stable iOS geometry. */
@media (max-width: 820px) {
  html,
  body.customer-app {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  .customer-app .editor-shell {
    width: 100%;
    max-width: 100%;
    min-height: 100dvh;
    padding: max(6px, env(safe-area-inset-top)) 6px max(18px, env(safe-area-inset-bottom));
    overflow-x: clip;
  }

  .customer-app .editor-shell .topbar,
  .customer-app .editor-shell .topbar > *,
  .customer-app .studio,
  .customer-app .stage-panel,
  .customer-app .canvas-workbar,
  .customer-app .canvas-position-switcher,
  .customer-app .product-panel,
  .customer-app .edit-panel {
    min-width: 0;
    max-width: 100%;
  }

  .customer-app .editor-shell .topbar {
    position: relative;
    top: auto;
    z-index: 30;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 8px;
    overflow: hidden;
    border-radius: 8px;
    background: #080b0b;
    backdrop-filter: none;
  }

  .customer-app .editor-shell .topbar .brand {
    min-height: 40px;
  }

  .customer-app .editor-shell .brand-mark,
  .customer-app .editor-shell .brand-mark.has-image {
    flex-basis: 38px;
    width: 38px !important;
    min-width: 38px;
    height: 38px !important;
  }

  .customer-app .editor-shell .brand strong {
    font-size: 15px;
  }

  .customer-app .editor-shell .brand span {
    display: none;
  }

  .customer-app .editor-shell .top-actions {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    gap: 5px;
    padding: 0;
    overflow: visible;
  }

  .customer-app .editor-shell .top-actions > * {
    flex: 1 1 88px;
    min-width: 0;
    min-height: 40px;
    padding-inline: 10px;
    font-size: 11px;
  }

  .customer-app .editor-shell .top-actions #backToCatalogBtn {
    flex: 1 1 118px;
  }

  .customer-app .editor-shell .top-actions .status-pill {
    flex: 1 1 72px;
  }

  .customer-app .editor-shell .top-actions .icon-button {
    flex: 0 0 40px;
    width: 40px;
    padding: 0;
  }

  .customer-app .editor-progress {
    justify-content: flex-start;
    width: 100%;
    margin: 6px 0;
    gap: 5px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .customer-app .editor-progress .progress-step {
    min-width: 94px;
    min-height: 32px;
    padding-inline: 10px;
    scroll-snap-align: start;
    font-size: 10px;
  }

  .customer-app .editor-progress .progress-line {
    flex: 0 0 12px;
    min-width: 12px;
  }

  .customer-app .studio {
    display: flex;
    width: 100%;
    gap: 7px;
  }

  .customer-app .studio > .stage-panel {
    order: 1;
    width: 100%;
    padding: 7px;
    border-color: rgba(242, 245, 239, 0.14);
  }

  .customer-app .stage-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    margin-bottom: 6px;
  }

  .customer-app .stage-header h1 {
    margin: 0;
    font-size: 17px;
  }

  .customer-app .stage-header #canvasMeta {
    max-width: 58vw;
    font-size: 10px;
  }

  .customer-app .stage-actions {
    grid-column: 2;
    grid-row: 1;
    grid-template-columns: repeat(2, 58px);
    width: auto;
  }

  .customer-app .stage-actions .mode-button {
    min-width: 0;
    min-height: 38px;
    padding-inline: 6px;
    font-size: 11px;
  }

  .customer-app .print-area-toolbar {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .customer-app .print-area-menu-trigger {
    min-height: 42px;
  }

  .customer-app .canvas-workbar {
    grid-template-columns: minmax(0, 1fr) 92px;
    gap: 5px;
    margin-bottom: 6px;
  }

  .customer-app .canvas-position-switcher {
    min-height: 42px;
    padding: 3px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .customer-app .canvas-position-switcher .side-button {
    min-width: 70px;
    min-height: 36px;
    padding-inline: 9px;
    font-size: 11px;
  }

  .customer-app .canvas-save-action {
    min-width: 92px;
    min-height: 42px;
    padding-inline: 8px;
  }

  .customer-app .canvas-shell {
    display: grid;
    width: 100%;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 52px;
    gap: 5px;
    padding: 4px;
    overflow: auto;
    overscroll-behavior: contain;
  }

  .customer-app #designCanvas {
    grid-row: 1;
    width: 100%;
    max-width: none;
    height: auto;
    margin: 0 auto;
    touch-action: none;
  }

  .customer-app .canvas-layer-panel {
    top: 8px;
    right: 8px;
    width: min(224px, calc(100% - 16px));
    max-height: 46%;
  }

  .customer-app .canvas-layer-panel.collapsed {
    width: 42px;
    padding: 3px;
  }

  .customer-app .canvas-layer-head,
  .customer-app .canvas-layer-head .icon-button {
    min-height: 38px;
  }

  .customer-app .canvas-layer-panel.collapsed .canvas-layer-head .icon-button {
    width: 36px;
    min-width: 36px;
    height: 36px;
  }

  .customer-app .canvas-command-rail {
    grid-row: 2;
    height: 52px;
    gap: 5px;
  }

  .customer-app .canvas-rail-zoom {
    grid-template-columns: 40px minmax(96px, 1fr) 40px 48px;
    flex-basis: min(100%, 260px);
    min-height: 50px;
    padding: 4px;
  }

  .customer-app .canvas-rail-icon,
  .customer-app .canvas-rail-fit {
    min-width: 40px;
    min-height: 40px;
  }

  .customer-app .canvas-command-rail .canvas-zoom-control input {
    height: 40px;
    min-height: 40px;
  }

  .customer-app .canvas-command-rail .quickbar {
    grid-template-columns: repeat(3, 64px);
    min-height: 50px;
    padding: 3px;
  }

  .customer-app .canvas-command-rail .canvas-command-button {
    min-width: 64px;
    min-height: 44px;
    padding: 4px;
    font-size: 9px;
  }

  .customer-app .toolbox-collapse {
    display: none;
  }

  .customer-app .studio > .toolbox-jump {
    position: sticky;
    top: auto;
    bottom: max(4px, env(safe-area-inset-bottom));
    z-index: 34;
    order: 2;
    display: flex;
    width: 100%;
    gap: 3px;
    padding: 4px;
    overflow-x: auto;
    border-radius: 8px;
    background: rgba(8, 11, 11, 0.98);
    box-shadow: 0 -16px 38px rgba(0, 0, 0, 0.42);
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .customer-app .studio > .toolbox-jump button {
    flex: 0 0 68px;
    min-width: 68px;
    min-height: 46px;
    padding: 5px 4px;
    border-radius: 6px;
    scroll-snap-align: start;
    font-size: 10px;
    line-height: 1.2;
  }

  .customer-app .studio > .toolbox-jump button.active {
    border-color: var(--green);
    color: #071008;
    background: var(--green);
  }

  .customer-app .studio > .product-panel,
  .customer-app .studio > .edit-panel {
    order: 3;
    width: 100%;
    max-height: none;
    padding: 10px;
    overflow: visible;
    overscroll-behavior: auto;
    border-radius: 8px;
  }

  .customer-app .product-panel .toolbox-header,
  .customer-app .edit-panel .toolbox-header {
    position: sticky;
    top: -10px;
    z-index: 5;
    margin: -10px -10px 10px;
    padding: 12px 10px 10px;
    border-bottom: 1px solid var(--line);
    background: #0b0e0e;
  }

  .customer-app .product-panel .toolbox-header strong,
  .customer-app .edit-panel .toolbox-header strong {
    font-size: 15px;
  }

  .customer-app .product-panel .toolbox-header span,
  .customer-app .edit-panel .toolbox-header span {
    font-size: 10px;
  }

  .customer-app .studio[data-active-tool] .edit-panel > section {
    display: none;
  }

  .customer-app .studio[data-active-tool="toolUpload"] .edit-panel #toolUpload,
  .customer-app .studio[data-active-tool="artworkPanel"] .edit-panel #artworkPanel,
  .customer-app .studio[data-active-tool="creatorArtworkPanel"] .edit-panel #creatorArtworkPanel,
  .customer-app .studio[data-active-tool="myPanel"] .edit-panel #myPanel,
  .customer-app .studio[data-active-tool="contactQrPanel"] .edit-panel #contactQrPanel,
  .customer-app .studio[data-active-tool="toolText"] .edit-panel #toolText,
  .customer-app .studio[data-active-tool="toolLayer"] .edit-panel #toolLayer,
  .customer-app .studio[data-active-tool="toolShape"] .edit-panel #toolShape,
  .customer-app .studio[data-active-tool="toolOrder"] .edit-panel #toolOrder {
    display: block;
  }

  .customer-app .edit-panel .tool-section,
  .customer-app .edit-panel .artwork-panel {
    margin: 0;
    padding: 8px 2px 12px;
    border: 0;
    background: transparent;
  }

  .customer-app .auth-modal {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .customer-app .auth-dialog {
    width: 100%;
    max-width: 100%;
    height: min(92dvh, 820px);
    max-height: 92dvh;
    overflow: hidden;
  }

  .customer-app .auth-account-panel {
    min-width: 0;
    width: 100%;
    padding-inline: 16px;
    overflow-x: hidden;
  }

  .customer-app .auth-account-panel input,
  .customer-app .auth-account-panel select,
  .customer-app .auth-account-panel textarea {
    width: 100%;
    max-width: 100%;
    font-size: 16px !important;
    touch-action: manipulation;
  }
}

@media (max-width: 430px) {
  .customer-app .editor-shell .top-actions {
    gap: 4px;
  }

  .customer-app .stage-header #canvasMeta {
    max-width: 52vw;
  }

  .customer-app .canvas-workbar {
    grid-template-columns: minmax(0, 1fr) 86px;
  }

  .customer-app .canvas-save-action {
    min-width: 86px;
  }
}

/* Mobile studio v2.1: one width owner, isolated horizontal rails. */
@media (max-width: 820px) {
  html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body.customer-app {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-inline: 0;
    overflow-x: hidden;
  }

  .customer-app .editor-shell {
    box-sizing: border-box;
    inline-size: 100%;
    max-inline-size: 100%;
    margin: 0;
    padding-inline: 6px;
    overflow-x: hidden;
    contain: inline-size;
  }

  .customer-app .editor-shell > .topbar,
  .customer-app .editor-shell > .editor-progress,
  .customer-app .editor-shell > .studio,
  .customer-app .studio > .stage-panel,
  .customer-app .studio > .toolbox-jump,
  .customer-app .studio > .product-panel,
  .customer-app .studio > .edit-panel {
    box-sizing: border-box;
    inline-size: 100%;
    max-inline-size: 100%;
    margin-inline: 0;
  }

  .customer-app .editor-shell > .topbar {
    margin-block: 0;
  }

  .customer-app .editor-shell .top-actions {
    display: grid;
    grid-template-columns: minmax(88px, 1.25fr) 40px 40px minmax(68px, 0.8fr) minmax(86px, 1fr);
    gap: 4px;
    overflow: hidden;
  }

  .customer-app .editor-shell .top-actions > * {
    width: 100%;
    min-width: 0;
    padding-inline: 6px;
  }

  .customer-app .editor-shell .top-actions #backToCatalogBtn,
  .customer-app .editor-shell .top-actions .status-pill,
  .customer-app .editor-shell .top-actions .icon-button {
    width: 100%;
    min-width: 0;
  }

  .customer-app .editor-shell .top-actions #saveDraftBtn {
    grid-column: 1 / -1;
  }

  .customer-app .editor-progress,
  .customer-app .studio > .toolbox-jump,
  .customer-app .canvas-position-switcher,
  .customer-app .canvas-command-rail {
    min-width: 0;
    overscroll-behavior-inline: contain;
  }

  .customer-app .editor-progress {
    padding-inline: 0;
  }

  .customer-app .studio {
    min-width: 0;
    overflow: visible;
  }

  .customer-app .studio > .stage-panel {
    min-width: 0;
    overflow: hidden;
  }

  .customer-app .stage-header {
    grid-template-columns: minmax(0, 1fr) 124px;
    width: 100%;
  }

  .customer-app .stage-header > div:first-child {
    min-width: 0;
  }

  .customer-app .stage-actions {
    grid-column: 2;
    width: 124px;
    max-width: 124px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-app .stage-actions .mode-button {
    width: 100%;
    min-width: 0;
    padding-inline: 4px;
  }

  .customer-app .print-area-toolbar,
  .customer-app .canvas-workbar,
  .customer-app .canvas-shell {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .customer-app .canvas-shell {
    overflow-x: hidden;
  }

  .customer-app #designCanvas {
    display: block;
    width: 100%;
    max-width: 100%;
  }

  .customer-app .studio > .toolbox-jump {
    margin-left: 0;
  }
}

@media (max-width: 430px) {
  .customer-app .editor-shell .top-actions {
    grid-template-columns: minmax(82px, 1.2fr) 38px 38px minmax(64px, 0.8fr) minmax(80px, 1fr);
  }

  .customer-app .stage-header {
    grid-template-columns: minmax(0, 1fr) 116px;
  }

  .customer-app .stage-actions {
    width: 116px;
    max-width: 116px;
  }
}

@media (max-width: 360px) {
  .customer-app .editor-shell .top-actions {
    grid-template-columns: minmax(78px, 1fr) 38px 38px minmax(64px, 1fr);
  }

  .customer-app .editor-shell .top-actions #restoreDraftBtn {
    grid-column: 1 / 3;
  }

  .customer-app .editor-shell .top-actions #saveDraftBtn {
    grid-column: 3 / 5;
  }

  .customer-app .stage-header {
    grid-template-columns: 1fr;
  }

  .customer-app .stage-actions {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
    max-width: none;
  }
}

/* Product design workbench v2: task-first hierarchy with a mobile command dock. */
.customer-app .editor-flow-caption {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  max-width: 780px;
  margin: -8px auto 14px;
  color: rgba(242, 245, 239, .58);
  font-size: 12px;
  line-height: 1.4;
}

.customer-app .editor-flow-caption strong {
  color: var(--green);
  font-size: 13px;
  letter-spacing: .01em;
}

.customer-app .editor-progress .progress-step {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.customer-app .editor-progress .progress-step:hover,
.customer-app .editor-progress .progress-step:focus-visible {
  border-color: rgba(40, 215, 229, .48);
  color: var(--text);
}

.customer-app .editor-progress .progress-step.active {
  border-color: rgba(40, 215, 229, .7);
  color: #071011;
  background: var(--cyan);
}

.customer-app .editor-progress .progress-step.complete:not(.active) {
  border-color: rgba(184, 255, 61, .42);
  color: var(--green);
}

.customer-app .print-area-toolbar {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.customer-app .print-area-status {
  display: grid;
  align-content: center;
  min-width: 170px;
  padding: 8px 12px;
  border: 1px solid rgba(40, 215, 229, .28);
  border-radius: 9px;
  background: rgba(40, 215, 229, .055);
}

.customer-app .print-area-status span {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.customer-app .print-area-status strong {
  margin-top: 2px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.2;
}

.customer-app .print-area-status small {
  margin-top: 3px;
  color: rgba(242, 245, 239, .52);
  font-size: 10px;
  white-space: nowrap;
}

.customer-app .print-area-menu-trigger {
  flex: 1 1 auto;
  min-width: 0;
}

.customer-app .order-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.customer-app .order-panel-head h2 { margin: 0; }
.customer-app .order-panel-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.customer-app .order-panel-close { display: none; }

.customer-app .canvas-shell { position: relative; }

.customer-app .canvas-asset-loading {
  position: absolute;
  z-index: 11;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 20px);
  min-height: 58px;
  padding: 10px 12px;
  color: var(--text);
  border-radius: 12px;
  background: rgba(7, 14, 14, .94);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .38);
  transform: translate(-50%, -50%);
  animation: canvas-asset-loading-enter 180ms cubic-bezier(.16, 1, .3, 1) both;
  pointer-events: none;
}

.customer-app .canvas-asset-loading[hidden] { display: none; }

.customer-app .canvas-asset-loading-spinner {
  position: relative;
  width: 28px;
  height: 28px;
  border: 2px solid rgba(40, 215, 229, .22);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: canvas-asset-loading-spin .72s linear infinite;
}

.customer-app .canvas-asset-loading-spinner::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 2px 10px rgba(170, 255, 44, .28);
}

.customer-app .canvas-asset-loading-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.customer-app .canvas-asset-loading-copy strong,
.customer-app .canvas-asset-loading-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-app .canvas-asset-loading-copy strong {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.customer-app .canvas-asset-loading-copy small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.customer-app .canvas-asset-loading button {
  grid-column: 1 / -1;
  min-height: 32px;
  padding: 6px 12px;
  color: var(--black);
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  cursor: pointer;
  pointer-events: auto;
}

.customer-app .canvas-asset-loading button[hidden] { display: none; }

.customer-app .canvas-asset-loading button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.customer-app .canvas-asset-loading.is-error {
  grid-template-columns: 26px minmax(0, 1fr);
  background: rgba(11, 14, 14, .97);
}

.customer-app .canvas-asset-loading.is-error .canvas-asset-loading-spinner {
  width: 24px;
  height: 24px;
  border-color: var(--coral);
  animation: none;
}

.customer-app .canvas-asset-loading.is-error .canvas-asset-loading-spinner::after {
  inset: 7px;
  background: var(--coral);
  box-shadow: none;
}

@keyframes canvas-asset-loading-spin {
  to { transform: rotate(360deg); }
}

@keyframes canvas-asset-loading-enter {
  from { opacity: .72; transform: translate(-50%, calc(-50% + 6px)) scale(.98); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .customer-app .canvas-asset-loading { animation: none; }
  .customer-app .canvas-asset-loading-spinner {
    animation-duration: 1.8s;
    animation-timing-function: steps(4, end);
  }
}

.customer-app .canvas-onboarding {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 12;
  display: grid;
  width: min(560px, calc(100% - 36px));
  gap: 9px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(40, 215, 229, .32);
  border-radius: 14px;
  background: rgba(8, 13, 13, .92);
  box-shadow: 0 22px 80px rgba(0, 0, 0, .42);
  transform: translate(-50%, -50%);
  pointer-events: auto;
}

.customer-app .canvas-onboarding[hidden] { display: none; }

.customer-app .canvas-onboarding-kicker {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .16em;
}

.customer-app .canvas-onboarding h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.05;
}

.customer-app .canvas-onboarding p {
  max-width: 42ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.customer-app .canvas-onboarding-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 5px;
}

.customer-app .canvas-onboarding-actions .button { min-height: 44px; }

.customer-app .editor-action-dock {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) auto auto minmax(150px, .9fr);
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  background: rgba(6, 9, 9, .94);
}

.customer-app .editor-dock-summary {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  column-gap: 10px;
  min-width: 0;
  padding-inline: 6px;
}

.customer-app .editor-dock-summary span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 10px;
}

.customer-app .editor-dock-summary strong {
  color: var(--green);
  font-size: 19px;
}

.customer-app .editor-dock-summary em {
  overflow: hidden;
  color: rgba(242, 245, 239, .5);
  font-size: 10px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-app .editor-action-dock .button { min-height: 44px; }

.customer-app .editor-mobile-dock,
.customer-app .editor-mobile-tools { display: none; }

@media (max-width: 820px) {
  .customer-app .editor-shell {
    --mobile-editor-actions-width: clamp(160px, 44vw, 184px);
    --mobile-editor-dock-clearance: 72px;
    padding-bottom: calc(var(--mobile-editor-dock-clearance) + env(safe-area-inset-bottom));
  }

  .customer-app .editor-flow-caption {
    justify-content: flex-start;
    gap: 7px;
    margin: -2px 2px 8px;
    overflow: hidden;
    white-space: nowrap;
  }

  .customer-app .editor-flow-caption span {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .customer-app .studio > .toolbox-jump { display: none !important; }

  .customer-app .print-area-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .customer-app .print-area-status {
    grid-row: 1;
    min-width: 0;
    min-height: 52px;
    padding: 8px 10px;
  }

  .customer-app .print-area-menu-trigger { grid-row: 2; }

  .customer-app .canvas-onboarding {
    width: min(100% - 24px, 420px);
    padding: 20px;
  }

  .customer-app .canvas-onboarding h2 { font-size: 23px; }

  .customer-app .canvas-onboarding-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-app .canvas-onboarding-actions .button { width: 100%; }

  .customer-app .canvas-shell {
    aspect-ratio: 1 / 1;
    max-height: min(70svh, 620px);
    grid-template-rows: minmax(0, 1fr) 52px;
  }

  .customer-app #designCanvas {
    max-height: 100%;
    object-fit: contain;
  }

  .customer-app .editor-action-dock {
    position: fixed;
    right: 8px;
    bottom: calc(64px + env(safe-area-inset-bottom));
    left: 8px;
    z-index: 74;
    grid-template-columns: minmax(0, 1fr) 82px 104px;
    gap: 6px;
    margin: 0;
    padding: 7px;
    border-radius: 12px;
    box-shadow: 0 16px 42px rgba(0, 0, 0, .48);
  }

  .customer-app .editor-dock-summary {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0 7px;
  }

  .customer-app .editor-dock-summary span { font-size: 9px; }
  .customer-app .editor-dock-summary strong { font-size: 16px; }
  .customer-app .editor-dock-summary em { font-size: 9px; }
  .customer-app .editor-action-dock #editorDockPreviewBtn { display: none; }
  .customer-app .editor-action-dock .button { min-height: 44px; padding-inline: 8px; font-size: 11px; }

  .customer-app .editor-mobile-dock {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 76;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 6px 8px max(6px, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, .14);
    background: rgba(6, 9, 9, .98);
    box-shadow: 0 -12px 34px rgba(0, 0, 0, .38);
  }

  .customer-app .editor-mobile-dock button {
    display: grid;
    min-width: 0;
    min-height: 48px;
    place-items: center;
    gap: 2px;
    padding: 4px 2px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    color: var(--muted);
    background: rgba(255, 255, 255, .035);
    font: inherit;
    cursor: pointer;
  }

  .customer-app .editor-mobile-dock button span { color: var(--cyan); font-size: 17px; line-height: 1; }
  .customer-app .editor-mobile-dock button strong { font-size: 10px; white-space: nowrap; }
  .customer-app .editor-mobile-dock button.is-primary { border-color: var(--green); color: #071008; background: var(--green); }
  .customer-app .editor-mobile-dock button.is-primary span { color: #071008; }

  .customer-app .editor-mobile-tools {
    position: fixed;
    right: 8px;
    bottom: calc(64px + env(safe-area-inset-bottom));
    left: 8px;
    z-index: 82;
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(40, 215, 229, .34);
    border-radius: 14px;
    background: rgba(8, 12, 12, .98);
    box-shadow: 0 24px 72px rgba(0, 0, 0, .58);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 160ms ease, transform 180ms ease;
  }

  .customer-app .editor-mobile-tools[hidden] { display: none; }
  .customer-app .editor-mobile-tools.open { opacity: 1; transform: translateY(0); }
  .customer-app .editor-mobile-tools-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .customer-app .editor-mobile-tools-head div { display: grid; gap: 3px; }
  .customer-app .editor-mobile-tools-head span { color: var(--cyan); font-size: 9px; letter-spacing: .15em; }
  .customer-app .editor-mobile-tools-head strong { color: var(--text); font-size: 18px; }
  .customer-app .editor-mobile-tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .customer-app .editor-mobile-tool-grid button,
  .customer-app .editor-mobile-tool-actions button {
    min-height: 48px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    color: var(--text);
    background: rgba(255, 255, 255, .04);
    font: inherit;
    cursor: pointer;
  }
  .customer-app .editor-mobile-tool-grid button { display: grid; gap: 3px; padding: 8px 5px; text-align: left; }
  .customer-app .editor-mobile-tool-grid button strong { font-size: 12px; }
  .customer-app .editor-mobile-tool-grid button span { color: var(--muted); font-size: 10px; }
  .customer-app .editor-mobile-tool-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .customer-app .editor-mobile-tool-actions .button { width: 100%; }

  .customer-app .order-panel-close { display: grid; width: 42px; min-width: 42px; height: 42px; }
  .customer-app .studio.editor-order-open > .edit-panel .order-panel {
    display: block !important;
    position: fixed;
    right: 8px;
    bottom: calc(64px + env(safe-area-inset-bottom));
    left: 8px;
    z-index: 80;
    width: auto;
    max-height: min(78dvh, 700px);
    margin: 0;
    padding: 16px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid rgba(40, 215, 229, .38);
    border-radius: 14px;
    background: rgba(8, 12, 12, .99);
    box-shadow: 0 24px 72px rgba(0, 0, 0, .64);
  }

  .customer-app .studio:not(.editor-order-open) > .edit-panel .order-panel {
    position: absolute;
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
  }
}

@media (max-width: 430px) {
  .customer-app .editor-flow-caption { font-size: 10px; }
  .customer-app .editor-flow-caption strong { font-size: 11px; }
  .customer-app .editor-action-dock { grid-template-columns: minmax(0, 1fr) 78px 96px; }
  .customer-app .editor-mobile-tools { right: 6px; bottom: calc(62px + env(safe-area-inset-bottom)); left: 6px; }
  .customer-app .studio.editor-order-open > .edit-panel .order-panel { right: 6px; bottom: calc(62px + env(safe-area-inset-bottom)); left: 6px; }
}

/* Mobile profile header, visible save feedback and order-first navigation. */
.customer-app .studio > .toolbox-jump .toolbox-order-action {
  border-color: rgba(184, 255, 61, 0.58);
  color: #071008;
  background: var(--green);
  font-weight: 900;
}

.customer-app .studio > .toolbox-jump .toolbox-order-action:hover,
.customer-app .studio > .toolbox-jump .toolbox-order-action:focus-visible,
.customer-app .studio > .toolbox-jump .toolbox-order-action.active {
  border-color: var(--cyan);
  color: #071008;
  background: var(--cyan);
}

/* Keep the contact tool visible on desktop as well as the H5 drawer. */
.customer-app .studio[data-active-tool="contactQrPanel"] .edit-panel #contactQrPanel {
  display: block;
}

/* Contact QR tool: scoped dark secondary panel with a stable checkerboard preview. */
.customer-app .contact-qr-panel { gap: 14px; min-width: 0; color: var(--text); }
.customer-app .contact-qr-lead { margin: -4px 0 0; color: #94a3b8; font-size: 11px; line-height: 1.5; }
.customer-app .contact-qr-status { color: #94a3b8; font: 11px/1.3 "Space Mono", ui-monospace, monospace; }
.customer-app .contact-qr-source-card,
.customer-app .contact-qr-setting-card { display: grid; gap: 10px; padding: 12px; border: 1px solid #232f48; border-radius: 10px; background: #131b2e; }
.customer-app .contact-qr-source-card .field { gap: 6px; }
.customer-app .contact-qr-source-card input[type="url"] { width: 100%; min-height: 42px; padding: 10px 11px; border: 1px solid #232f48; border-radius: 8px; color: #f1f5f9; background: #0b0f19; font: 12px/1.2 inherit; }
.customer-app .contact-qr-source-card input[type="url"]:focus { outline: 2px solid rgba(16,185,129,.35); border-color: #10b981; }
.customer-app .contact-qr-upload,
.customer-app .contact-qr-texture-upload { display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 8px 10px; border: 1px dashed #07c160; border-radius: 8px; color: #07c160; background: rgba(7,193,96,.08); cursor: pointer; }
.customer-app .contact-qr-upload small { display: block; margin-top: 2px; color: #94a3b8; font-size: 10px; }
.customer-app .contact-qr-upload-icon { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 6px; background: rgba(7,193,96,.15); font-size: 17px; }
.customer-app .contact-qr-preview-stage { position: relative; display: grid; min-height: 236px; place-items: center; overflow: hidden; border: 1px solid #232f48; border-radius: 12px; background: repeating-conic-gradient(#1e293b 0 25%, #0d1527 0 50%) 50%/18px 18px; cursor: grab; touch-action: none; }
.customer-app .contact-qr-preview-stage.is-dragging { cursor: grabbing; }
.customer-app .contact-qr-preview-wrap { display: grid; gap: 7px; }
.customer-app .contact-qr-drag-mode { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px; color: #94a3b8; font-size: 11px; }
.customer-app .contact-qr-drag-mode select { width: 100%; min-height: 34px; padding: 0 8px; border: 1px solid #232f48; border-radius: 7px; color: #f1f5f9; background: #0b0f19; }
.customer-app .contact-qr-preview-meta { color: #94a3b8; font: 10px/1.3 "Space Mono", ui-monospace, monospace; text-align: center; }
.customer-app .contact-qr-preview { display: block; width: min(100%, 224px); aspect-ratio: 1; object-fit: contain; image-rendering: auto; will-change: transform; }
.customer-app .contact-qr-preview-layer { position: absolute; inset: 0; width: min(100%, 224px); height: auto; margin: auto; pointer-events: none; }
.customer-app .contact-qr-preview-empty { display: grid; gap: 8px; place-items: center; min-height: 180px; color: #94a3b8; text-align: center; }
.customer-app .contact-qr-preview-empty span { color: #10b981; font: 900 25px/1 "Space Mono", ui-monospace, monospace; }
.customer-app .contact-qr-preview-empty small { max-width: 24ch; font-size: 11px; }
.customer-app .contact-qr-settings { display: grid; gap: 10px; max-height: min(48vh, 470px); overflow: auto; padding-right: 2px; }
.customer-app .contact-qr-setting-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #f1f5f9; font-size: 12px; }
.customer-app .contact-qr-setting-head small { color: #94a3b8; font-size: 10px; }
.customer-app .contact-qr-shape-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.customer-app .contact-qr-shape-option { display: grid; gap: 5px; min-width: 0; padding: 7px 5px; border: 1px solid #232f48; border-radius: 8px; color: #94a3b8; background: #0b0f19; font: 10px/1.15 inherit; text-align: center; cursor: pointer; }
.customer-app .contact-qr-shape-option:hover,
.customer-app .contact-qr-shape-option:focus-visible { border-color: #10b981; color: #f1f5f9; }
.customer-app .contact-qr-shape-option.active { border-color: #07c160; color: #f1f5f9; background: rgba(7,193,96,.12); box-shadow: 0 0 0 1px rgba(7,193,96,.16); }
.customer-app .contact-qr-shape-option svg { width: 100%; height: 40px; fill: currentColor; }
.customer-app .contact-qr-setting-card select { width: 100%; min-height: 38px; padding: 0 9px; border: 1px solid #232f48; border-radius: 8px; color: #f1f5f9; background: #0b0f19; }
.customer-app .contact-qr-texture-upload { border-color: #38bdf8; color: #38bdf8; background: rgba(56,189,248,.08); }
.customer-app .contact-qr-slider { display: grid; grid-template-columns: auto minmax(0, 1fr) 44px; align-items: center; gap: 9px; color: #94a3b8; font-size: 11px; }
.customer-app .contact-qr-slider input[type="range"] { width: 100%; accent-color: #10b981; }
.customer-app .contact-qr-slider output { color: #f1f5f9; font: 11px "Space Mono", ui-monospace, monospace; text-align: right; }
.customer-app .contact-qr-color-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.customer-app .contact-qr-color-field { display: grid; gap: 5px; color: #94a3b8; font-size: 10px; }
.customer-app .contact-qr-color-field input[type="color"] { width: 100%; height: 32px; padding: 2px; border: 1px solid #232f48; border-radius: 7px; background: #0b0f19; cursor: pointer; }
.customer-app .contact-qr-switch { display: flex; align-items: center; gap: 7px; color: #94a3b8; font-size: 11px; cursor: pointer; }
.customer-app .contact-qr-switch input[type="color"] { width: 28px; height: 24px; margin-left: auto; padding: 1px; }
.customer-app .contact-qr-switch input[type="checkbox"] { accent-color: #10b981; }
.customer-app .contact-qr-actions { position: sticky; bottom: 0; z-index: 2; padding-top: 8px; background: linear-gradient(180deg, transparent, #0b0f19 24%); }
.customer-app .contact-qr-actions .full-button { width: 100%; min-height: 48px; border: 1px solid #07c160; border-radius: 9px; color: #071b16; background: #07c160; font-weight: 800; }
.customer-app .contact-qr-actions .full-button:disabled { opacity: .45; cursor: not-allowed; }
.customer-app .contact-qr-feedback { min-height: 16px; margin: 0; color: #94a3b8; font-size: 11px; }
.customer-app .contact-qr-feedback[data-tone="error"] { color: #ffb8ad; }
.customer-app .contact-qr-feedback[data-tone="success"] { color: #07c160; }

@media (max-width: 820px) {
  .customer-app .contact-qr-preview-stage { min-height: 250px; }
  .customer-app .contact-qr-preview { width: min(74vw, 260px); }
  .customer-app .contact-qr-settings { max-height: none; overflow: visible; }
  .customer-app .contact-qr-actions { bottom: 0; padding-bottom: 8px; }
}

/* The mobile editor shell is viewport locked. Let the active QR drawer own
   vertical scrolling so the lower controls and CTA remain reachable. */
.customer-app .studio[data-active-tool="contactQrPanel"] > .edit-panel {
  min-height: 0;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

@media (max-width: 820px) {
  .customer-app .studio[data-active-tool="contactQrPanel"] > .edit-panel {
    max-height: calc(100dvh - 150px) !important;
    touch-action: pan-y;
  }
  .customer-app .studio[data-active-tool="contactQrPanel"] #contactQrPanel {
    padding-bottom: 0;
  }
}

.customer-app .toast {
  z-index: 2000;
}

@media (max-width: 820px) {
  .customer-app .profile-topbar {
    position: relative;
    top: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 9px;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(7, 11, 11, 0.94);
    backdrop-filter: none;
  }

  .customer-app .profile-topbar .catalog-brand {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 0;
  }

  .customer-app .profile-topbar .brand-mark,
  .customer-app .profile-topbar .brand-mark.has-image {
    flex-basis: 42px;
    width: 42px !important;
    min-width: 42px;
    height: 42px !important;
  }

  .customer-app .profile-topbar strong {
    font-size: 16px;
  }

  .customer-app .profile-topbar .profile-top-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    gap: 6px;
    overflow: visible;
  }

  .customer-app .profile-topbar .profile-top-actions > *,
  .customer-app .profile-topbar .profile-top-actions .button,
  .customer-app .profile-topbar .profile-top-actions .button.primary {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 0 8px;
    font-size: 11px;
  }

  .customer-app .toast {
    top: max(12px, env(safe-area-inset-top));
    right: 12px;
    bottom: auto;
    left: 12px;
    width: auto;
    max-width: none;
    padding: 12px 14px;
    border-color: rgba(184, 255, 61, 0.64);
    color: var(--text);
    background: rgba(7, 11, 11, 0.98);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.48);
    transform: translateY(-140%);
    text-align: center;
  }

  .customer-app .toast.show {
    transform: translateY(0);
  }

  .customer-app .studio > .toolbox-jump .toolbox-order-action {
    flex-basis: 76px;
    min-width: 76px;
  }
}

@media (max-width: 360px) {
  .customer-app .profile-topbar .profile-top-actions {
    grid-template-columns: 1fr 1.18fr;
  }

  .customer-app .profile-topbar #profileLogoutBtn {
    grid-column: 1 / -1;
  }
}

/* Final workbench authority: one mobile header, one action dock, and an order tab that opens checkout. */
.customer-app .studio > .toolbox-jump .toolbox-order-action {
  display: flex !important;
  order: -1;
  color: var(--green);
  border-color: rgba(184, 255, 61, 0.58);
}

.customer-app .order-size-editor {
  padding: 10px;
  border: 1px solid rgba(38, 244, 255, 0.2);
  border-radius: 10px;
  background: rgba(7, 14, 15, 0.72);
}

.customer-app .order-size-row select,
.customer-app .order-size-row input {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(1, 5, 6, 0.84);
  color: var(--text);
}

@media (max-width: 820px) {
  .customer-app .editor-shell .topbar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 8px;
    min-height: 58px;
    padding: 6px 10px;
  }

  .customer-app .editor-shell .topbar .brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .customer-app .editor-shell .topbar .brand strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 16px;
  }

  .customer-app .editor-shell .topbar .brand span {
    display: none !important;
  }

  .customer-app .editor-shell .top-actions {
    display: grid !important;
    grid-template-columns: minmax(68px, 1fr) 64px 40px !important;
    gap: 5px;
    width: min(220px, 56vw);
    min-width: 0;
    flex-wrap: nowrap !important;
  }

  .customer-app .editor-shell .top-actions > #undoBtn,
  .customer-app .editor-shell .top-actions > #redoBtn,
  .customer-app .editor-shell .top-actions > #restoreDraftBtn,
  .customer-app .editor-shell .top-actions > #saveDraftBtn {
    display: none !important;
  }

  .customer-app .editor-shell .top-actions > #backToCatalogBtn,
  .customer-app .editor-shell .top-actions > #draftStatus,
  .customer-app .editor-shell .top-actions > #editorTopMoreBtn {
    display: grid !important;
    min-width: 0;
    min-height: 40px;
    width: 100%;
    place-items: center;
    padding-inline: 7px;
    white-space: nowrap;
  }

  .customer-app .editor-shell .top-actions > #backToCatalogBtn {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .customer-app .editor-progress {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    padding-inline: 4px;
  }

  .customer-app .editor-progress::-webkit-scrollbar {
    display: none;
  }

  .customer-app .editor-progress .progress-step {
    flex: 0 0 auto;
    min-width: max-content;
  }

  .customer-app .editor-flow-caption {
    display: none !important;
  }

  .customer-app .editor-action-dock {
    display: none !important;
  }

  .customer-app .editor-mobile-dock {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 4px;
    position: sticky;
    bottom: 0;
    z-index: 24;
    padding: 6px max(8px, env(safe-area-inset-left)) max(8px, env(safe-area-inset-bottom));
    background: rgba(4, 8, 9, 0.96);
    backdrop-filter: blur(18px);
  }

  .customer-app .editor-mobile-dock .editor-mobile-order-duplicate {
    display: grid !important;
  }

  .customer-app .editor-mobile-dock button {
    min-width: 0;
    min-height: 56px;
    padding: 5px 2px;
  }

  .customer-app .editor-mobile-dock button strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 9px;
  }

  .customer-app .studio.editor-order-open ~ .editor-mobile-dock {
    display: none !important;
  }

  .customer-app .canvas-shell {
    aspect-ratio: 1 / 1;
    min-height: 0;
    height: auto !important;
  }

  .customer-app .canvas-onboarding {
    margin: 8px 8px 10px;
    max-height: none;
  }

  .customer-app .print-area-toolbar {
    min-height: 48px;
  }

  .customer-app .print-area-status {
    min-width: 0;
  }

  .customer-app .print-area-status strong,
  .customer-app .print-area-status small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .customer-app .editor-mobile-dock button.active {
    color: #061008;
    background: var(--green);
    border-color: var(--green);
  }

  .customer-app .editor-mobile-dock button.active span,
  .customer-app .editor-mobile-dock button.active strong {
    color: #061008;
  }

  .customer-app .order-size-row {
    grid-template-columns: minmax(0, 1fr) 72px 38px;
  }
}

@media (max-width: 360px) {
  .customer-app .editor-shell .top-actions {
    grid-template-columns: minmax(64px, 1fr) 62px 40px !important;
    width: min(200px, 56vw);
  }

  .customer-app .editor-shell .topbar .brand strong {
    font-size: 15px;
  }

  .customer-app .editor-mobile-dock button strong {
    font-size: 8px;
  }
}

/* Final interaction pass: keep the canvas visible and make the action hierarchy explicit. */
.customer-app .canvas-onboarding {
  position: relative !important;
  inset: auto !important;
  z-index: 2;
  width: min(720px, calc(100% - 28px));
  max-width: 720px;
  margin: 12px auto 10px;
  padding: 16px 52px 16px 20px;
  transform: none !important;
}

.customer-app .canvas-onboarding-actions {
  align-items: center;
}

.customer-app .canvas-onboarding-actions .button[hidden] {
  display: none !important;
}

.customer-app .canvas-command-rail .quickbar {
  display: none !important;
}

.customer-app .editor-action-dock {
  grid-template-columns: minmax(130px, 1fr) repeat(3, minmax(88px, auto)) minmax(150px, .9fr);
}

.customer-app .editor-action-dock .button {
  min-width: 0;
  white-space: nowrap;
}

.customer-app .order-size-editor-head {
  min-width: 0;
  white-space: nowrap;
}

.customer-app .order-size-editor-head > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-app .order-size-editor-head .mini-button,
.customer-app .order-size-row .mini-button {
  flex: 0 0 auto;
  width: auto;
  min-width: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}

.customer-app .order-size-editor-head .mini-button {
  min-width: 68px;
  padding-inline: 9px;
  line-height: 1;
}

.customer-app .order-size-row {
  grid-template-columns: minmax(0, 1fr) minmax(68px, 78px) 40px;
}

@media (max-width: 820px) {
  .customer-app .canvas-onboarding {
    width: calc(100% - 16px);
    margin: 8px auto 10px;
    padding: 14px 48px 14px 16px;
  }

  .customer-app .canvas-onboarding h2 {
    font-size: 20px;
  }

  .customer-app .canvas-onboarding-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .customer-app .canvas-onboarding-actions .button {
    min-width: 0;
    padding-inline: 8px;
    font-size: 11px;
  }

  .customer-app .editor-action-dock {
    grid-template-columns: minmax(0, 1fr) 88px 88px 88px minmax(112px, .9fr);
  }

  .customer-app .editor-mobile-dock {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }

  .customer-app .order-size-row {
    grid-template-columns: minmax(0, 1fr) 72px 40px;
  }
}

@media (max-width: 430px) {
  .customer-app .canvas-onboarding-actions {
    grid-template-columns: 1fr;
  }

  .customer-app .canvas-onboarding-actions .button {
    width: 100%;
  }

  .customer-app .order-size-editor-head .mini-button {
    min-width: 64px;
    padding-inline: 7px;
    font-size: 11px;
  }
}

/* Workbench consolidation: one task path, one mobile command layer. */
.customer-app .editor-top-more {
  display: none;
}

.customer-app .canvas-save-action {
  display: none !important;
}

.customer-app .canvas-workbar {
  grid-template-columns: minmax(0, 1fr);
}

.customer-app .studio > .toolbox-jump .toolbox-order-action,
.customer-app .editor-action-dock #editorDockPreviewBtn {
  display: none !important;
}

.customer-app .editor-action-dock {
  grid-template-columns: minmax(130px, 1fr) repeat(3, minmax(88px, auto)) minmax(150px, .9fr);
}

.customer-app .print-area-toolbar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.customer-app .print-area-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.customer-app .print-area-toolbar-actions .icon-button {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
}

.customer-app .canvas-onboarding {
  position: relative;
}

.customer-app .canvas-onboarding-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  border-color: rgba(255, 255, 255, .18);
}

.customer-app .canvas-onboarding.is-dismissed {
  display: none;
}

.customer-app .order-size-editor {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.customer-app .order-size-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.customer-app .order-size-editor-head > span,
.customer-app .order-draft-quantity-note {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.customer-app .order-size-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 68px 40px;
  gap: 5px;
  align-items: center;
}

.customer-app .order-size-row select,
.customer-app .order-size-row input {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  box-sizing: border-box;
}

.customer-app .order-draft-controls {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.customer-app #orderSizeDefaults[hidden] {
  display: none !important;
}

.customer-app .order-draft-quantity-note {
  padding-top: 2px;
}

.customer-app .artwork-preview-frame {
  overflow: hidden;
}

html.artwork-preview-open,
body.artwork-preview-open {
  position: fixed;
  top: var(--artwork-preview-page-offset, 0);
  right: 0;
  left: 0;
  width: 100%;
  overflow: hidden !important;
  overscroll-behavior: none;
}

.customer-app .artwork-preview-modal {
  z-index: 2300;
}

.customer-app .artwork-preview-frame.has-design-gallery {
  padding-bottom: 0;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(280px, auto) auto;
}

.customer-app .artwork-preview-media {
  position: relative;
  display: inline-grid;
  max-width: 100%;
  max-height: 62vh;
  place-items: center;
  overflow: hidden;
}

.customer-app .artwork-preview-frame.has-design-gallery .artwork-preview-media {
  max-height: 52vh;
}

.customer-app .design-preview-gallery-thumbs {
  display: grid;
  width: 100%;
  padding: 12px;
  grid-auto-flow: column;
  grid-auto-columns: 86px;
  justify-content: start;
  gap: 10px;
  overflow-x: auto;
  border-top: 1px solid rgba(232, 240, 235, 0.14);
  background: #0b0e0e;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}

.customer-app .design-preview-gallery-thumbs[hidden] {
  display: none;
}

.customer-app .design-preview-gallery-thumb {
  display: grid;
  width: 86px;
  min-width: 0;
  padding: 4px;
  gap: 5px;
  overflow: hidden;
  border: 1px solid rgba(232, 240, 235, 0.18);
  border-radius: 6px;
  color: rgba(232, 240, 235, 0.68);
  background: #111514;
  text-align: left;
}

.customer-app .design-preview-gallery-thumb:hover,
.customer-app .design-preview-gallery-thumb:focus-visible,
.customer-app .design-preview-gallery-thumb.active {
  border-color: #28d7e5;
  color: #f1f5ef;
}

.customer-app .design-preview-gallery-thumb:focus-visible {
  outline: 2px solid rgba(40, 215, 229, 0.26);
  outline-offset: 2px;
}

.customer-app .design-preview-gallery-thumb img {
  width: 76px;
  height: 64px;
  margin: 0;
  border-radius: 4px;
  background: #080a0a;
  object-fit: cover;
}

.customer-app .design-preview-gallery-thumb span {
  overflow: hidden;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-app .artwork-preview-media > img,
.customer-app .artwork-preview-media > .preview-trace-watermark {
  grid-area: 1 / 1;
}

.customer-app .artwork-overlay-apply {
  display: none !important;
}

@media (max-width: 820px) {
  .customer-app .artwork-preview-modal {
    align-items: end;
    padding: max(12px, env(safe-area-inset-top)) 0 0;
    overflow: hidden;
    overscroll-behavior: none;
  }

  .customer-app .artwork-preview-dialog {
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - max(12px, env(safe-area-inset-top)));
    min-height: 0;
    padding: 16px 14px max(18px, env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
  }

  .customer-app .artwork-preview-dialog > .section-title-row {
    position: sticky;
    top: -16px;
    z-index: 8;
    margin: -16px -14px 12px;
    padding: 16px 14px 12px;
    border-bottom: 1px solid rgba(232, 240, 235, .12);
    background: #111317;
  }

  .customer-app .artwork-preview-frame.has-design-gallery {
    grid-template-rows: minmax(240px, auto) auto;
  }

  .customer-app .design-preview-gallery-thumbs {
    padding: 10px;
    grid-auto-columns: 82px;
  }

  .customer-app .design-preview-gallery-thumb {
    width: 82px;
  }

  .customer-app .design-preview-gallery-thumb img {
    width: 72px;
    height: 60px;
  }

  .customer-app .editor-shell .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
    min-height: 52px;
    padding: 6px 8px;
  }

  .customer-app .editor-shell .topbar .brand {
    min-width: 0;
  }

  .customer-app .editor-shell .topbar .brand strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .customer-app .editor-shell .top-actions {
    display: grid;
    grid-template-columns: minmax(92px, 1fr) minmax(68px, auto) 44px;
    align-items: center;
    gap: 5px;
    width: auto;
    min-width: 0;
    overflow: visible;
  }

  .customer-app .editor-shell .top-actions #undoBtn,
  .customer-app .editor-shell .top-actions #redoBtn,
  .customer-app .editor-shell .top-actions #restoreDraftBtn,
  .customer-app .editor-shell .top-actions #saveDraftBtn {
    display: none !important;
  }

  .customer-app .editor-shell .top-actions #backToCatalogBtn,
  .customer-app .editor-shell .top-actions #draftStatus,
  .customer-app .editor-shell .top-actions #editorTopMoreBtn {
    display: grid;
    width: 100%;
    min-width: 0;
    min-height: 40px;
    box-sizing: border-box;
    place-items: center;
    padding-inline: 7px;
    white-space: nowrap;
  }

  .customer-app .editor-top-more {
    display: grid;
  }

  .customer-app .editor-progress {
    justify-content: flex-start;
    max-width: none;
    margin: 8px 0 10px;
    padding: 0 2px 2px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    white-space: nowrap;
  }

  .customer-app .editor-progress .progress-step {
    flex: 0 0 auto;
    min-height: 38px;
    white-space: nowrap;
  }

  .customer-app .editor-progress .progress-line {
    flex: 0 0 22px;
    width: 22px;
  }

  .customer-app .editor-flow-caption {
    display: none;
  }

  .customer-app .canvas-shell {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;
    grid-template-rows: minmax(0, 1fr) 48px;
  }

  .customer-app .studio > .stage-panel {
    padding: 6px 4px;
  }

  .customer-app .stage-header {
    grid-template-columns: minmax(0, 1fr) 120px;
  }

  .customer-app .stage-actions {
    grid-column: 2;
    grid-row: 1;
    width: 120px;
    max-width: 120px;
  }

  .customer-app .print-area-toolbar {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .customer-app .editor-action-dock {
    grid-template-columns: minmax(0, 1fr) 96px 112px;
  }

  .customer-app .editor-mobile-dock .editor-mobile-order-duplicate {
    display: none;
  }

  .customer-app .editor-mobile-dock {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .customer-app .studio.editor-order-open .editor-action-dock,
  .customer-app .studio.editor-order-open ~ .editor-mobile-dock {
    display: none !important;
  }

  .customer-app .studio.editor-order-open > .edit-panel .order-panel {
    bottom: max(10px, env(safe-area-inset-bottom));
    max-height: min(86dvh, 760px);
  }

  .customer-app .checkout-dialog {
    max-height: 96dvh;
  }

  .customer-app .checkout-preview-panel {
    padding: 10px;
  }

  .customer-app .checkout-preview-gallery {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(148px, 44vw);
    grid-template-columns: none;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
  }

  .customer-app .checkout-preview-card {
    scroll-snap-align: start;
  }

  .customer-app .order-size-row select,
  .customer-app .order-size-row input,
  .customer-app .order-size-row .mini-button {
    min-height: 44px;
  }

  .customer-app .checkout-dialog > #payBtn {
    position: sticky;
    bottom: 0;
    z-index: 3;
    margin-top: 4px;
    box-shadow: 0 -10px 20px rgba(8, 12, 12, .78);
  }
}

@media (max-width: 430px) {
  .customer-app .editor-shell .top-actions {
    grid-template-columns: minmax(82px, 1fr) minmax(62px, auto) 44px;
  }

  .customer-app .canvas-shell {
    height: auto;
  }

  .customer-app .stage-header {
    grid-template-columns: minmax(0, 1fr) 112px;
  }

  .customer-app .stage-actions {
    grid-column: 2;
    grid-row: 1;
    width: 112px;
    max-width: 112px;
  }

  .customer-app .print-area-toolbar {
    grid-row: 2;
  }

  .customer-app .editor-action-dock {
    grid-template-columns: minmax(0, 1fr) 88px 104px;
  }
}

@media (max-width: 360px) {
  .customer-app .editor-shell .topbar .brand strong {
    display: none;
  }

  .customer-app .editor-shell .top-actions {
    grid-template-columns: minmax(72px, 1fr) minmax(56px, auto) 44px;
  }

  .customer-app .editor-action-dock {
    grid-template-columns: minmax(0, 1fr) 82px 96px;
  }

  .customer-app .editor-action-dock .button {
    font-size: 10px;
  }
}

/* Final override: keep the mobile editor on one clear command layer. */
.customer-app .studio > .toolbox-jump .toolbox-order-action {
  display: flex !important;
  order: -1;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 8px 6px !important;
  color: #071008 !important;
  border-color: rgba(184, 255, 61, 0.58) !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
  text-indent: 0 !important;
  writing-mode: horizontal-tb !important;
  white-space: nowrap !important;
  overflow: visible !important;
}

/* Workbench finishing pass: a compact prerequisite, a readable order tab,
   and one roomy size editor rather than stacked control fragments. */
.customer-app .canvas-onboarding {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "eyebrow action"
    "title action";
  align-items: center;
  column-gap: 16px;
  row-gap: 2px;
  width: calc(100% - 20px);
  max-width: none;
  min-height: 70px;
  margin: 8px 10px 10px;
  padding: 12px 64px 12px 16px;
  border-color: rgba(40, 215, 229, .32);
  border-radius: 10px;
  background: linear-gradient(100deg, rgba(8, 19, 19, .98), rgba(8, 13, 13, .94));
  box-shadow: none;
}

.customer-app .canvas-onboarding-kicker {
  grid-area: eyebrow;
  font-size: 10px;
  line-height: 1.1;
  letter-spacing: .12em;
}

.customer-app .canvas-onboarding h2 {
  grid-area: title;
  margin: 0;
  font-size: 19px;
  line-height: 1.2;
}

.customer-app .canvas-onboarding p {
  display: none;
}

.customer-app .canvas-onboarding-actions {
  grid-area: action;
  display: flex;
  align-items: center;
  justify-self: end;
  margin: 0;
}

.customer-app .canvas-onboarding-actions .button {
  min-width: 142px;
  min-height: 42px;
  padding-inline: 16px;
  white-space: nowrap;
}

.customer-app .canvas-onboarding-close {
  top: 50%;
  right: 12px;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  transform: translateY(-50%);
}

.customer-app .studio > .toolbox-jump .toolbox-order-action {
  align-self: stretch;
  min-width: 84px;
  min-height: 58px;
  padding: 8px 10px !important;
  color: #071008 !important;
  font-size: 14px !important;
  font-weight: 900;
  line-height: 1 !important;
  text-align: center;
  white-space: nowrap !important;
}

.customer-app .order-draft-item {
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 10px;
}

.customer-app .order-draft-item > img {
  width: 68px;
}

.customer-app .order-draft-copy {
  gap: 6px;
}

.customer-app .order-draft-actions {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.customer-app .order-draft-actions .mini-button {
  min-width: 58px;
  min-height: 34px;
  padding-inline: 9px;
  white-space: nowrap;
}

.customer-app .order-size-editor {
  padding: 9px;
}

.customer-app .order-size-editor-head {
  min-height: 30px;
}

.customer-app .order-size-row {
  grid-template-columns: minmax(86px, 1fr) 76px 40px;
  min-height: 40px;
}

.customer-app .order-size-row select,
.customer-app .order-size-row input,
.customer-app .order-size-row .mini-button {
  min-height: 40px;
}

@media (max-width: 820px) {
  .customer-app .editor-shell .topbar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 8px;
    min-height: 58px;
    padding: 6px 10px;
  }

  .customer-app .editor-shell .topbar .brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .customer-app .editor-shell .topbar .brand strong {
    display: block !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 16px;
  }

  .customer-app .editor-shell .topbar .brand span {
    display: none !important;
  }

  .customer-app .editor-shell .top-actions {
    display: grid !important;
    grid-template-columns: minmax(68px, 1fr) 64px 40px !important;
    gap: 5px;
    width: min(220px, 56vw);
    min-width: 0;
    flex-wrap: nowrap !important;
  }

  .customer-app .editor-shell .top-actions > #undoBtn,
  .customer-app .editor-shell .top-actions > #redoBtn,
  .customer-app .editor-shell .top-actions > #restoreDraftBtn,
  .customer-app .editor-shell .top-actions > #saveDraftBtn {
    display: none !important;
  }

  .customer-app .editor-shell .top-actions > #backToCatalogBtn,
  .customer-app .editor-shell .top-actions > #draftStatus,
  .customer-app .editor-shell .top-actions > #editorTopMoreBtn {
    display: grid !important;
    min-width: 0;
    min-height: 40px;
    width: 100%;
    place-items: center;
    padding-inline: 7px;
    white-space: nowrap;
  }

  .customer-app .editor-shell .top-actions > #backToCatalogBtn {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .customer-app .editor-progress {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    padding-inline: 4px;
  }

  .customer-app .editor-progress::-webkit-scrollbar {
    display: none;
  }

  .customer-app .editor-progress .progress-step {
    flex: 0 0 auto;
    min-width: max-content;
  }

  .customer-app .editor-flow-caption {
    display: none !important;
  }

  .customer-app .editor-action-dock {
    display: none !important;
  }

  .customer-app .editor-mobile-dock {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 4px;
    position: sticky;
    bottom: 0;
    z-index: 24;
    padding: 6px 8px max(8px, env(safe-area-inset-bottom));
    background: rgba(4, 8, 9, 0.96);
    backdrop-filter: blur(18px);
  }

  .customer-app .editor-mobile-dock .editor-mobile-order-duplicate {
    display: grid !important;
  }

  .customer-app .editor-mobile-dock button {
    min-width: 0;
    min-height: 56px;
    padding: 5px 2px;
  }

  .customer-app .editor-mobile-dock button strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 9px;
  }

  .customer-app .studio.editor-order-open ~ .editor-mobile-dock {
    display: none !important;
  }

  .customer-app .canvas-shell {
    aspect-ratio: 1 / 1;
    min-height: 0;
    height: auto !important;
  }

  .customer-app .canvas-onboarding {
    width: calc(100% - 16px);
    min-height: 64px;
    margin: 8px auto 10px;
    padding: 10px 54px 10px 14px;
    column-gap: 8px;
  }

  .customer-app .canvas-onboarding h2 {
    font-size: 16px;
  }

  .customer-app .canvas-onboarding-actions .button {
    min-width: 116px;
    min-height: 40px;
    padding-inline: 11px;
    font-size: 12px;
  }

  .customer-app .print-area-toolbar {
    min-height: 48px;
  }

  .customer-app .print-area-status {
    min-width: 0;
  }

  .customer-app .print-area-status strong,
  .customer-app .print-area-status small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .customer-app .order-size-row {
    grid-template-columns: minmax(82px, 1fr) 72px 40px;
  }
}

@media (max-width: 360px) {
  .customer-app .editor-shell .top-actions {
    grid-template-columns: minmax(64px, 1fr) 62px 40px !important;
    width: min(200px, 56vw);
  }

  .customer-app .editor-shell .topbar .brand strong {
    font-size: 15px;
  }

  .customer-app .editor-mobile-dock button strong {
    font-size: 8px;
  }

  .customer-app .canvas-onboarding {
    grid-template-areas:
      "eyebrow eyebrow"
      "title title"
      "action action";
    row-gap: 5px;
    min-height: 104px;
    padding-right: 52px;
  }

  .customer-app .canvas-onboarding-actions {
    justify-self: stretch;
  }

  .customer-app .canvas-onboarding-actions .button {
    width: 100%;
  }
}

/* The editor header is a compact control bar on phones. Keep its actions in
   one physical row so the product stage starts before the first scroll. */
@media (max-width: 820px) {
  .customer-app .editor-shell .topbar {
    grid-template-columns: auto minmax(0, 1fr) !important;
  }

  .customer-app .editor-shell .topbar .brand {
    flex: 0 0 auto;
  }

  .customer-app .editor-shell .top-actions {
    width: auto !important;
    grid-template-columns: minmax(76px, 1fr) 66px 40px !important;
    grid-auto-flow: column;
    justify-self: stretch;
  }

  .customer-app .editor-shell .top-actions > #backToCatalogBtn,
  .customer-app .editor-shell .top-actions > #draftStatus,
  .customer-app .editor-shell .top-actions > #editorTopMoreBtn {
    min-width: 0 !important;
    max-width: none;
  }
}

@media (max-width: 430px) {
  .customer-app .editor-shell .topbar .brand > div:not(.brand-mark) {
    display: none;
  }

  .customer-app .editor-shell .top-actions {
    grid-template-columns: minmax(78px, 1fr) 62px 40px !important;
  }
}

@media (max-width: 360px) {
  .customer-app .editor-shell .top-actions {
    grid-template-columns: minmax(68px, 1fr) 58px 40px !important;
    gap: 4px;
  }

  .customer-app .editor-shell .top-actions > #backToCatalogBtn {
    font-size: 11px;
  }

  .customer-app .editor-shell .top-actions > #draftStatus {
    font-size: 10px;
  }
}

/* 2026-08-16 authoritative editor layout: canvas first, one command system. */
.customer-app .studio > .toolbox-jump > button,
.customer-app .studio > .toolbox-jump > .toolbox-order-action {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0 !important;
  height: 72px;
  min-height: 72px !important;
  margin: 0;
  padding: 8px 4px !important;
  box-sizing: border-box;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

.customer-app .studio > .toolbox-jump > .toolbox-order-action {
  color: #061008 !important;
  background: var(--cyan) !important;
  border-color: var(--cyan) !important;
}

.customer-app .print-area-toolbar-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.customer-app .print-area-toolbar-head > div:first-child {
  min-width: 0;
}

.customer-app .print-area-toolbar-actions {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
}

.customer-app .print-area-toolbar-actions #addPrintAreaBtn {
  min-width: 104px;
  min-height: 40px;
  white-space: nowrap;
}

.customer-app .print-area-toolbar-actions #printAreaCloseBtn {
  flex: 0 0 40px;
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
}

/* The print-area dialog belongs to the canvas, not the page footer. JS places
   it inside the visible canvas bounds; these rules keep that position stable. */
.customer-app .print-area-popover {
  transform: none !important;
  contain: layout paint;
  overscroll-behavior: contain;
  touch-action: pan-y;
  overflow-x: hidden !important;
}

.customer-app .print-area-popover .print-area-toolbar-head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(8, 12, 13, 0.98);
}

.customer-app .print-area-toolbar-actions button {
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

.customer-app .print-area-popover .print-area-create {
  grid-template-columns: minmax(150px, 0.72fr) minmax(260px, 1.28fr) !important;
  min-width: 0;
}

.customer-app .print-area-popover .print-area-create-step,
.customer-app .print-area-popover .print-area-process-options,
.customer-app .print-area-popover .print-area-tier-options {
  min-width: 0;
}

.customer-app .print-area-popover .print-area-create-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.customer-app .editor-mobile-dock {
  display: none;
}

@media (max-width: 820px) {
  .customer-app .editor-shell .topbar {
    display: grid !important;
    grid-template-columns: minmax(48px, 1fr) auto !important;
    align-items: center;
    gap: 8px;
    min-height: 58px;
    padding: 7px 10px;
  }

  .customer-app .editor-shell .topbar .brand {
    min-width: 0;
  }

  .customer-app .editor-shell .top-actions {
    display: grid !important;
    grid-template-columns: repeat(4, 44px) !important;
    grid-auto-flow: column;
    gap: 6px;
    width: auto !important;
    min-width: 0;
    justify-self: end;
    overflow: visible;
  }

  .customer-app .editor-shell .top-actions > #undoBtn,
  .customer-app .editor-shell .top-actions > #redoBtn,
  .customer-app .editor-shell .top-actions > #backToCatalogBtn,
  .customer-app .editor-shell .top-actions > #editorTopMoreBtn {
    display: grid !important;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px;
    min-height: 44px;
    padding: 0 !important;
    place-items: center;
    overflow: hidden;
    font-size: 12px;
    white-space: nowrap;
  }

  .customer-app .editor-shell .top-actions > #undoBtn { order: 1; }
  .customer-app .editor-shell .top-actions > #redoBtn { order: 2; }
  .customer-app .editor-shell .top-actions > #backToCatalogBtn { order: 3; }
  .customer-app .editor-shell .top-actions > #editorTopMoreBtn { order: 4; }

  .customer-app .editor-shell .top-actions > #draftStatus,
  .customer-app .editor-shell .top-actions > #restoreDraftBtn,
  .customer-app .editor-shell .top-actions > #saveDraftBtn {
    display: none !important;
  }

  .customer-app .editor-progress {
    min-height: 44px;
    margin-block: 6px 8px;
  }

  .customer-app .studio > .stage-panel {
    padding-inline: 6px;
  }

  .customer-app .canvas-shell {
    width: 100%;
    height: min(calc(100vw - 20px + 58px), calc(72dvh + 58px)) !important;
    min-height: 0;
    aspect-ratio: auto !important;
    grid-template-rows: minmax(0, 1fr) 52px;
  }

  .customer-app .print-area-popover {
    padding: 14px;
  }

  .customer-app .print-area-popover .print-area-create {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .customer-app .print-area-popover .print-area-create-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  }

  .customer-app .print-area-toolbar-head {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 8px;
  }

  .customer-app .print-area-toolbar-head small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .customer-app .print-area-toolbar-actions #addPrintAreaBtn {
    min-width: 92px;
    padding-inline: 10px;
  }

  .customer-app .editor-mobile-dock {
    display: flex !important;
    position: sticky;
    bottom: 64px;
    z-index: 27;
    gap: 5px;
    width: 100%;
    margin: 8px 0 0;
    padding: 7px;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    background: rgba(4, 8, 9, .97);
    border: 1px solid rgba(132, 156, 158, .24);
  }

  .customer-app .editor-mobile-dock::-webkit-scrollbar {
    display: none;
  }

  .customer-app .editor-mobile-dock button {
    display: grid;
    flex: 0 0 68px;
    grid-template-rows: 20px 18px;
    place-items: center;
    min-width: 68px;
    min-height: 54px;
    padding: 6px 4px;
    scroll-snap-align: start;
  }

  .customer-app .editor-mobile-dock button span {
    color: var(--cyan);
    font-size: 16px;
    line-height: 1;
  }

  .customer-app .editor-mobile-dock button strong {
    max-width: 100%;
    overflow: hidden;
    color: var(--text);
    font-size: 9px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .customer-app .editor-mobile-dock .editor-mobile-legacy-action {
    display: none !important;
  }

  .customer-app .editor-action-dock {
    display: grid !important;
    position: sticky;
    bottom: 0;
    z-index: 28;
    grid-template-columns: minmax(0, 1fr) 94px 118px;
    gap: 6px;
    min-height: 64px;
    margin: 0;
    padding: 7px;
    background: rgba(4, 8, 9, .98);
    border-color: rgba(132, 156, 158, .24);
  }

  .customer-app .editor-action-dock #editorDockCropBtn,
  .customer-app .editor-action-dock #editorDockSketchBtn,
  .customer-app .editor-action-dock #editorDockPreviewBtn {
    display: none !important;
  }

  .customer-app .editor-action-dock #editorDockSaveBtn,
  .customer-app .editor-action-dock #editorDockOrderBtn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 48px;
    padding-inline: 8px;
    white-space: nowrap;
  }

  .customer-app .studio.editor-order-open .editor-mobile-dock,
  .customer-app .studio.editor-order-open .editor-action-dock {
    display: none !important;
  }
}

@media (max-width: 430px) {
  .customer-app .editor-shell .topbar .brand > div:not(.brand-mark) {
    display: none !important;
  }

  .customer-app .editor-shell .topbar {
    grid-template-columns: 48px auto !important;
  }

  .customer-app .editor-action-dock {
    grid-template-columns: minmax(0, 1fr) 86px 108px;
  }
}

@media (max-width: 360px) {
  .customer-app .editor-shell .top-actions {
    grid-template-columns: repeat(4, 42px) !important;
    gap: 4px;
  }

  .customer-app .editor-shell .top-actions > #undoBtn,
  .customer-app .editor-shell .top-actions > #redoBtn,
  .customer-app .editor-shell .top-actions > #backToCatalogBtn,
  .customer-app .editor-shell .top-actions > #editorTopMoreBtn {
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 42px;
    min-height: 42px;
  }

  .customer-app .editor-action-dock {
    grid-template-columns: minmax(0, 1fr) 82px 98px;
  }
}

/* Keep the mobile creation actions discoverable while the canvas scrolls.
   The order drawer below takes over this space once checkout starts. */
@media (max-width: 820px) {
  .customer-app .editor-shell .stage-panel {
    padding-bottom: 6px !important;
  }

  .customer-app .editor-shell .editor-mobile-dock {
    position: fixed !important;
    right: var(--mobile-editor-actions-width);
    bottom: 0;
    left: 0;
    z-index: 110 !important;
    width: auto;
    min-height: calc(64px + env(safe-area-inset-bottom));
    margin: 0 !important;
    padding: 6px 4px max(6px, env(safe-area-inset-bottom));
    border-radius: 12px 0 0;
    box-shadow: 0 -12px 30px rgba(0, 0, 0, .38);
  }

  .customer-app .editor-shell .editor-action-dock {
    position: fixed !important;
    right: 0;
    bottom: 0;
    left: auto;
    z-index: 111 !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: var(--mobile-editor-actions-width);
    min-height: calc(64px + env(safe-area-inset-bottom));
    padding-bottom: max(7px, env(safe-area-inset-bottom));
    border-radius: 0 12px 0 0;
    box-shadow: 0 -14px 34px rgba(0, 0, 0, .48);
  }

  .customer-app .editor-shell .editor-dock-summary {
    display: none !important;
  }

  .customer-app .studio.editor-order-open .editor-mobile-dock,
  .customer-app .studio.editor-order-open .editor-action-dock {
    display: none !important;
  }
}
/* AI provider status and privacy disclosure */
.customer-app .ai-generator-panel .section-title-row > div {
  display: grid;
  gap: 4px;
}

.customer-app .ai-provider-note {
  margin: 0;
  padding: 10px 12px;
  border-left: 2px solid var(--cyan, #2dd4df);
  color: rgba(235, 239, 236, 0.66);
  background: rgba(45, 212, 223, 0.06);
  font-size: 12px;
  line-height: 1.65;
}

.customer-app #aiCreditsStatus {
  color: var(--acid, #adff2f);
}

.customer-app .ai-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.customer-app .ai-quick-actions .button {
  min-height: 44px;
  margin: 0;
}

@media (max-width: 820px) {
  .customer-app .ai-generator-panel .section-title-row {
    align-items: flex-start;
  }

  .customer-app .ai-provider-note {
    font-size: 11px;
  }

  .customer-app .ai-quick-actions {
    grid-template-columns: 1fr;
  }
}

/* Mobile checkout authority: keep order review and payment usable above the
   browser chrome. This final block intentionally overrides earlier editor
   experiments without changing any order or payment behavior. */
.customer-app .checkout-payment-dock {
  display: grid;
  grid-column: 2;
  grid-row: 5 / span 2;
  gap: 10px;
  min-width: 0;
  margin: 0;
}

.customer-app .checkout-payment-dock .checkout-payment-method,
.customer-app .checkout-payment-dock #payBtn {
  width: 100%;
  margin: 0;
}

@media (max-width: 820px) {
  .customer-app .studio.editor-order-open {
    transform: none !important;
    contain: none !important;
  }

  .customer-app .studio.editor-order-open > .edit-panel {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 900 !important;
    width: 100vw !important;
    max-width: none !important;
    height: 100dvh !important;
    max-height: none !important;
    margin: 0 !important;
    padding: max(10px, env(safe-area-inset-top)) 0 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #060a0b !important;
    box-shadow: none !important;
  }

  .customer-app .studio.editor-order-open > .edit-panel > :not(#toolOrder) {
    display: none !important;
  }

  .customer-app .studio.editor-order-open > .edit-panel #toolOrder {
    display: block !important;
    position: static !important;
    visibility: visible !important;
    pointer-events: auto !important;
    opacity: 1 !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 14px calc(92px + env(safe-area-inset-bottom)) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    border: 0 !important;
    border-radius: 0 !important;
    background: #060a0b !important;
    box-shadow: none !important;
  }

  .customer-app .studio.editor-order-open .order-panel-head {
    position: sticky;
    top: 0;
    z-index: 5;
    margin: 0 -14px 14px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(132, 156, 158, .24);
    background: rgba(6, 10, 11, .98);
    backdrop-filter: blur(14px);
  }

  .customer-app .studio.editor-order-open .order-panel-head p {
    max-width: 34ch;
  }

  .customer-app .studio.editor-order-open #checkoutBtn {
    position: sticky;
    bottom: 0;
    z-index: 5;
    min-height: 54px;
    margin-top: 14px;
    box-shadow: 0 -18px 34px #060a0b;
  }

  .customer-app #checkoutModal {
    place-items: stretch;
    padding: 0;
    background: rgba(0, 0, 0, .78);
  }

  .customer-app #checkoutModal .checkout-dialog {
    display: grid !important;
    position: relative;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto auto auto auto !important;
    align-content: start;
    box-sizing: border-box;
    width: 100vw !important;
    max-width: none !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    padding: max(12px, env(safe-area-inset-top)) 12px calc(184px + env(safe-area-inset-bottom)) !important;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 0;
    border-radius: 0;
    background: #080c0d;
  }

  .customer-app #checkoutModal .checkout-dialog > .section-title-row {
    position: sticky;
    top: calc(-1 * max(12px, env(safe-area-inset-top)));
    z-index: 6;
    grid-column: 1 !important;
    grid-row: 1 !important;
    margin: calc(-1 * max(12px, env(safe-area-inset-top))) -12px 0;
    padding: max(12px, env(safe-area-inset-top)) 12px 10px;
    border-bottom: 1px solid rgba(132, 156, 158, .24);
    background: rgba(8, 12, 13, .98);
  }

  .customer-app #checkoutModal .checkout-preview-panel {
    grid-column: 1 !important;
    grid-row: 2 !important;
    min-height: 0;
    max-height: none !important;
    margin: 10px 0 0;
    overflow: visible !important;
  }

  .customer-app #checkoutModal .checkout-preview-gallery {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(132px, 42vw);
    grid-template-columns: none !important;
    max-height: none !important;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .customer-app #checkoutModal .order-summary {
    grid-column: 1 !important;
    grid-row: 3 !important;
    max-height: none !important;
    margin-top: 10px;
    overflow: visible !important;
  }

  .customer-app #checkoutModal .checkout-address-panel {
    grid-column: 1 !important;
    grid-row: 4 !important;
    margin-top: 10px;
  }

  .customer-app #checkoutModal .checkout-refund-notice {
    grid-column: 1 !important;
    grid-row: 5 !important;
    margin-top: 10px;
  }

  .customer-app #checkoutModal .checkout-payment-dock {
    display: grid !important;
    position: fixed !important;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1200;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 6px;
    box-sizing: border-box;
    padding: 9px 12px max(9px, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(40, 215, 229, .32);
    background: rgba(6, 10, 11, .98);
    box-shadow: 0 -18px 42px rgba(0, 0, 0, .58);
    backdrop-filter: blur(16px);
  }

  .customer-app #checkoutModal .checkout-payment-method {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
  }

  .customer-app #checkoutModal .checkout-payment-method > span {
    color: var(--muted);
    font-size: 11px;
    white-space: nowrap;
  }

  .customer-app #checkoutModal .checkout-payment-method select {
    min-width: 0;
    min-height: 42px;
  }

  .customer-app #checkoutModal .checkout-payment-method small {
    display: none;
  }

  .customer-app #checkoutModal #payBtn {
    position: static !important;
    min-height: 52px;
    margin: 0 !important;
    box-shadow: 0 10px 28px rgba(184, 255, 61, .16);
  }
}

@media (max-width: 360px) {
  .customer-app #checkoutModal .checkout-dialog {
    padding-inline: 9px !important;
  }

  .customer-app #checkoutModal .checkout-payment-dock {
    padding-inline: 9px;
  }
}

/* 2026-08 order and checkout integrity
   Keep every order control inside its card, and make the mobile checkout
   a single readable flow instead of overlapping fixed panels. */
.customer-app .order-draft-item,
.customer-app .order-draft-copy,
.customer-app .order-draft-controls,
.customer-app .order-size-editor,
.customer-app .order-size-row,
.customer-app .checkout-dialog,
.customer-app .checkout-dialog > * {
  min-width: 0;
}

.customer-app .order-size-editor {
  width: 100%;
}

.customer-app .order-size-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.customer-app .order-size-editor-head .mini-button {
  flex: 0 0 auto;
  width: auto !important;
  min-width: 72px;
  min-height: 40px;
  padding: 0 12px !important;
}

.customer-app .order-size-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(64px, 82px) 42px !important;
  gap: 8px !important;
  width: 100%;
}

.customer-app .order-size-row select,
.customer-app .order-size-row input {
  min-width: 0 !important;
  width: 100% !important;
}

.customer-app .order-size-row .mini-button {
  display: grid !important;
  place-items: center;
  width: 42px !important;
  min-width: 42px !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
}

@media (max-width: 820px) {
  .customer-app #toolOrder .order-draft-item {
    display: grid !important;
    grid-template-columns: 72px minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: start !important;
    padding: 12px !important;
  }

  .customer-app #toolOrder .order-draft-item > img {
    grid-row: 1 / span 2;
    width: 72px !important;
    height: 88px !important;
    object-fit: cover;
  }

  .customer-app #toolOrder .order-draft-copy {
    min-width: 0;
  }

  .customer-app #toolOrder .order-draft-actions {
    grid-column: 2;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
  }

  .customer-app #toolOrder .order-size-row {
    grid-template-columns: minmax(0, 1fr) 68px 42px !important;
  }

  .customer-app #toolOrder .saved-actions .button {
    min-height: 46px !important;
  }

  /* The checkout dialog owns its scroll. The payment dock is sticky inside
     that scroll context so it cannot cover address or consent fields. */
  .customer-app #checkoutModal .checkout-dialog {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
    align-content: initial !important;
  }

  .customer-app #checkoutModal .checkout-dialog > * {
    grid-column: auto !important;
    grid-row: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    flex: 0 0 auto;
  }

  .customer-app #checkoutModal .checkout-dialog > .section-title-row {
    position: sticky !important;
    top: calc(-1 * max(12px, env(safe-area-inset-top))) !important;
    z-index: 6 !important;
    margin: calc(-1 * max(12px, env(safe-area-inset-top))) -12px 0 !important;
    padding: max(12px, env(safe-area-inset-top)) 12px 10px !important;
    background: rgba(8, 12, 13, .98) !important;
  }

  .customer-app #checkoutModal .checkout-preview-panel {
    order: 1 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .customer-app #checkoutModal .order-summary {
    order: 2 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .customer-app #checkoutModal .checkout-address-panel {
    order: 3 !important;
  }

  .customer-app #checkoutModal .checkout-refund-notice {
    order: 4 !important;
  }

  .customer-app #checkoutModal .checkout-payment-dock {
    order: 5 !important;
    display: grid !important;
    position: sticky !important;
    inset: auto !important;
    bottom: 0 !important;
    z-index: 20 !important;
    width: 100% !important;
    margin-top: 0 !important;
    padding: 10px 0 max(10px, env(safe-area-inset-bottom)) !important;
    border-top: 1px solid rgba(40, 215, 229, .32) !important;
    background: rgba(8, 12, 13, .98) !important;
    box-shadow: 0 -18px 42px rgba(0, 0, 0, .58) !important;
  }

  .customer-app #checkoutModal .checkout-preview-gallery {
    display: grid !important;
    grid-auto-flow: column !important;
    grid-auto-columns: minmax(132px, 42vw) !important;
    grid-template-columns: none !important;
    max-height: none !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
  }

  .customer-app #checkoutModal .checkout-payment-method {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .customer-app #checkoutModal #payBtn {
    position: static !important;
    width: 100% !important;
    min-height: 52px !important;
    margin: 0 !important;
    border-radius: 4px !important;
    padding: 0 18px !important;
  }

  /* Avoid a viewport-height product panel leaving a blank tail below it. */
  .customer-app .studio > .product-panel,
  .customer-app .studio > .product-panel section {
    min-height: 0 !important;
    height: auto !important;
  }
}

@media (max-width: 360px) {
  .customer-app #checkoutModal .checkout-dialog {
    padding-inline: 9px !important;
  }
}

/* 2026-08-19 final interaction pass: one authoritative checkout layer. */
.customer-app.checkout-open {
  overflow: hidden !important;
}

.customer-app.checkout-open .editor-mobile-dock,
.customer-app.checkout-open .editor-action-dock,
.customer-app.checkout-open .editor-canvas-actions {
  display: none !important;
}

.customer-app #checkoutModal.open,
.customer-app #checkoutModal[aria-hidden="false"] {
  display: flex !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 10000 !important;
  align-items: stretch !important;
  justify-content: center !important;
  overflow: hidden !important;
  isolation: isolate;
  pointer-events: auto !important;
}

.customer-app #checkoutModal.open .checkout-dialog,
.customer-app #checkoutModal[aria-hidden="false"] .checkout-dialog {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  z-index: 1 !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
  overflow: auto !important;
}

.customer-app #checkoutModal .checkout-payment-dock {
  align-items: center !important;
}

.customer-app #checkoutModal .checkout-payment-dock #payBtn {
  height: 52px !important;
  min-height: 52px !important;
  border-radius: 6px !important;
  padding: 0 20px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.customer-app .order-draft-item {
  display: grid !important;
  grid-template-columns: 72px minmax(0, 1fr) auto !important;
  gap: 14px !important;
  align-items: start !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

.customer-app .order-draft-copy,
.customer-app .order-size-editor {
  min-width: 0 !important;
  overflow: hidden !important;
}

.customer-app .order-draft-actions {
  display: grid !important;
  min-width: 72px !important;
  justify-items: end !important;
  gap: 8px !important;
}

.customer-app #orderSizeDefaults[hidden],
.customer-app #bulkDiscountCard[hidden] {
  display: none !important;
}

@media (max-width: 820px) {
  .customer-app #checkoutModal.open .checkout-dialog,
  .customer-app #checkoutModal[aria-hidden="false"] .checkout-dialog {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100dvh !important;
    max-height: none !important;
    padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)) !important;
    gap: 12px !important;
  }

  .customer-app #checkoutModal.open .checkout-dialog > *,
  .customer-app #checkoutModal[aria-hidden="false"] .checkout-dialog > * {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    flex: 0 0 auto !important;
    min-width: 0 !important;
  }

  .customer-app #checkoutModal .checkout-dialog > .section-title-row {
    position: sticky !important;
    top: 0 !important;
    z-index: 40 !important;
    margin: calc(-1 * max(12px, env(safe-area-inset-top))) -12px 0 !important;
    padding: max(12px, env(safe-area-inset-top)) 12px 10px !important;
    background: rgba(8, 12, 13, .98) !important;
  }

  .customer-app #checkoutModal .checkout-payment-dock {
    position: sticky !important;
    bottom: 0 !important;
    z-index: 40 !important;
    display: grid !important;
    width: 100% !important;
    margin-top: auto !important;
    padding: 10px 0 max(10px, env(safe-area-inset-bottom)) !important;
    border-top: 1px solid rgba(40, 215, 229, .32) !important;
    background: rgba(8, 12, 13, .98) !important;
    box-shadow: 0 -18px 42px rgba(0, 0, 0, .58) !important;
  }

  .customer-app #checkoutModal .checkout-preview-gallery {
    display: grid !important;
    grid-auto-flow: column !important;
    grid-auto-columns: minmax(132px, 42vw) !important;
    grid-template-columns: none !important;
    max-height: none !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
  }

  .customer-app #checkoutModal .checkout-payment-method {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .customer-app #checkoutModal #payBtn {
    width: 100% !important;
    height: 52px !important;
    min-height: 52px !important;
    margin: 0 !important;
    border-radius: 6px !important;
  }

  .customer-app .order-draft-item {
    grid-template-columns: 64px minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  .customer-app .order-draft-item > img,
  .customer-app .order-draft-item .order-draft-image {
    width: 64px !important;
    height: 78px !important;
    object-fit: cover !important;
  }

  .customer-app .order-draft-actions {
    grid-column: 2 !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    justify-items: stretch !important;
    min-width: 0 !important;
  }

  .customer-app #toolOrder .saved-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .customer-app #toolOrder .saved-actions button {
    min-width: 0 !important;
    min-height: 44px !important;
    padding-inline: 10px !important;
  }

  .customer-app #toolOrder .saved-actions button:last-child {
    grid-column: 1 / -1 !important;
  }

  .customer-app .studio > .product-panel,
  .customer-app .studio > .product-panel section,
  .customer-app #toolProduct,
  .customer-app #toolProduct > * {
    min-height: 0 !important;
    height: auto !important;
  }
}

/* Mobile editor scroll authority: the page owns vertical movement while the
   tool rail and the two forward actions share one bottom command row. */
@media (max-width: 820px) {
  .customer-app .studio > .product-panel,
  .customer-app .studio > .edit-panel {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    overscroll-behavior: auto !important;
    touch-action: auto;
  }

  .customer-app .creator-artwork-panel .creator-artwork-library {
    max-height: none;
    overflow: visible;
  }

  .customer-app .artwork-category-filter {
    position: sticky;
    top: 64px;
    z-index: 6;
    flex-wrap: nowrap;
    overflow-y: hidden;
    margin-inline: -2px;
    padding: 8px 2px;
    background: rgba(8, 12, 12, .98);
    scrollbar-width: none;
  }

  .customer-app .artwork-category-filter::-webkit-scrollbar {
    display: none;
  }

  .customer-app .artwork-filter-chip {
    flex: 0 0 auto;
    min-height: 44px;
  }

  .customer-app .editor-library-more {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding-top: 4px;
  }

  .customer-app .editor-library-more .button {
    width: 100%;
    min-height: 48px;
  }

  .customer-app .editor-library-more span {
    color: var(--muted);
    font-size: 11px;
    white-space: nowrap;
  }
}

@media (max-width: 360px) {
  .customer-app .editor-library-more {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .customer-app .editor-library-more span {
    text-align: center;
  }
}

/* Mobile command dock authority. Size containment turns fixed descendants
   into editor-relative elements, so the phone viewport must own both docks. */
@media (max-width: 820px) {
  .customer-app .editor-shell {
    contain: none !important;
    transform: none !important;
  }

  .customer-app .studio > .stage-panel {
    contain: none !important;
    transform: none !important;
    overflow: visible !important;
  }

  .customer-app .editor-shell .editor-mobile-dock {
    right: var(--mobile-editor-actions-width) !important;
    left: 0 !important;
    z-index: 920 !important;
    box-sizing: border-box;
    width: auto !important;
    min-width: 0 !important;
    max-width: calc(100vw - var(--mobile-editor-actions-width)) !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    contain: layout paint;
    isolation: isolate;
  }

  .customer-app .editor-shell .editor-action-dock {
    right: 0 !important;
    left: auto !important;
    z-index: 922 !important;
    box-sizing: border-box;
    width: var(--mobile-editor-actions-width) !important;
    min-width: var(--mobile-editor-actions-width) !important;
    max-width: var(--mobile-editor-actions-width) !important;
    overflow: hidden !important;
    contain: layout paint;
    isolation: isolate;
  }

  .customer-app .editor-shell .editor-action-dock #editorDockSaveBtn,
  .customer-app .editor-shell .editor-action-dock #editorDockOrderBtn {
    position: relative;
    z-index: 1;
    min-width: 0 !important;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}


/* Large desktop canvas by default. The product is the primary task surface,
   so supporting chrome yields height before the editable artwork does. */
@media (min-width: 1024px) {
  .customer-app .editor-shell .topbar {
    min-height: 56px;
    margin-bottom: 6px;
  }

  .customer-app .editor-shell > .editor-progress {
    flex-basis: 28px;
    min-height: 28px;
    margin-bottom: 4px;
  }

  .customer-app .editor-shell > .editor-progress .progress-step {
    min-height: 30px;
    padding-inline: 12px;
  }

  .customer-app .editor-shell > .editor-flow-caption {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
  }

  .customer-app .studio > .stage-panel {
    padding: 8px;
  }

  .customer-app .stage-header {
    display: grid;
    grid-template-columns: minmax(150px, .7fr) minmax(300px, 1.3fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 58px;
    margin-bottom: 6px;
  }

  .customer-app .stage-header h1 {
    font-size: 20px;
  }

  .customer-app .stage-header #canvasMeta {
    font-size: 11px;
  }

  .customer-app .print-area-toolbar {
    display: grid;
    grid-template-columns: minmax(160px, 1.1fr) minmax(150px, .9fr);
    gap: 6px;
    margin-bottom: 0;
    padding: 6px;
  }

  .customer-app .print-area-status,
  .customer-app .print-area-menu-trigger {
    min-height: 50px;
    padding-block: 5px;
  }

  .customer-app .canvas-workbar {
    margin-bottom: 6px;
  }

  .customer-app .canvas-position-switcher {
    min-height: 40px;
    padding-block: 3px;
  }

  .customer-app .editor-action-dock {
    min-height: 58px;
    margin-top: 6px;
    padding: 6px;
  }
}

/* Homepage campaign carousel: editorial copy stage + full-colour artwork. */
.customer-app .home-hero.hero-banner-only {
  --home-hero-copy-width: 38%;
  display: grid;
  grid-template-columns: minmax(360px, var(--home-hero-copy-width)) minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  width: 100%;
  height: clamp(540px, calc(100svh - 125px), 760px);
  min-height: 540px;
  max-height: 760px;
  margin: 0;
  padding: 0;
  border-block: 1px solid rgba(255, 255, 255, .12);
  color: #f2f5ef;
  background: linear-gradient(
    90deg,
    #070909 0 var(--home-hero-copy-width),
    var(--home-hero-bg-color, #101616) var(--home-hero-copy-width) 100%
  );
  overflow: hidden;
}

.customer-app .home-hero.hero-banner-only::before {
  display: none;
  content: none;
}

.customer-app .home-hero.hero-banner-only .home-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: clamp(40px, 5vw, 76px) clamp(30px, 4.5vw, 72px) 128px;
  background: #070909;
}

.customer-app .home-hero.hero-banner-only .home-hero-copy::after {
  content: none;
}

.customer-app .home-hero.hero-banner-only .home-hero-copy > .eyebrow {
  display: none !important;
}

.customer-app .home-hero.hero-banner-only #homeHeroTitle {
  display: -webkit-box;
  width: 100%;
  max-width: 9.5em;
  height: 2.12em;
  min-height: 2.12em;
  max-height: 2.12em;
  margin: 0;
  overflow: hidden;
  color: #f2f5ef;
  font-size: clamp(54px, 4.7vw, 78px);
  font-weight: 820;
  line-height: 1.03;
  letter-spacing: -.025em;
  text-wrap: balance;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (min-width: 821px) {
  .customer-app .home-hero.hero-banner-only.has-long-hero-title #homeHeroTitle {
    font-size: clamp(48px, 3.8vw, 64px);
  }
}

.customer-app .home-hero.hero-banner-only #homeHeroDescription {
  display: -webkit-box;
  width: min(100%, 31rem);
  height: 3.4em;
  min-height: 3.4em;
  max-height: 3.4em;
  margin: 24px 0 0;
  overflow: hidden;
  color: rgba(242, 245, 239, .68);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.customer-app .home-hero.hero-banner-only .home-hero-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 24px;
  width: 100%;
  margin-top: 28px;
}

.customer-app .home-hero.hero-banner-only .home-hero-actions .button {
  width: auto;
  min-width: 0;
  min-height: 50px;
  margin: 0 !important;
  white-space: nowrap;
}

.customer-app .home-hero.hero-banner-only .home-hero-actions .button.primary {
  min-width: 150px;
  padding-inline: 24px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .34);
}

.customer-app .home-hero.hero-banner-only #heroBrowsePatternsBtn,
.customer-app .home-hero.hero-banner-only #heroBrowsePatternsBtn:hover {
  min-height: 44px;
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid rgba(242, 245, 239, .46);
  border-radius: 0;
  color: #f2f5ef;
  background: transparent;
  box-shadow: none;
}

.customer-app .home-hero.hero-banner-only #heroBrowsePatternsBtn:hover,
.customer-app .home-hero.hero-banner-only #heroBrowsePatternsBtn:focus-visible {
  border-bottom-color: #28d7e5;
  color: #28d7e5;
}

.customer-app .home-hero.hero-banner-only .home-hero-background {
  position: absolute;
  z-index: 0;
  inset: 0 0 0 var(--home-hero-copy-width);
  width: calc(100% - var(--home-hero-copy-width));
  height: 100%;
  contain: layout paint;
  object-fit: var(--home-hero-bg-fit, cover);
  object-position: var(--home-hero-bg-position, right);
  opacity: 1;
  filter: saturate(1.02) contrast(1.04);
  transform: scale(1);
  pointer-events: none;
}

.customer-app .home-hero.hero-banner-only .home-hero-bg-controls {
  position: absolute;
  z-index: 4;
  top: 50%;
  right: clamp(12px, 1.7vw, 28px);
  bottom: auto;
  left: auto;
  display: block;
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  transform: translateY(-50%);
  pointer-events: none;
}

.customer-app .home-hero.hero-banner-only .home-hero-dot-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  pointer-events: auto;
}

.customer-app .home-hero.hero-banner-only .home-hero-dot {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.customer-app .home-hero.hero-banner-only .home-hero-dot::before {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  content: "";
  background: rgba(242, 245, 239, .72);
  box-shadow: 0 0 0 4px rgba(7, 9, 9, .28), 0 2px 8px rgba(0, 0, 0, .32);
  transition: width 220ms cubic-bezier(.16, 1, .3, 1), background-color 180ms ease, transform 180ms ease;
}

.customer-app .home-hero.hero-banner-only .home-hero-dot:hover::before {
  background: rgba(242, 245, 239, .9);
  transform: scale(1.25);
}

.customer-app .home-hero.hero-banner-only .home-hero-dot.is-active::before {
  width: 20px;
  background: #28d7e5;
  box-shadow: 0 0 0 4px rgba(7, 9, 9, .32), 0 2px 10px rgba(0, 0, 0, .4);
  transform: none;
}

.customer-app .home-hero.hero-banner-only .home-hero-dot:focus-visible {
  outline: 2px solid #28d7e5;
  outline-offset: -5px;
}

@media (prefers-reduced-motion: no-preference) {
  .customer-app .home-hero.hero-banner-only.is-background-entering .home-hero-background {
    animation: home-hero-editorial-image-enter 560ms cubic-bezier(.16, 1, .3, 1) both;
  }

  .customer-app .home-hero.hero-banner-only.is-copy-entering #homeHeroTitle,
  .customer-app .home-hero.hero-banner-only.is-copy-entering #homeHeroDescription,
  .customer-app .home-hero.hero-banner-only.is-copy-entering .home-hero-actions {
    animation: home-hero-editorial-copy-enter 480ms cubic-bezier(.16, 1, .3, 1) both;
  }

  .customer-app .home-hero.hero-banner-only.is-copy-entering #homeHeroDescription {
    animation-delay: 45ms;
  }

  .customer-app .home-hero.hero-banner-only.is-copy-entering .home-hero-actions {
    animation-delay: 80ms;
  }
}

@keyframes home-hero-editorial-image-enter {
  from { opacity: .42; clip-path: inset(0 0 0 8%); transform: scale(1.035); }
  to { opacity: 1; clip-path: inset(0); transform: scale(1); }
}

@keyframes home-hero-editorial-copy-enter {
  from { opacity: .28; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 821px) and (max-width: 1300px) {
  .customer-app .home-hero.hero-banner-only {
    --home-hero-copy-width: 42%;
    grid-template-columns: minmax(340px, var(--home-hero-copy-width)) minmax(0, 1fr);
  }

  .customer-app .home-hero.hero-banner-only .home-hero-copy {
    padding-inline: 36px;
  }

  .customer-app .home-hero.hero-banner-only #homeHeroTitle {
    font-size: clamp(46px, 4vw, 54px);
  }

}

@media (min-width: 821px) and (max-width: 1300px) {
  .customer-app .home-hero.hero-banner-only {
    height: clamp(500px, calc(100svh - 193px), 700px);
    min-height: 500px;
    max-height: 700px;
  }
}

@media (min-width: 821px) and (max-width: 900px) {
  .customer-app .home-hero.hero-banner-only {
    --home-hero-copy-width: 46%;
  }

  .customer-app .home-hero.hero-banner-only .home-hero-copy {
    padding-inline: 28px;
  }

  .customer-app .home-hero.hero-banner-only #homeHeroTitle {
    font-size: 40px;
  }

}

@media (max-width: 820px) {
  .customer-app .home-hero.hero-banner-only {
    --home-hero-media-height: clamp(250px, 64vw, 360px);
    display: block;
    height: auto;
    min-height: 0;
    max-height: none;
    padding: var(--home-hero-media-height) 0 0;
    border-block: 1px solid rgba(255, 255, 255, .1);
    background: var(--home-hero-bg-color, #101616);
  }

  .customer-app .home-hero.hero-banner-only .home-hero-background {
    inset: 0 0 auto;
    width: 100%;
    height: var(--home-hero-media-height);
    object-fit: var(--home-hero-bg-fit, cover) !important;
    object-position: var(--home-hero-bg-position, center) !important;
    opacity: 1;
    filter: saturate(1.02) contrast(1.04);
    transform: none;
  }

  .customer-app .home-hero.hero-banner-only .home-hero-copy {
    display: block;
    min-height: 330px;
    padding: 28px 22px 22px;
    background: #070909;
  }

  .customer-app .home-hero.hero-banner-only .home-hero-copy::after {
    position: absolute;
    z-index: -1;
    top: -72px;
    right: 0;
    bottom: auto;
    left: 0;
    width: auto;
    height: 72px;
    display: block;
    content: "";
    background: linear-gradient(180deg, rgba(7, 9, 9, 0), #070909);
    pointer-events: none;
  }

  .customer-app .home-hero.hero-banner-only #homeHeroTitle {
    width: 100%;
    max-width: 10em;
    height: 2.16em;
    min-height: 2.16em;
    max-height: 2.16em;
    font-size: clamp(36px, 10vw, 46px);
    line-height: 1.04;
  }

  .customer-app .home-hero.hero-banner-only #homeHeroDescription {
    width: min(100%, 36rem);
    height: 3.4em;
    min-height: 3.4em;
    max-height: 3.4em;
    margin-top: 18px;
    font-size: 15px;
    -webkit-line-clamp: 2;
  }

  .customer-app .home-hero.hero-banner-only .home-hero-actions {
    gap: 20px;
    margin-top: 22px;
  }

  .customer-app .home-hero.hero-banner-only .home-hero-actions .button.primary {
    min-width: 140px;
  }

  .customer-app .home-hero.hero-banner-only .home-hero-bg-controls {
    position: absolute;
    top: calc(var(--home-hero-media-height) / 2);
    right: 6px;
    bottom: auto;
    left: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
  }

  .customer-app .home-hero.hero-banner-only .home-hero-dot-nav {
    padding-block: 4px;
  }

  .customer-app .home-hero.hero-banner-only .home-hero-dot {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  .customer-app .home-hero.hero-banner-only {
    --home-hero-media-height: clamp(230px, 68vw, 300px);
  }

  .customer-app .home-hero.hero-banner-only .home-hero-copy {
    min-height: 320px;
    padding-inline: 18px;
  }

  .customer-app .home-hero.hero-banner-only #homeHeroTitle {
    font-size: clamp(34px, 10vw, 42px);
  }

}

@media (prefers-reduced-motion: reduce) {
  .customer-app .home-hero.hero-banner-only .home-hero-background,
  .customer-app .home-hero.hero-banner-only #homeHeroTitle,
  .customer-app .home-hero.hero-banner-only #homeHeroDescription,
  .customer-app .home-hero.hero-banner-only .home-hero-actions,
  .customer-app .home-hero.hero-banner-only .home-hero-dot::before {
    animation: none !important;
    transition: none !important;
  }
}

/* Creativerse personal space: a calm creator portfolio with account data kept in its own destinations. */

.customer-app #profileView {
  --profile-content-width: 1480px;
  min-height: 100dvh;
  padding: 20px clamp(16px, 3.2vw, 52px) max(72px, env(safe-area-inset-bottom));
  overflow: clip;
  color: #f1f4ef;
  background-color: #070909;
  background-image:
    linear-gradient(112deg, rgba(6, 8, 7, 0.98), rgba(6, 8, 7, 0.88) 54%, rgba(6, 8, 7, 0.96)),
    var(--profile-background-image, none),
    radial-gradient(circle at 88% 18%, rgba(40, 215, 229, 0.08), transparent 32%);
  background-position: center, center, center;
  background-size: cover, cover, auto;
  background-attachment: scroll;
}

.customer-app #profileView::before {
  display: none;
}

.customer-app #profileView::after {
  z-index: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(0, 0, 0, 0.24));
}

.customer-app #profileView.has-custom-background {
  background-image:
    linear-gradient(112deg, rgba(4, 7, 6, 0.84), rgba(4, 7, 6, 0.62) 52%, rgba(4, 7, 6, 0.82)),
    var(--profile-background-image),
    radial-gradient(circle at 88% 18%, rgba(40, 215, 229, 0.07), transparent 32%) !important;
  background-position: center, center, center;
  background-size: cover, cover, auto;
}

.customer-app #profileView [hidden] {
  display: none !important;
}

.customer-app #profileView .profile-topbar,
.customer-app #profileView .profile-hero-panel,
.customer-app #profileView .profile-workspace {
  width: min(100%, var(--profile-content-width));
  max-width: var(--profile-content-width);
}

.customer-app #profileView .profile-topbar {
  min-height: 68px;
  margin: 0 auto;
  padding: 8px 0 16px;
  border: 0;
  border-bottom: 1px solid rgba(232, 240, 235, 0.12);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.customer-app #profileView .profile-topbar .catalog-brand {
  min-width: 0;
  padding: 0;
}

.customer-app #profileView .profile-topbar .brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.customer-app #profileView .profile-topbar strong {
  font-size: 16px;
}

.customer-app #profileView .profile-topbar .catalog-brand span {
  display: block;
  margin-top: 2px;
  color: rgba(219, 225, 220, 0.48);
  font-size: 12px;
}

.customer-app #profileView .profile-top-actions {
  gap: 8px;
}

.customer-app #profileView .profile-top-actions .button {
  min-height: 42px;
  padding-inline: 16px;
  border-radius: 999px;
  font-size: 12px;
}

.customer-app #profileView .profile-top-actions .button.primary {
  color: #070909;
  background: #b8ff3d;
}

.customer-app #profileView .profile-hero-panel {
  position: relative;
  display: grid;
  min-height: 238px;
  margin: 24px auto 0;
  padding: clamp(28px, 3.2vw, 48px);
  grid-template-columns: 116px minmax(0, 1fr) minmax(230px, auto);
  grid-template-rows: auto auto;
  gap: 22px 30px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(232, 240, 235, 0.12);
  border-radius: 12px;
  background: linear-gradient(118deg, rgba(15, 24, 22, 0.94), rgba(8, 12, 11, 0.9) 62%, rgba(7, 10, 9, 0.96));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
}

.customer-app #profileView .profile-hero-panel::after {
  position: absolute;
  top: 0;
  right: 12%;
  width: 24%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(40, 215, 229, 0.8), transparent);
  content: "";
  pointer-events: none;
}

.customer-app #profileView .profile-avatar-wrap {
  grid-row: 1 / span 2;
  width: 108px;
  gap: 10px;
}

.customer-app #profileView .profile-avatar-large {
  width: 108px;
  height: 108px;
  border: 1px solid rgba(232, 240, 235, 0.3);
  box-shadow: 0 0 0 6px rgba(232, 240, 235, 0.05), 0 18px 44px rgba(0, 0, 0, 0.28);
}

.customer-app #profileView .profile-avatar-change {
  width: auto;
  min-height: 32px;
  padding: 0 12px;
  border-color: rgba(232, 240, 235, 0.18);
  border-radius: 999px;
  color: rgba(232, 240, 235, 0.7);
  background: rgba(232, 240, 235, 0.04);
  font-size: 12px;
}

.customer-app #profileView .profile-avatar-change:hover,
.customer-app #profileView .profile-avatar-change:focus-within {
  border-color: rgba(40, 215, 229, 0.58);
  color: #f1f4ef;
  background: rgba(40, 215, 229, 0.08);
}

.customer-app #profileView .profile-identity {
  align-self: end;
}

.customer-app #profileView .profile-hero-panel h1 {
  margin: 0;
  max-width: 14ch;
  color: #f1f4ef;
  font-size: 42px;
  font-weight: 780;
  line-height: 0.98;
  letter-spacing: 0;
}

.customer-app #profileView .profile-hero-panel #profileDisplayMeta {
  margin-top: 14px;
  color: rgba(218, 225, 220, 0.58);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.customer-app #profileView .profile-hero-panel .profile-bio-summary {
  max-width: 64ch;
  margin-top: 11px;
  color: rgba(239, 243, 239, 0.78);
  font-size: 16px;
  line-height: 1.65;
}

.customer-app #profileView .profile-hero-tools {
  display: grid;
  align-self: start;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.customer-app #profileView .profile-hero-tools .button,
.customer-app #profileView .profile-cover-button {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 12px;
}

.customer-app #profileView .profile-hero-tools #profileDraftBtn {
  grid-column: 1 / -1;
  border-color: #b8ff3d;
  color: #070909;
  background: #b8ff3d;
}

.customer-app #profileView .profile-cover-button {
  border-color: rgba(40, 215, 229, 0.36);
  color: #28d7e5;
  background: rgba(40, 215, 229, 0.07);
}

.customer-app #profileView .profile-social-stats {
  display: flex;
  grid-column: 2 / 3;
  grid-row: 2;
  width: auto;
  max-width: 660px;
  margin: 0;
  align-self: start;
  gap: 0;
}

.customer-app #profileView .profile-social-stats button {
  position: relative;
  display: grid;
  min-width: 104px;
  min-height: 58px;
  padding: 8px 24px;
  gap: 3px;
  justify-items: start;
  border: 0;
  border-left: 1px solid rgba(232, 240, 235, 0.12);
  border-radius: 0;
  color: rgba(218, 225, 220, 0.54);
  background: transparent;
}

.customer-app #profileView .profile-social-stats button:first-child {
  padding-left: 0;
  border-left: 0;
}

.customer-app #profileView .profile-social-stats button:hover,
.customer-app #profileView .profile-social-stats button.active {
  border-color: rgba(232, 240, 235, 0.12);
  color: #f1f4ef;
  background: transparent;
}

.customer-app #profileView .profile-social-stats button::after {
  position: absolute;
  right: 24px;
  bottom: 2px;
  left: 24px;
  height: 1px;
  background: transparent;
  content: "";
}

.customer-app #profileView .profile-social-stats button:first-child::after {
  left: 0;
}

.customer-app #profileView .profile-social-stats button.active::after {
  background: #28d7e5;
}

.customer-app #profileView .profile-social-stats strong {
  color: #f1f4ef;
  font-size: 20px;
  line-height: 1;
}

.customer-app #profileView .profile-social-stats span {
  font-size: 12px;
}

.customer-app #profileView .profile-workspace {
  display: block;
  margin: 18px auto 0;
}

.customer-app #profileView .profile-space-nav {
  position: sticky;
  top: 10px;
  z-index: 20;
  display: flex;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 4px;
  gap: 8px;
  overflow-x: auto;
  border: 0;
  border-bottom: 1px solid rgba(232, 240, 235, 0.12);
  border-radius: 0;
  background: rgba(6, 8, 7, 0.88);
  box-shadow: none;
  scrollbar-width: none;
  backdrop-filter: blur(18px);
}

.customer-app #profileView .profile-space-nav::-webkit-scrollbar {
  display: none;
}

.customer-app #profileView .profile-space-nav button {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: auto;
  min-width: 72px;
  min-height: 54px;
  padding: 0 16px;
  border: 0;
  border-radius: 0;
  color: rgba(218, 225, 220, 0.52);
  background: transparent;
  font-size: 12px;
  font-weight: 760;
  text-align: center;
}

.customer-app #profileView .profile-space-nav button::before {
  display: none;
}

.customer-app #profileView .profile-space-nav button::after {
  position: absolute;
  right: 16px;
  bottom: -1px;
  left: 16px;
  height: 2px;
  background: transparent;
  content: "";
}

.customer-app #profileView .profile-space-nav button:hover,
.customer-app #profileView .profile-space-nav button.active {
  border-color: transparent;
  color: #f1f4ef;
  background: transparent;
}

.customer-app #profileView .profile-space-nav button.active::after {
  background: #28d7e5;
}

.customer-app #profileView .profile-space-nav button span {
  display: block;
  overflow: visible;
  color: inherit;
}

.customer-app #profileView .profile-layout {
  display: grid;
  width: 100%;
  max-width: none;
  margin: 28px 0 0;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.customer-app #profileView .profile-main-panel {
  display: contents;
}

.customer-app #profileView .profile-side-panel,
.customer-app #profileView .profile-card {
  position: static;
  grid-column: 1;
  width: 100%;
  min-width: 0;
  padding: clamp(20px, 2.2vw, 32px);
  border: 1px solid rgba(232, 240, 235, 0.12);
  border-radius: 12px;
  background: rgba(8, 12, 11, 0.9);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.customer-app #profileView[data-profile-section="designs"] .profile-design-card {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.customer-app #profileView[data-profile-section="designs"] .profile-section-head {
  min-height: 0;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
}

.customer-app #profileView[data-profile-section="designs"] .profile-section-head h2 {
  color: #f1f4ef;
  font-size: 42px;
  font-weight: 760;
  line-height: 1.05;
  letter-spacing: 0;
}

.customer-app #profileView[data-profile-section="designs"] .profile-section-head > div > span {
  display: block;
  margin-top: 9px;
  color: rgba(218, 225, 220, 0.5);
  font-size: 12px;
}

.customer-app #profileView[data-profile-section="designs"] .profile-design-card .profile-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.5vw, 22px);
  counter-reset: none;
}

.customer-app #profileView[data-profile-section="designs"] .profile-design-row {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  padding: 0;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(232, 240, 235, 0.13);
  border-radius: 12px;
  background: #0a0e0d;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.2);
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 220ms ease, box-shadow 220ms ease;
}

.customer-app #profileView[data-profile-section="designs"] .profile-design-row::before {
  display: none;
}

.customer-app #profileView[data-profile-section="designs"] .profile-design-row:hover,
.customer-app #profileView[data-profile-section="designs"] .profile-design-row:focus-within {
  border-color: rgba(40, 215, 229, 0.54);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.34);
  transform: translateY(-4px);
}

.customer-app #profileView[data-profile-section="designs"] .profile-design-row img,
.customer-app #profileView[data-profile-section="designs"] .profile-completed-placeholder {
  grid-column: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  background: #eef1ed;
}

.customer-app #profileView[data-profile-section="designs"] .profile-completed-placeholder {
  display: grid;
  place-items: center;
  color: #89938e;
  font-size: 12px;
  font-weight: 800;
}

.customer-app #profileView[data-profile-section="designs"] .profile-design-row > span {
  display: grid;
  grid-column: 1;
  min-width: 0;
  padding: 17px 18px 12px;
  gap: 6px;
}

.customer-app #profileView[data-profile-section="designs"] .profile-design-row > span strong {
  display: block;
  overflow: hidden;
  color: #f1f4ef;
  font-size: 16px;
  font-weight: 760;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-app #profileView[data-profile-section="designs"] .profile-design-row > span small {
  display: block;
  overflow: hidden;
  color: rgba(218, 225, 220, 0.48);
  font-size: 12px;
  line-height: 1.65;
  text-overflow: ellipsis;
}

.customer-app #profileView[data-profile-section="designs"] .profile-design-actions {
  display: grid;
  grid-column: 1;
  width: 100%;
  padding: 0 18px 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.customer-app #profileView[data-profile-section="designs"] .profile-design-actions .mini-button {
  min-width: 0;
  min-height: 40px;
  padding: 0 10px;
  overflow: hidden;
  border-color: rgba(232, 240, 235, 0.16);
  border-radius: 999px;
  color: rgba(239, 243, 239, 0.78);
  background: rgba(232, 240, 235, 0.04);
  font-size: 12px;
  text-overflow: ellipsis;
}

.customer-app #profileView[data-profile-section="designs"] .profile-design-actions .mini-button:nth-child(2) {
  border-color: #b8ff3d;
  color: #070909;
  background: #b8ff3d;
}

.customer-app #profileView .selected-empty {
  min-height: 260px;
  border-color: rgba(232, 240, 235, 0.14);
  border-radius: 12px;
  color: rgba(218, 225, 220, 0.5);
  background: rgba(232, 240, 235, 0.025);
}

.customer-app #profileView button:focus-visible,
.customer-app #profileView input:focus-visible,
.customer-app #profileView select:focus-visible,
.customer-app #profileView textarea:focus-visible,
.customer-app #profileView label:focus-within {
  outline: 2px solid #28d7e5;
  outline-offset: 3px;
}

@media (max-width: 1180px) {
  .customer-app #profileView .profile-hero-panel {
    grid-template-columns: 104px minmax(0, 1fr) 218px;
    padding: 30px;
  }

  .customer-app #profileView .profile-avatar-wrap,
  .customer-app #profileView .profile-avatar-large {
    width: 96px;
  }

  .customer-app #profileView .profile-avatar-large {
    height: 96px;
  }

  .customer-app #profileView[data-profile-section="designs"] .profile-design-card .profile-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .customer-app #profileView {
    padding: 10px 12px max(54px, env(safe-area-inset-bottom));
  }

  .customer-app #profileView .profile-topbar {
    min-height: 58px;
    padding-bottom: 10px;
  }

  .customer-app #profileView .profile-topbar .brand-mark {
    width: 38px;
    height: 38px;
  }

  .customer-app #profileView .profile-top-actions .button {
    min-height: 40px;
    padding-inline: 11px;
    font-size: 12px;
  }

  .customer-app #profileView .profile-hero-panel {
    min-height: 0;
    margin-top: 14px;
    padding: 20px;
    grid-template-columns: 82px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: 18px 16px;
  }

  .customer-app #profileView .profile-avatar-wrap {
    grid-row: 1;
    width: 78px;
  }

  .customer-app #profileView .profile-avatar-large {
    width: 78px;
    height: 78px;
  }

  .customer-app #profileView .profile-avatar-change {
    min-height: 30px;
    padding-inline: 8px;
    font-size: 12px;
  }

  .customer-app #profileView .profile-identity {
    align-self: center;
  }

  .customer-app #profileView .profile-hero-panel h1 {
    font-size: 32px;
  }

  .customer-app #profileView .profile-hero-panel #profileDisplayMeta {
    margin-top: 9px;
    font-size: 12px;
  }

  .customer-app #profileView .profile-hero-panel .profile-bio-summary {
    margin-top: 7px;
    font-size: 12px;
    line-height: 1.5;
  }

  .customer-app #profileView .profile-hero-tools {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .customer-app #profileView .profile-social-stats {
    grid-column: 1 / -1;
    grid-row: 3;
    width: 100%;
    max-width: none;
  }

  .customer-app #profileView .profile-social-stats button {
    flex: 1 1 25%;
    min-width: 0;
    min-height: 54px;
    padding: 6px 12px;
  }

  .customer-app #profileView .profile-social-stats button::after {
    right: 12px;
    left: 12px;
  }

  .customer-app #profileView .profile-social-stats button:first-child::after {
    left: 0;
  }

  .customer-app #profileView .profile-workspace {
    margin-top: 12px;
  }

  .customer-app #profileView .profile-space-nav {
    top: 0;
  }

  .customer-app #profileView .profile-space-nav button {
    min-height: 48px;
    padding-inline: 14px;
  }

  .customer-app #profileView .profile-layout {
    margin-top: 22px;
  }

  .customer-app #profileView[data-profile-section="designs"] .profile-design-card .profile-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .customer-app #profileView .profile-topbar {
    flex-wrap: wrap;
  }

  .customer-app #profileView .profile-top-actions {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .customer-app #profileView .profile-top-actions .button {
    width: 100%;
    min-width: 0;
    padding-inline: 6px;
  }

  .customer-app #profileView .profile-hero-panel {
    padding: 16px;
    border-radius: 12px;
  }

  .customer-app #profileView .profile-social-stats strong {
    font-size: 20px;
  }

  .customer-app #profileView[data-profile-section="designs"] .profile-section-head h2 {
    font-size: 32px;
  }

  .customer-app #profileView[data-profile-section="designs"] .profile-design-card .profile-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .customer-app #profileView[data-profile-section="designs"] .profile-design-row img,
  .customer-app #profileView[data-profile-section="designs"] .profile-completed-placeholder {
    aspect-ratio: 5 / 4;
  }

  .customer-app #profileView .profile-side-panel,
  .customer-app #profileView .profile-card {
    padding: 16px;
    border-radius: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .customer-app #profileView *,
  .customer-app #profileView *::before,
  .customer-app #profileView *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Completed customization actions keep their full labels on roomy screens. */
.customer-app #profileView[data-profile-section="designs"] .profile-completed-actions .profile-action-icon,
.customer-app #profileView[data-profile-section="designs"] .profile-completed-actions .profile-action-label-short {
  display: none;
}

/* Mobile profile density: a compact icon-led action rail and two-column walls. */
@media (max-width: 620px) {
  .customer-app #profileView[data-profile-section="designs"] .profile-completed-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px;
    width: 100%;
    min-width: 0;
  }

  .customer-app #profileView[data-profile-section="designs"] .profile-completed-actions.has-delete-action {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .customer-app #profileView[data-profile-section="designs"] .profile-completed-actions .mini-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding-inline: 6px;
    overflow: hidden;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .customer-app #profileView[data-profile-section="designs"] .profile-completed-actions .profile-action-icon {
    display: grid;
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    place-items: center;
  }

  .customer-app #profileView[data-profile-section="designs"] .profile-completed-actions .profile-action-icon svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .customer-app #profileView[data-profile-section="designs"] .profile-completed-actions .profile-action-label-full {
    display: none;
  }

  .customer-app #profileView[data-profile-section="designs"] .profile-completed-actions .profile-action-label-short {
    display: block;
  }

  .customer-app #profileView[data-profile-section="designs"] .profile-completed-actions .mini-button:active {
    transform: translateY(1px);
  }

  .customer-app #profileView .profile-design-card .profile-list,
  .customer-app #profileView #profileArtworkList.creator-artwork-list,
  .customer-app #profileView .profile-social-list.profile-social-art-wall,
  .customer-app #profileView .profile-social-list.profile-social-people-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Mobile canvas controls: direct manipulation, compact print-area affordance,
   and a persistent gesture cue that never changes production coordinates. */
.customer-app .mobile-canvas-coach,
.customer-app .canvas-rail-label-mobile {
  display: none;
}

@media (max-width: 820px) {
  .customer-app .canvas-shell {
    position: relative;
    grid-template-rows: auto;
    height: auto !important;
    max-height: none !important;
    overflow: hidden;
  }

  .customer-app .mobile-canvas-coach {
    position: absolute;
    top: 10px;
    right: 76px;
    bottom: auto;
    left: 10px;
    z-index: 11;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-rows: 1fr 1fr;
    align-items: center;
    gap: 1px 10px;
    box-sizing: border-box;
    width: auto;
    max-width: 286px;
    min-height: 44px;
    padding: 5px 10px 5px 5px;
    border: 1px solid rgba(40, 215, 229, .34);
    border-radius: 8px;
    color: #f2f5ef;
    background: rgba(6, 13, 14, .96);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .24);
    transform: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .customer-app .mobile-canvas-coach-badge {
    grid-column: 1;
    grid-row: 1 / 3;
    display: grid;
    align-self: stretch;
    place-items: center;
    border-radius: 6px;
    color: var(--cyan);
    background: rgba(40, 215, 229, .12);
    font-size: 10px;
    font-weight: 900;
  }

  .customer-app .mobile-canvas-coach[hidden] {
    display: none !important;
  }

  .customer-app .mobile-canvas-coach strong,
  .customer-app .mobile-canvas-coach span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .customer-app .mobile-canvas-coach strong {
    grid-column: 2;
    grid-row: 1;
    color: #f2f5ef;
    font-size: 12px;
    font-weight: 850;
  }

  .customer-app .mobile-canvas-coach span {
    grid-column: 2;
    grid-row: 2;
    color: rgba(242, 245, 239, .7);
    font-size: 11px;
    font-weight: 700;
  }

  .customer-app .mobile-canvas-coach .mobile-canvas-coach-badge {
    grid-column: 1;
    grid-row: 1 / 3;
    color: var(--cyan);
    font-size: 10px;
  }

  .customer-app .mobile-canvas-coach.has-selection {
    border-color: rgba(40, 215, 229, .68);
  }

  .customer-app .mobile-canvas-coach.is-gesturing {
    border-color: rgba(184, 255, 61, .76);
  }

  .customer-app .mobile-canvas-coach.is-gesturing strong {
    color: var(--green);
  }

  .customer-app .mobile-canvas-coach:active {
    transform: translateY(1px) scale(.995);
  }

  .customer-app #designCanvas {
    touch-action: pan-y;
  }

  .customer-app .canvas-command-rail {
    position: absolute;
    top: auto;
    right: 8px;
    bottom: 8px;
    left: 8px;
    z-index: 14;
    width: auto;
    height: 58px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .customer-app .canvas-rail-zoom {
    grid-template-areas: "label minus range plus fit";
    grid-template-columns: 62px 44px minmax(92px, 1fr) 44px 48px;
    flex: 1 0 100%;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 56px;
    padding: 5px;
  }

  .customer-app .canvas-rail-label {
    grid-area: label;
    display: grid;
    min-width: 0;
    place-items: center;
    color: rgba(242, 245, 239, .72);
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
  }

  .customer-app .canvas-rail-label-desktop {
    display: none;
  }

  .customer-app .canvas-rail-label-mobile {
    display: inline;
  }

  .customer-app #zoomOutBtn {
    grid-area: minus;
  }

  .customer-app .canvas-command-rail .canvas-zoom-control {
    grid-area: range;
    grid-template-columns: minmax(56px, 1fr) 34px;
    min-width: 0;
  }

  .customer-app #zoomInBtn {
    grid-area: plus;
  }

  .customer-app #zoomResetBtn {
    grid-area: fit;
  }

  .customer-app .canvas-rail-icon,
  .customer-app .canvas-rail-fit,
  .customer-app .canvas-command-rail .canvas-zoom-control input {
    min-height: 44px;
  }
}

@media (max-width: 380px) {
  .customer-app .mobile-canvas-coach {
    grid-template-columns: 44px minmax(0, 1fr);
    right: 68px;
    padding-right: 8px;
  }

  .customer-app .canvas-rail-zoom {
    grid-template-columns: 54px 42px minmax(76px, 1fr) 42px 46px;
    gap: 3px;
  }
}

/* Checkout summary hierarchy: final authority after the legacy checkout
   experiments above. */
.customer-app #checkoutModal .checkout-summary-overview {
  display: grid;
  gap: 0;
  margin-top: 4px;
  border-top: 1px solid rgba(242, 245, 239, .08);
}

.customer-app #checkoutModal .checkout-summary-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 11px 0 9px;
  border-top: 1px solid rgba(242, 245, 239, .12);
  border-bottom: 1px solid rgba(242, 245, 239, .08);
}

.customer-app #checkoutModal .checkout-summary-section-head strong {
  color: var(--soft);
  font-size: 14px;
}

.customer-app #checkoutModal .checkout-summary-section-head span {
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.customer-app #checkoutModal .checkout-item-size-readout {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid rgba(40, 215, 229, .2);
  border-radius: 6px;
  background: rgba(40, 215, 229, .06);
}

.customer-app #checkoutModal .checkout-item-size-readout span {
  color: var(--muted);
  font-size: 11px;
}

.customer-app #checkoutModal .checkout-item-size-readout strong {
  color: var(--cyan);
  font-size: 13px;
}

.customer-app #checkoutModal .checkout-item-fee-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-top: 2px;
}

.customer-app #checkoutModal .checkout-item-fee-line > span {
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
}

.customer-app #checkoutModal .checkout-item-fee-line > strong {
  flex: 0 0 auto;
  color: var(--soft);
  font-size: 13px;
  white-space: nowrap;
}

@media (min-width: 821px) {
  .customer-app #checkoutModal .checkout-dialog {
    grid-template-rows: auto minmax(460px, max-content) auto auto auto !important;
    height: auto !important;
    max-height: min(900px, 92dvh) !important;
    overflow-y: auto !important;
  }

  .customer-app #checkoutModal .checkout-dialog > .order-summary {
    max-height: none !important;
    overflow: visible !important;
  }

  .customer-app #checkoutModal .checkout-item-list {
    max-height: none !important;
    overflow: visible !important;
  }

  .customer-app #checkoutModal .checkout-item-row {
    min-height: 128px;
  }
}

@media (max-width: 820px) {
  .customer-app #checkoutModal .checkout-summary-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .customer-app #checkoutModal .checkout-summary-section-head span {
    text-align: left;
  }

  .customer-app #checkoutModal .checkout-item-fee-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
}

/* Checkout summary hierarchy: give the actual review content a generous
   first viewport and let the dialog own the scroll when the full payment
   flow is taller than the screen. */
.customer-app #checkoutModal .checkout-summary-overview {
  display: grid;
  gap: 0;
  margin-top: 4px;
  border-top: 1px solid rgba(242, 245, 239, .08);
}

.customer-app #checkoutModal .checkout-summary-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 11px 0 9px;
  border-top: 1px solid rgba(242, 245, 239, .12);
  border-bottom: 1px solid rgba(242, 245, 239, .08);
}

.customer-app #checkoutModal .checkout-summary-section-head strong {
  color: var(--soft);
  font-size: 14px;
}

.customer-app #checkoutModal .checkout-summary-section-head span {
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.customer-app #checkoutModal .checkout-item-size-readout {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid rgba(40, 215, 229, .2);
  border-radius: 6px;
  background: rgba(40, 215, 229, .06);
}

.customer-app #checkoutModal .checkout-item-size-readout span {
  color: var(--muted);
  font-size: 11px;
}

.customer-app #checkoutModal .checkout-item-size-readout strong {
  color: var(--cyan);
  font-size: 13px;
}

.customer-app #checkoutModal .checkout-item-fee-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-top: 2px;
}

.customer-app #checkoutModal .checkout-item-fee-line > span {
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
}

.customer-app #checkoutModal .checkout-item-fee-line > strong {
  flex: 0 0 auto;
  color: var(--soft);
  font-size: 13px;
  white-space: nowrap;
}

@media (min-width: 821px) {
  .customer-app #checkoutModal .checkout-dialog {
    grid-template-rows: auto minmax(460px, max-content) auto auto auto !important;
    height: auto !important;
    max-height: min(900px, 92dvh) !important;
    overflow-y: auto !important;
  }

  .customer-app #checkoutModal .checkout-dialog > .order-summary {
    max-height: none !important;
    overflow: visible !important;
  }

  .customer-app #checkoutModal .checkout-item-list {
    max-height: none !important;
    overflow: visible !important;
  }

  .customer-app #checkoutModal .checkout-item-row {
    min-height: 128px;
  }
}

@media (max-width: 820px) {
  .customer-app #checkoutModal .checkout-summary-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .customer-app #checkoutModal .checkout-summary-section-head span {
    text-align: left;
  }

  .customer-app #checkoutModal .checkout-item-fee-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
}

/* Order composer: the editable size table belongs to the order line, not to
   the narrow copy column beside its thumbnail. This block owns the final
   geometry for both the desktop rail and the mobile order sheet. */
.customer-app #toolOrder .order-selection-list {
  display: grid;
  gap: 12px;
}

.customer-app #toolOrder .order-draft-item {
  display: grid !important;
  grid-template-columns: 72px minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 10px 12px !important;
  min-width: 0;
  padding: 12px !important;
  border-color: rgba(242, 245, 239, .14);
  background: rgba(255, 255, 255, .035);
}

.customer-app #toolOrder .order-draft-item > img {
  grid-column: 1;
  grid-row: 1;
  width: 72px !important;
  height: 72px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  background: #edf0eb;
}

.customer-app #toolOrder .order-draft-copy {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
}

.customer-app #toolOrder .order-draft-copy > strong {
  overflow: hidden;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-app #toolOrder .order-draft-copy > span {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-app #toolOrder .order-draft-copy > .order-draft-size-summary {
  color: rgba(40, 215, 229, .88);
}

.customer-app #toolOrder .order-draft-item > .order-size-editor {
  grid-column: 1 / -1;
  grid-row: 2;
  gap: 9px;
  width: 100% !important;
  padding: 11px 0 2px !important;
  border: 0 !important;
  border-top: 1px solid rgba(242, 245, 239, .12) !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.customer-app #toolOrder .order-size-editor-head {
  min-height: 36px;
  padding: 0 0 8px;
  border-bottom: 0;
}

.customer-app #toolOrder .order-size-editor-head > span {
  color: var(--soft);
  font-size: 12px;
}

.customer-app #toolOrder .order-size-editor-head .mini-button {
  min-width: 88px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 6px;
}

.customer-app #toolOrder .order-size-row {
  grid-template-columns: minmax(92px, 1fr) minmax(72px, 84px) 36px !important;
  min-height: 63px;
  padding: 0 !important;
}

.customer-app #toolOrder .order-draft-actions {
  grid-column: 1 / -1 !important;
  grid-row: 3;
  display: flex !important;
  align-items: center;
  justify-content: space-between !important;
  gap: 12px;
  min-width: 0;
  padding-top: 9px;
  border-top: 1px solid rgba(242, 245, 239, .1);
}

.customer-app #toolOrder .order-draft-total-group {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.customer-app #toolOrder .order-draft-total-group > span {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.customer-app #toolOrder .order-draft-total-group > strong {
  color: var(--green);
  font-size: 17px;
}

.customer-app #toolOrder .order-draft-actions > .mini-button {
  width: auto !important;
  min-width: 58px !important;
  min-height: 36px;
  margin: 0 !important;
  padding: 0 10px !important;
  border-radius: 6px !important;
  font-size: 12px !important;
}

.customer-app #toolOrder .saved-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.customer-app #toolOrder .saved-actions .button {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  margin: 0;
  padding-inline: 10px;
  white-space: nowrap;
}

.customer-app #toolOrder .saved-actions #checkoutSavedBtn {
  grid-column: 1 / -1;
}

@media (min-width: 420px) {
  .customer-app #toolOrder .saved-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .customer-app #toolOrder .saved-actions #checkoutSavedBtn {
    grid-column: auto;
  }
}

@media (max-width: 380px) {
  .customer-app #toolOrder .order-draft-item {
    grid-template-columns: 60px minmax(0, 1fr) !important;
    padding: 10px !important;
  }

  .customer-app #toolOrder .order-draft-item > img {
    width: 60px !important;
    height: 60px;
  }

  .customer-app #toolOrder .order-size-row {
    grid-template-columns: minmax(82px, 1fr) minmax(66px, 74px) 34px !important;
  }

  .customer-app #toolOrder .order-draft-total-group {
    display: grid;
    gap: 1px;
  }
}

/* Profile avatar: keep the photo inside its crop while the verification mark can sit outside. */
.customer-app #profileView .profile-avatar-large {
  position: relative;
  flex: 0 0 auto;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  isolation: isolate;
}

.customer-app #profileView .profile-avatar-large.has-verified-creator {
  overflow: visible;
}

.customer-app #profileView .profile-avatar-large > .avatar-shell {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
}

.customer-app #profileView .profile-avatar-large > img,
.customer-app #profileView .profile-avatar-large .avatar-media {
  overflow: hidden;
  border-radius: 50%;
  clip-path: circle(50% at 50% 50%);
}

.customer-app #profileView .profile-avatar-large img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

body.profile-avatar-editor-open {
  overflow: hidden;
}

.customer-app .profile-avatar-editor-modal {
  z-index: 90;
  padding: 24px;
  background: rgba(2, 5, 4, 0.86);
  backdrop-filter: blur(18px);
}

.customer-app .profile-avatar-editor-dialog {
  display: grid;
  width: min(780px, 100%);
  max-height: min(820px, calc(100dvh - 48px));
  padding: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(232, 240, 235, 0.18);
  border-radius: 14px;
  color: #f1f4ef;
  background: #0b0f0e;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.58);
}

.customer-app .profile-avatar-editor-head {
  display: flex;
  min-width: 0;
  padding: 22px 24px 18px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(232, 240, 235, 0.11);
}

.customer-app .profile-avatar-editor-head h2 {
  margin: 0;
  color: #f1f4ef;
  font-size: 24px;
  line-height: 1.15;
}

.customer-app .profile-avatar-editor-head p {
  margin: 7px 0 0;
  color: rgba(219, 225, 220, 0.62);
  font-size: 13px;
  line-height: 1.55;
}

.customer-app .profile-avatar-editor-workspace {
  display: grid;
  min-height: 0;
  padding: 24px;
  grid-template-columns: minmax(300px, 1fr) 278px;
  gap: 26px;
  overflow: auto;
}

.customer-app .profile-avatar-editor-stage {
  display: grid;
  min-width: 0;
  align-content: center;
  justify-items: center;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(40, 215, 229, 0.14);
  border-radius: 12px;
  background: #070a09;
}

.customer-app .profile-avatar-editor-stage canvas {
  display: block;
  width: min(100%, 380px);
  height: auto;
  aspect-ratio: 1;
  border: 2px solid rgba(241, 244, 239, 0.7);
  border-radius: 50%;
  cursor: grab;
  touch-action: none;
  box-shadow: 0 0 0 8px rgba(241, 244, 239, 0.045), 0 20px 60px rgba(0, 0, 0, 0.42);
  outline: none;
  user-select: none;
}

.customer-app .profile-avatar-editor-stage canvas.is-dragging {
  cursor: grabbing;
}

.customer-app .profile-avatar-editor-stage canvas:focus-visible {
  border-color: #28d7e5;
  box-shadow: 0 0 0 4px rgba(40, 215, 229, 0.22), 0 20px 60px rgba(0, 0, 0, 0.42);
}

.customer-app .profile-avatar-editor-stage canvas.is-empty {
  opacity: 0.32;
}

.customer-app .profile-avatar-editor-stage canvas.is-loading {
  cursor: progress;
}

.customer-app .profile-avatar-editor-empty {
  display: grid;
  max-width: 280px;
  justify-items: center;
  gap: 7px;
  padding: 16px 18px;
  border: 1px dashed rgba(40, 215, 229, 0.32);
  border-radius: 12px;
  background: rgba(40, 215, 229, 0.045);
  text-align: center;
}

.customer-app .profile-avatar-editor-empty[hidden],
.customer-app .profile-avatar-editor-hint[hidden] {
  display: none;
}

.customer-app .profile-avatar-editor-empty strong {
  color: #f1f4ef;
  font-size: 14px;
}

.customer-app .profile-avatar-editor-empty span {
  color: rgba(219, 225, 220, 0.62);
  font-size: 12px;
  line-height: 1.5;
}

.customer-app .profile-avatar-editor-empty .button {
  min-height: 42px;
  margin-top: 4px;
}

.customer-app .profile-avatar-editor-hint {
  color: rgba(219, 225, 220, 0.58);
  font-size: 12px;
}

.customer-app .profile-avatar-editor-controls {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.customer-app .profile-avatar-editor-range {
  display: grid;
  gap: 10px;
}

.customer-app .profile-avatar-editor-range > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(241, 244, 239, 0.82);
  font-size: 13px;
  font-weight: 700;
}

.customer-app .profile-avatar-editor-range output {
  min-width: 54px;
  color: #28d7e5;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.customer-app .profile-avatar-editor-range input[type="range"] {
  width: 100%;
  min-height: 28px;
  margin: 0;
  accent-color: #b8ff3d;
  cursor: ew-resize;
}

.customer-app .profile-avatar-editor-quick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.customer-app .profile-avatar-editor-quick .button {
  min-width: 0;
  min-height: 42px;
  padding-inline: 8px;
  font-size: 11px;
}

.customer-app .profile-avatar-editor-reselect {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.customer-app .profile-avatar-editor-reselect input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.customer-app .profile-avatar-editor-reselect:focus-within {
  outline: 2px solid #28d7e5;
  outline-offset: 3px;
}

.customer-app .profile-avatar-editor-status {
  min-height: 40px;
  margin: 0;
  color: rgba(219, 225, 220, 0.58);
  font-size: 12px;
  line-height: 1.55;
}

.customer-app .profile-avatar-editor-actions {
  display: flex;
  padding: 16px 24px max(16px, env(safe-area-inset-bottom));
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid rgba(232, 240, 235, 0.11);
  background: #0b0f0e;
}

.customer-app .profile-avatar-editor-actions .button {
  min-width: 116px;
  min-height: 46px;
}

@media (max-width: 700px) {
  .customer-app .profile-avatar-editor-modal {
    align-items: end;
    align-content: end;
    padding: 0;
  }

  .customer-app .profile-avatar-editor-dialog {
    width: 100%;
    max-width: none;
    height: min(100dvh, 760px);
    max-height: 100dvh;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 16px 16px 0 0;
  }

  .customer-app .profile-avatar-editor-head {
    padding: 17px 16px 14px;
    gap: 12px;
  }

  .customer-app .profile-avatar-editor-head h2 {
    font-size: 20px;
  }

  .customer-app .profile-avatar-editor-head p {
    margin-top: 4px;
    font-size: 12px;
  }

  .customer-app .profile-avatar-editor-head .button {
    min-height: 44px;
    flex: 0 0 auto;
  }

  .customer-app .profile-avatar-editor-workspace {
    padding: 16px;
    grid-template-columns: 1fr;
    gap: 18px;
    overscroll-behavior: contain;
  }

  .customer-app .profile-avatar-editor-stage {
    padding: 18px;
  }

  .customer-app .profile-avatar-editor-stage canvas {
    width: min(70vw, 292px);
  }

  .customer-app .profile-avatar-editor-controls {
    gap: 14px;
  }

  .customer-app .profile-avatar-editor-quick .button {
    min-height: 44px;
  }

  .customer-app .profile-avatar-editor-actions {
    padding: 12px 16px max(12px, env(safe-area-inset-bottom));
  }

  .customer-app .profile-avatar-editor-actions .button {
    width: 100%;
    min-width: 0;
    min-height: 48px;
  }
}

@media (max-width: 380px), (max-height: 700px) {
  .customer-app .profile-avatar-editor-stage {
    padding: 14px;
  }

  .customer-app .profile-avatar-editor-stage canvas {
    width: min(62vw, 248px);
  }

  .customer-app .profile-avatar-editor-stage > span {
    display: none;
  }
}

/* Desktop trust and pricing surfaces: compact, legible, and task-led. */
@media (min-width: 821px) {
  .customer-app .creator-verification-card {
    padding: 24px 26px;
    border-color: rgba(40, 215, 229, .2);
    background: #0c1011;
  }
  .customer-app .creator-verification-head { min-height: 0; margin-bottom: 0; padding-bottom: 16px; }
  .customer-app .creator-verification-head h2 { font-size: 22px; }
  .customer-app .creator-verification-head > div > span { max-width: 62ch; line-height: 1.55; }
  .customer-app .creator-verification-content { gap: 16px; margin-top: 16px; }
  .customer-app .creator-verification-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 8px;
    background: rgba(255, 255, 255, .025);
  }
  .customer-app .creator-verification-steps span {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, .1);
    border-radius: 0;
    font-size: 12px;
  }
  .customer-app .creator-verification-steps span:last-child { border-right: 0; }
  .customer-app .creator-verification-steps span.active { color: #07100b; background: #b8ff3d; }
  .customer-app .creator-verification-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
  .customer-app .creator-verification-phone-step { padding: 4px 22px 2px 0; border-right: 1px solid rgba(255, 255, 255, .1); }
  .customer-app .creator-verification-material-step { padding: 4px 0 2px; }
  .customer-app #creatorVerificationVerifyBtn { justify-self: start; width: auto; min-width: 148px; min-height: 42px; padding-inline: 22px; }
  .customer-app .creator-verification-agreements {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 22px;
    margin-top: 18px;
    padding: 16px 0 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
  }
  .customer-app .creator-verification-agreements label {
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 8px;
    background: rgba(255, 255, 255, .025);
    font-size: 13px;
    line-height: 1.55;
  }
  .customer-app .creator-verification-agreements p { grid-column: 1 / -1; padding-left: 2px; font-size: 11px; }
  .customer-app .creator-verification-actions { padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .1); }
  .customer-app .creator-verification-actions .button { min-width: 124px; }
  .customer-app .order-panel .control-grid.two { grid-template-columns: 1fr; }
  .customer-app .bulk-discount-card {
    display: grid;
    grid-template-columns: minmax(118px, .72fr) minmax(0, 1.28fr);
    align-items: stretch;
    gap: 12px;
    margin-top: 12px;
    padding: 12px;
    border-color: rgba(232, 184, 106, .24);
    background: rgba(232, 184, 106, .055);
  }
  .customer-app .bulk-discount-summary { display: grid; align-content: center; gap: 4px; min-width: 0; padding: 2px 4px; }
  .customer-app .bulk-discount-card .bulk-discount-summary strong { font-size: 18px; line-height: 1.25; }
  .customer-app .bulk-discount-summary small { font-size: 10px; line-height: 1.45; }
  .customer-app .bulk-trial-card { margin: 0; padding: 10px 12px; }
}

.customer-app #profileView[data-profile-section="designs"] .profile-completed-actions .mini-button:first-child {
  border-color: #b8ff3d;
  color: #070909;
  background: #b8ff3d;
}

.customer-app #profileView[data-profile-section="designs"] .profile-completed-actions .mini-button:nth-child(2) {
  border-color: rgba(232, 240, 235, 0.16);
  color: rgba(239, 243, 239, 0.78);
  background: rgba(232, 240, 235, 0.04);
}

.customer-app #profileView[data-profile-section="designs"] .profile-completed-actions .mini-button[data-delete-profile-customization] {
  border-color: rgba(255, 104, 75, 0.54);
  color: #ff8a72;
  background: rgba(255, 104, 75, 0.08);
}

/* Final contrast pass: every action keeps its label readable on its own fill. */
.customer-app #profileView[data-profile-section="designs"] .profile-completed-actions .mini-button:first-child,
.customer-app #profileView[data-profile-section="designs"] .profile-completed-actions .mini-button:first-child:hover,
.customer-app #profileView[data-profile-section="designs"] .profile-completed-actions .mini-button:first-child:focus-visible {
  border-color: #b8ff3d;
  color: #071008 !important;
  -webkit-text-fill-color: #071008;
  background: #b8ff3d;
}

.customer-app #profileView[data-profile-section="designs"] .profile-completed-actions .mini-button[data-delete-profile-customization],
.customer-app #profileView[data-profile-section="designs"] .profile-completed-actions .mini-button[data-delete-profile-customization]:hover,
.customer-app #profileView[data-profile-section="designs"] .profile-completed-actions .mini-button[data-delete-profile-customization]:focus-visible {
  border-color: #ff765c;
  color: #ffd9d0 !important;
  -webkit-text-fill-color: #ffd9d0;
  background: rgba(77, 24, 22, 0.9);
}

.customer-app #profileView[data-profile-section="designs"] .profile-completed-actions .mini-button[data-view-customized-order],
.customer-app #profileView[data-profile-section="designs"] .profile-completed-actions .mini-button[data-view-customized-order]:hover,
.customer-app #profileView[data-profile-section="designs"] .profile-completed-actions .mini-button[data-view-customized-order]:focus-visible {
  border-color: rgba(242, 245, 239, 0.34);
  color: #f2f5ef !important;
  -webkit-text-fill-color: #f2f5ef;
  background: rgba(242, 245, 239, 0.08);
}

/* My customization becomes a content-first card; actions live inside detail. */
.customer-app #profileView[data-profile-section="designs"] .profile-customized-card {
  cursor: pointer;
}

.customer-app #profileView[data-profile-section="designs"] .profile-customized-card:focus-visible {
  outline: 2px solid #28d7e5;
  outline-offset: 4px;
}

.customer-app #profileView[data-profile-section="designs"] .profile-design-signals {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
  color: rgba(242, 245, 239, 0.62);
  font-size: 11px;
  line-height: 1;
}

.customer-app #profileView[data-profile-section="designs"] .profile-design-signals > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.customer-app #profileView[data-profile-section="designs"] .profile-design-signals svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.customer-app #profileView[data-profile-section="designs"] .profile-design-signals b {
  color: rgba(242, 245, 239, 0.78);
  font-size: 11px;
  font-weight: 850;
}

.customer-app .customized-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.customer-app .customized-detail-actions .button {
  min-width: 132px;
}

/* Artwork management: viewport-safe detail and a deliberate upload entry. */
body.creator-artwork-detail-open {
  overflow: hidden;
}

.customer-app .profile-creator-artwork-card .profile-section-head {
  align-items: center;
}

.customer-app .profile-artwork-upload-action {
  display: grid;
  min-width: 228px;
  min-height: 58px;
  padding: 9px 14px 9px 10px;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid #b8ff3d;
  border-radius: 8px;
  color: #070909;
  background: #b8ff3d;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.customer-app .profile-artwork-upload-action:hover {
  border-color: #28d7e5;
  background: #28d7e5;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
}

.customer-app .profile-artwork-upload-action:focus-visible,
.customer-app .profile-artwork-upload-action:focus-within {
  outline: 2px solid #28d7e5;
  outline-offset: 3px;
}

.customer-app .profile-artwork-upload-action:has(input:disabled) {
  opacity: 0.55;
  cursor: progress;
  transform: none;
}

.customer-app .profile-artwork-upload-action > span:last-of-type {
  display: grid;
  min-width: 0;
  gap: 2px;
  color: #08100d;
}

.customer-app .profile-artwork-upload-action strong {
  color: #08100d;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}

.customer-app .profile-artwork-upload-action small {
  overflow: hidden;
  color: rgba(8, 16, 13, 0.76);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-app .profile-artwork-upload-icon {
  position: relative;
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(7, 9, 9, 0.1);
}

.customer-app .profile-artwork-upload-icon::before,
.customer-app .profile-artwork-upload-icon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 2px;
  border-radius: 2px;
  background: #070909;
  content: "";
  transform: translate(-50%, -50%);
}

.customer-app .profile-artwork-upload-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.customer-app #profileArtworkToolbar.profile-gallery-toolbar {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.customer-app #profileArtworkToolbar .profile-gallery-search {
  width: min(100%, 360px);
  justify-self: end;
}

.customer-app #profileArtworkToolbar .profile-material-upload-status {
  grid-column: 1 / -1;
  order: 4;
}

.customer-app #profileArtworkToolbar .profile-material-upload-status:empty {
  display: none;
}

.customer-app .creator-artwork-manage-modal {
  z-index: 2450;
  padding: 16px;
  align-items: center;
  align-content: center;
  background: rgba(3, 6, 6, 0.9);
}

.customer-app .creator-artwork-manage-dialog {
  display: grid;
  width: min(1260px, calc(100vw - 32px));
  height: min(920px, calc(100dvh - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border-radius: 8px;
  background: #0b0e0e;
}

.customer-app .creator-artwork-manage-header {
  display: flex;
  min-height: 78px;
  padding: 16px 20px 16px 24px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(242, 245, 239, 0.12);
  background: #0b0e0e;
}

.customer-app .creator-artwork-manage-header > div {
  min-width: 0;
}

.customer-app .creator-artwork-manage-header h2 {
  margin: 0;
  color: #f2f5ef;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
}

.customer-app .creator-artwork-manage-header p {
  margin: 5px 0 0;
  overflow: hidden;
  color: #89938e;
  font-size: 12px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-app .creator-artwork-manage-header .icon-button {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 22px;
}

.customer-app .creator-artwork-manage-dialog .creator-manage-layout {
  display: grid;
  min-height: 0;
  margin: 0;
  padding: 24px;
  grid-template-columns: minmax(300px, 0.82fr) minmax(420px, 1.18fr);
  align-items: start;
  gap: clamp(24px, 3vw, 48px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.customer-app .creator-artwork-preview-stage {
  position: sticky;
  top: 0;
  display: grid;
  min-width: 0;
  margin: 0;
  gap: 10px;
}

.customer-app .creator-artwork-preview-stage > img {
  display: block;
  width: 100%;
  height: min(68vh, 680px);
  max-height: calc(100dvh - 214px);
  aspect-ratio: auto;
  border-radius: 8px;
  object-fit: contain;
  background: #f2f5ef;
}

.customer-app .creator-artwork-preview-empty {
  display: grid;
  width: 100%;
  height: min(68vh, 680px);
  max-height: calc(100dvh - 214px);
  min-height: 360px;
  padding: 32px;
  place-content: center;
  justify-items: center;
  gap: 10px;
  border: 1px dashed rgba(184, 255, 61, 0.48);
  border-radius: 8px;
  color: #f2f5ef;
  background: #101516;
  cursor: pointer;
  text-align: center;
}

.customer-app .creator-artwork-preview-empty[hidden] { display: none; }

.customer-app .creator-artwork-preview-empty-icon {
  position: relative;
  width: 58px;
  height: 58px;
  margin-bottom: 6px;
  border: 1px solid rgba(184, 255, 61, 0.5);
  border-radius: 50%;
  background: rgba(184, 255, 61, 0.08);
}

.customer-app .creator-artwork-preview-empty-icon::before,
.customer-app .creator-artwork-preview-empty-icon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 2px;
  content: "";
  background: #b8ff3d;
  transform: translate(-50%, -50%);
}

.customer-app .creator-artwork-preview-empty-icon::after { transform: translate(-50%, -50%) rotate(90deg); }

.customer-app .creator-artwork-preview-empty strong {
  font-size: 18px;
}

.customer-app .creator-artwork-preview-empty small {
  max-width: 320px;
  color: #93a49c;
  font-size: 12px;
  line-height: 1.6;
}

.customer-app .creator-artwork-preview-empty:hover,
.customer-app .creator-artwork-preview-empty:focus-within {
  border-color: #b8ff3d;
  background: #141b18;
}

.customer-app .creator-artwork-preview-empty.is-error,
.customer-app .creator-artwork-replace-action.is-error {
  border-color: color-mix(in srgb, var(--coral) 68%, transparent);
}

.customer-app .creator-artwork-upload-feedback {
  display: grid;
  min-width: 0;
  padding: 12px 16px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--coral) 38%, transparent);
  border-radius: 8px;
  color: color-mix(in srgb, var(--text) 84%, var(--coral));
  background: color-mix(in srgb, var(--coral) 12%, var(--panel));
}

.customer-app .creator-artwork-upload-feedback[hidden] { display: none; }

.customer-app .creator-artwork-upload-feedback strong {
  color: color-mix(in srgb, var(--text) 44%, var(--coral));
  font-size: 12px;
  line-height: 1.5;
}

.customer-app .creator-artwork-upload-feedback span {
  min-width: 0;
  color: color-mix(in srgb, var(--text) 80%, var(--coral));
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.customer-app .creator-artwork-replace-action {
  display: grid;
  min-height: 54px;
  padding: 10px 14px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 5px 12px;
  border: 1px solid rgba(242, 245, 239, 0.18);
  border-radius: 8px;
  color: #f2f5ef;
  background: #101516;
  cursor: pointer;
}

.customer-app .creator-artwork-replace-action[hidden] { display: none; }

.customer-app .creator-artwork-replace-action span {
  grid-row: 1 / 3;
  color: #b8ff3d;
  font-size: 13px;
  font-weight: 850;
}

.customer-app .creator-artwork-replace-action small {
  color: #89938e;
  font-size: 11px;
  line-height: 1.4;
}

.customer-app .creator-artwork-replace-action:hover,
.customer-app .creator-artwork-replace-action:focus-within {
  border-color: rgba(184, 255, 61, 0.48);
  background: #141b18;
}

.customer-app .creator-artwork-manage-dialog .creator-manage-copy {
  padding-bottom: 8px;
  gap: 18px;
}

.customer-app .creator-artwork-manage-dialog .creator-manage-copy > p {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(242, 245, 239, 0.1);
}

.customer-app .profile-copyright-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  min-height: 24px;
  padding: 4px 8px;
  align-items: center;
  border-radius: 999px;
  color: rgba(242, 245, 239, 0.78);
  background: rgba(8, 12, 12, 0.82);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.customer-app .profile-copyright-badge.is-protected {
  color: #07100b;
  background: #b8ff3d;
}

.customer-app .creator-copyright-record {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(40, 215, 229, 0.2);
  border-radius: 10px;
  background: #101516;
}

.customer-app .creator-copyright-record.is-protected {
  border-color: rgba(184, 255, 61, 0.36);
}

.customer-app .creator-copyright-record.is-draft {
  border-color: rgba(184, 255, 61, 0.34);
  background: rgba(184, 255, 61, 0.045);
}

.customer-app .creator-copyright-record.is-draft .creator-copyright-seal {
  background: #b8ff3d;
}

.customer-app .creator-upload-agreement {
  gap: 14px;
  border-color: rgba(184, 255, 61, 0.32);
  background: #101610;
}

.customer-app .creator-upload-agreement-head {
  display: grid;
  gap: 5px;
}

.customer-app .creator-upload-agreement-head > span,
.customer-app .creator-artwork-license-field > small {
  color: #93a49c;
  font-size: 12px;
  line-height: 1.55;
}

.customer-app .creator-artwork-license-field > small.is-ready {
  color: #b8ff3d;
}

.customer-app .creator-artwork-license-field select:disabled {
  color: #77817c;
  border-color: rgba(242, 245, 239, 0.1);
  background: #0b0e0e;
  cursor: not-allowed;
}

.customer-app .creator-copyright-record-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
}

.customer-app .creator-copyright-seal {
  position: relative;
  width: 34px;
  height: 34px;
  clip-path: polygon(25% 7%, 75% 7%, 100% 50%, 75% 93%, 25% 93%, 0 50%);
  background: #28d7e5;
}

.customer-app .creator-copyright-record.is-protected .creator-copyright-seal {
  background: #b8ff3d;
}

.customer-app .creator-copyright-seal::after {
  position: absolute;
  inset: 9px;
  border: 2px solid #07100b;
  border-top: 0;
  border-left: 0;
  content: "";
  transform: translateY(-2px) rotate(45deg);
}

.customer-app .creator-copyright-record-head > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.customer-app .creator-copyright-record-head strong {
  color: #f2f5ef;
  font-size: 14px;
}

.customer-app .creator-copyright-record-head span,
.customer-app .creator-copyright-record > p {
  margin: 0;
  color: #93a49c;
  font-size: 11px;
  line-height: 1.55;
}

.customer-app .creator-copyright-record dl {
  display: grid;
  margin: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(242, 245, 239, 0.1);
}

.customer-app .creator-copyright-record dl > div {
  display: grid;
  min-width: 0;
  padding: 11px 12px;
  gap: 4px;
  background: #0c1011;
}

.customer-app .creator-copyright-record dt {
  color: #7e8b85;
  font-size: 10px;
}

.customer-app .creator-copyright-record dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #e7ece8;
  font-size: 12px;
  font-weight: 750;
}

.customer-app .creator-copyright-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.customer-app .creator-copyright-actions a {
  padding: 7px 4px;
  color: #28d7e5;
  font-size: 12px;
  font-weight: 800;
  text-underline-offset: 3px;
}

.customer-app .creator-copyright-actions .button:disabled {
  opacity: 0.44;
}

.customer-app .creator-artwork-manage-dialog .creator-manage-income {
  padding: 18px;
  border: 0;
  background: #101414;
}

.customer-app .creator-artwork-quantity-field small {
  color: #93a49c;
  font-size: 12px;
  line-height: 1.45;
}

.customer-app .creator-artwork-quantity-field input[aria-invalid="true"] {
  border-color: #ff6b62;
  outline: 2px solid rgba(255, 107, 98, 0.16);
}

.customer-app .artwork-price-panel {
  grid-template-columns: repeat(2, minmax(180px, 1fr));
}

.customer-app .artwork-price-panel .artwork-income {
  grid-column: 1 / -1;
}

.customer-app .creator-artwork-manage-actions {
  display: flex;
  min-height: 74px;
  margin: 0;
  padding: 13px 20px;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid rgba(242, 245, 239, 0.12);
  background: #0b0e0e;
  box-shadow: 0 -14px 34px rgba(0, 0, 0, 0.22);
}

.customer-app .creator-artwork-manage-actions .button {
  min-height: 44px;
}

.customer-app .creator-artwork-manage-actions #saveCreatorArtworkManageBtn {
  min-width: 180px;
  order: 3;
}

.customer-app .creator-artwork-manage-actions #deleteCreatorArtworkBtn {
  margin-right: auto;
  order: 1;
}

.customer-app .creator-artwork-manage-actions #cancelCreatorArtworkManageBtn {
  order: 2;
}

@media (max-width: 980px) {
  .customer-app #profileArtworkToolbar.profile-gallery-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .customer-app #profileArtworkToolbar .profile-gallery-search {
    width: 100%;
  }

  .customer-app #profileArtworkToolbar .profile-gallery-filters {
    grid-column: 1 / -1;
  }

  .customer-app .creator-artwork-manage-dialog .creator-manage-layout {
    grid-template-columns: minmax(240px, 0.7fr) minmax(360px, 1.3fr);
    gap: 24px;
  }
}

@media (max-width: 720px) {
  .customer-app .artwork-price-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .customer-app .artwork-price-panel .artwork-income {
    grid-column: 1;
  }

  .customer-app .profile-creator-artwork-card .profile-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .customer-app .profile-artwork-upload-action {
    width: 100%;
    min-width: 0;
  }

  .customer-app #profileArtworkToolbar.profile-gallery-toolbar {
    grid-template-columns: 1fr;
  }

  .customer-app #profileArtworkToolbar .profile-gallery-search,
  .customer-app #profileArtworkToolbar .profile-gallery-filters {
    grid-column: 1;
  }

  .customer-app .creator-artwork-manage-modal {
    padding: 0;
    align-items: stretch;
    align-content: stretch;
  }

  .customer-app .creator-artwork-manage-dialog {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .customer-app .creator-artwork-manage-header {
    min-height: 66px;
    padding: 10px 12px 10px 16px;
  }

  .customer-app .creator-artwork-manage-header h2 {
    font-size: 20px;
  }

  .customer-app .creator-artwork-manage-header p {
    max-width: 70vw;
  }

  .customer-app .creator-artwork-manage-dialog .creator-manage-layout {
    padding: 16px;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .customer-app .creator-artwork-preview-stage {
    position: static;
  }

  .customer-app .creator-artwork-preview-stage > img {
    height: min(44vh, 420px);
    max-height: none;
  }

  .customer-app .creator-artwork-preview-empty {
    height: min(44vh, 420px);
    min-height: 260px;
    max-height: none;
    padding: 24px;
  }

  .customer-app .creator-copyright-record dl {
    grid-template-columns: minmax(0, 1fr);
  }

  .customer-app .creator-copyright-actions .button {
    flex: 1 1 calc(50% - 4px);
  }

  .customer-app .creator-artwork-manage-actions {
    min-height: 70px;
    padding: 10px 12px max(10px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .customer-app .creator-artwork-manage-actions #deleteCreatorArtworkBtn {
    margin-right: 0;
  }

  .customer-app .creator-artwork-manage-actions #saveCreatorArtworkManageBtn {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
    min-width: 0;
  }

  .customer-app .creator-artwork-manage-actions #deleteCreatorArtworkBtn,
  .customer-app .creator-artwork-manage-actions #cancelCreatorArtworkManageBtn {
    width: 100%;
  }
}

/* Checkout line items must remain readable when the summary column reaches
   its scroll limit. Grid tracks without a floor can otherwise collapse. */
.customer-app #checkoutModal .checkout-item-list {
  grid-auto-rows: minmax(76px, max-content);
  min-height: 76px;
  max-height: min(34vh, 320px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.customer-app #checkoutModal .checkout-item-row {
  min-height: 76px;
  padding: 8px;
  align-items: center;
}

.customer-app #checkoutModal .checkout-item-row > img {
  width: 58px;
  height: 58px;
  min-height: 58px;
  margin: 0;
  object-fit: cover;
}

.customer-app #checkoutModal .checkout-item-row > div {
  align-content: center;
  min-width: 0;
}

@media (max-width: 520px) {
  .customer-app #checkoutModal .checkout-item-list {
    grid-auto-rows: max-content;
    max-height: none;
  }

  .customer-app #checkoutModal .checkout-item-row {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    min-height: 72px;
    gap: 8px;
  }

  .customer-app #checkoutModal .checkout-item-row > img {
    width: 52px;
    height: 52px;
    min-height: 52px;
  }
}

/* Mobile orders: explicit grid areas keep selection, artwork and copy from overlapping. */
.customer-app .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 680px) {
  .customer-app .profile-page[data-profile-section="orders"] .profile-card {
    min-width: 0;
  }

  .customer-app .profile-order-tabs {
    display: flex;
    width: 100%;
    padding: 2px 0 8px;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 2px;
    scroll-snap-type: inline proximity;
    -webkit-overflow-scrolling: touch;
  }

  .customer-app .profile-order-tabs button {
    flex: 0 0 auto;
    min-height: 48px;
    padding-inline: 16px;
    scroll-snap-align: start;
  }

  .customer-app #profileOrderList {
    min-width: 0;
    gap: 12px;
  }

  .customer-app .profile-order-row,
  .customer-app .profile-order-row:not(:has(.profile-order-select)) {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    grid-template-areas:
      "thumb summary"
      "aside aside";
    align-items: start;
    min-width: 0;
    min-height: 0;
    padding: 14px;
    gap: 12px;
    overflow: hidden;
  }

  .customer-app .profile-order-row.profile-order-row-cancelled,
  .customer-app .profile-order-row:has(.profile-order-select) {
    grid-template-columns: 32px 82px minmax(0, 1fr);
    grid-template-areas:
      "select thumb summary"
      "aside aside aside";
    column-gap: 10px;
  }

  .customer-app .profile-order-select {
    grid-area: select;
    width: 32px;
    min-width: 32px;
    min-height: 44px;
    align-self: center;
  }

  .customer-app .profile-order-select input,
  .customer-app .profile-order-manage input {
    width: 22px;
    height: 22px;
  }

  .customer-app .profile-order-thumb,
  .customer-app .profile-order-row img {
    grid-area: thumb;
    display: block;
    width: 84px;
    height: 72px;
    max-width: 100%;
    margin: 0;
    border-radius: 8px;
    object-fit: contain;
    background: #f2f4ef;
  }

  .customer-app .profile-order-row.profile-order-row-cancelled .profile-order-thumb,
  .customer-app .profile-order-row.profile-order-row-cancelled img {
    width: 82px;
  }

  .customer-app .profile-order-summary {
    grid-area: summary;
    display: grid;
    min-width: 0;
    align-content: start;
    gap: 5px;
  }

  .customer-app .profile-order-heading {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .customer-app .profile-order-heading span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .customer-app .profile-order-heading em {
    flex: 0 0 auto;
  }

  .customer-app .profile-order-summary > strong {
    display: -webkit-box;
    min-width: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.35;
  }

  .customer-app .profile-order-summary small {
    display: -webkit-box;
    min-width: 0;
    overflow: hidden;
    overflow-wrap: anywhere;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.45;
  }

  .customer-app .profile-order-countdown,
  .customer-app .profile-order-cancel-reason {
    width: auto;
    max-width: 100%;
    line-height: 1.45;
  }

  .customer-app .profile-order-aside {
    grid-row: 2;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
    padding-top: 2px;
    gap: 8px;
  }

  .customer-app .profile-order-aside:has([data-delete-order]) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .customer-app .profile-order-aside > strong {
    grid-column: 1 / -1;
    justify-self: start;
    font-size: 22px;
  }

  .customer-app .profile-order-aside .mini-button {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding-inline: 8px;
    font-size: 13px;
  }

  .customer-app .profile-order-aside .mini-button:only-of-type {
    grid-column: 1 / -1;
  }

  .customer-app .profile-order-manage {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-width: 0;
    padding: 10px 12px;
    gap: 8px;
  }

  .customer-app .profile-order-manage[hidden] {
    display: none;
  }

  .customer-app .profile-order-manage label {
    min-height: 44px;
  }

  .customer-app .profile-order-manage > span {
    align-self: center;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .customer-app .profile-order-manage .mini-button {
    min-width: 92px;
    min-height: 44px;
    padding-inline: 10px;
  }

  .customer-app .profile-order-pagination button {
    min-width: 76px;
    min-height: 44px;
  }
}

/* Keep every order status label readable while the rail scrolls on touch. */
@media (max-width: 820px) {
  .customer-app .profile-order-tabs button {
    min-width: max-content;
  }

  .customer-app .profile-order-aside .mini-button,
  .customer-app .profile-order-manage .mini-button,
  .customer-app .profile-order-pagination button {
    min-height: 44px;
  }

  .customer-app .order-detail-status {
    overflow-x: auto;
  }
}

@media (max-width: 380px) {
  .customer-app .profile-order-row.profile-order-row-cancelled,
  .customer-app .profile-order-row:has(.profile-order-select) {
    grid-template-columns: 28px 72px minmax(0, 1fr);
    column-gap: 8px;
    padding-inline: 10px;
  }

  .customer-app .profile-order-row.profile-order-row-cancelled .profile-order-thumb,
  .customer-app .profile-order-row.profile-order-row-cancelled img {
    width: 72px;
    height: 66px;
  }

  .customer-app .profile-order-aside .mini-button {
    padding-inline: 4px;
    font-size: 12px;
  }
}

/* Mobile product scale stepper: visible without relying on pinch gestures. */
.customer-app .canvas-rail-icon small {
  display: none;
}

@media (max-width: 820px) {
  .customer-app .canvas-shell {
    padding: 8px;
  }

  .customer-app .canvas-command-rail {
    top: 50%;
    right: 10px;
    bottom: auto;
    left: auto;
    display: block;
    width: 62px;
    height: auto;
    overflow: visible;
    transform: translateY(-42%);
  }

  .customer-app .canvas-command-rail .quickbar {
    display: none;
  }

  .customer-app .canvas-rail-zoom {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "label"
      "plus"
      "range"
      "minus"
      "fit";
    width: 62px;
    min-width: 62px;
    min-height: 0;
    padding: 6px;
    gap: 5px;
    border-color: rgba(40, 215, 229, .34);
    background: rgba(6, 13, 14, .96);
  }

  .customer-app .canvas-rail-label {
    min-height: 30px;
    padding: 2px 0 4px;
    color: rgba(242, 245, 239, .78);
    line-height: 1.2;
    white-space: normal;
    text-align: center;
  }

  .customer-app .canvas-rail-icon,
  .customer-app .canvas-rail-fit {
    width: 100%;
    min-height: 44px;
    border-radius: 7px;
    touch-action: manipulation;
  }

  .customer-app .canvas-rail-icon {
    display: grid;
    grid-template-rows: 20px 12px;
    align-content: center;
    gap: 1px;
  }

  .customer-app .canvas-rail-icon span {
    color: var(--cyan);
    font-size: 22px;
    line-height: .8;
  }

  .customer-app .canvas-rail-icon small {
    display: block;
    color: rgba(242, 245, 239, .72);
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
  }

  .customer-app .canvas-rail-icon:active,
  .customer-app .canvas-rail-fit:active {
    transform: translateY(1px) scale(.98);
  }

  .customer-app .canvas-rail-icon:disabled {
    border-color: rgba(242, 245, 239, .08);
    opacity: .38;
  }

  .customer-app .canvas-command-rail .canvas-zoom-control {
    grid-area: range;
    display: grid;
    grid-template-columns: 1fr;
    min-height: 32px;
    place-items: center;
  }

  .customer-app .canvas-command-rail .canvas-zoom-control input {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    opacity: 0;
  }

  .customer-app .canvas-command-rail .canvas-zoom-control output {
    color: var(--green);
    font-size: 11px;
    font-weight: 900;
  }
}

@media (max-width: 380px) {
  .customer-app .canvas-command-rail {
    right: 8px;
    width: 58px;
  }

  .customer-app .canvas-rail-zoom {
    width: 58px;
    min-width: 58px;
  }
}

/* Mobile fit pass: keep catalog media and copy in separate, intrinsic rows.
   The old fixed grid row let the image's min-content height overlap the title. */
@media (max-width: 820px) {
  .customer-app .catalog-product-card {
    grid-template-rows: clamp(230px, 72vw, 300px) auto !important;
    min-height: 0;
  }

  .customer-app .catalog-product-image {
    height: 100%;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    box-sizing: border-box;
    overflow: hidden;
  }

  .customer-app .catalog-product-image img {
    min-width: 0;
    min-height: 0;
    object-fit: contain;
  }

  .customer-app .catalog-product-content {
    min-width: 0;
    min-height: 0;
    overflow: visible;
  }

  /* Keep both command rows in document flow. Fixed descendants covered the
     content-size controls and the product settings on short phone screens. */
  .customer-app .editor-shell .editor-mobile-dock {
    position: static !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 64px;
    margin: 10px 0 0 !important;
    border-radius: 12px;
    padding: 7px 8px;
  }

  .customer-app .editor-shell .editor-action-dock {
    position: static !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 70px;
    margin: 8px 0 0 !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    padding: 7px 8px max(7px, env(safe-area-inset-bottom));
    border-radius: 0;
  }

  .customer-app .editor-shell .editor-dock-summary,
  .customer-app .editor-shell .editor-action-dock #editorDockPreviewBtn {
    display: none !important;
  }

  .customer-app .editor-shell .editor-action-dock #editorDockCropBtn,
  .customer-app .editor-shell .editor-action-dock #editorDockSketchBtn,
  .customer-app .editor-shell .editor-action-dock #editorDockSaveBtn,
  .customer-app .editor-shell .editor-action-dock #editorDockOrderBtn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0 !important;
    min-height: 50px;
    padding-inline: 4px;
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .customer-app .editor-shell {
    padding-bottom: max(18px, env(safe-area-inset-bottom)) !important;
  }
}

/* Android WeChat treats the clipped canvas shell as a gesture boundary when
   overscroll containment is active. Let the document own one-finger vertical
   movement there, and keep navigation away from WeChat's top-left close UI. */
@media (max-width: 820px) {
  html.android-wechat-webview,
  html.android-wechat-webview body.customer-app {
    height: auto !important;
    min-height: 100%;
    overflow-y: auto !important;
    overscroll-behavior-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  html.android-wechat-webview .customer-app .editor-shell {
    height: auto !important;
    min-height: 100svh;
    padding-bottom: calc(84px + env(safe-area-inset-bottom)) !important;
    overflow: visible !important;
  }

  html.android-wechat-webview .customer-app .studio > .stage-panel {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: clip !important;
    overflow-y: visible !important;
    overscroll-behavior-y: auto !important;
    touch-action: pan-y;
  }

  html.android-wechat-webview .customer-app .canvas-shell {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    contain: none;
    overflow-x: auto !important;
    overflow-y: visible !important;
    overscroll-behavior-y: auto !important;
    touch-action: pan-y;
  }

  html.android-wechat-webview .customer-app #designCanvas {
    display: block;
    width: var(--canvas-display-size, 100%) !important;
    max-width: none !important;
    height: var(--canvas-display-size, auto) !important;
    aspect-ratio: 1;
    touch-action: pan-y !important;
  }

  html.android-wechat-webview .customer-app .editor-shell .top-actions {
    grid-template-columns: repeat(3, 44px) !important;
    justify-content: end;
  }

  html.android-wechat-webview .customer-app #backToCatalogBtn {
    display: inline-flex !important;
    position: fixed !important;
    right: auto !important;
    bottom: max(12px, calc(env(safe-area-inset-bottom) + 10px));
    left: max(12px, env(safe-area-inset-left));
    z-index: 930;
    width: 96px !important;
    min-width: 92px !important;
    max-width: 96px !important;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border-color: rgba(242, 245, 239, .28);
    color: #f2f5ef;
    background: rgba(7, 10, 10, .96);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .38);
    backdrop-filter: blur(14px);
  }
}

/* Manual WebGL preview switch: cyan marks a visual enhancement while acid
   green remains reserved for the active design/preview mode. */
.customer-app .stage-actions .webgl-toggle-button {
  min-width: 86px;
  border-color: rgba(40, 215, 229, 0.42);
  color: #dffcff;
  background: rgba(40, 215, 229, 0.1);
}

.customer-app .stage-actions .webgl-toggle-button:hover:not(:disabled) {
  border-color: rgba(40, 215, 229, 0.78);
  color: #ffffff;
  background: rgba(40, 215, 229, 0.18);
}

.customer-app .stage-actions .webgl-toggle-button[data-active="true"] {
  border-color: transparent;
  color: #050608;
  background: var(--cyan);
  box-shadow: 0 14px 32px rgba(40, 215, 229, 0.22);
}

.customer-app .stage-actions .webgl-toggle-button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

@media (max-width: 820px) {
  .customer-app .stage-header {
    grid-template-columns: minmax(0, 1fr) min(224px, 44vw);
  }

  .customer-app .stage-actions {
    grid-template-columns: repeat(3, minmax(54px, 1fr));
    width: min(100%, 224px);
    max-width: 224px;
  }

  .customer-app .stage-actions .webgl-toggle-button {
    min-width: 0;
  }
}

@media (max-width: 430px) {
  .customer-app .stage-header {
    grid-template-columns: minmax(0, 1fr) 184px;
  }

  .customer-app .stage-actions {
    width: 184px;
    max-width: 184px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .customer-app .stage-actions .mode-button {
    padding-inline: 4px;
    font-size: 11px;
  }
}

@media (max-width: 360px) {
  .customer-app .stage-header {
    grid-template-columns: minmax(0, 1fr);
  }

  .customer-app .stage-actions {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    max-width: none;
  }

  .customer-app .print-area-toolbar {
    grid-row: 3;
  }
}

/* WebGL tuning stays compact and subordinate to the design controls. */
.customer-app .webgl-tuning-panel {
  display: grid;
  grid-template-columns: minmax(190px, .8fr) minmax(210px, 1fr) minmax(210px, 1fr) auto;
  align-items: center;
  gap: 12px 18px;
  margin: 10px 0 8px;
  padding: 12px 14px;
  border: 1px solid rgba(40, 215, 229, .24);
  border-radius: 14px;
  color: #f4fbfb;
  background:
    linear-gradient(110deg, rgba(40, 215, 229, .10), transparent 34%),
    rgba(8, 12, 15, .88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045);
}

.customer-app .webgl-tuning-panel[hidden] {
  display: none !important;
}

.customer-app .webgl-tuning-intro {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.customer-app .webgl-tuning-signal {
  position: relative;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 1px solid rgba(40, 215, 229, .45);
  border-radius: 50%;
  background: radial-gradient(circle, var(--cyan) 0 18%, rgba(40, 215, 229, .18) 20% 48%, transparent 50%);
  box-shadow: 0 0 18px rgba(40, 215, 229, .17);
}

.customer-app .webgl-tuning-signal::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 50%;
}

.customer-app .webgl-tuning-intro strong,
.customer-app .webgl-tuning-intro small {
  display: block;
}

.customer-app .webgl-tuning-intro strong {
  font-size: 12px;
  letter-spacing: .04em;
}

.customer-app .webgl-tuning-intro small {
  margin-top: 2px;
  overflow: hidden;
  color: rgba(226, 239, 239, .6);
  font-size: 10px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-app .webgl-tuning-control {
  display: grid;
  grid-template-columns: auto minmax(70px, 1fr) 42px;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: rgba(241, 250, 250, .78);
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.customer-app .webgl-tuning-control input[type="range"] {
  width: 100%;
  min-width: 70px;
  height: 4px;
  margin: 0;
  accent-color: var(--cyan);
  cursor: ew-resize;
}

.customer-app .webgl-tuning-control output {
  color: var(--cyan);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.customer-app .webgl-tuning-reset {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 9px;
  color: rgba(244, 251, 251, .82);
  background: rgba(255, 255, 255, .05);
  font: inherit;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

.customer-app .webgl-tuning-reset:hover {
  border-color: rgba(40, 215, 229, .5);
  color: #fff;
  background: rgba(40, 215, 229, .10);
}

@media (max-width: 980px) {
  .customer-app .webgl-tuning-panel {
    grid-template-columns: minmax(170px, .7fr) repeat(2, minmax(180px, 1fr));
  }

  .customer-app .webgl-tuning-reset {
    grid-column: 3;
    justify-self: end;
  }
}

@media (max-width: 700px) {
  .customer-app .webgl-tuning-panel {
    grid-template-columns: 1fr auto;
    gap: 10px 12px;
    margin-inline: 2px;
  }

  .customer-app .webgl-tuning-intro {
    grid-column: 1;
  }

  .customer-app .webgl-tuning-reset {
    grid-column: 2;
    grid-row: 1;
  }

  .customer-app .webgl-tuning-control {
    grid-column: 1 / -1;
    grid-template-columns: 64px minmax(100px, 1fr) 42px;
  }
}

@media (max-width: 380px) {
  .customer-app .webgl-tuning-panel {
    padding: 11px;
  }

  .customer-app .webgl-tuning-intro small {
    max-width: 190px;
  }

  .customer-app .webgl-tuning-control {
    grid-template-columns: 60px minmax(72px, 1fr) 38px;
    gap: 7px;
  }
}

/* Checkout readability takes precedence over the shared compact row rules. */
.customer-app #checkoutModal .summary-row { min-height: 34px; font-size: 14px; }
.customer-app #checkoutModal .checkout-item-row > div { align-content: start; gap: 6px; }
.customer-app #checkoutModal .checkout-item-row > div > strong,
.customer-app #checkoutModal .checkout-item-row > div > span { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.5; }
.customer-app #checkoutModal .checkout-item-row > div > span { font-size: 13px; }
.customer-app #checkoutModal .checkout-item-row > :last-child { align-self: start; white-space: nowrap; font-size: 15px; }
.customer-app #checkoutModal .checkout-item-row { grid-template-columns: 76px minmax(0, 1fr) auto; min-height: 112px; }
.customer-app #checkoutModal .checkout-item-row > img { width: 76px; height: 76px; min-height: 76px; object-fit: contain; background: #f2f4ef; }
.customer-app #checkoutModal .checkout-print-size-suggestions { display: grid; gap: 8px; }
.customer-app #checkoutModal .checkout-print-size-suggestions-head { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.customer-app #checkoutModal .checkout-print-size-suggestions-head > div { display: grid; gap: 3px; }
.customer-app #checkoutModal .checkout-print-size-suggestions-head strong { color: var(--soft); font-size: 13px; }
.customer-app #checkoutModal .checkout-print-size-suggestions-head span,
.customer-app #checkoutModal .checkout-print-size-empty { color: var(--muted); font-size: 11px; line-height: 1.4; }
.customer-app #checkoutModal .checkout-print-size-list { display: grid; gap: 7px; }
.customer-app #checkoutModal .checkout-print-size-row { display: grid; grid-template-columns: minmax(108px, 1.05fr) minmax(0, 1fr) auto minmax(0, 1fr) auto; align-items: end; gap: 7px; }
.customer-app #checkoutModal .checkout-print-size-row label { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 5px; min-width: 0; color: var(--muted); font-size: 11px; }
.customer-app #checkoutModal .checkout-print-size-row input { width: 100%; min-width: 0; min-height: 38px; font-size: 16px; }
.customer-app #checkoutModal .checkout-print-size-row select { width: 100%; min-width: 0; min-height: 38px; padding: 0 8px; color: var(--soft); background: rgba(5, 8, 9, 0.72); font-size: 14px; }
.customer-app #checkoutModal .checkout-print-size-times { padding-bottom: 10px; color: var(--cyan); font-size: 16px; font-weight: 800; }
.customer-app #checkoutModal .checkout-print-size-row .mini-button { min-height: 38px; padding: 0 8px; white-space: nowrap; }
@media (min-width: 821px) {
  .customer-app #checkoutModal .checkout-dialog > .order-summary { max-height: min(52vh, 520px); font-size: 14px; }
}
@media (max-width: 520px) {
  .customer-app #checkoutModal .checkout-item-row { grid-template-columns: 68px minmax(0, 1fr) auto; min-height: 92px; }
  .customer-app #checkoutModal .checkout-item-row > img { width: 68px; height: 68px; min-height: 68px; }
  .customer-app #checkoutModal .checkout-print-size-position { grid-column: 1 / -1; }
  .customer-app #checkoutModal .checkout-print-size-row { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .customer-app #checkoutModal .checkout-print-size-row .mini-button { grid-column: 1 / -1; justify-self: end; min-height: 34px; }
}

/* Checkout refinement: the consent copy is compact until the customer asks for details. */
.customer-app #checkoutModal .checkout-refund-notice {
  gap: 10px;
  min-height: 122px;
  padding: 16px 18px;
  border-left: 2px solid #ff5a5f;
  color: rgba(247, 247, 239, 0.76);
  background: rgba(255, 90, 95, 0.09);
  font-size: 13px;
  line-height: 1.65;
}

.customer-app #checkoutModal .checkout-refund-details {
  min-width: 0;
}

.customer-app #checkoutModal .checkout-refund-details summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  cursor: pointer;
  list-style: none;
}

.customer-app #checkoutModal .checkout-refund-details summary::-webkit-details-marker { display: none; }
.customer-app #checkoutModal .checkout-refund-details summary::before { content: "+"; color: #ff7b80; font-size: 20px; font-weight: 900; }
.customer-app #checkoutModal .checkout-refund-details[open] summary::before { content: "-"; }
.customer-app #checkoutModal .checkout-refund-details summary strong { color: #ffb5b8; font-size: 16px; }
.customer-app #checkoutModal .checkout-refund-details summary span { min-width: 0; color: rgba(247, 247, 239, 0.66); font-size: 12px; }
.customer-app #checkoutModal .checkout-refund-details summary em { margin-left: auto; color: #ff858a; font-size: 12px; font-style: normal; white-space: nowrap; }
.customer-app #checkoutModal .checkout-refund-brief { margin: 6px 0 0 30px; color: rgba(255, 181, 184, 0.78); font-size: 13px; line-height: 1.55; }
.customer-app #checkoutModal .checkout-refund-copy { max-height: min(28vh, 260px); margin: 8px 0 2px 30px; overflow-y: auto; color: rgba(247, 247, 239, 0.8); }
.customer-app #checkoutModal .checkout-refund-notice > label { display: flex; align-items: flex-start; gap: 9px; padding-top: 9px; border-top: 1px solid rgba(255, 90, 95, 0.2); color: var(--soft); font-size: 14px; line-height: 1.45; }
.customer-app #checkoutModal .checkout-refund-notice > label input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px; }

/* The size name must remain visible even when a select is narrow on mobile. */
.customer-app #toolOrder .order-size-row { grid-template-columns: minmax(110px, 1fr) minmax(76px, 88px) 42px !important; align-items: end; }
.customer-app #toolOrder .order-size-row label { display: grid; gap: 4px; min-width: 0; color: var(--muted); font-size: 11px; font-weight: 750; }
.customer-app #toolOrder .order-size-row select,
.customer-app #toolOrder .order-size-row input { width: 100% !important; min-width: 0 !important; min-height: 42px !important; box-sizing: border-box; color: var(--soft) !important; background: rgba(1, 5, 6, 0.9) !important; font-size: 16px !important; }
.customer-app #toolOrder .order-size-row .mini-button { width: 42px !important; min-width: 42px !important; height: 42px !important; }

@media (min-width: 821px) {
  .customer-app #checkoutModal .checkout-dialog > .order-summary { max-height: min(64vh, 680px); }
  .customer-app #checkoutModal .checkout-item-list { max-height: min(48vh, 500px); }
}

@media (max-width: 520px) {
  .customer-app #checkoutModal .checkout-refund-notice { min-height: 112px; padding: 13px 12px; }
  .customer-app #checkoutModal .checkout-refund-details summary { align-items: flex-start; }
  .customer-app #checkoutModal .checkout-refund-details summary strong { font-size: 15px; }
  .customer-app #checkoutModal .checkout-refund-details summary span { display: none; }
  .customer-app #checkoutModal .checkout-refund-brief { margin-left: 28px; font-size: 12px; }
  .customer-app #checkoutModal .checkout-refund-copy { margin-left: 28px; max-height: 220px; }
  .customer-app #toolOrder .order-size-row { grid-template-columns: minmax(96px, 1fr) minmax(68px, 76px) 42px !important; }
}

/* Checkout UX final pass: stable information hierarchy and predictable
   responsive behavior. Keep this block last so older editor experiments do
   not collapse the order and payment surfaces. */
.customer-app #checkoutModal .checkout-dialog {
  display: grid !important;
  grid-template-columns: minmax(320px, .92fr) minmax(380px, 1.08fr) !important;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto !important;
  align-content: start;
  gap: 14px 16px !important;
  width: min(1160px, calc(100vw - 32px)) !important;
  height: min(900px, 92dvh) !important;
  max-height: min(900px, 92dvh) !important;
  padding: 20px !important;
  overflow: hidden !important;
  background: #080c0d;
}

.customer-app #checkoutModal .checkout-dialog > .section-title-row {
  grid-column: 1 / -1 !important;
  grid-row: 1 !important;
  min-height: 42px;
  margin: 0 !important;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(242, 245, 239, .12);
}

.customer-app #checkoutModal .checkout-dialog > .section-title-row h2 {
  margin: 0;
  color: var(--soft);
  font-size: 20px;
}

.customer-app #checkoutModal .checkout-preview-panel {
  grid-column: 1 !important;
  grid-row: 2 / span 4 !important;
  align-self: stretch;
  min-height: 0;
  max-height: none !important;
  padding: 16px;
  border-color: rgba(40, 215, 229, .24);
  background: linear-gradient(145deg, rgba(40, 215, 229, .08), rgba(255, 255, 255, .025) 48%, rgba(7, 10, 11, .84));
}

.customer-app #checkoutModal .checkout-preview-gallery {
  min-height: 0;
  max-height: min(690px, calc(92dvh - 190px));
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.customer-app #checkoutModal .checkout-preview-card {
  border-color: rgba(242, 245, 239, .14);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}

.customer-app #checkoutModal .checkout-preview-card figcaption span {
  overflow: visible;
  white-space: normal;
  line-height: 1.45;
}

.customer-app #checkoutModal .checkout-dialog > .order-summary {
  grid-column: 2 !important;
  grid-row: 2 !important;
  min-height: 0;
  max-height: none !important;
  margin: 0 !important;
  padding: 15px 16px 12px;
  border: 1px solid rgba(242, 245, 239, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
  overflow-y: auto !important;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.customer-app #checkoutModal .checkout-summary-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(242, 245, 239, .12);
}

.customer-app #checkoutModal .checkout-summary-heading > div {
  display: grid;
  gap: 3px;
}

.customer-app #checkoutModal .checkout-summary-heading span {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
}

.customer-app #checkoutModal .checkout-summary-heading strong {
  color: var(--soft);
  font-size: 16px;
}

.customer-app #checkoutModal .checkout-summary-heading small {
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.customer-app #checkoutModal .checkout-item-list {
  max-height: none !important;
  padding: 4px 0;
}

.customer-app #checkoutModal .checkout-item-row {
  grid-template-columns: 76px minmax(0, 1fr) auto !important;
  min-height: 96px;
  padding: 10px;
  border-color: rgba(242, 245, 239, .12);
  background: rgba(5, 8, 9, .45);
}

.customer-app #checkoutModal .checkout-item-row > img {
  width: 76px;
  height: 76px;
  min-height: 76px;
  border-radius: 6px;
}

.customer-app #checkoutModal .checkout-item-row > div > strong {
  color: var(--soft);
  font-size: 14px;
}

.customer-app #checkoutModal .checkout-item-row .checkout-item-meta {
  color: rgba(242, 245, 239, .78);
  font-size: 12px;
}

.customer-app #checkoutModal .checkout-dialog > .checkout-address-panel {
  grid-column: 2 !important;
  grid-row: 3 !important;
  min-height: 0;
  max-height: 300px;
  margin: 0 !important;
  padding: 14px 16px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.customer-app #checkoutModal .checkout-dialog > .checkout-refund-notice {
  grid-column: 2 !important;
  grid-row: 4 !important;
  min-height: 0;
  margin: 0 !important;
  padding: 13px 16px;
}

.customer-app #checkoutModal .checkout-refund-details summary {
  flex-wrap: wrap;
}

.customer-app #checkoutModal .checkout-refund-details summary em {
  margin-left: auto;
}

.customer-app #checkoutModal .checkout-payment-dock {
  grid-column: 2 !important;
  grid-row: 5 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(190px, .7fr) !important;
  align-items: end !important;
  gap: 12px;
  min-width: 0;
  margin: 0 !important;
  padding: 14px 0 0;
  border-top: 1px solid rgba(242, 245, 239, .12);
}

.customer-app #checkoutModal .checkout-payment-method {
  min-width: 0;
}

.customer-app #checkoutModal .checkout-payment-method select {
  width: 100%;
  min-height: 46px;
}

.customer-app #checkoutModal .checkout-payment-method small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.customer-app #checkoutModal .checkout-payment-dock #payBtn {
  width: 100% !important;
  min-height: 52px;
  margin: 0 !important;
}

.customer-app #checkoutModal #payBtn[aria-disabled="true"] {
  color: rgba(8, 12, 13, .64);
  background: rgba(184, 255, 61, .45);
  box-shadow: none;
}

.customer-app #toolOrder .order-size-editor {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(242, 245, 239, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .025);
}

.customer-app #toolOrder .order-size-editor-head {
  min-height: 34px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(242, 245, 239, .1);
}

.customer-app #toolOrder .order-size-editor-head > span {
  color: var(--soft);
  font-size: 12px;
  font-weight: 800;
}

.customer-app #toolOrder .order-size-row {
  grid-template-columns: minmax(0, 1fr) minmax(78px, 90px) 42px !important;
  gap: 10px !important;
  padding: 5px 0;
}

.customer-app #toolOrder .order-size-row label {
  gap: 5px;
}

.customer-app #toolOrder .order-size-row label > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.customer-app #toolOrder .order-size-row select,
.customer-app #toolOrder .order-size-row input {
  min-height: 44px !important;
}

@media (max-width: 1100px) and (min-width: 821px) {
  .customer-app #checkoutModal .checkout-dialog {
    grid-template-columns: minmax(280px, .8fr) minmax(340px, 1.2fr) !important;
    width: min(1000px, calc(100vw - 24px)) !important;
    padding: 16px !important;
  }

  .customer-app #checkoutModal .checkout-payment-dock {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .customer-app #checkoutModal .checkout-dialog {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scroll-padding-bottom: 150px;
  }

  .customer-app #checkoutModal .checkout-dialog > * {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  .customer-app #checkoutModal .checkout-dialog > .section-title-row {
    position: sticky !important;
    top: calc(-1 * max(12px, env(safe-area-inset-top))) !important;
    z-index: 40 !important;
    width: auto !important;
    margin: calc(-1 * max(12px, env(safe-area-inset-top))) -12px 0 !important;
    padding: max(12px, env(safe-area-inset-top)) 12px 10px !important;
    background: rgba(8, 12, 13, .98) !important;
  }

  .customer-app #checkoutModal .checkout-preview-panel {
    order: 1 !important;
    padding: 13px !important;
    overflow: visible !important;
  }

  .customer-app #checkoutModal .checkout-preview-gallery {
    display: grid !important;
    grid-auto-flow: column !important;
    grid-auto-columns: minmax(150px, 44vw) !important;
    grid-template-columns: none !important;
    max-height: none !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding-bottom: 3px;
  }

  .customer-app #checkoutModal .checkout-dialog > .order-summary {
    order: 2 !important;
    max-height: none !important;
    padding: 13px;
    overflow: visible !important;
  }

  .customer-app #checkoutModal .checkout-dialog > .checkout-address-panel {
    order: 3 !important;
    max-height: none;
    overflow: visible;
  }

  .customer-app #checkoutModal .checkout-dialog > .checkout-refund-notice {
    order: 4 !important;
  }

  .customer-app #checkoutModal .checkout-payment-dock {
    position: sticky !important;
    bottom: 0 !important;
    order: 5 !important;
    grid-template-columns: 1fr !important;
    width: auto !important;
    margin: auto -12px calc(-1 * max(12px, env(safe-area-inset-bottom))) !important;
    padding: 10px 12px max(10px, env(safe-area-inset-bottom)) !important;
    border-top: 1px solid rgba(40, 215, 229, .32);
    background: rgba(8, 12, 13, .98);
    box-shadow: 0 -18px 42px rgba(0, 0, 0, .58);
  }

  .customer-app #checkoutModal .checkout-payment-method small {
    display: none;
  }

  .customer-app #checkoutModal .checkout-payment-method {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
  }

  .customer-app #checkoutModal .checkout-payment-method > span {
    white-space: nowrap;
    font-size: 11px;
  }

  .customer-app #checkoutModal .checkout-item-row {
    grid-template-columns: 64px minmax(0, 1fr) auto !important;
    min-height: 86px;
    gap: 9px;
  }

  .customer-app #checkoutModal .checkout-item-row > img {
    width: 64px;
    height: 64px;
    min-height: 64px;
  }

  .customer-app #checkoutModal .checkout-summary-heading small {
    display: none;
  }
}

@media (max-width: 520px) {
  .customer-app #checkoutModal .checkout-item-row {
    grid-template-columns: 56px minmax(0, 1fr) auto !important;
    padding: 8px;
  }

  .customer-app #checkoutModal .checkout-item-row > img {
    width: 56px;
    height: 56px;
    min-height: 56px;
  }

  .customer-app #checkoutModal .checkout-item-row > :last-child {
    font-size: 14px;
  }

  .customer-app #checkoutModal .checkout-refund-notice {
    padding: 12px;
  }

  .customer-app #checkoutModal .checkout-refund-details summary strong {
    font-size: 15px;
  }

  .customer-app #toolOrder .order-size-row {
    grid-template-columns: minmax(0, 1fr) minmax(72px, 82px) 42px !important;
  }
}

/* Order size controls: keep the select visible and the remove action compact.
   The shared customer button treatment is pill-shaped, but a row-level
   remove control is a utility action and must retain a stable square target. */
.customer-app #toolOrder .order-size-editor,
.customer-app #toolOrder .order-size-row,
.customer-app #toolOrder .order-size-choice,
.customer-app #toolOrder .order-size-quantity {
  min-width: 0 !important;
  width: 100% !important;
}

.customer-app #toolOrder .order-size-choice,
.customer-app #toolOrder .order-size-quantity {
  display: grid !important;
  grid-template-rows: auto 44px !important;
  align-items: stretch !important;
  gap: 5px !important;
}

.customer-app #toolOrder .order-size-editor {
  overflow: visible !important;
}

.customer-app #toolOrder .order-size-editor-head > span {
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}

.customer-app #toolOrder .order-size-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(72px, 82px) 36px !important;
  align-items: end !important;
  gap: 8px !important;
  overflow: visible !important;
}

.customer-app #toolOrder .order-size-choice > span,
.customer-app #toolOrder .order-size-quantity > span {
  display: block;
  min-width: 0;
  overflow: visible;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
}

.customer-app #toolOrder .order-size-choice select,
.customer-app #toolOrder .order-size-quantity input {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 44px !important;
  min-height: 44px !important;
  box-sizing: border-box !important;
  padding: 0 10px !important;
  overflow: visible !important;
  color: var(--soft) !important;
  background: rgba(1, 5, 6, .9) !important;
  border: 1px solid rgba(242, 245, 239, .2) !important;
  border-radius: 6px !important;
  font-size: 16px !important;
  line-height: 44px !important;
  text-align: left;
}

.customer-app #toolOrder .order-size-choice select {
  appearance: auto;
  -webkit-appearance: auto;
}

.customer-app #toolOrder .order-size-row > .mini-button,
.customer-app #toolOrder .order-size-row .mini-button.danger,
.customer-app #toolOrder .order-size-row .order-size-remove {
  display: grid !important;
  place-items: center !important;
  width: 36px !important;
  min-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  margin: 0 0 4px !important;
  padding: 0 !important;
  border-radius: 6px !important;
  color: rgba(247, 247, 239, .84) !important;
  font-size: 18px !important;
  line-height: 1 !important;
}

@media (max-width: 380px) {
  .customer-app #toolOrder .order-size-row {
    grid-template-columns: minmax(0, 1fr) minmax(68px, 76px) 34px !important;
    gap: 6px !important;
  }

  .customer-app #toolOrder .order-size-row > .mini-button,
  .customer-app #toolOrder .order-size-row .mini-button.danger,
.customer-app #toolOrder .order-size-row .order-size-remove {
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
  }
}

/* Final checkout summary authority. */
.customer-app #checkoutModal .checkout-summary-overview { display: grid; gap: 0; margin-top: 4px; border-top: 1px solid rgba(242, 245, 239, .08); }
.customer-app #checkoutModal .checkout-summary-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 11px 0 9px; border-top: 1px solid rgba(242, 245, 239, .12); border-bottom: 1px solid rgba(242, 245, 239, .08); }
.customer-app #checkoutModal .checkout-summary-section-head strong { color: var(--soft); font-size: 14px; }
.customer-app #checkoutModal .checkout-summary-section-head span { color: var(--muted); font-size: 11px; text-align: right; }
.customer-app #checkoutModal .checkout-item-size-readout { display: flex; align-items: baseline; gap: 8px; padding: 6px 8px; border: 1px solid rgba(40, 215, 229, .2); border-radius: 6px; background: rgba(40, 215, 229, .06); }
.customer-app #checkoutModal .checkout-item-size-readout span { color: var(--muted); font-size: 11px; }
.customer-app #checkoutModal .checkout-item-size-readout strong { color: var(--cyan); font-size: 13px; }
.customer-app #checkoutModal .checkout-item-fee-line { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-top: 2px; }
.customer-app #checkoutModal .checkout-item-fee-line > span { min-width: 0; color: var(--muted); font-size: 11px; }
.customer-app #checkoutModal .checkout-item-fee-line > strong { flex: 0 0 auto; color: var(--soft); font-size: 13px; white-space: nowrap; }

@media (min-width: 821px) {
  .customer-app #checkoutModal .checkout-dialog { grid-template-rows: auto minmax(460px, max-content) auto auto auto !important; height: auto !important; max-height: min(900px, 92dvh) !important; overflow-y: auto !important; }
  .customer-app #checkoutModal .checkout-dialog > .order-summary { max-height: none !important; overflow: visible !important; }
  .customer-app #checkoutModal .checkout-item-list { max-height: none !important; overflow: visible !important; }
  .customer-app #checkoutModal .checkout-item-row { min-height: 128px; }
}

@media (max-width: 820px) {
  .customer-app #checkoutModal .checkout-summary-section-head { align-items: flex-start; flex-direction: column; gap: 3px; }
  .customer-app #checkoutModal .checkout-summary-section-head span { text-align: left; }
  .customer-app #checkoutModal .checkout-item-fee-line { align-items: flex-start; flex-direction: column; gap: 2px; }
}

/* Checkout overflow guard: the summary owns scrolling on desktop, while each
   item row grows with its size and print-detail controls. On mobile the modal
   remains the single scroll surface so nested panels do not hide the totals. */
.customer-app #checkoutModal .checkout-summary-heading,
.customer-app #checkoutModal .checkout-summary-overview,
.customer-app #checkoutModal .checkout-summary-section-head,
.customer-app #checkoutModal .checkout-item-list,
.customer-app #checkoutModal .summary-row {
  flex: 0 0 auto !important;
}

@media (min-width: 821px) {
  .customer-app #checkoutModal .checkout-dialog {
    grid-template-rows: auto minmax(420px, 1fr) auto auto auto !important;
    height: min(900px, 92dvh) !important;
    max-height: min(900px, 92dvh) !important;
    overflow: hidden !important;
  }

  .customer-app #checkoutModal .checkout-dialog > .order-summary {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    min-width: 0 !important;
    min-height: 420px !important;
    max-height: min(560px, max(420px, calc(92dvh - 170px))) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  .customer-app #checkoutModal .checkout-item-list {
    flex: 0 0 auto !important;
    min-height: max-content !important;
    max-height: none !important;
    grid-auto-rows: max-content !important;
    overflow: visible !important;
  }

  .customer-app #checkoutModal .checkout-item-row {
    height: auto !important;
    min-height: max-content !important;
    align-items: start !important;
    grid-template-columns: 76px minmax(0, 1fr) auto !important;
  }

  .customer-app #checkoutModal .checkout-item-row > img {
    align-self: start !important;
  }

  .customer-app #checkoutModal .checkout-item-row > div {
    min-width: 0 !important;
    min-height: 0 !important;
    overflow: visible !important;
  }
}

@media (max-width: 820px) {
  .customer-app #checkoutModal .checkout-dialog > .order-summary {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .customer-app #checkoutModal .checkout-item-list {
    min-height: 0 !important;
    max-height: none !important;
    grid-auto-rows: max-content !important;
    overflow: visible !important;
  }

  .customer-app #checkoutModal .checkout-item-row {
    height: auto !important;
    min-height: max-content !important;
    align-items: start !important;
  }

  .customer-app #checkoutModal .checkout-item-row > img {
    align-self: start !important;
  }

  .customer-app #checkoutModal .checkout-item-row > div {
    min-width: 0 !important;
    min-height: 0 !important;
    overflow: visible !important;
  }
}

/* Final checkout flow guard: lower confirmation sections must occupy their
   own grid tracks instead of collapsing into the payment row. */
.customer-app #checkoutModal .checkout-refund-notice {
  min-height: 122px !important;
  height: auto !important;
  align-self: start !important;
  overflow: visible !important;
}

.customer-app #checkoutModal .checkout-address-panel {
  min-height: max-content !important;
  height: auto !important;
  align-self: start !important;
}

.customer-app #checkoutModal .checkout-refund-details summary > span {
  flex: 1 1 180px;
  min-width: 0;
}

.customer-app #checkoutModal .checkout-refund-details summary > em {
  flex: 0 0 auto;
}

.customer-app #checkoutModal .checkout-print-size-row [data-remove-print-size] {
  display: grid !important;
  place-items: center !important;
  width: 42px !important;
  min-width: 42px !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 6px !important;
  font-size: 0 !important;
  line-height: 1 !important;
  white-space: normal !important;
}

.customer-app #checkoutModal .checkout-print-size-row [data-remove-print-size]::before {
  content: "×";
  color: currentColor;
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
}

@media (min-width: 821px) {
  .customer-app #checkoutModal.open .checkout-dialog,
  .customer-app #checkoutModal[aria-hidden="false"] .checkout-dialog {
    grid-template-rows: auto minmax(420px, max-content) 240px max-content max-content !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: min(900px, 92dvh) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  .customer-app #checkoutModal .checkout-dialog > .checkout-address-panel {
    height: 240px !important;
    min-height: 240px !important;
    max-height: 300px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  .customer-app #checkoutModal .checkout-dialog > .checkout-refund-notice {
    min-height: 122px !important;
  }

  .customer-app #checkoutModal .checkout-payment-dock {
    min-height: 126px !important;
    align-self: start !important;
  }
}

@media (max-width: 820px) {
  .customer-app #checkoutModal .checkout-payment-dock {
    min-height: 126px !important;
  }
}

/* Editor global actions: history stays attached to the canvas workspace while
   navigation and draft persistence remain reachable at every zoom level. */
.customer-app .canvas-workspace {
  position: relative;
  width: 100%;
  min-width: 0;
  isolation: isolate;
}

.customer-app .canvas-workspace > .canvas-shell {
  width: 100%;
  min-width: 0;
}

.customer-app .canvas-history-controls {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 46;
  display: grid;
  grid-auto-flow: column;
  gap: 5px;
  padding: 4px;
  border: 1px solid rgba(242, 245, 239, .16);
  border-radius: 8px;
  background: rgba(7, 10, 10, .94);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .36);
}

.customer-app .canvas-history-button {
  display: grid;
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(242, 245, 239, .16);
  border-radius: 6px;
  color: #f2f5ef;
  background: rgba(255, 255, 255, .055);
  cursor: pointer;
  touch-action: manipulation;
}

.customer-app .canvas-history-button:hover:not(:disabled) {
  border-color: rgba(40, 215, 229, .72);
  color: #dffcff;
  background: rgba(40, 215, 229, .13);
}

.customer-app .canvas-history-button:focus-visible,
.customer-app .editor-home-button:focus-visible,
.customer-app #saveDraftBtn:focus-visible,
.customer-app #editorTopMoreBtn:focus-visible {
  outline: 2px solid #b8ff3d;
  outline-offset: 2px;
}

.customer-app .canvas-history-button:disabled {
  opacity: .34;
  cursor: not-allowed;
}

.customer-app .editor-history-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
}

.customer-app .editor-history-icon::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  transform: rotate(-38deg);
}

.customer-app .editor-history-icon::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
}

.customer-app .editor-history-icon-redo {
  transform: scaleX(-1);
}

.customer-app .editor-center-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
}

.customer-app .editor-center-icon::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.customer-app .editor-center-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  clip-path: polygon(44% 0, 56% 0, 56% 44%, 100% 44%, 100% 56%, 56% 56%, 56% 100%, 44% 100%, 44% 56%, 0 56%, 0 44%, 44% 44%);
}

.customer-app .editor-back-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.customer-app .editor-back-icon::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 1px;
  width: 7px;
  height: 7px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(45deg);
}

.customer-app .editor-back-icon::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 3px;
  width: 13px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}

.customer-app #draftStatus[data-state="dirty"],
.customer-app #editorDockStatus[data-state="dirty"] {
  color: #ffd1c8;
  border-color: rgba(255, 104, 75, .46);
  background: rgba(255, 104, 75, .12);
}

.customer-app #draftStatus[data-state="saving"],
.customer-app #editorDockStatus[data-state="saving"] {
  color: #dffcff;
  border-color: rgba(40, 215, 229, .5);
  background: rgba(40, 215, 229, .12);
}

.customer-app #draftStatus[data-state="saved"],
.customer-app #editorDockStatus[data-state="saved"] {
  color: #dfffb0;
  border-color: rgba(184, 255, 61, .44);
  background: rgba(184, 255, 61, .1);
}

.customer-app #draftStatus[data-state="error"],
.customer-app #editorDockStatus[data-state="error"] {
  color: #ffd1c8;
  border-color: rgba(255, 104, 75, .72);
  background: rgba(255, 104, 75, .18);
}

@media (max-width: 820px) {
  .customer-app .editor-shell {
    padding-top: calc(64px + env(safe-area-inset-top)) !important;
  }

  .customer-app .editor-shell > .topbar {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    z-index: 960 !important;
    display: block !important;
    box-sizing: border-box;
    width: 100% !important;
    min-height: calc(58px + env(safe-area-inset-top)) !important;
    padding: max(7px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) 7px max(8px, env(safe-area-inset-left)) !important;
    overflow: visible !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(242, 245, 239, .13) !important;
    border-radius: 0 !important;
    background: rgba(7, 10, 10, .98) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .34) !important;
    backdrop-filter: none !important;
  }

  .customer-app .editor-shell > .topbar .brand {
    display: none !important;
  }

  .customer-app .editor-shell .top-actions,
  html.android-wechat-webview .customer-app .editor-shell .top-actions {
    display: grid !important;
    grid-template-columns: 44px minmax(64px, 1fr) minmax(84px, 96px) 44px !important;
    grid-auto-flow: row !important;
    align-items: center !important;
    gap: 6px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .customer-app .editor-shell .top-actions > #backToCatalogBtn,
  .customer-app .editor-shell .top-actions > #draftStatus,
  .customer-app .editor-shell .top-actions > #saveDraftBtn,
  .customer-app .editor-shell .top-actions > #editorTopMoreBtn {
    display: grid !important;
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
    place-items: center;
  }

  .customer-app .editor-shell .top-actions > #backToCatalogBtn {
    position: static !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    order: 1 !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    padding: 0 !important;
    border-color: rgba(242, 245, 239, .2) !important;
    color: #f2f5ef !important;
    background: rgba(255, 255, 255, .05) !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }

  .customer-app .editor-shell .top-actions > #backToCatalogBtn .editor-home-label {
    display: none !important;
  }

  .customer-app .editor-shell .top-actions > #draftStatus {
    grid-column: 2 !important;
    grid-row: 1 !important;
    order: 2 !important;
    overflow: hidden;
    padding-inline: 6px !important;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px !important;
  }

  .customer-app .editor-shell .top-actions > #restoreDraftBtn {
    display: none !important;
  }

  .customer-app .editor-shell .top-actions > #saveDraftBtn {
    grid-column: 3 !important;
    grid-row: 1 !important;
    order: 3 !important;
    padding-inline: 8px !important;
    white-space: nowrap;
    font-size: 11px !important;
  }

  .customer-app .editor-shell .top-actions > #editorTopMoreBtn {
    position: relative;
    grid-column: 4 !important;
    grid-row: 1 !important;
    order: 4 !important;
    padding: 0 !important;
    overflow: hidden;
    font-size: 0 !important;
  }

  .customer-app .editor-shell .top-actions > #editorTopMoreBtn::before {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: -7px 0 currentColor, 7px 0 currentColor;
  }

  .customer-app .canvas-history-controls {
    top: 9px;
    left: 9px;
    padding: 3px;
  }

  .customer-app .canvas-history-button {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
  }
}

@media (max-width: 340px) {
  .customer-app .editor-shell .top-actions,
  html.android-wechat-webview .customer-app .editor-shell .top-actions {
    grid-template-columns: 44px minmax(58px, 1fr) 84px 44px !important;
    gap: 4px !important;
  }
}

/* Desktop editor correction: the layer panel owns the upper-left canvas
   corner, while history controls sit in a dedicated gutter beside it. */
@media (min-width: 821px) {
  .customer-app .canvas-workspace {
    display: flex !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
  }

  .customer-app .canvas-workspace > .canvas-shell {
    flex: 1 1 auto !important;
    min-height: 0 !important;
  }

  .customer-app .editor-shell > .topbar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, max-content) !important;
    align-items: center !important;
  }

  .customer-app .editor-shell .top-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .customer-app .editor-shell .top-actions > #backToCatalogBtn,
  .customer-app .editor-shell .top-actions > #draftStatus,
  .customer-app .editor-shell .top-actions > #restoreDraftBtn,
  .customer-app .editor-shell .top-actions > #saveDraftBtn,
  .customer-app .editor-shell .top-actions > #editorTopMoreBtn {
    flex: 0 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 44px !important;
    margin: 0 !important;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .customer-app .editor-shell .top-actions > #backToCatalogBtn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-inline: 16px !important;
  }

  .customer-app .editor-shell .top-actions > #draftStatus {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding-inline: 14px !important;
  }

  .customer-app .editor-shell .top-actions > #restoreDraftBtn,
  .customer-app .editor-shell .top-actions > #saveDraftBtn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding-inline: 16px !important;
  }

  .customer-app .editor-shell .top-actions > #editorTopMoreBtn {
    display: grid !important;
    flex: 0 0 44px !important;
    width: 44px !important;
    min-width: 44px !important;
    padding: 0 !important;
    place-items: center;
  }

  .customer-app .editor-shell .canvas-layer-panel {
    left: 12px !important;
    right: auto !important;
  }

  .customer-app .canvas-history-controls {
    top: 14px !important;
    left: 318px !important;
    right: auto !important;
    z-index: 11 !important;
  }
}

/* Horizontal flip keeps the editor actions in one stable command row. */
.customer-app .editor-action-dock {
  grid-template-columns: minmax(130px, 1fr) repeat(5, minmax(88px, auto)) minmax(150px, .9fr);
}

.customer-app .editor-action-dock .button.active,
.customer-app .editor-mobile-dock button.active {
  border-color: var(--cyan);
  color: var(--cyan);
}

.customer-app .editor-action-dock .button:disabled,
.customer-app .editor-mobile-dock button:disabled {
  cursor: not-allowed;
  opacity: .42;
  transform: none;
}

@media (max-width: 820px) {
  .customer-app .editor-action-dock #editorDockFlipHorizontalBtn {
    display: none !important;
  }

  .customer-app .editor-action-dock {
    grid-template-columns: minmax(0, 1fr) 88px 88px 88px 88px minmax(112px, .9fr);
  }

  .customer-app .editor-shell .editor-action-dock {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

/* Mobile canvas viewport: zooming changes content inside a stable window.
   Vertical swipes remain page scrolling while horizontal overflow stays
   pannable without stretching the document to the zoomed canvas size. */
@media (max-width: 820px) {
  body.customer-app.editor-view-active {
    min-height: 100dvh;
    overflow-y: auto;
  }

  body.customer-app.editor-view-active .editor-shell {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  body.customer-app.editor-view-active .site-legal-footer {
    display: none;
  }

  .customer-app .canvas-workspace > .canvas-shell {
    display: block;
    box-sizing: border-box;
    height: min(calc(100vw - 28px), 620px) !important;
    max-height: min(70svh, 620px) !important;
    aspect-ratio: 1;
    place-items: start;
    justify-items: start;
    align-items: start;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .customer-app .canvas-workspace > .canvas-shell #designCanvas {
    display: block;
    margin: 0;
    touch-action: pan-y;
  }
}

/* Mobile catalog width guard (final): category labels may scroll inside their
   rail, but they must never become the grid track's minimum width. */
@media (max-width: 820px) {
  .customer-app .catalog-app,
  .customer-app .catalog-topbar,
  .customer-app .catalog-hero,
  .customer-app .catalog-layout,
  .customer-app .catalog-filter,
  .customer-app .catalog-layout > *,
  .customer-app .catalog-results,
  .customer-app .catalog-results-head,
  .customer-app .catalog-product-grid,
  .customer-app .catalog-product-card {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .customer-app .catalog-app {
    overflow-x: hidden;
  }

  .customer-app .catalog-topbar {
    overflow: hidden;
  }

  .customer-app .catalog-account {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
    max-width: 100%;
    gap: 8px;
    overflow: visible;
  }

  .customer-app .catalog-account > * {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .customer-app .catalog-category-tabs {
    display: flex;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  .customer-app .catalog-category-tab {
    flex: 0 0 auto;
    min-width: max-content;
  }

  .customer-app .catalog-product-content,
  .customer-app .catalog-card-meta,
  .customer-app .catalog-card-options,
  .customer-app .catalog-product-footer {
    min-width: 0;
    max-width: 100%;
  }

  .customer-app .catalog-product-footer {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }
}

.customer-app .catalog-category-tabs {
  gap: 24px;
}

.customer-app .catalog-category-desktop-tree {
  display: grid;
}

.customer-app .catalog-category-mobile {
  display: none;
}

.customer-app .catalog-category-level {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.customer-app .catalog-category-list {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.customer-app .catalog-category-primary-item {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.customer-app .catalog-category-level .catalog-category-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(242, 245, 239, 0.68);
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease;
}

.customer-app .catalog-category-level .catalog-category-tab > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-app .catalog-category-level .catalog-category-tab > small {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  color: rgba(242, 245, 239, 0.52);
  background: rgba(255, 255, 255, 0.06);
  font-size: 10px;
  font-weight: 800;
}

.customer-app .catalog-category-level .catalog-category-tab:hover {
  border-color: rgba(34, 232, 255, 0.48);
  color: #ffffff;
  background: rgba(34, 232, 255, 0.08);
}

.customer-app .catalog-category-level .catalog-category-tab.active {
  border-color: var(--cyan);
  color: #071008;
  background: var(--cyan);
}

.customer-app .catalog-category-level .catalog-category-tab.active > small {
  color: #071008;
  background: rgba(7, 16, 8, 0.12);
}

.customer-app .catalog-category-secondary {
  position: relative;
  margin-left: 0;
  padding-left: 14px;
  padding-top: 10px;
  border-left: 1px solid rgba(34, 232, 255, 0.3);
}

.customer-app .catalog-category-secondary .catalog-category-tab {
  min-height: 40px;
  color: rgba(242, 245, 239, 0.62);
  font-size: 12px;
}

.customer-app .catalog-category-secondary.is-revealing {
  animation: catalog-secondary-reveal 190ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes catalog-secondary-reveal {
  from {
    opacity: 0.35;
    transform: translateY(-6px);
    clip-path: inset(0 0 28% 0);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    clip-path: inset(0);
  }
}

@media (max-width: 820px) {
  .customer-app .catalog-app:not([hidden]) ~ .support-chat-launcher {
    top: auto !important;
    bottom: max(12px, env(safe-area-inset-bottom)) !important;
    z-index: 11;
  }

  .customer-app .catalog-app:not([hidden]) .catalog-results-head,
  .customer-app .catalog-app:not([hidden]) .catalog-product-footer .button {
    position: relative;
    z-index: 12;
  }

  .customer-app .catalog-filter {
    position: static;
    top: auto;
    display: grid;
    gap: 12px;
    padding: 12px;
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(8, 10, 12, 0.97);
  }

  .customer-app .catalog-category-tabs {
    display: grid;
    gap: 10px;
    margin: 0;
    overflow: visible;
  }

  .customer-app .catalog-category-desktop-tree {
    display: none;
  }

  .customer-app .catalog-category-mobile {
    display: grid;
    gap: 10px;
    width: 100%;
    min-width: 0;
  }

  .customer-app .catalog-category-level {
    gap: 7px;
  }

  .customer-app .catalog-category-secondary {
    margin-left: 0;
    padding-left: 12px;
    padding-top: 8px;
  }

  .customer-app .catalog-category-list {
    display: flex;
    gap: 6px;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .customer-app .catalog-category-mobile .catalog-category-list {
    flex-wrap: nowrap;
    align-items: center;
    scroll-snap-type: x proximity;
  }

  .customer-app .catalog-category-list::-webkit-scrollbar {
    display: none;
  }

  .customer-app .catalog-category-tab {
    flex: 0 0 auto;
    min-width: max-content;
    min-height: 42px;
    padding: 0 10px 0 12px;
  }

  .customer-app .catalog-category-level .catalog-category-tab {
    gap: 8px;
  }

  .customer-app .catalog-category-level .catalog-category-tab > small {
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
  }

  .customer-app .catalog-category-mobile .catalog-category-tab {
    min-width: 94px;
    scroll-snap-align: start;
    white-space: nowrap;
  }

  .customer-app .catalog-category-mobile-secondary {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 10px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 0;
  }

  .customer-app .catalog-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px 10px !important;
  }

  .customer-app .catalog-product-card {
    grid-template-rows: clamp(132px, 40vw, 170px) minmax(0, 1fr) !important;
    height: 100%;
    border-color: rgba(255, 255, 255, 0.12);
    background: #0c0f10;
    box-shadow: none;
    transition: border-color 160ms ease, background-color 160ms ease, transform 120ms ease;
  }

  .customer-app .catalog-product-card:active {
    border-color: rgba(34, 232, 255, 0.62);
    background: #111718;
    transform: scale(0.985);
  }

  .customer-app .catalog-product-image {
    padding: 8px;
    background: #edf0eb;
  }

  .customer-app .catalog-product-image img {
    padding: 8px;
  }

  .customer-app .catalog-product-badge {
    top: 8px;
    right: auto;
    left: 8px;
    max-width: calc(100% - 16px);
    padding: 4px 6px;
    overflow: hidden;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .customer-app .catalog-product-content {
    grid-template-rows: auto auto 1fr;
    gap: 10px;
    padding: 10px;
  }

  .customer-app .catalog-product-category {
    display: block;
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .customer-app .catalog-product-content h2 {
    display: -webkit-box;
    min-height: 2.6em;
    margin-top: 5px;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .customer-app .catalog-card-meta {
    gap: 0;
    margin-top: 8px;
  }

  .customer-app .catalog-card-meta span:not(.product-sold-count),
  .customer-app .catalog-card-options > span,
  .customer-app .catalog-product-footer > span {
    display: none;
  }

  .customer-app .catalog-card-meta .product-sold-count {
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .customer-app .catalog-card-options {
    display: block;
  }

  .customer-app .catalog-card-swatches {
    gap: 4px;
  }

  .customer-app .catalog-card-swatches > :nth-child(n + 5) {
    display: none;
  }

  .customer-app .catalog-color-dot {
    width: 14px;
    height: 14px;
  }

  .customer-app .catalog-style-thumb {
    width: 22px;
    height: 18px;
  }

  .customer-app .catalog-product-footer {
    grid-template-columns: minmax(0, 1fr) auto;
    align-self: end;
    gap: 6px;
    padding-top: 10px;
  }

  .customer-app .catalog-product-footer strong {
    min-width: 0;
    color: #f7faf5;
    font-size: 20px;
  }

  .customer-app .catalog-product-footer .button {
    min-width: 0;
    min-height: 44px;
    padding: 0 9px;
    font-size: 12px;
    white-space: nowrap;
  }
}

@media (max-width: 360px) {
  .customer-app .catalog-product-footer {
    grid-template-columns: minmax(0, 1fr);
  }

  .customer-app .catalog-product-footer .button {
    width: 100%;
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .customer-app .catalog-category-secondary.is-revealing {
    animation: none;
  }
}

/* Final artwork contrast fix: this file loads after styles.css, so override
   the actual media layers here without changing uploaded assets. */
.customer-app .artwork-card-media,
.customer-app .artwork-image-button,
.customer-app .home-art-tile button,
.customer-app .home-design-image,
.customer-app .artwork-preview-frame,
.customer-app .artwork-preview-media {
  background-color: #f4f6f4 !important;
  background-image:
    linear-gradient(45deg, rgba(18, 24, 24, 0.08) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(18, 24, 24, 0.08) 75%),
    linear-gradient(45deg, transparent 75%, rgba(18, 24, 24, 0.08) 75%),
    linear-gradient(45deg, rgba(18, 24, 24, 0.08) 25%, transparent 25%) !important;
  background-position: 0 0, 0 0, 9px 9px, 9px 9px !important;
  background-size: 18px 18px !important;
}

.customer-app .artwork-card-media > .artwork-image-button,
.customer-app .home-art-tile button > img,
.customer-app .home-design-image > img,
.customer-app .artwork-image-button > img,
.customer-app .artwork-preview-frame img,
.customer-app .artwork-preview-media > img {
  background: transparent !important;
}

/* Product commerce facts and product-specific community cases. */
.customer-app .catalog-product-content {
  grid-template-rows: auto auto auto auto 1fr;
  gap: 12px;
  padding: 16px;
}

.customer-app .catalog-card-material {
  display: block;
  margin-top: 7px;
  overflow: hidden;
  color: rgba(223, 228, 218, .54);
  font-size: 11px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-app .catalog-card-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.customer-app .catalog-card-facts > span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(242, 245, 239, .09);
  border-radius: 8px;
  background: rgba(242, 245, 239, .035);
}

.customer-app .catalog-card-facts small { color: rgba(223, 228, 218, .45); font-size: 10px; font-weight: 800; }
.customer-app .catalog-card-facts strong { min-width: 0; overflow: hidden; color: #f2f5ef; font-size: 11px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.customer-app .catalog-card-facts > span:first-child strong { color: #e8b86a; }
.customer-app .catalog-card-facts > span:nth-child(2) strong { color: #28d7e5; }
.customer-app .catalog-card-facts > span:nth-child(3) strong { color: #b8ff3d; }

.customer-app .catalog-card-options { min-height: 21px; }
.customer-app .catalog-card-sold { display: flex; justify-content: space-between; gap: 10px; color: rgba(223, 228, 218, .48); font-size: 10px; }
.customer-app .catalog-card-sold .product-sold-count { color: rgba(223, 228, 218, .72); }

.customer-app .product-detail-commerce {
  margin: 22px 0 4px;
  padding: 14px;
  border: 1px solid rgba(40, 215, 229, .2);
  border-radius: 12px;
  background: rgba(40, 215, 229, .045);
}
.customer-app .product-detail-commerce-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.customer-app .product-detail-commerce-head span { color: #f2f5ef; font-size: 13px; font-weight: 900; }
.customer-app .product-detail-commerce-head small { color: rgba(40, 215, 229, .74); font-size: 10px; font-weight: 800; }
.customer-app .product-detail-commerce-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.customer-app .product-detail-commerce-item { display: grid; gap: 5px; min-width: 0; padding: 10px; border-radius: 8px; background: rgba(7, 9, 9, .36); }
.customer-app .product-detail-commerce-item > span { color: rgba(242, 245, 239, .54); font-size: 10px; font-weight: 850; }
.customer-app .product-detail-commerce-item > strong { overflow: hidden; color: #f2f5ef; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.customer-app .product-detail-commerce-item.is-discount > strong { color: #e8b86a; }
.customer-app .product-detail-commerce-item:nth-child(2) > strong { color: #28d7e5; }
.customer-app .product-detail-commerce-item:nth-child(3) > strong { color: #b8ff3d; }
.customer-app .product-detail-commerce-item > small { min-height: 2.7em; color: rgba(242, 245, 239, .45); font-size: 10px; line-height: 1.4; }

.customer-app .product-detail-community { width: min(1480px, 100%); margin: 84px auto 0; padding-top: 30px; border-top: 1px solid rgba(242, 245, 239, .12); }
.customer-app .product-detail-community-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.customer-app .product-detail-section-kicker { color: #28d7e5; font-size: 10px; font-weight: 900; }
.customer-app .product-detail-community h2 { margin: 9px 0 8px; color: #f2f5ef; font-size: clamp(28px, 3.3vw, 46px); line-height: 1.05; }
.customer-app .product-detail-community-head p { max-width: 58ch; margin: 0; color: rgba(223, 228, 218, .6); font-size: 14px; }
.customer-app .product-detail-community-count { flex: 0 0 auto; padding: 9px 12px; border: 1px solid rgba(242, 245, 239, .16); border-radius: 999px; color: rgba(242, 245, 239, .7); font-size: 11px; font-weight: 850; }
.customer-app .product-detail-case-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.customer-app .product-detail-case { min-width: 0; overflow: hidden; border: 1px solid rgba(242, 245, 239, .12); border-radius: 18px; background: #0d1112; transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease; }
.customer-app .product-detail-case:hover { border-color: rgba(40, 215, 229, .58); box-shadow: 0 18px 54px rgba(0, 0, 0, .3); transform: translateY(-4px); }
.customer-app .product-detail-case-media { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0; overflow: hidden; background: #e7ebe7; cursor: pointer; text-align: left; }
.customer-app .product-detail-case-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 350ms cubic-bezier(.2, .8, .2, 1); }
.customer-app .product-detail-case:hover .product-detail-case-media img { transform: scale(1.045); }
.customer-app .product-detail-case-pill { position: absolute; z-index: 1; top: 12px; left: 12px; padding: 5px 8px; border: 1px solid rgba(7, 9, 9, .12); border-radius: 999px; color: #071008; background: #b8ff3d; font-size: 10px; font-weight: 900; }
.customer-app .product-detail-case-overlay { position: absolute; right: 0; bottom: 0; left: 0; display: flex; align-items: end; justify-content: space-between; gap: 12px; min-height: 42%; padding: 42px 13px 13px; color: #f2f5ef; background: linear-gradient(180deg, transparent 0%, rgba(5, 8, 8, .2) 20%, rgba(5, 8, 8, .9) 100%); }
.customer-app .product-detail-case-overlay-main { min-width: 0; }
.customer-app .product-detail-case-author { display: flex; align-items: center; gap: 8px; min-width: 0; }
.customer-app .product-detail-case-avatar { display: grid; flex: 0 0 auto; place-items: center; width: 32px; height: 32px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .52); border-radius: 50%; color: #071008; background: #28d7e5; font-size: 12px; font-weight: 900; box-shadow: 0 4px 14px rgba(0, 0, 0, .28); }
.customer-app .product-detail-case-avatar img { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.customer-app .product-detail-case-author > span:last-child { display: grid; min-width: 0; gap: 2px; }
.customer-app .product-detail-case-author strong, .customer-app .product-detail-case-author small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.customer-app .product-detail-case-author strong { color: #f2f5ef; font-size: 12px; text-shadow: 0 1px 12px rgba(0, 0, 0, .3); }
.customer-app .product-detail-case-author small { max-width: 150px; color: rgba(223, 228, 218, .72); font-size: 10px; }
.customer-app .product-detail-case-social { display: flex; flex: 0 0 auto; align-items: center; gap: 9px; }
.customer-app .product-detail-case-social > span { display: inline-flex; align-items: center; gap: 4px; color: rgba(255, 255, 255, .86); font-size: 11px; font-weight: 800; text-shadow: 0 1px 10px rgba(0, 0, 0, .45); }
.customer-app .product-detail-case-social svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.customer-app .product-detail-case-empty { display: grid; grid-column: 1 / -1; gap: 7px; min-height: 150px; place-items: center; padding: 24px; border: 1px dashed rgba(242, 245, 239, .18); border-radius: 12px; color: rgba(242, 245, 239, .48); text-align: center; }
.customer-app .product-detail-case-empty strong { color: rgba(242, 245, 239, .78); }

.customer-app .customized-invalid-design-delete {
  width: 100%;
  margin-top: 12px;
  border-color: rgba(255, 104, 75, .45);
  color: #ff684b;
}

@media (max-width: 1060px) {
  .customer-app .product-detail-case-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .customer-app .catalog-product-content { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto auto; gap: 6px 8px; padding: 10px; }
  .customer-app .catalog-product-content > :first-child, .customer-app .catalog-card-facts, .customer-app .catalog-product-footer { grid-column: 1 / -1; }
  .customer-app .catalog-card-material { display: none; }
  .customer-app .catalog-card-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; border-block: 1px solid rgba(242, 245, 239, .09); }
  .customer-app .catalog-card-facts > span { display: flex; align-items: center; justify-content: space-between; gap: 5px; min-width: 0; padding: 5px 0; border: 0; border-radius: 0; background: transparent; }
  .customer-app .catalog-card-facts > span:nth-child(-n + 2) { border-bottom: 1px solid rgba(242, 245, 239, .07); }
  .customer-app .catalog-card-facts small { flex: 0 0 auto; font-size: 9px; }
  .customer-app .catalog-card-facts strong { font-size: 10px; text-align: right; }
  .customer-app .catalog-card-options { grid-column: 1; min-width: 0; }
  .customer-app .catalog-card-sold { grid-column: 2; align-self: center; white-space: nowrap; }
  .customer-app .catalog-card-sold > span:last-child { display: none; }
  .customer-app .product-detail-commerce-grid { grid-template-columns: 1fr; }
  .customer-app .product-detail-commerce-item { grid-template-columns: 78px minmax(0, 1fr); align-items: center; gap: 3px 8px; }
  .customer-app .product-detail-commerce-item > small { grid-column: 2; min-height: 0; }
  .customer-app .product-detail-community { margin-top: 56px; padding-top: 24px; }
  .customer-app .product-detail-community-head { align-items: start; flex-direction: column; gap: 13px; margin-bottom: 18px; }
  .customer-app .product-detail-community-count { align-self: flex-start; }
  .customer-app .product-detail-case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .customer-app .product-detail-case-copy { padding: 10px; }
}
/* Artwork versions: native controls remain in flow below the preview. */
.customer-app .creator-artwork-variants { display:flex; align-items:center; gap:8px; overflow-x:auto; padding:8px 0; min-width:0; -webkit-overflow-scrolling:touch; }
.customer-app .creator-artwork-variants[hidden], .customer-app #applyManagedArtworkVariant[hidden] { display:none; }
.customer-app .creator-artwork-variant { flex:0 0 auto; min-height:44px; padding:10px 16px; border:1px solid rgba(255,255,255,.16); border-radius:2px; background:#141414; color:#b8b8b8; font:600 13px/1.4 inherit; cursor:pointer; }
.customer-app .creator-artwork-variant.active { background:#f2f5ef; color:#0d0d0d; border-color:#f2f5ef; }
.customer-app .creator-artwork-variant:focus-visible { outline:2px solid #a3ff2e; outline-offset:3px; }
.customer-app .is-derived-version .creator-manage-copy > :not(#creatorArtworkManageMeta):not(#creatorArtworkCopyrightPanel) { display:none; }
.customer-app .my-assets-load-more { grid-column:1 / -1; justify-self:center; min-height:44px; margin:12px 0; }
.customer-app #publicArtworkVariants { padding:12px; }
@media(max-width:767px) {
 .customer-app .creator-artwork-preview-stage { position:static; }
 .customer-app .creator-artwork-variant { padding:10px 12px; }
}

.customer-app #creatorArtworkManageModal #creatorArtworkManageImage { height:min(52dvh,560px); max-height:calc(100dvh - 330px); min-height:140px; object-fit:contain; }
.customer-app #creatorArtworkManageModal .creator-artwork-preview-stage { align-content:start; }

/* My artwork cards: keep the record width intentional on desktop and full-width on H5. */
.customer-app #profileArtworkList .creator-artwork-row {
  width: min(100%, 640px);
  justify-self: start;
  grid-template-columns: 132px minmax(180px, 1fr);
}

@media (max-width: 680px) {
  .customer-app #profileArtworkList .creator-artwork-row {
    width: 100%;
    grid-template-columns: 112px minmax(0, 1fr);
  }
}

/* Public artwork detail: bounded gallery surface; shared case detail keeps its layout. */
#artworkPreviewModal .artwork-detail-label { display: none; }
#artworkPreviewModal.is-artwork-detail .artwork-detail-label { display: block; position: absolute; top: 24px; left: 32px; color: #a8b0aa; font-size: 12px; line-height: 20px; }
#artworkPreviewModal .artwork-detail-scroll,
#artworkPreviewModal .artwork-detail-availability { display: contents; }
#artworkPreviewModal.is-artwork-detail { padding: 24px; align-items: center; overflow: hidden; }
#artworkPreviewModal.is-artwork-detail .artwork-preview-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1120px, 100%);
  max-width: none;
  max-height: calc(100dvh - 48px);
  padding: 60px 0 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: #101412;
  box-shadow: none;
  color: #f2f5ef;
}
#artworkPreviewModal.is-artwork-detail .artwork-detail-scroll {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr);
  grid-template-areas: "media heading" "media author" "media story" "media availability" "media social";
  grid-template-rows: auto auto 1fr auto auto;
  gap: 24px 32px;
  min-height: 0;
  padding: 32px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
#artworkPreviewModal.is-artwork-detail .artwork-detail-scroll > * { min-width: 0; }
#artworkPreviewModal.is-artwork-detail .artwork-detail-heading { grid-area: heading; position: static; margin: 0; padding: 8px 0 0; border: 0; background: none; }
#artworkPreviewModal.is-artwork-detail #artworkPreviewTitle { margin: 0; font-size: 28px; line-height: 1.3; font-weight: 750; overflow-wrap: anywhere; }
#artworkPreviewModal.is-artwork-detail #artworkPreviewMeta { margin: 10px 0 0; color: #a8b0aa; font-size: 12px; line-height: 1.6; }
#artworkPreviewModal.is-artwork-detail #closeArtworkPreviewBtn { position: absolute; top: 16px; right: 16px; z-index: 2; width: 44px; height: 44px; min-width: 44px; padding: 0; border: 0; border-radius: 8px; background: #202622; color: #f2f5ef; box-shadow: none; font-family: inherit; font-size: 26px; font-weight: 400; line-height: 1; }
#artworkPreviewModal.is-artwork-detail #artworkPreviewAuthorBtn { grid-area: author; display: flex; align-items: center; justify-content: flex-start; gap: 12px; width: 100%; margin: 0; padding: 0; border: 0; background: none; text-align: left; color: inherit; box-shadow: none; }
#artworkPreviewModal.is-artwork-detail #artworkPreviewAuthorAvatar { flex: 0 0 44px; width: 44px; height: 44px; overflow: visible; }
#artworkPreviewModal.is-artwork-detail #artworkPreviewAuthorAvatar .avatar-shell { --creator-badge-size: 16px; }
#artworkPreviewModal.is-artwork-detail #artworkPreviewAuthorBtn > div:last-child { min-width: 0; }
#artworkPreviewModal.is-artwork-detail #artworkPreviewAuthorName { font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
#artworkPreviewModal.is-artwork-detail #artworkPreviewStats { margin-top: 3px; font-size: 12px; line-height: 1.5; color: #a8b0aa; }
#artworkPreviewModal.is-artwork-detail .artwork-preview-frame {
  grid-area: media;
  display: flex;
  flex-direction: column;
  align-self: start;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 16px;
  gap: 12px;
  border: 0;
  border-radius: 8px;
  background: #1b211d !important;
}
#artworkPreviewModal.is-artwork-detail .artwork-preview-media { display: grid; place-items: center; width: 100%; height: min(60dvh, 560px); max-height: none; min-height: 240px; border-radius: 4px; background: #eceeeb !important; }
#artworkPreviewModal.is-artwork-detail #artworkPreviewImage { display: block; width: 100%; height: 100%; max-width: 100%; max-height: min(60dvh, 560px); min-height: 0; margin: 0; border-radius: 0; object-fit: contain; }
#artworkPreviewModal.is-artwork-detail #artworkPreviewImageStatus { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 24px; background: #eceeeb; color: #525b54; font-size: 13px; line-height: 1.6; text-align: center; }
#artworkPreviewModal.is-artwork-detail #publicArtworkVariants { display: flex; justify-content: center; gap: 4px; width: 100%; padding: 0; overflow-x: auto; }
#artworkPreviewModal.is-artwork-detail .creator-artwork-variant { min-height: 44px; padding: 8px 14px; border: 0; border-radius: 6px; color: #bbc3bc; background: transparent; font-family: inherit; font-size: 13px; font-weight: 600; }
#artworkPreviewModal.is-artwork-detail .creator-artwork-variant.active { color: #101412; background: #f2f5ef; }
#artworkPreviewModal.is-artwork-detail #artworkPreviewInspiration { grid-area: story; display: block; align-self: start; margin: 4px 0 0; padding: 24px 0 0; border: 0; border-top: 1px solid rgba(255,255,255,.1); background: none; }
#artworkPreviewModal.is-artwork-detail #artworkPreviewInspirationTitle { color: #f2f5ef; font-family: inherit; font-size: 14px; font-weight: 650; line-height: 1.5; letter-spacing: 0; }
#artworkPreviewModal.is-artwork-detail #artworkPreviewInspirationText { margin: 12px 0 0; color: #b7bfb8; font-size: 14px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
#artworkPreviewModal.is-artwork-detail .artwork-detail-availability { grid-area: availability; display: block; }
#artworkPreviewModal.is-artwork-detail #artworkPreviewBadges { position: static; display: flex; flex-wrap: wrap; gap: 8px; }
#artworkPreviewModal.is-artwork-detail #artworkPreviewBadges:empty { display: none; }
#artworkPreviewModal.is-artwork-detail .artwork-availability-badge { min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; color: #b7bfb8; box-shadow: none; font-size: 12px; line-height: 1.7; }
#artworkPreviewModal.is-artwork-detail .artwork-availability-badge.is-unavailable { color: #ffb2a5; }
#artworkPreviewModal.is-artwork-detail .artwork-action-row { grid-area: social; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); }
#artworkPreviewModal.is-artwork-detail .artwork-action-row .button { display: inline-flex; justify-content: center; align-items: center; flex: 0 0 auto; min-height: 44px; width: auto; padding: 8px 12px; gap: 6px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; background: transparent; color: #c7cec8; font-size: 12px; line-height: 1.4; box-shadow: none; }
#artworkPreviewModal.is-artwork-detail .artwork-action-row .button.active { color: #a3ff2e; border-color: rgba(163,255,46,.35); background: transparent; }
#artworkPreviewModal.is-artwork-detail #reportArtworkBtn { border-color: transparent; color: #a8b0aa; }
#artworkPreviewModal.is-artwork-detail .artwork-detail-footer { display: flex; flex: 0 0 auto; align-items: center; gap: 24px; margin: 0; padding: 20px 32px; border-top: 1px solid rgba(255,255,255,.1); background: #101412; }
#artworkPreviewModal.is-artwork-detail .artwork-detail-price { display: grid; gap: 4px; margin-right: auto; }
#artworkPreviewModal.is-artwork-detail #artworkPreviewPriceLabel { color: #a8b0aa; font-size: 12px; line-height: 1.4; }
#artworkPreviewModal.is-artwork-detail #artworkPreviewPrice { font-size: 22px; line-height: 1.3; font-weight: 700; white-space: nowrap; }
#artworkPreviewModal.is-artwork-detail #useArtworkFromPreviewBtn { min-height: 48px; min-width: 220px; padding: 12px 24px; border: 0; border-radius: 8px; background: #a3ff2e; background-image: none; color: #101412; box-shadow: none; font-size: 14px; line-height: 1.4; font-weight: 700; white-space: nowrap; }
#artworkPreviewModal.is-artwork-detail #cancelArtworkPreviewBtn { display: none; }
#artworkPreviewModal.is-artwork-detail button:focus-visible { outline: 2px solid #a3ff2e; outline-offset: 3px; }
@media (hover: hover) {
  #artworkPreviewModal.is-artwork-detail #useArtworkFromPreviewBtn:hover { background: #b7ff62; }
  #artworkPreviewModal.is-artwork-detail .artwork-action-row .button:hover,
  #artworkPreviewModal.is-artwork-detail #closeArtworkPreviewBtn:hover { color: #f2f5ef; background: #2b342e; }
}

/* Editor artwork thumbnails must stay true to the uploaded artwork. The
   legacy contrast treatment belongs to the old preview surface and changes
   hue/value when applied to the library itself. */
body.customer-app #artworkPanel .artwork-image-button img,
body.customer-app #artworkPanel .artwork-card-media img {
  filter: none;
  mix-blend-mode: normal;
}
@media (max-width: 820px) {
  #artworkPreviewModal:not(.is-artwork-detail) .artwork-detail-heading { position: sticky; top: -16px; z-index: 8; margin: -16px -14px 12px; padding: 16px 14px 12px; border-bottom: 1px solid rgba(232,240,235,.12); background: #111317; }
  #artworkPreviewModal.is-artwork-detail { align-items: end; padding: max(8px, env(safe-area-inset-top)) 0 0; }
  #artworkPreviewModal.is-artwork-detail .artwork-preview-dialog { width: 100%; height: calc(100dvh - max(8px, env(safe-area-inset-top))); max-height: none; border-right: 0; border-left: 0; border-bottom: 0; border-radius: 12px 12px 0 0; }
  #artworkPreviewModal.is-artwork-detail .artwork-detail-scroll { display: flex; flex-direction: column; flex: 1 1 auto; gap: 20px; padding: 24px 20px; }
  #artworkPreviewModal.is-artwork-detail .artwork-detail-label { left: 20px; }
  #artworkPreviewModal.is-artwork-detail .artwork-detail-heading { flex: 0 0 auto; padding: 0; }
  #artworkPreviewModal.is-artwork-detail #artworkPreviewTitle { font-size: 24px; }
  #artworkPreviewModal.is-artwork-detail #closeArtworkPreviewBtn { top: 16px; right: 12px; }
  #artworkPreviewModal.is-artwork-detail #artworkPreviewAuthorBtn { flex: 0 0 auto; }
  #artworkPreviewModal.is-artwork-detail .artwork-preview-frame { flex: 0 0 auto; padding: 12px; }
  #artworkPreviewModal.is-artwork-detail .artwork-preview-media { height: min(44dvh, 440px); min-height: 200px; }
  #artworkPreviewModal.is-artwork-detail #artworkPreviewImage { max-height: min(44dvh, 440px); }
  #artworkPreviewModal.is-artwork-detail #artworkPreviewInspiration { margin: 0; padding-top: 20px; }
  #artworkPreviewModal.is-artwork-detail .artwork-detail-footer { gap: 16px; padding: 14px 20px max(14px, env(safe-area-inset-bottom)); }
  #artworkPreviewModal.is-artwork-detail #artworkPreviewPrice { font-size: 18px; }
  #artworkPreviewModal.is-artwork-detail #useArtworkFromPreviewBtn { min-width: 0; flex: 0 1 58%; padding: 12px 16px; font-size: 13px; }
}

/* Print faces are self-hosted and fetched only when used by a text layer. */
@font-face { font-family: "ZCOOL QingKe HuangYou"; src: url("./assets/print-fonts/zcool-qingke-huangyou-chinese-simplified-400-normal.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "ZCOOL KuaiLe"; src: url("./assets/print-fonts/zcool-kuaile-chinese-simplified-400-normal.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Ma Shan Zheng"; src: url("./assets/print-fonts/ma-shan-zheng-chinese-simplified-400-normal.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Bebas Neue Print"; src: url("./assets/print-fonts/BebasNeue-Regular.ttf") format("truetype"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Pacifico Print"; src: url("./assets/print-fonts/Pacifico-Regular.ttf") format("truetype"); font-style: normal; font-weight: 400; font-display: swap; }

/* Text tools: controls, a real font sample, then a separate primary action. */
body.customer-app #toolText { min-width: 0; }
body.customer-app #toolText .control-grid.two { grid-template-columns: minmax(0, 1fr) 80px !important; gap: 12px; }
body.customer-app #toolText .field { min-width: 0; }
body.customer-app #toolText input,
body.customer-app #toolText select { width: 100%; min-width: 0; max-width: 100%; min-height: 44px; font-size: 16px; }
body.customer-app #toolText #fontFamily { text-overflow: ellipsis; }
body.customer-app #toolText .field > span { font-size: 13px; }
body.customer-app #toolText .text-format-row { display: grid; grid-template-columns: 44px 44px minmax(0, 1fr); gap: 8px; margin-bottom: 12px; }
body.customer-app #toolText .text-format-button { width: 44px; height: 44px; }
body.customer-app #toolText .text-color-controls { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
body.customer-app #toolText .text-color-controls.single { grid-template-columns: 1fr !important; }
body.customer-app #toolText input[type="color"] { height: 44px; padding: 5px; }
body.customer-app #toolText .text-preview-section { display: grid; gap: 10px; margin-top: 20px; }
body.customer-app #toolText .text-preview-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 13px; line-height: 1.5; }
body.customer-app #toolText .text-preview-heading strong { flex-shrink: 0; color: var(--text); font-weight: 650; }
body.customer-app #toolText #textPreviewFontName { min-width: 0; color: #a7b0aa; font-size: 12px; text-align: right; overflow-wrap: anywhere; }
body.customer-app #toolText .text-preview-surface { display: grid; place-items: center; min-height: 120px; padding: 20px 16px; border-radius: 8px; background: #e8ebe7; }
body.customer-app #toolText #fontPreview { width: 100%; min-width: 0; min-height: 0; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; background-color: transparent; line-height: 1.4; font-synthesis: none; overflow: visible; white-space: pre-wrap; overflow-wrap: anywhere; }
body.customer-app #toolText #fontPreview[aria-busy="true"] { opacity: .45; }
body.customer-app #toolText .text-font-feedback { display: flex; align-items: baseline; gap: 8px; }
body.customer-app #toolText #textFontStatus { flex: 1; margin: 0; color: #a7b0aa; font-size: 12px; line-height: 1.6; }
body.customer-app #toolText .text-add-button { display: block; width: 100%; min-height: 48px; margin-top: 20px; padding: 12px 20px; border-radius: 8px; background: #a3ff2e; background-image: none; color: #101412; box-shadow: none; font-size: 15px; font-weight: 700; }
body.customer-app #toolText .text-add-button:disabled { opacity: 1; border: 1px solid var(--line); background: #202723; color: #a7b0aa; cursor: not-allowed; }
body.customer-app #toolText .text-add-button:focus-visible { outline: 2px solid #a3ff2e; outline-offset: 3px; }


/* Editor polish: quiet surfaces, one motion primitive, no decorative glow. */
body.customer-app .editor-shell { background: #070909; }
body.customer-app .editor-shell .topbar { background: #070909; backdrop-filter: none; }
body.customer-app .editor-shell .panel,
body.customer-app .editor-shell .stage-panel { box-shadow: none; }
body.customer-app .editor-shell .canvas-layer-panel { background: #0b0e0e; box-shadow: none; backdrop-filter: none; }
body.customer-app .editor-shell .toolbox-jump { background: #101414; }
body.customer-app .editor-shell button { transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, transform 180ms ease; }
body.customer-app .editor-shell button:active { transform: translateY(1px); }
@media (prefers-reduced-motion: reduce) {
  body.customer-app .editor-shell button { transition: none; }
  body.customer-app .editor-shell button:active { transform: none; }
}

/* Keep the desktop layer inspector clear of the vertical canvas command rail. */
@media (min-width: 821px) {
  body.customer-app .editor-shell .canvas-layer-panel {
    left: auto !important;
    right: 92px !important;
    width: min(320px, calc(100% - 120px)) !important;
    max-width: 320px !important;
  }
  body.customer-app .editor-shell .canvas-command-rail {
    left: auto !important;
    right: 8px !important;
    width: 76px !important;
  }
}

/* My artwork: shared credits and a stable, image-first management grid. */
body.customer-app #creatorVerificationCard,
body.customer-app #profileArtworkCard,
body.customer-app #profileArtworkList { scroll-margin-top: 84px; }
body.customer-app #creatorVerificationPosterBtn[hidden] { display: none; }
body.customer-app #creatorVerificationCard,
body.customer-app #profileArtworkCard { background: #0d1110; border-color: #303733; border-radius: 12px; box-shadow: none; padding: 28px; }
body.customer-app #creatorVerificationCard[data-verification-state="approved"] .creator-verification-head,
body.customer-app #creatorVerificationCard[data-verification-state="historical"] .creator-verification-head { border: 0; margin: 0; padding: 0; }
body.customer-app #creatorVerificationCard h2 { font-size: 20px; }
body.customer-app #creatorVerificationCard .creator-verification-head-actions { gap: 16px; flex-wrap: wrap; }
body.customer-app #creatorVerificationPosterBtn { display: inline-flex; flex-direction: row; align-items: center; min-height: 52px; padding: 10px 18px; gap: 12px; border-radius: 8px; color: #10140b; background: #b8ff3d; border: 1px solid #b8ff3d; box-shadow: none; }
body.customer-app #creatorVerificationPosterBtn > span:last-child { display: grid; gap: 3px; text-align: left; }
body.customer-app #creatorVerificationPosterBtn strong { color: #10140b; font-size: 14px; line-height: 1.4; }
body.customer-app #creatorVerificationPosterBtn small { font-size: 11px; line-height: 1.4; color: #344319; }
body.customer-app #creatorVerificationPosterBtn .creator-poster-entry-icon { flex: 0 0 18px; width: 18px; height: 18px; margin: 0; color: #10140b; opacity: 1; }
body.customer-app #profileArtworkCard > .profile-section-head { align-items: center; gap: 24px; margin-bottom: 24px; padding-bottom: 24px; }
body.customer-app #profileArtworkCard > .profile-section-head h2 { font-size: 28px; letter-spacing: -.03em; margin-bottom: 6px; }
body.customer-app #profileArtworkCard .profile-artwork-upload-action { min-height: 56px; min-width: 0; border-radius: 8px; padding: 10px 16px; gap: 12px; box-shadow: none; }
body.customer-app #profileArtworkCard .profile-artwork-upload-icon { width: 28px; height: 28px; background: transparent; }
body.customer-app #profileArtworkCard .profile-artwork-upload-action small { font-size: 11px; }
body.customer-app #profileArtworkCard .profile-ai-benefits { padding: 20px; margin: 0 0 28px; background: #171e19; border: 1px solid #354036; border-radius: 8px; }
body.customer-app #profileArtworkCard .profile-ai-benefits-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 24px; align-items: center; }
body.customer-app #profileArtworkCard .profile-ai-balance { display: grid; gap: 5px; }
body.customer-app #profileArtworkCard .profile-ai-balance > span { color: #bcc5bf; font-size: 12px; }
body.customer-app #profileAiCreditsStatus { color: #b8ff3d; font-size: 24px; font-weight: 650; line-height: 1.4; font-variant-numeric: tabular-nums; }
body.customer-app #profileArtworkCard .profile-ai-balance small { color: #aab5ad; font-size: 12px; line-height: 1.6; }
body.customer-app #profileArtworkCard .profile-ai-rewards p { margin: 4px 0; color: #e8ede7; font-size: 14px; line-height: 1.7; }
body.customer-app #profileInvitePosterBtn { min-height: 44px; padding: 10px 16px; border: 1px solid #657653; border-radius: 8px; color: #eaf7d5; background: transparent; white-space: nowrap; box-shadow: none; font-size: 13px; }
body.customer-app #profileArtworkCard .profile-ai-reward-details { margin-top: 16px; border-top: 1px solid #354036; padding-top: 8px; }
body.customer-app #profileArtworkCard .profile-ai-reward-details summary { min-height: 44px; align-content: center; width: fit-content; cursor: pointer; color: #c9d3ca; font-size: 12px; }
body.customer-app #profileArtworkCard .profile-ai-reward-details p { max-width: 84ch; color: #aab5ad; font-size: 12px; line-height: 1.8; margin: 4px 0 8px; }
body.customer-app #profileArtworkToolbar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 280px); gap: 16px; margin: 0 0 24px; align-items: center; }
body.customer-app #profileArtworkToolbar .profile-material-tabs { justify-self: start; width: auto; max-width: 100%; }
body.customer-app #profileArtworkToolbar .profile-material-tabs button { min-height: 44px; padding: 10px 20px; }
body.customer-app #profileArtworkToolbar .profile-gallery-search { grid-column: 2; grid-row: 1; width: 100%; }
body.customer-app #profileArtworkToolbar .profile-gallery-search input { min-height: 44px; border-radius: 8px; }
body.customer-app #profileArtworkToolbar .profile-gallery-filters { grid-column: 1 / -1; grid-row: auto; margin: 0; gap: 4px; }
body.customer-app #profileArtworkToolbar .profile-gallery-filters button { min-height: 44px; padding: 8px 18px; }
body.customer-app #profileMaterialUploadStatus:empty { display: none; }
body.customer-app #profileMaterialUploadStatus:not(:empty) { grid-column: 1 / -1; }
body.customer-app #profileArtworkList { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; align-items: stretch; }
body.customer-app #profileArtworkList .creator-artwork-row { position: relative; display: flex; flex-direction: column; gap: 0; width: 100%; min-width: 0; min-height: 0; height: auto; aspect-ratio: auto; padding: 12px; background: #141a17; border: 1px solid #343d36; border-radius: 10px; overflow: hidden; box-shadow: none; transform: none; }
body.customer-app #profileArtworkList .creator-artwork-media { position: relative; inset: auto; flex: none; display: grid; place-items: center; width: 100%; height: auto; aspect-ratio: 4 / 3; padding: 12px; border: 0; border-radius: 5px; overflow: hidden; background: #e9ebe5; }
body.customer-app #profileArtworkList .creator-artwork-media img { position: static; width: 100%; height: 100%; min-height: 0; object-fit: contain; border: 0; border-radius: 0; filter: none; mix-blend-mode: normal; transform: none; }
body.customer-app #profileArtworkList .profile-artwork-tags { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; }
body.customer-app #profileArtworkList .profile-artwork-tags > span { position: static; inset: auto; width: auto; height: auto; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; color: #acb7af; background: none; font-size: 11px; line-height: 1.6; box-shadow: none; }
body.customer-app #profileArtworkList .profile-artwork-tags .is-protected { color: #c1d7a7; }
body.customer-app #profileArtworkList .creator-artwork-copy { position: static; inset: auto; display: grid; gap: 6px; width: 100%; min-width: 0; padding: 8px 0 16px; background: none; opacity: 1; transform: none; }
body.customer-app #profileArtworkList .creator-artwork-copy strong { display: block; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; line-height: 1.5; color: #f0f3ed; }
body.customer-app #profileArtworkList .creator-artwork-copy > span { display: block; color: #aab5ad; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
body.customer-app #profileArtworkList .creator-artwork-actions { position: static; inset: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; min-width: 0; margin-top: auto; padding: 0; opacity: 1; transform: none; }
body.customer-app #profileArtworkList .creator-artwork-actions .mini-button { display: flex; justify-content: center; align-items: center; width: 100%; min-width: 0; min-height: 44px; padding: 10px 8px; border: 1px solid #455249; border-radius: 6px; font-size: 12px; line-height: 1.5; color: #d4ded6; background: transparent; box-shadow: none; white-space: normal; }
body.customer-app #profileArtworkList .creator-artwork-row:not(.profile-ai-asset-row) .creator-artwork-actions .mini-button:first-child { grid-column: 1 / -1; color: #f0f3ed; background: #26342b; border-color: #455b4a; }
body.customer-app #profileArtworkList .creator-artwork-actions .danger { color: #eda899; }
body.customer-app #profileArtworkList .selected-empty { grid-column: 1 / -1; padding: 40px 16px; min-height: 160px; }
body.customer-app #profileArtworkCard button:focus-visible,
body.customer-app #profileArtworkCard summary:focus-visible,
body.customer-app #creatorVerificationPosterBtn:focus-visible { outline: 2px solid #b8ff3d; outline-offset: 3px; }
@media (hover: hover) {
  body.customer-app #profileArtworkList .creator-artwork-actions .mini-button:hover { background: #304136; border-color: #91a081; }
  body.customer-app #profileInvitePosterBtn:hover { background: #26342b; }
}
@media (max-width: 960px) {
  body.customer-app #profileArtworkCard .profile-ai-benefits-main { grid-template-columns: minmax(0, 1fr) auto; gap: 16px; }
  body.customer-app #profileArtworkCard .profile-ai-balance { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  body.customer-app #creatorVerificationCard,
  body.customer-app #profileArtworkCard { padding: 18px; border-radius: 10px; }
  body.customer-app #creatorVerificationCard .creator-verification-head,
  body.customer-app #profileArtworkCard > .profile-section-head { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
  body.customer-app #creatorVerificationCard .creator-verification-head-actions { justify-content: space-between; gap: 12px; }
  body.customer-app #creatorVerificationCard h2 { font-size: 18px; }
  body.customer-app #profileArtworkCard > .profile-section-head h2 { font-size: 24px; }
  body.customer-app #profileArtworkCard > .profile-section-head span,
  body.customer-app #creatorVerificationSummary { font-size: 12px; line-height: 1.7; }
  body.customer-app #creatorVerificationPosterBtn { flex: 1; justify-content: center; max-width: 230px; }
  body.customer-app #profileArtworkCard .profile-artwork-upload-action { justify-content: center; width: 100%; }
  body.customer-app #profileArtworkCard .profile-ai-benefits { padding: 16px; margin-bottom: 24px; }
  body.customer-app #profileArtworkCard .profile-ai-benefits-main { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  body.customer-app #profileInvitePosterBtn { width: 100%; }
  body.customer-app #profileArtworkToolbar { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  body.customer-app #profileArtworkToolbar .profile-gallery-search { grid-column: 1; grid-row: auto; }
  body.customer-app #profileArtworkToolbar .profile-gallery-filters { flex-wrap: wrap; }
  body.customer-app #profileArtworkToolbar .profile-gallery-filters button { flex: 1; padding: 8px; font-size: 12px; white-space: nowrap; }
  body.customer-app #profileArtworkList { gap: 16px; }
}


/* Selected badge opacity: a quiet numeric control that reads at a glance. */
body.customer-app #toolLayer .layer-opacity-field > span { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
body.customer-app #toolLayer #layerOpacityLabel { color: #dfe7df; }
body.customer-app #toolLayer #layerOpacityValue { color: #b8ff3d; font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; font-variant-numeric: tabular-nums; }
body.customer-app #toolLayer #layerOpacity { accent-color: #b8ff3d; cursor: ew-resize; touch-action: pan-y; }
body.customer-app #toolLayer #layerOpacity:disabled { cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { body.customer-app #toolLayer #layerOpacityValue { transition: none; } }
