:root {
  --cp-bg: #050608;
  --cp-panel: #111216;
  --cp-panel-2: #17181d;
  --cp-line: rgba(255, 255, 255, 0.12);
  --cp-line-strong: rgba(231, 183, 94, 0.48);
  --cp-text: #f7f5f0;
  --cp-muted: #aaa9b0;
  --cp-gold: #e2ad4f;
  --cp-gold-soft: #f3d494;
  --cp-violet: #8f6cff;
  --cp-success: #8bcf9b;
  --cp-danger: #ff958c;
}

html,
body,
#main-content {
  background: var(--cp-bg) !important;
}

[hidden] {
  display: none !important;
}

.cp-page,
.cp-page * {
  box-sizing: border-box;
}

.cp-page {
  color: var(--cp-text);
  min-width: 0;
}

.cp-shell {
  display: grid;
  gap: 24px;
  min-width: 0;
  padding-inline: 0;
}

.cp-breadcrumbs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--cp-muted);
  font-size: 14px;
}

.cp-breadcrumbs a {
  color: inherit;
}

.cp-context-banner,
.cp-draft-resume {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(143, 108, 255, 0.34);
  border-radius: 6px;
  background: #11101a;
}

.cp-context-banner {
  color: #d7cffd;
}

.cp-context-banner-link {
  color: var(--cp-gold-soft);
  white-space: nowrap;
}

.cp-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(340px, 0.82fr) minmax(460px, 1.18fr);
  align-items: center;
  min-height: min(680px, calc(100svh - 150px));
  overflow: hidden;
  border: 1px solid var(--cp-line);
  border-radius: 6px;
  background: #07080b;
}

.cp-hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(90deg, #07080b 0 31%, rgba(7, 8, 11, 0.86) 47%, rgba(7, 8, 11, 0.08) 76%);
  pointer-events: none;
}

.cp-hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 22px;
  align-content: center;
  min-width: 0;
  padding: 52px 0 52px 56px;
}

.cp-hero-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cp-hero-brandmark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--cp-line-strong);
  border-radius: 6px;
  background: #17140f;
}

.cp-hero-brandmark img {
  width: 28px;
  height: 28px;
}

.cp-hero-brandcopy {
  display: grid;
  gap: 3px;
}

.cp-hero-brandcopy strong {
  font-size: 15px;
}

.cp-hero-brandcopy span {
  max-width: 320px;
  color: var(--cp-muted);
  font-size: 13px;
  line-height: 1.45;
}

.cp-hero-title {
  max-width: 650px;
  margin: 0;
  font-size: 68px;
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0;
}

.cp-hero-title span {
  color: var(--cp-gold);
}

.cp-hero-desc {
  max-width: 510px;
  margin: 0;
  color: #c2c1c7;
  font-size: 18px;
  line-height: 1.6;
}

.cp-hero-actions {
  display: flex;
  max-width: 390px;
}

.cp-btn,
.cp-link,
.cp-secondary-button,
.cp-tertiary-button,
.cp-preview-open,
.cp-dialog-primary,
.cp-dialog-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--cp-line);
  border-radius: 6px;
  background: #1b1c21;
  color: var(--cp-text);
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.cp-btn svg {
  width: 20px;
  height: 20px;
}

.cp-btn--primary,
.cp-link--primary,
.cp-dialog-primary {
  width: 100%;
  border-color: #efc979;
  background: var(--cp-gold);
  color: #15120c;
}

.cp-btn--quiet,
.cp-dialog-secondary {
  background: transparent;
}

.cp-btn:hover,
.cp-link:hover,
.cp-secondary-button:hover,
.cp-preview-open:hover {
  transform: translateY(-1px);
  border-color: var(--cp-line-strong);
}

.cp-btn:focus-visible,
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(143, 108, 255, 0.48);
  outline-offset: 2px;
}

.cp-hero-theatre {
  position: absolute;
  z-index: 0;
  inset: 0 0 0 30%;
}

.cp-hero-stage {
  position: absolute;
  inset: 0;
  margin: 0;
}

.cp-hero-stage > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cp-hero-garment-label,
.cp-hero-print-zone,
.cp-hero-logo-on-cloth {
  position: absolute;
  z-index: 1;
}

.cp-hero-garment-label {
  top: 24%;
  font-size: 14px;
  font-weight: 750;
  text-shadow: 0 2px 12px #000;
}

.cp-hero-garment-label--hoodie { left: 38%; }
.cp-hero-garment-label--tee { left: 59%; }
.cp-hero-garment-label--longsleeve { left: 78%; }

.cp-hero-print-zone {
  top: 43%;
  display: grid;
  place-items: center;
  width: 82px;
  height: 112px;
  border: 1px dashed var(--cp-gold-soft);
  background: rgba(6, 7, 10, 0.48);
  color: var(--cp-gold-soft);
}

.cp-hero-print-zone--hoodie { left: 40%; }
.cp-hero-print-zone--longsleeve { left: 78%; }
.cp-hero-print-zone__frame { display: none; }
.cp-hero-print-zone__frame--a4 { display: grid; place-items: center; }
.cp-hero-print-zone__frame span { font-size: 10px; }
.cp-hero-logo-on-cloth { display: none; }

.cp-draft-resume > div:first-child {
  display: grid;
  gap: 3px;
}

.cp-draft-resume small {
  color: var(--cp-gold-soft);
}

.cp-draft-resume span {
  color: var(--cp-muted);
}

.cp-draft-resume-actions {
  display: flex;
  gap: 10px;
}

.cp-studio-appbar {
  position: sticky;
  z-index: 40;
  top: 8px;
  display: grid;
  grid-template-columns: 44px 44px minmax(0, 1fr) 44px 44px;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 8px;
  border: 1px solid var(--cp-line);
  border-radius: 6px;
  background: rgba(12, 13, 16, 0.94);
  backdrop-filter: blur(16px);
}

.cp-icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--cp-line);
  border-radius: 6px;
  background: #1b1c21;
  color: var(--cp-text);
  font: inherit;
  font-size: 24px;
  cursor: pointer;
}

.cp-icon-button svg {
  width: 21px;
  height: 21px;
}

.cp-studio-appbar-progress {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.cp-studio-appbar-progress span {
  font-size: 13px;
  font-weight: 750;
}

.cp-studio-progress-track {
  height: 3px;
  overflow: hidden;
  background: #2b2c32;
}

.cp-studio-progress-track i {
  display: block;
  width: 16.666%;
  height: 100%;
  background: var(--cp-gold);
  transition: width 220ms ease;
}

.cp-configurator {
  min-width: 0;
}

.cp-build-strip-shell {
  margin-bottom: 16px;
  overflow: auto;
  scrollbar-width: none;
}

.cp-build-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(112px, 1fr));
  min-width: 720px;
  border: 1px solid var(--cp-line);
  background: #0d0e11;
}

.cp-build-strip button {
  display: grid;
  gap: 4px;
  min-height: 62px;
  padding: 10px 12px;
  border: 0;
  border-right: 1px solid var(--cp-line);
  background: transparent;
  color: var(--cp-muted);
  text-align: left;
  cursor: pointer;
}

.cp-build-strip button:last-child { border-right: 0; }
.cp-build-strip button.is-active { background: #1d1912; color: var(--cp-gold-soft); }
.cp-build-strip button.is-done { color: var(--cp-success); }
.cp-build-strip small { font-size: 12px; }
.cp-build-strip strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }

.cp-workbench {
  display: grid;
  grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
  align-items: start;
  gap: 28px;
  min-width: 0;
}

.cp-workbench.is-lobby-mode {
  grid-template-columns: minmax(0, 1fr);
}

.cp-stage-card {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 14px;
  min-width: 0;
  max-height: calc(100svh - 104px);
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--cp-line);
  border-radius: 6px;
  background: #0d0e11;
}

.cp-stage-card.is-hidden {
  display: none;
}

.cp-card-head,
.cp-dialog-head,
.cp-subhead,
.cp-stage-receipt-head,
.cp-stage-receipt-foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cp-card-head h2,
.cp-dialog-head h2,
.cp-step-head h2 {
  margin: 4px 0 0;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
}

.cp-card-eyebrow,
.cp-card-head small,
.cp-dialog-head small {
  color: var(--cp-gold-soft);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.cp-stage-view-switch {
  display: flex;
  padding: 3px;
  border: 1px solid var(--cp-line);
  border-radius: 6px;
  background: #17181d;
}

.cp-stage-view-switch button {
  min-height: 38px;
  padding: 8px 11px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--cp-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.cp-stage-view-switch button.is-active {
  background: var(--cp-text);
  color: #121318;
}

.cp-stage-view-switch img { display: none; }
.cp-preview-open { min-height: 38px; padding: 8px 10px; font-size: 12px; }

.cp-stage-frame,
.cp-preview-dialog-canvas {
  position: relative;
  aspect-ratio: 6 / 7;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--cp-line);
  border-radius: 6px;
  background: #15161b;
}

.cp-png-preview {
  position: absolute;
  inset: 0;
  isolation: isolate;
}

.cp-png-preview img,
.cp-png-preview-color,
.cp-png-preview-zones {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cp-png-preview img {
  z-index: 2;
  transition: opacity 150ms ease;
}

.cp-png-preview-color {
  z-index: 1;
  background: #151515;
  mask: var(--cp-preview-mask) center / contain no-repeat;
  -webkit-mask: var(--cp-preview-mask) center / contain no-repeat;
  opacity: 0.88;
  mix-blend-mode: color;
}

.cp-png-preview-zones {
  z-index: 4;
  pointer-events: none;
}

.cp-preview-zone {
  position: absolute;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px dashed var(--cp-gold-soft);
  background: rgba(11, 11, 14, 0.56);
  color: #fff3d6;
  text-align: center;
}

.cp-preview-zone strong { font-size: 12px; }
.cp-preview-zone span { font-size: 9px; }

.cp-stage-aura,
.cp-stage-orbit,
.cp-stage-placeholder,
.cp-garment-shell,
.cp-stage-guide,
.cp-stage-legend {
  display: none !important;
}

.cp-stage-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border: 1px solid var(--cp-line);
  background: var(--cp-line);
}

.cp-stage-copy {
  display: grid;
  gap: 4px;
  padding: 12px;
  background: #14151a;
}

.cp-stage-copy small,
.cp-stage-copy span {
  color: var(--cp-muted);
  font-size: 11px;
}

.cp-stage-receipt {
  display: grid;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--cp-line);
}

.cp-stage-receipt-head strong { display: block; font-size: 20px; }
.cp-stage-receipt-mode { color: var(--cp-gold-soft); font-size: 11px; }
.cp-stage-receipt-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; color: var(--cp-muted); font-size: 12px; }
.cp-stage-receipt-foot { color: var(--cp-muted); font-size: 11px; }

.cp-waterfall,
.cp-step-viewport,
.cp-studio-step {
  min-width: 0;
}

.cp-studio-step:not(.is-studio-active) {
  display: none;
}

.cp-manager-shortcut,
.cp-manager-inline-link,
.cp-tertiary-button--center {
  display: none !important;
}

.cp-step {
  display: none;
  min-width: 0;
  border: 1px solid var(--cp-line);
  border-radius: 6px;
  background: var(--cp-panel);
}

.cp-step.is-active {
  display: block;
}

.cp-step-summary {
  display: none;
}

.cp-step-body {
  display: grid;
  gap: 24px;
  padding: 28px;
}

.cp-step-head {
  display: grid;
  gap: 6px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--cp-line);
}

.cp-step-head p {
  max-width: 680px;
  margin: 0;
  color: var(--cp-muted);
  line-height: 1.55;
}

