/* KOVRA signup — legal-first screen, 2026-10-18.
   The form stays out of sight until consent. Rules are in the HTML on first
   paint, not loaded asynchronously. The legal screen owns the safe viewport. */
html body.signup-consent-pending main.auth-register-shell,
html body main.auth-register-shell[hidden] {
  display:none !important;
  visibility:hidden !important;
}
html body.signup-consent-pending {
  background:#06130c !important;
  overflow:hidden !important;
}
html body.signup-consent-pending #signupConsentOverlay {
  background:#06130c !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}
html body #signupConsentOverlay[hidden],
html body #signupConsentOverlay[aria-hidden="true"] {
  display:none !important;
}
.signup-consent-heading {
  margin:0 0 14px;
}
.signup-consent-heading h2 {
  margin-bottom:5px !important;
}
.signup-consent-version {
  margin:0;
  font-size:12px;
  text-align:center;
  color:#a8bfae;
}
.signup-consent-section-label {
  margin:13px 0 10px;
  color:#70f39a;
  font-size:13px;
  font-weight:800;
  letter-spacing:.025em;
}
.signup-consent-card a {
  text-underline-offset:3px;
}
.signup-consent-card a:focus-visible,
.signup-consent-card button:focus-visible,
.signup-consent-check:focus-within {
  outline:2px solid #8cf7ab;
  outline-offset:3px;
}
@media(max-width:700px) {
  html body.signup-consent-pending #signupConsentOverlay {
    position:fixed !important;
    inset:0 !important;
    display:flex !important;
    flex-direction:column !important;
    justify-content:stretch !important;
    align-items:stretch !important;
    width:100% !important;
    height:100dvh !important;
    min-height:100dvh !important;
    max-height:100dvh !important;
    box-sizing:border-box !important;
    margin:0 !important;
    padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px) !important;
    overflow:hidden !important;
    border:0 !important;
    border-radius:0 !important;
    background:#06130c !important;
  }
  html body.signup-consent-pending #signupConsentOverlay .signup-consent-card {
    display:block !important;
    flex:1 1 auto !important;
    box-sizing:border-box !important;
    width:100% !important;
    height:100% !important;
    min-width:0 !important;
    min-height:0 !important;
    max-width:none !important;
    max-height:none !important;
    margin:0 !important;
    padding:clamp(17px,3.5vh,26px) clamp(17px,4.5vw,26px) max(20px,3vh) !important;
    overflow-x:hidden !important;
    overflow-y:auto !important;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    transform:none !important;
    border:0 !important;
    border-radius:0 !important;
    box-shadow:none !important;
    background:linear-gradient(160deg,#092519 0%,#06160e 50%,#041009 100%) !important;
  }
  html body.signup-consent-pending #signupConsentOverlay .signup-consent-heading {
    margin:0 0 16px !important;
  }
  html body.signup-consent-pending #signupConsentOverlay .signup-consent-eyebrow {
    margin:0 0 9px !important;
    font-size:11px !important;
    letter-spacing:.08em !important;
  }
  html body.signup-consent-pending #signupConsentOverlay h2 {
    margin:0 0 7px !important;
    font-size:clamp(26px,7.6vw,33px) !important;
    line-height:1.12 !important;
  }
  html body.signup-consent-pending #signupConsentOverlay .signup-consent-version {
    font-size:11px !important;
  }
  html body.signup-consent-pending #signupConsentOverlay .signup-consent-scope {
    margin:0 0 14px !important;
    padding:15px 14px !important;
    border-radius:15px !important;
    background:rgba(54,230,107,.055) !important;
  }
  html body.signup-consent-pending #signupConsentOverlay .signup-consent-lead {
    margin:0 0 8px !important;
    font-size:clamp(15px,4vw,17px) !important;
    line-height:1.39 !important;
  }
  html body.signup-consent-pending #signupConsentOverlay .signup-consent-copy {
    font-size:clamp(13px,3.55vw,15px) !important;
    line-height:1.43 !important;
  }
  html body.signup-consent-pending #signupConsentOverlay .signup-consent-points {
    display:grid !important;
    gap:10px !important;
    margin:0 0 17px !important;
  }
  html body.signup-consent-pending #signupConsentOverlay .signup-consent-point {
    display:grid !important;
    grid-template-columns:34px minmax(0,1fr) !important;
    gap:11px !important;
    padding:13px 12px !important;
    border-radius:14px !important;
    background:rgba(1,13,7,.55) !important;
  }
  html body.signup-consent-pending #signupConsentOverlay .signup-consent-point-mark {
    display:grid !important;
    place-items:center !important;
    width:32px !important;
    height:32px !important;
    border-radius:9px !important;
    font-size:13px !important;
  }
  html body.signup-consent-pending #signupConsentOverlay .signup-consent-point strong {
    display:block !important;
    margin:0 0 5px !important;
    font-size:clamp(14px,3.9vw,16px) !important;
    line-height:1.28 !important;
  }
  html body.signup-consent-pending #signupConsentOverlay .signup-consent-point p {
    margin:0 !important;
    font-size:clamp(12.5px,3.5vw,14.5px) !important;
    line-height:1.43 !important;
  }
  html body.signup-consent-pending #signupConsentOverlay .signup-consent-links {
    margin:0 0 15px !important;
    font-size:14px !important;
    line-height:1.5 !important;
  }
  html body.signup-consent-pending #signupConsentOverlay .signup-consent-check {
    display:grid !important;
    grid-template-columns:28px minmax(0,1fr) !important;
    gap:11px !important;
    margin:0 0 13px !important;
    padding:13px 12px !important;
    border-radius:13px !important;
  }
  html body.signup-consent-pending #signupConsentOverlay .signup-consent-check span:last-child {
    font-size:14px !important;
    line-height:1.4 !important;
  }
  html body.signup-consent-pending #signupConsentOverlay .signup-consent-continue {
    display:block !important;
    width:100% !important;
    min-height:50px !important;
    font-size:15px !important;
  }
  html body.signup-consent-pending #signupConsentOverlay .signup-consent-back {
    display:block !important;
    width:100% !important;
    min-height:42px !important;
    margin:8px 0 4px !important;
    font-size:13px !important;
  }
}
