.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.auth-locked { overflow: hidden; }

.auth-gate {
  position: fixed;
  z-index: 200;
  inset: 0;
  width: 100%;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  background: #07101c;
  color: #fff;
  box-shadow: 0 0 80px rgba(0, 0, 0, .58);
  isolation: isolate;
}

.auth-gate[hidden] { display: none !important; }

.auth-background-picture {
  position: fixed;
  z-index: -3;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.auth-background-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  transition: opacity 1.15s cubic-bezier(.4, 0, .2, 1);
}

.auth-background-slide.is-active {
  z-index: 1;
  opacity: 1;
}

.auth-background {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  max-width: none;
  display: block;
  object-fit: cover;
  object-position: var(--auth-focus-mobile, 50% 16%);
  transform-origin: 50% 42%;
}

.auth-background-slide.is-active .auth-background {
  will-change: transform;
  animation: auth-camera-drift-mobile 28s cubic-bezier(.45, 0, .55, 1) infinite alternate;
}

.auth-background-selector {
  position: fixed;
  z-index: 0;
  top: calc(82px + env(safe-area-inset-top, 0px));
  left: 50%;
  min-height: 34px;
  padding: 0 7px;
  display: flex;
  align-items: center;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(3, 9, 16, .3);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .14);
  backdrop-filter: blur(12px);
}

.auth-background-selector button {
  position: relative;
  width: 30px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
}

.auth-background-selector button::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  content: '';
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, .5);
  transition: width .24s ease, background-color .24s ease, box-shadow .24s ease;
}

.auth-background-selector button.is-active::before {
  width: 20px;
  background: #fff;
  box-shadow: 0 0 14px rgba(83, 166, 255, .65);
}

.auth-background-selector button:focus-visible {
  outline: 2px solid #70b7ff;
  outline-offset: -3px;
  border-radius: 999px;
}

@media (max-width: 599px) {
  .auth-background-landscape .auth-background {
    top: -28%;
    height: 132%;
  }
}

.auth-camera-vignette {
  position: fixed;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100dvh;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 52% 25%, transparent 28%, rgba(3, 8, 14, .08) 72%, rgba(2, 5, 10, .34) 100%),
    linear-gradient(110deg, rgba(255,255,255,.055), transparent 24%, transparent 74%, rgba(7,16,26,.16));
  opacity: .85;
}

.auth-background-shade {
  position: fixed;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100dvh;
  background:
    linear-gradient(180deg, rgba(3, 10, 18, .02) 0%, rgba(3, 10, 18, .08) 31%, rgba(3, 9, 17, .42) 51%, rgba(2, 6, 12, .92) 72%, #02050a 100%),
    linear-gradient(90deg, rgba(0, 0, 0, .08), transparent 55%);
}

.auth-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  min-height: 100dvh;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
}

