body.gate {
  margin: 0;
  min-height: 100vh;
  background: #fff;
  color: #111827;
  font-family: Inter, "Segoe UI", sans-serif;
}
.gate main {
  box-sizing: border-box;
  width: min(440px, 100%);
  margin: 0 auto;
  padding: 32px 16px 48px;
}
.gate img.logo {
  display: block;
  height: 40px;
  width: auto;
  max-width: 100%;
}
.gate h1 {
  margin: 18px 0 8px;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.gate p.lead { margin: 0 0 18px; color: #374151; line-height: 1.45; }
.gate [hidden] { display: none !important; }
.gate label { display: block; margin: 12px 0 6px; font-size: 14px; font-weight: 650; }
.gate input, .gate textarea {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 0;
  padding: 12px;
  font: inherit;
}
:root { --safe-top: env(safe-area-inset-top, 0px); --safe-bottom: env(safe-area-inset-bottom, 0px); }
.gate input, .gate button, .gate .btn, .gate a { min-height: 44px; }
.gate { padding-bottom: max(24px, var(--safe-bottom)); }
.gate button, .gate .btn {
  box-sizing: border-box;
  display: inline-block;
  width: 100%;
  margin-top: 16px;
  border: 0;
  border-radius: 0;
  background: #c8102e;
  color: #fff;
  padding: 12px 16px;
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.gate button:disabled { opacity: 0.6; cursor: wait; }
.gate .error { min-height: 1.2em; margin-top: 10px; color: #dc2626; }
.gate .links { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 14px; }
.gate .links a { display: inline-flex; align-items: center; min-height: 44px; color: #111827; font-weight: 650; }
.gate .secret {
  margin-top: 8px;
  padding: 12px;
  background: #f3f4f6;
  word-break: break-all;
  font-family: ui-monospace, monospace;
  font-size: 14px;
}
@media (min-width: 900px) {
  .gate main { padding-top: 72px; }
}
