@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

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

@font-face {
  font-family: "Around Brands";
  src: url("/assets/fonts/font-awesome-brands.otf") format("opentype");
  font-display: block;
}

:root {
  color-scheme: light;
  --auth-ink: #292638;
  --auth-soft: #625d70;
  --auth-muted: #7c7688;
  --auth-primary: #8582be;
  --auth-primary-deep: #655aa8;
  --auth-primary-soft: #eeecf8;
  --auth-accent: #6bb3a6;
  --auth-accent-soft: #e4f2ef;
  --auth-paper: #fffefe;
  --auth-base: #f7f4fc;
  --auth-line: rgba(69, 61, 103, 0.17);
  --auth-danger: #a8465d;
  --auth-shadow: 0 30px 90px rgba(52, 43, 83, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  color: var(--auth-ink);
  font-family: "Poppins", "Avenir Next", sans-serif;
  background:
    radial-gradient(circle at 88% 8%, rgba(147, 211, 198, 0.38), transparent 30rem),
    var(--auth-base) url("/assets/iridescent-background.png") center / cover fixed;
}

/*
 * Acceso experimental: continuidad visual con la Home aprobada. La app bar y
 * el lienzo comparten ancho; dentro hay una sola superficie glass y la lógica
 * de autenticación existente permanece intacta.
 */
body.auth-cloud-experiment {
  min-height: 100svh;
  padding-top: 30px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 205, 231, 0.72), transparent 31%),
    radial-gradient(circle at 84% 8%, rgba(183, 222, 255, 0.76), transparent 34%),
    radial-gradient(circle at 76% 52%, rgba(220, 203, 255, 0.52), transparent 38%),
    linear-gradient(145deg, #e8e8ee 0%, #d8d9e1 54%, #eee9ee 100%);
  background-attachment: fixed;
}

.auth-cloud-experiment > .around-site-footer {
  display: none;
}

.auth-cloud-experiment:not([data-profile-mode="true"]) .auth-shell {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(calc(100% - (2 * var(--cloud-frame-inline))), var(--cloud-frame-width));
  min-height: clamp(610px, 67vh, 690px);
  margin: var(--cloud-header-height) auto clamp(34px, 4vw, 60px);
  padding: 0;
  overflow: hidden;
  align-items: stretch;
  grid-template-columns: minmax(360px, 0.92fr) minmax(430px, 1.08fr);
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--cloud-radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(250, 249, 255, 0.36)),
    rgba(255, 255, 255, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 30px 82px rgba(60, 56, 76, 0.15);
  backdrop-filter: blur(26px) saturate(1.1);
  -webkit-backdrop-filter: blur(26px) saturate(1.1);
}

.auth-cloud-experiment:not([data-profile-mode="true"]) .auth-story {
  position: relative;
  min-height: clamp(610px, 67vh, 690px);
  padding: clamp(34px, 4vw, 58px);
  overflow: hidden;
  justify-content: flex-end;
  border: 0;
  border-radius: 0;
  background: #9184ae;
  box-shadow: none;
  backdrop-filter: none;
}

.auth-cloud-experiment:not([data-profile-mode="true"]) .auth-story::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(24, 18, 36, 0.04) 28%, rgba(25, 19, 38, 0.78) 100%),
    linear-gradient(90deg, rgba(20, 15, 32, 0.08), transparent 60%);
  pointer-events: none;
}

.auth-cloud-experiment:not([data-profile-mode="true"]) .auth-story-mark {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
}

.auth-cloud-experiment:not([data-profile-mode="true"]) .auth-story-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% center;
  filter: none;
}

.auth-cloud-experiment:not([data-profile-mode="true"]) .auth-story-copy {
  position: relative;
  z-index: 2;
  width: min(520px, 100%);
  color: #fff;
}

.auth-cloud-experiment:not([data-profile-mode="true"]) .auth-story .auth-kicker {
  color: rgba(255, 255, 255, 0.78);
}

.auth-cloud-experiment:not([data-profile-mode="true"]) .auth-story h1 {
  max-width: 520px;
  margin-top: 12px;
  color: #fff;
  font-size: clamp(3rem, 4.8vw, 4.9rem);
  text-shadow: 0 3px 22px rgba(22, 16, 35, 0.2);
}

.auth-cloud-experiment:not([data-profile-mode="true"]) .auth-story-copy > p:last-child {
  max-width: 430px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.96rem;
  line-height: 1.58;
}

.auth-cloud-experiment:not([data-profile-mode="true"]) .auth-panel {
  width: 100%;
  max-width: none;
  min-height: clamp(610px, 67vh, 690px);
  padding: clamp(46px, 5vw, 76px) clamp(38px, 5.2vw, 82px);
  overflow-y: auto;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: none;
  backdrop-filter: blur(22px) saturate(1.06);
  -webkit-backdrop-filter: blur(22px) saturate(1.06);
}

.auth-cloud-experiment .auth-primary--accent {
  border: 1px solid rgba(255, 255, 255, 0.58);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(126, 111, 188, 0.96), rgba(96, 81, 157, 0.92) 54%, rgba(118, 99, 180, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 10px 24px rgba(71, 58, 113, 0.16);
}

.auth-cloud-experiment .auth-primary--accent:hover,
.auth-cloud-experiment .auth-primary--accent:focus-visible {
  background:
    linear-gradient(135deg, rgba(115, 98, 179, 1), rgba(84, 69, 146, 0.96) 54%, rgba(107, 88, 170, 0.98));
}

button,
input,
a {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  touch-action: manipulation;
}

.auth-skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 16px;
  padding: 11px 16px;
  border-radius: 8px;
  color: #fff;
  background: var(--auth-primary-deep);
  text-decoration: none;
  transform: translateY(-90px);
}

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

