body { margin:0; min-height:100svh; display:grid; place-items:center; padding:24px 16px; box-sizing:border-box; background:#f7f8fc; color:#16213e; font-family:system-ui,sans-serif; }
.key-card { width:min(100%,480px); box-sizing:border-box; padding:32px; background:white; border:1px solid #e3e5e8; border-radius:24px; box-shadow:0 20px 50px #16213e12; }
.key-card header { text-align:center; margin-bottom:28px; }
.key-card h1 { font-size:clamp(20px,5vw,26px); line-height:1.5; margin:18px 0 6px; }
.key-card h2 { font-size:20px; }
.key-card p { line-height:1.7; overflow-wrap:anywhere; }
.key-card .eyebrow { color:#e77a13; font-size:14px; letter-spacing:.16em; font-weight:700; margin:0 0 16px; }
.muted { color:#687584; font-size:14px; }
.key-card button { width:100%; display:block; min-height:48px; padding:13px 18px; background:#c54100; border:1px solid transparent; border-radius:12px; color:white; font:inherit; font-weight:700; cursor:pointer; margin-top:16px; }
.key-card button:disabled { opacity:.55; cursor:default; }
.key-card button:focus-visible,.key-card input:focus-visible,.key-card summary:focus-visible { outline:3px solid #b33d00; outline-offset:3px; }
.key-card label { display:block; font-weight:600; margin-top:16px; }
.key-card input { width:100%; min-height:48px; box-sizing:border-box; margin-top:8px; border:1px solid #cfd4db; border-radius:10px; padding:12px; font:inherit; background:white; color:#16213e; }
.key-card input:not([type="checkbox"]) { border-color:#747d87; }
.key-card details { border-top:1px solid #e3e5e8; margin-top:24px; padding-top:20px; }
.key-card summary { cursor:pointer; font-weight:650; line-height:1.5; }
.key-card [role=status]:empty { display:none; }
.key-card [role=status] { margin:12px 0 0; }
.key-card .support { margin:28px 0 0; }
.key-card a { color:#a33d12; }
.key-auth .key-card { padding:36px 28px 28px; }
.key-auth .key-card header { margin-bottom:32px; }
.key-auth .key-card h1 { font-size:clamp(18px,4.6vw,24px); letter-spacing:-.035em; }
.key-auth .key-card button { display:flex; align-items:center; justify-content:center; gap:10px; box-sizing:border-box; background:#fff; border-color:#cfd4db; color:#16213e; transition:background-color .15s,border-color .15s; }
.key-auth .key-card button:not(:disabled):hover { background:#f7f8fc; border-color:#8c97a4; }
.key-auth #passwordlessLogin { background:#c54100; border-color:#c54100; color:#fff; min-height:54px; box-shadow:0 6px 16px #c541001c; }
.key-auth #passwordlessLogin:not(:disabled):hover { background:#a93800; border-color:#a93800; }
.key-icon { width:22px; height:22px; flex-shrink:0; vertical-align:middle; }
.key-auth .key-divider { display:flex; align-items:center; gap:14px; margin:28px 0 20px; color:#687584; font-size:13px; }
.key-divider::before,.key-divider::after { content:""; flex:1; height:1px; background:#e3e5e8; }
.key-auth .key-card details { border:0; padding:0; margin:0; }
.key-auth .key-card summary { list-style:none; display:flex; align-items:center; justify-content:center; gap:10px; }
.key-auth .key-card summary::-webkit-details-marker { display:none; }
.key-auth #keyRegistration > summary { position:relative; border:1px solid #747d87; border-radius:12px; padding:14px 36px; min-height:52px; box-sizing:border-box; }
.key-auth #keyRegistration > summary::after { content:""; position:absolute; right:18px; width:7px; height:7px; border-right:1.5px solid; border-bottom:1.5px solid; transform:rotate(-45deg); }
.key-auth #keyRegistration[open] > summary::after { transform:rotate(45deg); }
.key-auth #keyRegistration > summary:hover { background:#f7f8fc; }
.key-auth .key-registration-hint { text-align:center; font-size:13px; margin:12px 0 0; }
.key-auth #keyRegistration[hidden] + .key-registration-hint { display:none; }
.key-auth #keyRecovery { margin-top:28px; }
.key-auth #keyRecovery > summary { color:#687584; font-size:14px; font-weight:500; text-decoration:underline; text-underline-offset:4px; padding:8px 0; }
.key-auth #keyRecovery[open] { border:1px solid #e3e5e8; border-radius:12px; padding:0 16px 16px; overflow:hidden; }
.key-auth #keyRecovery[open] > summary { position:relative; justify-content:flex-start; margin:0 -16px; padding:14px 40px 14px 16px; background:#f7f8fa; color:#16213e; font-weight:650; text-decoration:none; }
.key-auth #keyRecovery[open] > summary .key-icon { display:none; }
.key-auth #keyRecovery[open] > summary::after { content:""; position:absolute; right:18px; width:7px; height:7px; border-right:1.5px solid; border-bottom:1.5px solid; transform:rotate(45deg); }
.key-auth #keyRecovery[open] > .muted { font-size:13px; }
.key-auth #keyRecoveryStatus[data-state=success] { position:relative; padding:14px 14px 14px 44px; border-radius:10px; background:#eaf7ed; color:#176536; font-size:13px; }
.key-auth #keyRecoveryStatus[data-state=success]::before { content:"✓"; position:absolute; left:14px; top:16px; display:grid; place-items:center; width:22px; height:22px; border-radius:50%; background:#187640; color:#fff; font-weight:700; }
.key-auth #keyRecoveryStatus[data-state=error] { color:#a32921; }
.key-auth .support { text-align:center; font-size:12px; margin-top:32px; }
.key-auth .support a { color:#687584; text-underline-offset:3px; }
[hidden] { display:none !important; }
@media(max-width:420px) { .key-card { padding:26px 20px; } }
@media(max-width:420px) { .key-auth .key-card { padding:28px 20px 24px; } }
.key-invite-notice { margin:0 0 16px; padding:12px 14px; border:1px solid #e6c9ad; border-radius:10px; background:#fff8f2; line-height:1.6; }
.key-card .key-consent { display:flex; gap:10px; align-items:flex-start; font-weight:500; line-height:1.6; }
.key-card .key-consent input { flex:none; width:20px; min-height:0; height:20px; margin:3px 0 0; }
