/* dogAdvisor Max Series 5: passkeys on the sign-in page (9 November 2026) */
/* the message: tighter line spacing, wide enough for the longer text */
.si-msg { max-width: 640px; line-height: 21px; min-height: 0; }
.si-msg.pk-msg { color: #D9D9D9; }
.si-msg.pk-msg b { color: #FFFFFF; font-weight: 500; }
.si-msg.is-err { color: #F2271F; }
/* Use Passkey sits to the left of Sign In */
.si-row { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 27px 0 0; flex-wrap: wrap; }
.si-row .si-btn { margin: 0; }
.si-btn.si-btn-pk { display: inline-flex; align-items: center; gap: 9px; }
.si-btn-pk svg { width: 19px; height: 19px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
a.si-btn { display: inline-flex; align-items: center; text-decoration: none; color: #D9D9D9; }
a.si-btn:hover { color: #FFFFFF; }
.si-btn.is-done { border-color: rgba(255,255,255,0.25); }
@media (max-width: 640px) {
  .si-msg { max-width: 360px; line-height: 20px; }
  .si-row { margin-top: 22px; }
}

/* edition 2 (9 November 2026): the Passkeys page and the sign-in link */
.si-pklink { margin-top: 18px; font-size: 13.5px; color: #8C8C8C; }
.si-pklink a { color: #D9D9D9; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.si-pklink a:hover { color: #FFFFFF; }
.pk-main { padding-top: 18vh; }
.pk-auth { margin-top: 28px; }
.pk-auth .pk-in { width: 316px; }
.pk-auth .pk-in + .pk-in { margin-top: 11px; }
.pk-auth .pk-in[type="password"]:not(:placeholder-shown) { letter-spacing: .12em; }
.pk-auth[hidden], .pk-acct[hidden], .pk-switch[hidden], .pk-create[hidden] { display: none; }
.pk-acct { width: min(470px, calc(100vw - 40px)); margin-top: 28px; text-align: left; }
.pk-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid rgba(255,255,255,0.09); border-radius: 22px; background: #010504; }
.pk-av { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; background: #1d2622; color: #FFFFFF; font-size: 18px; font-weight: 500; }
.pk-who { flex: 1; min-width: 0; }
.pk-name { font-size: 16.5px; font-weight: 500; }
.pk-sub { margin-top: 3px; font-size: 13.5px; color: #8C8C8C; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-switch { -webkit-appearance: none; appearance: none; border: 0; background: none; padding: 6px 2px; color: #D9D9D9; font: inherit; font-size: 13.5px; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.pk-switch:hover { color: #FFFFFF; }
.pk-list { margin-top: 12px; border: 1px solid rgba(255,255,255,0.09); border-radius: 22px; background: #010504; overflow: hidden; }
.pk-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; }
.pk-row + .pk-row { border-top: 1px solid rgba(255,255,255,0.07); }
.pk-ic { width: 36px; height: 36px; flex: 0 0 auto; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,0.06); }
.pk-ic svg { width: 19px; height: 19px; fill: none; stroke: #FFFFFF; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pk-rt { flex: 1; min-width: 0; }
.pk-rl { font-size: 15px; }
.pk-rs { margin-top: 3px; font-size: 13px; color: #8C8C8C; }
.pk-rm { -webkit-appearance: none; appearance: none; height: 34px; padding: 0 14px; border: 1px solid rgba(255,255,255,0.09); border-radius: 30px; background: transparent; color: #D9D9D9; font: inherit; font-size: 13.5px; cursor: pointer; white-space: nowrap; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.pk-rm:hover { color: #FFFFFF; border-color: rgba(255,255,255,0.2); }
.pk-rm.sure { color: #FFFFFF; background: #F2271F; border-color: #F2271F; }
.pk-empty { padding: 18px; text-align: center; font-size: 14px; color: #8C8C8C; }
.pk-acct .si-row { margin-top: 22px; }
@media (max-width: 640px) {
  .pk-main { padding-top: calc(15vh + env(safe-area-inset-top)); }
  .pk-auth .pk-in { width: calc(100vw - 40px); max-width: 340px; }
  .pk-card { flex-wrap: wrap; }
}

/* edition 3 (9 November 2026): smoother animations */
.si-msg.pk-swap { animation: pk-msg .5s cubic-bezier(.16,1,.3,1) both; }
@keyframes pk-msg { from { opacity: 0; transform: translateY(6px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.si-row .si-btn { transition: transform .25s cubic-bezier(.16,1,.3,1), border-color .2s ease, background .2s ease, opacity .2s ease, box-shadow .3s ease; }
.si-row .si-btn:hover { transform: none; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.si-row .si-btn:active { transform: scale(.96); }
.si-btn-pk svg { transition: transform .4s cubic-bezier(.16,1,.3,1); }
.si-btn-pk:hover svg { transform: rotate(-8deg) scale(1.08); }
.si-btn.is-busy { position: relative; color: transparent !important; pointer-events: none; }
.si-btn.is-busy svg { opacity: 0; }
.si-btn.is-busy::after { content: ''; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); border-top-color: #fff; animation: pk-spin .8s linear infinite; }
.si-btn.is-ok { border-color: rgba(123,228,149,.6) !important; box-shadow: 0 0 0 4px rgba(123,228,149,.12); animation: pk-ok .6s cubic-bezier(.16,1,.3,1); }
.si-btn.is-shake { animation: pk-shake .4s ease; }
@keyframes pk-spin { to { transform: rotate(360deg); } }
@keyframes pk-ok { 0% { transform: scale(.96); } 50% { transform: scale(1.04); } 100% { transform: none; } }
@keyframes pk-shake { 20% { transform: translateX(-5px); } 40% { transform: translateX(4px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
body.pk-leaving .si-main { animation: pk-out .7s cubic-bezier(.7,0,.84,0) both; }
@keyframes pk-out { to { opacity: 0; transform: translateY(-10px) scale(.985); filter: blur(6px); } }
.si-main > .si-h, .si-main > .si-msg, .si-main > .si-form, .si-main > .pk-auth { animation: pk-rise .8s cubic-bezier(.16,1,.3,1) both; }
.si-main > .si-msg { animation-delay: .08s; } .si-main > .si-form, .si-main > .pk-auth { animation-delay: .16s; }
@keyframes pk-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.pk-acct.pk-enter .pk-card { animation: pk-rise .6s cubic-bezier(.16,1,.3,1) both; }
.pk-acct.pk-enter .si-row { animation: pk-rise .6s cubic-bezier(.16,1,.3,1) .2s both; }
.pk-row, .pk-empty { animation: pk-rise .55s cubic-bezier(.16,1,.3,1) both; }
.pk-rm { transition: color .2s ease, border-color .2s ease, background .25s ease, transform .2s ease; }
.pk-rm.sure { animation: pk-ok .5s cubic-bezier(.16,1,.3,1); }
@media (prefers-reduced-motion: reduce) { .si-main *, .si-main { animation: none !important; } }
