/* invite-code dialog for papers: the site's black, hairlines and type */
.gate { width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line, #2e2e2e); background: var(--bg, #0a0a0a); color: var(--fg, #f4f4f4); }
.gate::backdrop { background: rgba(0, 0, 0, .72); backdrop-filter: blur(2px); }
.gate-form { position: relative; display: grid; gap: 14px; padding: 32px 28px 28px; }
.gate-k { margin: 0; color: var(--fg2, #9a9a9a); }
.gate-h { margin: 0 0 8px; font-weight: 500; font-size: clamp(24px, 5vw, 32px); line-height: 1.08; letter-spacing: -.03em; }
.gate input { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line, #3a3a3a); background: transparent; color: inherit;
  font: 500 18px/1 "Geist Mono", ui-monospace, Menlo, monospace; letter-spacing: .06em; text-transform: uppercase; }
.gate input:focus { outline: none; border-color: currentColor; }
.gate-go, .gate-open { display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 48px; border: 1px solid currentColor;
  background: var(--fg, #f4f4f4); color: var(--bg, #0a0a0a); font: 500 13px/1 "Geist Mono", ui-monospace, Menlo, monospace; letter-spacing: .12em;
  text-transform: uppercase; text-decoration: none; cursor: pointer; }
.gate-go[disabled] { opacity: .5; cursor: progress; }
.gate-err { margin: 0; color: #ff8a7a; font-size: 14px; }
.gate-x { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--fg2, #9a9a9a); font-size: 24px; cursor: pointer; }
.gate-x:hover, .gate-x:focus-visible { color: var(--fg, #f4f4f4); }
.gate [hidden] { display: none !important; }
