.preview-locked,
.preview-locked body {
  background: #000000 !important;
}

.preview-locked body > :not(.preview-lock) {
  visibility: hidden !important;
}

.preview-lock {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  background: #000000;
  color: #ffffff;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.preview-lock[hidden] {
  display: none !important;
}

.preview-lock-inner {
  display: grid;
  justify-items: center;
  gap: 22px;
}

.preview-code {
  display: grid;
  grid-template-columns: repeat(4, 54px);
  gap: 12px;
}

.preview-code button {
  grid-column: 1 / -1;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: #ffffff;
  color: #000000;
  font: 700 13px/1 Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.preview-code input {
  width: 54px;
  height: 62px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 0;
  background: #050505;
  color: #ffffff;
  font: 500 30px/1 Inter, "Segoe UI", Arial, sans-serif;
  text-align: center;
  outline: none;
  caret-color: transparent;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.preview-code input:focus {
  border-color: #ffffff;
  background: #101010;
  transform: translateY(-1px);
}

.preview-code.is-error input {
  border-color: #ff6f6f;
}

.preview-lock-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 520px) {
  .preview-code {
    grid-template-columns: repeat(4, 46px);
    gap: 10px;
  }

  .preview-code input {
    width: 46px;
    height: 56px;
    font-size: 26px;
  }
}