.auth-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1240px, calc(100% - 64px));
  min-height: 94px;
  margin: 0 auto;
}

.auth-brand {
  display: inline-flex;
  width: 132px;
}

.auth-brand img {
  display: block;
  width: 100%;
  height: auto;
}

.auth-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--auth-line);
  border-radius: 8px;
  color: var(--auth-soft);
  background: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
}

.auth-shell {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 500px));
  align-items: center;
  justify-content: center;
  gap: clamp(36px, 5vw, 72px);
  width: min(1072px, calc(100% - 64px));
  min-height: calc(100svh - 126px);
  margin: 0 auto;
  padding: 24px 0 64px;
}

.auth-story {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 560px;
  overflow: hidden;
  padding: 38px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: var(--auth-shadow);
  backdrop-filter: blur(5px);
  isolation: isolate;
}

.auth-story-mark {
  display: grid;
  flex: 1;
  place-items: center;
}

.auth-story-mark img {
  display: block;
  width: min(62%, 286px);
  height: auto;
  filter: drop-shadow(0 24px 38px rgba(77, 68, 112, 0.16));
}

.auth-story-copy {
  width: min(500px, 100%);
  color: var(--auth-ink);
}

.auth-kicker,
.auth-panel-heading > p {
  margin: 0;
  color: var(--auth-primary-deep);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.095em;
  text-transform: uppercase;
}