.auth-topbar {
  min-height: 78px;
  padding: calc(18px + env(safe-area-inset-top, 0px)) 20px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-secure {
  min-height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  background: rgba(4, 10, 17, .34);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
  backdrop-filter: blur(14px);
  font-size: 13px;
}

.auth-secure svg { width: 18px; height: 18px; color: #8dc6ff; }
.auth-secure b { font-weight: 750; }

.auth-language select {
  min-height: 40px;
  max-width: 154px;
  padding: 0 34px 0 12px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  outline: 0;
  appearance: auto;
  background: rgba(4, 10, 17, .42);
  color: #fff;
  backdrop-filter: blur(14px);
  font-size: 14px;
  font-weight: 700;
}

.auth-panel {
  width: 100%;
  margin-top: auto;
  padding: 20px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, .14);
  border-radius: 30px 30px 0 0;
  background: linear-gradient(180deg, rgba(8, 14, 23, .62), rgba(3, 7, 13, .96) 32%, #02050a 100%);
  box-shadow: 0 -24px 70px rgba(0, 0, 0, .2);
  backdrop-filter: blur(20px) saturate(118%);
}

.auth-view:not(.is-active) { display: none; }

/* Select the safe startup view before the deferred authentication module loads,
   preventing the provider buttons from flashing after an OAuth return. */
html[data-auth-startup="handoff"] [data-auth-view="signin"],
html[data-auth-startup="quick-unlock"] [data-auth-view="signin"] { display: none; }
html[data-auth-startup="handoff"] [data-auth-view="handoff"][hidden],
html[data-auth-startup="quick-unlock"] [data-auth-view="quick-unlock"][hidden] { display: block; }

.auth-brand { display: flex; align-items: center; gap: 12px; }
.auth-brand > img { width: 54px; height: 54px; border-radius: 15px; box-shadow: 0 12px 30px rgba(0, 0, 0, .28); }
.auth-brand h1 { margin: 0; font-size: 27px; line-height: 1; letter-spacing: -.035em; }
.auth-brand h1 span { color: rgba(255, 255, 255, .65); font-weight: 550; }
.auth-brand p { margin: 7px 0 0; color: rgba(255, 255, 255, .68); font-size: 14px; }
.auth-copy-block { margin: 17px 1px 14px; }
.auth-copy-block h2 { margin: 0; font-size: 21px; letter-spacing: -.02em; }
.auth-copy-block p { margin: 5px 0 0; color: rgba(255, 255, 255, .66); font-size: 14px; line-height: 1.45; }

.auth-config-note {
  margin: 0 0 12px;
  padding: 11px 12px;
  display: grid;
  gap: 2px;
  border: 1px solid rgba(255, 181, 61, .28);
  border-radius: 13px;
  background: rgba(255, 159, 10, .11);
  color: #ffd797;
  font-size: 13px;
}
.auth-config-note strong { color: #ffe7bd; }
.auth-config-note span { color: rgba(255, 231, 189, .72); }

.auth-provider-list { display: grid; gap: 8px; }
.auth-provider {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  display: grid;
  grid-template-columns: 26px 1fr 18px;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 15px;
  font-size: 15px;
  font-weight: 750;
  text-align: left;
  transition: transform .16s ease, filter .16s ease, opacity .16s ease;
}
.auth-provider:active { transform: scale(.985); filter: brightness(.9); }
.auth-provider:disabled { opacity: .48; }
.auth-provider[hidden], .auth-more[hidden] { display: none; }
.auth-provider img { width: 24px; height: 24px; display: block; object-fit: contain; }
.auth-provider i { font-style: normal; font-size: 24px; line-height: 1; text-align: right; opacity: .5; }
.auth-google { background: #fff; color: #1f1f1f; border-color: rgba(0, 0, 0, .12); }
.auth-facebook { background: #0866ff; color: #fff; border-color: #2b7cff; }
.auth-line { background: #06c755; color: #fff; border-color: #06c755; }
.auth-line img { width: 25px; height: 25px; }
.auth-telegram { background: #229ed9; color: #fff; border-color: #229ed9; }
.auth-whatsapp { background: #128c5a; color: #fff; border-color: #1bac6e; }
.auth-dropbox { background: #0061ff; color: #fff; border-color: #2378ff; }
.auth-yahoo { background: #6001d2; color: #fff; border-color: #7d2be6; }

.auth-provider-note {
  margin: 9px 4px 0;
  color: rgba(255, 255, 255, .58);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.auth-more { margin-top: 7px; }
.auth-more summary {
  min-height: 42px;
  display: grid;
  place-items: center;
  list-style: none;
  color: #87c4ff;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}
.auth-more summary::-webkit-details-marker { display: none; }
.auth-provider-list-secondary { padding-top: 1px; }

.auth-message {
  margin: 9px 0 0;
  padding: 9px 11px;
  border-radius: 11px;
  background: rgba(255, 69, 58, .13);
  color: #ffaaa4;
  font-size: 13px;
  text-align: center;
}
.auth-message[data-kind="success"] { background: rgba(48, 209, 88, .14); color: #8ee7a5; }

.auth-local-preview {
  width: 100%;
  min-height: 44px;
  margin-top: 9px;
  border: 1px dashed rgba(255, 255, 255, .25);
  border-radius: 13px;
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
  font-weight: 720;
}
.auth-terms { margin: 11px 4px 0; color: rgba(255, 255, 255, .42); font-size: 11px; text-align: center; }

.auth-status-view { min-height: 58dvh; text-align: center; }
.auth-status-icon {
  width: 76px;
  height: 76px;
  margin: 28px auto 18px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(78, 167, 255, .44);
  border-radius: 50%;
  background: rgba(22, 131, 255, .15);
  color: #75baff;
  box-shadow: 0 0 55px rgba(22, 131, 255, .22);
  font-size: 29px;
  font-weight: 850;
}
.auth-status-icon svg { width: 30px; height: 30px; }
.auth-status-icon.rejected { border-color: rgba(255, 69, 58, .4); background: rgba(255, 69, 58, .13); color: #ff7b74; box-shadow: 0 0 55px rgba(255, 69, 58, .15); }
.auth-status-icon.device { border-color: rgba(37, 139, 255, .48); background: rgba(22, 131, 255, .18); color: #84c5ff; }
.auth-status-icon.biometric { border-color: rgba(66, 170, 255, .56); background: linear-gradient(145deg, rgba(22, 131, 255, .25), rgba(44, 76, 255, .12)); color: #9bd0ff; box-shadow: 0 0 65px rgba(22, 131, 255, .27); }
.auth-status-icon.handoff { position: relative; border-color: rgba(66, 170, 255, .5); background: rgba(22, 131, 255, .17); color: #91caff; }
.auth-status-icon.registration { width: 58px; height: 58px; margin-bottom: 14px; border-color: rgba(66, 170, 255, .48); background: rgba(22, 131, 255, .17); color: #8bc8ff; box-shadow: none; }
.auth-status-view h2 { margin: 0; font-size: 27px; }
.auth-status-view > p { max-width: 320px; margin: 8px auto 20px; color: rgba(255, 255, 255, .66); font-size: 15px; }
.auth-request-card { margin: 0 0 15px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .13); border-radius: 17px; background: rgba(24, 29, 37, .84); text-align: left; }
.auth-request-card > div { min-height: 48px; padding: 9px 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.auth-request-card > div:last-child { border-bottom: 0; }
.auth-request-card span { color: rgba(255, 255, 255, .53); font-size: 13px; }
.auth-request-card strong { max-width: 65%; overflow: hidden; color: #fff; font-size: 14px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.auth-status-button { width: 100%; min-height: 52px; border: 0; border-radius: 15px; background: #1683ff; color: #fff; font-size: 16px; font-weight: 800; }
.auth-status-button:disabled { opacity: .55; }
.auth-text-button { width: 100%; min-height: 46px; border: 0; background: transparent; color: rgba(255, 255, 255, .62); font-size: 14px; font-weight: 700; }

.auth-handoff-view > small { display: block; margin-top: 16px; color: rgba(255,255,255,.48); font-size: 13px; }
.auth-handoff-spinner {
  position: absolute;
  inset: -7px;
  border: 2px solid transparent;
  border-top-color: #55aaff;
  border-right-color: rgba(85, 170, 255, .34);
  border-radius: 50%;
  animation: auth-handoff-spin 1.05s linear infinite;
}
.auth-handoff-progress {
  width: min(240px, 72%);
  height: 4px;
  margin: 2px auto 0;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255,255,255,.1);
}
.auth-handoff-progress span {
  width: 42%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #1683ff, #72beff);
  animation: auth-handoff-progress 1.35s ease-in-out infinite;
}

.auth-registration-view { padding-top: 18px; }
.auth-registration-view > h2 { margin: 0; font-size: 25px; }
.auth-registration-view > p { margin: 6px 0 14px; color: rgba(255,255,255,.66); font-size: 14px; line-height: 1.45; }
.registration-research-notice {
  margin: 0 0 14px;
  padding: 12px 13px;
  display: grid;
  gap: 5px;
  border: 1px solid rgba(54, 154, 255, .28);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(22, 131, 255, .16), rgba(15, 55, 99, .09));
}
.registration-research-notice strong { color: #78baff; font-size: 13px; letter-spacing: .04em; }
.registration-research-notice span { color: rgba(255, 255, 255, .7); font-size: 13px; line-height: 1.5; }
.registration-account {
  margin-bottom: 14px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background: rgba(23,28,36,.82);
}
.registration-account > span:last-child { min-width: 0; display: grid; gap: 2px; }
.registration-account strong, .registration-account small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.registration-account strong { font-size: 15px; }
.registration-account small { color: rgba(255,255,255,.55); font-size: 13px; }
.auth-registration-form { display: grid; gap: 11px; }
.auth-registration-form label { display: grid; gap: 6px; color: rgba(255,255,255,.72); font-size: 14px; font-weight: 720; }
.auth-registration-form .registration-field-note { color: rgba(255,255,255,.48); font-size: 12px; font-weight: 550; line-height: 1.45; }
.auth-registration-form input, .auth-registration-form select, .auth-registration-form textarea {
  width: 100%;
  min-height: 49px;
  padding: 11px 13px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 13px;
  outline: 0;
  background: rgba(31,37,47,.95);
  color: #fff;
  font-size: 16px;
}
.auth-registration-form textarea { min-height: 72px; resize: vertical; line-height: 1.45; }
.auth-registration-form input:focus, .auth-registration-form select:focus, .auth-registration-form textarea:focus { border-color: #2f94ff; box-shadow: 0 0 0 3px rgba(22,131,255,.14); }
.auth-registration-form input.is-provider-verified[readonly] { border-color: rgba(48, 209, 88, .28); background: rgba(25, 70, 45, .32); color: #d9ffe5; }
.registration-legal {
  padding: 14px;
  display: grid;
  gap: 11px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  background: rgba(19, 24, 32, .88);
}
.registration-legal > div { display: grid; gap: 3px; }
.registration-legal > div strong { color: #fff; font-size: 15px; }
.registration-legal > div small,
.registration-legal > p { margin: 0; color: rgba(255, 255, 255, .53); font-size: 12px; font-weight: 550; line-height: 1.5; }
.auth-registration-form .registration-consent {
  min-height: 44px;
  padding: 10px;
  display: grid;
  grid-template-columns: 23px 1fr;
  gap: 10px;
  align-items: start;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 13px;
  background: rgba(255, 255, 255, .035);
  color: rgba(255, 255, 255, .8);
  line-height: 1.45;
}
.auth-registration-form .registration-consent input[type="checkbox"] {
  width: 22px;
  height: 22px;
  min-height: 22px;
  margin: 0;
  padding: 0;
  accent-color: #1683ff;
}
.registration-consent a { color: #78baff; text-decoration: underline; text-underline-offset: 3px; }
.registration-grid { display: grid; grid-template-columns: minmax(100px,.72fr) minmax(0,1.28fr); gap: 9px; }
.auth-registration-form .auth-message { margin: 0; }
.auth-registration-form .auth-status-button:disabled { opacity: .55; }
.biometric-button { display: flex; align-items: center; justify-content: center; gap: 9px; }
.biometric-button svg { width: 24px; height: 24px; }
.quick-unlock-account {
  margin: 0 0 17px;
  padding: 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 17px;
  background: rgba(24,29,37,.84);
  text-align: left;
}
.quick-unlock-account > span:last-child { min-width: 0; display: grid; gap: 2px; }
.quick-unlock-account strong, .quick-unlock-account small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick-unlock-account strong { font-size: 16px; }
.quick-unlock-account small { color: rgba(255,255,255,.55); font-size: 13px; }

.auth-otp-sheet {
  position: fixed;
  z-index: 220;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100%, 430px);
  padding: 24px 20px calc(25px + env(safe-area-inset-bottom, 0px));
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 28px 28px 0 0;
  background: #171a20;
  box-shadow: 0 -28px 90px rgba(0, 0, 0, .62);
}
.auth-otp-sheet > img { width: 50px; height: 50px; display: block; margin: 0 auto 10px; }
.auth-otp-sheet h2 { margin: 0; text-align: center; font-size: 23px; }
.auth-otp-sheet > p { margin: 6px 0 18px; color: #9b9ca3; font-size: 14px; text-align: center; }
.auth-otp-sheet label { margin: 11px 0; display: grid; gap: 6px; color: #b6b7bc; font-size: 13px; font-weight: 700; }
.auth-otp-sheet input { width: 100%; height: 52px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; outline: 0; background: #292d35; color: #fff; font-size: 17px; }
.auth-otp-sheet input:focus { border-color: #42a270; box-shadow: 0 0 0 3px rgba(37, 211, 102, .12); }
.auth-otp-close { position: absolute; top: 13px; right: 16px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #2d3037; color: #fff; font-size: 25px; }

.account-settings-row .value svg { width: 19px; height: 19px; }
.account-avatar { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; border-radius: 12px; background: linear-gradient(145deg, #238cff, #5aaaff); color: #fff; font-size: 17px; font-weight: 850; }
.account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-avatar.large { width: 58px; height: 58px; border-radius: 17px; font-size: 23px; }
.account-sheet-profile { margin: 4px 0 16px; display: flex; align-items: center; gap: 13px; }
.account-sheet-profile > div { min-width: 0; display: grid; gap: 2px; }
.account-sheet-profile strong { overflow: hidden; font-size: 18px; text-overflow: ellipsis; white-space: nowrap; }
.account-sheet-profile small { overflow: hidden; color: var(--muted); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.account-sheet { overscroll-behavior: contain; }
.account-profile-section {
  margin: 17px 0 12px;
  padding: 15px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(27,30,36,.96), rgba(16,18,23,.98));
}
.account-profile-form { display: grid; gap: 12px; }
.account-profile-form label { display: grid; gap: 6px; color: #a7abb4; font-size: 13px; font-weight: 720; }
.account-profile-form input,
.account-profile-form select {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 13px;
  outline: 0;
  background: #252830;
  color: #fff;
  font: inherit;
}
.account-profile-form input:focus,
.account-profile-form select:focus { border-color: #278bff; box-shadow: 0 0 0 3px rgba(39,139,255,.12); }
.account-profile-form .button { margin-top: 2px; }
.account-profile-message { margin: 0; color: #a9adb6; font-size: 13px; line-height: 1.45; }
.account-profile-message[data-kind="success"] { color: #77dc91; }
.account-profile-message[data-kind="error"] { color: #ff8b8b; }
.identity-section {
  margin: 17px 0 12px;
  padding: 15px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(27,30,36,.96), rgba(16,18,23,.98));
}
.identity-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.identity-section-heading h3 { margin: 2px 0 0; font-size: 19px; }
.identity-section-heading .eyebrow { font-size: 10px; letter-spacing: .14em; }
.identity-section-note { margin: 7px 0 13px; color: #8f939c; font-size: 13px; line-height: 1.45; }
.identity-provider-list { display: grid; gap: 9px; }
.identity-provider-card {
  min-width: 0;
  padding: 12px;
  display: grid;
  grid-template-columns: 42px minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px;
  background: rgba(8,10,14,.7);
}
.identity-provider-card > img { width: 38px; height: 38px; padding: 8px; border-radius: 12px; background: #fff; object-fit: contain; }
.identity-provider-card > span { min-width: 0; display: grid; gap: 2px; }
.identity-provider-card > span strong { font-size: 15px; }
.identity-provider-card > span small { overflow: hidden; color: #898e97; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.identity-provider-card > b { padding: 5px 8px; border-radius: 999px; background: rgba(255,255,255,.08); color: #969aa2; font-size: 11px; white-space: nowrap; }
.identity-provider-card.is-linked { border-color: rgba(22,131,255,.28); background: linear-gradient(135deg, rgba(22,131,255,.12), rgba(8,10,14,.78)); }
.identity-provider-card.is-linked > b { background: rgba(48,209,88,.13); color: #79dd95; }
.auth-linked-hint { margin-top: 10px; padding: 12px; border: 1px solid rgba(22,131,255,.23); border-radius: 14px; background: rgba(22,131,255,.09); }
.auth-linked-hint > strong { display: block; color: #dcecff; font-size: 13px; }
.auth-linked-hint > span { display: block; margin-top: 3px; color: #8fa8c3; font-size: 12px; line-height: 1.45; }
.auth-linked-hint > div { margin-top: 9px; display: flex; flex-wrap: wrap; gap: 7px; }
.auth-linked-method { min-width: 0; padding: 6px 9px 6px 7px; display: flex; align-items: center; gap: 7px; border-radius: 999px; background: rgba(255,255,255,.08); color: #eef5ff; font-size: 12px; }
.auth-linked-method img { width: 20px; height: 20px; padding: 3px; border-radius: 7px; background: #fff; }
.auth-linked-method small { overflow: hidden; max-width: 150px; color: #9ba6b4; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.device-status-view .auth-message { margin-bottom: 12px; }
.device-request-card strong { font-variant-numeric: tabular-nums; }
.account-device-card {
  min-height: 74px;
  margin: 15px 0 10px;
  padding: 12px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(39, 139, 255, .24);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(24, 125, 241, .14), rgba(25, 28, 34, .94));
}
.account-device-card > span:nth-child(2) { min-width: 0; display: grid; gap: 2px; }
.account-device-card small, .account-device-card em { color: #8d929b; font-size: 12px; font-style: normal; }
.account-device-card strong { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.account-device-card b { padding: 5px 8px; border-radius: 999px; background: rgba(48, 209, 88, .14); color: #78dc93; font-size: 11px; }
.account-device-card b[data-status="local-only"], .account-device-card b[data-status="conflict"], .account-device-card b[data-status="credential-missing"] { background: rgba(22,131,255,.14); color: #84c5ff; }
.account-device-card b[data-status="pending"] { background: rgba(255,159,10,.14); color: #ffc166; }
.device-release-button { margin-bottom: 9px; border: 1px solid rgba(255, 159, 10, .25); background: rgba(255, 159, 10, .09); color: #ffc66e; }
.device-action-button { width: 100%; margin-bottom: 9px; border: 1px solid rgba(22,131,255,.28); background: rgba(22,131,255,.12); color: #86c5ff; }

@keyframes auth-camera-drift-mobile {
  0% { transform: translate3d(-1.1%, -.45%, 0) scale(1.015); }
  48% { transform: translate3d(.35%, .1%, 0) scale(1.045); }
  100% { transform: translate3d(1.05%, .65%, 0) scale(1.075); }
}

@keyframes auth-camera-drift-wide {
  0% { transform: translate3d(-.9%, -.4%, 0) scale(1.015); }
  48% { transform: translate3d(.25%, .1%, 0) scale(1.04); }
  100% { transform: translate3d(.9%, .5%, 0) scale(1.065); }
}

@keyframes auth-camera-drift-landscape {
  0% { transform: translate3d(-.8%, -.25%, 0) scale(1.015); }
  50% { transform: translate3d(.1%, .25%, 0) scale(1.04); }
  100% { transform: translate3d(.8%, -.1%, 0) scale(1.06); }
}

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

@keyframes auth-handoff-progress {
  0% { transform: translateX(-115%); }
  50% { transform: translateX(70%); }
  100% { transform: translateX(240%); }
}

@media (max-height: 760px) {
  .auth-topbar { min-height: 64px; padding-top: calc(10px + env(safe-area-inset-top, 0px)); }
  .auth-panel { padding-top: 15px; }
  .auth-brand > img { width: 46px; height: 46px; }
  .auth-copy-block { margin-block: 12px 10px; }
  .auth-provider { min-height: 48px; }
}

@media (min-width: 600px) {
  .auth-gate { box-shadow: none; }
  .auth-shell { width: 100%; max-width: none; }
  .auth-background { object-position: var(--auth-focus-tablet, 50% 22%); }
  .auth-background-slide.is-active .auth-background { animation-name: auth-camera-drift-wide; animation-duration: 32s; }
  .auth-topbar { min-height: 94px; padding-inline: clamp(30px, 5vw, 64px); }
  .auth-panel {
    width: min(640px, calc(100% - 64px));
    margin: auto auto 28px;
    padding: 28px 30px calc(30px + env(safe-area-inset-bottom, 0px));
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(8,14,23,.76), rgba(3,7,13,.96));
    box-shadow: 0 30px 90px rgba(0,0,0,.42);
  }
  .auth-brand > img { width: 62px; height: 62px; border-radius: 18px; }
  .auth-brand h1 { font-size: 32px; }
  .auth-copy-block h2 { font-size: 25px; }
  .auth-provider-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .auth-provider { min-height: 58px; }
  .auth-provider-list-secondary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .auth-provider-list-secondary .auth-provider { grid-template-columns: 26px 1fr; }
  .auth-provider-list-secondary .auth-provider i { display: none; }
  .identity-provider-card { grid-template-columns: 44px minmax(0,1fr) auto; }
  .auth-status-view { min-height: auto; }
  .auth-otp-sheet {
    top: 50%;
    bottom: auto;
    width: min(540px, calc(100% - 56px));
    padding: 30px;
    transform: translate(-50%, -50%);
    border-radius: 28px;
    box-shadow: 0 35px 110px rgba(0,0,0,.72);
  }
}

@media (min-width: 900px) and (orientation: landscape) {
  .auth-background { object-position: var(--auth-focus-desktop, 50% 50%); }
  .auth-background-slide.is-active .auth-background { animation-name: auth-camera-drift-landscape; animation-duration: 34s; }
  .auth-background-selector { top: auto; bottom: 24px; left: 25%; }
  .auth-background-shade {
    background:
      linear-gradient(90deg, rgba(3,8,14,.06) 0%, rgba(3,8,14,.15) 42%, rgba(2,6,12,.86) 72%, #02050a 100%),
      linear-gradient(0deg, rgba(2,6,12,.5), transparent 58%);
  }
  .auth-shell { display: grid; grid-template-rows: auto 1fr; }
  .auth-panel {
    width: min(540px, 45vw);
    max-height: calc(100dvh - 132px);
    margin: 0 clamp(38px, 5vw, 78px) 34px auto;
    align-self: center;
    overflow-y: auto;
  }
  .auth-provider { min-height: 56px; }
}

@media (min-width: 900px) and (max-width: 1199px) and (orientation: landscape) {
  .auth-provider-list,
  .auth-provider-list-secondary { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-background-slide { transition: none; }
  .auth-background { animation: none !important; transform: scale(1.025); will-change: auto; }
}
