/* Estilo "folleto de oficina" del generador y la descarga.
   Hoja independiente de styles.css; solo la cargan generar.html y descarga.html. */

@font-face {
  font-family: "Liberation Sans Cover";
  src: url("../assets/fonts/LiberationSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #f3ead8;
  --paper-2: #e9dec6;
  --ink: #2b2620;
  --ink-soft: #6a5f52;
  --green: #1f4a36;
  --green-hi: #2a6048;
  --cream: #f3ead8;
  --gold: #b08a3e;
  --gold-deep: #6f541b;
  --line: #cbbd9f;
  --field: #fbf6ea;
  --folder: #dcb866;
  --folder-edge: #9a7a34;
  --folder-tab: #c9a552;
  --red: #a73428;
  --ok: #1f4a36;
  --font-display: "Young Serif", Georgia, serif;
  --font-body: "Newsreader", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  /* Una sola curva y tres duraciones para todo el movimiento. */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 110ms;
  --t-mid: 220ms;
  --t-slow: 420ms;
  --band-height: 64px;
  --step-height: 46px;
  --gutter: clamp(18px, 3vw, 40px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.4;
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 16px;
  color: var(--ink);
  font-weight: 600;
  background: var(--field);
  border: 1.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transform: translateY(-200%);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* ---------- Franja superior ---------- */
.band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
  min-height: var(--band-height);
  padding: 12px var(--gutter);
  color: var(--cream);
  background: var(--green);
}

.band .wordmark {
  color: inherit;
  font-family: var(--font-display);
  font-size: 25px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.band .wordmark::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 15px;
  margin-right: 10px;
  background: repeating-linear-gradient(var(--cream) 0 2px, transparent 2px 4px);
  border-radius: 50%;
  vertical-align: -1px;
}

.band__nav {
  display: flex;
  gap: 22px;
  font-size: 16px;
}

.band__nav a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.band__nav a:hover {
  text-decoration-thickness: 2px;
}

.band a:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 4px;
}

/* ---------- Estructura ---------- */
.wizard-layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr) clamp(400px, 30vw, 560px);
  min-height: calc(100vh - var(--band-height));
}

.wizard-layout:focus {
  outline: none;
}

/* ---------- Pasos ---------- */
.wizard-sidebar {
  border-right: 1px solid var(--line);
}

.wizard-steps {
  position: relative;
  margin: 0;
  padding: 34px 0 0;
  list-style: none;
}

/* Marcador que se desliza entre pasos; solo se mueve con transform. */
.wizard-steps::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 0;
  width: 4px;
  height: var(--step-height);
  background: var(--gold);
  transform: translateY(calc(var(--step-index, 0) * var(--step-height)));
  transition: transform var(--t-slow) var(--ease);
}

.wizard-steps[data-step="2"] { --step-index: 1; }
.wizard-steps[data-step="3"] { --step-index: 2; }
.wizard-steps[data-step="4"] { --step-index: 3; }
.wizard-steps[data-step="5"] { --step-index: 4; }

.wizard-step {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: var(--step-height);
  padding: 0 14px 0 var(--gutter);
  color: var(--ink-soft);
  font-size: 16.5px;
  line-height: 1.15;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  transition: color var(--t-mid) var(--ease);
}

.wizard-step:disabled {
  cursor: default;
  opacity: 0.6;
}

.wizard-step:not(:disabled):hover {
  color: var(--ink);
}

.wizard-step:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -2px;
}

.wizard-step--active {
  color: var(--ink);
  font-weight: 600;
}

.wizard-step__mark {
  flex: none;
  width: 22px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 400;
}

.wizard-step__check {
  display: none;
  color: var(--green);
}

.wizard-step--complete .wizard-step__num { display: none; }
.wizard-step--complete .wizard-step__check { display: inline; }
.wizard-step--active .wizard-step__mark { color: var(--gold-deep); font-weight: 500; }

/* ---------- Columna central ---------- */
.wizard-main {
  min-width: 0;
  padding: 34px clamp(20px, 4vw, 52px) 48px;
  overflow: hidden;
}

.wizard-panel {
  max-width: 680px;
  margin-inline: auto;
}

.wizard-panel--enter {
  animation: panel-in var(--t-slow) var(--ease) both;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translate3d(calc(var(--dir, 1) * 18px), 0, 0);
  }
}

.wizard-kicker {
  margin: 0 0 6px;
  color: var(--gold-deep);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wizard-panel__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1.02;
  letter-spacing: -0.015em;
}

.wizard-panel__title:focus {
  outline: none;
}

.wizard-panel__subtitle {
  max-width: 46ch;
  margin: 0 0 24px;
  color: var(--ink-soft);
}