.auth-story h1 {
  max-width: 480px;
  margin: 12px 0 0;
  font-size: clamp(3rem, 4.5vw, 4.35rem);
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.auth-story-copy > p:last-child {
  max-width: 440px;
  margin: 26px 0 0;
  color: var(--auth-soft);
  font-size: 1rem;
  line-height: 1.65;
}

.auth-panel {
  position: relative;
  width: 100%;
  max-width: 500px;
  min-height: 560px;
  padding: 38px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  background: rgba(255, 254, 254, 0.9);
  box-shadow: var(--auth-shadow);
  backdrop-filter: blur(22px);
}

.auth-page[data-profile-mode="true"] .auth-shell {
  grid-template-columns: 1fr;
  grid-template-rows: minmax(142px, 0.2fr) minmax(0, 0.8fr);
  align-items: stretch;
  gap: 16px;
  width: min(980px, calc(100% - 64px));
}

.auth-page[data-profile-mode="true"] .auth-story {
  min-height: 142px;
  padding: 20px 30px;
  flex-direction: row;
  align-items: center;
  border-radius: 20px;
}

.auth-page[data-profile-mode="true"] .auth-panel {
  max-width: none;
  min-height: 560px;
  padding: 28px 34px 32px;
}

.auth-page[data-profile-mode="true"] .auth-interest-grid {
  max-height: 250px;
}

.auth-page[data-profile-mode="true"] .auth-story-copy {
  width: min(690px, calc(100% - 160px));
}

.auth-page[data-profile-mode="true"] .auth-story h1 {
  max-width: none;
  margin-top: 6px;
  font-size: clamp(1.8rem, 3.2vw, 2.65rem);
  line-height: 1;
}

.auth-page[data-profile-mode="true"] .auth-story-copy > p:last-child {
  max-width: 680px;
  margin-top: 8px;
  font-size: 0.78rem;
  line-height: 1.45;
}

.auth-page[data-profile-mode="true"] .auth-story-mark {
  order: 2;
  flex: 0 0 132px;
  height: 112px;
}

.auth-page[data-profile-mode="true"] .auth-story-mark img {
  width: 112px;
}

/*
 * Paso 1 del onboarding: conserva el shell aprobado del acceso y convierte
 * historia + formulario en una única superficie, sin la cabecera flotante.
 */
@media (min-width: 901px) {
  .auth-cloud-experiment[data-profile-mode="true"] .auth-story-copy {
    padding-bottom: 10px;
  }

  .auth-cloud-experiment[data-profile-mode="true"]:is([data-profile-step="1"], [data-profile-step="2"], [data-profile-step="3"]) .auth-shell {
    position: relative;
    z-index: 1;
    display: grid;
    width: min(calc(100% - (2 * var(--cloud-frame-inline))), var(--cloud-frame-width));
    height: clamp(650px, 73vh, 670px);
    min-height: 0;
    margin: var(--cloud-header-height) auto clamp(34px, 4vw, 60px);
    padding: 0;
    overflow: hidden;
    align-items: stretch;
    grid-template-columns: minmax(360px, 0.92fr) minmax(430px, 1.08fr);
    grid-template-rows: 1fr;
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: var(--cloud-radius);
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(250, 249, 255, 0.36)),
      rgba(255, 255, 255, 0.34);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.82),
      0 30px 82px rgba(60, 56, 76, 0.15);
    backdrop-filter: blur(26px) saturate(1.1);
    -webkit-backdrop-filter: blur(26px) saturate(1.1);
  }

  .auth-cloud-experiment[data-profile-mode="true"]:is([data-profile-step="1"], [data-profile-step="2"], [data-profile-step="3"]) .auth-story {
    position: relative;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 14px 14px 0;
    overflow: hidden;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    border: 0;
    border-radius: 0;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.3), rgba(235, 231, 247, 0.16)),
      rgba(255, 255, 255, 0.14);
    box-shadow: none;
    backdrop-filter: blur(20px) saturate(1.08);
    -webkit-backdrop-filter: blur(20px) saturate(1.08);
  }

  .auth-cloud-experiment[data-profile-mode="true"]:is([data-profile-step="1"], [data-profile-step="2"], [data-profile-step="3"]) .auth-story::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    content: "";
    display: none;
    pointer-events: none;
  }

  .auth-cloud-experiment[data-profile-mode="true"]:is([data-profile-step="1"], [data-profile-step="2"], [data-profile-step="3"]) .auth-story-mark {
    position: static;
    z-index: 0;
    display: block;
    width: 100%;
    height: auto;
    flex: 0 0 auto;
    order: initial;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 18px;
    background: transparent;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.58),
      0 18px 34px rgba(64, 58, 88, 0.12);
  }

  .auth-cloud-experiment[data-profile-mode="true"]:is([data-profile-step="1"], [data-profile-step="2"], [data-profile-step="3"]) .auth-story-mark img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center top;
    filter: none;
  }

  .auth-cloud-experiment[data-profile-mode="true"]:is([data-profile-step="1"], [data-profile-step="2"], [data-profile-step="3"]) .auth-story-copy {
    position: static;
    z-index: 2;
    width: 100%;
    margin: 0;
    padding: 26px clamp(16px, 2.5vw, 32px) 30px;
    color: var(--auth-ink);
  }

  .auth-cloud-experiment[data-profile-mode="true"]:is([data-profile-step="1"], [data-profile-step="2"], [data-profile-step="3"]) .auth-story .auth-kicker {
    color: var(--auth-primary-deep);
  }

  .auth-cloud-experiment[data-profile-mode="true"]:is([data-profile-step="1"], [data-profile-step="2"], [data-profile-step="3"]) .auth-story h1 {
    max-width: 420px;
    margin-top: 10px;
    color: var(--auth-ink);
    font-size: clamp(2.5rem, 3.6vw, 4rem);
    line-height: 0.98;
    text-shadow: none;
  }

  .auth-cloud-experiment[data-profile-mode="true"]:is([data-profile-step="1"], [data-profile-step="2"], [data-profile-step="3"]) .auth-story-copy > p:last-child {
    max-width: 390px;
    margin-top: 18px;
    color: var(--auth-soft);
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .auth-cloud-experiment[data-profile-mode="true"]:is([data-profile-step="1"], [data-profile-step="2"], [data-profile-step="3"]) .auth-panel {
    display: flex;
    width: 100%;
    max-width: none;
    height: 100%;
    min-height: 0;
    padding: 34px clamp(34px, 4.5vw, 66px) 36px;
    overflow: hidden;
    flex-direction: column;
    justify-content: flex-start;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.66);
    border-radius: 0;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.42), rgba(244, 241, 252, 0.18)),
      rgba(255, 255, 255, 0.12);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.72),
      inset 1px 0 0 rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(30px) saturate(1.12);
    -webkit-backdrop-filter: blur(30px) saturate(1.12);
  }

  .auth-cloud-experiment[data-profile-mode="true"]:is([data-profile-step="1"], [data-profile-step="2"], [data-profile-step="3"]) .auth-progress {
    margin: 0 0 20px;
  }

  .auth-cloud-experiment[data-profile-mode="true"]:is([data-profile-step="1"], [data-profile-step="2"], [data-profile-step="3"]) .auth-panel-heading > p {
    display: none;
  }

  .auth-cloud-experiment[data-profile-mode="true"]:is([data-profile-step="1"], [data-profile-step="2"], [data-profile-step="3"]) .auth-panel-heading {
    margin-bottom: 20px;
  }

  .auth-cloud-experiment[data-profile-mode="true"]:is([data-profile-step="1"], [data-profile-step="2"], [data-profile-step="3"]) .auth-panel-heading h2 {
    margin-top: 0;
  }

  .auth-cloud-experiment[data-profile-mode="true"][data-profile-step="2"] .auth-panel {
    padding: 34px clamp(34px, 4.5vw, 66px) 36px;
  }

  .auth-cloud-experiment[data-profile-mode="true"][data-profile-step="2"] .auth-progress {
    margin-bottom: 20px;
  }

  .auth-cloud-experiment[data-profile-mode="true"][data-profile-step="2"] .auth-panel-heading {
    margin-bottom: 20px;
  }

  .auth-cloud-experiment[data-profile-mode="true"][data-profile-step="2"] .auth-interest-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    max-height: 300px;
  }

  .auth-cloud-experiment[data-profile-mode="true"][data-profile-step="2"] .auth-interest-grid button {
    min-height: 70px;
    padding: 5px 4px 4px;
    font-size: 0.56rem;
    line-height: 1.18;
  }

  .auth-cloud-experiment[data-profile-mode="true"][data-profile-step="2"] .auth-interest-grid button img {
    width: 32px;
    height: 32px;
    padding: 4px;
  }

  .auth-cloud-experiment[data-profile-mode="true"] .auth-view.is-active[data-auth-view^="profile-"] {
    display: flex;
    min-height: 0;
    flex: 1;
  }

  .auth-cloud-experiment[data-profile-mode="true"] .auth-view.is-active[data-auth-view^="profile-"] > form {
    display: flex;
    width: 100%;
    min-height: 0;
    flex: 1;
    flex-direction: column;
    gap: 16px;
  }

  .auth-cloud-experiment[data-profile-mode="true"][data-profile-step="2"] .auth-profile-actions {
    margin-top: auto;
  }

  .auth-cloud-experiment[data-profile-mode="true"][data-profile-step="1"] .auth-story h1 {
    max-width: none;
    font-size: clamp(1.8rem, 3.25vw, 2rem);
    letter-spacing: -0.04em;
    white-space: nowrap;
  }
}

.auth-panel-heading {
  margin-bottom: 26px;
}

.auth-panel-heading > p {
  color: var(--auth-primary-deep);
}

