/* Chrome and installed Windows PWA account overlay V1 — stable rendering */
.landing-account-overlay.show {
  /* Nested backdrop-filter + sticky scrolling triggers Chromium repaints.
     Keep the dark modal design without compositing the private panel twice. */
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: rgba(5,4,7,.88);
}
.landing-account-overlay.show .landing-account-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: min(780px, calc(100dvh - 36px));
  min-height: 0;
  /* stable layer: do not animate/translate the modal */
  transform: none;
}
.landing-account-overlay.show .landing-account-top {
  position: relative;
  top: auto;
  z-index: 2;
  flex: 0 0 auto;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: #171018;
}
.landing-account-overlay.show .landing-account-body {
  display: grid;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  align-content: start;
  gap: 14px;
  scrollbar-gutter: stable;
}
.landing-account-overlay.show .landing-account-footer {
  flex: 0 0 auto;
  padding-top: 10px;
  padding-bottom: 14px;
  background: #171018;
  border-top: 1px solid rgba(255,255,255,.08);
}
.landing-account-overlay.show .landing-account-section {
  min-height: 0;
  contain: none;
  content-visibility: visible;
}
.landing-account-overlay.show .landing-account-top *,
.landing-account-overlay.show .landing-account-section button,
.landing-account-overlay.show .landing-account-footer button {
  backface-visibility: visible;
}
@media (max-width: 640px) {
  .landing-account-overlay.show .landing-account-panel {
    max-height: min(92dvh, 920px);
    border-radius: 24px 24px 0 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .landing-account-overlay.show *,
  .landing-account-overlay.show *::before,
  .landing-account-overlay.show *::after {
    scroll-behavior: auto !important;
  }
}