.access-gate-overlay[hidden],
.access-gate-dialog [hidden] { display: none !important; }

.access-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, .4);
  overflow-y: auto;
}

.access-gate-dialog {
  box-sizing: border-box;
  width: min(100%, 460px);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding: 28px;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(15, 23, 42, .22);
  color: #334155;
  text-align: left;
  font-family: inherit;
}

.access-gate-dialog h2 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  color: #0f172a;
}

.access-gate-dialog p { margin: 0 0 12px; font-size: 14px; line-height: 1.7; }
.access-gate-dialog .access-gate-status { color: #1d4ed8; }
.access-gate-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.access-gate-actions > a,
.access-gate-actions > button {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.access-gate-actions .access-gate-primary { background: #2563eb; color: #fff; }
.access-gate-actions .access-gate-primary:hover { background: #1d4ed8; }
.access-gate-actions .access-gate-secondary { background: #f8fafc; border-color: #e2e8f0; color: #475569; }
.access-gate-actions .access-gate-secondary:hover { background: #f1f5f9; }
.access-gate-dialog :focus-visible { outline: 3px solid #93c5fd; outline-offset: 3px; }

@media (max-width: 480px) {
  .access-gate-overlay { padding: 16px; }
  .access-gate-dialog { padding: 24px 20px; max-height: calc(100dvh - 32px); }
  .access-gate-dialog h2 { font-size: 20px; }
}
