.inline-auth-success-state.inline-auth-handoff {
  --auth-panel: #fff;
  --auth-ink: #17243a;
  --auth-muted: #64748b;
  --auth-border: #dce5eb;
  --auth-accent: #237454;
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 400px;
  min-height: 116px;
  box-sizing: border-box;
  margin: 20px auto;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--auth-border);
  border-radius: 16px;
  background: var(--auth-panel);
  color: var(--auth-ink);
  text-align: left;
  box-shadow: 0 8px 28px rgb(15 23 42 / .05);
  font-family: system-ui, -apple-system, sans-serif;
}
.inline-auth-handoff .inline-auth-handoff-icon { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; background: #e9f5ef; color: var(--auth-accent); }
.inline-auth-handoff-icon svg { width: 24px; height: 24px; }
.inline-auth-success-state.inline-auth-handoff h2 { margin: 0; font-size: 18px; font-weight: 650; line-height: 1.3; letter-spacing: -.02em; color: var(--auth-ink); }
.inline-auth-success-state.inline-auth-handoff p { margin: 6px 0 0; font-size: 13px; line-height: 1.5; font-weight: 400; color: var(--auth-muted); }
.inline-auth-handoff-progress { position: absolute; inset: auto 0 0; height: 3px; background: var(--auth-border); overflow: hidden; }
.inline-auth-handoff-progress::after { content: ""; display: block; height: 100%; width: 40%; background: var(--auth-accent); animation: inline-auth-progress 1.4s ease-in-out infinite; }
.inline-auth-handoff:focus { outline: none; }
.protected-page-gate.protected-page-gate--signed-in { padding-top: clamp(32px, 12vh, 140px); }
.protected-page-gate--signed-in > section { padding: 0; border: 0; background: transparent; box-shadow: none; }
.protected-page-gate--signed-in > section > :not(.protected-page-gate-auth) { display: none; }
.protected-page-gate--signed-in .protected-page-gate-auth { padding: 0; margin-top: 0; border: 0; background: transparent; }
.protected-page-gate--signed-in .protected-page-gate-auth-heading { display: none; }
[data-inline-auth-root] #code-input-section[aria-busy="true"] { opacity: .8; }
html[data-theme="dark"] .inline-auth-success-state.inline-auth-handoff { --auth-panel: #18232f; --auth-ink: #edf2f7; --auth-muted: #a6b5c6; --auth-border: #344355; --auth-accent: #8be0bd; background: var(--auth-panel); color: var(--auth-ink); border-color: var(--auth-border); box-shadow: 0 8px 28px rgb(0 0 0 / .15); }
html[data-theme="dark"] .inline-auth-handoff .inline-auth-handoff-icon { background: #203b34; }
@keyframes inline-auth-progress { from { transform: translateX(-110%); } to { transform: translateX(360%); } }
@media (prefers-reduced-motion: reduce) { .inline-auth-handoff-progress::after { animation: none; width: 100%; opacity: .6; } }
@media (max-width: 370px) { .inline-auth-success-state.inline-auth-handoff { gap: 12px; padding: 20px 16px; } }

.registration-code-legacy[hidden] { display: none !important; }
.inline-auth-reload { display: block; min-height: 44px; margin: 4px auto 0; padding: 8px; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
[data-inline-auth-root] .inline-auth-code-help > summary,
[data-inline-auth-root] #reset-link { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 4px 8px; }
.registration-code-entry { position: relative; width: fit-content; max-width: 100%; margin: 12px auto; isolation: isolate; }
.registration-code-entry ui-otp-input-group { display: flex; gap: clamp(4px, 1.5vw, 8px); }
.registration-code-entry ui-otp-input-slot { display: grid; place-items: center; box-sizing: border-box; width: clamp(34px, 9vw, 48px); height: 52px; border: 1px solid var(--public-border-strong, #cbd5e1); border-radius: 10px; background: var(--public-surface, #fff); color: var(--public-text, #17243a); font: 650 22px/1 system-ui, sans-serif; }
.registration-code-entry ui-otp-input-slot[data-active] { border-color: var(--public-accent, #4853b8); box-shadow: 0 0 0 3px var(--public-accent-soft, #eceef9); }
.registration-code-entry[data-invalid] ui-otp-input-slot { border-color: var(--public-danger, #b42318); }
.registration-code-entry[data-disabled] { opacity: .6; }
.registration-code-entry ui-otp-input-control input { cursor: text; }
html[data-theme="dark"] .registration-code-entry ui-otp-input-slot { background: var(--public-surface, #18232f); color: var(--public-text, #edf2f7); border-color: var(--public-border-strong, #526174); }
html[data-theme="dark"] .registration-code-entry ui-otp-input-slot[data-active] { border-color: #adb8ff; box-shadow: 0 0 0 3px #343c60; }
html[data-theme="dark"] .registration-code-entry[data-invalid] ui-otp-input-slot { border-color: #ffb4a9; }
@media (forced-colors: active) { .registration-code-entry ui-otp-input-slot[data-active] { outline: 2px solid Highlight; } }
