/* Account security (2026-10-22, redone twice that day on the owner's word: "make it magicUI and make it match our site",
   then "squished … cramped", "i dont want that left icon on any design it make sit look ai", "use magic ui have some good
   animations"). So: no icon tiles anywhere (headers, choices, Settings rows, the sign-in card); text gets the room.
   Magic UI pieces instead: a soft glow and dot pattern behind each pop-up's title, words that blur in, choices that are
   magic cards (pointer spotlight from js/drobo-ui.js) with a border beam on the recommended one, a gradient-text badge,
   a tick that springs in with a ripple when a choice is picked, and six code slots that pop, shake and turn green.
   On phones a pop-up is a sheet that slides up from the bottom, full width. Only the kit's tokens (drobo-ui.css), so
   light and dark follow by themselves. */

/* ── Pop-up ─────────────────────────────────────────────────────────────────────────────────────────────────────── */
.sec-modal {
  position: fixed; inset: 0; width: min(30rem, calc(100vw - 2rem)); max-width: none; height: fit-content;
  max-height: calc(100dvh - 2rem); margin: auto; padding: 0; overflow: hidden; color: var(--ui-fg); background: var(--ui-card);
  border: 0; border-radius: 1.25rem; box-shadow: 0 40px 100px -24px rgba(15, 23, 42, .45), 0 0 0 1px var(--ui-border);
}
.sec-modal--wide { width: min(38rem, calc(100vw - 2rem)); }
.sec-modal[open] { display: flex; flex-direction: column; animation: sec-modal-in .5s var(--ui-ease) both; }
.sec-modal::backdrop { background: rgba(9, 9, 11, .5); backdrop-filter: blur(6px); animation: sec-fade .3s ease both; }
html[data-theme="dark"] .sec-modal::backdrop { background: rgba(0, 0, 0, .65); }
@keyframes sec-modal-in { from { opacity: 0; transform: translateY(18px) scale(.97); filter: blur(8px); } }
@keyframes sec-fade { from { opacity: 0; } }
@keyframes sec-blur-in { from { opacity: 0; filter: blur(6px); transform: translateY(8px); } }
/* Behind the title: a glow in the brand colours and a dot pattern, both fading out before the choices. */
.sec-modal::before, .sec-modal::after { content: ""; position: absolute; inset: 0 0 auto; pointer-events: none; }
.sec-modal::before {
  height: 11rem;
  background: radial-gradient(75% 100% at 50% -20%, color-mix(in srgb, var(--ui-primary) 16%, transparent),
                              color-mix(in srgb, var(--ui-violet) 7%, transparent) 45%, transparent 75%);
}
.sec-modal::after {
  height: 9rem; background-image: radial-gradient(var(--ui-dot) 1px, transparent 1.4px); background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(65% 100% at 50% 0%, #000 0%, transparent 80%);
  mask-image: radial-gradient(65% 100% at 50% 0%, #000 0%, transparent 80%);
}
.sec-modal > * { position: relative; z-index: 1; }

.sec-modal__head { display: flex; align-items: flex-start; gap: 1rem; padding: 1.5rem 1.5rem .25rem; }
.sec-modal__head > div { flex: 1 1 auto; min-width: 0; }
.sec-modal__head h2 { margin: 0; font-size: 1.25rem; font-weight: 650; line-height: 1.25; letter-spacing: -.025em; text-wrap: balance; }
.sec-modal__head h2:focus-visible { outline: none; }
.sec-modal__sub { margin: .45rem 0 0; font-size: .875rem; line-height: 1.55; color: var(--ui-muted); text-wrap: pretty; }
.sec-modal__sub strong { font-weight: 600; color: var(--ui-fg-2); }
.sec-modal[open] .sec-modal__head h2, .sec-modal[open] .sec-modal__sub { animation: sec-blur-in .6s var(--ui-ease) both; animation-delay: .06s; }
.sec-modal[open] .sec-modal__sub { animation-delay: .14s; }
.sec-modal__head > .ui-icon-btn { flex: 0 0 auto; margin: -.4rem -.6rem 0 0; }
.sec-modal__body { display: grid; gap: 1rem; padding: 1.25rem 1.5rem 1.5rem; overflow: auto; min-height: 0; }
.sec-modal__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .5rem; padding: 1rem 1.5rem;
  background: color-mix(in srgb, var(--ui-subtle) 55%, var(--ui-card)); border-top: 1px solid var(--ui-border);
}
.sec-modal__foot > .sec-modal__aside { display: inline-flex; align-items: center; gap: .5rem; margin-right: auto; }
.sec-modal__note { margin: 0; font-size: .875rem; line-height: 1.6; color: var(--ui-muted); }
.sec-modal__error { margin: -.35rem 0 0; font-size: .8125rem; font-weight: 550; line-height: 1.45; color: var(--ui-bad); animation: sec-blur-in .3s var(--ui-ease); }
.sec-modal__error:empty { display: none; }
.sec-deadline { display: inline-flex; align-items: center; gap: .5rem; font-size: .8125rem; font-weight: 600; color: var(--ui-warn); }
/* "7 days left": a live dot that breathes. */
.sec-deadline::before {
  content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor;
  box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 45%, transparent); animation: sec-breathe 2.2s ease-out infinite;
}
@keyframes sec-breathe { 70%, 100% { box-shadow: 0 0 0 .4rem transparent; } }