.wizard-inline-message {
  max-width: 680px;
  margin: 0 auto 20px;
  padding: 11px 14px;
  font-weight: 500;
  background: var(--field);
  border: 1.5px solid var(--ink);
  box-shadow: 4px 4px 0 var(--red);
  animation: panel-in var(--t-mid) var(--ease) both;
}

.wizard-inline-message[data-type="success"] {
  box-shadow: 4px 4px 0 var(--ok);
}

/* ---------- Campos ---------- */
.wizard-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}

.wizard-field {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
}

.wizard-field--wide {
  grid-column: 1 / -1;
}

.wizard-label {
  font-size: 15.5px;
  font-weight: 500;
}

.wizard-input,
.wizard-select,
.wizard-textarea {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  background-color: var(--field);
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  outline: none;
  box-shadow: 0 0 0 var(--gold);
  transition: box-shadow var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}

.wizard-textarea {
  height: auto;
  min-height: 220px;
  padding: 12px 13px;
  line-height: 1.45;
  resize: vertical;
}

.wizard-input::placeholder,
.wizard-textarea::placeholder {
  color: var(--ink-soft);
  font-style: italic;
  opacity: 1;
}

.wizard-input:focus-visible,
.wizard-select:focus-visible,
.wizard-textarea:focus-visible {
  box-shadow: 4px 4px 0 var(--gold);
  transform: translate(-1px, -1px);
}

.wizard-input[aria-invalid="true"],
.wizard-select[aria-invalid="true"],
.wizard-segment[aria-invalid="true"] {
  border-color: var(--red);
  box-shadow: 4px 4px 0 var(--red);
}

.wizard-field__error {
  margin: 0;
  color: var(--red);
  font-size: 15px;
  font-weight: 500;
}

.wizard-segment {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 44px;
  background: var(--field);
  border: 1.5px solid var(--ink);
  border-radius: 2px;
}

.wizard-segment label {
  display: grid;
  cursor: pointer;
}

.wizard-segment label + label {
  border-left: 1.5px solid var(--ink);
}

.wizard-segment span {
  display: grid;
  place-items: center;
  font-weight: 500;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.wizard-segment input:checked + span {
  color: var(--cream);
  background: var(--green);
}

.wizard-segment input:focus-visible + span {
  outline: 2px solid var(--gold);
  outline-offset: -5px;
}

.wizard-count {
  justify-self: end;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 12.5px;
}

/* ---------- Botones ---------- */
.btn {
  flex: none;
  padding: 9px 16px 8px;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  background: var(--field);
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}

.btn:hover {
  background: var(--paper-2);
}

.btn:active {
  box-shadow: 0 0 0 var(--ink);
  transform: translate(3px, 3px);
}

.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.btn--primary {
  padding: 13px 26px 12px;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
  text-decoration: none;
  background: var(--green);
  box-shadow: 4px 4px 0 var(--ink);
}

.btn--primary:hover {
  background: var(--green-hi);
}

.btn--primary:active {
  transform: translate(4px, 4px);
}

.btn--primary:disabled {
  cursor: progress;
  opacity: 0.75;
}

.btn--primary[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.5;
}

.btn__arrow {
  display: inline-block;
  transition: transform var(--t-mid) var(--ease);
}

.btn:hover .btn__arrow {
  transform: translate3d(4px, 0, 0);
}

.btn:hover .btn__arrow--back {
  transform: translate3d(-4px, 0, 0);
}

.wizard-panel__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 28px;
}

.wizard-panel__footer--end {
  justify-content: flex-end;
}

.wizard-panel__footer small {
  flex: 1;
  min-width: 0;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 12.5px;
}

/* ---------- Evidencias ---------- */
.wizard-upload-stack {
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
}

.upload-zone {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 16px;
  padding: 14px 8px;
  margin: 0 -8px;
  transition: background-color var(--t-fast) var(--ease);
}

.upload-zone + .upload-zone {
  border-top: 1px solid var(--line);
}

.upload-zone--drag {
  background: var(--paper-2);
  outline: 2px dashed var(--green);
  outline-offset: -2px;
}

.upload-zone__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.1;
}

.upload-zone__meta-line,
.upload-zone__format-line {
  grid-column: 1;
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.upload-zone__add,
.upload-zone__actions {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
}

.upload-zone__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.upload-zone__file-list {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.upload-zone__file-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 3px 4px 3px 9px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: var(--field);
  border: 1px solid var(--ink);
  border-radius: 2px;
}

.upload-zone__file-item--new {
  animation: chip-in var(--t-mid) var(--ease) both;
}

.upload-zone__file-item span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-zone__file-item span:nth-child(2) {
  flex: none;
  color: var(--ink-soft);
}

.upload-zone__file-item button {
  flex: none;
  width: 24px;
  height: 24px;
  padding: 0;
  line-height: 1;
  background: none;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
}

.upload-zone__file-item button:hover,
.upload-zone__file-item button:focus-visible {
  color: var(--cream);
  background: var(--red);
  outline: none;
}

@keyframes chip-in {
  from {
    opacity: 0;
    transform: translate3d(0, 6px, 0);
  }
}

/* ---------- Revisión ---------- */
.wizard-summary__grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0 20px;
  margin: 0;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
}

