/* Continuation of the approved gate. The shared scene and logo never remount. */
.efg-screen[data-auth] [hidden] { display: none !important; }
.efg-screen[data-auth] .efg-content { padding-bottom: 87px; }
.efg-screen[data-auth] .efg-form { min-height: 285px; display: flex; flex-direction: column; position: relative; }
.efg-screen[data-auth] .efg-form__enter { margin-top: auto; }
.efg-screen[data-auth] .efg-form__message { position: absolute; top: 100%; left: 0; right: 0; }
.efg-screen[data-auth] .efg-form__input { min-width: 0; }
.efg-screen .efa-form { animation: none; }
.efg-screen .efa-note { margin: -10px 0 22px; color: var(--efg-muted); font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.efg-screen .efa-code { position: relative; height: 54px; }
.efg-screen .efa-code__input {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%;
  margin: 0; padding: 0; border: 0; background: transparent;
  color: transparent; caret-color: transparent; font: 400 18px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.efg-screen .efa-code__cells { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 8px; height: 100%; }
.efg-screen .efa-code__cells span {
  display: grid; place-items: center; border: 1px solid var(--efg-line); border-radius: 9px;
  color: var(--efg-ink); background: light-dark(#ffffff24,#ffffff05);
  font: 400 23px/1.3 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-variant-numeric: tabular-nums; transition: border-color 220ms, background 220ms, box-shadow 220ms;
}
.efg-screen .efa-code:focus-within [data-current="true"] { border-color: var(--efg-focus); box-shadow: 0 0 0 1px var(--efg-focus); }
.efg-screen .efa-code__actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.efg-screen .efa-text-button { padding: 8px 0; min-height: 44px; border: 0; background: transparent; color: var(--efg-muted); font: 400 12px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans SC",sans-serif; }
.efg-screen .efa-text-button:disabled { opacity: .55; }
.efg-screen [aria-invalid="true"] { border-color: var(--efg-error); }
.efg-screen .efa-code:has([aria-invalid="true"]) .efa-code__cells span { border-color: var(--efg-error); }
.efg-screen[data-state="verified"] .efa-code__cells span { border-color: var(--efg-focus); background: light-dark(#e8dfc947,#e8dfc918); box-shadow: 0 0 18px light-dark(#c4b38a1a,#e4d9b71a); }
.efg-screen[data-auth][data-state="leaving"] .efg-content { animation-duration: 220ms; }
.efg-screen[data-auth][data-state="returning"] .efg-content { animation-duration: 220ms; }
.efg-screen[data-hidden="true"] .efg-scene__architecture,
.efg-screen[data-hidden="true"] .efg-scene__light { animation-play-state: paused; }
.efg-screen[data-auth] .efg-scene__wash { transition: transform 900ms var(--efg-ease); }
.efg-screen[data-step="email"] .efg-scene__wash { transform: translateX(-5%); }
.efg-screen[data-step="code"] .efg-scene__wash { transform: translateX(-10%); }
@media (max-width:360px) { .efg-screen .efa-code__cells { gap: 6px; } }
