.studio-page {
  --studio-ink: #050505;
  --studio-paper: #f2f2ee;
  --studio-blue: #4169e1;
  --studio-blue-dark: #284ab1;
  --studio-acid: #d8ff38;
  --studio-panel: #ffffff;
  background: var(--studio-paper);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.studio-main {
  padding-top: var(--header-height);
  overflow: clip;
}

.studio-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.45fr);
  min-height: 380px;
  border-bottom: 1px solid var(--studio-ink);
  background:
    linear-gradient(90deg, transparent calc(100% - 1px), rgba(5, 5, 5, 0.08) 1px) 0 0 / 8.333% 100%,
    var(--studio-paper);
}

.studio-intro > div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(36px, 5vw, 72px) var(--page-pad);
}

.studio-intro > div:first-child {
  border-right: 1px solid var(--studio-ink);
}

.studio-kicker,
.browser-head p,
.panel-heading p,
.stage-topline span,
.studio-trust span {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.studio-intro h1,
.studio-explainer h2 {
  margin: 50px 0 0;
  font-size: clamp(72px, 9vw, 154px);
  font-weight: 650;
  line-height: 0.76;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.studio-intro h1 span,
.studio-explainer h2 span {
  color: var(--studio-blue);
}

.studio-intro-copy {
  gap: 48px;
  background: rgba(255, 255, 255, 0.68);
}

.studio-intro-copy > p {
  max-width: 480px;
  margin: 0;
  font-size: clamp(22px, 2vw, 31px);
  line-height: 1.05;
}

.studio-trust {
  display: grid;
  gap: 9px;
}

.studio-trust span::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 10px;
  background: var(--studio-blue);
  border-radius: 50%;
  content: "";
}

.studio-workspace {
  display: grid;
  grid-template-columns: minmax(248px, 0.56fr) minmax(470px, 1.44fr) minmax(360px, 0.86fr);
  min-height: calc(100svh - var(--header-height));
  background: var(--studio-panel);
  border-bottom: 1px solid var(--studio-ink);
}

.product-browser,
.control-panel {
  min-width: 0;
  background: var(--studio-panel);
}

.product-browser {
  border-right: 1px solid var(--studio-ink);
}

.browser-head {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  min-height: 82px;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--studio-ink);
}

.browser-head strong {
  display: block;
  margin-top: 5px;
  font-size: 20px;
  line-height: 1;
}

.panel-index {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--white);
  background: var(--studio-blue);
  font-size: 14px;
  font-weight: 650;
}

.catalog-toggle {
  display: none;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  padding: 0;
  background: none;
  border: 0;
  font-size: 15px;
  font-weight: 650;
  text-transform: uppercase;
}

.catalog-toggle svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 200ms ease;
}

.catalog-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.catalog-body {
  position: sticky;
  top: var(--header-height);
  display: flex;
  height: calc(100svh - var(--header-height) - 82px);
  min-height: 560px;
  flex-direction: column;
}

.search-field {
  display: grid;
  grid-template-columns: 21px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 18px;
  border-bottom: 1px solid var(--studio-ink);
}

.search-field svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.search-field input {
  width: 100%;
  padding: 12px 0;
  background: transparent;
  border: 0;
  outline: none;
  font-size: 17px;
}

.search-field:focus-within {
  box-shadow: inset 4px 0 0 var(--studio-blue);
}

.category-tabs {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--studio-ink);
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tabs button {
  min-width: max-content;
  min-height: 44px;
  padding: 8px 13px;
  background: var(--white);
  border: 0;
  border-right: 1px solid var(--studio-ink);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease;
}

.category-tabs button:hover,
.category-tabs button.is-active {
  color: var(--white);
  background: var(--studio-ink);
}

.product-list {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--studio-blue) var(--studio-paper);
  scrollbar-width: thin;
}

.product-option {
  display: grid;
  grid-template-columns: 64px 1fr 24px;
  min-height: 88px;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 11px 14px;
  text-align: left;
  background: var(--white);
  border: 0;
  border-bottom: 1px solid #d3d3ce;
  transition: color 180ms ease, background 180ms ease;
}