.auth-panel-heading h2 {
  margin: 11px 0 8px;
  font-size: clamp(2rem, 3vw, 2.55rem);
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.auth-panel-heading > span {
  display: block;
  color: var(--auth-soft);
  font-size: 0.88rem;
  line-height: 1.55;
}

.auth-view[hidden],
.auth-loading[hidden],
.auth-status[hidden],
.auth-progress[hidden] {
  display: none;
}

.auth-methods,
.auth-view form {
  display: grid;
  gap: 14px;
}

.auth-provider,
.auth-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.auth-provider:hover,
.auth-primary:hover {
  transform: translateY(-1px);
}

.auth-provider {
  position: relative;
  border: 1px solid var(--auth-line);
  color: var(--auth-ink);
  background: #fff;
}

.auth-google-slot {
  width: 100%;
  height: 54px;
  overflow: hidden;
}

.auth-provider--google,
.auth-provider--apple {
  min-height: 54px;
  height: 54px;
}

/* GIS draws a 40px button; a uniform 54/40 scale preserves its logo. */
.auth-google-rendered {
  width: 74.074074%;
  transform: scale(1.35);
  transform-origin: top left;
}

.auth-google-rendered:not([hidden]) {
  display: block;
  height: 40px;
}

.auth-google-slot [hidden] {
  display: none;
}

.auth-provider img,
.auth-provider i {
  position: absolute;
  left: 17px;
  width: 21px;
  height: 21px;
  object-fit: contain;
}

.auth-provider i {
  font-family: "Around Brands";
  font-size: 1.35rem;
  font-style: normal;
  line-height: 21px;
}

.auth-provider--apple {
  border-color: #111;
  color: #fff;
  background: #111;
}

.auth-primary {
  border: 1px solid transparent;
  color: #fff;
  background: var(--auth-primary);
  box-shadow: 0 13px 26px rgba(101, 90, 168, 0.22);
}

.auth-primary:hover {
  background: var(--auth-primary-deep);
  box-shadow: 0 16px 30px rgba(101, 90, 168, 0.28);
}

.auth-primary--accent {
  background: var(--auth-accent);
  box-shadow: 0 13px 26px rgba(80, 149, 137, 0.22);
}

.auth-primary--accent:hover {
  background: #579c90;
}

.auth-divider {
  position: relative;
  height: 38px;
  margin: 3px 0;
  text-align: center;
}

.auth-divider::before {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--auth-line);
  content: "";
}

.auth-divider span {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 12px;
  color: var(--auth-muted);
  background: var(--auth-paper);
  font-size: 0.72rem;
}

.auth-switch,
.auth-legal {
  margin: 18px 0 0;
  color: var(--auth-soft);
  font-size: 0.82rem;
  line-height: 1.6;
  text-align: center;
}

.auth-switch button,
.auth-text-action {
  border: 0;
  color: var(--auth-primary-deep);
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}

.auth-text-action {
  display: block;
  min-height: 44px;
  margin: 10px auto 0;
  padding: 0 10px;
  font-size: 0.8rem;
}

.auth-legal a {
  color: var(--auth-primary-deep);
  font-weight: 600;
}

.auth-field {
  display: grid;
  gap: 7px;
}

.auth-field > span:first-child,
.auth-field > span:first-child > small {
  color: var(--auth-ink);
  font-size: 0.74rem;
  font-weight: 700;
}

.auth-field > span:first-child > small {
  color: var(--auth-muted);
  font-weight: 500;
}

.auth-field > small {
  margin-top: -3px;
  color: var(--auth-muted);
  font-size: 0.65rem;
  line-height: 1.4;
}

.auth-field input {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid var(--auth-line);
  border-radius: 8px;
  outline: 0;
  color: var(--auth-ink);
  background: #fff;
  font-size: 0.82rem;
}

.auth-field input:focus {
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 3px rgba(133, 130, 190, 0.15);
}

.auth-field input[aria-invalid="true"] {
  border-color: var(--auth-danger);
}

.auth-profile-field,
.auth-input-shell {
  min-width: 0;
  max-width: 100%;
}

.auth-input-shell {
  position: relative;
  display: block;
}

.auth-input-shell > img,
.auth-input-shell > .auth-field-icon {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 11px;
  width: 32px;
  height: 32px;
  padding: 4px;
  border-radius: 8px;
  background: var(--auth-primary-soft);
  object-fit: contain;
  transform: translateY(-50%);
  pointer-events: none;
}

.auth-field-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--auth-primary-deep);
  font-family: "Around Theme Icons";
  font-size: 0.88rem;
  font-style: normal;
  line-height: 1;
}

.auth-profile-field .auth-input-shell > input {
  padding-left: 54px;
}

