body.store-setup {
  min-height: 100dvh;
  background:
    radial-gradient(ellipse at 97% 2%, #d7f2f8 0, transparent 24%),
    radial-gradient(ellipse at 0% 100%, #e0f4f8 0, transparent 34%), #f8fafa;
}
.store-setup header {
  background: transparent;
  border: 0;
}
.store-setup main {
  display: grid;
  gap: 16px;
  max-width: 600px;
  align-items: start;
}
/* Room beside the form: what to prepare stands next to it instead of above it. */
@media (min-width: 900px) {
  .store-setup main:has(#guide:not([hidden])) {
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    max-width: 980px;
  }
  .setup-guide {
    position: sticky;
    top: 16px;
  }
}
.store-setup .panel {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 5vw, 32px);
}
.store-setup h1 {
  margin: 0;
  color: #191c1d;
  font-size: clamp(24px, 4vw, 30px);
  text-wrap: balance;
}
.store-setup h2 {
  margin: 0;
  color: #191c1d;
  font-size: 17px;
}
.store-setup .panel {
  margin: 0;
}
/* A hint belongs to the field above it. */
.store-setup form > .hint {
  margin-top: -10px;
}
.guide-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.guide-head img {
  flex: none;
  width: 72px;
  height: 72px;
}
.guide-head p {
  margin: 4px 0 0;
}
.setup-guide :is(ul, ol),
.next-steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.3em;
  color: #3c4a4d;
  text-wrap: pretty;
}
.next-steps li > a {
  margin-right: 8px;
  font-weight: 650;
}
.next-steps li > span {
  color: #5d6b7a;
}
.codes .hint {
  display: block;
}
@media (pointer: coarse) {
  .next-steps li > a {
    display: inline-block;
    padding-block: 8px;
  }
}
.store-setup .activation-help {
  margin: 0;
  text-align: left;
  font-weight: 500;
  text-wrap: pretty;
}
.store-setup label:not(.choice) > span {
  color: #5d6b7a;
}
.store-setup input:not([type="checkbox"]),
.store-setup select {
  min-height: 46px;
  border-color: #b2bbce;
  border-radius: 7px;
}
.store-setup .choice {
  align-items: flex-start;
  margin: 0;
}
.store-setup .choice input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
}
.store-setup #status,
.store-setup #copied {
  margin: 0;
  color: #9a2c1f;
}
.store-setup #status:empty,
.store-setup #copied:empty {
  display: none;
}
.store-setup #copied {
  color: #315752;
}
.store-setup .primary {
  min-height: 48px;
  background: #008ba1;
  border-color: #008ba1;
  border-radius: 8px;
  font-size: 18px;
}
#result-store {
  margin: 0;
  color: #5d6b7a;
  overflow-wrap: anywhere;
}
#keys {
  display: grid;
  gap: 16px;
}
.codes {
  display: grid;
  gap: 14px;
  margin: 0;
}
.codes dt {
  font-size: 14px;
  font-weight: 600;
  color: #5d6b7a;
}
.codes dd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 4px 0 0;
}
.codes code {
  font:
    600 clamp(19px, 5.6vw, 24px) / 1.3 ui-monospace,
    Consolas,
    monospace;
  letter-spacing: 0.06em;
  user-select: all;
}
.next-step {
  margin: 0;
  color: #5d6b7a;
  text-wrap: pretty;
}

/* The guide folds away on a phone, where it would push the form off the first screen. */
.setup-guide > details > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}
.setup-guide > details > summary::-webkit-details-marker {
  display: none;
}
.setup-guide > details > summary h2 {
  flex: 1;
}
.setup-guide > details > summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border-right: 2px solid #5d6b7a;
  border-bottom: 2px solid #5d6b7a;
  transform: rotate(45deg);
  transition: transform 0.15s ease-out;
}
.setup-guide > details[open] > summary::after {
  transform: rotate(-135deg);
}
.setup-guide .guide-body {
  display: grid;
  gap: 14px;
  padding-top: 14px;
}
.guide-head img,
.setup-guide summary img {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 0 3px white,
    0 4px 12px #274f5326;
}
@media (min-width: 900px) {
  .setup-guide > details > summary {
    cursor: default;
    pointer-events: none;
  }
  .setup-guide > details > summary::after {
    display: none;
  }
}

/* The account, or the phone on the user's record: one choice, then the field for it. */
.login-kind {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
/* The legend reads as one more field label. */
.login-kind legend {
  margin-bottom: 6px;
  padding: 0;
  color: #5d6b7a;
  font-size: 14px;
  font-weight: 600;
}
.login-kind-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  background: #e2ecee;
}
.login-kind-tabs label {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 40px;
  border-radius: 7px;
  color: #33555b;
  font-weight: 600;
  cursor: pointer;
}
.store-setup .login-kind-tabs label > span {
  color: inherit;
}
.store-setup .login-kind-tabs input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.login-kind-tabs label:has(input:checked) {
  background: white;
  color: #006576;
  box-shadow: 0 1px 2px #0000001a;
}
.login-kind-tabs label:has(input:focus-visible) {
  outline: 2px solid #008ba1;
  outline-offset: 2px;
}
.login-phone {
  display: grid;
  grid-template-columns: minmax(84px, 0.32fr) minmax(0, 1fr);
  gap: 10px;
}
.login-phone label {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.store-setup .login-kind input:not([type="radio"]) {
  width: 100%;
}
