body.authn { min-height: 100dvh; }
.authn-auth { display: flex; flex-direction: column; align-items: center; padding: max(48px, 8vh) 20px 40px; gap: 24px; }
.authn-hero { text-align: center; max-width: 380px; }
.authn-hero img { border-radius: 22px; box-shadow: 0 18px 50px -12px rgb(91 108 245 / .6); }
.authn-hero h1 { font-size: 26px; margin: 16px 0 8px; }
.authn-hero p { font-size: 14.5px; }
.auth-card h2 { font-size: 20px; margin-bottom: 14px; }
.link-a { color: var(--accent-text); font-weight: 560; text-decoration: none; }
.authn-app { max-width: 760px; margin: 0 auto; min-height: 100dvh; padding-bottom: 96px; }
.authn-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px; padding: max(14px, env(safe-area-inset-top)) 16px 10px;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); }
.authn-search { padding: 4px 16px 10px; }
.sync { font-size: 12px; color: var(--text-3); display: inline-flex; align-items: center; gap: 6px; }
.sync::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.sync.off::before { background: var(--warning); }
.sync.err::before { background: var(--danger); }
.codes { list-style: none; margin: 0; padding: 0 12px; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.code-card { display: flex; align-items: center; gap: 12px; padding: 14px 12px 14px 14px; border-radius: 16px; background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm); cursor: pointer; transition: transform .08s, box-shadow .15s; }
.code-card:hover { box-shadow: var(--shadow-md); }
.code-card:active { transform: scale(.99); }
.code-card .meta { flex: 1; min-width: 0; }
.code-card .issuer { font-weight: 620; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code-card .account { font-size: 12.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code-card .otp { font-family: var(--mono); font-size: 24px; font-weight: 650; letter-spacing: .08em; color: var(--accent-text); margin-top: 2px; }
.code-card .otp.low { color: var(--danger); }
.code-card .next { font-size: 11.5px; color: var(--text-3); font-family: var(--mono); }
.code-card .side { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.code-card .pending { font-size: 11px; color: var(--warning); }
.fab { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); width: 58px; height: 58px; border-radius: 18px;
  border: 0; display: grid; place-items: center; color: #fff; background: var(--accent); box-shadow: 0 14px 34px -10px rgb(91 69 240 / .7); z-index: 6; }
.fab .icon { width: 26px; height: 26px; }
.fab:hover { background: var(--accent-hover); }
.choice { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; margin-bottom: 8px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); text-align: left; }
.choice:hover { background: var(--surface-2); }
.choice .icon { width: 22px; height: 22px; color: var(--accent-text); }
.choice strong { display: block; }
.choice span { font-size: 12.5px; color: var(--text-2); }
.scanner { position: relative; border-radius: 14px; overflow: hidden; background: #000; aspect-ratio: 1; }
.scanner video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scanner::after { content: ""; position: absolute; inset: 18%; border: 3px solid rgb(255 255 255 / .85); border-radius: 18px; box-shadow: 0 0 0 999px rgb(0 0 0 / .35); }
.empty { padding-top: 10vh; }
.menu-list { display: flex; flex-direction: column; gap: 2px; }
.menu-list button { display: flex; align-items: center; gap: 12px; padding: 12px 10px; border: 0; border-radius: 10px; background: none; text-align: left; font-weight: 520; }
.menu-list button:hover { background: var(--surface-2); }
.menu-list .icon { color: var(--text-2); }
.menu-list .danger-text .icon { color: var(--danger); }
@media (max-width: 640px) { .codes { grid-template-columns: 1fr; } }
.ring { width: 22px; height: 22px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 3; }
.ring .track { stroke: var(--surface-3); }
.ring .bar { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.ring.low .bar { stroke: var(--danger); }
textarea { width: 100%; margin-top: 10px; }
