/*
 * Create for several players (founders' feedback of 1 November 2026): the
 * list step, the review's plates and the batch page.
 *
 * Layout only, over the wizard's own classes (wizard.css). Every colour, size,
 * radius and duration is a token; nothing here authors a new component.
 *
 * THE LIST IS A GRID, NOT A TABLE OF FORMS. Each person is one row of four
 * inputs across the panel's full width — the form uses the width it has rather
 * than a thin column of fields — and on a phone each row stacks into a small
 * card of its own.
 */

/* ---- The list ------------------------------------------------------------ */

.bulk-rows {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.bulk-rows__head,
.bulk-row {
  display: grid;
  grid-template-columns:
    var(--space-6)
    minmax(0, 1.1fr)
    minmax(0, 1.4fr)
    minmax(0, 0.9fr)
    minmax(0, 1fr)
    var(--control-height);
  gap: var(--space-2);
  align-items: center;
}

.bulk-rows__head {
  color: var(--text-tertiary);
  font-size: var(--type-caption-size);
  line-height: var(--type-caption-leading);
  font-weight: var(--font-weight-semibold);
}

.bulk-rows__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.bulk-row__number {
  color: var(--text-tertiary);
  font-size: var(--type-caption-size);
  font-variant-numeric: tabular-nums;
  text-align: end;
}

/* The row's own messages sit under its inputs, from the name column on. */
.bulk-row__error,
.bulk-row__hint {
  grid-column: 2 / -1;
}

.bulk-row__error {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}

.bulk-row__hint {
  color: var(--text-tertiary);
  font-size: var(--type-caption-size);
  line-height: var(--type-caption-leading);
}

.bulk__count {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}

.bulk__paste {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-top: var(--space-6);
  border-top: var(--border-width) solid var(--divider);
}

.bulk__paste .wizard__section-title { margin-bottom: 0; }

.bulk__report {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  color: var(--text-secondary);
  font-size: var(--type-body-size);
  line-height: var(--type-body-leading);
}

.bulk__problems {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding-inline-start: var(--space-5);
  list-style: disc;
  color: var(--danger-text);
}

/* ---- The review --------------------------------------------------------- */

/* The batch's two lines, side by side: one row across the panel rather than
   two full-width inputs for a dozen words each. */
.bulk-review__lines {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--grid-min-column), 1fr));
  gap: var(--space-4);
}

.bulk-review__plates { margin-top: var(--space-2); }

/* Each plate's lines, in the order the prompt engraves them, wrapping rather
   than clipped: a plate is read, not scanned. */
.bulk-plate {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding-block: var(--space-2);
  overflow-wrap: anywhere;
}

.bulk-plate__line {
  color: var(--text-secondary);
  font-size: var(--type-caption-size);
  line-height: var(--type-caption-leading);
}

.bulk-plate__line--named {
  color: var(--text-gold);
  text-transform: uppercase;
}

/* ---- The batch page ----------------------------------------------------- */

.batch__lede {
  color: var(--text-secondary);
  font-size: var(--type-body-size);
  line-height: var(--type-body-leading);
  max-width: var(--panel-width);
  margin-bottom: var(--space-6);
}

.batch__muted {
  color: var(--text-tertiary);
  font-size: var(--type-caption-size);
  white-space: nowrap;
}

.batch__send { display: inline-flex; }

/* Every row's picture in the same square, whichever partial drew it: this
   page's thumbnail, or the artwork partial a broadcast swaps in (D69). */
.batch-table .trophy-artwork {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--thumb-md);
  height: var(--thumb-md);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--plate-render);
}

.batch-table .trophy-artwork__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The broadcast's failure panel carries a sentence for the studio; here the
   status column says it. */
.batch-table .trophy-artwork__pending {
  display: flex;
  align-items: center;
  justify-content: center;
}

.batch-table .trophy-artwork__note { display: none; }

.batch-table .trophy-artwork .ui-status {
  font-size: 0;
  gap: 0;
}

@media (max-width: 767px) {
  .bulk-rows__head { display: none; }

  /* Each person a small card: one field to a line, the remove button in the
     corner beside the name. */
  .bulk-row {
    grid-template-columns: var(--space-6) minmax(0, 1fr) minmax(0, 1fr) var(--control-height-mobile);
    padding: var(--space-3);
    border: var(--border-width) solid var(--divider);
    border-radius: var(--radius-md);
    background: var(--surface-1);
  }

  /* The batch on a phone: the picture, who it is for and where it stands.
     Each link is on its own Troph-e's page. */
  .batch-table th:nth-child(4),
  .batch-table td:nth-child(4) { display: none; }

  .bulk-row__number { grid-row: 1; grid-column: 1; }
  .bulk-row__name { grid-row: 1; grid-column: 2 / 4; }
  .bulk-row__remove { grid-row: 1; grid-column: 4; }
  .bulk-row__email { grid-row: 2; grid-column: 2 / -1; }
  .bulk-row__mobile { grid-row: 3; grid-column: 2 / -1; }
  .bulk-row__team { grid-row: 4; grid-column: 2 / -1; }
}
