.product-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}

.product-mode-tabs button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  min-height: 76px;
  padding: 15px 18px;
  color: #b8bbb3;
  text-align: left;
  background: #101116;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 18px;
  cursor: pointer;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.product-mode-tabs button:hover {
  transform: translateY(-2px);
  border-color: rgba(186,255,33,.38);
}

.product-mode-tabs button.active {
  color: #f4f6ef;
  background: #181b1b;
  border-color: var(--lime);
  box-shadow: inset 0 0 0 1px rgba(186,255,33,.14);
}

.product-mode-tabs img {
  width: 28px;
  height: 28px;
  padding: 5px;
  object-fit: contain;
  filter: invert(89%) sepia(77%) saturate(783%) hue-rotate(25deg) brightness(108%);
}

.product-mode-tabs span { display: flex; flex: 1; min-width: 0; flex-direction: column; }
.product-mode-tabs b { color: inherit; font-size: 14px; }
.product-mode-tabs small { margin-top: 4px; color: #777b73; font-size: 10px; }
.product-mode-tabs em { color: var(--lime); font-size: 8px; font-style: normal; font-weight: 800; letter-spacing: .12em; }

.cotton-studio-grid {
  display: grid;
  grid-template-columns: minmax(350px, 410px) minmax(0, 1fr);
  overflow: hidden;
  color: #eef0e9;
  background: #090a0e;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.cotton-studio-grid[hidden] { display: none; }
.studio-grid[hidden] { display: none; }
.cotton-empty[hidden],
.cotton-progress[hidden],
.cotton-output[hidden],
.cotton-output-card[hidden],
.cotton-action-bar[hidden],
.cotton-refine[hidden],
.cotton-note[hidden],
.cotton-primary[hidden],
[data-product-showcase][hidden] { display: none; }
.figure-gallery { --gallery-gap: clamp(8px,1.2vw,18px); --gallery-duration: 58s; --gallery-direction: normal; position: relative; overflow: hidden; padding-bottom: 36px; background: #020304; }
.figure-gallery::before { content: ""; position: absolute; inset: 0 0 36px; background: radial-gradient(ellipse at 50% 12%,rgba(255,255,255,.055),transparent 43%),radial-gradient(ellipse at 50% 102%,rgba(71,60,151,.3),transparent 55%),linear-gradient(180deg,#030405 0,#020304 63%,#0b0c13 100%); }
.figure-gallery::after { content: ""; position: absolute; z-index: 0; right: 0; bottom: 36px; left: 0; height: 27%; background: linear-gradient(180deg,rgba(48,45,78,.05),rgba(26,27,38,.34)); border-top: 1px solid rgba(255,255,255,.035); transform: perspective(520px) rotateX(66deg); transform-origin: bottom; pointer-events: none; }
.figure-gallery:hover img { transform: none; filter: none; }
.figure-gallery-viewport { position: relative; z-index: 1; height: clamp(420px,47vw,620px); overflow: hidden; outline: none; -webkit-mask-image: linear-gradient(90deg,transparent 0,#000 7%,#000 93%,transparent 100%); mask-image: linear-gradient(90deg,transparent 0,#000 7%,#000 93%,transparent 100%); }
.figure-gallery-track { display: flex; width: max-content; height: 100%; animation: figure-gallery-loop var(--gallery-duration) linear infinite; animation-direction: var(--gallery-direction); will-change: transform; }
.figure-gallery:hover .figure-gallery-track { animation-play-state: paused; }
.figure-gallery-set { display: flex; flex: none; align-items: stretch; gap: var(--gallery-gap); height: 100%; padding-right: var(--gallery-gap); }
.showcase-exhibit { position: relative; z-index: 1; flex: none; width: clamp(245px,24vw,330px); height: 100%; margin: 0; }
.showcase-exhibit.wide { width: clamp(300px,29vw,400px); }
.legacy-exhibit { display: grid; align-items: end; overflow: hidden; }
.legacy-exhibit img { position: relative; z-index: 2; display: block; width: 100%; height: calc(100% - 32px) !important; object-fit: contain; }
.model-exhibit { display: grid; grid-template-rows: 1fr auto; align-items: end; min-width: 0; }
.model-exhibit::before,.legacy-exhibit::before { content: ""; position: absolute; z-index: 0; top: 0; right: 5%; left: 5%; height: 58%; background: radial-gradient(ellipse at 50% 0,rgba(255,255,255,.1),transparent 67%); pointer-events: none; }
.model-exhibit model-viewer { z-index: 2; width: 100%; height: calc(100% - 32px); background: transparent; pointer-events: none; --poster-color: transparent; }
.gallery-model-progress { display: none; }
.exhibit-base { position: absolute; z-index: 1; right: 9%; bottom: 28px; left: 9%; height: 20px; background: radial-gradient(ellipse at 50% 45%,rgba(63,57,108,.42) 0,rgba(28,27,48,.72) 48%,rgba(7,8,12,.96) 78%); border: 0; border-radius: 50%; box-shadow: 0 7px 22px rgba(0,0,0,.68),0 0 22px rgba(112,89,255,.2); }
.exhibit-base::before,.exhibit-base::after { content: none; }
.figure-gallery-hint { position: absolute; right: 18px; bottom: 11px; margin: 0; color: #777c73; font-size: 8px; font-weight: 700; letter-spacing: .06em; }
@keyframes figure-gallery-loop { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .figure-gallery-track { animation-play-state: paused; } }
.cotton-control-panel { min-width: 0; padding: 25px; background: #0d0f13; border-right: 1px solid rgba(255,255,255,.1); }
.cotton-control-panel .panel-top { margin-bottom: 17px; }
.cotton-preview-panel { min-width: 0; padding: 25px; }

.cotton-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  padding: 0;
  margin: 0 0 18px;
  list-style: none;
}

.cotton-steps li {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 9px 8px;
  color: #73766f;
  background: #15171d;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 11px;
}

.cotton-steps li.active { color: #050608; background: var(--lime); border-color: var(--lime); }
.cotton-steps li.done { color: #dfe3d8; border-color: rgba(186,255,33,.42); }
.cotton-steps i { font-size: 8px; font-style: normal; font-weight: 900; }
.cotton-steps span { overflow: hidden; font-size: 9px; font-weight: 800; white-space: nowrap; text-overflow: ellipsis; }

.cotton-upload {
  position: relative;
  display: grid;
  place-items: center;
  height: 245px;
  overflow: hidden;
  background: #15171d;
  border: 1px dashed rgba(255,255,255,.25);
  border-radius: 19px;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}

.cotton-upload:hover,
.cotton-upload:focus-within { background: #181a20; border-color: var(--lime); }
.cotton-upload > img {
  position: absolute;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  background: #0a0b0e;
}
.cotton-upload.has-image > img { display: block; }
.cotton-upload.has-image .cotton-upload-empty { display: none; }

.cotton-upload-empty { display: flex; align-items: center; flex-direction: column; padding: 24px; text-align: center; }
.cotton-upload-empty img { width: 42px; height: 42px; padding: 10px; margin-bottom: 13px; background: rgba(186,255,33,.1); border-radius: 13px; filter: invert(91%) sepia(76%) saturate(843%) hue-rotate(27deg) brightness(104%); }
.cotton-upload-empty b { font-size: 13px; }
.cotton-upload-empty small { margin-top: 7px; color: #777b73; font-size: 9px; line-height: 1.6; }

.cotton-replace {
  position: absolute;
  right: 11px;
  bottom: 11px;
  display: none;
  padding: 8px 12px;
  color: #f4f6ef;
  background: rgba(5,6,8,.82);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  font-size: 9px;
  cursor: pointer;
}

.cotton-upload.has-image .cotton-replace { display: block; }
.cotton-fixed-prompt {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  padding: 11px 12px;
  background: rgba(186,255,33,.07);
  border: 1px solid rgba(186,255,33,.3);
  border-radius: 13px;
}
.cotton-fixed-prompt span,
.cotton-fixed-prompt em { color: var(--lime); font-size: 8px; font-style: normal; font-weight: 850; }
.cotton-fixed-prompt strong { min-width: 0; color: #eef2e8; font-size: 10px; }
.cotton-fixed-prompt em { padding: 4px 7px; background: rgba(186,255,33,.1); border-radius: 999px; white-space: nowrap; }
.cotton-note { position: relative; display: block; margin-top: 16px; }
.cotton-note > span { display: flex; justify-content: space-between; margin-bottom: 8px; color: #b9bcb4; font-size: 10px; font-weight: 800; }
.cotton-note > span small { color: #676a64; font-weight: 500; }
.cotton-note textarea { width: 100%; min-height: 78px; resize: vertical; padding: 12px 13px 26px; color: #edf0e7; background: #15171d; border: 1px solid rgba(255,255,255,.12); border-radius: 13px; outline: 0; font: inherit; font-size: 11px; line-height: 1.6; }
.cotton-note textarea:focus { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(186,255,33,.08); }
.cotton-note em { position: absolute; right: 11px; bottom: 9px; color: #696d65; font-size: 8px; font-style: normal; }

.cotton-style-summary {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 13px;
  padding: 12px;
  background: #15171d;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 13px;
}

.cotton-style-summary > img { width: 25px; height: 25px; padding: 4px; filter: invert(91%) sepia(76%) saturate(843%) hue-rotate(27deg) brightness(104%); }
.cotton-style-summary span { display: flex; min-width: 0; flex-direction: column; }
.cotton-style-summary b { font-size: 10px; }
.cotton-style-summary small { margin-top: 4px; color: #757970; font-size: 8px; line-height: 1.5; }

.cotton-primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 15px;
  padding: 15px 16px;
  color: #050608;
  background: var(--lime);
  border: 0;
  border-radius: 13px;
  font-weight: 900;
  cursor: pointer;
}

.cotton-primary b { font-size: 9px; }
.cotton-primary:disabled { opacity: .55; cursor: wait; }
.cotton-demo-link { width: 100%; padding: 11px 8px 6px; color: #b9ff30; background: transparent; border: 0; font-size: 9px; text-decoration: underline; cursor: pointer; }
.cotton-safety-note { margin: 8px 0 0; color: #666a62; font-size: 8px; line-height: 1.6; text-align: center; }

.cotton-preview-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; font-size: 13px; font-weight: 800; }
.cotton-preview-toolbar em { padding: 6px 10px; color: #8e9289; background: #15171d; border-radius: 999px; font-size: 8px; font-style: normal; font-weight: 700; }
.cotton-preview-stage { position: relative; display: grid; place-items: center; min-height: 590px; padding: 18px; overflow: hidden; background: #101116; border: 1px solid rgba(255,255,255,.11); border-radius: 20px; }

.cotton-empty { display: flex; align-items: center; flex-direction: column; max-width: 280px; text-align: center; }
.cotton-empty > img { width: 62px; height: 62px; padding: 16px; margin-bottom: 18px; opacity: .35; border: 1px solid rgba(255,255,255,.18); border-radius: 20px; filter: invert(1); }
.cotton-empty strong { font-size: 15px; }
.cotton-empty p { margin: 8px 0 0; color: #73776f; font-size: 10px; line-height: 1.8; }

.cotton-progress { width: min(290px, 80%); text-align: center; }
.cotton-progress > span { display: grid; place-items: center; width: 78px; height: 78px; margin: 0 auto 19px; border: 1px solid var(--lime); border-radius: 24px; animation: cottonPulse 1.4s ease-in-out infinite; }
.cotton-progress > span img { width: 30px; height: 30px; filter: invert(91%) sepia(76%) saturate(843%) hue-rotate(27deg) brightness(104%); }
.cotton-progress strong { font-size: 14px; }
.cotton-progress p { margin: 8px 0 17px; color: #7f837a; font-size: 9px; }
.cotton-progress > div { height: 4px; overflow: hidden; background: #282a2e; border-radius: 999px; }
.cotton-progress > div i { display: block; width: 8%; height: 100%; background: var(--lime); border-radius: inherit; transition: width .35s ease; }

.cotton-output { display: grid; grid-template-columns: minmax(0, 1fr); gap: 13px; width: 100%; }
.cotton-output.with-candidates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cotton-output.with-result { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cotton-output-card { display: flex; min-width: 0; margin: 0; padding: 9px; background: #090a0d; border: 1px solid rgba(255,255,255,.1); border-radius: 17px; flex-direction: column; align-items: center; }
.cotton-output:not(.with-result) .cotton-output-card { width: min(100%, 520px); justify-self: center; }
.cotton-output.with-candidates .cotton-output-card { width: 100%; }
.cotton-output-card.candidate { transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.cotton-output-card.candidate.selected { border-color: var(--lime); box-shadow: inset 0 0 0 1px rgba(186,255,33,.2), 0 12px 34px rgba(0,0,0,.2); transform: translateY(-2px); }
.cotton-output-card > div { display: grid; width: min(100%, 430px); height: auto; aspect-ratio: 3 / 4; place-items: center; overflow: hidden; background: #050608; border-radius: 12px; }
.cotton-output-card img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  background: #050608;
}
.cotton-zoomable { cursor: zoom-in; touch-action: manipulation; transition: filter .2s ease, transform .2s ease; }
.cotton-zoomable:hover { filter: brightness(1.05); transform: scale(1.01); }
.cotton-zoomable:focus-visible { outline: 2px solid var(--lime); outline-offset: -3px; }
.cotton-output-card figcaption { display: flex; width: 100%; align-items: center; gap: 9px; padding: 10px 5px 4px; }
.cotton-output-card figcaption > i { display: grid; place-items: center; width: 27px; height: 27px; flex: 0 0 27px; color: #08090b; background: var(--lime); border-radius: 8px; font-size: 8px; font-style: normal; font-weight: 900; }
.cotton-output-card figcaption span { display: flex; min-width: 0; flex-direction: column; }
.cotton-output-card figcaption b { font-size: 9px; }
.cotton-output-card figcaption small { margin-top: 3px; overflow: hidden; color: #71756d; font-size: 7px; white-space: nowrap; text-overflow: ellipsis; }
.cotton-pick { width: calc(100% - 10px); margin: 2px 5px 5px; padding: 10px 12px; color: #dfe3d8; background: #17191e; border: 1px solid rgba(255,255,255,.13); border-radius: 10px; font-size: 9px; font-weight: 850; cursor: pointer; }
.cotton-pick:hover,
.cotton-pick:focus-visible { color: #08090b; background: var(--lime); border-color: var(--lime); outline: 0; }
.cotton-output-card.selected .cotton-pick { color: #08090b; background: var(--lime); border-color: var(--lime); }

.cotton-action-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 4px 0; }
.cotton-action-bar > div { display: flex; align-items: center; gap: 9px; min-width: 0; }
.cotton-action-bar > div > i { display: grid; place-items: center; width: 31px; height: 31px; flex: 0 0 31px; color: #050608; background: var(--lime); border-radius: 50%; font-style: normal; font-weight: 900; }
.cotton-action-bar span { display: flex; min-width: 0; flex-direction: column; }
.cotton-action-bar b { font-size: 10px; }
.cotton-action-bar small { margin-top: 3px; color: #757970; font-size: 8px; }
.cotton-action-bar button { padding: 11px 14px; color: #050608; background: var(--lime); border: 0; border-radius: 999px; font-size: 9px; font-weight: 900; cursor: pointer; }
.cotton-action-bar button em { margin-left: 5px; font-size: 7px; font-style: normal; opacity: .7; }
.cotton-action-bar button:disabled { opacity: .55; cursor: wait; }

.cotton-refine {
  display: grid;
  grid-template-columns: minmax(170px, .8fr) minmax(230px, 1.2fr) auto;
  align-items: end;
  gap: 13px;
  margin-top: 15px;
  padding: 16px;
  background: #13151a;
  border: 1px solid rgba(186,255,33,.2);
  border-radius: 16px;
}
.cotton-refine > div > span { color: var(--lime); font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.cotton-refine h3 { margin: 4px 0 0; color: #edf0e8; font-size: 12px; }
.cotton-refine p { margin: 5px 0 0; color: #747970; font-size: 8px; line-height: 1.55; }
.cotton-refine label { position: relative; display: block; }
.cotton-refine textarea { width: 100%; min-height: 76px; resize: vertical; padding: 11px 12px 24px; color: #edf0e7; background: #0b0c10; border: 1px solid rgba(255,255,255,.13); border-radius: 12px; outline: 0; font: inherit; font-size: 10px; line-height: 1.55; }
.cotton-refine textarea:focus { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(186,255,33,.08); }
.cotton-refine label em { position: absolute; right: 10px; bottom: 8px; color: #686d64; font-size: 8px; font-style: normal; }
.cotton-refine > button { display: flex; min-height: 76px; padding: 12px 14px; color: #08090b; background: var(--lime); border: 0; border-radius: 12px; flex-direction: column; align-items: center; justify-content: center; font-size: 9px; font-weight: 900; cursor: pointer; white-space: nowrap; }
.cotton-refine > button b { margin-top: 5px; font-size: 8px; opacity: .7; }
.cotton-refine > button:disabled { opacity: .42; cursor: not-allowed; }
.cotton-refine > small { grid-column: 2 / 4; margin-top: -7px; color: #777c73; font-size: 8px; }

.cotton-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
}
.cotton-showcase figure { position: relative; min-width: 0; margin: 0; overflow: hidden; background: #eee9df; border-radius: 18px; }
.cotton-showcase figure img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cotton-showcase figcaption { position: absolute; left: 12px; bottom: 12px; padding: 7px 10px; color: #f6f7f2; background: rgba(7,8,10,.74); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; font-size: 9px; font-weight: 800; backdrop-filter: blur(8px); }

.cotton-size-note { display: flex; gap: 9px; margin: 14px 2px 0; padding: 12px 14px; color: #74786f; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.07); border-radius: 13px; font-size: 8px; line-height: 1.65; }
.cotton-size-note b { flex: 0 0 auto; color: #bec1ba; }

.developer-pass { margin-top: 14px; padding: 14px; border: 1px solid rgba(186,255,33,.35); border-radius: 14px; background: rgba(186,255,33,.06); }
.developer-pass-toggle { display: block; margin: 2px auto 0; padding: 4px 8px; color: #73786f; background: transparent; border: 0; font-size: 8px; text-decoration: underline; cursor: pointer; }
.developer-pass-toggle:hover { color: var(--lime); }
.developer-pass[hidden] { display: none; }
.developer-pass > div { display: flex; flex-direction: column; gap: 4px; }
.developer-pass > div b { color: #e9ece4; font-size: 11px; }
.developer-pass > div small { color: #858a80; font-size: 8px; line-height: 1.55; }
.developer-pass label { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 10px; }
.developer-pass input { min-width: 0; padding: 11px 12px; color: #f4f6f0; background: #0c0e12; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; outline: none; font-size: 10px; }
.developer-pass input:focus { border-color: var(--lime); }
.developer-pass button { padding: 0 16px; color: #090b0e; background: var(--lime); border: 0; border-radius: 10px; font-size: 10px; font-weight: 900; cursor: pointer; }
.developer-pass button:disabled { opacity: .55; cursor: wait; }
.developer-pass p { min-height: 14px; margin: 8px 0 0; color: #b9ff2f; font-size: 8px; line-height: 1.5; }

.cotton-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 68px 24px 42px;
  background: rgba(2,3,5,.94);
  backdrop-filter: blur(12px);
}
.cotton-lightbox[hidden] { display: none; }
.cotton-lightbox figure { display: grid; place-items: center; width: 100%; height: 100%; margin: 0; }
.cotton-lightbox img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.cotton-lightbox figcaption { position: absolute; left: 24px; top: 23px; color: #f3f5ee; font-size: 13px; font-weight: 800; }
.cotton-lightbox > button { position: absolute; top: 18px; right: 20px; padding: 10px 15px; color: #f3f5ee; background: #181a20; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; font-size: 10px; font-weight: 800; cursor: pointer; }
.cotton-lightbox > button:hover { color: #090a0d; background: var(--lime); border-color: var(--lime); }
.cotton-lightbox > p { position: absolute; bottom: 14px; margin: 0; color: #7c8078; font-size: 9px; }
.cotton-lightbox-open { overflow: hidden; }

@keyframes cottonPulse { 50% { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(186,255,33,.12); } }

@media (max-width: 900px) {
  .cotton-studio-grid { grid-template-columns: minmax(0, 1fr); }
  .cotton-control-panel { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .cotton-preview-stage { min-height: 520px; }
  .cotton-refine { grid-template-columns: 1fr 1.35fr; }
  .cotton-refine > button { grid-column: 1 / 3; min-height: 50px; }
  .cotton-refine > small { grid-column: 1 / 3; margin-top: -4px; }
}

@media (max-width: 560px) {
  .figure-gallery { --gallery-duration: 42s; --gallery-gap: 12px; padding-bottom: 34px; }
  .figure-gallery-viewport { -webkit-mask-image: linear-gradient(90deg,transparent 0,#000 4%,#000 96%,transparent 100%); mask-image: linear-gradient(90deg,transparent 0,#000 4%,#000 96%,transparent 100%); }
  .figure-gallery-viewport { height: min(126vw,530px); }
  .showcase-exhibit { width: min(64vw,250px); }
  .showcase-exhibit.wide { width: min(76vw,300px); }
  .model-exhibit model-viewer { height: calc(100% - 38px); }
  .exhibit-base { right: 5%; bottom: 25px; left: 5%; height: 16px; }
  .figure-gallery-hint { right: 10px; }
  .product-mode-tabs { gap: 8px; }
  .product-mode-tabs button { min-height: 70px; padding: 12px; gap: 9px; border-radius: 15px; }
  .product-mode-tabs img { width: 24px; height: 24px; padding: 4px; }
  .product-mode-tabs b { font-size: 12px; }
  .product-mode-tabs small { display: none; }
  .product-mode-tabs em { position: absolute; top: 8px; right: 8px; font-size: 6px; }
  .cotton-studio-grid { border-radius: 19px; }
  .cotton-control-panel,
  .cotton-preview-panel { padding: 15px; }
  .cotton-upload { height: 300px; }
  .cotton-preview-stage { min-height: 460px; padding: 10px; }
  .cotton-output,
  .cotton-output.with-candidates,
  .cotton-output.with-result { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .cotton-output::-webkit-scrollbar { display: none; }
  .cotton-output-card { width: 86%; min-width: 86%; scroll-snap-align: center; }
  .cotton-output-card > div,
  .cotton-output.with-result .cotton-output-card > div { width: min(100%, 390px); height: auto; aspect-ratio: 3 / 4; }
  .cotton-lightbox { padding: 62px 10px 38px; }
  .cotton-lightbox figcaption { left: 14px; top: 22px; }
  .cotton-lightbox > button { top: 14px; right: 12px; }
  .cotton-action-bar { align-items: stretch; flex-direction: column; }
  .cotton-action-bar button { width: 100%; min-height: 45px; }
  .cotton-fixed-prompt { grid-template-columns: auto minmax(0, 1fr); }
  .cotton-fixed-prompt em { grid-column: 2; justify-self: start; }
  .cotton-refine { grid-template-columns: 1fr; align-items: stretch; }
  .cotton-refine > button,
  .cotton-refine > small { grid-column: 1; }
  .cotton-refine > button { min-height: 52px; }
  .cotton-showcase { grid-template-columns: 1fr; }
  .cotton-size-note { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .product-mode-tabs button,
  .cotton-progress > span,
  .cotton-zoomable { transition: none; animation: none; }
}

/* Approved local board layout, 2026-09-23: eleven exhibits on one shared baseline.
   Visible silhouettes use equal horizontal spacing and equal outer margins. */
.figure-gallery-viewport { container-type: size; }
.figure-gallery-set { position: relative; display: block; width: calc(100cqh * 3520 / 820); padding: 0; }
.figure-gallery-set .showcase-exhibit { position: absolute; display: block; left: calc(var(--board-x) * 100cqh / 820); top: 0; width: calc(var(--board-w) * 100cqh / 820); height: 100%; overflow: visible; }
.figure-gallery-set .showcase-exhibit:nth-child(1) { --board-x: -41.78; --board-y: 128.23; --board-w: 433.954; --board-h: 798.476; }
.figure-gallery-set .showcase-exhibit:nth-child(2) { --board-x: 281.79; --board-y: 201.97; --board-w: 364.75; --board-h: 650.829; }
.figure-gallery-set .showcase-exhibit:nth-child(3) { --board-x: 622.84; --board-y: 289.11; --board-w: 367.173; --board-h: 493.218; }
.figure-gallery-set .showcase-exhibit:nth-child(4) { --board-x: 972.65; --board-y: 189.05; --board-w: 362.787; --board-h: 587.965; }
.figure-gallery-set .showcase-exhibit:nth-child(5) { --board-x: 1266.26; --board-y: 64.05; --board-w: 435.137; --board-h: 862.215; }
.figure-gallery-set .showcase-exhibit:nth-child(6) { --board-x: 1570.03; --board-y: 84.55; --board-w: 414.984; --board-h: 716.181; }
.figure-gallery-set .showcase-exhibit:nth-child(7) { --board-x: 1976.44; --board-y: 202.94; --board-w: 427.645; --board-h: 548.262; }
.figure-gallery-set .showcase-exhibit:nth-child(8) { --board-x: 2430.03; --board-y: 130.33; --board-w: 220; --board-h: 585; }
.figure-gallery-set .showcase-exhibit:nth-child(9) { --board-x: 2675.42; --board-y: 108.22; --board-w: 205; --board-h: 610; }
.figure-gallery-set .showcase-exhibit:nth-child(10) { --board-x: 2863.86; --board-y: 90.39; --board-w: 360.811; --board-h: 690.518; }
.figure-gallery-set .showcase-exhibit:nth-child(11) { --board-x: 3171.04; --board-y: 89.59; --board-w: 355.792; --board-h: 680.913; }
.figure-gallery-set .showcase-exhibit > img,
.figure-gallery-set .showcase-exhibit > model-viewer { position: absolute; left: 0; top: calc(var(--board-y) * 100cqh / 820); width: 100%; height: calc(var(--board-h) * 100cqh / 820) !important; max-height: none; object-fit: contain; }