.product-option:hover {
  background: #ecece7;
}

.product-option.is-active {
  color: var(--white);
  background: var(--studio-blue);
}

.product-thumb {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  overflow: hidden;
  background: #e5e5df;
  border: 1px solid currentColor;
}

.product-option.is-active .product-thumb {
  background: rgba(255, 255, 255, 0.15);
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-option small,
.product-option strong {
  display: block;
}

.product-option small {
  margin-bottom: 6px;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.product-option strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 17px;
  line-height: 1.05;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-option svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.catalog-empty {
  padding: 30px 18px;
  font-size: 18px;
}

.catalog-skeleton,
.control-skeleton {
  background: linear-gradient(90deg, #e6e6e1 25%, #f7f7f3 50%, #e6e6e1 75%) 0 0 / 200% 100%;
  animation: studio-shimmer 1.3s linear infinite;
}

.catalog-skeleton {
  height: 88px;
  border-bottom: 1px solid #d3d3ce;
}

.model-stage {
  position: sticky;
  top: var(--header-height);
  height: calc(100svh - var(--header-height));
  min-height: 640px;
  overflow: hidden;
  background:
    linear-gradient(rgba(5, 5, 5, 0.06) 1px, transparent 1px) 0 0 / 100% 12.5%,
    linear-gradient(90deg, rgba(5, 5, 5, 0.06) 1px, transparent 1px) 0 0 / 12.5% 100%,
    #ecece7;
}

.model-stage::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(56vw, 620px);
  aspect-ratio: 1;
  background: var(--studio-blue);
  border-radius: 50%;
  content: "";
  opacity: 0.13;
  transform: translate(-50%, -48%);
}

.model-stage::after {
  position: absolute;
  right: 0;
  bottom: 93px;
  left: 0;
  height: 1px;
  background: var(--studio-ink);
  content: "";
  pointer-events: none;
}

.stage-topline {
  position: absolute;
  z-index: 6;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 20px;
  pointer-events: none;
  border-bottom: 1px solid var(--studio-ink);
  background: rgba(242, 242, 238, 0.8);
  backdrop-filter: blur(10px);
}

.stage-topline strong {
  display: block;
  max-width: 420px;
  margin-top: 5px;
  overflow: hidden;
  font-size: 20px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage-status {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: max-content;
  font-size: 13px;
  text-transform: uppercase;
}

.stage-status i {
  width: 8px;
  height: 8px;
  background: #1aa45b;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(26, 164, 91, 0.14);
}

#kit-canvas {
  position: absolute;
  z-index: 2;
  inset: 82px 0 94px;
  display: block;
  width: 100%;
  height: calc(100% - 176px);
  cursor: grab;
  touch-action: none;
}

#kit-canvas:active {
  cursor: grabbing;
}

.garment-overlay {
  position: absolute;
  z-index: 4;
  inset: 82px 0 94px;
  pointer-events: none;
}

.garment-overlay img,
.garment-overlay span,
.garment-overlay strong {
  position: absolute;
  top: 38%;
  left: 50%;
  display: none;
  transform: translate(-50%, -50%);
}

.garment-overlay img {
  width: 22%;
  max-width: 170px;
  max-height: 170px;
  object-fit: contain;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.22));
}

.garment-overlay span,
.garment-overlay strong {
  color: white;
  font-family: "Thunder", sans-serif;
  line-height: 0.8;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.22);
}

.garment-overlay span {
  top: 31%;
  font-size: clamp(18px, 2.2vw, 32px);
  font-weight: 650;
  letter-spacing: 0.04em;
}

.garment-overlay strong {
  top: 43%;
  font-size: clamp(58px, 8vw, 124px);
  font-weight: 650;
}

.garment-overlay.has-logo img,
.garment-overlay.has-personalisation span:not(:empty),
.garment-overlay.has-personalisation strong:not(:empty) {
  display: block;
}

.model-loading {
  position: absolute;
  z-index: 8;
  inset: 82px 0 94px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 15px;
  background: #ecece7;
  transition: opacity 250ms ease, visibility 250ms ease;
}

.model-loading.is-hidden {
  visibility: hidden;
  opacity: 0;
}

