/* Auth Portal — independent, route-scoped layer after Observatory.
 * The native Vue forms, validation, OAuth and challenge widgets stay intact.
 * Without auth.js, no selector here matches and the original page is retained.
 */
html body #app .ap-root {
  /* The auth portal intentionally uses a dark, star-filled canvas in both
   * appearance modes; the dark class adds a slightly deeper contrast layer. */
  --ap-page: #081421;
  --ap-ink: #eef3f8;
  --ap-muted: #a1b3c7;
  --ap-line: #314962;
  --ap-field: #14283e;
  --ap-field-hover: #1a324c;
  --ap-accent: #f2a27a;
  --ap-ring: rgba(242, 162, 122, .2);
  --ap-button: #d8754d;
  --ap-button-hover: #eb956a;
  --ap-sky: #0b1a2c;
  --ap-page-warm: rgba(218, 126, 79, .12);
  --ap-page-cool: rgba(91, 148, 191, .15);
  position: relative;
  display: grid !important;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: stretch !important;
  justify-content: normal !important;
  gap: 0;
  min-height: 100vh !important;
  min-height: 100svh !important;
  width: 100%;
  padding: 24px !important;
  overflow: visible !important;
  isolation: isolate;
  background:
    radial-gradient(circle at 82% 12%, rgba(105, 149, 207, .18), transparent 31%),
    radial-gradient(ellipse at 18% 92%, rgba(218, 111, 67, .13), transparent 35%),
    linear-gradient(135deg, #071321 0%, var(--ap-page) 54%, #06101c 100%) !important;
  color: var(--ap-ink);
  font-family: "Space Grotesk", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}
html.dark body #app .ap-root {
  --ap-page: #07111e;
  --ap-ink: #f2f5f8;
  --ap-muted: #b1bfd0;
  --ap-line: #324b64;
  --ap-field: #13283e;
  --ap-field-hover: #19334e;
  --ap-accent: #f4af88;
  --ap-ring: rgba(244, 175, 136, .2);
  --ap-button: #e99a71;
  --ap-button-hover: #f5ac85;
  --ap-page-warm: rgba(213, 118, 75, .09);
  --ap-page-cool: rgba(94, 151, 194, .17);
}
html body #app .ap-root::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(circle at 17px 23px, rgba(214, 232, 249, .86) 0 .8px, transparent 1.4px),
    radial-gradient(circle at 103px 77px, rgba(154, 190, 224, .72) 0 .55px, transparent 1.1px),
    radial-gradient(circle at 37% 53%, rgba(222, 237, 255, .95) 0 1px, rgba(147, 186, 227, .12) 1.8px, transparent 3px);
  background-size: clamp(180px, 12vw, 320px) clamp(160px, 10vw, 270px), clamp(260px, 18vw, 460px) clamp(230px, 16vw, 410px), clamp(380px, 23vw, 640px) clamp(310px, 21vw, 570px);
  background-repeat: repeat;
  opacity: .52;
  content: "";
  pointer-events: none;
}
html body #app .ap-root > .absolute { display: none !important; }
html body #app .ap-root *,
html body #app .ap-root *::before,
html body #app .ap-root *::after { box-sizing: border-box; }

/* A quiet, static orbital illustration; no canvas, network or animation loop. */
html body #app .ap-root .ap-visual {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 700px;
  padding: clamp(28px, 7%, 104px);
  overflow: hidden;
  border: 1px solid rgba(183, 204, 229, .14);
  border-radius: 24px;
  background:
    radial-gradient(circle at 52% 68%, rgba(89, 133, 170, .2), transparent 60%),
    radial-gradient(ellipse at 12% 100%, rgba(201, 120, 75, .075), transparent 58%),
    var(--ap-sky);
  color: #f4f3f0;
}
html body #app .ap-root .ap-visual::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle at 23px 29px, #c2d2e5 0 .65px, transparent 1px),
    radial-gradient(circle at 132px 117px, #8399b3 0 .6px, transparent 1px);
  background-size: 187px 211px, 251px 239px;
  opacity: .23;
  content: "";
  pointer-events: none;
}
html body #app .ap-root .ap-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
html body #app .ap-root .ap-wordmark { display: flex; align-items: center; gap: 12px; }
/* Reuse the homepage's cosmic-brand-mark artwork and colors. Its 38px
 * coordinate system scales as a unit with the surrounding auth wordmark. */
