.lbDock.lbDockPreview .lbDockAccountActions {
  display: grid;
  justify-items: end;
}
.lbDockAuthControls {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  gap: inherit;
}
.lbDockAuthControls[data-lb-auth-entries][hidden] { display: none; }
/* Keep the account group's footprint but leave its controls out of paint, focus and hit testing. */
.lbDockAuthControls[data-lb-auth-signed][hidden] { visibility: hidden; }
.lbDock.lbDockPreview .lbDockGuestButton {
  min-width: 74px;
  min-height: 44px;
  font-family: inherit;
  white-space: nowrap;
  cursor: pointer;
}
.lbDock.lbDockPreview button[data-lb-auth-avatar]:focus-visible {
  outline: 2px solid #e4bcff;
  outline-offset: 2px;
}
.lbDockAuthBalanceValue { position: relative; }
/* Reserve seven digits at each existing font size, without exposing a placeholder balance. */
.lbDockAuthBalanceValue::before { content: '0,000,000' / ''; visibility: hidden; }
[data-lb-auth-balance] { position: absolute; inset: 0; text-align: end; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lbDock.lbDockPreview button[data-lb-auth-avatar] {
  box-sizing: border-box;
  opacity: 1;
  flex: 0 0 auto;
}
.lbDock.lbDockPreview button[data-lb-auth-avatar]:enabled { cursor: pointer; }
@media (max-width: 760px) {
  .lbDock.lbDockPreview .lbDockGuestButton { min-width: 62px; font-size: 14px; }
}
@media (max-width: 360px) {
  .lbDock.lbDockPreview .lbDockAccountActions .lbDockBalance { gap: 3px; padding-inline: 4px; }
  .lbDock.lbDockPreview .lbDockAccountActions .lbDockBalance > svg { width: 18px; height: 18px; }
  .lbDock.lbDockPreview .lbDockAuthBalanceValue { font-size: 11px; }
}
.lbPreviewAuth {
  box-sizing: border-box;
  width: min(482px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100% - 32px);
  max-height: calc(100dvh - 32px);
  overscroll-behavior: contain;
  overflow: auto;
  margin: auto;
  padding: 0;
  color-scheme: dark;
  color: #f5f5f7;
  background: radial-gradient(ellipse 105% 85% at 49% -10%, #222225 0%, #141415 55%, #101011 100%);
  border: 1px solid #2b2b2e;
  border-radius: 20px;
  box-shadow: 0 24px 76px #0009;
  font: 450 15px/1.45 "Segoe UI Variable", "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}
html:has(.lbPreviewAuth[open]) { overflow: hidden; }
.lbPreviewAuth::backdrop { background: #090a0dbb; }
.lbPreviewAuth *, .lbPreviewAuth *::before { box-sizing: border-box; }
.lbPreviewAuth [hidden] { display: none !important; }
.lbPreviewAuthCard { position: relative; padding: 14px 17px 17px; }
.lbPreviewAuthGrip {
  display: block;
  width: 39px;
  height: 4px;
  margin: 0 auto 12px;
  background: #555b66;
  border-radius: 999px;
}
.lbPreviewAuthHeading {
  padding: 0 42px 14px 0;
  margin: 0 0 17px;
  border-bottom: 1px solid #ffffff12;
}
.lbPreviewAuthBrand {
  color: #a9adb5;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .18em;
}
.lbPreviewAuth h2 { margin: 3px 0 0; font-size: 21px; font-weight: 800; line-height: 1.3; }
.lbPreviewAuth button { font: inherit; cursor: pointer; }
.lbPreviewAuth button:disabled { cursor: wait; }
.lbPreviewAuth button[data-lb-auth-unavailable] { cursor: default; }
.lbPreviewAuth button:focus-visible, .lbPreviewAuth input:focus-visible {
  outline: 2px solid #78b9ff;
  outline-offset: 2px;
}
.lbPreviewAuthClose {
  position: absolute;
  inset: 16px 12px auto auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: #aeb1b9;
}
.lbPreviewAuthClose:hover { color: #fff; background: #ffffff12; }
.lbPreviewAuthSwitch { margin: 0; display: flex; align-items: center; gap: 5px; color: #b2b2b7; font-size: 13px; min-height: 27px; }
.lbPreviewAuth button.lbPreviewAuthLink, .lbPreviewAuthSwitch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 5px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #77b8ff;
  font-size: 13px;
  font-weight: 750;
}
.lbPreviewAuth button.lbPreviewAuthLink:hover, .lbPreviewAuthSwitch button:hover { color: #b5dbff; text-decoration: underline; }
.lbPreviewAuthMethods { display: grid; gap: 11px; }
.lbPreviewAuth button.lbPreviewAuthMethod {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: start;
  width: 100%;
  min-height: 72px;
  padding: 11px 16px;
  border: 1px solid #2b2b2e;
  border-radius: 12px;
  color: #f4f5f8;
  background: linear-gradient(150deg, #202021, #19191a);
  font-weight: 750;
}
.lbPreviewAuth button.lbPreviewAuthMethod:enabled:hover { border-color: #565a64; background: #242427; }
.lbPreviewAuth button.lbPreviewAuthMethod--email {
  color: #f4f7ff;
  border-color: #274674;
  background: linear-gradient(145deg, #1a2639, #171d2b);
}
.lbPreviewAuth button.lbPreviewAuthMethod--email:enabled:hover { border-color: #5089c7; background: #1e3048; }
.lbPreviewAuthIcon {
  display: grid;
  flex: 0 0 43px;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 14px;
}
.lbPreviewAuthIcon svg { width: 21px; height: 21px; }
.lbPreviewAuthIcon--email { color: #65b0ff; background: #20385a; }
.lbPreviewAuthIcon--line { color: #e4fff1; background: #14774c; }
.lbPreviewAuthIcon--google { color: #333; background: #e7e9ed; }
.lbPreviewAuthMethodText { min-width: 0; }
.lbPreviewAuthMethodText small { display: block; margin-top: 2px; color: #afb0b7; font-size: 12px; font-weight: 550; }
.lbPreviewAuthDivider { margin: 19px 0; color: #a5a5ac; text-align: center; font-size: 13px; }
.lbPreviewAuthFoot { display: flex; justify-content: center; margin: 11px 0 -3px; }
.lbPreviewAuthFoot button.lbPreviewAuthLink { color: #a7abb5; min-height: 40px; }
.lbPreviewAuthForm { display: grid; gap: 7px; }
.lbPreviewAuthFormTop { display: flex; min-height: 34px; justify-content: space-between; align-items: center; }
.lbPreviewAuthFormTop h3 { margin: 0; font-size: 16px; font-weight: 750; }
.lbPreviewAuthForm label { display: block; margin-bottom: 3px; color: #eeeef1; font-weight: 650; }
.lbPreviewAuthForm > label { margin: 0; }
.lbPreviewAuthForm input {
  width: 100%;
  min-width: 0;
  height: 46px;
  margin: 0 0 6px;
  padding: 0 12px;
  border: 1px solid #53555e;
  border-radius: 8px;
  background: #111216;
  color: #fff;
  font: inherit;
  font-size: 16px;
}
.lbPreviewAuthHint { color: #b8bac3; margin: 1px 0; font-size: 12px; }
.lbPreviewAuthMessage { margin: 0 0 9px; color: #ffbac6; font-size: 13px; overflow-wrap: anywhere; }
.lbPreviewAuthMessage:empty { margin: 0; height: 0; }
.lbPreviewAuthPrimary {
  width: 100%;
  min-height: 47px;
  padding: 8px 14px;
  border: 1px solid #406c9e;
  border-radius: 9px;
  background: #1e3754;
  color: #f4f7ff;
}
.lbPreviewAuth button.lbPreviewAuthPrimary { font-weight: 800; }
.lbPreviewAuthPrimary:hover { background: #29496c; }
.lbPreviewAuthAccount dl { margin: 0 0 13px; }
.lbPreviewAuthAccount dl div {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #ffffff14;
}
.lbPreviewAuthAccount dt { color: #b8bac3; flex: 0 0 auto; }
.lbPreviewAuthAccount dd { margin: 0; overflow-wrap: anywhere; font-weight: 750; text-align: end; }
@media (max-width: 560px) {
  .lbPreviewAuth {
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    max-height: calc(100dvh - 16px);
    margin: 0 auto;
    border-radius: 22px 22px 0 0;
  }
  .lbPreviewAuthCard { padding: 14px 16px calc(12px + env(safe-area-inset-bottom, 0px)); }
  .lbPreviewAuth button.lbPreviewAuthMethod { min-height: 66px; padding: 10px 13px; }
  .lbPreviewAuthHeading { padding-bottom: 10px; margin-bottom: 13px; }
  .lbPreviewAuthDivider { margin: 14px 0; }
  .lbPreviewAuthSwitch button, .lbPreviewAuthFormTop button.lbPreviewAuthLink, .lbPreviewAuthFoot button.lbPreviewAuthLink { min-height: 44px; }
}