.auth-date-trigger {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 7px 14px 7px 10px;
  border: 1px solid var(--auth-line);
  border-radius: 8px;
  outline: 0;
  color: var(--auth-ink);
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.auth-date-trigger:focus-visible,
.auth-date-trigger[aria-expanded="true"] {
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 3px rgba(133, 130, 190, 0.15);
}

.auth-date-trigger[aria-invalid="true"] {
  border-color: var(--auth-danger);
}

.auth-date-trigger > img,
.auth-date-trigger > .auth-field-icon {
  width: 32px;
  height: 32px;
  padding: 4px;
  border-radius: 8px;
  background: var(--auth-primary-soft);
  object-fit: contain;
}

.auth-date-trigger > span {
  color: var(--auth-muted);
  font-size: 0.82rem;
}

.auth-date-trigger.has-value > span {
  color: var(--auth-ink);
}

.auth-date-trigger > i {
  color: var(--auth-primary-deep);
  font-size: 1.2rem;
  font-style: normal;
}

.auth-calendar {
  width: min(390px, calc(100% - 28px));
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 18px;
  color: var(--auth-ink);
  background: rgba(255, 254, 254, 0.98);
  box-shadow: 0 28px 80px rgba(45, 37, 75, 0.28);
}

.auth-calendar::backdrop {
  background: rgba(34, 29, 49, 0.38);
  backdrop-filter: blur(4px);
}

.auth-calendar-head,
.auth-calendar-selectors,
.auth-calendar-weekdays,
.auth-calendar-days {
  display: grid;
}

.auth-calendar-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

.auth-calendar-head span,
.auth-calendar-selectors span {
  display: block;
  color: var(--auth-primary-deep);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-calendar-head strong {
  display: block;
  margin-top: 3px;
  font-size: 1.28rem;
}

.auth-calendar-head > button {
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: var(--auth-primary-deep);
  background: var(--auth-primary-soft);
  place-items: center;
  font-size: 1.35rem;
  cursor: pointer;
}

.auth-calendar-selectors {
  grid-template-columns: 1.35fr 0.8fr;
  gap: 10px;
  margin: 18px 0 16px;
}

.auth-calendar-selectors label {
  display: grid;
  gap: 5px;
}

.auth-calendar-selectors select {
  width: 100%;
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid var(--auth-line);
  border-radius: 8px;
  outline: 0;
  color: var(--auth-ink);
  background: #fff;
  font-size: 0.76rem;
  font-weight: 600;
}

.auth-calendar-selectors select:focus {
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 3px rgba(133, 130, 190, 0.12);
}

.auth-calendar-weekdays,
.auth-calendar-days {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.auth-calendar-weekdays {
  margin-bottom: 5px;
  color: var(--auth-muted);
  font-size: 0.62rem;
  font-weight: 700;
  text-align: center;
}

.auth-calendar-days button,
.auth-calendar-days span {
  display: grid;
  aspect-ratio: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  place-items: center;
}

.auth-calendar-days button {
  color: var(--auth-ink);
  background: transparent;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}

.auth-calendar-days button:hover,
.auth-calendar-days button:focus-visible {
  outline: 0;
  background: var(--auth-primary-soft);
}

.auth-calendar-days button[aria-selected="true"] {
  color: #fff;
  background: var(--auth-primary-deep);
}

.auth-calendar-cancel {
  margin: 12px auto -8px;
}

.auth-location-field {
  position: relative;
}

.auth-location-label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.74rem;
  font-weight: 700;
}

.auth-location-label small {
  color: var(--auth-muted);
  font-size: inherit;
  font-weight: 400;
}

.auth-location-trigger {
  display: grid;
  width: 100%;
  min-height: 78px;
  padding: 11px 12px;
  border: 1.2px solid rgba(101, 90, 168, 0.18);
  border-radius: 18px;
  color: var(--auth-ink);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 10px 22px rgba(101, 90, 168, 0.09);
  grid-template-columns: 42px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 12px;
  text-align: left;
  cursor: pointer;
}

.auth-location-trigger:hover,
.auth-location-trigger:focus-visible {
  border-color: rgba(101, 90, 168, 0.4);
  outline: 0;
  background: rgba(255, 255, 255, 0.84);
}

.auth-location-trigger-icon,
.auth-location-trigger-chevron {
  display: grid;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--auth-primary-deep);
  background: rgba(101, 90, 168, 0.1);
  place-items: center;
}

.auth-location-trigger-icon i {
  font-family: "Around Theme Icons";
  font-style: normal;
}

.auth-location-trigger-chevron {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: 1.15rem;
}

.auth-location-trigger-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.auth-location-trigger-copy small {
  color: var(--auth-muted);
  font-size: 0.62rem;
  font-weight: 700;
}

.auth-location-trigger-copy strong {
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-location-trigger[data-has-value="true"] {
  border-color: rgba(101, 90, 168, 0.34);
}

.auth-location-hint {
  color: var(--auth-muted);
  font-size: 0.63rem;
  line-height: 1.45;
}

.auth-location-hint {
  margin: 7px 2px 0;
}

.auth-location-dialog {
  width: min(520px, calc(100% - 32px));
  height: min(700px, 88vh);
  margin: auto;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 28px;
  color: var(--auth-ink);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(242, 239, 250, 0.88)),
    rgba(255, 255, 255, 0.9);
  box-shadow: 0 30px 90px rgba(32, 26, 52, 0.28);
  backdrop-filter: blur(30px) saturate(1.12);
}

.auth-location-dialog::backdrop {
  background: rgba(30, 25, 45, 0.38);
  backdrop-filter: blur(5px);
}

.auth-location-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.auth-location-dialog-head > div {
  display: grid;
  gap: 3px;
}

.auth-location-dialog-head span {
  color: var(--auth-primary-deep);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-location-dialog-head strong {
  font-size: 1.35rem;
}

.auth-location-dialog-head button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  color: var(--auth-primary-deep);
  background: rgba(101, 90, 168, 0.1);
  font-size: 1.35rem;
  cursor: pointer;
}

.auth-location-picker-step {
  display: flex;
  height: calc(100% - 70px);
  min-height: 0;
  flex-direction: column;
}

.auth-location-picker-step[hidden] {
  display: none;
}

.auth-location-picker-step > p {
  margin: 0 0 10px;
  color: var(--auth-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.auth-location-picker-list {
  display: grid;
  min-height: 0;
  padding-right: 4px;
  overflow-y: auto;
  align-content: start;
  gap: 8px;
}

.auth-location-picker-list button {
  display: grid;
  width: 100%;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid rgba(101, 90, 168, 0.14);
  border-radius: 16px;
  color: var(--auth-ink);
  background: rgba(255, 255, 255, 0.62);
  grid-template-columns: 36px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}

.auth-location-picker-list button:hover,
.auth-location-picker-list button:focus-visible {
  border-color: rgba(101, 90, 168, 0.38);
  outline: 0;
  background: var(--auth-primary-soft);
}

.auth-location-picker-list button > i {
  display: grid;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: var(--auth-primary-deep);
  background: rgba(101, 90, 168, 0.1);
  font-family: "Around Theme Icons";
  font-style: normal;
  place-items: center;
}

.auth-location-picker-list button > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.auth-location-picker-list button strong {
  overflow: hidden;
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-location-picker-list button small {
  overflow: hidden;
  color: var(--auth-muted);
  font-size: 0.61rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-location-picker-list button > b {
  color: var(--auth-primary-deep);
  font-size: 1.15rem;
  font-weight: 500;
  text-align: center;
}

.auth-location-picker-list > p {
  margin: 8px 4px;
  color: var(--auth-muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.auth-location-picker-back {
  align-self: flex-start;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  color: var(--auth-primary-deep);
  background: transparent;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
}

.auth-location-picker-search {
  display: grid;
  gap: 7px;
  margin-bottom: 10px;
}

.auth-location-picker-search span {
  font-size: 0.7rem;
  font-weight: 700;
}

.auth-location-picker-search input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(101, 90, 168, 0.22);
  border-radius: 14px;
  color: var(--auth-ink);
  background: rgba(255, 255, 255, 0.74);
  font: inherit;
}

.auth-profile-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.auth-cloud-experiment[data-profile-step="2"] .auth-profile-actions {
  margin-top: 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(101, 90, 168, 0.14);
}

.auth-profile-actions .auth-text-action {
  min-width: 72px;
  margin: 0;
}

.auth-profile-actions--finish {
  grid-template-columns: minmax(0, 1fr);
  margin-top: 6px;
}

.auth-profile-finish {
  gap: 10px;
}

.auth-cloud-experiment .auth-profile-finish {
  background: linear-gradient(135deg, #4eb4a7 0%, #6674c8 52%, #895fc0 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.46),
    0 12px 26px rgba(68, 80, 160, 0.28);
}

.auth-cloud-experiment .auth-profile-finish:hover,
.auth-cloud-experiment .auth-profile-finish:focus-visible {
  background: linear-gradient(135deg, #41a79a 0%, #5664b8 52%, #794eae 100%);
}

.auth-profile-finish > img {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1);
  object-fit: contain;
}

.auth-password {
  position: relative;
}

.auth-password input {
  padding-right: 62px;
}

.auth-password button {
  position: absolute;
  top: 5px;
  right: 5px;
  min-width: 48px;
  height: 42px;
  border: 0;
  border-radius: 6px;
  color: var(--auth-primary-deep);
  background: var(--auth-primary-soft);
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
}

.auth-status {
  margin: -8px 0 18px;
  padding: 11px 13px;
  border: 1px solid rgba(168, 70, 93, 0.2);
  border-radius: 8px;
  color: #7f2f43;
  background: #faedf0;
  font-size: 0.72rem;
  line-height: 1.5;
}

.auth-status.is-success {
  border-color: rgba(80, 149, 137, 0.22);
  color: #356f65;
  background: var(--auth-accent-soft);
}

.auth-info-card {
  padding: 15px;
  border: 1px solid rgba(133, 130, 190, 0.2);
  border-radius: 8px;
  background: var(--auth-primary-soft);
}

.auth-info-card strong {
  display: block;
  font-size: 0.8rem;
}

.auth-info-card p {
  margin: 5px 0 0;
  color: var(--auth-soft);
  font-size: 0.7rem;
  line-height: 1.5;
}

.auth-code {
  font-size: 1.4rem !important;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-align: center;
}

.auth-progress {
  margin: -8px 0 24px;
}

.auth-progress-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}

.auth-progress-row > span {
  color: var(--auth-primary-deep);
  font-size: 0.66rem;
  font-weight: 700;
}

.auth-progress-back {
  display: none;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(101, 90, 168, 0.18);
  border-radius: 999px;
  color: var(--auth-primary-deep);
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.auth-progress-back span {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
}

.auth-cloud-experiment[data-profile-step="3"] .auth-progress-back {
  display: inline-grid;
  place-items: center;
}

.auth-progress > div[aria-hidden="true"] {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--auth-primary-soft);
}

.auth-progress i {
  display: block;
  width: 33.333%;
  height: 100%;
  border-radius: inherit;
  background: var(--auth-primary);
  transition: width 180ms ease;
}

.auth-progress i[data-step="2"] { width: 66.666%; }
.auth-progress i[data-step="3"] { width: 100%; }

.auth-selection-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.auth-selection-copy strong {
  font-size: 0.75rem;
}

.auth-selection-copy span {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--auth-primary-deep);
  background: var(--auth-primary-soft);
  font-size: 0.62rem;
  font-weight: 700;
}

.auth-interest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-height: 354px;
  padding-right: 4px;
  overflow: auto;
  scrollbar-color: rgba(133, 130, 190, 0.42) transparent;
}

.auth-interest-grid button {
  position: relative;
  display: grid;
  min-height: 104px;
  padding: 9px 7px 8px;
  place-items: center;
  align-content: center;
  gap: 6px;
  border: 1px solid var(--auth-line);
  border-radius: 14px;
  color: var(--auth-soft);
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.61rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.auth-interest-grid button:hover {
  transform: translateY(-1px);
  border-color: rgba(133, 130, 190, 0.45);
}

.auth-interest-grid button img {
  width: 45px;
  height: 45px;
  padding: 6px;
  border: 1px solid rgba(133, 130, 190, 0.13);
  border-radius: 13px;
  background: rgba(238, 236, 248, 0.78);
  object-fit: contain;
}

.auth-interest-grid button span {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.auth-interest-grid button[aria-pressed="true"] {
  border-color: rgba(101, 90, 168, 0.5);
  color: var(--auth-ink);
  background: linear-gradient(145deg, rgba(238, 236, 248, 0.98), rgba(218, 214, 239, 0.94));
  box-shadow: 0 8px 18px rgba(101, 90, 168, 0.1);
}

.auth-interest-grid button[aria-pressed="true"]::after {
  position: absolute;
  top: 6px;
  right: 7px;
  display: grid;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  color: var(--auth-primary-deep);
  background: #fff;
  place-items: center;
  content: "✓";
  font-size: 0.64rem;
  font-weight: 700;
}

.auth-interest-grid button[aria-pressed="true"] img {
  border-color: rgba(101, 90, 168, 0.22);
  background: rgba(255, 255, 255, 0.56);
}

.auth-ready-mark {
  display: grid;
  width: 168px;
  height: 168px;
  margin: 10px auto 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--auth-primary-soft);
}

.auth-ready-mark img {
  width: 114px;
  height: 114px;
  object-fit: contain;
}

.auth-view[data-auth-view="ready"] {
  text-align: center;
}

.auth-view[data-auth-view="ready"] h3 {
  margin: 0;
  font-size: 1.5rem;
}

.auth-view[data-auth-view="ready"] p {
  margin: 8px 0 22px;
  color: var(--auth-soft);
  font-size: 0.82rem;
}

.auth-loading {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  align-content: center;
  justify-items: center;
  background: rgba(255, 254, 254, 0.9);
  backdrop-filter: blur(8px);
}

.auth-loading span {
  width: 34px;
  height: 34px;
  border: 3px solid var(--auth-primary-soft);
  border-top-color: var(--auth-primary);
  border-radius: 50%;
  animation: auth-spin 700ms linear infinite;
}

.auth-loading p {
  margin: 13px 0 0;
  color: var(--auth-soft);
  font-size: 0.74rem;
  font-weight: 600;
}

@keyframes auth-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 980px) {
  .auth-shell {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
  }

  .auth-story {
    min-height: 560px;
    padding: 40px 32px 44px;
  }

  .auth-story h1 {
    font-size: 3.25rem;
  }

  .auth-story-mark img {
    width: min(68%, 260px);
  }

  .auth-page[data-profile-mode="true"] .auth-shell {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 760px) {
  .auth-location-dialog {
    width: 100%;
    max-width: none;
    height: min(92vh, 760px);
    margin: auto 0 0;
    padding: 20px 18px 24px;
    border-radius: 28px 28px 0 0;
  }

  .auth-topbar {
    width: calc(100% - 32px);
    min-height: 78px;
  }

  .auth-brand {
    width: 108px;
  }

  .auth-back {
    min-height: 42px;
    padding: 0 12px;
    font-size: 0.68rem;
  }

  .auth-shell {
    display: block;
    width: calc(100% - 28px);
    min-height: auto;
    padding: 10px 0 30px;
  }

  .auth-story {
    min-height: 210px;
    margin-bottom: 14px;
    padding: 24px;
    border-radius: 18px;
  }

  .auth-story-mark {
    position: absolute;
    top: 16px;
    right: 12px;
    bottom: 12px;
    width: 43%;
  }

  .auth-story-mark img {
    width: 100%;
  }

  .auth-story-copy {
    position: relative;
    z-index: 2;
    width: 64%;
    margin-top: auto;
  }

  .auth-kicker {
    font-size: 0.57rem;
  }

  .auth-story h1 {
    max-width: 280px;
    margin-top: 9px;
    font-size: clamp(2.05rem, 10vw, 2.75rem);
  }

  .auth-story-copy > p:last-child {
    display: none;
  }

  .auth-panel {
    max-width: none;
    min-height: 520px;
    padding: 27px 22px;
    border-radius: 18px;
  }

  .auth-panel-heading {
    margin-bottom: 21px;
  }

  .auth-panel-heading h2 {
    font-size: 1.85rem;
  }

}

@media (max-width: 900px) {
  .auth-page[data-profile-mode="true"] .auth-story,
  .auth-page[data-profile-mode="true"] .auth-panel {
    min-height: 0;
  }

  .auth-page[data-profile-mode="true"] .auth-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto auto;
    gap: 0;
    width: min(calc(100% - (2 * var(--cloud-frame-inline))), var(--cloud-frame-width));
    max-width: none;
    margin-top: var(--cloud-header-height);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: var(--auth-shadow);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
  }

  .auth-page[data-profile-mode="true"] .auth-story {
    display: flex;
    min-height: 126px;
    margin-bottom: 0;
    padding: 17px 18px 17px 20px;
    flex-direction: row;
    align-items: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .auth-page[data-profile-mode="true"] .auth-story-copy {
    position: relative;
    width: calc(100% - 94px);
    margin: 0;
  }

  .auth-page[data-profile-mode="true"] .auth-story h1 {
    margin-top: 5px;
    font-size: clamp(1.5rem, 7vw, 1.95rem);
  }

  .auth-page[data-profile-mode="true"] .auth-story-copy > p:last-child {
    display: block;
    margin-top: 6px;
    font-size: 0.64rem;
    line-height: 1.4;
  }

  .auth-page[data-profile-mode="true"] .auth-story-mark {
    position: static;
    flex: 0 0 86px;
    width: 86px;
    height: 86px;
    order: 2;
  }

  .auth-page[data-profile-mode="true"] .auth-panel {
    width: 100%;
    max-width: none;
    padding: 25px 22px 27px;
    border: 0;
    border-top: 1px solid rgba(133, 130, 190, 0.14);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .auth-page[data-profile-mode="true"] .auth-story-mark img {
    width: auto;
    height: 80px;
    object-fit: contain;
  }

  .auth-interest-grid {
    max-height: none;
  }

  .auth-page[data-profile-mode="true"] .auth-interest-grid {
    max-height: none;
  }

}

@media (min-width: 560px) and (max-width: 900px) {
  .auth-page[data-profile-mode="true"] .auth-interest-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .auth-page[data-profile-mode="true"] .auth-shell {
    width: calc(100vw - 36px);
    margin-inline: 18px auto;
  }
}

@media (max-width: 360px) {
  .auth-shell {
    width: calc(100% - 20px);
  }

  .auth-panel {
    padding: 24px 16px;
  }

  .auth-interest-grid button {
    min-height: 96px;
    font-size: 0.57rem;
  }

  .auth-interest-grid button img {
    width: 39px;
    height: 39px;
  }

  .auth-page[data-profile-mode="true"] .auth-shell {
    width: min(calc(100vw - (2 * var(--cloud-frame-inline))), var(--cloud-frame-width));
    margin-inline: var(--cloud-frame-inline) auto;
  }

  .auth-page[data-profile-mode="true"] .auth-story {
    min-height: 116px;
    padding: 15px 14px 15px 17px;
  }

  .auth-page[data-profile-mode="true"] .auth-story-mark {
    flex-basis: 72px;
    width: 72px;
    height: 72px;
  }

  .auth-page[data-profile-mode="true"] .auth-story-mark img {
    width: auto;
    height: 68px;
  }

  .auth-page[data-profile-mode="true"] .auth-story-copy {
    width: calc(100% - 78px);
  }

  .auth-page[data-profile-mode="true"] .auth-story-copy > p:last-child {
    font-size: 0.59rem;
  }

  .auth-calendar {
    padding: 18px;
  }
}

/* The approved two-pane cloud shell becomes one coherent card on phones. */
@media (max-width: 900px) {
  .auth-cloud-experiment:not([data-profile-mode="true"]) .auth-shell {
    display: grid;
    width: min(calc(100% - (2 * var(--cloud-frame-inline))), var(--cloud-frame-width));
    min-height: 0;
    margin-top: var(--cloud-header-height);
    margin-bottom: 28px;
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
  }

  .auth-cloud-experiment:not([data-profile-mode="true"]) .auth-story {
    min-height: 320px;
    margin: 0;
    padding: 24px;
  }

  .auth-cloud-experiment[data-auth-current-view="methods"] .auth-story {
    height: clamp(300px, 95vw, 390px);
    min-height: 0;
  }

  .auth-cloud-experiment[data-auth-current-view="methods"] .auth-story::after {
    background: linear-gradient(180deg, rgba(24, 18, 36, 0.02), rgba(25, 19, 38, 0.16));
  }

  .auth-cloud-experiment:not([data-profile-mode="true"]) .auth-story-mark {
    position: absolute;
    inset: 0;
    width: 100%;
  }

  .auth-cloud-experiment:not([data-profile-mode="true"]) .auth-story-mark img {
    width: 100%;
    height: 100%;
    object-position: center 8%;
  }

  .auth-cloud-experiment:not([data-profile-mode="true"]) .auth-story-copy {
    width: 100%;
  }

  .auth-cloud-experiment[data-auth-current-view="methods"] .auth-story-copy {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .auth-cloud-experiment:not([data-profile-mode="true"]) .auth-story h1 {
    max-width: 300px;
    font-size: clamp(2.1rem, 9vw, 2.9rem);
  }

  .auth-cloud-experiment:not([data-profile-mode="true"]) .auth-story-copy > p:last-child {
    display: block;
    margin-top: 10px;
    font-size: 0.78rem;
  }

  .auth-cloud-experiment:not([data-profile-mode="true"]) .auth-panel {
    min-height: 0;
    padding: 30px 24px 34px;
    overflow: visible;
    border-top: 1px solid rgba(255, 255, 255, 0.66);
    border-left: 0;
  }
}

.auth-mobile-intro {
  display: none;
}

@media (max-width: 900px) {
  .auth-cloud-experiment[data-auth-current-view="methods"] .auth-panel-heading .auth-mobile-intro {
    display: block;
    margin-bottom: 9px;
    color: var(--auth-primary-deep);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
  }

  .auth-cloud-experiment[data-auth-current-view="methods"] .auth-panel-heading [data-panel-kicker] {
    display: none;
  }
}

.auth-mobile-download {
  display: none;
}

@media (max-width: 760px) {
  /* The approved poster belongs to the entry state; interior steps prioritize the form. */
  .auth-cloud-experiment:not([data-profile-mode="true"]):not([data-auth-current-view="methods"]) .auth-story {
    display: none;
  }

  .auth-mobile-download {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 22px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--auth-line);
    color: var(--auth-soft);
    font-size: 0.76rem;
    line-height: 1.4;
  }

  .auth-mobile-download a {
    flex: none;
    color: var(--auth-primary-deep);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
  }

  .auth-mobile-download a:focus-visible {
    outline: 3px solid var(--auth-accent);
    outline-offset: 3px;
  }
}

@media (max-width: 360px) {
  .auth-cloud-experiment:not([data-profile-mode="true"]) .auth-shell {
    width: min(calc(100% - (2 * var(--cloud-frame-inline))), var(--cloud-frame-width));
  }

  .auth-cloud-experiment:not([data-profile-mode="true"]) .auth-panel {
    padding-inline: 18px;
  }
}

@media (min-width: 761px) and (max-width: 900px) {
  .auth-cloud-experiment:not([data-profile-mode="true"]) .auth-panel > * {
    width: min(100%, 540px);
    margin-inline: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
