/* UltraCodey account portal — extends /assets/style.css (load both).
   Uses the same tokens: --bg --ink --muted --line --violet --radius … */

:root {
  --uc-red: #d8344f;
  --uc-red-soft: #fdeef1;
  --uc-amber-soft: #fff6e6;
  --uc-blue-soft: #ecf4ff;
  --uc-green-soft: #e9f8f1;
}

/* ───────────────────────── portal shell ───────────────────────── */

.portal-main {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(28px, 4vw, 48px) 0 clamp(48px, 6vw, 72px);
}

.portal-main.narrow {
  width: min(460px, calc(100% - 32px));
}

.portal-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  gap: 22px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.portal-links a {
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 180ms ease;
}

.portal-links a:hover {
  color: var(--ink);
}

.portal-links a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--violet);
}

.portal-title {
  margin-bottom: 22px;
}

.portal-title h1 {
  max-width: none;
  margin: 0;
  font-size: 2.1rem;
  line-height: 1.15;
  text-align: left;
}

.portal-title p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

/* ───────────────────────── cards + grid ───────────────────────── */

.acct-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-tight);
}

.acct-card + .acct-card {
  margin-top: 16px;
}

.acct-card > h2 {
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1.25;
}

.acct-card .card-sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.acct-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.acct-grid > .acct-card {
  margin: 0;
  min-width: 0;
}

.acct-grid .span-2 {
  grid-column: 1 / -1;
}

/* ───────────────────────── status + chips ───────────────────────── */

.uc-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--paper-soft);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.uc-chip.good { color: #0d6b41; background: var(--uc-green-soft); border-color: rgba(22, 167, 101, 0.28); }
.uc-chip.info { color: #0a52c0; background: var(--uc-blue-soft); border-color: rgba(22, 119, 255, 0.26); }
.uc-chip.warn { color: #7a5200; background: var(--uc-amber-soft); border-color: rgba(255, 178, 63, 0.45); }
.uc-chip.bad { color: #a3203a; background: var(--uc-red-soft); border-color: rgba(216, 52, 79, 0.3); }
.uc-chip.violet { color: var(--violet); background: #f1efff; border-color: rgba(75, 53, 255, 0.24); }

/* ───────────────────────── hero ───────────────────────── */

.acct-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.acct-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(160deg, var(--violet), var(--blue));
  font-size: 2rem;
  font-weight: 900;
  user-select: none;
}

.acct-identity .name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.acct-identity .display-name {
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.acct-identity .email-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.94rem;
  overflow-wrap: anywhere;
}

.acct-identity .chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.name-edit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.name-edit input {
  min-width: 200px;
}

/* level block */

.level-block {
  grid-column: 1 / -1;
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.level-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(19, 29, 49, 0.16);
}

.level-num {
  font-size: 1.05rem;
  font-weight: 900;
}

.prestige-stars {
  color: var(--amber);
  font-size: 0.95rem;
  letter-spacing: 2px;
}

.xp-meta {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.xp-bar {
  position: relative;
  height: 10px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft);
}

.xp-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), var(--blue));
  transition: width 600ms ease;
}

/* ───────────────────────── stat tiles ───────────────────────── */

.stat-tiles {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.stat-tile {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-tight);
}

.stat-tile strong {
  display: block;
  font-size: 1.32rem;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.stat-tile span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ───────────────────────── lists: messages / achievements ───────────────── */

.uc-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.uc-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(247, 248, 251, 0.6);
  text-align: left;
  font: inherit;
  color: inherit;
}

button.uc-row {
  width: 100%;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
}

button.uc-row:hover {
  border-color: rgba(75, 53, 255, 0.38);
  background: #ffffff;
}

.uc-row .row-body {
  min-width: 0;
  flex: 1 1 auto;
}

.uc-row .row-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.95rem;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.uc-row .row-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.uc-row .row-time {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.msg-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--line-strong);
}

.uc-row.sev-info .msg-dot { background: var(--blue); }
.uc-row.sev-warning .msg-dot { background: var(--amber); }
.uc-row.sev-critical .msg-dot { background: var(--uc-red); }

.uc-row.unread {
  border-color: rgba(75, 53, 255, 0.3);
  background: #ffffff;
}

.unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--violet);
  font-size: 0.72rem;
  font-weight: 900;
}

/* ───────────────────────── tables ───────────────────────── */

.uc-table-wrap {
  margin-top: 14px;
  overflow-x: auto;
}

.uc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.uc-table th {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.uc-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  overflow-wrap: anywhere;
}

.uc-table tr:last-child td {
  border-bottom: 0;
}

/* ───────────────────────── forms ───────────────────────── */

.uc-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.uc-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  font-weight: 850;
}

.uc-field input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
}

.uc-field input:focus-visible,
.name-edit input:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 1px;
  border-color: var(--violet);
}

.uc-field .field-hint {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.78rem;
}

.name-edit input {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.95rem;
}

.uc-form .button {
  width: 100%;
  cursor: pointer;
  font-family: inherit;
}

button.button {
  cursor: pointer;
  font-family: inherit;
}

.button.small {
  min-height: 34px;
  padding: 0 14px;
  font-size: 0.8rem;
}

.button[disabled] {
  opacity: 0.55;
  pointer-events: none;
}

.button:focus-visible,
.uc-row:focus-visible,
a:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}

.form-foot {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.55;
  text-align: center;
}

.form-foot a,
.text-link {
  color: var(--violet);
  font-weight: 800;
}

.text-link:hover,
.form-foot a:hover {
  text-decoration: underline;
}

/* Google sign-in */

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line, rgba(15, 18, 34, 0.1));
}

.google-btn-host {
  display: flex;
  justify-content: center;
  min-height: 44px;
}

/* auth tabs */

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 18px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-soft);
}

.auth-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 850;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.auth-tabs button[aria-selected="true"] {
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(19, 29, 49, 0.08);
}

.auth-tabs button:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 1px;
}

.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.auth-brand img {
  border-radius: 50%;
}

.auth-brand h1 {
  max-width: none;
  font-size: 1.7rem;
  line-height: 1.2;
}

.auth-brand p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ───────────────────────── notices / states ───────────────────────── */

.uc-notice {
  display: none;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
  font-size: 0.88rem;
  line-height: 1.5;
}

.uc-notice.show { display: block; }
.uc-notice.error { border-color: rgba(216, 52, 79, 0.35); background: var(--uc-red-soft); color: #8e1f33; }
.uc-notice.success { border-color: rgba(22, 167, 101, 0.32); background: var(--uc-green-soft); color: #0d6b41; }
.uc-notice.warn { border-color: rgba(255, 178, 63, 0.5); background: var(--uc-amber-soft); color: #7a5200; }

.uc-empty {
  margin-top: 14px;
  padding: 22px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.uc-loading {
  padding: 48px 20px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
}

.uc-loading::before {
  content: "";
  display: block;
  width: 26px;
  height: 26px;
  margin: 0 auto 14px;
  border: 3px solid var(--soft);
  border-top-color: var(--violet);
  border-radius: 50%;
  animation: ucSpin 800ms linear infinite;
}

@keyframes ucSpin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .uc-loading::before { animation: none; }
  .xp-bar > span { transition: none; }
}

/* blocked account */

.blocked-card {
  padding: 34px 26px;
  border: 1px solid rgba(216, 52, 79, 0.35);
  border-radius: var(--radius);
  background: var(--uc-red-soft);
  text-align: center;
}

.blocked-card.paused {
  border-color: rgba(255, 178, 63, 0.55);
  background: var(--uc-amber-soft);
}

.blocked-card h2 {
  font-size: 1.5rem;
}

.blocked-card p {
  max-width: 520px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.blocked-card .actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* ───────────────────────── plans (subscription) ───────────────────────── */

.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.plan-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-tight);
}

.plan-card.current {
  border-color: rgba(75, 53, 255, 0.45);
  background: linear-gradient(180deg, #ffffff, #f8f7ff);
}

.plan-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
}

.plan-card .plan-price {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.plan-card ul {
  display: grid;
  gap: 9px;
  margin: 16px 0 20px;
}

.plan-card li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.plan-card li::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(22, 167, 101, 0.12);
}

.plan-card .button {
  margin-top: auto;
  width: 100%;
}

/* ───────────────────────── help / FAQ ───────────────────────── */

.faq-card {
  scroll-margin-top: 92px;
}

.faq-card h2 {
  font-size: 1.2rem;
}

.faq-card p,
.faq-card li {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.62;
}

.faq-card ul {
  margin-top: 4px;
  padding-left: 18px;
  list-style: disc;
}

.faq-card strong {
  color: var(--ink);
}

.help-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.help-toc a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  transition: border-color 180ms ease, color 180ms ease;
}

.help-toc a:hover {
  border-color: var(--violet);
  color: var(--ink);
}

/* ───────────────────────── settings rows ───────────────────────── */

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.settings-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.settings-row .row-label strong {
  display: block;
  font-size: 0.94rem;
  font-weight: 850;
}

.settings-row .row-label span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.84rem;
}

