.passkey-security {
  color-scheme: dark;
  --pk-bg: #111214;
  --pk-panel: #1a1b1e;
  --pk-line: #303136;
  --pk-muted: #a5a7ae;
  margin: 0;
  min-height: 100dvh;
  background: var(--pk-bg);
  color: #f3f3f4;
  font-family: 'IBM Plex Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
}
.passkey-security *, .passkey-security *::before, .passkey-security *::after { box-sizing: border-box; }
.passkey-security [hidden] { display: none !important; }
.passkey-security a { color: inherit; text-decoration: none; }
.passkey-security svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.passkey-header { max-width: 1088px; margin: 0 auto; padding: 28px 40px; display: flex; align-items: center; justify-content: space-between; }
.passkey-header > a { display: inline-flex; align-items: center; min-height: 44px; }
.passkey-header img { display: block; width: 126px; height: 32px; }
.passkey-header .passkey-back { gap: 8px; color: var(--pk-muted); font-size: 14px; }
.passkey-back:hover { color: #fff; }
.passkey-panel { max-width: 520px; margin: 76px auto 0; padding: 0 24px 40px; }
.passkey-panel h1 { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 30px; font-weight: 500; line-height: 1.25; letter-spacing: -.7px; }
.passkey-count { font-size: 12px; letter-spacing: 0; border: 1px solid var(--pk-line); border-radius: 6px; padding: 3px 7px; color: var(--pk-muted); }
.passkey-email { margin: 10px 0 28px; font-size: 14px; line-height: 1.5; color: var(--pk-muted); overflow-wrap: anywhere; }
.passkey-card { background: var(--pk-panel); border: 1px solid var(--pk-line); border-radius: 18px; overflow: hidden; }
.passkey-empty { display: flex; flex-direction: column; align-items: center; padding: 40px 24px 32px; }
.passkey-symbol { width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid #3b3c42; border-radius: 16px; color: #dedee3; }
.passkey-symbol svg { width: 28px; height: 28px; }
.passkey-empty p { margin: 18px 0 0; font-size: 15px; color: var(--pk-muted); }
.passkey-card-action { padding: 0 24px 24px; }
.passkey-security button, .passkey-login button { font: inherit; cursor: pointer; }
.passkey-security .passkey-primary { display: flex; justify-content: center; align-items: center; gap: 9px; width: 100%; min-height: 46px; border: 1px solid #eeedf1; border-radius: 10px; background: #eeedf1; color: #17181a; font-size: 14px; font-weight: 500; transition: background 160ms ease, border-color 160ms ease; }
.passkey-security .passkey-primary:hover { background: #fff; border-color: #fff; }
.passkey-security button:disabled { cursor: default; opacity: .45; }
.passkey-security button:focus-visible, .passkey-security a:focus-visible, .passkey-security input:focus-visible, .passkey-login button:focus-visible { outline: 2px solid #b5bef4; outline-offset: 4px; }
#passkey-status, #passkey-dialog-status { min-height: 0; color: #b9bac3; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.passkey-security #passkey-status { margin: 14px 2px 0; }
#passkey-status:empty, #passkey-dialog-status:empty { display: none; }
[data-error="true"] { color: #ffb4b4 !important; }
#passkey-list { list-style: none; margin: 0; padding: 0 24px; }
.passkey-row { display: flex; align-items: center; gap: 13px; padding: 23px 0; }
.passkey-row + .passkey-row { border-top: 1px solid var(--pk-line); }
.passkey-device { width: 36px; height: 42px; display: grid; place-items: center; color: #c7c8ce; flex-shrink: 0; }
.passkey-device svg { width: 23px; height: 23px; }
.passkey-details { min-width: 0; flex: 1; }
.passkey-label, .passkey-date { display: block; overflow-wrap: anywhere; }
.passkey-label { font-size: 15px; line-height: 1.4; }
.passkey-date { margin-top: 4px; color: var(--pk-muted); font-size: 12px; line-height: 1.4; }
.passkey-security .passkey-icon-button { background: none; border: 0; padding: 12px; min-width: 44px; min-height: 44px; display: grid; place-items: center; color: var(--pk-muted); border-radius: 9px; }
.passkey-security .passkey-icon-button:hover { background: #ffffff09; color: #fff; }
.passkey-security .passkey-remove:hover { color: #ffb4b4; }
#passkey-dialog { width: calc(100% - 40px); max-width: 410px; padding: 32px 28px 28px; background: #1c1d20; color: #f3f3f4; border: 1px solid #3a3b41; border-radius: 18px; box-shadow: 0 24px 90px #0008; }
#passkey-dialog::backdrop { background: #08090bbb; backdrop-filter: blur(4px); }
#passkey-dialog h2 { margin: 0 36px 28px 0; font-size: 22px; font-weight: 500; letter-spacing: -.4px; }
.passkey-close { position: absolute; right: 15px; top: 15px; }
#passkey-name-field label { display: block; font-size: 13px; color: #c7c8ce; margin-bottom: 8px; }
#passkey-name { width: 100%; height: 46px; background: #141517; color: #f3f3f4; font: inherit; font-size: 16px; border: 1px solid #45464e; border-radius: 9px; padding: 0 12px; }
#passkey-dialog-status { margin: 16px 0 0; }
#passkey-submit { margin-top: 24px; }
#passkey-submit[data-destructive="true"] { background: #f3b4b4; border-color: #f3b4b4; color: #3a1414; }
#passkey-remove-name { color: var(--pk-muted); overflow-wrap: anywhere; font-size: 15px; }
.passkey-alternative { display: block; width: fit-content; margin: 14px auto -8px; padding: 10px; font-size: 13px; color: var(--pk-muted) !important; }
.passkey-alternative:hover { text-decoration: underline; }
.passkey-login { display: flex; flex-direction: column; align-items: center; margin-top: 12px; }
.passkey-login .passkey-login-button { width: auto; max-width: 100%; min-height: 44px; gap: 10px; padding: 8px 16px; border: 1px solid rgba(127,191,127,.24); border-radius: 999px; background: linear-gradient(135deg,rgba(77,141,94,.13),rgba(255,190,85,.09)); color: var(--text,#f5f6f8); font-size: 14px; box-shadow: none; }
.passkey-login .passkey-login-button:hover { border-color: rgba(127,191,127,.45); background: linear-gradient(135deg,rgba(77,141,94,.22),rgba(255,190,85,.15)); box-shadow: none; }
.passkey-login .passkey-mark { width: 24px; height: 24px; flex-shrink: 0; }
.passkey-mark svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.passkey-login button:disabled { opacity: .5; cursor: default; }
.passkey-login #passkey-status { margin: 8px 0 0; }
@media (max-width: 600px) {
  .passkey-header { padding: 20px 24px; }
  .passkey-panel { margin-top: 48px; }
  .passkey-panel h1 { font-size: 28px; }
  .passkey-empty { padding-top: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .passkey-security *, .passkey-security *::before { transition: none !important; }
}