html body #app .ap-root .ap-symbol { width: 38px; height: 38px; flex: 0 0 auto; font-size: 1px; box-shadow: 0 0 0 5em rgba(225, 122, 78, .08), 0 0 22em rgba(225, 122, 78, .22); }
html body #app .ap-root .ap-symbol::before { inset: -5em 5em; }
html body #app .ap-root .ap-symbol::after { inset: 5em -5em; }
html body #app .ap-root .ap-symbol > span { width: 7em; height: 7em; box-shadow: 0 0 12em #fff3e4; }
html body #app .ap-root .ap-brandname { display: block; color: #f5f4f1; font-size: 17px; font-weight: 650; letter-spacing: .12em; }
html body #app .ap-root .ap-brandtag { display: block; margin-top: 3px; color: #91a4bb; font-size: 9px; font-weight: 500; letter-spacing: .17em; }
html body #app .ap-root .ap-homelink {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  flex-shrink: 0;
  border-radius: 6px;
  color: #bdcbdb !important;
  font-size: 12px;
  text-decoration: none;
  transition: color .18s ease;
}
html body #app .ap-root .ap-homelink:hover { color: #fff !important; }
html body #app .ap-root .ap-homelink svg { width: 14px; height: 14px; }
html body #app .ap-root .ap-story { position: relative; margin-top: clamp(56px, 7vh, 92px); }
html body #app .ap-root .ap-eyebrow { margin: 0 0 19px; color: #a5b8cc; font-size: 10px; font-weight: 500; letter-spacing: .24em; }
html body #app .ap-root .ap-headline {
  margin: 0;
  color: #f7f5f2 !important;
  font-size: clamp(32px, 3vw, 48px);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: .045em;
}
html body #app .ap-root .ap-headline span { display: block; color: #efb18d; }
html body #app .ap-root .ap-description { max-width: 310px; margin: 18px 0 0; color: #aabacf !important; font-size: 14px; line-height: 1.95; }
html body #app .ap-root .ap-orbit { position: relative; width: 100%; max-width: 460px; height: 298px; margin: 8px auto; flex: 1 0 270px; }
html body #app .ap-root .ap-orbit svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
html body #app .ap-root .ap-planet {
  position: absolute;
  left: 50%;
  top: 51%;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(243, 184, 139, .4);
  border-radius: 50%;
  background: radial-gradient(circle at 24% 23%, #f8c397 0, #e69362 24%, #62473d 43%, #162132 67%);
  box-shadow: -8px -6px 28px rgba(230, 142, 88, .12), 18px 16px 45px rgba(2, 8, 18, .5);
  transform: translate(-50%, -50%);
}
html body #app .ap-root .ap-planet::after {
  position: absolute;
  inset: 3px -1px -1px 5px;
  border-radius: inherit;
  background: radial-gradient(circle at 65% 56%, #111d2d 27%, #142132 64%, rgba(20, 33, 50, .15) 95%);
  box-shadow: inset 4px 3px 15px rgba(244, 174, 126, .12);
  content: "";
}
html body #app .ap-root .ap-orbit-label { position: absolute; bottom: 18px; left: 0; color: #8d9fb6; font-size: 9px; letter-spacing: .17em; }
html body #app .ap-root .ap-visual-footer { display: flex; align-items: center; gap: 10px; padding-top: 23px; border-top: 1px solid rgba(190, 211, 234, .16); color: #aabbd0; font-size: 11px; letter-spacing: .04em; }
html body #app .ap-root .ap-footer-dot { width: 5px; height: 5px; border-radius: 50%; background: #ebad8a; box-shadow: 0 0 10px rgba(235, 173, 138, .3); }

