/* ---------- Studio: graphics and widgets in one editor ----------
   Studio wears the figure kit's columns (stage-figure-kit-app.css): the type
   list on the left, then the plate and its settings. What is its own is the
   chip naming the context, the Graphic / Live widget switch, the start pages
   shown before a type is chosen and the widget preview. */

.pitch-site--app .studio-context-chip {
  align-items: center;
  align-self: flex-start;
  background: var(--ps-turf);
  border: 2px solid var(--ps-ink);
  border-radius: 14px;
  color: var(--ps-cream);
  display: inline-flex;
  font-size: 0.875rem;
  gap: 6px;
  max-inline-size: 100%;
  padding: 3px 4px 3px 12px;
}

.pitch-site--app .studio-context-chip__name {
  overflow-wrap: anywhere;
}

.pitch-site--app .studio-context-chip__remove {
  border-radius: 50%;
  color: inherit;
  display: grid;
  flex: none;
  font-size: 1rem;
  block-size: 24px;
  inline-size: 24px;
  line-height: 1;
  place-items: center;
  text-decoration: none;
}

.pitch-site--app .studio-context-chip__remove:hover {
  background: var(--ps-cream);
  color: var(--ps-ink);
}

.pitch-site--app .studio-outputs {
  background: var(--ps-paper-deep);
  border: 2px solid var(--ps-ink);
  border-radius: 10px;
  display: grid;
  gap: 3px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 3px;
}

.pitch-site--app .studio-outputs__option {
  align-items: center;
  border-radius: 6px;
  color: var(--ps-ink);
  display: flex;
  font-size: 0.875rem;
  font-weight: 600;
  justify-content: center;
  min-block-size: 2rem;
  padding: 4px 8px;
  text-align: center;
  text-decoration: none;
}

.pitch-site--app .studio-outputs__option:hover {
  background: var(--ps-paper-raised);
}

.pitch-site--app .studio-outputs__option.is-active {
  background: var(--ps-ink);
  color: var(--ps-cream);
}

.pitch-site--app .studio__start,
.pitch-site--app .studio__empty {
  min-block-size: 0;
  overflow-y: auto;
  padding: 18px 22px;
}

.pitch-site--app .studio-widget__preview {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.pitch-site--app .studio-widget__sample {
  aspect-ratio: 16 / 9;
  background: var(--ps-paper);
  border: 2px solid var(--ps-ink);
  box-sizing: border-box;
  color: var(--ps-ink);
  display: grid;
  max-inline-size: 40rem;
  padding: 8%;
  place-items: center;
}

.pitch-site--app .studio-widget__sample .widget-sample {
  block-size: 100%;
  inline-size: 100%;
}

@media (max-width: 74.999rem) {
  .pitch-site--app .studio__start,
  .pitch-site--app .studio__empty {
    overflow-y: visible;
  }
}