.cp-option-grid,
.cp-product-grid,
.cp-fit-grid,
.cp-artwork-services,
.cp-addon-grid,
.cp-zone-card-grid,
.cp-final-actions,
.cp-inline-fields,
.cp-sleeve-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cp-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.cp-option-card,
.cp-product-card,
.cp-fit-card,
.cp-artwork-service,
.cp-addon-card,
.cp-zone-card,
.cp-front-size-card,
.cp-mini-chip,
.cp-size-chip,
.cp-sleeve-side-card {
  display: grid;
  gap: 7px;
  min-width: 0;
  min-height: 64px;
  padding: 15px;
  border: 1px solid var(--cp-line);
  border-radius: 6px;
  background: #18191e;
  color: var(--cp-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.cp-option-card span,
.cp-product-card span,
.cp-fit-card span,
.cp-artwork-service-hint,
.cp-addon-card-hint,
.cp-addon-card-bonus {
  color: var(--cp-muted);
  font-size: 13px;
  line-height: 1.45;
}

.cp-option-card small,
.cp-product-card small {
  color: var(--cp-gold-soft);
  font-size: 10px;
  text-transform: uppercase;
}

.cp-option-card.is-active,
.cp-product-card.is-active,
.cp-fit-card.is-active,
.cp-artwork-service.is-active,
.cp-addon-card.is-active,
.cp-zone-card.is-active,
.cp-front-size-card.is-active,
.cp-mini-chip.is-active,
.cp-size-chip.is-active,
.cp-sleeve-side-card.is-active {
  border-color: var(--cp-gold);
  background: #231e15;
}

.cp-config-cluster,
.cp-config-block,
.cp-size-block {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.cp-config-cluster {
  gap: 20px;
}

.cp-subhead strong { font-size: 14px; }
.cp-subhead span { color: var(--cp-muted); font-size: 12px; text-align: right; }

.cp-fabric-row,
.cp-swatch-row,
.cp-front-size-row,
.cp-mini-chip-row,
.cp-sleeve-side-row,
.cp-size-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cp-fabric-card {
  flex: 1 1 180px;
}

.cp-swatch {
  position: relative;
  width: 48px;
  height: 48px;
  border: 2px solid transparent;
  border-radius: 50%;
  background: var(--swatch, #151515);
  cursor: pointer;
}

.cp-swatch.is-active { border-color: var(--cp-gold); box-shadow: 0 0 0 3px #111216; }
.cp-swatch span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.cp-zone-hint,
.cp-status-box,
.cp-size-warning,
.cp-preview-info {
  padding: 12px 14px;
  border-left: 3px solid var(--cp-violet);
  background: #17151f;
  color: #d0cce0;
  font-size: 13px;
  line-height: 1.5;
}

.cp-field {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: var(--cp-text);
  font-size: 13px;
  font-weight: 700;
}

.cp-field input,
.cp-field textarea,
.cp-qty-bar input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid var(--cp-line);
  border-radius: 6px;
  background: #0d0e11;
  color: var(--cp-text);
  font: inherit;
}

.cp-field textarea { resize: vertical; }

.cp-dropzone-grid,
.cp-size-matrix {
  display: grid;
  gap: 10px;
}

.cp-dropzone {
  display: grid;
  gap: 8px;
  min-height: 112px;
  padding: 16px;
  border: 1px dashed rgba(255,255,255,.25);
  border-radius: 6px;
  background: #0d0e11;
}

.cp-dropzone-empty { margin: 0; color: var(--cp-muted); }

.cp-step-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 4px;
}

.cp-step-actions .cp-link--primary { width: auto; margin-left: auto; }

.cp-qty-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cp-qty-bar-counter {
  display: grid;
  grid-template-columns: 48px 100px 48px;
}

.cp-qty-step {
  border: 1px solid var(--cp-line);
  background: #1b1c21;
  color: var(--cp-text);
  font-size: 22px;
}

.cp-qty-bar input { border-radius: 0; text-align: center; }
.cp-qty-bar-meta { display: grid; text-align: right; }
.cp-qty-bar-meta small { color: var(--cp-muted); }

.cp-addon-card--gift {
  grid-template-columns: 56px minmax(0, 1fr);
}

.cp-addon-card-icon svg { width: 48px; height: 48px; }
.cp-addon-card-body { display: grid; gap: 5px; }
.cp-addon-card-badge { color: var(--cp-gold-soft); }

.cp-tg-verify-shell {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--cp-line);
}

.cp-tg-verify-cta,
.cp-tg-verify-state {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cp-tg-verify-cta {
  min-height: 48px;
  border: 1px solid #279fd3;
  border-radius: 6px;
  background: #102331;
  color: #eaf8ff;
}

.cp-tg-verify-cta svg { width: 20px; }
.cp-tg-verify-hint { color: var(--cp-muted); font-size: 12px; }

.cp-final-button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 14px;
  border: 1px solid var(--cp-line);
  border-radius: 6px;
  background: #1a1b20;
  color: var(--cp-text);
  text-align: left;
}

.cp-final-button--primary { border-color: var(--cp-gold); background: #241e14; }
.cp-final-button-icon svg { width: 24px; height: 24px; }
.cp-final-button-text { display: grid; gap: 3px; }
.cp-final-button-text small { color: var(--cp-muted); }
.is-disabled { opacity: .48; }

.cp-mobile-action-bar {
  position: fixed;
  z-index: 100;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
  grid-template-columns: minmax(0, .8fr) minmax(150px, 1.2fr);
  gap: 10px;
  min-height: 78px;
  padding: 10px max(12px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  border-top: 1px solid var(--cp-line);
  background: rgba(9, 10, 12, 0.96);
  backdrop-filter: blur(16px);
}

.cp-mobile-bottom-bar-info { display: grid; align-content: center; min-width: 0; }
.cp-mobile-bottom-bar-info small,
.cp-mobile-bar-meta { color: var(--cp-muted); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-mobile-bottom-bar-info strong { overflow: hidden; font-size: 18px; text-overflow: ellipsis; white-space: nowrap; }
.cp-mobile-bottom-bar-action { border: 0; border-radius: 6px; background: var(--cp-gold); color: #15120c; font: inherit; font-weight: 800; }

.cp-dialog {
  width: min(560px, calc(100% - 24px));
  max-height: calc(100svh - 24px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--cp-line-strong);
  border-radius: 6px;
  background: #111216;
  color: var(--cp-text);
}

.cp-dialog::backdrop { background: rgba(0, 0, 0, .76); backdrop-filter: blur(6px); }
.cp-dialog-shell { display: grid; gap: 18px; padding: 22px; }
.cp-dialog-shell > p { margin: 0; color: var(--cp-muted); line-height: 1.55; }
.cp-dialog-primary,
.cp-dialog-secondary { width: 100%; }
.cp-cart-review-number { color: var(--cp-gold-soft); font-size: 18px; font-weight: 800; }

.cp-preview-dialog {
  width: min(780px, calc(100% - 24px));
}

.cp-preview-dialog-shell {
  grid-template-columns: 1fr auto;
}

.cp-preview-dialog-shell .cp-dialog-head,
.cp-preview-dialog-canvas,
.cp-preview-info {
  grid-column: 1 / -1;
}

.cp-preview-dialog-canvas {
  width: min(100%, 520px);
  margin-inline: auto;
}

.cp-support-stack {
  display: grid;
  gap: 0;
  margin-top: 36px;
  border-top: 1px solid var(--cp-line);
}

.cp-support-section {
  padding-block: 32px;
  border-bottom: 1px solid var(--cp-line);
}

.cp-support-section h2 { max-width: 800px; font-size: 28px; }
.cp-support-section p,
.cp-support-section li { max-width: 920px; color: #c1c0c5; line-height: 1.7; }
.cp-faq-list { display: grid; border-top: 1px solid var(--cp-line); }
.cp-faq-item { border-bottom: 1px solid var(--cp-line); }
.cp-faq-item summary { padding: 18px 0; cursor: pointer; font-weight: 750; }
.cp-link-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cp-link-card { display: grid; gap: 8px; padding: 18px; border: 1px solid var(--cp-line); border-radius: 6px; color: var(--cp-text); text-decoration: none; }

@media (max-width: 1100px) {
  .cp-hero-title { font-size: 56px; }
  .cp-hero { grid-template-columns: minmax(320px, .9fr) minmax(400px, 1.1fr); }
  .cp-workbench { grid-template-columns: minmax(0, 1fr); }
  .cp-stage-card { position: static; max-height: none; }
  .cp-stage-card .cp-stage-frame,
  .cp-stage-card .cp-stage-meta,
  .cp-stage-card .cp-stage-guide,
  .cp-stage-card .cp-stage-legend { display: none !important; }
  .cp-stage-card .cp-card-head { align-items: center; }
}

@media (max-width: 760px) {
  #main-content {
    width: 100%;
    max-width: none;
    padding: 12px !important;
  }

  .cp-breadcrumbs { margin-bottom: 10px; font-size: 12px; }
  .cp-shell { gap: 12px; }
  .cp-context-banner { align-items: flex-start; flex-direction: column; }

  .cp-hero {
    display: block;
    min-height: min(720px, calc(100svh - 88px));
  }

  .cp-hero::after {
    background: linear-gradient(180deg, #07080b 0 46%, rgba(7, 8, 11, .82) 62%, rgba(7, 8, 11, .05) 100%);
  }

  .cp-hero-copy {
    align-content: start;
    gap: 15px;
    padding: 24px 20px;
  }

  .cp-hero-title {
    max-width: 360px;
    font-size: 46px;
    line-height: 1;
  }

  .cp-hero-desc {
    max-width: 360px;
    font-size: 15px;
    line-height: 1.5;
  }

  .cp-hero-actions { max-width: none; }
  .cp-hero-actions .cp-btn { width: 100%; }
  .cp-hero-theatre { inset: 42% 0 0; }
  .cp-hero-stage > img { object-position: center bottom; }
  .cp-hero-garment-label { top: 23%; font-size: 11px; }
  .cp-hero-garment-label--hoodie { left: 23%; }
  .cp-hero-garment-label--tee { left: 49%; }
  .cp-hero-garment-label--longsleeve { left: 72%; }
  .cp-hero-print-zone { top: 47%; width: 54px; height: 76px; }
  .cp-hero-print-zone--hoodie { left: 29%; }
  .cp-hero-print-zone--longsleeve { left: 72%; }

  .cp-draft-resume,
  .cp-draft-resume-actions { align-items: stretch; flex-direction: column; }
  .cp-draft-resume-actions { display: grid; grid-template-columns: 1fr 1fr; }

  body.cp-studio-active { overflow-x: hidden; }
  body.cp-studio-active > header:not(.cp-studio-appbar),
  body.cp-studio-active > footer,
  body.cp-studio-active > .language-switcher,
  body.cp-studio-active .cp-breadcrumbs,
  body.cp-studio-active .cp-context-banner,
  body.cp-studio-active .cp-hero,
  body.cp-studio-active .cp-draft-resume,
  body.cp-studio-active .cp-support-stack { display: none !important; }
  body.cp-studio-active #main-content { padding-top: 6px !important; padding-bottom: 102px !important; }

  .cp-studio-appbar { top: 6px; }
  .cp-build-strip-shell { display: none !important; }
  .cp-stage-card { display: none; }
  .cp-step-body { gap: 18px; padding: 20px 16px; }
  .cp-step-head h2 { font-size: 23px; }
  .cp-option-grid,
  .cp-product-grid,
  .cp-fit-grid,
  .cp-artwork-services,
  .cp-addon-grid,
  .cp-zone-card-grid,
  .cp-final-actions,
  .cp-inline-fields,
  .cp-sleeve-editor-grid { grid-template-columns: minmax(0, 1fr); }
  .cp-option-card,
  .cp-product-card { min-height: 92px; }
  .cp-subhead { align-items: flex-start; flex-direction: column; }
  .cp-subhead span { text-align: left; }
  .cp-step-actions { display: none; }
  .cp-mobile-action-bar { display: grid; }
  .cp-link-grid { grid-template-columns: minmax(0, 1fr); }

  .cp-preview-dialog {
    width: 100%;
    max-width: none;
    height: 100svh;
    max-height: 100svh;
    border: 0;
    border-radius: 0;
  }

  .cp-preview-dialog-shell {
    min-height: 100%;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    padding: 12px;
  }

  .cp-preview-dialog-canvas { width: 100%; max-height: calc(100svh - 210px); }
}

@media (max-width: 380px) {
  .cp-hero-title { font-size: 40px; }
  .cp-hero-copy { padding: 20px 16px; }
  .cp-studio-appbar { grid-template-columns: 40px 40px minmax(0, 1fr) 40px 40px; gap: 6px; }
  .cp-icon-button { width: 40px; height: 40px; }
  .cp-step-body { padding-inline: 12px; }
  .cp-draft-resume-actions { grid-template-columns: minmax(0, 1fr); }
}

/* Responsive stability pass: keep header, breadcrumbs, scene and controls in
   their own layout planes on iOS/Android safe-area viewports. */
.cp-breadcrumbs {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .55rem;
  min-height: 32px;
  margin: .35rem 0 .8rem;
  padding: .35rem .25rem;
  overflow: visible;
}
.cp-hero { width: 100%; min-height: clamp(540px, min(70svh, 720px), 720px); overflow: hidden; }
.cp-hero-copy, .cp-hero-theatre { min-width: 0; }
.cp-stage-frame, .cp-png-preview, .cp-hero-stage { max-width: 100%; }
.cp-studio-appbar { grid-template-columns: 44px 44px minmax(0, 1fr) 44px 44px; }
.cp-contact-channel-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; }
.cp-contact-channel {
  display: grid;
  min-width: 0;
  min-height: 78px;
  place-items: center;
  gap: .45rem;
  padding: .7rem .45rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  color: var(--cp-text);
  font: inherit;
  font-size: .72rem;
  font-weight: 750;
  cursor: pointer;
}
.cp-contact-channel svg { width: 25px; height: 25px; color: var(--cp-gold-soft); }
.cp-contact-channel.is-active { border-color: var(--cp-gold); background: rgba(232,191,108,.14); box-shadow: 0 0 0 1px rgba(232,191,108,.2); }
.cp-step.has-validation-error { border-color: rgba(255,149,140,.75); box-shadow: 0 0 0 3px rgba(255,95,88,.1); }
.cp-step.has-validation-error .cp-step-head h2::after { content: "!"; display: inline-grid; width: 1.35em; height: 1.35em; margin-inline-start: .45rem; place-items: center; border-radius: 50%; background: rgba(255,95,88,.16); color: #ffb0a6; font-size: .55em; font-weight: 800; vertical-align: .18em; }
.cp-fleece-toggle { gap: .45rem; }
.cp-fleece-switch { display: grid; grid-template-columns: auto minmax(72px, 1fr) auto; align-items: center; gap: .65rem; width: 100%; min-height: 54px; padding: .5rem .7rem; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; background: rgba(255,255,255,.035); color: var(--cp-text); font: inherit; cursor: pointer; }
.cp-fleece-switch-label { color: rgba(247,245,239,.7); font-size: .7rem; font-weight: 750; white-space: nowrap; }
.cp-fleece-switch-track { position: relative; display: block; height: 28px; border-radius: 999px; background: linear-gradient(90deg, rgba(255,255,255,.16), rgba(232,191,108,.28)); }
.cp-fleece-switch-thumb { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #f5d38e; box-shadow: 0 3px 10px rgba(0,0,0,.25); transition: transform 180ms ease; }
.cp-fleece-switch[aria-checked="true"] .cp-fleece-switch-thumb { transform: translateX(44px); }
.cp-size-details span { white-space: normal; line-height: 1.3; }

/* Controls stay readable on narrow phones: the fleece switch has a fixed
   centre track and both labels may wrap instead of pushing the stage wider. */
.cp-fleece-switch {
  grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr);
  gap: .45rem;
}
.cp-fleece-switch-label {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
  text-align: center;
}
.cp-fleece-switch-track { width: 56px; }
.cp-fleece-switch[aria-checked="true"] .cp-fleece-switch-thumb { transform: translateX(28px); }

.cp-size-details { align-content: center; }
.cp-size-format { color: var(--cp-text); font-size: .94rem; line-height: 1; }
.cp-size-range { color: rgba(247,245,239,.62); font-size: .68rem; line-height: 1.3; white-space: normal !important; }
.cp-size-price { color: var(--cp-gold-soft); font-size: .66rem; font-style: normal; font-weight: 800; line-height: 1.2; white-space: normal; }
.cp-size-matrix-cell { display: grid; grid-template-columns: minmax(0, .5fr) minmax(0, 1fr); align-items: center; gap: .65rem; min-width: 0; padding: .65rem .75rem; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: rgba(255,255,255,.03); }
.cp-size-matrix-label { color: var(--cp-gold-soft); font-weight: 800; }
.cp-size-stepper { display: grid; grid-template-columns: 36px minmax(2rem, 1fr) 36px; align-items: center; gap: .35rem; }
.cp-size-step { min-height: 36px; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; background: rgba(255,255,255,.05); color: var(--cp-text); font: inherit; font-size: 1.1rem; cursor: pointer; }
.cp-size-step:disabled { opacity: .32; cursor: not-allowed; }
.cp-size-stepper strong { text-align: center; font-variant-numeric: tabular-nums; }
.cp-size-matrix-cell.is-validation-target,
.cp-dropzone.is-validation-target,
.cp-field.is-validation-target,
.cp-size-preset.is-validation-target,
.cp-zone-card.is-validation-target { border-color: var(--cp-danger); box-shadow: 0 0 0 3px rgba(255,158,145,.14); }
.cp-inline-validation { display: block; margin-top: .4rem; color: #ffb0a6; font-size: .68rem; line-height: 1.35; }
.cp-mini-chip--fabric:disabled { border-color: rgba(255,255,255,.08); background: rgba(255,255,255,.025); color: rgba(247,245,239,.38); filter: grayscale(.7); cursor: not-allowed; }

@media (max-width: 760px) {
  .cp-breadcrumbs { margin-top: calc(72px + env(safe-area-inset-top)); margin-bottom: .55rem; }
  .cp-hero { min-height: min(680px, calc(100svh - 108px)); margin-top: .25rem; }
  .cp-contact-channel-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; }
  .cp-contact-channel { min-height: 72px; font-size: .66rem; }
  body.cp-studio-active .cp-studio-appbar { top: max(6px, env(safe-area-inset-top)); }
  .cp-studio-appbar { grid-template-columns: 40px 40px minmax(0, 1fr) 40px 40px; gap: .35rem; }
}

@media (max-width: 380px) {
  .cp-contact-channel { min-height: 68px; padding-inline: .25rem; }
  .cp-contact-channel svg { width: 22px; height: 22px; }
  .cp-fleece-switch { gap: .35rem; padding-inline: .45rem; }
  .cp-fleece-switch-label { font-size: .61rem; }
  .cp-fleece-switch[aria-checked="true"] .cp-fleece-switch-thumb { transform: translateX(28px); }
  .cp-size-preset { min-height: 104px; }
  .cp-size-icon { width: 34px; height: 40px; }
  .cp-size-format { font-size: .84rem; }
}

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

/* B2B brief, own garment handoff and focused placement controls. */
.cp-brand-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cp-brand-field-grid--contact { align-items: end; }
.cp-brand-field-grid .cp-field b,
.cp-brand-brief .cp-field > span b { color: var(--cp-gold-soft); font-weight: 800; }
.cp-brand-channel-list,
.cp-brand-product-list { display: flex; flex-wrap: wrap; gap: 7px; }
.cp-brand-channel,
.cp-brand-product { min-height: 40px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; background: rgba(255,255,255,.035); color: var(--cp-text); font: inherit; font-size: .72rem; cursor: pointer; transition: border-color 180ms ease, background 180ms ease, transform 180ms ease; }
.cp-brand-channel:hover,
.cp-brand-product:hover { transform: translateY(-1px); border-color: rgba(246,220,164,.52); }
.cp-brand-channel.is-active,
.cp-brand-product.is-active { border-color: var(--cp-gold); background: rgba(232,191,108,.16); color: var(--cp-gold-soft); box-shadow: 0 0 0 1px rgba(232,191,108,.2); }
.cp-brand-brief select { width: 100%; min-height: 50px; padding: 0 13px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(7,7,10,.7); color: var(--cp-text); font: inherit; }
.cp-brand-brief select:focus { border-color: var(--cp-gold); outline: none; }
.cp-brand-brief .cp-manager-quick-link { grid-template-columns: minmax(0, 1fr) 20px; }
.cp-brand-brief .cp-manager-quick-link > span:first-child { min-width: 0; }
.cp-brand-brief .cp-manager-quick-link strong,
.cp-brand-brief .cp-manager-quick-link small { overflow-wrap: anywhere; }
.cp-brand-tier-rail { display: flex; gap: 9px; margin-top: 2px; padding: 3px 2px 9px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x proximity; scrollbar-width: thin; }
.cp-brand-tier-rail::before { display: none; }
.cp-brand-tier { flex: 0 0 min(210px, 24%); scroll-snap-align: start; }
.cp-brand-tier small { white-space: normal; }
.cp-custom-zone-panel { display: grid; gap: 12px; padding: 16px; border: 1px solid rgba(246,220,164,.28); border-radius: 16px; background: linear-gradient(145deg, rgba(232,191,108,.1), rgba(111,75,168,.06)); }
.cp-custom-location-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.cp-custom-location { display: grid; gap: 3px; min-width: 0; min-height: 64px; padding: 9px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; background: rgba(255,255,255,.035); color: var(--cp-text); font: inherit; text-align: left; cursor: pointer; }
.cp-custom-location strong { font-size: .72rem; }
.cp-custom-location small { color: var(--cp-muted); font-size: .6rem; line-height: 1.3; }
.cp-custom-location.is-active { border-color: var(--cp-gold); background: rgba(232,191,108,.16); }
.cp-zone-card-grid > .cp-zone-card[data-choice-value="custom"] { grid-column: 1 / -1; }
.cp-zone-card[data-choice-value="custom"] { min-height: 136px; }
.cp-zone-card[data-choice-value="custom"] .cp-zone-card-hint { max-width: 42rem; }
@media (min-width: 761px) {
  .cp-zone-card[data-choice-value="custom"] {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 12px;
  }
  .cp-zone-card[data-choice-value="custom"] .cp-zone-card-icon { grid-row: 1 / -1; }
  .cp-zone-card[data-choice-value="custom"] .cp-zone-card-title,
  .cp-zone-card[data-choice-value="custom"] .cp-zone-card-hint { grid-column: 2; }
  .cp-zone-card[data-choice-value="custom"] .cp-zone-card-badge { grid-column: 3; grid-row: 1 / -1; align-self: center; }
}
.cp-custom-size-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cp-custom-size-preset { min-width: 0; }
.cp-custom-size-preset .cp-size-details span { white-space: normal; }
.cp-custom-size-preset .cp-size-details em { color: var(--cp-gold-soft); font-size: .62rem; font-style: normal; }
.cp-own-garment-color { display: grid; gap: 8px; padding: 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 13px; background: rgba(255,255,255,.035); }
.cp-own-color-picker { display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: center; gap: 12px; }
.cp-own-color-picker input[type="color"] { width: 58px; height: 42px; padding: 3px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; background: transparent; cursor: pointer; }
.cp-own-color-picker input[type="range"] { width: 100%; height: 12px; appearance: none; border-radius: 999px; background: linear-gradient(90deg, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); }
.cp-own-color-picker input[type="range"]::-webkit-slider-thumb { width: 22px; height: 22px; appearance: none; border: 2px solid #fff; border-radius: 50%; background: #17151a; box-shadow: 0 2px 7px rgba(0,0,0,.35); cursor: pointer; }
.cp-own-garment-color > small { color: var(--cp-muted); font-size: .68rem; line-height: 1.4; }
.cp-validation-group { display: grid; gap: 8px; }
.is-validation-group { padding: 9px; border: 1px solid rgba(255,176,166,.68); border-radius: 15px; background: rgba(255,114,100,.05); animation: cp-validation-pulse 900ms ease-out 1; }
.is-validation-group > .cp-inline-validation--group { grid-column: 1 / -1; order: -1; margin: 0 2px .25rem; }
.is-validation-group > .cp-zone-card,
.is-validation-group > .cp-artwork-service,
.is-validation-group > .cp-fit-card,
.is-validation-group > .cp-mini-chip { border-color: rgba(255,176,166,.58); }
.cp-inline-validation--group { padding: 8px 10px; border-left: 3px solid var(--cp-danger); border-radius: 8px; background: rgba(255,114,100,.1); color: #ffc0b8; font-size: .74rem; font-weight: 700; }
@keyframes cp-validation-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,158,145,.4); } 100% { box-shadow: 0 0 0 9px rgba(255,158,145,0); } }
.cp-sleeve-side-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cp-sleeve-side-card { min-width: 0; }
.cp-sleeve-editor-grid { align-items: start; }
.cp-sleeve-editor { min-width: 0; padding: 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: rgba(255,255,255,.025); }
.cp-sleeve-editor .cp-front-size-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cp-sleeve-editor .cp-size-preset { min-width: 0; }
.cp-sleeve-editor .cp-size-details span { white-space: normal; }
.cp-sleeve-editor .cp-size-icon svg { width: 42px; height: 42px; color: var(--cp-gold-soft); }

@media (max-width: 900px) {
  .cp-brand-tier { flex-basis: 190px; }
  .cp-custom-location-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cp-custom-size-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .cp-brand-field-grid { grid-template-columns: minmax(0, 1fr); }
  .cp-brand-tier { flex-basis: 78vw; }
  .cp-custom-location-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cp-custom-size-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cp-sleeve-side-row { grid-template-columns: minmax(0, 1fr); }
  .cp-sleeve-editor .cp-front-size-row { grid-template-columns: minmax(0, 1fr); }
}

/* Contextual product details stay informative without behaving like a choice. */
.cp-product-detail-note {
  display: grid;
  gap: 4px;
  margin: 14px 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-left: 3px solid var(--cp-gold-soft, #d4b483);
  border-radius: 10px;
  background: rgba(255,255,255,.035);
}
.cp-product-detail-note strong { font-size: 13px; color: var(--cp-text, #f5f0e8); }
.cp-product-detail-note span { font-size: 12px; line-height: 1.5; color: var(--cp-muted, #a9a19a); }
.cp-own-garment-options { display: grid; gap: 10px; margin: 14px 0 18px; padding: 14px; border-radius: 10px; background: rgba(190,157,104,.08); border: 1px solid rgba(190,157,104,.24); }
.cp-shipping-choice-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.cp-shipping-choice { display: grid; gap: 3px; text-align: left; padding: 11px 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 9px; color: inherit; background: rgba(255,255,255,.03); cursor: pointer; }
.cp-shipping-choice.is-active { border-color: var(--cp-gold-soft, #d4b483); background: rgba(212,180,131,.14); }
.cp-shipping-choice strong { font-size: 13px; }
.cp-shipping-choice small, .cp-own-delivery-note { color: var(--cp-muted, #a9a19a); font-size: 11px; line-height: 1.4; }
.cp-own-delivery-note { margin: 0; }
.cp-brand-brief { display: grid; gap: 12px; margin-top: 16px; padding: 16px; border: 1px solid rgba(212,180,131,.28); border-radius: 12px; background: linear-gradient(145deg, rgba(212,180,131,.13), rgba(255,255,255,.035)); }
.cp-brand-brief-head { display: grid; gap: 3px; }
.cp-brand-brief-head strong { font-size: 15px; }
.cp-brand-brief-head span { color: var(--cp-muted, #a9a19a); font-size: 12px; line-height: 1.45; }
.cp-brand-tier-note { min-height: 18px; color: var(--cp-gold-soft, #d4b483); font-size: 12px; font-weight: 600; }
.cp-brand-tier-rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; position: relative; margin-top: 2px; }
.cp-brand-tier-rail::before { content: ""; position: absolute; top: 16px; right: 10%; left: 10%; height: 2px; background: rgba(212,180,131,.16); }
.cp-brand-tier { position: relative; z-index: 1; display: grid; gap: 3px; min-width: 0; padding: 9px 8px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; background: rgba(10,10,13,.72); color: var(--cp-muted); transition: border-color 180ms ease, background 180ms ease, transform 180ms ease; }
.cp-brand-tier-marker { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid rgba(212,180,131,.34); border-radius: 50%; background: #15131a; color: var(--cp-gold-soft); font-size: 10px; font-weight: 850; }
.cp-brand-tier strong { overflow: hidden; color: var(--cp-text); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.cp-brand-tier small { overflow: hidden; color: inherit; font-size: 10px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.cp-brand-tier.is-active { border-color: rgba(212,180,131,.48); background: rgba(212,180,131,.1); color: var(--cp-gold-soft); }
.cp-brand-tier.is-current { transform: translateY(-2px); border-color: var(--cp-gold); box-shadow: 0 0 0 1px rgba(232,191,108,.22), 0 9px 18px rgba(0,0,0,.18); }
.cp-brand-tier.is-current .cp-brand-tier-marker { background: var(--cp-gold); color: #1a140d; }
.cp-addon-card-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.cp-addon-card-topline strong { min-width: 0; font-size: .88rem; }
.cp-addon-card-control { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 7px; color: var(--cp-muted); }
.cp-addon-card-control-text { font-size: .62rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.cp-addon-card-switch { display: inline-flex; align-items: center; width: 42px; height: 24px; padding: 3px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.08); transition: background 180ms ease, border-color 180ms ease; }
.cp-addon-card-switch-thumb { width: 16px; height: 16px; border-radius: 50%; background: rgba(247,245,239,.7); box-shadow: 0 2px 5px rgba(0,0,0,.25); transition: transform 180ms ease, background 180ms ease; }
.cp-addon-card.is-active .cp-addon-card-switch { border-color: rgba(232,191,108,.68); background: rgba(232,191,108,.28); }
.cp-addon-card.is-active .cp-addon-card-switch-thumb { transform: translateX(18px); background: var(--cp-gold-soft); }
.cp-addon-card.is-auto-included .cp-addon-card-control { opacity: .75; }
.cp-brand-manager-link { margin-top: 0; }
.cp-garment-photo-field input[type="file"] { width: 100%; }
.cp-addon-toggle-state { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; color: var(--cp-muted, #a9a19a); font-size: 11px; }
.cp-addon-card.is-active .cp-addon-toggle-state { color: var(--cp-gold-soft, #d4b483); }
.cp-post-submit-shell { max-width: 520px; text-align: center; }
.cp-post-submit-mark { display: grid; width: 58px; height: 58px; margin: 0 auto 14px; place-items: center; border: 1px solid rgba(155,210,149,.55); border-radius: 50%; background: rgba(155,210,149,.14); color: var(--cp-success); font-size: 2rem; font-weight: 850; box-shadow: 0 0 0 7px rgba(155,210,149,.06); }
.cp-post-submit-eyebrow { color: var(--cp-gold-soft); font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.cp-post-submit-copy { margin: .7rem auto 0; max-width: 38rem; color: var(--cp-muted); line-height: 1.55; }
.cp-post-submit-number { margin: .8rem auto 0; color: var(--cp-gold-soft); font-size: .78rem; font-weight: 800; }
.cp-post-submit-actions { display: grid; gap: .6rem; margin-top: 1.2rem; }
.cp-post-submit-actions > a { width: 100%; justify-content: center; text-align: center; }
.cp-post-submit-close { width: 100%; margin-top: .65rem; }

@media (max-width: 640px) {
  .cp-shipping-choice-list { grid-template-columns: 1fr; }
  .cp-brand-brief { padding: 13px; }
  .cp-brand-tier-rail { gap: 5px; }
  .cp-brand-tier { padding-inline: 6px; }
  .cp-brand-tier strong { font-size: 10px; }
  .cp-brand-tier small { font-size: 9px; }
  .cp-addon-card-topline { align-items: flex-start; }
  .cp-addon-card-control { gap: 5px; }
  .cp-addon-card-control-text { font-size: .56rem; }
}

/* -------------------------------------------------------------------------
   Cinematic studio layer
   The eight-stage flow remains the interaction contract. This layer gives
   the restored selection flow the material depth and theatre it had before
   the guided-studio pass, without reintroducing duplicate actions.
   ------------------------------------------------------------------------- */
:root {
  --cp-bg: #050507;
  --cp-panel: rgba(20, 19, 24, .84);
  --cp-panel-strong: rgba(28, 26, 32, .94);
  --cp-panel-soft: rgba(255, 255, 255, .045);
  --cp-line: rgba(255, 255, 255, .11);
  --cp-line-strong: rgba(232, 191, 108, .62);
  --cp-text: #f7f5ef;
  --cp-muted: rgba(247, 245, 239, .66);
  --cp-gold: #e5b660;
  --cp-gold-soft: #f6dca4;
  --cp-violet: #9077ec;
  --cp-success: #9bd295;
  --cp-danger: #ff9e91;
  --cp-shadow: 0 28px 90px rgba(0, 0, 0, .38);
  --cp-ease: cubic-bezier(.16, 1, .3, 1);
  --cp-mobile-appbar-clearance: calc(78px + env(safe-area-inset-top));
  --cp-mobile-bar-clearance: calc(84px + env(safe-area-inset-bottom));
}

html,
body,
#main-content {
  background:
    radial-gradient(70rem 46rem at 75% -12%, rgba(111, 75, 168, .13), transparent 60%),
    radial-gradient(42rem 32rem at 2% 18%, rgba(218, 167, 82, .07), transparent 64%),
    var(--cp-bg) !important;
}

.cp-page {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-bottom: 3rem;
}

.cp-page::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: .16;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .027) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .027) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000, transparent 74%);
}

.cp-shell { gap: 1.5rem; }

.cp-breadcrumbs {
  margin-bottom: 0;
  padding-inline: .25rem;
  color: rgba(247, 245, 239, .5);
  font-size: .78rem;
  letter-spacing: .01em;
}

.cp-breadcrumbs a { color: rgba(247, 245, 239, .73); }

.cp-context-banner,
.cp-draft-resume {
  border: 1px solid rgba(232, 191, 108, .22);
  border-radius: 18px;
  background: linear-gradient(110deg, rgba(42, 31, 17, .8), rgba(20, 18, 26, .84));
  box-shadow: 0 16px 42px rgba(0, 0, 0, .18);
}

/* Hero: real garment stage remains the visual anchor. */
.cp-hero {
  grid-template-columns: minmax(300px, .78fr) minmax(480px, 1.22fr);
  min-height: clamp(550px, 70svh, 720px);
  border: 1px solid rgba(232, 191, 108, .25);
  border-radius: 28px;
  background:
    radial-gradient(44rem 28rem at 80% 15%, rgba(111, 75, 168, .22), transparent 68%),
    linear-gradient(110deg, rgba(8, 8, 11, .98) 0%, rgba(10, 9, 13, .94) 42%, rgba(15, 12, 18, .72) 100%);
  box-shadow: 0 32px 110px rgba(0, 0, 0, .4), inset 0 1px rgba(255, 255, 255, .04);
}

.cp-hero::before {
  z-index: 1;
  inset: 7%;
  border: 1px solid rgba(232, 191, 108, .18);
  border-radius: 50%;
  opacity: .7;
  background: radial-gradient(circle, transparent 45%, rgba(151, 118, 218, .09) 68%, transparent 71%);
  box-shadow: 0 0 0 32px rgba(144, 119, 236, .018), 0 0 90px rgba(144, 119, 236, .15);
  mask-image: linear-gradient(90deg, transparent 0 18%, #000 42% 86%, transparent);
}

.cp-hero::after {
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 7, .98) 0%, rgba(5, 5, 7, .79) 35%, rgba(5, 5, 7, .1) 75%),
    linear-gradient(180deg, transparent 66%, rgba(5, 5, 7, .78));
}

.cp-hero-copy { padding: 4rem 0 4rem 4rem; gap: 1.35rem; }

.cp-hero-brandmark {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(232, 191, 108, .4);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(232, 191, 108, .2), rgba(111, 75, 168, .16));
  box-shadow: 0 14px 35px rgba(0, 0, 0, .3), 0 0 24px rgba(232, 191, 108, .08);
}

.cp-hero-brandmark img { width: 31px; height: 31px; }
.cp-hero-brandcopy strong { font-size: .98rem; letter-spacing: .02em; }
.cp-hero-brandcopy span { color: rgba(247, 245, 239, .56); font-size: .8rem; }

.cp-hero-title {
  max-width: 9ch;
  font-size: clamp(3.8rem, 6.4vw, 6.5rem);
  line-height: .9;
  text-shadow: 0 22px 48px rgba(0, 0, 0, .42);
}

.cp-hero-title span {
  color: var(--cp-gold);
  text-shadow: 0 0 32px rgba(232, 191, 108, .2);
}

.cp-hero-desc { max-width: 31rem; color: rgba(247, 245, 239, .66); font-size: 1.02rem; line-height: 1.55; }
.cp-hero-actions { max-width: 18rem; }

.cp-btn,
.cp-link,
.cp-secondary-button,
.cp-tertiary-button,
.cp-preview-open,
.cp-dialog-primary,
.cp-dialog-secondary {
  min-height: 50px;
  border-radius: 15px;
  border-color: rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .045);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .16);
  transition: transform 220ms var(--cp-ease), border-color 220ms var(--cp-ease), background 220ms var(--cp-ease), box-shadow 220ms var(--cp-ease);
}

.cp-btn--primary,
.cp-link--primary,
.cp-dialog-primary {
  border-color: rgba(255, 231, 172, .75);
  background: linear-gradient(135deg, #f5d38e, #d89f45);
  box-shadow: 0 14px 34px rgba(215, 164, 80, .25), inset 0 1px rgba(255, 255, 255, .55);
}

.cp-btn--primary:hover,
.cp-link--primary:hover,
.cp-dialog-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(215, 164, 80, .34), inset 0 1px rgba(255, 255, 255, .62); }

.cp-hero-theatre { inset: 0 0 0 27%; }
.cp-hero-stage::after {
  position: absolute;
  inset: auto 9% 5%;
  height: 14%;
  content: "";
  background: radial-gradient(ellipse, rgba(190, 136, 226, .28), transparent 68%);
  filter: blur(14px);
  pointer-events: none;
}

.cp-hero-stage > img { object-position: center; filter: saturate(.94) contrast(1.06); }

.cp-hero-garment-label {
  top: 20%;
  padding: .38rem .62rem;
  border: 1px solid rgba(246, 220, 164, .32);
  border-radius: 999px;
  background: rgba(8, 8, 11, .48);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .24);
  color: var(--cp-gold-soft);
  font-size: .69rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.cp-hero-print-zone {
  top: 42%;
  width: 86px;
  height: 118px;
  border: 1px dashed rgba(246, 220, 164, .75);
  border-radius: 7px;
  background: rgba(9, 8, 13, .34);
  box-shadow: 0 0 0 5px rgba(232, 191, 108, .06), 0 0 28px rgba(232, 191, 108, .18);
}

.cp-hero-print-zone::after {
  position: absolute;
  top: -20px;
  right: -1px;
  content: "A4 · 21 × 29,7 см";
  color: rgba(246, 220, 164, .92);
  font-size: .58rem;
  white-space: nowrap;
}

.cp-hero-print-zone__frame--a4 { gap: .2rem; }
.cp-hero-print-zone__frame span { font-size: .54rem; letter-spacing: .1em; text-transform: uppercase; }
.cp-hero-print-zone__frame strong { font-size: 1rem; }

/* Progress rail and workbench surfaces. */
.cp-studio-appbar {
  top: 1rem;
  min-height: 66px;
  padding: .65rem .75rem;
  border: 1px solid rgba(232, 191, 108, .2);
  border-radius: 20px;
  background: rgba(14, 13, 18, .82);
  box-shadow: 0 16px 44px rgba(0, 0, 0, .3);
  backdrop-filter: blur(18px);
}

.cp-page.is-studio-active { overflow: clip; }
.cp-page.is-studio-active .cp-studio-appbar { top: 84px; }
body.cp-studio-active { overflow: hidden !important; }

.cp-icon-button {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .045);
  transition: transform 180ms var(--cp-ease), border-color 180ms var(--cp-ease), background 180ms var(--cp-ease);
}

.cp-icon-button:hover { transform: translateY(-1px); border-color: rgba(232, 191, 108, .48); background: rgba(232, 191, 108, .1); }
.cp-studio-progress-track { height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .1); }
.cp-studio-progress-track i { border-radius: inherit; background: linear-gradient(90deg, #c38a3b, var(--cp-gold-soft)); box-shadow: 0 0 14px rgba(232, 191, 108, .4); }

.cp-build-strip-shell {
  position: relative;
  margin: 0 0 1.25rem;
  overflow: visible;
}

.cp-build-strip {
  display: flex;
  gap: .55rem;
  min-width: 0;
  overflow-x: auto;
  padding: .25rem .15rem .55rem;
  scrollbar-width: none;
  border: 0;
  background: transparent;
}

.cp-build-strip::-webkit-scrollbar { display: none; }
.cp-build-strip button {
  position: relative;
  flex: 0 0 150px;
  min-height: 66px;
  padding: .72rem .82rem;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 17px;
  background: rgba(255, 255, 255, .035);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .15);
  transition: transform 180ms var(--cp-ease), border-color 180ms var(--cp-ease), background 180ms var(--cp-ease);
}

.cp-build-strip button:hover { transform: translateY(-2px); border-color: rgba(232, 191, 108, .4); }
.cp-build-strip button.is-active { border-color: var(--cp-gold); background: linear-gradient(145deg, rgba(232, 191, 108, .18), rgba(111, 75, 168, .1)); box-shadow: 0 0 0 1px rgba(232, 191, 108, .36), 0 14px 28px rgba(0, 0, 0, .22); }
.cp-build-strip button.is-done { border-color: rgba(155, 210, 149, .32); background: rgba(155, 210, 149, .06); }
.cp-build-strip small { color: rgba(247, 245, 239, .48); font-size: .62rem; letter-spacing: .09em; text-transform: uppercase; }
.cp-build-strip strong { color: var(--cp-text); font-size: .84rem; }

.cp-workbench { grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); gap: 1.5rem; }

.cp-stage-card {
  top: 1.25rem;
  max-height: calc(100svh - 2.5rem);
  padding: 1rem;
  border: 1px solid rgba(232, 191, 108, .22);
  border-radius: 26px;
  background:
    radial-gradient(26rem 20rem at 50% 35%, rgba(111, 75, 168, .18), transparent 66%),
    linear-gradient(165deg, rgba(19, 17, 24, .94), rgba(8, 8, 11, .97));
  box-shadow: var(--cp-shadow), inset 0 1px rgba(255, 255, 255, .045);
}

.cp-stage-card::before {
  position: absolute;
  inset: 16% -18% auto;
  height: 40%;
  content: "";
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(144, 119, 236, .18), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

.cp-card-head { position: relative; z-index: 1; align-items: center; }
.cp-card-head h2 { font-size: 1.25rem; }
.cp-card-eyebrow { color: var(--cp-gold-soft); font-size: .64rem; letter-spacing: .12em; }

.cp-stage-view-switch { border-radius: 13px; border-color: rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .045); }
.cp-stage-view-switch button { min-height: 36px; border-radius: 10px; }
.cp-stage-view-switch button.is-active { background: rgba(246, 220, 164, .95); color: #16120e; box-shadow: 0 4px 14px rgba(232, 191, 108, .2); }
.cp-preview-open { min-height: 38px; border-radius: 12px; color: var(--cp-gold-soft); }

.cp-stage-frame,
.cp-preview-dialog-canvas {
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 21px;
  background:
    radial-gradient(circle at 50% 38%, rgba(144, 119, 236, .16), transparent 52%),
    linear-gradient(180deg, rgba(23, 21, 29, .94), rgba(7, 7, 10, .98));
  box-shadow: inset 0 1px rgba(255, 255, 255, .04), 0 18px 48px rgba(0, 0, 0, .28);
}

.cp-stage-frame::after,
.cp-preview-dialog-canvas::after {
  position: absolute;
  right: 14%;
  bottom: 8%;
  left: 14%;
  height: 11%;
  content: "";
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(211, 157, 82, .24), transparent 68%);
  filter: blur(10px);
  pointer-events: none;
}

.cp-png-preview img { filter: drop-shadow(0 26px 24px rgba(0, 0, 0, .42)); }
.cp-png-preview-color { opacity: .92; }
.cp-preview-zone { border: 1px dashed rgba(246, 220, 164, .82); border-radius: 7px; background: rgba(9, 8, 13, .22); box-shadow: 0 0 0 4px rgba(232, 191, 108, .055); }
.cp-preview-zone strong { font-size: .78rem; color: #fff6df; }
.cp-preview-zone span { color: rgba(255, 246, 223, .72); font-size: .55rem; letter-spacing: .06em; text-transform: uppercase; }

.cp-stage-meta { gap: .5rem; border: 0; background: transparent; }
.cp-stage-copy { min-height: 58px; padding: .8rem .9rem; border: 1px solid rgba(255, 255, 255, .08); border-radius: 15px; background: rgba(255, 255, 255, .035); }
.cp-stage-copy small { color: rgba(247, 245, 239, .44); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }
.cp-stage-copy span { color: rgba(247, 245, 239, .72); font-size: .76rem; }
.cp-stage-receipt { border-top-color: rgba(255, 255, 255, .1); }
.cp-stage-receipt-head strong { font-size: 1.3rem; }
.cp-stage-receipt-list { color: rgba(247, 245, 239, .62); }

/* Active stage: one cohesive work surface, not a stack of cards. */
.cp-step {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 25px;
  background:
    radial-gradient(28rem 18rem at 100% 0%, rgba(111, 75, 168, .1), transparent 66%),
    linear-gradient(160deg, rgba(22, 21, 27, .94), rgba(12, 12, 16, .96));
  box-shadow: 0 22px 60px rgba(0, 0, 0, .25), inset 0 1px rgba(255, 255, 255, .035);
}

.cp-step-body { gap: 1.5rem; padding: clamp(1.3rem, 3vw, 2rem); }
.cp-step-head { gap: .52rem; padding-bottom: 1.2rem; border-bottom-color: rgba(255, 255, 255, .09); }
.cp-step-head h2 { margin: 0; font-size: clamp(1.45rem, 2.2vw, 2rem); line-height: 1.08; }
.cp-step-head p { max-width: 46rem; color: rgba(247, 245, 239, .58); font-size: .9rem; line-height: 1.55; }
.cp-subhead { align-items: baseline; }
.cp-subhead strong { font-size: .88rem; }
.cp-subhead span { color: rgba(247, 245, 239, .48); font-size: .72rem; }

.cp-option-grid,
.cp-product-grid,
.cp-fit-grid,
.cp-artwork-services,
.cp-addon-grid,
.cp-zone-card-grid,
.cp-final-actions,
.cp-inline-fields,
.cp-sleeve-editor-grid { gap: .75rem; }

.cp-option-card,
.cp-product-card,
.cp-fit-card,
.cp-artwork-service,
.cp-addon-card,
.cp-zone-card,
.cp-front-size-card,
.cp-mini-chip,
.cp-size-chip,
.cp-sleeve-side-card {
  position: relative;
  min-height: 74px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .025));
  box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
  transition: transform 200ms var(--cp-ease), border-color 200ms var(--cp-ease), background 200ms var(--cp-ease), box-shadow 200ms var(--cp-ease);
}

.cp-option-card:hover,
.cp-product-card:hover,
.cp-fit-card:hover,
.cp-artwork-service:hover,
.cp-addon-card:hover,
.cp-zone-card:hover,
.cp-front-size-card:hover { transform: translateY(-2px); border-color: rgba(246, 220, 164, .46); box-shadow: 0 15px 32px rgba(0, 0, 0, .2); }

.cp-option-card.is-active,
.cp-product-card.is-active,
.cp-fit-card.is-active,
.cp-artwork-service.is-active,
.cp-addon-card.is-active,
.cp-zone-card.is-active,
.cp-front-size-card.is-active,
.cp-mini-chip.is-active,
.cp-size-chip.is-active,
.cp-sleeve-side-card.is-active {
  border-color: var(--cp-gold);
  background: linear-gradient(145deg, rgba(232, 191, 108, .2), rgba(111, 75, 168, .1));
  box-shadow: 0 0 0 1px rgba(232, 191, 108, .38), 0 16px 34px rgba(0, 0, 0, .22);
}

.cp-option-card.is-active::after,
.cp-product-card.is-active::after,
.cp-fit-card.is-active::after,
.cp-artwork-service.is-active::after,
.cp-zone-card.is-active::after,
.cp-front-size-card.is-active::after {
  position: absolute;
  top: .7rem;
  right: .72rem;
  display: grid;
  width: 1.2rem;
  height: 1.2rem;
  place-items: center;
  content: "✓";
  border-radius: 50%;
  background: var(--cp-gold);
  color: #1a140d;
  font-size: .68rem;
  font-weight: 800;
}

.cp-option-card small,
.cp-product-card small { color: var(--cp-gold-soft); font-size: .62rem; letter-spacing: .11em; }
.cp-option-card strong,
.cp-product-card strong { font-size: .98rem; }
.cp-option-card span,
.cp-product-card span,
.cp-fit-card span,
.cp-artwork-service-hint,
.cp-addon-card-hint,
.cp-addon-card-bonus { color: rgba(247, 245, 239, .55); font-size: .76rem; line-height: 1.4; }

.cp-config-block,
.cp-config-cluster,
.cp-size-block { gap: .85rem; }
.cp-config-block { padding-top: .2rem; }

.cp-fabric-row,
.cp-swatch-row,
.cp-front-size-row,
.cp-mini-chip-row,
.cp-sleeve-side-row,
.cp-size-grid { gap: .55rem; }

.cp-fabric-card { flex: 1 1 190px; }
.cp-swatch { width: 48px; height: 48px; border: 2px solid rgba(255, 255, 255, .18); box-shadow: 0 7px 16px rgba(0, 0, 0, .2); transition: transform 180ms var(--cp-ease), box-shadow 180ms var(--cp-ease), border-color 180ms var(--cp-ease); }
.cp-swatch:hover { transform: scale(1.07); }
.cp-swatch.is-active { border-color: var(--cp-gold-soft); box-shadow: 0 0 0 4px rgba(232, 191, 108, .18), 0 8px 20px rgba(0, 0, 0, .28); }

.cp-zone-hint,
.cp-status-box,
.cp-size-warning,
.cp-preview-info { border: 1px solid rgba(144, 119, 236, .26); border-left: 3px solid var(--cp-violet); border-radius: 13px; background: rgba(111, 75, 168, .1); color: rgba(232, 225, 255, .8); font-size: .76rem; }
.cp-field { color: rgba(247, 245, 239, .78); font-size: .78rem; }
.cp-field input,
.cp-field textarea,
.cp-qty-bar input { min-height: 50px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; background: rgba(7, 7, 10, .7); color: var(--cp-text); transition: border-color 180ms ease, box-shadow 180ms ease; }
.cp-field input:focus,
.cp-field textarea:focus,
.cp-qty-bar input:focus { border-color: var(--cp-gold); box-shadow: 0 0 0 3px rgba(232, 191, 108, .12); outline: none; }

.cp-dropzone { min-height: 124px; padding: 1rem; border: 1px dashed rgba(246, 220, 164, .35); border-radius: 17px; background: rgba(255, 255, 255, .025); }
.cp-dropzone:hover { border-color: var(--cp-gold); background: rgba(232, 191, 108, .05); }
.cp-dropzone-empty { color: rgba(247, 245, 239, .48); font-size: .8rem; }

.cp-step-actions { padding-top: .3rem; }
.cp-step-actions .cp-link--primary { margin-left: auto; width: auto; }
.cp-secondary-button,
.cp-tertiary-button { min-height: 46px; }

.cp-qty-bar-counter { overflow: hidden; border: 1px solid rgba(255, 255, 255, .12); border-radius: 15px; background: rgba(255, 255, 255, .04); }
.cp-qty-step { min-width: 48px; min-height: 50px; border: 0; background: transparent; color: var(--cp-gold-soft); }
.cp-qty-bar input { border: 0; border-radius: 0; background: transparent; }
.cp-qty-bar-meta strong { color: var(--cp-gold-soft); }

.cp-addon-card--gift { grid-template-columns: 58px minmax(0, 1fr); align-items: center; }
.cp-addon-card-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 14px; color: var(--cp-gold-soft); background: rgba(232, 191, 108, .12); }
.cp-addon-card-icon svg { width: 34px; height: 34px; }
.cp-addon-card-body { gap: .3rem; }
.cp-addon-card-badge { color: var(--cp-gold-soft); font-size: .76rem; }

.cp-tg-verify-shell { padding: 1rem; border: 1px solid rgba(42, 171, 238, .24); border-radius: 17px; background: rgba(42, 171, 238, .06); }
.cp-tg-verify-cta { min-height: 50px; border: 1px solid rgba(42, 171, 238, .38); border-radius: 13px; background: rgba(42, 171, 238, .1); color: #e6f7ff; }

.cp-final-button { min-height: 76px; border: 1px solid rgba(255, 255, 255, .11); border-radius: 18px; background: rgba(255, 255, 255, .045); transition: transform 180ms var(--cp-ease), border-color 180ms var(--cp-ease), background 180ms var(--cp-ease); }
.cp-final-button:hover { transform: translateY(-2px); border-color: rgba(246, 220, 164, .4); }
.cp-final-button--primary { border-color: rgba(246, 220, 164, .7); background: linear-gradient(145deg, rgba(232, 191, 108, .22), rgba(111, 75, 168, .1)); }
.cp-final-button-text small { color: rgba(247, 245, 239, .54); }
.cp-final-button.is-disabled,
.cp-mobile-bottom-bar-action.is-disabled { opacity: 1; filter: none; }
.cp-final-button.is-disabled { border-color: rgba(246, 220, 164, .32); background: rgba(255,255,255,.045); }

.cp-mobile-action-bar {
  min-height: 84px;
  padding: .65rem max(1rem, env(safe-area-inset-right)) calc(.65rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  border-top: 1px solid rgba(232, 191, 108, .22);
  background: rgba(11, 10, 14, .9);
  box-shadow: 0 -16px 42px rgba(0, 0, 0, .28);
  backdrop-filter: blur(20px);
}

.cp-mobile-bottom-bar-action { min-height: 54px; border-radius: 15px; background: linear-gradient(135deg, #f5d38e, #d89f45); box-shadow: 0 10px 26px rgba(215, 164, 80, .22); }
.cp-mobile-bottom-bar-info small { color: rgba(247, 245, 239, .48); }
.cp-mobile-bottom-bar-info strong { color: var(--cp-gold-soft); font-size: 1.1rem; }

/* Dialogs share the stage material and never feel like a browser default. */
.cp-dialog { border: 1px solid rgba(232, 191, 108, .3); border-radius: 24px; background: linear-gradient(160deg, rgba(28, 25, 34, .98), rgba(11, 10, 14, .98)); box-shadow: 0 28px 90px rgba(0, 0, 0, .52); }
.cp-dialog::backdrop { background: rgba(3, 3, 5, .78); backdrop-filter: blur(12px); }
.cp-dialog-shell { gap: 1.1rem; padding: clamp(1.2rem, 3vw, 2rem); }
.cp-dialog-head h2 { font-size: 1.3rem; }
.cp-dialog-shell > p { color: rgba(247, 245, 239, .64); }
.cp-dialog-secondary { background: rgba(255, 255, 255, .045); }
.cp-preview-dialog { width: min(800px, calc(100% - 2rem)); }
.cp-preview-dialog-canvas { width: min(100%, 560px); }

.cp-fabric-modal-overlay {
  position: fixed;
  z-index: 2200;
  inset: 0;
  display: none;
  place-items: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  background: rgba(3, 3, 5, .78);
  backdrop-filter: blur(12px);
}
.cp-fabric-modal-overlay.is-visible { display: grid; }
.cp-fabric-modal-box {
  position: relative;
  width: min(440px, 100%);
  max-height: min(680px, calc(100svh - 2rem));
  overflow: auto;
  padding: 1.4rem;
  border: 1px solid rgba(232,191,108,.32);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(28,25,34,.98), rgba(11,10,14,.98));
  box-shadow: 0 28px 90px rgba(0,0,0,.55);
}
.cp-fabric-modal-close { position: absolute; top: .75rem; right: .75rem; display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; background: rgba(255,255,255,.05); color: var(--cp-text); font-size: 1.35rem; line-height: 1; cursor: pointer; }
.cp-fabric-modal-close:focus-visible { outline: 2px solid var(--cp-gold-soft); outline-offset: 2px; }
.cp-fabric-modal-media { margin: 0 2rem 1rem; overflow: hidden; border-radius: 16px; background: rgba(255,255,255,.04); }
.cp-fabric-modal-media img { display: block; width: 100%; max-height: 220px; object-fit: contain; }
.cp-fabric-modal-title { margin: 0 2.4rem .55rem 0; color: var(--cp-gold-soft); font-size: 1.2rem; }
.cp-fabric-modal-desc { margin: 0; color: rgba(247,245,239,.7); font-size: .86rem; line-height: 1.65; }

.cp-support-stack { margin-top: 2.8rem; border-top-color: rgba(255, 255, 255, .1); }
.cp-support-section { padding-block: 2.4rem; border-bottom-color: rgba(255, 255, 255, .1); }
.cp-support-section h2 { font-size: clamp(1.35rem, 2.3vw, 1.9rem); }
.cp-support-section p,
.cp-support-section li { color: rgba(247, 245, 239, .62); line-height: 1.7; }
.cp-faq-item { border-bottom-color: rgba(255, 255, 255, .1); }
.cp-faq-item summary { padding: 1.05rem 0; color: rgba(247, 245, 239, .88); }
.cp-link-card { border: 1px solid rgba(255, 255, 255, .1); border-radius: 17px; background: rgba(255, 255, 255, .035); transition: transform 180ms var(--cp-ease), border-color 180ms var(--cp-ease), background 180ms var(--cp-ease); }
.cp-link-card:hover { transform: translateY(-2px); border-color: rgba(232, 191, 108, .42); background: rgba(232, 191, 108, .06); }

/* Legacy generated controls: keep their visual language in the new shell. */
.cp-fit-card-figure,
.cp-size-icon,
.cp-zone-card-icon { color: var(--cp-gold-soft); }
.cp-zone-card-check { color: var(--cp-gold-soft); }
.cp-fabric-chip-content,
.cp-fabric-chip-meta,
.cp-fit-card-info,
.cp-size-details { color: rgba(247, 245, 239, .6); }
.cp-stage-print-badge { border-color: rgba(232, 191, 108, .5); background: rgba(232, 191, 108, .12); color: var(--cp-gold-soft); }

@media (max-width: 1100px) {
  .cp-hero { grid-template-columns: minmax(290px, .8fr) minmax(390px, 1.2fr); }
  .cp-hero-copy { padding-left: 2.75rem; }
  .cp-workbench { grid-template-columns: minmax(0, 1fr); }
  .cp-stage-card { display: none !important; }
}

@media (max-width: 760px) {
  #main-content { padding: 10px !important; }
  .cp-shell { gap: .85rem; }
  .cp-hero { min-height: min(652px, calc(100svh - 122px)); margin-top: 48px; border-radius: 24px; }
  .cp-hero::before { inset: 24% -20% 2%; mask-image: linear-gradient(180deg, transparent 5%, #000 45%, transparent 98%); }
  .cp-hero::after { background: linear-gradient(180deg, rgba(5, 5, 7, .98) 0 43%, rgba(5, 5, 7, .78) 56%, rgba(5, 5, 7, .12) 100%); }
  .cp-hero-copy { gap: 1rem; padding: 1.35rem 1.2rem 0; }
  .cp-hero-brandmark { width: 44px; height: 44px; border-radius: 14px; }
  .cp-hero-brandmark img { width: 27px; height: 27px; }
  .cp-hero-brandcopy strong { font-size: .86rem; }
  .cp-hero-brandcopy span { font-size: .7rem; }
  .cp-hero-title { max-width: 8.1ch; font-size: clamp(2.8rem, 12vw, 4.1rem); }
  .cp-hero-desc { max-width: 22rem; font-size: .88rem; }
  .cp-hero-actions { max-width: none; }
  .cp-hero-actions .cp-btn { min-height: 52px; width: 100%; }
  .cp-hero-theatre { inset: 43% 0 0; }
  .cp-hero-stage > img { object-position: center bottom; }
  .cp-hero-garment-label { top: 22%; padding: .28rem .42rem; font-size: .56rem; }
  .cp-hero-garment-label--hoodie { left: 22%; }
  .cp-hero-garment-label--tee { left: 49%; }
  .cp-hero-garment-label--longsleeve { left: 73%; }
  .cp-hero-print-zone { top: 46%; width: 54px; height: 76px; border-radius: 5px; }
  .cp-hero-print-zone::after { top: -15px; right: -7px; font-size: .44rem; }
  .cp-hero-print-zone--hoodie { left: 28%; }
  .cp-hero-print-zone--longsleeve { left: 72%; }

  body.cp-studio-active > .navbar,
  body.cp-studio-active > .bottom-nav,
  body.cp-studio-active > .footer-langs-wrap { display: none !important; }
  body.cp-studio-active #main-content { padding: 0 10px calc(108px + env(safe-area-inset-bottom)) !important; }
  body.cp-studio-active #main-content { min-height: 100svh; }
  body.cp-studio-active .cp-workbench { grid-template-columns: minmax(0, 1fr); }
  .cp-page.is-studio-active .cp-studio-appbar { top: 6px; margin-inline: -2px; border-radius: 17px; }
  .cp-studio-appbar .cp-icon-button { width: 42px; height: 42px; }
  .cp-stage-card { display: none !important; }
  .cp-step { border-radius: 21px; }
  .cp-step-body { gap: 1.15rem; padding: 1.25rem 1rem; }
  .cp-step-head h2 { font-size: 1.42rem; }
  .cp-step-head p { font-size: .82rem; }
  .cp-option-card,
  .cp-product-card,
  .cp-fit-card,
  .cp-artwork-service,
  .cp-addon-card,
  .cp-zone-card { min-height: 82px; padding: .9rem; }
  .cp-option-grid,
  .cp-product-grid,
  .cp-fit-grid,
  .cp-artwork-services,
  .cp-addon-grid,
  .cp-zone-card-grid,
  .cp-final-actions,
  .cp-inline-fields,
  .cp-sleeve-editor-grid { grid-template-columns: minmax(0, 1fr); }
  .cp-subhead { align-items: flex-start; flex-direction: column; gap: .25rem; }
  .cp-subhead span { text-align: left; }
  .cp-step-actions { display: none; }
  .cp-mobile-action-bar { display: grid; }
  .cp-preview-dialog { width: 100%; max-width: none; height: 100svh; max-height: 100svh; border: 0; border-radius: 0; }
  .cp-preview-dialog-shell { min-height: 100%; grid-template-rows: auto auto minmax(0, 1fr) auto; padding: 1rem; }
  .cp-preview-dialog-canvas { width: 100%; max-height: calc(100svh - 210px); border-radius: 20px; }
}

@media (max-width: 380px) {
  .cp-hero { min-height: min(620px, calc(100svh - 112px)); margin-top: 38px; }
  .cp-hero-brand { display: none; }
  .cp-hero-garment-label { display: none; }
  .cp-hero-title { font-size: 2.65rem; }
  .cp-hero-copy { padding-inline: 1rem; }
  .cp-studio-appbar { grid-template-columns: 40px 40px minmax(0, 1fr) 40px 40px; gap: .35rem; }
  .cp-studio-appbar .cp-icon-button { width: 40px; height: 40px; }
  .cp-step-body { padding-inline: .8rem; }
  .cp-mobile-action-bar { grid-template-columns: minmax(0, .75fr) minmax(136px, 1.25fr); padding-inline: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .cp-hero::before,
  .cp-hero-stage::after,
  .cp-btn-shimmer { animation: none !important; }
  .cp-option-card:hover,
  .cp-product-card:hover,
  .cp-fit-card:hover,
  .cp-artwork-service:hover,
  .cp-addon-card:hover,
  .cp-zone-card:hover,
  .cp-front-size-card:hover,
  .cp-link-card:hover,
  .cp-final-button:hover { transform: none; }
}

/* Audit pass: equal selector geometry, explicit states and safe mobile offsets. */
.cp-scroll-anchor,
.cp-step,
.cp-field,
.cp-final-checklist-shell { scroll-margin-top: 96px; }

.cp-fit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cp-fit-card {
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  padding: .8rem;
}
.cp-fit-card-figure {
  display: grid !important;
  width: 100%;
  height: 118px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
}
.cp-fit-card-figure img { width: 100%; max-width: 100%; height: 100%; min-width: 0; min-height: 0; max-height: 100%; object-fit: cover; object-position: center 38%; border-radius: inherit; filter: saturate(.9) contrast(1.06) drop-shadow(0 10px 18px rgba(0,0,0,.22)); transform: scale(1.08); }
.cp-fit-card-info { display: grid; gap: .24rem; min-width: 0; }
.cp-fit-card-info small { color: var(--cp-gold-soft); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; }
.cp-fit-card-info strong { font-size: .95rem; }
.cp-fit-card-info span { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.cp-fit-card-info em { color: rgba(247,245,239,.48); font-size: .66rem; font-style: normal; line-height: 1.3; }

.cp-fabric-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.cp-fabric-row[data-count="1"] { grid-template-columns: minmax(0, 1fr); }
.cp-fabric-row[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cp-fabric-option { position: relative; display: grid; min-width: 0; }
.cp-mini-chip--fabric {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 82px;
  padding: .72rem .58rem;
  text-align: left;
}
.cp-fabric-option > .cp-mini-chip--fabric { width: 100%; padding-right: 2.1rem; }
.cp-fabric-chip-content { display: grid; min-width: 0; }
.cp-fabric-chip-title { display: flex; align-items: flex-start; justify-content: space-between; gap: .3rem; min-width: 0; }
.cp-fabric-chip-title strong { overflow: hidden; font-size: .76rem; text-overflow: ellipsis; }
.cp-fabric-chip-meta { overflow: hidden; color: rgba(247,245,239,.56); font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.cp-fabric-info-trigger {
  position: absolute;
  top: .62rem;
  right: .58rem;
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  min-width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(246,220,164,.42);
  border-radius: 50%;
  color: var(--cp-gold-soft);
  cursor: help;
  font: inherit;
}
.cp-fabric-info-trigger:hover { background: rgba(232,191,108,.14); }
.cp-mini-chip--fabric:disabled { opacity: 1; cursor: default; }
.cp-fabric-info-trigger svg { width: 18px; height: 18px; }
.cp-fabric-info-trigger:focus-visible { outline: 2px solid var(--cp-gold-soft); outline-offset: 2px; }
.cp-mini-chip--fabric.is-locked { cursor: default; }
.cp-mini-chip--fabric.is-locked::after { content: "Входить у базу"; color: var(--cp-success); font-size: .61rem; }

.cp-fleece-toggle { display: grid; gap: .55rem; grid-column: 1 / -1; }
.cp-fleece-title { color: var(--cp-gold-soft); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.cp-fleece-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.cp-fleece-btn {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  min-height: 64px;
  padding: .7rem;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  color: var(--cp-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.cp-fleece-btn.is-active { border-color: var(--cp-gold); background: rgba(232,191,108,.16); box-shadow: 0 0 0 1px rgba(232,191,108,.25); }
.cp-fleece-btn .cp-addon-card-icon svg { width: 27px; height: 27px; }
.cp-fleece-btn-label { font-size: .78rem; font-weight: 750; }

.cp-zone-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cp-zone-card {
  min-height: 124px;
  align-content: center;
  justify-items: start;
  padding: .9rem;
}
.cp-zone-card-icon { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid rgba(246,220,164,.2); border-radius: 12px; background: rgba(232,191,108,.08); }
.cp-zone-card-title { font-size: .86rem; }
.cp-zone-card-hint { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.cp-zone-card-badge { color: var(--cp-gold-soft); font-size: .62rem; }
.cp-zone-card-check { opacity: 0; }
.cp-zone-card.is-active .cp-zone-card-check { opacity: 1; }

.cp-front-size-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cp-size-preset {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: .55rem;
  min-width: 0;
  min-height: 66px;
  padding: .62rem;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  color: var(--cp-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.cp-size-preset:hover { border-color: rgba(246,220,164,.46); }
.cp-size-preset.is-active { border-color: var(--cp-gold); background: rgba(232,191,108,.16); box-shadow: 0 0 0 1px rgba(232,191,108,.24); }
.cp-size-icon { display: grid; width: 38px; height: 46px; place-items: center; border: 1px solid rgba(246,220,164,.28); border-radius: 8px; background: rgba(232,191,108,.08); }
.cp-size-icon img { width: 28px; height: 34px; }
.cp-size-details { display: grid; gap: .15rem; min-width: 0; }
.cp-size-details strong { font-size: .82rem; }
.cp-size-details span { overflow: hidden; color: rgba(247,245,239,.5); font-size: .6rem; text-overflow: ellipsis; white-space: nowrap; }

.cp-addon-card-toggle { display: inline-flex; width: fit-content; padding: .2rem .48rem; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; color: rgba(247,245,239,.64); font-size: .64rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.cp-addon-card--gift.is-active .cp-addon-card-toggle { border-color: rgba(155,210,149,.45); color: var(--cp-success); background: rgba(155,210,149,.08); }
.cp-addon-card--gift:not(.is-active) .cp-addon-card-toggle { color: rgba(247,245,239,.46); }

.cp-final-checklist-shell { display: grid; gap: .7rem; padding: 1rem; border: 1px solid rgba(144,119,236,.25); border-radius: 16px; background: rgba(111,75,168,.08); }
.cp-final-checklist { display: grid; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.cp-checklist-item { display: grid; grid-template-columns: 24px minmax(0,1fr) auto; align-items: center; gap: .65rem; min-height: 44px; padding: .45rem .55rem; border: 1px solid rgba(255,255,255,.08); border-radius: 11px; background: rgba(255,255,255,.03); }
.cp-checklist-mark { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: rgba(255,255,255,.1); color: var(--cp-danger); font-size: .75rem; font-weight: 900; }
.cp-checklist-item.is-ready .cp-checklist-mark { background: rgba(155,210,149,.16); color: var(--cp-success); }
.cp-checklist-copy { display: grid; gap: .12rem; min-width: 0; }
.cp-checklist-copy strong { font-size: .76rem; }
.cp-checklist-copy small { overflow: hidden; color: rgba(247,245,239,.52); font-size: .65rem; text-overflow: ellipsis; white-space: nowrap; }
.cp-checklist-state { color: var(--cp-success); font-size: .64rem; font-weight: 800; white-space: nowrap; }
.cp-checklist-item.is-missing .cp-checklist-state { color: var(--cp-gold-soft); }
.cp-checklist-state button { padding: .25rem .45rem; border: 1px solid rgba(246,220,164,.32); border-radius: 999px; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.cp-manager-summary { margin: .1rem 0 .35rem; padding: .75rem; white-space: pre-line; border: 1px solid rgba(232,191,108,.2); border-radius: 12px; background: rgba(232,191,108,.06); color: rgba(247,245,239,.72); font-size: .73rem; line-height: 1.55; }
.cp-studio-boundary { height: 1px; width: 100%; pointer-events: none; }

/* Second audit pass: direct support handoff, clearer material hierarchy and
   compact artwork controls. */
.cp-manager-quick-link {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 20px;
  align-items: center;
  gap: .75rem;
  width: 100%;
  min-width: 0;
  min-height: 64px;
  margin-top: .15rem;
  padding: .72rem .85rem;
  border: 1px solid rgba(42,171,238,.3);
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(42,171,238,.13), rgba(111,75,168,.08));
  color: #e9f8ff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms var(--cp-ease), border-color 180ms var(--cp-ease), background 180ms var(--cp-ease);
}
.cp-manager-quick-link:hover { transform: translateY(-2px); border-color: rgba(42,171,238,.58); background: linear-gradient(120deg, rgba(42,171,238,.19), rgba(111,75,168,.12)); }
.cp-manager-quick-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: #2aabee; color: #fff; box-shadow: 0 8px 18px rgba(42,171,238,.22); }
.cp-manager-quick-icon svg { width: 21px; height: 21px; }
.cp-manager-quick-link strong { display: block; font-size: .82rem; }
.cp-manager-quick-link small { display: block; margin-top: .12rem; color: rgba(233,248,255,.62); font-size: .67rem; line-height: 1.3; }
.cp-manager-quick-arrow { width: 18px; height: 18px; color: #8edcff; }

.cp-fabric-chip-title { align-items: center; }
.cp-fabric-chip-hint { display: -webkit-box; overflow: hidden; color: rgba(247,245,239,.5); font-size: .61rem; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.cp-thermo-badge { display: inline-flex; flex: 0 0 auto; align-items: center; gap: .18rem; padding: .16rem .3rem; border: 1px solid rgba(255,143,76,.5); border-radius: 999px; background: rgba(255,92,84,.13); color: #ffb16a; font-size: .54rem; font-weight: 900; letter-spacing: .06em; line-height: 1; text-transform: uppercase; box-shadow: 0 0 0 2px rgba(255,92,84,.06); }
.cp-thermo-badge svg { width: 12px; height: 12px; }
.cp-mini-chip--fabric[data-choice-value="thermo"],
.cp-fabric-option:has(.cp-mini-chip--fabric[data-choice-value="thermo"]) { border-color: rgba(255,126,79,.36); }
.cp-mini-chip--fabric[data-choice-value="thermo"].is-active { border-color: rgba(255,159,91,.86); background: linear-gradient(145deg, rgba(255,103,87,.19), rgba(255,173,78,.1)); box-shadow: 0 0 0 1px rgba(255,144,83,.38), 0 14px 30px rgba(255,95,72,.14); }

.cp-artwork-services { align-items: stretch; }
.cp-artwork-service { grid-template-columns: 38px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; column-gap: .72rem; min-height: 112px; }
.cp-artwork-service-icon { display: grid; width: 38px; height: 38px; grid-row: 1 / -1; place-items: center; border: 1px solid rgba(232,191,108,.24); border-radius: 12px; background: rgba(232,191,108,.09); color: var(--cp-gold-soft); }
.cp-artwork-service-icon svg { width: 21px; height: 21px; }
.cp-artwork-service-head { min-width: 0; }
.cp-artwork-service-head strong { font-size: .84rem; }
.cp-artwork-service-badge { white-space: nowrap; }
.cp-artwork-service-hint { grid-column: 2; }
.cp-field-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.cp-field-label-row small { color: rgba(247,245,239,.46); font-size: .66rem; font-weight: 500; }

.cp-dropzone-grid { position: relative; }
.cp-dropzone { position: relative; min-height: 126px; align-content: center; overflow: hidden; }
.cp-dropzone input[type="file"] { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; cursor: pointer; opacity: 0; }
.cp-dropzone::before { position: absolute; top: 1rem; right: 1rem; display: grid; width: 32px; height: 32px; place-items: center; content: "↑"; border: 1px solid rgba(246,220,164,.28); border-radius: 10px; color: var(--cp-gold-soft); font-size: 1.1rem; font-weight: 800; pointer-events: none; }
.cp-dropzone-head { position: relative; z-index: 1; display: grid; gap: .18rem; padding-right: 2.5rem; }
.cp-dropzone-head small { color: var(--cp-gold-soft); font-size: .61rem; letter-spacing: .1em; text-transform: uppercase; }
.cp-dropzone-head strong { font-size: .84rem; }
.cp-dropzone-body { position: relative; z-index: 1; display: grid; gap: .25rem; }
.cp-dropzone-cta { color: var(--cp-gold-soft); font-size: .76rem; font-weight: 800; }
.cp-dropzone-meta { color: rgba(247,245,239,.5); font-size: .65rem; line-height: 1.35; }
.cp-dropzone-status-badge { position: relative; z-index: 3; display: inline-flex; align-items: center; gap: .35rem; width: fit-content; padding: .18rem .42rem; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: rgba(255,255,255,.04); color: rgba(247,245,239,.62); font-size: .59rem; font-weight: 800; pointer-events: none; }
.cp-dropzone-status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cp-gold); }
.cp-dropzone[data-status="ok"] .cp-dropzone-status-badge { border-color: rgba(155,210,149,.35); color: var(--cp-success); }
.cp-dropzone[data-status="ok"] .cp-dropzone-status-dot { background: var(--cp-success); }
.cp-dropzone[data-status="missing"] .cp-dropzone-status-badge { border-color: rgba(255,149,140,.3); color: #ffb0a6; }
.cp-dropzone[data-status="missing"] .cp-dropzone-status-dot { background: var(--cp-danger); }
.cp-dropzone-list { position: relative; z-index: 3; display: grid; gap: .2rem; margin: .3rem 0 0; padding: 0; color: rgba(247,245,239,.7); font-size: .67rem; list-style: none; pointer-events: none; }
.cp-dropzone-progress { display: grid; gap: .45rem; margin-bottom: .7rem; padding: .72rem .8rem; border: 1px solid rgba(144,119,236,.25); border-radius: 14px; background: rgba(111,75,168,.08); }
.cp-dropzone-progress-text { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; }
.cp-dropzone-progress-text strong { font-size: .75rem; }
.cp-dropzone-progress-text small { color: rgba(247,245,239,.5); font-size: .63rem; }
.cp-dropzone-progress-bar { height: 5px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.1); }
.cp-dropzone-progress-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cp-violet), var(--cp-gold)); transition: width 220ms var(--cp-ease); }

@media (max-width: 480px) {
  .cp-artwork-service { min-height: 100px; padding: .78rem; }
  .cp-manager-quick-link { grid-template-columns: 34px minmax(0, 1fr) 18px; gap: .6rem; }
  .cp-manager-quick-icon { width: 34px; height: 34px; }
  .cp-manager-quick-link small { font-size: .62rem; }
  .cp-dropzone-progress-text { display: grid; gap: .2rem; }
}

@media (max-width: 760px) {
  .cp-studio-appbar {
    background: rgba(14, 13, 18, .96);
  }
  .cp-fit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cp-fit-card { padding: .58rem; }
  .cp-fit-card-figure { height: 82px; border-radius: 11px; }
  .cp-fit-card-info strong { font-size: .82rem; }
  .cp-fit-card-info span { font-size: .68rem; }
  .cp-fit-card-info em { font-size: .58rem; }
  .cp-zone-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cp-zone-card { min-height: 112px; padding: .72rem; }
  .cp-front-size-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cp-size-preset { grid-template-columns: 1fr; justify-items: center; min-height: 86px; padding: .5rem .35rem; text-align: center; }
  .cp-size-details { justify-items: center; }
  .cp-size-details span { max-width: 100%; }
  .cp-final-actions { grid-template-columns: minmax(0, 1fr); }
  .cp-final-button { min-height: 68px; }
  .cp-field input, .cp-field textarea, .cp-qty-bar input { font-size: 16px; }
}

@media (max-width: 340px) {
  .cp-fit-card-figure { height: 70px; }
  .cp-fit-card-info span { -webkit-line-clamp: 1; }
  .cp-fabric-chip-title strong { font-size: .68rem; }
  .cp-fabric-chip-meta { font-size: .55rem; }
}

/* Final calibration pass: keep the hero annotations on the garments instead
   of the cropped image's empty space, and give narrow screens a stable stage. */
.cp-hero-garment-label--hoodie { left: 33%; }
.cp-hero-garment-label--tee { left: 51%; }
.cp-hero-garment-label--longsleeve { left: 71%; }
.cp-hero-print-zone--hoodie { left: 28%; }
.cp-hero-print-zone--longsleeve { left: 68%; }

.cp-artwork-services > *,
.cp-artwork-service-head,
.cp-artwork-service-hint,
.cp-dropzone-grid,
.cp-dropzone { min-width: 0; }

/* Final responsive overrides for the refreshed brief and placement controls. */
.cp-brand-brief .cp-manager-quick-link { grid-template-columns: minmax(0, 1fr) 20px; }
.cp-brand-tier-rail { display: flex; gap: 9px; padding: 3px 2px 9px; overflow-x: auto; scroll-snap-type: x proximity; }
.cp-brand-tier-rail::before { display: none; }
.cp-brand-tier { flex: 0 0 min(210px, 24%); scroll-snap-align: start; }
.cp-brand-tier small { white-space: normal; }
.cp-sleeve-side-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cp-sleeve-editor { min-width: 0; }
.cp-sleeve-editor .cp-front-size-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cp-sleeve-editor .cp-size-details span { white-space: normal; }

@media (max-width: 900px) {
  .cp-brand-tier { flex-basis: 190px; }
}

@media (max-width: 640px) {
  .cp-brand-tier { flex-basis: 78vw; }
  .cp-sleeve-side-row,
  .cp-sleeve-editor .cp-front-size-row { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .cp-hero-theatre { inset: 48% 0 0; }
  .cp-hero-stage { overflow: hidden; }
  .cp-hero-garment-label { top: 35%; }
  .cp-hero-garment-label--hoodie { left: 18%; }
  .cp-hero-garment-label--tee { left: 47%; }
  .cp-hero-garment-label--longsleeve { left: 76%; }
  .cp-hero-print-zone--hoodie { left: 12%; }
  .cp-hero-print-zone--longsleeve { left: 78%; }
  .cp-artwork-services { grid-template-columns: minmax(0, 1fr); }
  .cp-artwork-service { width: 100%; max-width: 100%; }
}

/* Mobile and tablet app shell: the document is inert; this viewport owns the
   full studio scroll range between the two portaled controls. */
.cp-dialog { overscroll-behavior: contain; }
html.cp-dialog-open,
body.cp-dialog-open { overflow: hidden !important; overscroll-behavior: none; }
body.cp-dialog-open:not(.cp-studio-active) { position: fixed; right: 0; left: 0; width: 100%; }

.cp-mobile-preview-hint {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 18px;
  align-items: center;
  gap: .7rem;
  width: 100%;
  min-height: 64px;
  padding: .72rem .8rem;
  border: 1px solid rgba(144, 119, 236, .34);
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(144, 119, 236, .13), rgba(255, 255, 255, .035));
  color: rgba(247, 245, 239, .78);
  font: inherit;
  font-size: .75rem;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
}
.cp-mobile-preview-hint-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 11px; background: rgba(144, 119, 236, .18); color: #c7baff; }
.cp-mobile-preview-hint-icon svg { width: 21px; height: 21px; }
.cp-mobile-preview-hint-arrow { width: 18px; height: 18px; color: rgba(199, 186, 255, .78); }
.cp-mobile-preview-hint:active { transform: scale(.99); }

.cp-swatch--thermo { isolation: isolate; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), 0 0 0 1px rgba(255,126,79,.24); }
.cp-swatch-thermo-icon { position: absolute; z-index: 2; top: 50%; left: 50%; width: 22px; height: 22px; transform: translate(-50%, -50%); color: #fff3dc; filter: drop-shadow(0 1px 2px rgba(96,27,13,.8)) drop-shadow(0 0 6px rgba(255,112,60,.56)); pointer-events: none; }

@media (min-width: 1101px) {
  .cp-mobile-preview-hint { display: none; }
  body > .cp-studio-appbar { display: none !important; }
  body.cp-studio-active { overflow: visible !important; }
  .cp-page.is-studio-active { overflow: visible; }
  .cp-stage-card { top: 84px; max-height: calc(100svh - 104px); }
}

@media (max-width: 1100px) {
  body.cp-studio-active {
    width: 100%;
    height: 100svh;
    height: 100dvh;
    min-height: 0;
    overscroll-behavior: none;
  }
  body.cp-studio-active > header:not(.cp-studio-appbar),
  body.cp-studio-active > footer,
  body.cp-studio-active > .navbar,
  body.cp-studio-active > .bottom-nav,
  body.cp-studio-active > .language-switcher,
  body.cp-studio-active > .footer-langs-wrap,
  body.cp-studio-active .cp-breadcrumbs,
  body.cp-studio-active .cp-context-banner,
  body.cp-studio-active .cp-hero,
  body.cp-studio-active .cp-draft-resume,
  body.cp-studio-active .cp-support-stack { display: none !important; }
  body.cp-studio-active #main-content {
    height: 100svh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    padding: 0 !important;
  }
  body.cp-studio-active .cp-page.is-studio-active {
    height: 100%;
    min-height: 0;
    overflow: hidden;
    padding: 0;
  }
  .cp-page.is-studio-active .cp-studio-appbar,
  body.cp-studio-active > .cp-studio-appbar { position: fixed; }
  .cp-page.is-studio-active .cp-studio-appbar,
  body.cp-studio-active > .cp-studio-appbar {
    z-index: 210;
    top: env(safe-area-inset-top);
    left: 50%;
    width: min(100%, 760px);
    margin: 0;
    transform: translateX(-50%);
    border-radius: 0 0 18px 18px;
    background: #0e0d12;
    box-shadow: 0 12px 30px rgba(0,0,0,.42);
    backdrop-filter: none;
  }
  body.cp-studio-active .cp-workbench { grid-template-columns: minmax(0, 1fr); }
  body.cp-studio-active .cp-build-strip-shell { display: none !important; }
  body.cp-studio-active .cp-waterfall {
    height: 100%;
    min-height: 0;
    padding: 0;
  }
  body.cp-studio-active .cp-step-viewport {
    position: fixed;
    z-index: 80;
    top: var(--cp-mobile-appbar-clearance);
    bottom: var(--cp-mobile-bar-clearance);
    left: 50%;
    width: min(100%, 760px);
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: .75rem max(.75rem, env(safe-area-inset-right)) 1rem max(.75rem, env(safe-area-inset-left));
    transform: translateX(-50%);
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
  }
  body.cp-studio-active > .cp-mobile-action-bar {
    display: grid;
    z-index: 220;
    width: min(100%, 760px);
    margin-inline: auto;
  }
}

@media (max-width: 760px) {
  body.cp-studio-active #main-content { min-height: 0; padding: 0 !important; }
  .cp-fabric-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cp-fabric-option:has(.cp-mini-chip--fabric[data-choice-value="thermo"]) { grid-column: 1 / -1; }
  .cp-fabric-option > .cp-mini-chip--fabric { grid-template-rows: auto auto; min-height: 108px; padding: .75rem 3.35rem .75rem .72rem; }
  .cp-fabric-chip-title { display: grid; justify-content: start; gap: .4rem; }
  .cp-fabric-chip-title strong { overflow: visible; font-size: .78rem; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
  .cp-fabric-chip-meta { overflow: visible; text-overflow: clip; white-space: normal; }
  .cp-fabric-chip-hint { display: block; overflow: visible; font-size: .62rem; -webkit-line-clamp: unset; }
  .cp-fabric-info-trigger { top: .5rem; right: .5rem; }
  .cp-fit-card-figure { aspect-ratio: 16 / 9; height: auto; }
  .cp-fit-card-figure img { object-position: center 36%; transform: scale(1.12); }
  .cp-dialog,
  .cp-preview-dialog { overscroll-behavior: contain; }
  .cp-preview-dialog { height: 100dvh; max-height: 100dvh; }
  .cp-preview-dialog-shell { min-height: 100dvh; max-height: 100dvh; overflow-y: auto; overscroll-behavior: contain; }
  .cp-preview-dialog-canvas { max-height: calc(100dvh - 210px); }
}

@media (max-width: 340px) {
  .cp-thermo-badge span { display: none; }
  .cp-thermo-badge { padding: .2rem; }
  .cp-mobile-bottom-bar-action {
    min-width: 0;
    padding: .5rem .55rem;
    font-size: .76rem;
    line-height: 1.15;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 380px) {
  .cp-hero-garment-label { display: inline-flex; top: 34%; font-size: .5rem; }
  .cp-hero-garment-label--hoodie { left: 14%; }
  .cp-hero-garment-label--tee { left: 45%; }
  .cp-hero-garment-label--longsleeve { left: 73%; }
}

/* 3D Viewer Canvas */
.cp-stage-frame canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: pan-y pinch-zoom;
  cursor: grab;
}

.cp-stage-frame canvas:active {
  cursor: grabbing;
}

/* Hide PNG preview when 3D is active */
.cp-stage-frame:has(canvas) .cp-png-preview {
  display: none;
}
