/* The first-visit research gate (assets/js/research-gate.js; loaded by it only, before it opens). The site's tokens, so
   it follows the theme; the whole row of each statement is the target (44 px at least, 48 on touch); the checkbox is the
   account forms' (account.css), drawn the same in every engine. In the top layer, so nothing on the page moves. */
.gate { width: min(100% - 32px, 460px); max-height: calc(100% - 32px); margin: auto; padding: 0; border: 1px solid var(--line); border-radius: 16px;
  background: var(--surface); color: var(--ink); box-shadow: 0 24px 60px -20px rgba(20, 12, 40, .45); overscroll-behavior: contain; }
.gate::backdrop { background: rgba(12, 12, 16, .62); }
.gate__form { display: grid; gap: 12px; padding: 24px; }
.gate .dialog-brand { justify-content: center; margin-bottom: 4px; }
.gate__title { margin: 0; font: 700 1.375rem/1.25 var(--font-display); }
.gate__note { margin: 0 0 4px; color: var(--muted); font-size: .9375rem; }
.gate__check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; min-height: 44px; padding: 11px 12px;
  border: 1px solid var(--line); border-radius: 10px; font-size: .9375rem; line-height: 1.5; cursor: pointer; }
.gate__check:has(input:checked) { border-color: #65419a; }
.gate__check input[type="checkbox"] {
  -webkit-appearance: none; appearance: none; box-sizing: border-box; width: 22px; height: 22px; margin: 1px 0 0;
  border: 2px solid var(--muted); border-radius: 4px; background: transparent center / 14px 14px no-repeat; cursor: pointer;
}
.gate__check input[type="checkbox"]:checked {
  border-color: #65419a; background-color: #65419a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.gate__check input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gate__go { width: 100%; margin-top: 4px; }
.gate__go:disabled { opacity: .5; cursor: not-allowed; }
@media (pointer: coarse) { .gate__check { min-height: 48px; } }
:root[data-theme="dark"] .gate__check input[type="checkbox"]:checked, :root[data-theme="dark"] .gate__check:has(input:checked) { border-color: #a58bcc; }