/* Preserve the native content and hierarchy, restyle only its presentation. */
html body #app .ap-root .ap-panel {
  position: relative;
  z-index: 2;
  align-self: center;
  justify-self: center;
  width: 100%;
  max-width: 560px !important;
  min-width: 0;
  padding: 44px clamp(32px, 4.4vw, 70px);
}
html body #app .ap-root .ap-native-brand {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 3px 13px;
  margin: 0 0 38px !important;
  text-align: left !important;
}
html body #app .ap-root .ap-native-brand > div { grid-column: 1; grid-row: 1 / 3; width: 44px !important; height: 44px !important; margin: 0 !important; border-radius: 13px !important; box-shadow: 0 3px 10px rgba(16, 29, 45, .08) !important; }
html body #app .ap-root .ap-native-brand img { width: 100%; height: 100%; object-fit: contain; }
html body #app .ap-root .ap-native-brand h1 { grid-column: 2; margin: 0 !important; color: var(--ap-ink) !important; background: none !important; -webkit-text-fill-color: currentColor !important; font-size: 19px !important; font-weight: 700; line-height: 1.5; letter-spacing: .035em; }
html body #app .ap-root .ap-native-brand > p { grid-column: 2; margin: 0 !important; color: var(--ap-muted) !important; font-size: 10px !important; line-height: 1.55; overflow-wrap: anywhere; }
html body #app .ap-root .ap-card {
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
html body #app .ap-root .ap-card::before,
html body #app .ap-root .ap-card::after { display: none !important; }
html body #app .ap-root .ap-card > div > .text-center:first-child { margin-bottom: 30px; text-align: left !important; }
html body #app .ap-root .ap-card h2 { margin: 0 !important; color: var(--ap-ink) !important; font-size: 30px !important; font-weight: 700; line-height: 1.45; letter-spacing: -.035em; }
html body #app .ap-root .ap-card > div > .text-center > p { margin-top: 9px !important; color: var(--ap-muted) !important; font-size: 13px !important; line-height: 1.8; }
html body #app .ap-root form { margin-top: 0 !important; }
html body #app .ap-root form.space-y-5 > * + * { margin-top: 22px; }
html body #app .ap-root .input-label { margin-bottom: 9px !important; color: var(--ap-ink) !important; font-size: 13px !important; font-weight: 550; letter-spacing: .015em; }
html body #app .ap-root .input {
  min-height: 50px !important;
  border: 1px solid var(--ap-line) !important;
  border-radius: 10px !important;
  background: var(--ap-field) !important;
  color: var(--ap-ink) !important;
  font-family: inherit;
  font-size: 14px !important;
  line-height: 1.5;
  box-shadow: 0 2px 3px rgba(21, 34, 52, .015) !important;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
html body #app .ap-root .input:hover { background: var(--ap-field-hover) !important; border-color: #aebbc9 !important; }
html body #app .ap-root .input:focus { border-color: var(--ap-accent) !important; outline: 0 !important; box-shadow: 0 0 0 4px var(--ap-ring) !important; }
html body #app .ap-root .input::placeholder { color: var(--ap-muted) !important; opacity: .78; }
html body #app .ap-root .input-hint { margin-top: 7px !important; color: var(--ap-muted) !important; font-size: 11px !important; line-height: 1.6; }
html body #app .ap-root form .relative > .pointer-events-none svg { color: var(--ap-muted) !important; width: 18px; height: 18px; }
html body #app .ap-root form .relative > button.absolute { min-width: 44px; min-height: 44px; justify-content: center; padding: 0 12px !important; color: var(--ap-muted) !important; border-radius: 8px; background: transparent !important; box-shadow: none !important; }
html body #app .ap-root form .relative > button.absolute:hover { color: var(--ap-accent) !important; }
html body #app .ap-root .btn.btn-primary {
  min-height: 50px !important;
  margin-top: 26px !important;
  border: 1px solid transparent !important;
  border-radius: 10px !important;
  background: var(--ap-button) !important;
  color: #101b2a !important;
  font-size: 14px !important;
  font-weight: 650;
  letter-spacing: .04em;
  box-shadow: 0 5px 13px rgba(171, 77, 41, .12) !important;
  transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
html.dark body #app .ap-root .btn.btn-primary { color: #101b2a !important; }
html body #app .ap-root .btn.btn-primary::before,
html body #app .ap-root .btn.btn-primary::after { display: none !important; }
html body #app .ap-root .btn.btn-primary:not(:disabled):hover { background: var(--ap-button-hover) !important; transform: translateY(-1px); box-shadow: 0 7px 17px rgba(171, 77, 41, .19) !important; }
html body #app .ap-root .btn.btn-primary:not(:disabled):active { transform: translateY(0); }
html body #app .ap-root .btn:disabled { transform: none !important; opacity: .55; }
html body #app .ap-root .ap-switch { margin-top: 29px !important; padding-top: 23px; border-top: 1px solid var(--ap-line); color: var(--ap-muted) !important; font-size: 12px !important; line-height: 1.8; text-align: center; }
html body #app .ap-root .ap-switch > span { color: inherit !important; }
html body #app .ap-root .ap-switch a { display: inline-block; margin-left: 5px; padding: 4px 2px; color: var(--ap-accent) !important; font-weight: 650; text-decoration: none; text-underline-offset: 4px; }
html body #app .ap-root .ap-switch a:hover { text-decoration: underline; }
html body #app .ap-root .ap-copyright { margin-top: 26px !important; color: var(--ap-muted) !important; font-size: 10px !important; line-height: 1.7; }
html body #app .ap-root :is(a, button, input[type="checkbox"]):focus-visible { outline: 2px solid var(--ap-accent) !important; outline-offset: 4px; }
html body #app .ap-root .ap-visual a:focus-visible { outline-color: #f0b08c !important; }
/* Leave native errors, disabled states and third-party widgets visible. */
html body #app .ap-root [role="alert"] { overflow-wrap: anywhere; }
html body #app .ap-root .input[aria-invalid="true"] { border-color: #c95353 !important; }