/* ── Choices (magic cards): the 2FA pop-up and "Confirm it's you" ─────────────────────────────────────────────── */
.sec-options { display: grid; gap: .65rem; margin: 0; padding: 0; list-style: none; }
.sec-option {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1rem; width: 100%; padding: 1rem 1rem 1rem 1.15rem;
  font: inherit; text-align: left; color: var(--ui-fg); background: var(--ui-card); border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius); cursor: pointer;
  transition: transform .3s var(--ui-ease), border-color .2s, background .25s, box-shadow .3s var(--ui-ease), opacity .25s;
  animation: sec-blur-in .55s var(--ui-ease) both; animation-delay: calc(var(--i, 0) * 70ms + 160ms);
}
.sec-option:hover {
  transform: translateY(-2px); border-color: color-mix(in srgb, var(--ui-primary) 32%, var(--ui-border));
  box-shadow: 0 14px 32px -16px color-mix(in srgb, var(--ui-primary) 45%, transparent);
}
.sec-option:active { transform: scale(.985); transition-duration: .1s; }
.sec-option:focus-visible { outline: none; border-color: var(--ui-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ui-primary) 22%, transparent); }
.sec-option[disabled] { cursor: progress; }
.sec-option__text { display: grid; gap: .3rem; min-width: 0; }
.sec-option__name { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .9375rem; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.sec-option__note { font-size: .8125rem; line-height: 1.45; color: var(--ui-muted); }
.sec-option__go {
  position: relative; display: grid; place-items: center; width: 2rem; height: 2rem; font-size: 1rem; color: var(--ui-faint);
  background: var(--ui-subtle); border-radius: 50%; transition: transform .35s var(--ui-ease), color .2s, background .2s;
}
.sec-option:hover .sec-option__go { color: var(--ui-primary); background: var(--ui-primary-soft); transform: translateX(3px); }
.sec-option[data-best] { border-color: color-mix(in srgb, var(--ui-primary) 30%, var(--ui-border)); }
/* Picked: a primary ring, the arrow becomes a tick that springs in with a ripple; the other choices step back. */
.sec-option[aria-pressed="true"] {
  transform: none; border-color: var(--ui-primary); background: color-mix(in srgb, var(--ui-primary) 5%, var(--ui-card));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ui-primary) 14%, transparent);
}
.sec-option[aria-pressed="true"] .sec-option__go { color: #fff; background: var(--ui-primary); transform: none; animation: sec-tick .5s cubic-bezier(.2, .9, .3, 1.4) both; }
.sec-option[aria-pressed="true"] .sec-option__go::after {
  content: ""; position: absolute; inset: 0; border: 2px solid var(--ui-primary); border-radius: 50%; animation: sec-ring .7s ease-out both;
}
@keyframes sec-tick { from { transform: scale(.4); opacity: 0; } }
@keyframes sec-ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.9); opacity: 0; } }
.sec-options:has(.sec-option[aria-pressed="true"]) .sec-option:not([aria-pressed="true"]):not(:hover):not(:focus-visible) { opacity: .55; }
/* Waiting (passkey prompt, sending the email): a ring runs round the tick. */
.sec-option.is-busy .sec-option__go::before {
  content: ""; position: absolute; inset: -4px; border: 2px solid transparent; border-top-color: var(--ui-primary); border-radius: 50%;
  animation: sec-spin .8s linear infinite;
}
@keyframes sec-spin { to { transform: rotate(360deg); } }
/* "Recommended": animated gradient text in a hairline pill (Magic UI animated gradient text). */
.sec-badge {
  display: inline-flex; align-items: center; height: 1.375rem; padding: 0 .6rem; font-size: .6875rem; font-weight: 650; letter-spacing: .02em;
  color: transparent; background: linear-gradient(90deg, #ffaa40, #9c40ff, #ffaa40) 0 0 / 300% 100%; -webkit-background-clip: text; background-clip: text;
  border-radius: 999px; box-shadow: inset 0 0 0 1px color-mix(in srgb, #9c40ff 30%, var(--ui-border)); animation: sec-gradient 8s linear infinite;
}
@keyframes sec-gradient { to { background-position: 300% 0; } }

/* A step that opens under a choice (the code to type): grows open instead of jumping. */
.sec-reveal { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .4s var(--ui-ease), opacity .35s var(--ui-ease); }
.sec-reveal > * { min-height: 0; overflow: hidden; }
.sec-reveal.is-open { grid-template-rows: 1fr; opacity: 1; }
/* "Confirm it's you" body: no grid gap, so the closed code box takes no room (its spacing is clipped with it). */
.sec-proof { display: grid; }
.sec-proof .sec-reveal .sec-otp { margin-top: 1.15rem; }
.sec-proof .sec-modal__error { margin-top: .65rem; }
/* "Try another way" (Google's): the best way first, the others behind this link. */
.sec-more {
  justify-self: start; margin-top: .9rem; padding: 0; font: inherit; font-size: .875rem; font-weight: 600; color: var(--ui-primary);
  background: none; border: 0; cursor: pointer;
}
.sec-more:hover { text-decoration: underline; }
.sec-more[hidden], .sec-options > li[hidden] { display: none; }
.sec-check { display: flex; align-items: center; gap: .55rem; margin-top: 1rem; font-size: .875rem; color: var(--ui-fg-2); cursor: pointer; }
/* css/drobo.css resets every input to appearance: none, which leaves a bare checkbox with nothing to see. */
.sec-check input { flex: 0 0 auto; width: 1rem; height: 1rem; margin: 0; -webkit-appearance: checkbox; appearance: auto; accent-color: var(--ui-primary); }

/* ── Six-slot code (one real input over six slots; js/drobo-proof.js otp) ─────────────────────────────────────── */
.sec-otp { display: grid; gap: .6rem; padding: 3px; }
.sec-otp__label { font-size: .8125rem; font-weight: 600; color: var(--ui-fg-2); }
.sec-otp__slots { position: relative; display: grid; grid-template-columns: repeat(6, 3rem); gap: .5rem; width: max-content; max-width: 100%; }
/* !important: drobo.css styles every text input (input:not([type=checkbox]):not(…) :hover/:focus, a dark fill and a
   ring) at a higher specificity; this one is an invisible layer over the slots. */
.sec-otp__slots > input {
  position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; padding: 0; font-size: 16px; color: transparent;
  caret-color: transparent; background: transparent !important; border: 0 !important; box-shadow: none !important;
  outline: none !important; cursor: text;
}
.sec-otp__slots > input::selection { color: transparent; background: transparent; }
.sec-otp__slot {
  position: relative; display: grid; place-items: center; height: 3.25rem; font-size: 1.375rem; font-weight: 650;
  font-variant-numeric: tabular-nums; color: var(--ui-fg); background: var(--ui-card); border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-md); transition: border-color .15s, box-shadow .2s, color .2s, background .2s;
}
.sec-otp__slot.is-filled { animation: sec-pop .3s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes sec-pop { from { transform: scale(.85); } }
.sec-otp__slots:focus-within .sec-otp__slot.is-active { border-color: var(--ui-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ui-primary) 18%, transparent); }
.sec-otp__slots:focus-within .sec-otp__slot.is-active:empty::after {
  content: ""; width: 2px; height: 1.35rem; background: var(--ui-fg); border-radius: 1px; animation: sec-caret 1s steps(1) infinite;
}
@keyframes sec-caret { 50% { opacity: 0; } }
.sec-otp.is-wrong .sec-otp__slots { animation: sec-shake .4s var(--ui-ease); }
.sec-otp.is-wrong .sec-otp__slot { border-color: var(--ui-bad); background: color-mix(in srgb, var(--ui-bad) 4%, var(--ui-card)); }
.sec-otp.is-done .sec-otp__slot {
  border-color: var(--ui-ok); color: var(--ui-ok); background: color-mix(in srgb, var(--ui-ok) 6%, var(--ui-card));
  animation: sec-pop .35s cubic-bezier(.2, .9, .3, 1.4) both; animation-delay: calc(var(--n, 0) * 40ms);
}
@keyframes sec-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* ── Authenticator setup ────────────────────────────────────────────────────────────────────────────────────────── */
.sec-totp { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.sec-qr {
  position: relative; display: grid; place-items: center; width: 10.5rem; aspect-ratio: 1; padding: .5rem; background: #fff;
  border: 1px solid var(--ui-border); border-radius: var(--ui-radius); box-shadow: var(--ui-shadow-sm); animation: sec-blur-in .6s var(--ui-ease) .15s both;
}
.sec-qr svg { display: block; width: 100%; height: 100%; }
.sec-steps { display: grid; gap: 1.15rem; margin: 0; padding: 0; list-style: none; counter-reset: sec-step; }
.sec-steps > li {
  display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: .75rem; align-items: start; counter-increment: sec-step;
  animation: sec-blur-in .55s var(--ui-ease) both; animation-delay: calc(var(--i, 0) * 80ms + 220ms);
}
.sec-steps > li:nth-child(2) { --i: 1; }
.sec-steps > li::before {
  content: counter(sec-step); display: grid; place-items: center; width: 1.5rem; height: 1.5rem; font-size: .75rem; font-weight: 700;
  color: var(--ui-fg-2); background: var(--ui-subtle); border: 1px solid var(--ui-border); border-radius: 50%;
}
.sec-steps__title { margin: .1rem 0 .2rem; font-size: .9375rem; font-weight: 600; line-height: 1.35; }
.sec-steps__note { margin: 0; font-size: .8125rem; line-height: 1.55; color: var(--ui-muted); }
.sec-steps .ui-btn--sm { margin-top: .65rem; }
.sec-key {
  display: flex; align-items: center; gap: .25rem; margin-top: .6rem; padding: .3rem .3rem .3rem .75rem; background: var(--ui-subtle);
  border: 1px solid var(--ui-border); border-radius: var(--ui-radius-md);
}
/* 21ch: the 32-letter key (8 groups of 4) breaks between groups, 4 per line. */
.sec-key code { flex: 0 1 auto; max-width: 21ch; min-width: 0; margin-right: auto; font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8125rem; line-height: 1.55; letter-spacing: .04em; user-select: all; }
.sec-totp__code { grid-column: 1 / -1; display: grid; gap: .75rem; padding-top: 1.25rem; border-top: 1px dashed var(--ui-border); }
.sec-totp__code .sec-modal__error { margin: 0; }

/* ── Backup codes ───────────────────────────────────────────────────────────────────────────────────────────────── */
.sec-codes {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem 1.25rem; margin: 0; padding: 1.1rem 1.25rem 1.1rem 2.5rem;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9375rem; letter-spacing: .05em;
  background: var(--ui-subtle); border: 1px solid var(--ui-border); border-radius: var(--ui-radius); user-select: all;
}
.sec-codes li { animation: sec-blur-in .45s var(--ui-ease) both; animation-delay: calc(var(--i, 0) * 40ms + 160ms); }
.sec-codes li::marker { font-size: .75rem; color: var(--ui-faint); }

/* ── A field in a pop-up (change email) ─────────────────────────────────────────────────────────────────────────── */
.sec-field { display: grid; gap: .5rem; }
.sec-field > span { font-size: .8125rem; font-weight: 600; color: var(--ui-fg-2); }
.sec-field .ui-input { height: var(--ui-h-field); }
.sec-field .sec-modal__error { margin: .1rem 0 0; }

/* ── Settings → Security (a working screen: calm, no motion beyond the cards arriving) ─────────────────────────── */
.sec__head.ui-card__head { display: flex; flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.sec .st-value { display: inline-flex; align-items: center; gap: .5rem; justify-self: end; margin-left: auto; }
.sec__group { display: grid; gap: .85rem; padding: 1.25rem 1.25rem 1.35rem; border-top: 1px solid var(--ui-border); }
.sec__title { margin: 0; font-size: .9375rem; font-weight: 650; letter-spacing: -.01em; color: var(--ui-fg); }
.sec__sub { margin: -.5rem 0 0; font-size: .8125rem; line-height: 1.5; color: var(--ui-muted); }
.sec__methods { display: grid; gap: .65rem; margin: 0; padding: 0; list-style: none; }
.sec-method {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .75rem 1.25rem; padding: 1rem 1.15rem;
  background: var(--ui-card); border: 1px solid var(--ui-border); border-radius: var(--ui-radius);
  transition: border-color .2s, box-shadow .25s var(--ui-ease);
}
.sec-method:hover { border-color: color-mix(in srgb, var(--ui-primary) 25%, var(--ui-border)); box-shadow: var(--ui-shadow-sm); }
.sec-method[data-on] { border-color: color-mix(in srgb, var(--ui-ok) 32%, var(--ui-border)); background: color-mix(in srgb, var(--ui-ok) 3%, var(--ui-card)); }
.sec-method__text { display: grid; gap: .3rem; min-width: 0; }
.sec-method__name { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0; font-size: .9375rem; font-weight: 600; color: var(--ui-fg); }
.sec-method__note { margin: 0; font-size: .8125rem; line-height: 1.55; color: var(--ui-muted); }
.sec-method__side { display: flex; align-items: center; gap: .5rem; justify-self: end; }
.sec-method__side .ui-btn--sm { min-width: 6.5rem; }
.sec-method__keys { grid-column: 1 / -1; }
.sec-keys { display: grid; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.sec-keys > li {
  display: flex; align-items: center; gap: .75rem; min-height: 2.5rem; padding: .3rem .35rem .3rem .85rem; font-size: .8125rem;
  background: var(--ui-subtle); border: 1px solid var(--ui-border); border-radius: var(--ui-radius-md); animation: sec-blur-in .45s var(--ui-ease) both;
}
.sec-keys__name { flex: 1 1 auto; min-width: 0; font-weight: 600; color: var(--ui-fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sec-keys__when { flex: 0 0 auto; color: var(--ui-faint); }
.sec-keys .ui-icon-btn:hover { color: var(--ui-bad); background: color-mix(in srgb, var(--ui-bad) 10%, transparent); }
.sec-keys__name small { font-weight: 500; color: var(--ui-muted); }
/* Your devices and Recent activity (2026-10-28): small labels over the lists, "This device", the actions row. */
.sec__label { margin: .25rem 0 -.4rem; font-size: .75rem; font-weight: 650; letter-spacing: .02em; color: var(--ui-faint); }
.sec-tag {
  display: inline-flex; align-items: center; height: 1.25rem; margin-left: .5rem; padding: 0 .5rem; font-size: .6875rem; font-weight: 650;
  vertical-align: 1px; color: var(--ui-ok); background: color-mix(in srgb, var(--ui-ok) 9%, transparent); border-radius: 999px;
}
.sec__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding-top: .25rem; }
.sec-activity > li { min-height: 2.25rem; padding-right: .85rem; }
.sec-activity > li[data-tone="warn"] .sec-keys__name { color: var(--ui-warn); }
@media (max-width: 560px) {
  .sec-method { grid-template-columns: minmax(0, 1fr); }
  .sec-method__side { justify-self: start; }
  .sec-keys > li { flex-wrap: wrap; row-gap: .1rem; }
  .sec-keys__name { flex-basis: 100%; white-space: normal; }
}

/* ── "Verify your email" bar (dashboard) ────────────────────────────────────────────────────────────────────────── */
.sec-banner {
  display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1rem; margin: 0 0 1.25rem; padding: .75rem .75rem .75rem 1.1rem;
  background: color-mix(in srgb, var(--ui-warn) 7%, var(--ui-card)); border: 1px solid color-mix(in srgb, var(--ui-warn) 28%, var(--ui-border));
  border-radius: var(--ui-radius);
}
.sec-banner__text { flex: 1 1 16rem; min-width: 0; margin: 0; font-size: .875rem; line-height: 1.5; color: var(--ui-fg); }
.sec-banner__text span { color: var(--ui-muted); }

/* ── Sign-in card: passkey button and the second step (same cards as the pop-ups' choices) ─────────────────────── */
.ui-auth .auth-passkey { margin-top: .625rem; gap: .625rem; }      /* under Continue with Google, apart as the form's fields */
.auth-passkey .ti { font-size: 1.05rem; }
.ui-auth-2fa { display: grid; gap: .9rem; }
.ui-auth-2fa__ways { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.ui-auth-2fa__way {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .25rem 1rem; width: 100%;
  padding: .9rem 1rem .9rem 1.1rem; font: inherit; font-size: .9375rem; font-weight: 600; letter-spacing: -.01em; text-align: left;
  color: var(--ui-fg); background: var(--ui-card); border: 1px solid var(--ui-border); border-radius: var(--ui-radius-md); cursor: pointer;
  transition: transform .3s var(--ui-ease), border-color .2s, background .25s, box-shadow .3s var(--ui-ease), opacity .25s;
  animation: sec-blur-in .55s var(--ui-ease) both;
}
.ui-auth-2fa__ways li:nth-child(2) .ui-auth-2fa__way { animation-delay: 70ms; }
.ui-auth-2fa__ways li:nth-child(3) .ui-auth-2fa__way { animation-delay: 140ms; }
.ui-auth-2fa__ways li:nth-child(4) .ui-auth-2fa__way { animation-delay: 210ms; }
.ui-auth-2fa__way::after {
  content: "\ea61"; grid-column: 2; grid-row: 1 / span 2; display: grid; place-items: center; width: 2rem; height: 2rem;
  font-family: "tabler-icons"; font-size: 1rem; font-weight: 400; color: var(--ui-faint); background: var(--ui-subtle); border-radius: 50%;
  transition: transform .35s var(--ui-ease), color .2s, background .2s;
}
.ui-auth-2fa__way small { grid-column: 1; font-size: .8125rem; font-weight: 500; letter-spacing: 0; line-height: 1.45; color: var(--ui-muted); }
.ui-auth-2fa__way:hover {
  transform: translateY(-2px); border-color: color-mix(in srgb, var(--ui-primary) 32%, var(--ui-border));
  box-shadow: 0 14px 32px -16px color-mix(in srgb, var(--ui-primary) 45%, transparent);
}
.ui-auth-2fa__way:hover::after { color: var(--ui-primary); background: var(--ui-primary-soft); transform: translateX(3px); }
.ui-auth-2fa__way:active { transform: scale(.985); transition-duration: .1s; }
.ui-auth-2fa__way:focus-visible { outline: none; border-color: var(--ui-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ui-primary) 22%, transparent); }
.ui-auth-2fa__way[aria-pressed="true"] {
  transform: none; border-color: var(--ui-primary); background: color-mix(in srgb, var(--ui-primary) 5%, var(--ui-card));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ui-primary) 14%, transparent);
}
.ui-auth-2fa__way[aria-pressed="true"]::after { content: "\ea5e"; color: #fff; background: var(--ui-primary); transform: none; animation: sec-tick .5s cubic-bezier(.2, .9, .3, 1.4) both; }
.ui-auth-2fa__ways:has([aria-pressed="true"]) .ui-auth-2fa__way:not([aria-pressed="true"]):not(:hover):not(:focus-visible) { opacity: .55; }
#auth-2fa-form:not([hidden]) { animation: sec-blur-in .45s var(--ui-ease) both; }
.ui-auth-2fa__more { justify-self: start; font-size: .875rem; font-weight: 600; }
.ui-auth-2fa__ways > li[hidden], .ui-auth-2fa__more[hidden] { display: none; }

/* ── Phones: pop-ups are sheets that slide up from the bottom, full width, buttons share the row ─────────────────── */
@keyframes sec-sheet-in { from { transform: translateY(100%); } }
@media (max-width: 560px) {
  .sec-modal, .sec-modal--wide {
    inset: auto 0 0 0; width: 100%; max-height: calc(100dvh - 1.25rem); margin: 0; border-radius: 1.5rem 1.5rem 0 0;
    box-shadow: 0 -20px 60px -20px rgba(15, 23, 42, .4), 0 0 0 1px var(--ui-border);
  }
  .sec-modal[open] { animation: sec-sheet-in .55s cubic-bezier(.22, 1, .36, 1) both; }
  .sec-modal__head { padding: 1.85rem 1.25rem .25rem; }
  .sec-modal__head::before {
    content: ""; position: absolute; top: .65rem; left: 50%; width: 2.25rem; height: .3rem; margin-left: -1.125rem;
    background: var(--ui-border-strong); border-radius: 999px;
  }
  .sec-modal__head h2 { font-size: 1.1875rem; }
  .sec-modal__body { padding: 1.1rem 1.25rem 1.35rem; }
  .sec-modal__foot { gap: .6rem; padding: .9rem 1.25rem calc(.9rem + env(safe-area-inset-bottom)); }
  .sec-modal__foot > .ui-btn { flex: 1 1 0; height: 2.75rem; }
  .sec-modal__foot > .sec-modal__aside { flex: 1 1 100%; justify-content: center; margin: 0; }
  .sec-totp { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .sec-qr { justify-self: center; width: 11rem; }
  .sec-otp__slots { grid-template-columns: repeat(6, minmax(0, 1fr)); width: 100%; }
  .sec-codes { padding-left: 2.25rem; column-gap: 1rem; font-size: .875rem; }
}
@media (prefers-reduced-motion: reduce) {
  .sec-modal[open], .sec-modal[open] .sec-modal__head h2, .sec-modal[open] .sec-modal__sub, .sec-option, .sec-qr, .sec-steps > li,
  .sec-codes li, .sec-keys > li, .ui-auth-2fa__way, #auth-2fa-form:not([hidden]), .sec-option[aria-pressed="true"] .sec-option__go,
  .sec-option[aria-pressed="true"] .sec-option__go::after, .ui-auth-2fa__way[aria-pressed="true"]::after, .sec-otp__slot.is-filled,
  .sec-otp.is-wrong .sec-otp__slots, .sec-otp.is-done .sec-otp__slot, .sec-modal__error, .sec-deadline::before, .sec-badge { animation: none; }
  .sec-reveal { transition: none; }
}
