/* Launch a token: the step card on the left, the preview of the token's card on the right. */

.cr-head { margin-bottom: 28px; }
.cr-lede { margin-top: 12px; max-width: 680px; color: var(--muted); font-size: 16px; }

.cr-grid { display: grid; grid-template-columns: minmax(0, 648px) minmax(0, 1fr); gap: 28px; align-items: start; }

/* ---- the step card ---- */
.cr-form { padding: 24px 24px 28px; }
.cr-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
/* an input's intrinsic width would otherwise push the pay box past a phone's edge */
.cr-form .paybox-input { width: 0; }
.cr-body .t-section { margin-bottom: 2px; }

.cr-steps { display: flex; gap: 22px; margin-bottom: 16px; font-size: 14px; color: var(--muted); }
.cr-step { display: inline-flex; align-items: center; gap: 8px; }
.cr-step.is-current, .cr-step.is-done { color: var(--text); }
.cr-step.is-current { font-weight: 500; }
.cr-num {
  display: inline-grid; place-items: center; width: 22px; height: 22px;
  border-radius: 50%; border: 1px solid var(--line);
  font-size: 12px; font-weight: 600; line-height: 1;
}
.cr-step.is-current .cr-num { background: var(--text); border-color: var(--text); color: var(--bg); }
.cr-step.is-done .cr-num { border-color: var(--text); }

/* start: an error under one field must not push its neighbours' inputs down */
.cr-row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.cr-row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.cr-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 4px; }
.cr-actions .btn { min-width: 200px; }

.cr-image { display: flex; align-items: center; gap: 16px; }
.cr-thumb {
  flex: none; display: grid; place-items: center; overflow: hidden;
  width: 72px; height: 72px; padding: 0;
  border-radius: 14px; border: 1px dashed color-mix(in srgb, var(--line) 40%, var(--muted));
  background: var(--surface-2); color: var(--muted);
  transition: border-color .15s, color .15s;
}
.cr-thumb:hover, .cr-thumb.is-over { border-color: var(--text); color: var(--text); }
.cr-thumb.has-image { border-style: solid; border-color: var(--line); }
.cr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cr-image-side { display: grid; gap: 8px; justify-items: start; }
.cr-image-btns { display: flex; gap: 6px; }

.cr-paybox-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cr-gets { color: var(--muted); margin-top: -6px; }
.cr-summary { margin: 0; border-top: 1px solid var(--line-soft); }
.cr-summary > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.cr-summary dt { color: var(--muted); }
.cr-summary dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }
.cr-form .cr-note { margin-top: -6px; text-align: right; font-size: 12px; color: var(--muted); }

/* ---- the preview ---- */
.cr-preview { position: sticky; top: 24px; display: grid; gap: 10px; min-width: 0; }
.cr-pv-label { padding-left: 4px; }
.cr-preview > .cr-note { padding-left: 4px; font-size: 12px; color: var(--muted); }
/* the card itself is the Launches grid card (.ln-card); here it only gets a grid card's width */
.cr-pv { width: 100%; max-width: 264px; }
.cr-pv .lrow-title > .is-empty { color: var(--muted); }

@media (max-width: 1100px) {
  .cr-grid { grid-template-columns: minmax(0, 1fr) 340px; }
}
@media (max-width: 900px) {
  .cr-grid { grid-template-columns: minmax(0, 1fr); }
  .cr-preview { position: static; }
}
@media (max-width: 767px) {
  .cr-head { margin-bottom: 20px; }
  .cr-lede { font-size: 15px; }
  .cr-form { padding: 20px 16px 22px; }
  .cr-row2 { gap: 12px; }
  .cr-row3 { grid-template-columns: minmax(0, 1fr); }
  .cr-actions .btn { flex: 1; min-width: 0; }
}
