/* Public account screens share the landing page's logo and theme control. */
:root {
  scrollbar-gutter: stable;
}
.anonymous-home,
.account-entry {
  background:
    radial-gradient(
      ellipse at 50% 42%,
      color-mix(in srgb, var(--accent) 5%, transparent),
      transparent 58%
    ),
    var(--bg);
}
.anonymous-home .app-shell,
.account-entry .app-shell,
.public-support .app-shell {
  margin-left: 0;
}
.anonymous-home .app-shell,
.account-entry .app-shell {
  min-height: 100vh;
  min-height: 100svh;
}
.public-support #main {
  padding-bottom: calc(100px + env(safe-area-inset-bottom));
}
.anonymous-home #main,
.account-entry #main {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 4vh, 48px) 24px;
}
.welcome-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 5vh, 56px);
  width: 100%;
  margin-block: auto;
  text-align: center;
}
.brand.welcome-brand {
  --logo-size: clamp(25px, 5.6vw, 56px);
  gap: calc(var(--logo-size) * 0.65);
  padding: 0;
  margin: 0;
  font: 650 var(--logo-size) / 1.55 var(--font);
  letter-spacing: 0.13em;
  text-align: left;
  white-space: nowrap;
}
.welcome-brand .brand-mark {
  font-size: calc(var(--logo-size) * 2);
  letter-spacing: calc(var(--logo-size) * -0.2);
}
.welcome-brand .brand-slashes {
  padding-left: calc(var(--logo-size) * 0.2);
}
.welcome-brand .brand-tagline {
  font-size: calc(var(--logo-size) * 0.4667);
  margin-top: calc(var(--logo-size) / 3);
  transform: translateY(calc(var(--logo-size) * -0.4));
}
.welcome-account .auth-card {
  width: 100%;
  max-width: 360px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
}
.welcome-account .auth-card h1 {
  font-size: 26px;
  text-align: center;
}
.welcome-account .auth-card .intro {
  text-align: center;
}
.welcome-account .auth-links {
  flex-wrap: wrap;
}
.welcome-account .auth-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-underline-offset: 4px;
}
.welcome-account .auth-links a:hover {
  text-decoration: underline;
}
.welcome-account .auth-card > .eyebrow {
  text-align: center;
}
.welcome-account .auth-card.account-status,
.account-return-hint {
  text-align: center;
}
.account-status .auth-links {
  justify-content: center;
}
.registration-consent {
  align-items: start;
  gap: 8px;
  font-size: 12px;
  font-weight: 400;
}
.registration-consent input {
  flex: none;
  margin: 2px 0 0;
}
.registration-consent a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.registration-code {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  margin: 12px 0;
}
.registration-code input {
  width: 100%;
  min-width: 0;
  padding-inline: 0;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.registration-code-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block: 16px;
}
.registration-code-end-actions {
  display: flex;
  gap: 8px;
  margin-inline-start: auto;
}
#registration-address {
  overflow-wrap: anywhere;
}
#registration-complete {
  text-align: center;
}
#register-title[tabindex="-1"]:focus {
  outline: none;
}
#registration-continue {
  margin-block-start: 8px;
}
#registration-policy {
  max-height: 85vh;
  max-height: 85dvh;
  padding: 0;
  overflow: hidden;
}
#registration-policy[open],
#registration-policy[role="region"] {
  display: flex;
  flex-direction: column;
}
#registration-policy[role="region"] {
  position: static;
  margin: 16px auto 0;
}
.registration-policy-heading {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.registration-policy-heading h2 {
  margin: 0;
}
.registration-policy-heading .button {
  flex: none;
  min-height: 44px;
}
.registration-policy-content {
  min-height: 0;
  padding: 16px;
  overflow: auto;
  overscroll-behavior: contain;
  overflow-wrap: break-word;
  text-align: left;
}
.ignition-login {
  display: grid;
  width: clamp(154px, 18vw, 184px);
  aspect-ratio: 1;
  flex-shrink: 0;
  padding: 9px;
  border: 1px solid #161a1e;
  border-radius: 50%;
  background: conic-gradient(
    from 135deg,
    #555c63,
    #d1d5d8 45deg,
    #6a7177 95deg,
    #30363c 160deg,
    #a9afb4 220deg,
    #555c63 280deg,
    #555c63
  );
  box-shadow:
    0 16px 36px #0005,
    0 1px 0 #ffffff40 inset,
    0 0 0 5px var(--surface),
    0 0 0 6px var(--line);
  outline-offset: 10px;
  -webkit-tap-highlight-color: transparent;
}
.ignition-face {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid #090c0f;
  border-radius: 50%;
  color: #f2f3ee;
  background: radial-gradient(
    ellipse at 38% 22%,
    #343a40,
    #15191d 65%,
    #0c0e10
  );
  box-shadow:
    0 2px 3px #ffffff1c inset,
    0 -4px 6px #000b inset;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease;
}
.ignition-indicator {
  position: absolute;
  top: 22px;
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
  box-shadow: 0 0 12px #ffa50080;
}
.ignition-face svg {
  width: 30px;
  height: 30px;
  margin-top: 10px;
  stroke: var(--accent);
  stroke-width: 1.5;
}
.ignition-label {
  font: 650 15px/1 var(--font);
  letter-spacing: 0.16em;
  padding-left: 0.16em;
  text-shadow: 0 1px 2px #000;
}
.ignition-login:hover .ignition-face,
.ignition-login:focus-visible .ignition-face {
  box-shadow:
    0 2px 3px #ffffff26 inset,
    0 0 22px #ffa50018 inset;
}
.ignition-login:active .ignition-face {
  transform: scale(0.98);
  box-shadow: 0 3px 12px #000b inset;
}
.welcome-register {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
}
.welcome-register a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-underline-offset: 5px;
}
.welcome-register a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.landing-theme-control {
  position: fixed;
  left: max(20px, env(safe-area-inset-left));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 10;
}
.landing-theme-control .theme-toggle {
  width: auto;
  min-height: 44px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 10px 14px;
  background: var(--surface);
}
@media (max-width: 600px) {
  .anonymous-home #main,
  .account-entry #main {
    padding-inline: 20px;
  }
  .anonymous-home:not(.embedded) #main,
  .account-entry:not(.embedded) #main {
    padding-bottom: calc(82px + env(safe-area-inset-bottom));
  }
}
