.studio-gallery {
  width: 100%;
  max-width: 1240px;
  margin: 24px auto 0;
  color: var(--public-ink, var(--oai-text-primary, #f5f5f5));
  text-align: left;
}
.studio-tabs {
  display: flex;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 4px;
  overflow-x: auto;
  border: 1px solid #383838;
  border-radius: 28px;
  background: #212121;
  scrollbar-width: thin;
}
.studio-tab {
  flex-shrink: 0;
  padding: 10px 18px;
  border: 0;
  border-radius: 24px;
  background: transparent;
  color: #b8b8b8;
  font: inherit;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
}
.studio-tab:hover, .studio-tab[aria-selected="true"] {
  color: #fff;
  background: #353535;
}
.studio-tab:focus-visible, .studio-dot:focus-visible, .studio-panel:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 2px;
}
.studio-hint {
  margin: 14px 0 20px;
  color: var(--public-muted, var(--oai-text-secondary, #a3a3a3));
  font-size: 14px;
  text-align: center;
}
.studio-panel[hidden], .studio-hotspot-card[hidden] { display: none; }
.studio-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid #3b3b3b;
  border-radius: 12px;
  background: #191919;
}
.studio-screen img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}
.studio-hotspot {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  z-index: 1;
}
.studio-hotspot.is-open { z-index: 2; }
.studio-dot {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.studio-dot span {
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 0 7px #38bdf830, 0 0 14px #38bdf880;
}
.studio-dot:hover span, .studio-dot[aria-expanded="true"] span { background: #b6eaff; }
.studio-hotspot-card {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 288px;
  padding: 16px;
  border: 1px solid #525252;
  border-radius: 10px;
  background: #202020;
  box-shadow: 0 12px 32px #0008;
  font-size: 14px;
  line-height: 1.5;
}
.studio-hotspot-left .studio-hotspot-card { left: 0; transform: none; }
.studio-hotspot-right .studio-hotspot-card { left: auto; right: 0; transform: none; }
.studio-hotspot-above .studio-hotspot-card { top: auto; bottom: 100%; }
.studio-hotspot-card strong { display: block; color: #fff; }
.studio-hotspot-card p { margin: 8px 0 0; color: #c5c5c5; }
.studio-caption { padding: 20px 0 0; }
.studio-caption strong { font-size: 18px; }
.studio-caption p, .studio-details p { margin: 8px 0 0; color: var(--public-muted, var(--oai-text-secondary, #b8b8b8)); font-size: 16px; line-height: 1.6; }
.studio-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--public-line, #383838);
}
.studio-details h3 { margin: 0; font-size: 16px; }
.studio-detail-image { display: block; position: relative; overflow: hidden; aspect-ratio: 16 / 9; margin-bottom: 20px; border: 1px solid var(--public-line, #383838); border-radius: 8px; background: #191919; }
.studio-detail-image img { position: absolute; width: 280%; max-width: none; height: auto; left: 50%; top: 50%; transform: translate(calc(-1 * var(--focus-x)), calc(-1 * var(--focus-y))); }
.studio-detail-image:focus-visible { outline: 2px solid var(--public-ink, #111); outline-offset: 4px; }
.developer-product-preview-frame:has(.studio-gallery, .developer-product-beta-preview) { display: block; min-height: 0; background: transparent; }
.developer-product-preview-frame .studio-gallery { margin: 0; padding: 24px; }
.developer-product-beta {
  display: inline-block;
  margin-left: 10px;
  padding: 4px 10px;
  border: 1px solid #67b8df;
  border-radius: 20px;
  color: var(--public-ink, #a6e1ff);
  font-size: 14px;
  letter-spacing: 0;
}
.developer-product-beta-preview { grid-column: 1 / -1; padding: 48px 28px; }
.developer-product-beta-preview strong { font-size: 28px; }
.developer-product-beta-preview p { max-width: 640px; color: var(--public-muted, #b8b8b8); line-height: 1.6; }
@media (max-width: 760px) {
  .studio-tab { padding: 10px 14px; }
  .studio-hint { margin-bottom: 16px; }
  .studio-screen { border-radius: 8px; }
  .studio-hotspot { position: static; transform: none; width: 0; height: 0; }
  .studio-dot { position: absolute; top: var(--y); left: var(--x); transform: translate(-50%, -50%); }
  .studio-hotspot .studio-hotspot-card {
    top: 100%; bottom: auto; left: 0; right: auto;
    width: 100%; transform: none;
  }
  .studio-screen:has(.is-open) { margin-bottom: 180px; }
  .studio-details { grid-template-columns: 1fr; gap: 20px; }
  .developer-product-preview-frame .studio-gallery { padding: 16px; }
}
