/* Studio (docs/design-system.md, Layout: Studio). Two tabs under the page
   header, both at the wide content width: Generate is one column of step
   cards, Review the candidates grid. */

.studio {
  margin-top: var(--space-8);
}

.studio__steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Step 1: the count stepper with its note beside it, under it on a phone. */
.count-step {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.count-step__note {
  margin: 0;
  font-size: var(--text-note);
  color: var(--color-text-muted);
}

/* The Generate panel under the steps: Generate at the right with its notes
   before it. On a phone the notes wrap over Generate. */
.studio__batch {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-4) var(--space-6);
}

.studio__generate {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-4);
  margin-left: auto;
}

/* The warnings and the reason Generate is off, right before it. */
.studio__notes {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  text-align: right;
}

.studio__notes:empty {
  display: none;
}

/* Why Generate is off, or makes fewer carousels than the count. */
.studio__blocker {
  margin: 0;
  font-size: var(--text-note);
  color: var(--color-text-muted);
}

.studio__waiting {
  font-size: var(--text-note);
  color: var(--color-text-muted);
}

.studio__waiting b {
  font-weight: var(--weight-semibold);
  font-variant-numeric: tabular-nums;
  color: var(--color-text);
}

/* Review: the new batch above the earlier candidates, 32px apart. */
.studio__review {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.studio__grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* The spinner and the empty state, centred in the content area. */
.studio__placeholder {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Phone: the grid two across. */
@media (max-width: 860px) {
  .studio {
    margin-top: var(--space-6);
  }

  .studio__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .studio__placeholder {
    min-height: 0;
  }
}
