.back-arrow-icon {
  display: block;
  flex: none;
}
.back-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.back-label .back-arrow-icon {
  width: 1em;
  height: 1em;
}
.back-surface {
  position: relative;
}
.responsive-back .back-close {
  display: none;
}
@media (max-width: 640px) {
  .responsive-back .back-label {
    display: none;
  }
  .responsive-back .back-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    line-height: 1;
  }
  .responsive-back,
  :is(#pr-grow, .pr-sqp) .responsive-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0;
  }
  .back-surface > .responsive-back {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
  }
  .back-surface:has(> .responsive-back:not([hidden])),
  :is(#pr-grow, .pr-sqp)
    .back-surface:has(> .responsive-back:not([hidden])) {
    padding-top: 60px;
  }
}

/* Back to Settings outside the setup flow: matches setup.css .flow-back on
   desktop and .walk-close on phones. */
.settings-back {
  display: flex;
  align-items: center;
  width: fit-content;
  min-height: 44px;
  margin: -10px 0 18px;
  color: var(--muted);
  font-size: 16px;
  text-decoration: none;
}
.settings-back-circle {
  display: none;
}
@media (max-width: 640px) {
  .settings-back {
    display: none;
  }
  .settings-back-circle {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--text);
  }
}
