body.pm-dg-sleep-doc {
  margin: 0;
  min-height: 100vh;
}

.pm-dg__sleep-shell {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "DM Sans", "Inter", system-ui, sans-serif;
}

.pm-dg__sleep-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 50% -10%, #1a2458 0%, transparent 55%),
    radial-gradient(90% 60% at 80% 100%, #2a1040 0%, transparent 50%),
    linear-gradient(165deg, #070b22 0%, #0a1055 45%, #050818 100%);
}

.pm-dg__sleep-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 36px 40px 32px;
  border-radius: 24px;
  background: rgba(10, 16, 85, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  min-width: min(320px, 92vw);
}

.pm-dg__sleep-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 0 0 2px rgba(1, 126, 250, 0.35), 0 12px 40px rgba(1, 126, 250, 0.25);
}

.pm-dg__sleep-hello {
  margin: 8px 0 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
}

.pm-dg__sleep-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.pm-dg__sleep-pin {
  width: 9ch;
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.35em;
  padding: 12px 10px 12px 18px;
  border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  outline: none;
}

.pm-dg__sleep-pin:focus {
  border-color: rgba(1, 126, 250, 0.85);
  box-shadow: 0 0 0 3px rgba(1, 126, 250, 0.25);
}

.pm-dg__sleep-error {
  margin: 0;
  font-size: 13px;
  color: #ff8fab;
}

.pm-dg__sleep-submit {
  margin-top: 4px;
  padding: 12px 28px;
  border: none;
  border-radius: 999px;
  background: #017efa;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.pm-dg__sleep-submit:hover {
  opacity: 0.92;
}

/* Hide theme chrome while sleep lock owns the viewport */
body:has(.pm-dg__sleep-shell) .pm-bb-footer,
body:has(.pm-dg__sleep-shell) .pm-bb-shell > :not(.pm-dg__sleep-shell) {
  display: none !important;
}

body:has(.pm-dg__sleep-shell) .pm-bb-shell {
  margin: 0;
  padding: 0;
  max-width: none;
}

/* Floating sleep / wake control — left middle */
.pm-dg__sleep-fab {
  position: fixed;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 99980;
  margin: 0;
}

.pm-dg__sleep-fab button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  background: rgba(10, 16, 85, 0.72);
  color: #f0e6c8;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  transition: background 140ms, border-color 140ms, transform 140ms;
}

.pm-dg__sleep-fab button:hover {
  border-color: rgba(1, 126, 250, 0.7);
  background: rgba(1, 126, 250, 0.22);
  transform: scale(1.06);
}

.pm-dg__sleep-fab.is-wake button {
  color: #ffd56a;
}
