/* ============================================================
 * /app/settings/ - Subscription + 2FA + Devices + Compliance
 * ============================================================ */

.set-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.set-tier-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  transition: border-color 200ms ease, transform 200ms ease;
}
.set-tier-card:hover {
  border-color: var(--brand-primary-bright, #3b82f6);
  transform: translateY(-2px);
}
.set-tier-card[data-current="true"] {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.06);
}
.set-tier-name {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-strong);
}
.set-tier-headline {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
  min-height: 32px;
}
.set-tier-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: auto;
}
.set-tier-price-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.set-tier-price-cycle {
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.set-tier-cta {
  margin-top: 6px;
  background: linear-gradient(135deg, var(--brand-primary-bright, #3b82f6), var(--brand-primary, #2563EB));
  color: #fff;
  border: 0;
  padding: 9px 14px;
  border-radius: 9px;
  font-family: var(--font-brand, "Manrope", sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  cursor: pointer;
}
.set-tier-cta[data-tone="current"] {
  background: rgba(16, 185, 129, 0.16);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.40);
  cursor: default;
}
.set-tier-cta[data-tone="talk"] {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-strong);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
}

/* ── Tier comparison matrix ──────────────────────────────── */
.set-matrix-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: 10px;
}
.set-matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  color: var(--text-muted);
}
.set-matrix th, .set-matrix td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
  vertical-align: middle;
}
.set-matrix th {
  background: rgba(0, 0, 0, 0.20);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.set-matrix tr:hover td { background: rgba(0, 242, 255, 0.03); }
.set-matrix-feature {
  color: var(--text-strong);
  font-weight: 600;
}
.set-matrix-val {
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 11px;
}
.set-matrix-tier-free       { color: #94a3b8; }
.set-matrix-tier-pro        { color: var(--brand-primary-bright, #3b82f6); }
.set-matrix-tier-enterprise { color: #10b981; }

/* ── 2FA + compliance bullets ─────────────────────────────── */
.set-2fa-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.set-2fa-list li {
  position: relative;
  padding: 8px 12px 8px 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
}
.set-2fa-list li::before {
  content: "▸";
  position: absolute;
  left: 10px;
  top: 9px;
  color: var(--brand-primary-bright, #3b82f6);
  font-weight: 700;
}
.set-2fa-list strong { color: var(--text-strong); font-weight: 700; }
.set-2fa-list code {
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 11px;
}

/* ── Pass-156s - Passkey list ────────────────────────────────── */
.set-pk-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0.75rem 0;
}
.set-pk-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 11px;
}
.set-pk-ico {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(96, 165, 250, 0.12);
  border-radius: 10px;
  font-size: 1.15rem;
}
.set-pk-title {
  font-weight: 600;
  color: var(--text-strong, #e6efff);
  font-size: 0.94rem;
}
.set-pk-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2px;
  font-size: 0.78rem;
  color: var(--text-muted, rgba(230, 239, 255, 0.55));
}
.set-pk-foot > span::after { content: "·"; margin-left: 0.7rem; color: rgba(230,239,255,0.3); }
.set-pk-foot > span:last-child::after { content: ""; }

.set-pk-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.set-pk-status {
  margin: 0;
  font-size: 0.85rem;
  min-height: 1.2em;
  color: var(--text-muted, rgba(230, 239, 255, 0.55));
}
.set-pk-status[data-tone="error"]   { color: rgb(252, 165, 165); }
.set-pk-status[data-tone="success"] { color: rgb(134, 239, 172); }

.submit-btn-quiet {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-strong, #e6efff);
  font-size: 0.85rem;
  padding: 0.5rem 0.9rem;
}

/* ── Sprint B - TOTP UI ────────────────────────────────────── */
.set-totp-enrol {
  margin: 0.75rem 0;
  padding: 1rem 1.1rem;
  background: rgba(96, 165, 250, 0.06);
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 11px;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.set-totp-step {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-strong, #e6efff);
}
.set-totp-qr {
  display: flex;
  justify-content: center;
  margin: 12px 0;
}
.set-totp-qr svg {
  width: min(208px, 60vw);
  height: auto;
  border-radius: 10px;
  background: #fff;
}
.set-totp-qr[hidden] { display: none; }
.set-totp-uri {
  font-size: 0.85rem;
  color: rgb(147, 197, 253);
  text-decoration: underline;
  word-break: break-all;
}
.set-totp-key {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 1rem;
  letter-spacing: 0.08em;
  padding: 0.55rem 0.75rem;
  background: rgba(11, 20, 38, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  color: var(--text-strong, #e6efff);
  word-break: break-all;
  user-select: all;
}
.set-totp-verify {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
  /* Wraps on a phone: the code field plus "Verify + enable" side by side ran
     the button off the right edge of a 375px screen. */
  flex-wrap: wrap;
}
.set-totp-verify > * { min-width: 0; }
.set-totp-verify .submit-btn { flex: 1 1 12ch; }
.set-totp-verify input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.6rem 0.85rem;
  color: var(--text-strong, #e6efff);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  outline: none;
}
.set-totp-verify input:focus {
  border-color: rgba(96, 165, 250, 0.5);
}
.set-totp-codes {
  margin: 0.75rem 0;
  padding: 1rem 1.1rem;
  background: rgba(234, 179, 8, 0.06);
  border: 1px solid rgba(234, 179, 8, 0.32);
  border-radius: 11px;
}
.set-totp-codes-h {
  margin: 0 0 0.3rem 0;
  font-size: 1rem;
  color: var(--text-strong, #e6efff);
}
.set-totp-codes-warn {
  margin: 0 0 0.8rem 0;
  font-size: 0.85rem;
  color: rgb(253, 224, 71);
}
.set-totp-codes-list {
  list-style: none;
  margin: 0 0 0.85rem 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.4rem;
}
.set-totp-codes-list li {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  padding: 0.45rem 0.65rem;
  background: rgba(11, 20, 38, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--text-strong, #e6efff);
  user-select: all;
}
.set-totp-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

/* Pass-157 - Account controls (billing / export / delete) */
.set-account-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.set-account-foot {
  font-size: 12px;
  margin-top: 14px;
  min-height: 1.2em;
  color: rgba(241,245,249,0.55);
}

/* ── Family Pack panel ─────────────────────────────────────── */
.family-card .family-empty {
  padding: 14px 0;
  color: var(--text-muted, #94a3b8);
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.family-stats {
  display: flex; gap: 24px; flex-wrap: wrap;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.family-stats div { display: flex; flex-direction: column; gap: 2px; }
.family-stats strong {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-strong, #f1f5f9);
  font-family: var(--font-brand, "Manrope", sans-serif);
}
.family-stats span {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted, #94a3b8);
}
.family-members {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.family-member {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  font-size: 13px;
}
.family-member.is-owner {
  border-color: rgba(252,211,77,0.30);
  background: rgba(252,211,77,0.04);
}
.family-member-email { font-weight: 700; color: var(--text-strong); }
.family-member-dev {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.family-rm-btn {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 6px;
  border: 1px solid rgba(252,165,165,0.30);
  background: rgba(252,165,165,0.04);
  color: #fca5a5;
  cursor: pointer;
}
.family-rm-btn:hover { background: rgba(252,165,165,0.10); }
.family-invite {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.family-invite input,
.family-invite select {
  padding: 9px 11px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.30);
  color: var(--text-strong);
  font-size: 13px;
  font-family: inherit;
  min-width: 200px;
}
.family-status { margin-top: 10px; font-size: 12px; color: var(--text-muted); min-height: 1.2em; }
.family-status.is-error { color: #fca5a5; }
.family-status.is-ok    { color: #5eead4; }
/* Household invitations addressed to me, and the owner's pending rows. */
.family-invites { margin-bottom: 16px; }
.family-invites-h { margin: 0 0 4px; font-size: 14px; font-weight: 700; color: var(--text-strong); }
.family-invites-note { margin: 0 0 10px; font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.family-member.is-pending { border-style: dashed; }
.family-member.is-pending .prem-btn { margin-inline-start: auto; }
.family-card .prem-btn {
  font-family: var(--font-brand, "Manrope", sans-serif);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: var(--text-strong);
  cursor: pointer;
}
.family-card .prem-btn-primary {
  background: linear-gradient(135deg, #fcd34d, #f59e0b 70%);
  color: #1a0e00;
  border-color: transparent;
  box-shadow: 0 6px 16px -8px rgba(245,158,11,0.6);
}

/* ── Devices card (replaces the dead "Smart 2FA placeholder"
       + "Device registry placeholder" - WIRING_AUDIT_2026_05_18 §4) ── */
.set-dev-list {
  list-style: none; margin: 12px 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.set-dev-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; background: rgba(255,255,255,0.025);
  transition: opacity 240ms ease;
}
.set-dev-item.is-revoked { opacity: 0.45; }
.set-dev-row { display: flex; gap: 12px; align-items: center; width: 100%;
               justify-content: space-between; }
.set-dev-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.set-dev-name {
  font-weight: 600; color: var(--text-strong, #e7eef7);
  display: inline-flex; align-items: center; gap: 8px;
}
.set-dev-sub {
  font-size: 12px; color: var(--text-muted, #94a0b3);
  line-height: 1.4;
}
.set-dev-pill {
  display: inline-flex; align-items: center; padding: 2px 8px;
  border-radius: 999px; font-size: 10px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.set-dev-pill.is-trusted   { background: rgba(123, 230, 194, 0.16); color: #7be6c2; }
.set-dev-pill.is-untrusted { background: rgba(245, 158, 11, 0.20);  color: #f59e0b; }
.set-dev-empty {
  padding: 14px; color: var(--text-muted, #94a0b3);
  font-size: 13px; text-align: center;
  border: 1px dashed rgba(255,255,255,0.08); border-radius: 12px;
}
.set-dev-skel { padding: 14px; }

/* ── Settings page deep-link focus flash (WIRING_AUDIT §16).
       Highlight the targeted card for ~2s so the user sees where
       /app/security → "Manage TOTP" landed them. ───────────── */
@keyframes set-focus-flash-anim {
  0%   { box-shadow: 0 0 0 0 rgba(127, 207, 230, 0.0); }
  20%  { box-shadow: 0 0 0 4px rgba(127, 207, 230, 0.55); }
  100% { box-shadow: 0 0 0 0 rgba(127, 207, 230, 0.0); }
}
.set-focus-flash {
  animation: set-focus-flash-anim 2200ms ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .set-focus-flash { animation: none; outline: 2px solid rgba(127,207,230,0.6); }
}

/* ── Appearance selector (Dark / Light / Future) ─────────────────
   Segmented radio row driven by /_shared/vlx-theme.js. Uses the
   themed --vx-* roles so the control itself re-skins with the pick. */
.set-theme-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 0 2px;
}
.set-theme-opt {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-default, #C3CAD6);
  font: 600 0.92rem/1 var(--font-brand, "Inter", sans-serif);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}
.set-theme-opt:hover {
  border-color: var(--border-strong, rgba(177, 76, 255, 0.24));
  color: var(--text-strong, #F2F5FA);
}
.set-theme-opt.is-active {
  border-color: var(--brand-primary, #B14CFF);
  background: var(--brand-accent-soft, rgba(177, 76, 255, 0.18));
  color: var(--text-strong, #F2F5FA);
  box-shadow: var(--vlx-sh-glow, 0 0 0 1px rgba(177, 76, 255, 0.35));
}
/* Swatch dots preview each shell's canvas + accent. */
.set-theme-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  flex: none;
}
.set-theme-dot-dark   { background: linear-gradient(135deg, #10141F 55%, #B14CFF 56%); }
.set-theme-dot-light  { background: linear-gradient(135deg, #F3F6FB 55%, #9D3CF0 56%); border-color: rgba(14, 20, 34, 0.25); }
.set-theme-dot-future { background: linear-gradient(135deg, #05060B 55%, #00E5B8 56%); }

/* ── Guardian PIN gate + report modal (pin-gate.js / devices.js) ── */
.vlx-pin-overlay {
  position: fixed; inset: 0; z-index: 2147483000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(4, 8, 18, 0.86); /* no blur on a full-viewport overlay */
}
.vlx-pin-card {
  width: 100%; max-width: 420px;
  background: var(--vx-surface, rgba(16, 22, 36, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px; padding: 22px 22px 20px;
  box-shadow: 0 24px 64px -20px rgba(0, 0, 0, 0.7);
  display: flex; flex-direction: column; gap: 12px;
}
.vlx-pin-h { margin: 0; font-size: 18px; font-weight: 700; color: var(--text-strong, #e7eef7); }
.vlx-pin-note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-muted, #94a0b3); }
.vlx-pin-input {
  width: 100%; box-sizing: border-box;
  padding: 12px 14px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.30); color: var(--text-strong, #e7eef7);
  font-size: 16px; font-family: inherit; letter-spacing: 0.12em;
}
.vlx-pin-input:focus { outline: 2px solid rgba(127, 207, 230, 0.6); outline-offset: 1px; }
.vlx-pin-status { margin: 0; font-size: 12px; min-height: 1.2em; color: #fca5a5; }
.vlx-pin-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 4px; }
.set-dev-reasons { display: flex; flex-wrap: wrap; gap: 14px; }

/* ── Parental Controls panel (parental.js) ── */
.parental-block {
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.parental-h3 {
  margin: 0 0 4px; font-size: 15px; font-weight: 700;
  color: var(--text-strong, #e7eef7);
}
.parental-h4 {
  margin: 16px 0 8px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text-muted, #94a0b3);
}
.parental-note { margin: 0 0 10px; font-size: 12px; line-height: 1.5; color: var(--text-muted, #94a0b3); }
.parental-notice {
  margin-top: 12px; padding: 16px; border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.025);
  font-size: 13px; line-height: 1.5; color: var(--text-muted, #94a0b3);
}
.parental-link { color: var(--brand-ice, #7FCFE6); text-decoration: none; font-weight: 600; }
.parental-link:hover { text-decoration: underline; }
.parental-inline {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end;
  margin-top: 6px;
}
.parental-field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-muted, #94a0b3); }
.parental-inline input,
.parental-inline select,
.parental-field input,
.parental-field select {
  padding: 9px 11px; border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(0, 0, 0, 0.30); color: var(--text-strong, #e7eef7);
  font-size: 13px; font-family: inherit; min-width: 120px;
}
.parental-cats {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px 14px; margin-top: 6px;
}
.parental-check {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-default, #c3cad6); cursor: pointer;
}
.parental-block .parental-check { display: flex; margin-top: 8px; }
.parental-list, .parental-chips {
  list-style: none; margin: 10px 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.parental-chips { flex-direction: row; flex-wrap: wrap; }
.parental-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 9px 12px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025); font-size: 13px;
  color: var(--text-strong, #e7eef7);
}
.parental-row-main { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.parental-empty {
  padding: 10px 12px; font-size: 12px; text-align: center;
  color: var(--text-muted, #94a0b3);
  border: 1px dashed rgba(255, 255, 255, 0.08); border-radius: 10px;
}
.parental-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 6px 5px 12px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04); font-size: 12px;
  color: var(--text-strong, #e7eef7);
}
.parental-chip-x {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  color: #fca5a5; font-size: 16px; line-height: 1; padding: 0 4px;
}
/* Read-only category-rollup chips in the activity log (no remove button). */
.parental-chips .parental-chip { padding: 5px 12px; }
.parental-log-privacy { font-style: italic; opacity: 0.85; }
.parental-report-list li strong.is-error { color: #fca5a5; }
.parental-report-list li strong.is-muted { color: var(--text-muted, #94a0b3); }
.parental-rm {
  appearance: none; cursor: pointer; flex: none;
  padding: 5px 10px; border-radius: 8px; font-size: 12px; font-family: inherit;
  border: 1px solid rgba(252, 165, 165, 0.30);
  background: rgba(252, 165, 165, 0.04); color: #fca5a5;
}
.parental-rm:hover { background: rgba(252, 165, 165, 0.10); }
.parental-save-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.parental-status { margin: 0; font-size: 12px; min-height: 1.2em; color: var(--text-muted, #94a0b3); }
.parental-status.is-error { color: #fca5a5; }
.parental-status.is-ok    { color: #5eead4; }
.parental-status.is-muted { color: var(--text-muted, #94a0b3); }
.parental-report { margin-top: 6px; font-size: 13px; color: var(--text-muted, #94a0b3); line-height: 1.5; }
.parental-report-total { margin: 0 0 8px; font-weight: 600; color: var(--text-strong, #e7eef7); }
.parental-report-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.parental-report-list li { display: flex; justify-content: space-between; gap: 12px; }
.set-dev-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* ── Change password (settings/password.js) ───────────────────────────────
   The endpoint existed and had no web client; this is the form that finally
   calls it. Deliberately plain: a password field is not a place for novelty. */
.set-pw-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 420px;
}
.set-pw-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}
.set-pw-input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line, rgba(255,255,255,0.14));
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font: inherit;
}
.set-pw-input:focus-visible {
  outline: 2px solid var(--accent, #6ea8fe);
  outline-offset: 1px;
}
.set-pw-rules {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
}
.set-pw-status {
  margin: 8px 0 0;
  font-size: 13px;
  min-height: 1.2em;
}
.set-pw-status[data-tone="ok"]  { color: var(--ok, #4ade80); }
.set-pw-status[data-tone="err"] { color: var(--danger, #f87171); }


/* ── Protection setup ────────────────────────────────────────────────────────
   The ring is coloured off `reachable`, never off the number: the server caps
   the percentage at 99 while anything critical is open, and a green ring is a
   promise the product then has to keep. */
.set-ps-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.set-ps-pct {
  flex: 0 0 auto;
  display: flex;
  align-items: baseline;
  gap: 1px;
  font-weight: 800;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--vx-ok, #4ade80);
}
.set-ps-pct small { font-size: 15px; font-weight: 700; opacity: 0.65; }
.set-ps-head[data-state="attention"] .set-ps-pct { color: var(--vx-warn, #fbbf24); }
.set-ps-lede { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--text-strong); }

.set-ps-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.set-ps-step {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 0;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.set-ps-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.set-ps-title { font-size: 13.5px; font-weight: 600; color: var(--text-strong); }
.set-ps-note  { font-size: 12px; line-height: 1.45; opacity: 0.72; }

.set-ps-dot, .set-ps-tick {
  flex: 0 0 auto;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--vx-warn, #fbbf24);
}
/* Weight is shown by colour, not by shouting: the list is already ordered by
   consequence, so the dot only has to confirm what the order implies. */
.set-ps-step[data-weight="recommended"] .set-ps-dot { background: rgba(255,255,255,0.28); }
.set-ps-step[data-weight="critical"]    .set-ps-dot { background: var(--vx-danger, #f87171); }
.set-ps-tick { background: var(--vx-ok, #4ade80); }
.set-ps-step.is-done .set-ps-title { opacity: 0.6; font-weight: 500; }
.set-ps-state { font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; opacity: 0.45; }

.set-ps-cta {
  flex: 0 0 auto;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--text-strong);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.set-ps-cta:hover, .set-ps-cta:focus-visible {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.22);
}
.set-ps-cta.is-quiet { background: transparent; font-weight: 600; opacity: 0.8; }

/* The upgrade line is deliberately NOT a checklist row. A step somebody cannot
   complete would sit red forever and teach them to ignore the whole list, so
   what a plan adds is said once, quietly, and separately. */
.set-ps-upgrade {
  margin: 4px 0 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.set-ps-upgrade p { margin: 0; flex: 1 1 240px; font-size: 12.5px; line-height: 1.5; opacity: 0.9; }
/* Only when acting on it would actually do something — they pay, and nothing
   is connected. */
.set-ps-upgrade.is-actionable {
  background: rgba(251,191,36,0.07);
  border-color: rgba(251,191,36,0.24);
}
.set-ps-retry {
  background: none; border: none; padding: 0;
  color: inherit; font: inherit; text-decoration: underline; cursor: pointer;
}

@media (max-width: 520px) {
  .set-ps-step { flex-wrap: wrap; }
  .set-ps-cta  { margin-inline-start: 20px; }
}

/* [hidden] guards — `display:` outranks the UA `[hidden]{display:none}`.
   Audit 2026-09-09. */
.set-totp-enrol[hidden] { display: none !important; }
.family-card[hidden]    { display: none !important; }
.family-empty[hidden]   { display: none !important; }

/* ── Backup codes + Active sessions (AUTH_AUDIT_2026_09_10 §2/§3) ──────────
   Both cards deliberately reuse the existing list/pill/button vocabulary
   (.set-dev-*, .set-totp-codes*, .sec-btn, .vlx-pin-*) so they read as part of
   the same page rather than a second design. Only the few things neither card
   already had live here. */
.set-bc-actions {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px;
}
.set-bc-status {
  margin: 8px 0 0; font-size: 12px; min-height: 1em; color: var(--text-muted);
}
.set-bc-status[data-tone="error"]   { color: #ff6b6b; }
.set-bc-status[data-tone="success"] { color: #10b981; }
.set-bc-status[data-tone="warn"]    { color: #fbbf24; }

/* The current-session row swaps its button for a sentence, so the button
   column has to be allowed to hold text without squashing the metadata. */
#set-sessions .set-dev-btns { max-width: 15rem; text-align: end; }

/* [hidden] guard — same reason as the block above: `display:` on
   .set-totp-codes would otherwise outrank the UA [hidden] rule and the fresh
   batch would be on screen before it exists. */
.set-totp-codes[hidden] { display: none !important; }

/* ── Two-factor coverage card ────────────────────────────────────────────
   The advisor's honesty rule shows up here as colour discipline: an
   "unknown" row is listed but never tinted as a problem, because we have no
   signal about it and a red dot would be a claim we cannot make. Only
   unprotected and weak_sms get a warning tint. */
.set-cov-summary {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}
.set-cov-nudges { display: grid; gap: 10px; margin-top: 12px; }
.set-cov-nudge {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-inline-start: 3px solid var(--text-muted);
  border-radius: 10px;
  background: rgba(11, 20, 38, 0.45);
}
.set-cov-nudge[data-severity="high"]   { border-inline-start-color: #ff6b6b; }
.set-cov-nudge[data-severity="medium"] { border-inline-start-color: #fbbf24; }
.set-cov-nudge-h {
  margin: 0; font-size: 14px; font-weight: 600;
  color: var(--text-strong, #e6efff);
}
.set-cov-nudge-why { margin: 6px 0 0; font-size: 12.5px; color: var(--text-muted); }
.set-cov-nudge-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

.set-cov-more {
  margin-top: 12px;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 12.5px;
  color: var(--text-muted);
  text-decoration: underline;
  cursor: pointer;
}
.set-cov-more:hover { color: var(--text-strong, #e6efff); }

.set-cov-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.set-cov-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  font-size: 13px;
}
.set-cov-row-name { flex: 1 1 9rem; color: var(--text-strong, #e6efff); }
.set-cov-row-cat  { font-size: 11.5px; color: var(--text-muted); }
.set-cov-row-state { font-size: 11.5px; color: var(--text-muted); }
.set-cov-row[data-state="unprotected"] .set-cov-row-state { color: #ff6b6b; }
.set-cov-row[data-state="weak_sms"]    .set-cov-row-state { color: #fbbf24; }
.set-cov-row[data-state="protected"]   .set-cov-row-state { color: #10b981; }
.set-cov-row-pick { font-size: 12px; }

/* [hidden] guard — same reason as the blocks above: `display: grid` on
   .set-cov-list would outrank the UA [hidden] rule and the full catalogue
   would be on screen before anyone asked for it. */
.set-cov-list[hidden] { display: none !important; }

/* Inline code on the settings cards measured 4.1:1 on its chip, under WCAG AA. */
.app-card code { color: var(--vx-text-muted, #9AA6BC); opacity: 1; }

/* How Vilkax responds (response-preference.js). Three calm choices and one
   switch; tokens only. */
.set-rp-form { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.set-rp-modes { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.set-rp-legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.set-rp-mode, .set-rp-block {
  display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--border-subtle); cursor: pointer;
}
.set-rp-mode:has(input:checked) { border-color: var(--brand-primary-bright); }
.set-rp-mode input, .set-rp-block input { margin-top: 3px; }
.set-rp-mode-body { display: flex; flex-direction: column; gap: 2px; }
.set-rp-mode-name { color: var(--text-strong); font-weight: 600; }
.set-rp-mode-desc { color: var(--text-muted); font-size: 13px; line-height: 1.45; }
.set-rp-error { margin-top: 10px; }

/* "What I shared" (my-intel.js) */
.set-mi-list { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.set-mi-item { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 8px; }
.set-mi-when { margin: 0 0 4px; font-size: 12.5px; font-weight: 700; }
.set-mi-ind { margin: 0; font-size: 12.5px; line-height: 1.5; overflow-wrap: anywhere; }
.set-mi-h { margin: 6px 0; font-size: 14px; }
.set-mi-checkins { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.set-mi-row { display: flex; flex-wrap: wrap; gap: 8px; }
.set-mi-withdraw { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.set-store-billing { margin-top: 6px; }

/* ── Email aliases + broker opt-outs (P7) ── */
.set-al-form { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 12px; }
.set-al-form .set-pw-input { flex: 1 1 14rem; min-width: 0; }
.set-al-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.set-al-item { border: 1px solid rgba(148, 163, 184, 0.25); border-radius: 12px; padding: 10px 12px; display: grid; gap: 6px; min-width: 0; }
.set-al-addr { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.set-al-meta { font-size: 0.85rem; opacity: 0.8; overflow-wrap: anywhere; }
.set-al-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.set-al-item[data-off="1"] .set-al-addr { opacity: 0.55; text-decoration: line-through; }
.set-br-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 0.9rem; }

/* Invite a friend (referral.js). */
.set-ref-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:8px 0}
.set-ref-link{flex:1 1 220px;min-width:0;font:inherit;padding:8px 10px;border-radius:10px;border:1px solid rgba(255,255,255,.18);background:transparent;color:inherit}
.set-ref-stats{display:flex;gap:18px;margin:8px 0 0}
.set-ref-stats dt{font-size:12px;opacity:.7}
.set-ref-stats dd{margin:2px 0 0;font-size:18px;font-weight:700}

.family-posture-share { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0; }
