/* Two-factor authentication dialog and account card (two-factor.js). */
.tk-2fa-dialog { max-width: 440px; width: calc(100% - 32px); }
.tk-2fa-dialog h2 { margin-top: 0; }
.tk-2fa-dialog::backdrop { background: rgba(0, 0, 0, .55); backdrop-filter: blur(3px); }
.tk-2fa-form { display: grid; gap: 10px; margin: 12px 0; }
.tk-2fa-form input { font-size: 1.25rem; letter-spacing: .2em; text-align: center; width: 100%; box-sizing: border-box; }
.tk-2fa-qr { display: block; margin: 8px auto; background: #fff; padding: 8px; border-radius: 12px; }
.tk-2fa-secret code { display: block; word-break: break-all; padding: 8px; margin-top: 6px; border-radius: 8px; background: rgba(127, 127, 127, .12); }
.tk-2fa-codes { columns: 2; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; padding-left: 1.6em; }
.tk-2fa-codes li { margin: 4px 0; }
.tk-2fa-dialog .tk-row, .tk-2fa-card .tk-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* My Account › Sign-in and security: password, connected accounts, active sessions (components/account/SignInSecurity.tsx). */
.tk-security-block { margin-top: 20px; }
.tk-security-block .tk-row { margin-top: 8px; }
.tk-password-form .tk-check { display: flex; align-items: center; gap: 8px; }
.tk-connections, .tk-sessions { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.tk-connection, .tk-session { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 14px; border: 1px solid rgba(127,127,127,.3); border-radius: 12px; }
.tk-connection-name { font-weight: 700; min-width: 9em; }
.tk-connection-state { flex: 1 1 12em; opacity: .85; overflow-wrap: anywhere; }
.tk-connection .tk-button, .tk-session .tk-button { margin: 0 0 0 auto; }
.tk-session > div { flex: 1 1 16em; min-width: 0; }
.tk-session small { display: block; opacity: .8; margin-top: 2px; overflow-wrap: anywhere; }
.tk-session[data-current] { border-color: var(--lime, #c9ff08); }
.tk-session-badge { display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 6px; border-radius: 4px; background: var(--lime, #c9ff08); color: #101010; vertical-align: text-top; }
.tk-delete-dialog { max-width: 520px; }
.tk-delete-dialog ul { padding-left: 1.2em; }
.tk-delete-dialog li { margin: 6px 0; }
.tk-delete-dialog .tk-form { display: grid; gap: 10px; }
.tk-delete-dialog .tk-check { display: flex; align-items: flex-start; gap: 8px; }
.tk-delete-dialog input:not([type=checkbox]) { width: 100%; box-sizing: border-box; letter-spacing: .1em; }
.tk-delete-dialog button[disabled] { opacity: .5; cursor: not-allowed; }

/* Email category preferences (notification-preferences.js) */
.tk-email-categories { display: grid; gap: 6px; margin: 12px 0; border: 1px solid rgba(127,127,127,.3); border-radius: 12px; padding: 12px 16px; }

/* ADMIN role badge next to an admin account's name (components/platform/ui.tsx AdminBadge). */
.tk-admin-badge { display: inline-block; vertical-align: text-top; margin: .12em 0 0 2px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; line-height: 1; padding: 4px 7px; border-radius: 4px; background: var(--lime, #c9ff08); color: #101010; }

/* TSK-078: change the profile photo on the avatar itself (components/account/ProfileView.tsx AvatarEditor). */
.tk-visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tk-avatar-edit { position: relative; display: block; flex-shrink: 0; border-radius: 50%; cursor: pointer; margin: 0; }
.tk-avatar-edit .tk-avatar { transition: filter .15s ease; }
.tk-avatar-edit:hover .tk-avatar { filter: brightness(.75); }
.tk-avatar-edit:focus-within { outline: 2px solid var(--lime, #c9ff08); outline-offset: 3px; }
.tk-avatar-badge { position: absolute; right: -2px; bottom: -2px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--lime, #c9ff08); color: #101010; border: 3px solid #101820; box-sizing: border-box; transition: transform .15s ease; }
.tk-avatar-edit:hover .tk-avatar-badge { transform: scale(1.08); }
.tk-avatar-badge svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; }
.tk-avatar-edit.is-busy { cursor: progress; }
.tk-avatar-edit.is-busy .tk-avatar { filter: brightness(.6); }
.tk-avatar-edit.is-busy .tk-avatar-badge svg { animation: tk-avatar-pulse 1s ease-in-out infinite; }
@keyframes tk-avatar-pulse { 50% { opacity: .35; } }