.wizard-summary__grid dt,
.wizard-summary__grid dd {
  margin: 0;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.wizard-summary__grid dt {
  align-self: stretch;
  padding-top: 12px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wizard-summary__grid dd {
  font-weight: 500;
  overflow-wrap: anywhere;
}

.wizard-summary__grid dt:last-of-type,
.wizard-summary__grid dd:last-of-type {
  border-bottom: 0;
}

.wizard-loading {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 13px;
}

/* ---------- Columna del portafolio ---------- */
.portfolio-preview {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--paper-2);
  border-left: 1px solid var(--line);
  overflow: hidden;
}

.stack-stage {
  position: relative;
  flex: 0 0 372px;
}

.stack {
  position: absolute;
  top: 67%;
  left: 50%;
  width: 200px;
  height: 138px;
  margin: -69px 0 0 -100px;
  transform: scale(var(--stack-scale, 1)) rotateX(56deg) rotateZ(-34deg);
  transform-style: preserve-3d;
}

/* Sombra de contacto sin desenfoque: se mantiene nítida. */
.stack::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(43, 38, 32, 0.16);
  transform: translate3d(16px, 18px, -8px);
}

.fold {
  position: absolute;
  inset: 0;
  transform: translate3d(0, 0, calc(var(--z, 0px) + var(--lift, 0px)));
  transform-style: preserve-3d;
  transition: transform var(--t-slow) var(--ease), opacity var(--t-mid) var(--ease);
}

.fold:nth-child(2) { --z: 40px; }
.fold:nth-child(3) { --z: 80px; }
.fold:nth-child(4) { --z: 120px; }
.fold:nth-child(5) { --z: 160px; }

.fold.is-active {
  --lift: 12px;
}

.fold i {
  position: absolute;
  inset: 0;
  font-style: normal;
}

.fold .back,
.fold .front,
.fold .back::before {
  background-color: var(--folder);
  box-shadow: inset 0 0 0 1.5px var(--folder-edge);
  transition: background-color var(--t-mid) var(--ease), color var(--t-mid) var(--ease);
}

.fold .back::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 0;
  width: 74px;
  height: 15px;
  margin-bottom: -1.5px;
  background-color: var(--folder-tab);
  clip-path: polygon(0 0, 84% 0, 100% 100%, 0 100%);
}

.fold .front {
  top: 11px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 9px 6px;
  color: rgba(45, 32, 12, 0.9);
  font: 400 17px/1 var(--font-display);
  transform: translateZ(9px);
}

.fold .front small {
  font: 500 12px/1 var(--font-mono);
}

.fold .page {
  inset: -8px 7px 7px;
  background: #fbf8f0;
  box-shadow: inset 0 0 0 1px rgba(60, 50, 30, 0.4);
  opacity: 0;
  transform: translate3d(0, 0, 30px);
  transition: transform var(--t-slow) var(--ease), opacity var(--t-mid) var(--ease);
}

.fold.is-filled .page {
  opacity: 1;
  transform: translate3d(0, 0, 4px);
}

/* Vacía: solo el contorno. */
.fold:not(.is-filled) .back,
.fold:not(.is-filled) .front,
.fold:not(.is-filled) .back::before {
  background-color: transparent;
}

.fold:not(.is-filled) .front {
  color: rgba(45, 32, 12, 0.5);
}

.fold.is-active .front {
  box-shadow: inset 0 0 0 1.5px var(--folder-edge), 0 0 0 2.5px var(--green);
}

.stack.is-zipped .fold {
  --lift: 0px;
}

.stack.is-zipped .fold:not(.is-filled) {
  opacity: 0;
}

.preview-note {
  margin: 0;
  padding: 0 28px 14px;
  color: var(--ink-soft);
  font-size: 15.5px;
}

.preview-note b {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 400;
}

.cover-wrap {
  display: none;
  margin: auto 28px 28px;
}

.wizard-layout[data-step="1"] .cover-wrap,
.wizard-layout[data-step="5"] .cover-wrap {
  display: block;
}

