.gen-frame {
  display: block;
  width: 100%;
  height: calc(100vh - 4.6rem);
  border: 0;
  background: #faf6f0;
}
.gen-frame[hidden],
.gen-native[hidden] { display: none !important; }
.gen-native { padding: 18px 18px 48px; }
.gen-chooser h1 { margin: 0 0 8px; }
.gen-chooser p { margin: 0 0 16px; color: #57534e; max-width: 40rem; }
.gen-chooser-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.gen-chooser-grid button {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  background: #fff;
  border: 1px solid #eadfce;
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  font: inherit;
  cursor: pointer;
}
.gen-chooser-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #f4efe6;
}
.gen-chooser-grid span { display: grid; gap: 2px; padding: 12px 14px 14px; }
.gen-chooser-grid strong { font-weight: 750; font-size: 1.02rem; }
.gen-chooser-grid em { font-style: normal; font-weight: 500; color: #57534e; font-size: 0.88rem; line-height: 1.35; }
.gen-chooser-grid button:hover { border-color: #e56b1f; }
.gen-chooser-grid button:hover strong { color: #9a3412; }
#gen-all.is-on { background: rgba(229, 107, 31, 0.12); color: #9a3412; }
.gen-tool {
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.gen-card {
  background: #fff;
  border: 1px solid #eadfce;
  border-radius: 18px;
  padding: 16px;
}
.gen-card h1 { margin: 0 0 6px; font-size: 1.45rem; }
.gen-lead { margin: 0 0 14px; color: #57534e; }
.gen-field { display: grid; gap: 4px; margin-bottom: 10px; font-weight: 650; font-size: 0.92rem; }
.gen-field[hidden],
.gen-slider[hidden] { display: none; }
.gen-slider { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; margin-bottom: 12px; font-weight: 700; font-size: 0.9rem; }
.gen-slider input[type="range"] { grid-column: 1 / -1; width: 100%; accent-color: #e56b1f; }
.gen-slider output { color: #c45f1a; font-variant-numeric: tabular-nums; }
.gen-field input,
.gen-field select {
  font: inherit;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #eadfce;
  background: #fff;
  width: 100%;
}
.gen-view canvas#gen-view {
  width: 100%;
  height: 440px;
  display: block;
  background: #8f8f8f;
  border-radius: 16px;
}
#gen-flat {
  display: block;
  width: min(280px, 100%);
  height: auto;
  margin-top: 12px;
  background: #fff;
  border-radius: 12px;
  image-rendering: pixelated;
}
.gen-note { color: #57534e; font-size: 0.92rem; margin: 12px 0; }
.gen-warn { color: #9a3412; font-size: 0.92rem; margin: 0 0 12px; }
.gen-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.gen-swatch {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 2px solid rgba(28, 25, 23, 0.16);
  padding: 0;
  cursor: pointer;
}
.gen-swatch.is-on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #e56b1f; }
.gen-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.gen-status { margin-top: 10px; color: #44403c; font-size: 0.9rem; }
.gen-tabs { display: none; }
.vnav-item.is-active { background: rgba(196, 95, 26, 0.12); color: #9a3412; font-weight: 700; }

/* Studio shell — generators page */
body.studio-page {
  --st-ink: #3a2c26;
  --st-muted: #8d7368;
  --st-orange: #ff5c1f;
  --st-peach: #f8dcc8;
  margin: 0;
  min-height: 100vh;
  background: #fbf6f1;
  color: var(--st-ink);
  padding-bottom: 0 !important;
}
body.studio-page .bg-fx { display: none; }
.st-top {
  height: 74px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 28px;
}
.st-brand {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 15px;
  color: #3f2e26;
}
.st-nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.st-nav a, .st-gen-btn {
  font-size: 15px;
  font-weight: 500;
  color: #6d564b;
  background: none;
  border: 0;
  padding: 8px 0 6px;
  cursor: pointer;
}
.st-gen-btn {
  color: var(--st-ink);
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--st-orange);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.st-gen-btn svg { width: 12px; height: 12px; transition: transform 0.15s ease; }
.st-gen-btn.is-open svg { transform: rotate(180deg); }
.st-ar {
  margin-left: 36px;
  border: 1.5px solid #efc2a8;
  background: transparent;
  color: #7a5344;
  border-radius: 999px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.st-ar svg { width: 16px; height: 16px; color: var(--st-orange); }
.st-stage { position: relative; flex: 1; min-height: 0; margin: 0 22px 14px; }
.st-card {
  position: absolute;
  inset: 26px 0 0 0;
  border-radius: 28px;
  overflow: hidden;
  background: radial-gradient(120% 80% at 50% 42%, #fff3e8 0%, #f8dcc8 46%, #f3c9ae 100%);
  box-shadow: 0 24px 60px rgba(120, 70, 40, 0.08);
}
body.studio-page .gen-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}
body.studio-page:not(.is-letters) .st-card {
  background: transparent;
  box-shadow: none;
  overflow: visible;
  border-radius: 0;
}
body.studio-page:not(.is-letters) .gen-native {
  padding: 0;
}
body.studio-page .gen-native {
  position: absolute;
  inset: 0;
  overflow: hidden;
  padding: 48px 12px 12px;
  background: transparent;
  display: flex;
}
body.studio-page .gen-native[hidden] { display: none !important; }
body.studio-page .gen-tool {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 1;
  min-height: 0;
  width: 100%;
  gap: 12px;
}
body.studio-page .gen-view {
  order: -1;
  flex: 1 1 auto;
  align-self: stretch;
  width: 100%;
  min-height: 220px;
  padding: 0;
  border: 0;
  border-radius: 28px;
  overflow: hidden;
  background: radial-gradient(120% 80% at 50% 42%, #fff3e8 0%, #f8dcc8 46%, #f3c9ae 100%);
  box-shadow: 0 24px 60px rgba(120, 70, 40, 0.08);
}
body.studio-page .gen-view canvas#gen-view {
  width: 100%;
  height: 100%;
  background: transparent;
  border-radius: 0;
}
body.studio-page #gen-form {
  flex: 0 1 auto;
  max-height: 42vh;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 18px;
  border: 0;
  border-radius: 22px;
  box-shadow: 0 10px 36px rgba(90, 50, 20, 0.06);
}
body.studio-page #gen-form > .gen-field:not(:has(.gen-swatches)),
body.studio-page #gen-form > h1,
body.studio-page #gen-form > .gen-lead,
body.studio-page #gen-form > .gen-note,
body.studio-page #gen-form > .gen-status,
body.studio-page #gen-form > .gen-actions { grid-column: 1 / -1; }
body.studio-page #gen-form > .gen-field:has(.gen-swatches) { grid-column: span 1; min-width: 0; }
body.studio-page #gen-form:has(#g-font) > .gen-field:has(#g-text),
body.studio-page #gen-form:has(#g-font) > .gen-field:has(#g-role),
body.studio-page #gen-form:has(#g-font) > .gen-field:has(#g-font) {
  grid-column: span 1;
  min-width: 0;
}
body.studio-page #gen-form:has(#g-title-size) > .gen-field:has(#g-colour) {
  grid-column: 1;
}
body.studio-page #gen-form > h1 { font-size: 1.05rem; }
body.studio-page #gen-form .gen-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
body.studio-page #gen-form .btn-outline {
  border: 1px solid #eadfce;
  background: #fff;
  color: #3f2e26;
  border-radius: 999px;
  font-weight: 700;
}
body.studio-page #gen-form .btn-primary {
  margin-left: auto;
  background: #ff5c1f;
  border-color: #ff5c1f;
  color: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(255, 92, 31, 0.28);
}
body.studio-page .gen-slider input[type="range"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  height: 4px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 99px;
  background: linear-gradient(to right, #ff5c1f var(--p, 40%), #e6d9cf var(--p, 40%)) !important;
  box-shadow: none !important;
}
body.studio-page:not(.is-letters) .nyx-ben { bottom: 18px; }
.st-steps {
  position: absolute;
  z-index: 3;
  top: 8px;
  left: 18px;
  display: flex;
  gap: 10px;
}
.st-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 252, 249, 0.94);
  color: var(--st-ink);
  border-radius: 999px;
  padding: 5px 14px 5px 5px;
  font-weight: 650;
  font-size: 14px;
  box-shadow: 0 8px 18px rgba(120, 70, 30, 0.06);
  cursor: pointer;
}
.st-step i {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--st-orange);
  color: #fff;
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 700;
  font-size: 13px;
}
.st-step.is-on { box-shadow: 0 10px 22px rgba(255, 92, 31, 0.16); }
.st-menu {
  position: absolute;
  z-index: 4;
  top: 22px;
  left: 43%;
  right: 22px;
  display: none;
  background: rgba(255, 244, 234, 0.9);
  backdrop-filter: blur(14px);
  border-radius: 22px;
  padding: 22px 26px 14px;
  box-shadow: 0 22px 50px rgba(90, 40, 10, 0.12);
}
.st-menu.is-open { display: block; }
.st-menu-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px 22px; }
.st-menu p {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a7064;
}
.st-menu button[data-gen] {
  display: block;
  width: max-content;
  max-width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 10px;
  padding: 8px 12px;
  margin: 2px 0;
  font-size: 15.5px;
  color: #3a2c26;
  cursor: pointer;
}
.st-menu button[data-gen].is-on,
.st-menu button[data-gen].is-active {
  background: var(--st-orange);
  color: #fff;
  font-weight: 650;
}
.st-menu button[data-gen]:hover:not(.is-on):not(.is-active) { background: rgba(255, 255, 255, 0.55); }
.st-soon-label {
  margin: 16px 0 6px !important;
  font-style: italic;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
  color: #c4b0a4 !important;
  font-weight: 600 !important;
}
.st-moulds { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.st-soon { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.st-soon span {
  font-style: italic;
  color: #b7a294;
  font-size: 15px;
  padding: 4px 2px;
}
.st-menu-foot { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(90, 50, 20, 0.12); }
.st-menu-foot button {
  background: none;
  border: 0;
  color: var(--st-orange);
  font-weight: 700;
  font-size: 15px;
  padding: 6px 2px;
  cursor: pointer;
}
.st-words, .st-height-mark, .st-size, .st-sign, .st-orbit, .st-shadow, .st-rail, .st-more { pointer-events: none; }
.st-words, .st-rail, .st-more, .st-rail button { pointer-events: auto; }
.st-words {
  position: absolute;
  top: 58px;
  left: 22px;
  z-index: 2;
  background: rgba(255, 252, 248, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 14px;
  padding: 8px 12px 10px;
  min-width: 118px;
  box-shadow: 0 8px 20px rgba(120, 70, 30, 0.05);
}
.st-words span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #b08b7c;
  margin-bottom: 2px;
}
.st-words label { display: flex; align-items: center; gap: 1px; }
body.theme-light-print.studio-page .st-words input[type="text"] {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  width: 8ch;
  height: auto !important;
  padding: 0 !important;
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.1;
  color: #2b211c !important;
  caret-color: var(--st-orange);
}
.st-words i {
  width: 2px;
  height: 18px;
  background: var(--st-orange);
  animation: st-blink 1.05s steps(1) infinite;
}
.st-words:focus-within i { visibility: hidden; }
.st-words.is-focus { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--st-orange); }
@keyframes st-blink { 50% { opacity: 0; } }
.st-height-mark {
  position: absolute;
  left: 7%;
  top: 26%;
  height: 168px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 1;
}
.st-height-mark span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--st-orange);
  font-weight: 650;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.st-height-mark b { display: block; width: 0; height: 100%; border-left: 1.5px dotted var(--st-orange); }
.st-size {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 58px;
  text-align: center;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.16em;
  color: #a0887c;
  z-index: 1;
}
.st-sign {
  position: absolute;
  left: 22px;
  bottom: 18px;
  font-size: 13px;
  font-weight: 650;
  color: #d7b5a6;
  z-index: 1;
}
.st-orbit {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #5e5854;
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  z-index: 2;
  box-shadow: 0 8px 18px rgba(40, 30, 20, 0.16);
}
.st-orbit svg { width: 14px; height: 14px; }
.st-shadow { display: none; }
.st-rail {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 10px;
  z-index: 2;
}
.st-rail button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  box-shadow: 0 8px 18px rgba(80, 40, 20, 0.1);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}
.st-rail svg { width: 18px; height: 18px; stroke: #3a2c26; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.st-rail .is-cube svg, .st-rail button.is-lit svg { stroke: var(--st-orange); }
.st-more {
  position: absolute;
  top: 132px;
  left: 22px;
  z-index: 3;
  width: min(280px, calc(100% - 90px));
  background: rgba(255, 252, 248, 0.94);
  border-radius: 16px;
  padding: 12px;
  display: grid;
  gap: 8px;
  box-shadow: 0 12px 30px rgba(80, 40, 20, 0.1);
}
.st-more[hidden] { display: none !important; }
.st-more label { display: grid; gap: 4px; font-size: 12px; font-weight: 700; color: #6d564b; }
.st-more input, .st-more select {
  border: 1px solid #eadfce;
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
  font-weight: 600;
}
.st-dock {
  margin: 0 22px 16px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 10px 36px rgba(90, 50, 20, 0.06);
  padding: 14px 18px 14px;
  display: grid;
  gap: 12px;
}
.st-sliders { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 22px; }
.st-slider { display: grid; gap: 8px; }
.st-slider em { font-style: normal; }
.st-slider > span { display: flex; justify-content: space-between; font-size: 14px; font-weight: 650; color: var(--st-ink); }
.st-slider output { color: var(--st-orange); font-variant-numeric: tabular-nums; }
body.studio-page .st-slider input[type="range"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 100% !important;
  height: 4px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 99px;
  box-shadow: none !important;
  background: linear-gradient(to right, #ff5c1f var(--p, 40%), #e6d9cf var(--p, 40%)) !important;
  outline: none;
}
body.studio-page .gen-slider input[type="range"]::-webkit-slider-thumb,
.st-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -7px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  box-shadow: 0 1px 4px rgba(40, 20, 10, 0.25);
  cursor: pointer;
}
.st-slider input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  box-shadow: 0 1px 4px rgba(40, 20, 10, 0.25);
  cursor: pointer;
}
.st-controls { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.st-style { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; }
body.theme-light-print.studio-page .st-style select {
  border: 0 !important;
  background: #f6f1ec !important;
  box-shadow: none !important;
  border-radius: 999px !important;
  padding: 8px 28px 8px 12px !important;
  font-weight: 650;
  color: var(--st-ink) !important;
}
.st-colours { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; }
.st-dots { display: flex; gap: 7px; }
.st-dots button {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(40, 20, 10, 0.12);
  padding: 0;
  cursor: pointer;
}
.st-dots button.is-on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--st-orange); }
.st-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; cursor: pointer; }
.st-switch { position: relative; width: 42px; height: 24px; border-radius: 99px; background: #e4dcd4; display: inline-block; }
.st-switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.st-switch i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease;
  pointer-events: none;
}
.st-switch:has(input:checked) { background: var(--st-orange); }
.st-switch:has(input:checked) i { transform: translateX(18px); }
.st-quiet {
  border: 1px solid #eadfce;
  background: #fff;
  color: #3f2e26;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.st-quiet.is-on { border-color: var(--st-orange); color: var(--st-orange); }
.st-price { font-size: 13px; font-weight: 700; color: #8a6858; }
.st-quote {
  margin-left: auto;
  background: var(--st-orange);
  color: #fff;
  border: 0;
  border-radius: 16px;
  padding: 14px 26px;
  font-weight: 750;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(255, 92, 31, 0.28);
}
body.studio-page:not(.is-letters) .st-dock,
body.studio-page:not(.is-letters) .st-words,
body.studio-page:not(.is-letters) .st-height-mark,
body.studio-page:not(.is-letters) .st-size,
body.studio-page:not(.is-letters) .st-sign,
body.studio-page:not(.is-letters) .st-orbit,
body.studio-page:not(.is-letters) .st-shadow,
body.studio-page:not(.is-letters) .st-rail,
body.studio-page:not(.is-letters) .st-step-words,
body.studio-page:not(.is-letters) #st-step-1,
body.studio-page:not(.is-letters) #st-step-2,
body.studio-page:not(.is-letters) .st-more { display: none !important; }
body.studio-page.is-account-gate .st-orbit,
body.studio-page.is-account-gate .st-size,
body.studio-page.is-account-gate .st-sign,
body.studio-page.is-account-gate .st-words,
body.studio-page.is-account-gate .st-height-mark,
body.studio-page.is-account-gate .st-rail,
body.studio-page.is-account-gate .st-steps { visibility: hidden; }
body.studio-page .nyx-ben { right: 18px; bottom: 228px; }
@media (min-width: 981px) {
  body.studio-page { height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
}
@media (max-width: 980px) {
  body.studio-page { height: auto; padding-bottom: 28px !important; }
  .st-top { height: 54px; padding: 0 12px 0 14px; flex-wrap: nowrap; gap: 8px; }
  .st-brand { font-size: 13px; letter-spacing: 0.12em; }
  .st-nav { width: auto; margin-left: auto; gap: 10px; flex-wrap: nowrap; }
  .st-nav a, .st-gen-btn { font-size: 13px; white-space: nowrap; padding: 6px 0; }
  .st-ar {
    margin-left: 2px;
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
    font-size: 0;
    gap: 0;
  }
  .st-stage { margin: 0 10px 10px; min-height: 0; }
  .st-card { position: relative; inset: auto; margin-top: 46px; min-height: 52vh; }
  .st-menu { left: 10px; right: 10px; top: 54px; max-height: 62vh; overflow: auto; }
  .st-steps { left: 8px; right: 8px; top: 0; overflow-x: auto; }
  .st-step { white-space: nowrap; flex: 0 0 auto; font-size: 13px; padding: 4px 10px 4px 4px; }
  .st-step i { width: 22px; height: 22px; font-size: 12px; }
  .st-words { top: 36px; left: 12px; }
  .st-size { bottom: 46px; font-size: 10px; letter-spacing: 0.08em; }
  .st-sign { display: none; }
  .st-orbit { white-space: nowrap; font-size: 12px; bottom: 10px; }
  .st-height-mark { left: 8px; height: 120px; }
  .st-sliders { grid-template-columns: 1fr; gap: 12px; }
  .st-dock { margin: 0 10px 12px; }
  body.studio-page:not(.is-letters) .st-card { min-height: 78vh; }
  body.studio-page #gen-form { grid-template-columns: 1fr; max-height: none; }
  .st-quote { width: 100%; margin-left: 0; }
  .st-menu-cols { grid-template-columns: 1fr; }
  body.studio-page .nyx-ben,
  body.studio-page:not(.is-letters) .nyx-ben {
    top: 62px;
    right: 14px;
    bottom: auto;
    left: auto;
  }
  body.studio-page .nyx-ben-panel {
    top: 58px;
    right: 0;
    bottom: auto;
    height: min(62dvh, 480px);
  }
}

@media (max-width: 900px) {
  .gen-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 10px 12px;
    background: rgba(250, 246, 240, 0.96);
    position: sticky;
    top: 0;
    z-index: 6;
  }
  .gen-tabs button {
    flex: 0 0 auto;
    border: 1px solid #eadfce;
    background: #fff;
    border-radius: 999px;
    padding: 7px 11px;
    font: inherit;
    font-size: 0.82rem;
  }
  .gen-tabs button.is-on { background: #c45f1a; color: #fff; border-color: #c45f1a; }
  .gen-tool { display: flex; flex-direction: column; }
  .gen-frame { height: calc(100vh - 8.2rem); }
  .gen-card h1,
  .gen-lead { display: none; }
  .gen-view { display: contents; }
  .gen-view canvas#gen-view { order: -1; height: 240px; }
}

/* ABT01 loads the desk nameplate on its own. The studio chrome stays on the ABT01 page. */
html.is-embed,
html.is-embed body.studio-page {
  height: 100%;
  min-height: 100%;
  overflow: auto;
}
html.is-embed body.studio-page {
  display: block;
  padding-bottom: 0 !important;
}
html.is-embed body.studio-page .st-top,
html.is-embed body.studio-page .st-menu,
html.is-embed body.studio-page .st-steps,
html.is-embed body.studio-page .st-dock,
html.is-embed body.studio-page .nyx-ben { display: none !important; }
html.is-embed body.studio-page .st-stage {
  margin: 0;
  min-height: 100vh;
  height: 100vh;
}
html.is-embed body.studio-page .st-card {
  position: absolute;
  inset: 0;
  margin: 0;
  border-radius: 0;
  min-height: 100%;
}
html.is-embed body.studio-page .gen-native {
  overflow: auto;
  padding: 12px;
}

html.brand-abt01 body.studio-page {
  --st-ink: #171123;
  --st-orange: #f5c518;
  background: #f3f5f8;
}
html.brand-abt01 .st-card,
html.brand-abt01 body.studio-page .gen-view {
  background: radial-gradient(120% 80% at 50% 42%, #f7f8fc 0%, #e4eaf6 46%, #d5deee 100%);
  box-shadow: 0 24px 60px rgba(23, 17, 35, 0.08);
}
html.brand-abt01 .st-menu { background: rgba(243, 245, 248, 0.94); }
html.brand-abt01 .st-step i,
html.brand-abt01 .st-menu button[data-gen].is-on,
html.brand-abt01 .st-menu button[data-gen].is-active,
html.brand-abt01 .st-quote,
html.brand-abt01 body.studio-page #gen-form .btn-primary {
  color: #171123;
}
html.brand-abt01 .st-quote,
html.brand-abt01 body.studio-page #gen-form .btn-primary {
  box-shadow: 0 10px 20px rgba(245, 197, 24, 0.35);
}
html.brand-abt01 .st-slider output,
html.brand-abt01 .st-height-mark,
html.brand-abt01 .st-quiet.is-on { color: #9a7200; }
html.brand-abt01 body.studio-page .gen-slider input[type="range"],
html.brand-abt01 body.studio-page .st-slider input[type="range"] {
  background: linear-gradient(to right, #f5c518 var(--p, 40%), #e6d9cf var(--p, 40%)) !important;
}
html.brand-abt01 .st-nav > a:not([data-abt-account]),
html.brand-abt01 #st-ar,
html.brand-abt01 .nyx-ben { display: none !important; }
@media (max-width: 980px) {
  body.studio-page.is-account-gate .st-card { min-height: 640px; }
}
