/* Rules that belong to the wizard screens only. Colours come from tokens.css. */

/* One content width for every step, so the header, the step bar and the cards line up. */
.em-wizard { max-width: 1040px; }

/* Account picker: option cards in a grid that scrolls once the list gets long.
   The padding keeps the focus ring of the outer cards from being clipped. */
.em-choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.em-choice-scroll { max-height: 26rem; overflow-y: auto; padding: 4px; margin: -4px; }

/* Launch readiness checklist */
.em-checklist { list-style: none; margin: 0; padding: 0 22px 14px; }
.em-checklist__item { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 0; border-top: 1px solid var(--em-line); }
.em-checklist__item:first-child { border-top: 0; }
.em-checklist__text { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; }

/* Template picker: list above the preview on a phone, side by side from 768px. */
.em-tpl-picker__filters { padding: 0 22px 14px; }
.em-tpl-picker__panes { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; border-block: 1px solid var(--em-line); }
.em-tpl-picker__list { flex: none; max-height: 40vh; overflow-y: auto; border-bottom: 1px solid var(--em-line); }
.em-tpl-picker__preview { flex: 1 0 auto; min-width: 0; min-height: 50vh; display: flex; flex-direction: column; }
.em-tpl-picker__preview-head { padding: 10px 16px; border-bottom: 1px solid var(--em-line); }
.em-tpl-picker__preview .em-preview-frame { flex: 1 1 auto; min-height: 0; border-radius: 0; }
@media (min-width: 768px) {
    .em-tpl-picker { height: 85vh; }
    .em-tpl-picker__panes { flex-direction: row; overflow: hidden; }
    .em-tpl-picker__list { flex: 0 0 40%; max-height: none; border-bottom: 0; border-right: 1px solid var(--em-line); }
    .em-tpl-picker__preview { flex: 1 1 0; min-height: 0; }
}

.em-tpl-row { display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-bottom: 1px solid var(--em-line); }
.em-tpl-row.is-active { background: var(--em-accent-soft); }
.em-tpl-row__pick { flex: 1 1 auto; min-width: 0; padding: 8px 10px; border: 0; border-radius: var(--em-radius-sm); background: transparent; color: inherit; text-align: left; }
.em-tpl-row__pick:hover { background: var(--em-surface-2); }
.em-tpl-row.is-active .em-tpl-row__pick:hover { background: transparent; }
.em-tpl-row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 4px; color: var(--em-muted); font-size: .82rem; }