.model-loading span {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(5, 5, 5, 0.18);
  border-top-color: var(--studio-blue);
  border-radius: 50%;
  animation: studio-spin 800ms linear infinite;
}

.model-loading p {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.stage-actions {
  position: absolute;
  z-index: 6;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  height: 94px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  background: rgba(242, 242, 238, 0.93);
}

.camera-group,
.icon-actions {
  display: flex;
}

.camera-group button,
.icon-actions button {
  min-height: 44px;
  background: transparent;
  border: 1px solid var(--studio-ink);
  transition: color 180ms ease, background 180ms ease;
}

.camera-group button {
  min-width: 58px;
  padding: 8px 12px;
  margin-right: -1px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.camera-group button:hover,
.camera-group button.is-active,
.icon-actions button:hover,
.icon-actions button[aria-pressed="true"] {
  color: var(--white);
  background: var(--studio-ink);
}

.icon-actions button {
  display: grid;
  width: 44px;
  place-items: center;
  margin-left: -1px;
}

.icon-actions svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: square;
}

.gesture-hint {
  position: absolute;
  z-index: 5;
  bottom: 110px;
  left: 20px;
  margin: 0;
  padding: 7px 10px;
  color: var(--white);
  background: var(--studio-ink);
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.control-panel {
  border-left: 1px solid var(--studio-ink);
}

.workflow-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 82px;
  border-bottom: 1px solid var(--studio-ink);
}

.workflow-tabs button {
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 8px 6px;
  background: var(--white);
  border: 0;
  border-right: 1px solid #cfcfca;
  font-size: 13px;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease;
}

.workflow-tabs button:last-child {
  border-right: 0;
}

.workflow-tabs button span {
  color: var(--studio-blue);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.workflow-tabs button:hover,
.workflow-tabs button.is-active {
  color: var(--white);
  background: var(--studio-ink);
}

.workflow-tabs button.is-active span {
  color: var(--studio-acid);
}

.workflow-panels {
  position: sticky;
  top: calc(var(--header-height) + 82px);
  height: calc(100svh - var(--header-height) - 82px);
  min-height: 560px;
  overflow-y: auto;
  scrollbar-color: var(--studio-blue) var(--studio-paper);
  scrollbar-width: thin;
}

.workflow-panel {
  padding: 24px 22px 34px;
}

.panel-heading {
  margin: -24px -22px 24px;
  padding: 22px;
  color: var(--white);
  background: var(--studio-blue);
}

.panel-heading p {
  margin-bottom: 10px;
  font-size: 18px;
}

.panel-heading span {
  display: block;
  max-width: 390px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 1.2;
}

.material-controls {
  display: grid;
  gap: 9px;
}

.control-skeleton {
  height: 64px;
}

.material-control {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  min-height: 62px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 11px;
  text-align: left;
  background: #f1f1ed;
  border: 1px solid transparent;
  transition: border-color 180ms ease, background 180ms ease;
}

.material-control:hover {
  background: #e6e6e0;
}

.material-control.is-active {
  border-color: var(--studio-ink);
  box-shadow: inset 4px 0 0 var(--studio-blue);
}

.material-swatch {
  width: 42px;
  height: 42px;
  background: var(--swatch, var(--studio-blue));
  border: 1px solid var(--studio-ink);
}

.material-control small,
.material-control strong {
  display: block;
}

.material-control small {
  margin-bottom: 4px;
  color: #666;
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.material-control strong {
  overflow: hidden;
  font-size: 18px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.material-control > span:last-child {
  font-size: 20px;
}

.control-block {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--studio-ink);
}

.control-title,
.range-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 11px;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.control-title button {
  padding: 4px;
  color: var(--studio-blue);
  background: none;
  border: 0;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.colour-input {
  width: 100%;
  height: 46px;
  padding: 4px;
  background: white;
  border: 1px solid var(--studio-ink);
}

.pattern-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 18px;
}

.pattern-option {
  position: relative;
  min-height: 48px;
  padding: 0;
  overflow: hidden;
  background: #ecece6;
  border: 1px solid #b4b4ae;
}

.pattern-option img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pattern-option:hover,
.pattern-option.is-active {
  border-color: var(--studio-blue);
  box-shadow: inset 0 0 0 2px var(--studio-blue);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--studio-blue);
}

.panel-next,
.submit-design {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  padding: 13px 16px;
  color: var(--white);
  background: var(--studio-ink);
  border: 1px solid var(--studio-ink);
  font-size: 16px;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease;
}

.panel-next:hover,
.submit-design:hover {
  color: var(--studio-ink);
  background: var(--studio-acid);
}

.upload-drop {
  display: grid;
  min-height: 190px;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
  background: #f1f1ed;
  border: 1px dashed var(--studio-ink);
  transition: color 180ms ease, background 180ms ease;
}

.upload-drop:hover,
.upload-drop:focus-within {
  color: var(--white);
  background: var(--studio-blue);
}

.upload-drop svg {
  width: 32px;
  margin-bottom: 8px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.upload-drop strong {
  font-size: 19px;
}

.upload-drop span {
  font-size: 13px;
  letter-spacing: 0.08em;
}

.upload-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.uploaded-file {
  display: grid;
  grid-template-columns: 60px 1fr 44px;
  align-items: center;
  gap: 13px;
  margin-top: 14px;
  padding: 10px;
  background: #f1f1ed;
}

.uploaded-file[hidden] {
  display: none;
}

.studio-inline-status {
  min-height: 20px;
  margin: 8px 0 0;
  color: #a81717;
  font-size: 14px;
}

.uploaded-file img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  background: white;
  border: 1px solid #c7c7c0;
}

.uploaded-file strong,
.uploaded-file span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.uploaded-file span {
  color: #666;
  font-size: 14px;
}

.uploaded-file button {
  min-height: 44px;
  background: transparent;
  border: 1px solid var(--studio-ink);
  font-size: 24px;
}

.placement-controls {
  display: grid;
  gap: 7px;
  margin-top: 24px;
}

.placement-controls .range-field {
  margin-top: 10px;
  margin-bottom: 0;
}

.studio-field {
  margin-bottom: 18px;
}

.studio-field label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.studio-field input:not(.colour-input),
.studio-field select,
.studio-field textarea {
  width: 100%;
  padding: 11px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--studio-ink);
  border-radius: 0;
  outline: none;
}

.studio-field textarea {
  resize: vertical;
}

.studio-field input:focus,
.studio-field select:focus,
.studio-field textarea:focus {
  border-bottom-width: 3px;
  border-bottom-color: var(--studio-blue);
}

.studio-field-pair {
  gap: 18px;
}

.design-summary {
  margin-bottom: 24px;
  border-top: 1px solid var(--studio-ink);
}

.summary-row {
  display: grid;
  grid-template-columns: 95px 1fr;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #d0d0ca;
  font-size: 15px;
}

.summary-row span:first-child {
  color: #666;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.consent-field {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 10px;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.25;
}

.consent-field input {
  width: 20px;
  height: 20px;
  accent-color: var(--studio-blue);
}

.anti-spam {
  position: absolute;
  left: -9999px;
}

.submit-design {
  min-height: 62px;
  background: var(--studio-blue);
  border-color: var(--studio-blue);
}

.submit-design:disabled {
  cursor: wait;
  opacity: 0.58;
}

.submit-design svg {
  width: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.studio-form-status {
  min-height: 24px;
  margin: 13px 0 0;
  font-size: 15px;
}

.studio-form-status.is-error {
  color: #a81717;
}

.studio-form-status.is-success {
  color: #08783d;
}

.studio-explainer {
  padding: clamp(70px, 9vw, 140px) var(--page-pad);
  color: var(--white);
  background: var(--studio-ink);
}

.studio-explainer h2 {
  margin-top: 55px;
  font-size: clamp(68px, 10vw, 160px);
}

.explainer-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 90px;
  border-top: 1px solid rgba(255, 255, 255, 0.42);
  border-left: 1px solid rgba(255, 255, 255, 0.42);
}

.explainer-steps article {
  min-height: 280px;
  padding: 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.42);
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
}

