html.llm-wiki-locked,
html.llm-wiki-locked body {
  overflow: hidden;
}

html.llm-wiki-locked body > *:not(#llm-wiki-password-gate) {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
}

#llm-wiki-password-gate {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #f8fafc;
  color: #1f2937;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
  letter-spacing: -0.012em;
}

.llm-wiki-gate-card {
  width: min(440px, 100%);
  padding: clamp(1.3rem, 4vw, 2rem);
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.llm-wiki-gate-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  margin-bottom: 0.75rem;
  padding: 0 0.62rem;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #ffffff;
  color: #374151;
  font-size: 0.68rem;
  font-weight: 720;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.llm-wiki-gate-card h1 {
  margin: 0 0 0.45rem;
  color: #111827;
  font-size: clamp(1.42rem, 4vw, 1.82rem);
  font-weight: 740;
  letter-spacing: -0.03em;
  line-height: 1.28;
}

.llm-wiki-gate-card p {
  margin: 0 0 1.2rem;
  color: #6b7280;
  font-size: 0.84rem;
  line-height: 1.65;
}

.llm-wiki-gate-form {
  display: flex;
  gap: 0.55rem;
}

.llm-wiki-gate-form input {
  flex: 1 1 auto;
  min-width: 0;
  height: 2.65rem;
  padding: 0 0.9rem;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #ffffff;
  color: #111827;
  font-size: 1rem;
  letter-spacing: 0.12em;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.llm-wiki-gate-form input::placeholder {
  color: #9ca3af;
  letter-spacing: -0.012em;
}

.llm-wiki-gate-form input:focus {
  border-color: #93c5fd;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.llm-wiki-gate-form button {
  height: 2.65rem;
  padding: 0 1.05rem;
  border: 0;
  border-radius: 10px;
  background: #2563eb;
  color: #ffffff;
  font-weight: 720;
  cursor: pointer;
  transition: background 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.llm-wiki-gate-form button:hover {
  background: #1d4ed8;
}

.llm-wiki-gate-form button:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

.llm-wiki-gate-error {
  min-height: 1.35rem;
  margin-top: 0.75rem;
  color: #dc2626;
  font-size: 0.78rem;
  font-weight: 650;
}

.llm-wiki-gate-hint {
  margin-top: 0.8rem !important;
  margin-bottom: 0 !important;
  color: #9ca3af !important;
  font-size: 0.72rem !important;
}

@media screen and (max-width: 44.9375em) {
  #llm-wiki-password-gate {
    padding: 18px;
  }

  .llm-wiki-gate-form {
    flex-direction: column;
  }

  .llm-wiki-gate-form input {
    flex: 0 0 2.65rem;
    width: 100%;
  }

  .llm-wiki-gate-form button {
    width: 100%;
  }
}