/* ───────────────────────── responsive ───────────────────────── */

@media (max-width: 980px) {
  .stat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plan-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .acct-grid { grid-template-columns: 1fr; }
  .portal-main { width: min(100% - 28px, 1080px); }
  .portal-links { gap: 14px; font-size: 0.82rem; flex-wrap: wrap; }
  .acct-hero { grid-template-columns: auto minmax(0, 1fr); }
  .xp-meta { margin-left: 0; width: 100%; }
}

@media (max-width: 520px) {
  .stat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acct-hero { grid-template-columns: 1fr; justify-items: start; }
  .portal-title h1 { font-size: 1.7rem; }
  .uc-row .row-time { display: none; }
}

/* ───────────────────────── security card ───────────────────────── */

#security {
  scroll-margin-top: 92px; /* deep links from /account/#security land below the nav */
}

.sec-block {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.sec-block h3 {
  font-size: 1rem;
  font-weight: 900;
}

.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.sec-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.sec-row .sec-note {
  flex: 1 1 280px;
}

.sec-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.sec-block .uc-notice {
  margin-top: 12px;
}

/* two-factor setup */

.twofa-setup {
  margin-top: 14px;
}

.twofa-steps {
  display: grid;
  gap: 6px;
  padding-left: 20px;
  list-style: decimal;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.twofa-media {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.twofa-qr {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.twofa-qr canvas {
  display: block;
}

.twofa-secret {
  flex: 1 1 220px;
  min-width: 0;
  display: grid;
  gap: 8px;
  align-content: start;
}

.twofa-secret > span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.twofa-secret code {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  overflow-wrap: anywhere;
  user-select: all;
}

.twofa-secret .button {
  justify-self: start;
}

.twofa-confirm {
  max-width: 360px;
  margin-top: 16px;
}

.twofa-confirm .uc-field input {
  letter-spacing: 0.2em;
  font-weight: 800;
}

.pw-form {
  max-width: 360px;
}

/* recovery codes */

.recovery-panel {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 178, 63, 0.5);
  border-radius: var(--radius);
  background: var(--uc-amber-soft);
}

.recovery-panel h4 {
  font-size: 0.98rem;
  font-weight: 900;
}

.recovery-codes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
  padding: 0;
  list-style: none;
  counter-reset: rc;
}

.recovery-codes li {
  counter-increment: rc;
}

.recovery-codes code {
  display: block;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  overflow-wrap: anywhere;
  user-select: all;
}

.recovery-panel .sec-actions {
  margin-top: 4px;
}

/* error shake (MFA + confirm inputs) */

@keyframes ucShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

.uc-shake {
  animation: ucShake 360ms ease;
}

@media (prefers-reduced-motion: reduce) {
  .uc-shake { animation: none; }
}

/* ───────────────────────── admin: segmented filter + queue ───────────────────────── */

.seg {
  display: inline-flex;
  gap: 5px;
  margin-top: 16px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-soft);
}

.seg button {
  min-height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.seg button[aria-selected="true"] {
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(19, 29, 49, 0.08);
}

.seg button:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 1px;
}

.admin-table .note-cell {
  max-width: 260px;
  color: var(--muted);
}

.admin-table .row-foot {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.76rem;
}

.row-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.deny-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.deny-inline input {
  min-height: 34px;
  min-width: 170px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.84rem;
}

.deny-inline input:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 1px;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
}

.pager-info {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

@media (max-width: 560px) {
  .recovery-codes { grid-template-columns: 1fr; }
  .seg { display: flex; flex-wrap: wrap; border-radius: var(--radius); }
}