.explainer-steps article:nth-child(2) {
  color: var(--studio-ink);
  background: var(--studio-acid);
}

.explainer-steps article > span {
  font-size: 14px;
  letter-spacing: 0.1em;
}

.explainer-steps h3 {
  margin: 90px 0 13px;
  font-size: clamp(40px, 4vw, 66px);
  font-weight: 650;
  line-height: 0.8;
  text-transform: uppercase;
}

.explainer-steps p {
  max-width: 320px;
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
}

@keyframes studio-spin {
  to { transform: rotate(360deg); }
}

@keyframes studio-shimmer {
  to { background-position: -200% 0; }
}

@media (max-width: 1250px) {
  .studio-workspace {
    grid-template-columns: minmax(220px, 0.47fr) minmax(420px, 1.08fr) minmax(330px, 0.75fr);
  }

  .camera-group button {
    min-width: 50px;
    padding-inline: 8px;
  }

  .stage-status {
    display: none;
  }

  .stage-actions {
    padding-inline: 12px;
  }
}

@media (max-width: 1050px) {
  .studio-intro {
    grid-template-columns: 1fr;
  }

  .studio-intro > div:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--studio-ink);
  }

  .studio-intro-copy {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .studio-workspace {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .control-panel {
    grid-column: 1 / -1;
    border-top: 1px solid var(--studio-ink);
    border-left: 0;
  }

  .model-stage,
  .catalog-body,
  .workflow-panels {
    position: relative;
    top: auto;
  }

  .model-stage {
    height: 760px;
  }

  .catalog-body {
    height: 678px;
  }

  .workflow-tabs {
    position: sticky;
    z-index: 9;
    top: var(--header-height);
    background: white;
  }

  .workflow-panels {
    height: auto;
    min-height: 0;
  }

  .workflow-panel {
    max-width: 760px;
    margin-inline: auto;
    padding-block: 42px 60px;
  }

  .panel-heading {
    margin-top: -42px;
  }
}

@media (max-width: 700px) {
  .studio-intro {
    min-height: 0;
  }

  .studio-intro > div {
    padding-block: 34px;
  }

  .studio-intro h1 {
    margin-top: 42px;
    font-size: clamp(62px, 20vw, 92px);
  }

  .studio-intro-copy {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .studio-workspace {
    display: flex;
    flex-direction: column;
  }

  .product-browser {
    border-right: 0;
    border-bottom: 1px solid var(--studio-ink);
  }

  .catalog-toggle {
    display: flex;
  }

  .catalog-body {
    height: min(62svh, 540px);
  }

  .catalog-body[hidden] {
    display: none;
  }

  .model-stage {
    order: 2;
    height: 620px;
    min-height: 620px;
  }

  .control-panel {
    order: 3;
  }

  .workflow-tabs {
    height: 68px;
  }

  .stage-topline {
    min-height: 68px;
  }

  #kit-canvas {
    top: 68px;
    height: calc(100% - 162px);
  }

  .garment-overlay,
  .model-loading {
    top: 68px;
  }

  .stage-actions {
    overflow-x: auto;
  }

  .icon-actions button:nth-child(-n + 2) {
    display: none;
  }

  .gesture-hint {
    bottom: 104px;
  }

  .pattern-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .explainer-steps {
    grid-template-columns: 1fr;
  }

  .explainer-steps article {
    min-height: 230px;
  }

  .explainer-steps h3 {
    margin-top: 60px;
  }
}

@media (max-width: 430px) {
  .stage-topline {
    padding-inline: 14px;
  }

  .stage-topline strong {
    max-width: 300px;
    font-size: 17px;
  }

  .model-stage {
    height: 560px;
    min-height: 560px;
  }

  .camera-group button {
    min-width: 45px;
    font-size: 11px;
  }

  .workflow-tabs button {
    font-size: 11px;
  }

  .workflow-panel {
    padding-inline: 16px;
  }

  .panel-heading {
    margin-right: -16px;
    margin-left: -16px;
  }

  .pattern-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .studio-field-pair {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-skeleton,
  .control-skeleton,
  .model-loading span {
    animation: none;
  }
}