/* Cover the entire viewport with a dark sky in both appearance modes. Star
 * points live on the independent root pseudo-element, behind all content. */
@media (min-width: 781px) {
  html body #app .ap-root {
    background:
      radial-gradient(ellipse at 76% 16%, var(--ap-page-warm), transparent 58%) center / cover no-repeat,
      radial-gradient(ellipse at 72% 86%, var(--ap-page-cool), transparent 60%) center / cover no-repeat,
      linear-gradient(135deg, #071321 0%, var(--ap-page) 54%, #06101c 100%) center / cover no-repeat !important;
  }
}
/* Scale the artwork from the actual left column, not the viewport. Keep a
 * conservative fallback above for browsers without container query units. */
@supports (container-type: size) and (width: 1cqw) {
  @media (min-width: 781px) {
    html body #app .ap-root .ap-visual { container-type: inline-size; border-radius: clamp(24px, 3.2vw, 40px); }
    html body #app .ap-root .ap-panel {
      width: min(100%, clamp(560px, 31vw, 760px));
      max-width: 760px !important;
      padding: clamp(44px, 3.2vw, 76px) clamp(32px, 3.6vw, 90px);
    }
    html body #app .ap-root .ap-native-brand {
      grid-template-columns: clamp(44px, 3vw, 72px) minmax(0, 1fr);
      gap: clamp(3px, .6vw, 14px) clamp(13px, 1vw, 24px);
      margin-bottom: clamp(38px, 3vw, 60px) !important;
    }
    html body #app .ap-root .ap-native-brand > div {
      width: clamp(44px, 3vw, 72px) !important;
      height: clamp(44px, 3vw, 72px) !important;
      border-radius: clamp(13px, .8vw, 20px) !important;
    }
    html body #app .ap-root .ap-native-brand h1 { font-size: clamp(19px, 1.15vw, 29px) !important; }
    html body #app .ap-root .ap-native-brand > p { font-size: clamp(10px, .65vw, 16px) !important; }
    html body #app .ap-root .ap-card > div > .text-center:first-child { margin-bottom: clamp(30px, 2.1vw, 46px); }
    html body #app .ap-root .ap-card h2 { font-size: clamp(30px, 2.3vw, 46px) !important; }
    html body #app .ap-root .ap-card > div > .text-center > p { font-size: clamp(13px, .9vw, 18px) !important; }
    html body #app .ap-root form.space-y-5 > * + * { margin-top: clamp(22px, 1.4vw, 34px); }
    html body #app .ap-root .input-label { font-size: clamp(13px, .78vw, 17px) !important; }
    html body #app .ap-root .input {
      min-height: clamp(50px, 3vw, 64px) !important;
      border-radius: clamp(10px, .65vw, 16px) !important;
      font-size: clamp(14px, .9vw, 18px) !important;
    }
    html body #app .ap-root .btn.btn-primary {
      min-height: clamp(50px, 3vw, 64px) !important;
      margin-top: clamp(26px, 1.8vw, 42px) !important;
      border-radius: clamp(10px, .65vw, 16px) !important;
      font-size: clamp(14px, .9vw, 18px) !important;
    }
    html body #app .ap-root .ap-switch {
      margin-top: clamp(29px, 2vw, 42px) !important;
      padding-top: clamp(23px, 1.6vw, 34px);
      font-size: clamp(12px, .72vw, 16px) !important;
    }
    html body #app .ap-root .ap-copyright {
      margin-top: clamp(26px, 1.6vw, 34px) !important;
      font-size: clamp(10px, .6vw, 14px) !important;
    }
    html body #app .ap-root .input-hint { font-size: clamp(11px, .68vw, 14px) !important; }
    html body #app .ap-root form .relative > .pointer-events-none svg,
    html body #app .ap-root form .relative > button.absolute svg,
    html body #app .ap-root .btn-primary > svg {
      width: clamp(18px, 1.1vw, 24px);
      height: clamp(18px, 1.1vw, 24px);
    }
    html body #app .ap-root form .relative > button.absolute {
      min-width: clamp(44px, 2.8vw, 60px);
      min-height: 44px;
    }
    html body #app .ap-root .input { padding-inline: clamp(42px, 2.8vw, 58px) clamp(50px, 3vw, 64px) !important; }
    html body #app .ap-root .ap-visual::before {
      background-image:
        radial-gradient(circle at 12% 14%, #c2d2e5 0 clamp(.65px, .1cqw, 1.4px), transparent clamp(1px, .15cqw, 2px)),
        radial-gradient(circle at 53% 49%, #8399b3 0 clamp(.6px, .09cqw, 1.25px), transparent clamp(1px, .14cqw, 1.8px));
      background-size:
        clamp(187px, 30cqw, 480px) clamp(211px, 34cqw, 544px),
        clamp(251px, 40cqw, 640px) clamp(239px, 38cqw, 608px);
    }
    html body #app .ap-root .ap-wordmark { gap: clamp(12px, 1.9cqw, 20px); }
    html body #app .ap-root .ap-symbol { width: clamp(38px, 5.4cqw, 76px); height: clamp(38px, 5.4cqw, 76px); font-size: clamp(1px, .142105cqw, 2px); }
    html body #app .ap-root .ap-brandname { font-size: clamp(17px, 2.7cqw, 34px); }
    html body #app .ap-root .ap-brandtag { font-size: clamp(9px, 1.4cqw, 16px); }
    html body #app .ap-root .ap-homelink { gap: clamp(7px, 1.1cqw, 12px); font-size: clamp(12px, 1.9cqw, 18px); }
    html body #app .ap-root .ap-homelink svg { width: clamp(14px, 2.2cqw, 22px); height: clamp(14px, 2.2cqw, 22px); }
    html body #app .ap-root .ap-story { margin-top: clamp(40px, 7cqw, 92px); }
    html body #app .ap-root .ap-eyebrow { margin-bottom: clamp(19px, 3cqw, 30px); font-size: clamp(10px, 1.6cqw, 16px); }
    html body #app .ap-root .ap-headline { font-size: clamp(32px, 7cqw, 112px); line-height: 1.3; }
    html body #app .ap-root .ap-description { max-width: 36em; margin-top: clamp(18px, 2.8cqw, 32px); font-size: clamp(14px, 2.15cqw, 26px); }
    html body #app .ap-root .ap-orbit { container-type: size; max-width: 1280px; min-height: 270px; margin: clamp(8px, 1.3cqw, 18px) auto; flex-basis: clamp(270px, 36cqw, 600px); }
    /* The SVG uses a 460x298 viewBox. Scale the 160px planet by whichever
     * dimension limits the SVG, so the planet and rings never drift apart. */
    html body #app .ap-root .ap-planet { width: min(34.7826cqw, 53.6913cqh); height: min(34.7826cqw, 53.6913cqh); top: calc(50% + min(.652174cqw, 1.006711cqh)); }
    html body #app .ap-root .ap-orbit-label { bottom: clamp(12px, 2cqw, 24px); font-size: clamp(9px, 1.4cqw, 16px); }
    html body #app .ap-root .ap-visual-footer { gap: clamp(10px, 1.6cqw, 18px); padding-top: clamp(23px, 3.5cqw, 36px); font-size: clamp(11px, 1.75cqw, 20px); }
    html body #app .ap-root .ap-footer-dot { width: clamp(5px, .8cqw, 8px); height: clamp(5px, .8cqw, 8px); flex-shrink: 0; }
  }
  /* On short ultrawide windows, leave room for the form and artwork instead
   * of letting width-based typography force the whole page taller. */
  @media (min-width: 1051px) and (max-height: 900px) {
    html body #app .ap-root .ap-visual { padding-block: 28px; }
    html body #app .ap-root .ap-story { margin-top: 32px; }
    html body #app .ap-root .ap-headline { font-size: clamp(32px, min(7cqw, 6.5vh), 112px); }
    html body #app .ap-root .ap-description { font-size: clamp(14px, min(2.15cqw, 2vh), 26px); }
    html body #app .ap-root .ap-orbit { flex-basis: 270px; min-height: 220px; }
  }
  @media (min-width: 781px) and (max-height: 900px) {
    html body #app .ap-root .ap-panel { padding-block: 28px; }
    html body #app .ap-root .ap-native-brand {
      grid-template-columns: clamp(44px, min(3vw, 6.5vh), 60px) minmax(0, 1fr);
      gap: 3px clamp(13px, 1vw, 24px);
      margin-bottom: 26px !important;
    }
    html body #app .ap-root .ap-native-brand > div {
      width: clamp(44px, min(3vw, 6.5vh), 60px) !important;
      height: clamp(44px, min(3vw, 6.5vh), 60px) !important;
    }
    html body #app .ap-root .ap-card > div > .text-center:first-child { margin-bottom: 24px; }
    html body #app .ap-root .ap-card h2 { font-size: clamp(30px, min(2.3vw, 4.5vh), 40px) !important; }
    html body #app .ap-root form.space-y-5 > * + * { margin-top: 20px; }
    html body #app .ap-root .input,
    html body #app .ap-root .btn.btn-primary { min-height: clamp(50px, min(3vw, 6vh), 56px) !important; }
    html body #app .ap-root .btn.btn-primary { margin-top: 26px !important; }
    html body #app .ap-root .ap-switch { margin-top: 24px !important; padding-top: 18px; }
    html body #app .ap-root .ap-copyright { margin-top: 20px !important; }
  }
}
@media (min-width: 1600px) {
  html body #app .ap-root { padding: 32px !important; }
}
@media (max-width: 1050px) and (min-width: 781px) {
  html body #app .ap-root { grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); padding: 16px !important; }
  html body #app .ap-root .ap-visual { padding: 28px; }
  html body #app .ap-root .ap-panel { padding: 34px; }
  html body #app .ap-root .ap-headline { font-size: 32px; }
  html body #app .ap-root .ap-brandtag { font-size: 8px; }
}
@media (max-width: 780px) {
  html body #app .ap-root { display: flex !important; flex-direction: column; align-items: center !important; justify-content: center !important; gap: 0; padding: 20px 24px !important; }
  html body #app .ap-root .ap-visual { position: static; flex: 0 0 auto; width: 100%; max-width: 400px; min-height: 0; padding: 0; overflow: visible; border: 0; border-radius: 0; background: none; }
  html body #app .ap-root .ap-visual::before,
  html body #app .ap-root .ap-wordmark,
  html body #app .ap-root .ap-story,
  html body #app .ap-root .ap-orbit,
  html body #app .ap-root .ap-visual-footer { display: none; }
  html body #app .ap-root .ap-topline { justify-content: flex-start; }
  html body #app .ap-root .ap-homelink { color: var(--ap-muted) !important; min-height: 40px; font-size: 12px; }
  html body #app .ap-root .ap-homelink:hover { color: var(--ap-accent) !important; }
  html body #app .ap-root .ap-visual a:focus-visible { outline-color: var(--ap-accent) !important; }
  html body #app .ap-root .ap-panel { width: 100%; max-width: 400px !important; padding: 26px 0 20px; }
  html body #app .ap-root .ap-native-brand { margin-bottom: 32px !important; }
  html body #app .ap-root .ap-card h2 { font-size: 28px !important; }
  html body #app .ap-root .ap-card > div > .text-center:first-child { margin-bottom: 26px; }
  html body #app .ap-root .input { min-height: 52px !important; font-size: 16px !important; }
  html body #app .ap-root .btn.btn-primary { min-height: 52px !important; }
  html body #app .ap-root .ap-switch { margin-top: 25px !important; padding-top: 19px; }
  html body #app .ap-root .ap-copyright { margin-top: 23px !important; }
}
@media (max-width: 359px) {
  html body #app .ap-root { padding-inline: 18px !important; }
  html body #app .ap-root .ap-native-brand > p { font-size: 9px !important; }
  html body #app .ap-root .ap-card h2 { font-size: 26px !important; }
}
@media (prefers-reduced-motion: reduce) {
  html body #app .ap-root *,
  html body #app .ap-root *::before,
  html body #app .ap-root *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  html body #app .ap-root .input,
  html body #app .ap-root .btn,
  html body #app .ap-root a:focus-visible { border: 1px solid ButtonText !important; }
}