.cover-wrap figcaption {
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.cover {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 966 / 714;
  background: #fff;
  border: 1.5px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
}

.cover img {
  display: block;
  width: 100%;
  height: 100%;
}

/* Posiciones tomadas de los límites de js/generate.js (página de 966 x 714). */
.cover__v {
  position: absolute;
  color: #1c1a17;
  font-family: "Liberation Sans Cover", Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.8cqw;
  line-height: 1;
  white-space: nowrap;
  transform: translateY(0.15em);
}

.cover__v--depto { left: 59.52%; bottom: 82.49%; transform: translate(-50%, 0.15em); }
.cover__v--curso { left: 50%; bottom: 63.73%; transform: translate(-50%, 0.15em); }
.cover__v--nombre { left: 54.35%; bottom: 27.45%; }
.cover__v--cedula { left: 51.76%; bottom: 22.55%; }
.cover__v--facil { left: 53.31%; bottom: 14.43%; }
.cover__v--anio { left: 55.38%; bottom: 6.86%; }

/* ---------- Descarga ---------- */
.descarga-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(28px, 6vw, 96px);
  max-width: 1120px;
  min-height: calc(100vh - var(--band-height));
  margin: 0 auto;
  padding: 40px var(--gutter) 56px;
  overflow-x: clip;
}

.descarga-main .wizard-panel {
  max-width: none;
  margin: 0;
}

.descarga-main .wizard-panel__title {
  max-width: 12ch;
  font-size: clamp(40px, 5.4vw, 68px);
}

.descarga-side {
  min-width: 0;
}

.contenido__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 400;
}

.contenido__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1.5px solid var(--ink);
}

.contenido__list li,
.contenido__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.contenido__list span:first-child {
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 13.5px;
  overflow-wrap: anywhere;
}

.contenido__list span:last-child,
.contenido__total span:last-child {
  flex: none;
  color: var(--ink-soft);
  font-size: 15.5px;
}

.contenido__total {
  margin: 0;
  font-weight: 600;
  border-bottom: 1.5px solid var(--ink);
}

.is-empty .contenido {
  display: none;
}

.descarga-filename {
  margin: 0 0 22px;
  font-family: var(--font-mono);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.descarga-note {
  max-width: 46ch;
  margin: 0 0 22px;
  padding: 11px 14px;
  font-weight: 500;
  background: var(--field);
  border: 1.5px solid var(--ink);
  box-shadow: 4px 4px 0 var(--red);
}

.descarga-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 26px 0 0;
}

.descarga-links a {
  color: var(--green);
  text-underline-offset: 4px;
}

.descarga-links a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.descarga-layout .stack-stage {
  height: 230px;
}

.descarga-layout .stack {
  top: 56%;
}

.descarga-layout .fold:nth-child(2) { --z: 16px; }
.descarga-layout .fold:nth-child(3) { --z: 32px; }

.is-empty .descarga-btn,
.is-empty .descarga-filename {
  display: none;
}

.is-empty .fold .back,
.is-empty .fold .front,
.is-empty .fold .back::before {
  background-color: transparent;
}

.is-empty .fold .page {
  opacity: 0;
}

/* ---------- Pantallas medianas y angostas ---------- */
@media (max-width: 1080px) {
  .wizard-layout {
    grid-template-columns: 204px minmax(0, 1fr);
  }

  .portfolio-preview {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .stack-stage {
    flex: 1 1 300px;
    min-height: 340px;
  }

  .cover-wrap {
    flex: 1 1 300px;
    margin: 24px;
  }

  .preview-note {
    display: none;
  }

}

@media (min-width: 1500px) {
  .wizard-layout {
    --stack-scale: 1.25;
  }

  .wizard-layout .stack-stage {
    flex-basis: 440px;
  }
}

@media (max-width: 820px) {
  .descarga-layout {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 12px;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16.5px;
  }

  .wizard-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .wizard-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .wizard-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 0;
  }

  .wizard-steps::before {
    top: auto;
    bottom: 0;
    width: 20%;
    height: 4px;
    transform: translateX(calc(var(--step-index, 0) * 100%));
  }

  .wizard-step {
    justify-content: center;
    padding: 0;
  }

  .wizard-step__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .wizard-step__mark {
    width: auto;
    font-size: 14px;
  }

  .wizard-main {
    padding: 24px 16px 36px;
  }

  .wizard-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .upload-zone {
    grid-template-columns: minmax(0, 1fr);
  }

  .upload-zone__add,
  .upload-zone__actions {
    grid-column: 1;
    grid-row: auto;
    justify-content: flex-start;
    justify-self: start;
    margin-top: 6px;
  }

  .wizard-panel__footer small {
    display: none;
  }

  .wizard-panel__footer {
    gap: 10px;
  }

  .btn--primary {
    padding: 12px 16px 11px;
    font-size: 17.5px;
  }

  .stack-stage {
    min-height: 320px;
  }

  .band__nav {
    gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }
}
