/* Keep the desktop label and navigation intact. */
#creation .creation-step-mobile-label { display: none; }

@media (max-width: 1100px) {
  #creation .creation-step-desktop-label { display: none; }
  #creation .creation-step-mobile-label { display: inline; }

  #creation .creation-step-tabs,
  #creation.creation-motion-enabled .creation-step-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
  }

  #creation .creation-step-title.action-link {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 26px 18px;
    justify-items: center;
    align-content: center;
    gap: 6px;
    min-height: 58px;
    margin: 0;
    padding: 4px 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
    color: #596454;
    font-size: clamp(11px, 3.2vw, 13px);
    letter-spacing: -.04em;
    text-align: center;
    transition: color .16s ease;
  }

  /* Tracks connect circle centers without touching the numbers or labels. */
  #creation .creation-step-title:not(:last-child)::before,
  #creation .creation-step-title:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 16px;
    left: calc(50% + 16px);
    width: calc(100% - 32px);
    height: 2px;
    border-radius: 2px;
    background: #d5dbd1;
    pointer-events: none;
  }
  #creation .creation-step-title:not(:last-child)::after {
    background: var(--orange);
    transform: scaleX(var(--creation-step-progress, 0));
    transform-origin: left center;
  }

  #creation .creation-step-title small {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border: 1px solid #c4ccc1;
    border-radius: 50%;
    background: #f1f2f0;
    color: #596454;
    opacity: 1;
    font-size: 10px;
    font-weight: 650;
    line-height: 1;
    letter-spacing: 0;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease;
  }
  #creation .creation-step-title .creation-step-name {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    font-size: inherit;
    line-height: 18px;
    white-space: nowrap;
    word-break: normal;
  }
  #creation .creation-step-title b { display: none; }
  #creation .creation-step-title[aria-selected="true"] { color: #202820; }
  #creation .creation-step-title[aria-selected="true"] small {
    border-color: var(--orange);
    background: #fff1e9;
    color: #b64628;
    box-shadow: 0 0 0 3px #e8553014;
  }
  #creation .creation-step-title[data-step-state="complete"] small {
    border-color: var(--orange);
    background: var(--orange);
    color: #161816;
  }
  #creation .creation-step-title:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 1px;
  }

  /* A horizontal progress row also leaves the full width for landscape content. */
  .creation-tight-landscape #creation.creation-motion-enabled .creation-content {
    display: flex;
    flex-direction: column;
  }
  .creation-tight-landscape #creation .creation-step { align-self: stretch; }
}

@media (max-width: 1100px) and (max-height: 500px) and (orientation: landscape) {
  #creation .creation-step-title.action-link,
  .creation-tight-landscape #creation .creation-step-title.action-link {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 22px 16px;
    min-height: 44px;
    padding: 1px 0;
    gap: 4px;
    font-size: 12px;
  }
  #creation .creation-step-title small { width: 22px; height: 22px; }
  #creation .creation-step-title .creation-step-name { height: auto; line-height: 16px; }
  #creation .creation-step-title:not(:last-child)::before,
  #creation .creation-step-title:not(:last-child)::after {
    top: 11px;
    left: calc(50% + 14px);
    width: calc(100% - 28px);
  }
}

@media (max-width: 1100px) and (prefers-reduced-motion: reduce) {
  #creation .creation-step-title.action-link,
  #creation .creation-step-title small { transition: none; }
}
