:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --accent: #0ea5e9;
  --accent-strong: #0369a1;
  --muted: #475569;
}

body.z > *:not(#s):not(#a) {
  filter: blur(6px) saturate(0.95);
  transform: scale(1.01);
  user-select: none;
  pointer-events: none;
}

body.z #s {
  filter: none;
  pointer-events: auto;
}

body.z .floating-search {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
body.z .floating-search * {
  pointer-events: none;
}

#s {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  background: rgba(15, 23, 42, 0.4);
}
.p {
  background: #ffffff;
  border-radius: 12px;
  padding: 18px 16px;
  width: min(360px, calc(100% - 40px));
  max-width: 360px;
  text-align: center;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 2px 10px rgba(2, 6, 23, 0.06);
}
.x {
  font-size: 36px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

#a {
  display: none;
}
.lock-prompt {
  font-weight: 700;
  color: #374151;
  margin-bottom: 10px;
  font-size: 16px;
}
.dv {
  display: none;
}
.i {
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial;
}
.kp {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.kp-btn {
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  font-size: 18px;
  font-weight: 700;
  user-select: none;
  color: #0f172a;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 120ms ease,
    transform 80ms ease;
}
.kp-btn:active {
  transform: translateY(1px);
  background: #f7fafc;
}
.kp-action {
  background: var(--accent);
  color: white;
  border: none;
}
.kp-action:active {
  background: var(--accent-strong);
}
.kp-action[data-action="back"] {
  grid-column: 1 / 2;
}
.kp-zero {
  grid-column: 2 / 3;
}
.kp-enter {
  grid-column: 3 / 4;
}

@media (min-width: 640px) {
  #s {
    display: none;
  }
}

@media (min-width: 640px) {
  body.z #s {
    display: flex;
  }
}

@media (min-width: 640px) {
  .x {
    position: fixed;
    top: 95%;
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
    margin: 0;
    font-size: 20px;
    z-index: 10000;
    color: var(--muted);
    letter-spacing: 1px;
  }
  .kp {
    display: none;
  }
  body.z #a {
    display: block;
  }
  body.z #b {
    display: none;
  }
}
