/* Laura's Art · Face ID and "use your phone" (passkey.js) */
.pk-alt { width: 100%; display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.pk-or { display: flex; align-items: center; gap: 10px; margin: 6px 0 2px; color: var(--muted); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.pk-or::before, .pk-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.pk-or[hidden] { display: none; }
.pk-wide { width: 100%; min-height: 48px; }
.pk-face::before { content: ''; display: inline-block; width: 18px; height: 18px; margin-right: 8px; vertical-align: -3px; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 8V6a2 2 0 0 1 2-2h2M16 4h2a2 2 0 0 1 2 2v2M20 16v2a2 2 0 0 1-2 2h-2M8 20H6a2 2 0 0 1-2-2v-2M9 9v1M15 9v1M12 9v4h-1M9 16c1.7 1.3 4.3 1.3 6 0'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 8V6a2 2 0 0 1 2-2h2M16 4h2a2 2 0 0 1 2 2v2M20 16v2a2 2 0 0 1-2 2h-2M8 20H6a2 2 0 0 1-2-2v-2M9 9v1M15 9v1M12 9v4h-1M9 16c1.7 1.3 4.3 1.3 6 0'/%3E%3C/svg%3E") center / contain no-repeat; }
.pk-err { margin: 0; min-height: 1.2em; color: var(--danger); font-size: .88rem; text-align: center; }
.pk-err:empty { min-height: 0; }

/* laptop QR */
.pk-qr { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); text-align: center; }
.pk-qr[hidden] { display: none; }
.pk-qr-img { width: 200px; height: 200px; padding: 6px; border-radius: 10px; background: #fff; }
.pk-qr-img svg { display: block; width: 100%; height: 100%; }
.pk-qr p { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.45; }
.pk-qr b { color: var(--ink); }
.pk-code { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 6px; border: 1px solid var(--line); background: var(--wall); font: 600 1.05rem var(--ui); letter-spacing: .12em; }
.pk-left { color: var(--accent) !important; }

/* Face ID manager + approve screens */
.pk-mini { margin-left: 6px; }
.pk-mini[hidden] { display: none; }
.pk-dlg { width: 100%; height: 100%; height: 100dvh; max-width: none; max-height: none; border-radius: 0; padding: 0; background: var(--wall); }
.pk-dlg[open] { display: block; }
.pk-box { padding: max(16px, env(safe-area-inset-top)) 20px 40px; max-width: 460px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.pk-center { justify-content: center; min-height: 80dvh; text-align: center; }
.pk-head { display: flex; }
.pk-title { margin: 12px 0 0; font: 600 2rem/1.05 var(--display); }
.pk-help { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.pk-help b { color: var(--ink); font-weight: 600; }
.pk-okmsg { color: var(--ink); font-size: 1.05rem; }
.pk-box label { margin-top: 6px; }
.pk-list { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pk-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.pk-list li > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pk-list b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-list small { color: var(--muted); font-size: .78rem; }
.pk-list .mini { margin-top: 0; color: var(--danger); }
.pk-none { color: var(--muted); font-size: .9rem; justify-content: center; }
.pk-match { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.pk-match span { color: var(--muted); font-size: .8rem; }
.pk-match b { font: 600 2.8rem/1.1 var(--display); letter-spacing: .1em; color: var(--accent); }
#pkApPin { text-align: center; font-size: 1.4rem; letter-spacing: .4em; }

/* phone camera */
.pk-cam { position: fixed; inset: 0; z-index: 2147483000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px; background: #000; text-align: center; }
.pk-cam[hidden] { display: none; }
.pk-cam video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pk-frame { position: relative; width: 240px; height: 240px; border-radius: 24px; border: 3px solid #fff; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .55); }
.pk-cam p, .pk-cam button, .pk-cam small { position: relative; }
.pk-cam p { margin: 0; max-width: 320px; color: #fff; text-shadow: 0 1px 4px #000; }
.pk-cam small { max-width: 300px; color: #ddd; font-size: .78rem; text-shadow: 0 1px 4px #000; }
.pk-cam .pk-cam-err { padding: 10px 12px; border-radius: 10px; background: rgba(60, 14, 8, .92); color: #ffc9bd; text-shadow: none; }