/* Post-login phone verification: a focused, content-sized two-step flow. */
.account-verification-screen:is(.auth-screen, .pro-auth-screen) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  min-height: 100dvh;
  overflow: clip;
  background:
    radial-gradient(ellipse at 50% 12%, color-mix(in srgb, var(--auth-accent) 9%, transparent), transparent 56%),
    #faf9fc;
}
.account-verification-screen.auth-screen {
  --auth-accent: #67549a;
  --auth-accent-dark: #51416f;
  --auth-accent-soft: #f3e8ff;
  --auth-ink: #26212c;
  --auth-muted: #6f6874;
  --auth-line: #ddd8e2;
}
.account-verification-screen.pro-auth-screen {
  background:
    radial-gradient(ellipse at 50% 12%, #e3f1eb, transparent 56%),
    #f8fbf9;
}
.account-verification-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 28px;
  width: min(100%, 1280px);
  margin-inline: auto;
  padding: 28px clamp(20px, 4vw, 56px);
}
.account-verification-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--auth-ink);
  text-decoration: none;
}
.account-verification-brand .brand-wordmark {
  width: 174px;
  height: auto;
}
.account-verification-brand .brand-mark {
  width: 32px;
  height: 32px;
}
.account-verification-brand strong {
  font-size: 17px;
  letter-spacing: -.035em;
}
.account-verification-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.account-verification-nav-actions .ghost-button {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--auth-muted);
  background: transparent;
  font-size: 13px;
  box-shadow: none;
}
.account-verification-back .icon {
  width: 16px;
  height: 16px;
  transform: rotate(180deg);
}
.account-verification-nav-actions .ghost-button:hover:not(:disabled) {
  color: var(--auth-accent-dark);
  background: #fff;
  border-color: var(--auth-line);
}
.account-verification-workspace {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 0;
  gap: 22px;
  padding: 24px 24px clamp(36px, 8vh, 96px);
}
.account-verification-screen .account-verification-workspace .phone-verification-panel {
  position: relative;
  display: grid;
  width: min(100%, 500px);
  max-width: 500px;
  height: auto;
  min-height: 0;
  max-height: none;
  align-content: start;
  justify-items: stretch;
  gap: 24px;
  overflow: visible;
  scrollbar-gutter: auto;
  margin: 0;
  padding: 32px 38px 28px;
  border: 1px solid color-mix(in srgb, var(--auth-accent) 14%, #fff);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 72px -32px color-mix(in srgb, var(--auth-accent-dark) 34%, transparent), 0 3px 12px #29203604;
  text-align: start;
  animation: verification-card-enter 480ms cubic-bezier(.2, .75, .25, 1) both;
}
.phone-verification-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 0 0 4px;
  padding: 0;
  list-style: none;
}
.phone-verification-progress li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #847d8d;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
}
.phone-verification-progress li:first-child {
  flex: 1;
}
.phone-verification-progress li:first-child::after {
  content: "";
  flex: 1;
  min-width: 12px;
  height: 1px;
  margin-inline-start: 6px;
  background: var(--auth-line);
}
.phone-verification-progress li > span {
  display: grid;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid var(--auth-line);
  border-radius: 50%;
  color: inherit;
  background: #faf9fc;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.phone-verification-progress li.is-current {
  color: var(--auth-accent-dark);
}
.phone-verification-progress .is-current > span,
.phone-verification-progress .is-complete > span {
  border-color: var(--auth-accent);
  color: #fff;
  background: var(--auth-accent);
}
.phone-verification-progress .icon {
  width: 14px;
  height: 14px;
}
.phone-verification-symbol {
  position: relative;
  display: grid;
  width: 76px;
  height: 76px;
  min-height: 0;
  place-items: center;
  justify-self: center;
  margin-top: 2px;
  border: 1px solid color-mix(in srgb, var(--auth-accent) 15%, #fff);
  border-radius: 24px;
  color: var(--auth-accent);
  background: linear-gradient(145deg, #fff, var(--auth-accent-soft));
  box-shadow: 0 8px 22px color-mix(in srgb, var(--auth-accent) 10%, transparent);
  transition: transform 350ms cubic-bezier(.2, .75, .25, 1);
}
.phone-verification-symbol > .icon {
  width: 36px;
  height: 36px;
  stroke-width: 1.55;
}
.phone-verification-symbol > span {
  position: absolute;
  right: -8px;
  bottom: -5px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--auth-accent);
}
.phone-verification-symbol > span .icon {
  width: 16px;
  height: 16px;
}
.account-verification-workspace :is(.booking-phone-heading, .phone-confirmation-heading) {
  display: grid;
  justify-items: center;
  min-height: 0;
  gap: 10px;
  padding: 0;
  text-align: center;
}
.account-verification-workspace .booking-phone-heading .eyebrow {
  margin: 0;
  color: var(--auth-accent-dark);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.account-verification-workspace :is(h1, h2) {
  min-height: 0;
  margin: 0;
  color: var(--auth-ink);
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -.045em;
}
.account-verification-workspace :is(.booking-phone-heading, .phone-confirmation-heading) > p:not(.eyebrow) {
  max-width: 36ch;
  min-height: 0;
  margin: 0;
  color: var(--auth-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
}
.account-verification-workspace .phone-confirmation-heading strong {
  display: block;
  margin-top: 4px;
  color: var(--auth-ink);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.account-verification-workspace :is(.auth-form, .phone-confirmation-form) {
  width: 100%;
  gap: 18px;
  margin: 0;
}
.account-verification-workspace .auth-form label {
  gap: 9px;
  color: var(--auth-ink);
  font-size: 13px;
  font-weight: 650;
}
.phone-verification-input {
  position: relative;
  display: block;
  min-width: 0;
}
.phone-verification-input > .icon {
  position: absolute;
  z-index: 1;
  left: 17px;
  top: 50%;
  width: 19px;
  height: 19px;
  color: var(--auth-muted, #6f6874);
  transform: translateY(-50%);
  pointer-events: none;
}
.phone-verification-panel .auth-form .phone-verification-input input {
  width: 100%;
  padding-inline-start: 48px;
}
.account-verification-workspace .phone-verification-input input {
  min-height: 56px;
  height: 56px;
  border: 1px solid #dcd8e2;
  border-radius: 14px;
  background: #fcfbfd;
  color: var(--auth-ink);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .015em;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.account-verification-workspace .phone-verification-input input::placeholder {
  color: #928b9a;
  font-weight: 400;
}
.account-verification-workspace .phone-verification-input input:focus {
  outline: 0;
  border-color: var(--auth-accent);
  background: #fff;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--auth-accent) 12%, transparent);
}
.account-verification-workspace .phone-verification-input input[aria-invalid="true"] {
  border-color: #ba5161;
}
.account-verification-workspace .solid-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  height: auto;
  border: 1px solid transparent;
  border-radius: 14px !important;
  padding: 14px 20px;
  color: #fff;
  background: var(--auth-accent-dark);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--auth-accent-dark) 14%, transparent);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.account-verification-workspace .solid-button .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 180ms ease;
}
.account-verification-workspace .solid-button:disabled {
  opacity: .65;
  cursor: default;
  box-shadow: none;
}
.account-verification-workspace .phone-verification-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 0;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid #f0edf4;
  color: var(--auth-muted);
  font-size: 11px;
  line-height: 1.55;
  text-align: center;
}
.phone-verification-note .icon {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  color: var(--auth-accent);
}
.account-verification-identity {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  width: min(100%, 500px);
  margin: 0;
  color: var(--auth-muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}
.account-verification-identity .icon {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
}
.account-verification-identity span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.account-verification-workspace .phone-confirmation-back {
  top: 83px;
  left: 22px;
  border: 1px solid var(--auth-line);
  color: var(--auth-muted);
}
.account-verification-workspace .phone-code-cells {
  gap: 9px;
}
.account-verification-workspace .phone-code-cell {
  height: 58px;
  border-radius: 13px;
  font-size: 22px;
  font-weight: 600;
}
.account-verification-workspace .phone-confirmation-status {
  margin: 0;
  text-align: center;
  font-size: 12px;
}
.account-verification-workspace .phone-confirmation-help {
  flex-wrap: wrap;
  white-space: normal;
  gap: 4px 8px;
  font-size: 12px;
}
.account-verification-workspace .phone-confirmation-help button,
.account-verification-workspace .phone-confirmation-options button {
  min-height: 44px;
  padding-block: 8px;
}
.account-verification-workspace .phone-confirmation-options {
  width: 100%;
  gap: 4px 16px;
  margin-top: -14px;
  font-size: 12px;
}
.account-verification-workspace .auth-inline-error {
  min-height: 0;
  margin: 0;
  border: 1px solid #f1d6db;
  border-radius: 12px;
  padding: 12px 14px;
  color: #9d3047;
  background: #fff5f7;
  font-size: 13px;
  line-height: 1.55;
}
.account-verification-screen :is(button, a):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--auth-accent) 44%, transparent);
  outline-offset: 4px;
}
.account-verification-workspace :is(h1, h2, p, label, li, button) {
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: pretty;
}
@media (hover: hover) and (pointer: fine) {
  .account-verification-workspace .solid-button:hover:not(:disabled) {
    background: var(--auth-accent);
    box-shadow: 0 9px 24px color-mix(in srgb, var(--auth-accent-dark) 22%, transparent);
    transform: translateY(-2px);
  }
  .account-verification-workspace .solid-button:hover:not(:disabled) .icon {
    transform: translateX(2px);
  }
  .account-verification-workspace .phone-verification-panel:hover .phone-verification-symbol {
    transform: translateY(-3px) rotate(-4deg);
  }
}
.account-verification-workspace .solid-button:active:not(:disabled) {
  transform: translateY(0) scale(.99);
}
@keyframes verification-card-enter {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 600px) {
  .account-verification-nav {
    padding: 20px;
    gap: 14px;
  }
  .account-verification-brand .brand-wordmark {
    width: 154px;
  }
  .account-verification-nav-actions {
    width: 100%;
    justify-content: space-between;
  }
  .account-verification-nav-actions .ghost-button {
    padding-inline: 2px;
    font-size: 12px;
  }
  .account-verification-workspace {
    justify-content: flex-start;
    gap: 18px;
    padding: 16px 16px 36px;
  }
  .account-verification-screen .account-verification-workspace .phone-verification-panel {
    gap: 24px;
    padding: 26px 24px;
    border-radius: 24px;
  }
  .account-verification-workspace :is(h1, h2) {
    font-size: 28px;
  }
  .account-verification-workspace .booking-phone-heading > p:not(.eyebrow) {
    font-size: 13px;
  }
  .account-verification-workspace .phone-confirmation-back {
    left: 16px;
    top: 77px;
  }
}
@media (max-width: 360px) {
  .account-verification-screen .account-verification-workspace .phone-verification-panel {
    padding-inline: 20px;
  }
  .phone-verification-progress {
    gap: 9px;
  }
  .phone-verification-progress li {
    gap: 6px;
    font-size: 11px;
  }
  .account-verification-workspace .phone-code-cells {
    gap: 6px;
  }
  .account-verification-workspace .phone-code-cell {
    height: 50px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .account-verification-screen .account-verification-workspace .phone-verification-panel {
    animation: none;
  }
  .account-verification-screen *,
  .account-verification-screen *::before,
  .account-verification-screen *::after {
    transition: none !important;
  }
  .account-verification-workspace .phone-verification-symbol,
  .account-verification-workspace .solid-button,
  .account-verification-workspace .solid-button .icon {
    transform: none !important;
  }
}

/* Phone code countdown (ui/phone-code-timer.js): shared by sign-up, phone
   change / booking verification and password recovery. */
.phone-code-timer {
  --phone-code-tone: var(--auth-accent, #67549a);
  display: grid;
  gap: 6px;
  width: 100%;
  margin: 2px 0 0;
  color: var(--auth-muted, #6f6874);
  font-size: 0.8rem;
  line-height: 1.4;
  text-align: left;
}
.phone-code-timer p {
  margin: 0;
}
.phone-code-timer-row {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 22px;
}
.phone-code-timer-icon {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--phone-code-tone);
}
.phone-code-timer-clock {
  color: var(--auth-ink, #26212c);
  font-weight: 640;
  font-variant-numeric: tabular-nums;
}
.phone-code-timer-track {
  display: block;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--phone-code-tone) 14%, transparent);
}
.phone-code-timer-track > span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--phone-code-tone);
  transform: scaleX(var(--phone-code-progress, 1));
  transform-origin: left center;
  transition: transform 1s linear;
}
.phone-code-timer[data-state="ending"] {
  --phone-code-tone: #b26a12;
}
.phone-code-timer[data-state="expired"] {
  --phone-code-tone: #a24651;
}
.phone-code-timer[data-state="expired"] .phone-code-timer-clock {
  color: #a24651;
}
.phone-code-timer-resends {
  color: var(--auth-muted, #6f6874);
  font-size: 0.76rem;
}
.phone-confirmation-status:empty {
  min-height: 0;
  margin: 0;
}
.phone-code-send-new {
  margin-top: 2px;
}
:is(.phone-confirmation-form, .recovery-code-form) input[data-control]:disabled + .phone-code-cells,
.recovery-code-form.is-expired .phone-code-cells {
  opacity: 0.45;
}
.phone-code-expired-note {
  color: #a24651 !important;
  font-weight: 640;
}
@media (max-width: 420px) {
  .phone-code-timer {
    font-size: 0.78rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .phone-code-timer-track > span {
    transition: none;
  }
}
