/* A small studio collection, confined below the Services headline. */
.studio-play {
  align-self: stretch;
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(280px, 1fr);
}
.studio-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  font-size: var(--paak-type-small);
  line-height: 1.4;
}
.studio-stage {
  container-type: inline-size;
  --piece-unit: clamp(0.65px, 0.1cqw, 1.15px);
  min-width: 0;
  min-height: 280px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-content: flex-end;
  align-items: end;
  justify-content: space-evenly;
  padding: 16px 8px 0;
  touch-action: pan-y;
}
.studio-stage.is-ready {
  display: block;
  padding: 0;
}
.inner-page .studio-piece {
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 1.5px solid #000;
  border-radius: calc(8 * var(--piece-unit));
  background: #fff;
  color: #000;
  cursor: grab;
  user-select: none;
  touch-action: none;
  -webkit-user-select: none;
  font-family: var(--font-display);
  line-height: 1;
  letter-spacing: -0.05em;
}
.studio-stage.is-ready .studio-piece {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: center;
}
.inner-page .studio-piece:disabled {
  cursor: default;
  opacity: 1;
}
.studio-piece.is-held {
  cursor: grabbing;
  z-index: 2;
}
.inner-page .studio-piece:focus-visible {
  outline: 2px dashed #555;
  outline-offset: -6px;
  z-index: 3;
}
.studio-piece > * {
  pointer-events: none;
}
.studio-piece--browser {
  width: calc(210 * var(--piece-unit));
  height: calc(140 * var(--piece-unit));
  flex-direction: column;
  align-items: stretch;
  justify-content: start;
}
.piece-browser-bar {
  width: 100%;
  height: 22%;
  border-bottom: 1.5px solid #000;
  display: flex;
  align-items: center;
  gap: calc(6 * var(--piece-unit));
  padding-inline: calc(12 * var(--piece-unit));
}
.piece-browser-bar i {
  width: calc(5 * var(--piece-unit));
  height: calc(5 * var(--piece-unit));
  border: 1px solid #000;
  border-radius: 50%;
}
.piece-browser-content {
  width: 100%;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: calc(10 * var(--piece-unit));
  padding: calc(14 * var(--piece-unit));
}
.piece-browser-content i {
  background: #000;
}
.piece-browser-content i:first-child {
  grid-column: 1 / -1;
}
.inner-page .studio-piece--type {
  width: calc(114 * var(--piece-unit));
  height: calc(114 * var(--piece-unit));
  background: #000;
  color: #fff;
  font-size: calc(76 * var(--piece-unit));
}
.inner-page .studio-piece--code {
  width: calc(130 * var(--piece-unit));
  height: calc(96 * var(--piece-unit));
  font-size: calc(66 * var(--piece-unit));
}
.inner-page .studio-piece--grid {
  width: calc(96 * var(--piece-unit));
  height: calc(96 * var(--piece-unit));
  border-radius: 0;
}
.studio-piece--grid > span {
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: #000;
}
.studio-piece--grid i {
  background: white;
}
.studio-piece--grid i:nth-child(2n) {
  background: #000;
}
.inner-page .studio-piece--ring {
  width: calc(86 * var(--piece-unit));
  height: calc(86 * var(--piece-unit));
  border: calc(12 * var(--piece-unit)) solid #000;
  border-radius: 50%;
}
.inner-page .studio-piece--yellow {
  width: calc(140 * var(--piece-unit));
  height: calc(70 * var(--piece-unit));
  border: 0;
  border-radius: 999px;
  background: #ffd500;
}
.studio-piece--yellow span {
  width: calc(16 * var(--piece-unit));
  height: calc(16 * var(--piece-unit));
  border-radius: 50%;
  background: #000;
}
.inner-page .studio-piece--plus {
  width: calc(80 * var(--piece-unit));
  height: calc(80 * var(--piece-unit));
  font-size: calc(66 * var(--piece-unit));
}
.inner-page .studio-piece--dot {
  width: calc(48 * var(--piece-unit));
  height: calc(48 * var(--piece-unit));
  background: #000;
  border-radius: 50%;
}
.inner-page .studio-piece--swatch {
  width: calc(96 * var(--piece-unit));
  height: calc(54 * var(--piece-unit));
  overflow: hidden;
}
.studio-piece--swatch span {
  width: 50%;
  height: 100%;
  background: #000;
  margin-right: auto;
}
.studio-piece[hidden] {
  display: none;
}
.studio-access-help {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (width < 1024px) {
  .inner-page .studio-piece--extra {
    display: none;
  }
}
@media (width < 768px) {
  .studio-toolbar {
    align-items: start;
    gap: 16px;
  }
  .studio-hint {
    white-space: pre-line;
  }
}
/* Enlarged text narrows the playfield; keep every piece usable and packable. */
@container (width < 280px) {
  .studio-piece {
    --piece-unit: 0.5px;
    min-width: 44px;
    min-height: 44px;
  }
}
