.passkey-signin, .passkey-primary, .passkey-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 17px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  color: #1b1b1b;
  background: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}
.passkey-signin { width: 100%; margin-top: 12px; }
.passkey-signin:hover, .passkey-secondary:hover { background: #f4f4f4; }
.passkey-primary { background: #202020; color: #fff; border-color: #202020; }
.passkey-primary:hover { background: #353535; }
.passkey-signin:disabled, .passkey-dialog button:disabled { opacity: .55; cursor: wait; }
.passkey-signin:focus-visible, .passkey-dialog :focus-visible, .account-security-row button:focus-visible { outline: 2px solid #006aff; outline-offset: 3px; }
.account-security { grid-column: 1 / -1; }
.account-security-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.account-security-row h3 { margin: 0 0 6px; font-size: 15px; }
.account-security-row p { margin: 0; font-size: 14px; color: #6b6b6b; line-height: 1.5; }
.account-security-row .passkey-secondary { flex-shrink: 0; }
.passkey-dialog-open { overflow: hidden; }
.passkey-dialog {
  box-sizing: border-box;
  width: min(480px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 28px;
  border: 1px solid #e4e4e4;
  border-radius: 16px;
  color: #1b1b1b;
  background: #fff;
  box-shadow: 0 12px 60px #0002;
  font-family: inherit;
  overscroll-behavior: contain;
}
.passkey-dialog::backdrop { background: #0005; }
.passkey-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.passkey-dialog-heading h2 { margin: 0; font-size: 24px; letter-spacing: -.6px; line-height: 1.2; }
.passkey-close { display: grid; place-items: center; width: 44px; height: 44px; margin: -8px -10px -8px 0; border: 0; border-radius: 50%; background: transparent; color: #353535; font: inherit; font-size: 28px; cursor: pointer; }
.passkey-close:hover { background: #f2f2f2; }
.passkey-description, .passkey-empty, .passkey-status, .passkey-form p { margin: 18px 0; color: #686868; font-size: 14px; line-height: 1.55; }
.passkey-error, .passkey-notice { margin: 16px 0; padding: 12px; border-radius: 8px; font-size: 14px; line-height: 1.5; }
.passkey-error { background: #fff1f0; color: #9c2222; }
.passkey-notice { background: #f0f6f0; color: #2e5732; }
.passkey-list { list-style: none; margin: 24px 0 0; padding: 0; }
.passkey-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid #ededed; }
.passkey-list li:first-child { border-top: 1px solid #ededed; }
.passkey-list li > div { min-width: 0; }
.passkey-list strong { display: block; font-size: 14px; overflow-wrap: anywhere; }
.passkey-list span { display: block; margin-top: 5px; font-size: 12px; color: #6a6a6a; }
.passkey-text { flex-shrink: 0; min-height: 44px; padding: 8px 0 8px 8px; border: 0; background: transparent; color: #555; font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.passkey-form { display: grid; gap: 10px; margin: 24px 0 0; }
.passkey-form h3 { margin: 0 0 6px; font-size: 16px; }
.passkey-form p { margin: 0 0 8px; }
.passkey-form label { font-size: 13px; font-weight: 600; }
.passkey-form input { box-sizing: border-box; width: 100%; min-width: 0; min-height: 46px; margin: 0 0 8px; padding: 10px 12px; border: 1px solid #d9d9d9; border-radius: 7px; background: #fff; color: #1b1b1b; font: inherit; font-size: 16px; }
.passkey-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.passkey-form .passkey-actions { margin-top: 8px; }
@media (max-width: 600px) {
  .account-security-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .passkey-dialog { padding: 24px 20px; }
}
