:root {
  --navy: #14338c;
  --navy-deep: #0f2768;
  --gold: #ffc700;
  --red: #e9272c;
  --bg: #eef2f8;
  --card: #fff;
  --ink: #152038;
  --muted: #5b677d;
  --line: #d7deea;
  --ok: #15803d;
  /* Contabo desk identity ? not the Vercel Jakarta/Playfair stack */
  --font: "Sora", "Segoe UI", sans-serif;
  --display: "Literata", "Palatino Linotype", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.portal {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 320px at 0% -8%, rgba(20, 51, 140, .07), transparent 55%),
    radial-gradient(700px 280px at 100% 0%, rgba(255, 199, 0, .08), transparent 50%),
    radial-gradient(520px 240px at 80% 12%, rgba(233, 39, 44, .05), transparent 55%),
    var(--bg);
  min-height: 100vh;
  padding-bottom: 0;
  letter-spacing: -0.01em;
}
body.portal--desk {
  padding-bottom: 0;
}
a { color: var(--navy); text-decoration: none; }
.elec-bar { display: none; }
.elec-meta {
  color: #c5d0ea;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.elec-meta strong, .elec-meta span { color: var(--gold); }
.topbar {
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 12px;
  min-height: 40px;
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 3px 0 var(--red);
}
.topbar .brand { font-family: var(--display); font-size: 1rem; color: var(--gold); margin: 0; line-height: 1.1; }
.topbar .meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; }
.topbar--desk {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
}
.topbar--desk .topbar__left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.topbar--desk .topbar__center { display: none; }
.topbar--desk .topbar__actions { margin-left: auto; justify-content: flex-end; }
.topbar .btn { padding: 5px 10px; font-size: 12px; border-radius: 8px; }
.topbar .btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.28); }
.topbar .btn-navy { background: var(--gold); color: var(--navy-deep); }
.topbar-link {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  opacity: .92;
}
.topbar-link:hover { color: var(--red); opacity: 1; }
.logo-hero--inline { display: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 10px; padding: 9px 14px; font: inherit; font-weight: 700; font-size: 13px;
  border: 1px solid transparent; cursor: pointer;
}
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-red { background: var(--red); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-line { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.25); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--navy); }
.btn-danger { background: #fff; border-color: #fecaca; color: #b91c1c; }
.desk-frame {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  min-height: 100vh;
  align-items: stretch;
}
.desk-main { min-width: 0; }
.shell { width: min(1440px, calc(100% - 20px)); margin: 0 auto; padding: 10px 0 16px; }

/* Persistent left sidebar ? Contabo navy/gold (not a retractable phone drawer) */
.side-nav {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  max-height: 100vh;
  overflow: auto;
  background: linear-gradient(180deg, var(--navy-deep) 0%, #0c1f56 55%, #0a1844 100%);
  color: #e8eefc;
  border-right: 3px solid var(--gold);
  box-shadow: inset -3px 0 0 var(--red);
  padding: 10px 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 25;
}
.brand-mark {
  display: none;
}
.side-nav__brand {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 6px 4px 14px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  margin-bottom: 8px;
  color: inherit;
  text-align: center;
}
.side-nav__logoplate {
  display: grid;
  place-items: center;
  width: 100%;
  padding: 10px 8px 8px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 0 0 2px var(--gold), 0 0 0 5px var(--red);
}
.side-nav__logoplate img {
  display: block;
  width: 100%;
  max-width: 188px;
  height: auto;
}
.side-nav__brand small {
  display: block;
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.side-nav__primary, .side-nav__secondary { display: grid; gap: 4px; }
.side-nav__sec-label {
  margin: 12px 8px 4px;
  font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #f5b4b6;
}
.side-nav__link {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 9px; border-radius: 8px;
  color: #e8eefc; font-weight: 700; font-size: 13px;
}
.side-nav__link:hover { background: rgba(255,255,255,.08); color: #fff; }
.side-nav__link.is-on {
  background: rgba(233, 39, 44, .18);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--red);
}
.side-nav__ico { width: 1.4em; text-align: center; opacity: .95; }
.side-nav__label { flex: 1; min-width: 0; }
.side-nav__badge {
  margin-left: auto;
  background: var(--red); color: #fff;
  font-size: 10px; font-weight: 800;
  padding: 3px 7px; border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.side-nav__link--sec { font-size: 12px; padding: 6px 9px; color: #c9d2ea; }
.side-nav__foot {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: grid; gap: 8px;
}
.side-nav__user strong { display: block; color: #fff; font-size: 13px; }
.side-nav__user small { color: #c9d2ea; font-size: 11px; }
.side-nav__logout { width: 100%; }

@media (max-width: 980px) {
  body.portal,
  body.portal--desk { padding-bottom: 64px; }
  .desk-frame { grid-template-columns: 1fr; }
  .side-nav { display: none; }
  .elec-meta { display: none; }
  .topbar--desk .topbar__actions .btn-line { display: none; }
  .topbar--desk .topbar__actions .btn-gold { display: none; }
}
.page-head {
  display: none;
}
.mono, .file-mono, td.mono, .ippms-panel-path, .ippms-bar__meta .mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.logo-hero { text-align: center; margin: 8px 0 16px; }
.logo-hero img { width: min(220px, 55vw); height: auto; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-bottom: 14px; }
@media (max-width: 900px) { .kpis { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.kpi {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px;
  box-shadow: 0 6px 18px rgba(20,51,140,.06);
}
.kpi b { display: block; font-size: 1.5rem; color: var(--navy); line-height: 1.1; }
.kpi span { font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.kpi em { display: block; margin-top: 4px; font-style: normal; font-size: 12px; color: var(--muted); }
.kpi .live { display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 999px; background: #dcfce7; color: var(--ok); font-size: 10px; font-weight: 800; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px;
  box-shadow: 0 6px 18px rgba(20,51,140,.05); margin-bottom: 12px;
}
.card h2 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.015em;
}
.lead { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.grid-2 { display: grid; grid-template-columns: 1.1fr .9fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.shortcut {
  display: block; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fafbff;
}
.shortcut strong { display: block; color: var(--navy); }
.shortcut small { color: var(--muted); }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; align-items: end; }
.toolbar label { display: grid; gap: 4px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.toolbar input, .toolbar select, .form-grid input, .form-grid select, .form-grid textarea {
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; min-width: 120px; background: #fff;
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid label { display: grid; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
thead th { background: var(--navy); color: #fff; text-align: left; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; padding: 11px 12px; }
tbody td { padding: 11px 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
tbody tr:nth-child(even) { background: #f8fafc; }
.name { font-weight: 700; color: var(--navy); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.muted { color: var(--muted); }
.flash { padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; font-size: 14px; }
.flash.ok { background: #e8f7ee; color: var(--ok); }
.flash.warn { background: #fff6e5; color: #8a5a00; border: 1px solid #f0d59a; }
.flash.err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.bar-list { display: grid; gap: 7px; }
.bar-row { display: grid; grid-template-columns: minmax(88px, 28%) 1fr 56px; gap: 10px; align-items: center; font-size: 12.5px; color: var(--navy); }
.bar-row.wide { grid-template-columns: minmax(100px, 32%) 1fr 56px; }
.bar-row .bar-label { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-row .track { height: 12px; background: #e8edf7; border-radius: 999px; overflow: hidden; }
/* Vercel-style: solid navy run with red tip */
.bar-row .fill,
.bar-row .fill--tsp {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--navy) 0%,
    var(--navy) 72%,
    var(--red) 72%,
    var(--red) 100%
  );
  min-width: 10px;
}
.bar-row .n { text-align: right; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.scroll-bars { max-height: 420px; overflow: auto; padding-right: 4px; }
.pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.pager-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
}
.pager-summary { margin: 0; font-size: 13px; color: var(--muted); }
.pager-summary strong { color: var(--navy); }
.pager-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.pager-links a,
.pager-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  color: var(--navy-deep);
  line-height: 1;
}
.pager-links a:hover { border-color: var(--navy); background: #f4f7fb; }
.pager-links .is-current { background: var(--navy-deep); color: #fff; border-color: var(--navy-deep); }
.pager-links .is-disabled { opacity: .45; pointer-events: none; }
/* Safety if any Tailwind/default pager SVG slips through */
.pager svg,
.pager-nav svg { width: 14px; height: 14px; display: inline-block; vertical-align: middle; }
.report-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.report-tile {
  display: block; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
.report-tile:hover { border-color: var(--navy); box-shadow: 0 4px 14px rgba(20,51,140,.08); }
.report-tile strong { display: block; color: var(--navy); margin-bottom: 4px; }
.dropzone {
  border: 2px dashed #cbd5e1; border-radius: 14px; padding: 28px 16px; text-align: center; background: #f8fafc;
}
.dropzone strong { display: block; color: var(--navy); margin-bottom: 4px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.badge-ok { background: #e8f7ee; color: var(--ok); }
.badge-off { background: #f1f2f6; color: #6b7280; }
.drawer-backdrop,
.drawer,
.menu-btn { display: none !important; }

.bottom-nav {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: #fff; border-top: 1px solid var(--line);
  grid-template-columns: repeat(auto-fit, minmax(52px, 1fr));
  padding: 4px 2px calc(4px + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 20px rgba(15,23,42,.08);
}
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 4px 2px; font-size: 9px; font-weight: 700; color: var(--muted); text-align: center;
}
.bottom-nav a .ico { font-size: 14px; line-height: 1; }
.bottom-nav a.is-on { color: var(--red); }
@media (max-width: 980px) {
  .bottom-nav { display: grid; }
}
.section-head { display: flex; justify-content: space-between; gap: 10px; align-items: end; flex-wrap: wrap; margin-bottom: 10px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #3ecf8e; box-shadow: 0 0 0 4px rgba(62,207,142,.25); display: inline-block; }
.live-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 320px; overflow: auto; }
.live-list li { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.admin-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.admin-tabs a { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--navy); background: #fff; }
.admin-tabs a.is-on { background: var(--navy); color: #fff; border-color: var(--navy); }

.help-fab {
  position: fixed; right: 12px; bottom: 14px; z-index: 35;
  width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 11px; box-shadow: 0 8px 20px rgba(209,20,20,.35);
}
@media (max-width: 980px) {
  .help-fab { bottom: 72px; }
}

/* IPPMS endpoint console / testing deck */
.ippms-bar { padding: 14px 16px; }
.ippms-modes {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: #eef1f8;
  border-radius: 12px;
  margin-bottom: 12px;
}
.ippms-mode {
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  color: var(--navy);
  text-decoration: none;
}
.ippms-mode.is-on {
  background: var(--red);
  color: #fff;
  box-shadow: 0 6px 14px rgba(209, 20, 20, 0.25);
}
.ippms-bar__meta { display:flex; flex-wrap:wrap; gap:10px 16px; align-items:center; font-size:13px; }
.ippms-deck {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.ippms-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  min-width: 0;
}
.ippms-shell { display:grid; grid-template-columns: 220px minmax(0,1fr); gap:14px; align-items:start; }
.ippms-nav {
  display:grid;
  gap:6px;
  position:sticky;
  top:12px;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  padding-right: 2px;
}
.ippms-nav__group {
  margin: 10px 4px 2px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.ippms-nav__group:first-child { margin-top: 0; }
.ippms-nav__item {
  display:grid; gap:2px; padding:10px 12px; border-radius:12px; border:1px solid var(--line);
  background:#fff; color:var(--navy); text-decoration:none;
}
.ippms-nav__item strong { font-size:13px; }
.ippms-nav__item small { font-size:10px; color:var(--muted); word-break:break-all; }
.ippms-nav__item.is-on { background:var(--navy); color:#fff; border-color:var(--navy); }
.ippms-nav__item.is-on small { color:rgba(255,255,255,.75); }
.ippms-main { display:grid; gap:12px; min-width:0; }
.ippms-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-bottom: 12px;
}
.ippms-panel-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
}
.ippms-panel-head h2 { margin: 0; font-size: 1.2rem; color: var(--navy); }
.ippms-panel-path {
  font-size: 11px;
  color: var(--muted);
  text-align: right;
  max-width: 46%;
  word-break: break-all;
}
.ippms-field-note {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f4f6fb;
  font-size: 13px;
  color: var(--muted);
}
.ippms-subhead {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--navy);
}
.ippms-geo-stack { display: grid; gap: 18px; }
.ippms-request, .ippms-response--panel { min-height: 280px; }
.ippms-response__head { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:6px; }
.ippms-response__head h2 { margin:0; font-size:1.05rem; }
.ippms-response__body {
  white-space:pre-wrap; font-size:12px; margin:0; max-height:520px; overflow:auto;
  background:#0f1b3d; color:#e8eefc; border-radius:12px; padding:14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.ippms-response__empty {
  padding: 28px 16px;
  text-align: center;
  background: #f4f6fb;
  border-radius: 12px;
}
.ippms-response__empty p { margin: 0 0 6px; font-weight: 700; color: var(--navy); }
@media (max-width: 1100px) {
  .ippms-workspace { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .ippms-deck, .ippms-shell { grid-template-columns: 1fr; }
  .ippms-nav {
    position:static; display:flex; gap:6px; overflow-x:auto; padding-bottom:4px;
  }
  .ippms-nav__item { min-width:140px; flex:0 0 auto; }
}

/* -- Analytics 2026 surface -- */
.ax {
  --ax-surface: #ffffff;
  --ax-muted: #5f6b86;
  --ax-line: rgba(20, 51, 140, 0.08);
  --ax-soft: #f0f3fa;
  display: grid;
  gap: 18px;
  padding-bottom: 8px;
}
.ax-hero {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  padding: 0;
}
.ax-hero__eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
}
.ax-hero__title {
  margin: 0;
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--navy-deep);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.ax-hero__lede {
  margin: 8px 0 0;
  max-width: 46ch;
  color: var(--ax-muted);
  font-size: 14px;
  line-height: 1.5;
}
.ax-filter {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--ax-surface);
  border: 1px solid var(--ax-line);
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: none;
}
.ax-filter label {
  display: grid;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ax-muted);
}
.ax-filter select {
  min-width: 160px;
  max-width: 220px;
  padding: 9px 12px;
  border: 1px solid var(--ax-line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-weight: 600;
  color: var(--navy-deep);
  outline: none;
}
.ax-filter input[type="date"] {
  min-width: 140px;
  max-width: 180px;
  padding: 9px 12px;
  border: 1px solid var(--ax-line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-weight: 600;
  color: var(--navy-deep);
  outline: none;
}
.ax-filter input[type="date"]:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 2px rgba(20, 51, 140, 0.12);
}
.ax-up { color: #0f7a3a; font-weight: 700; }
.ax-down { color: #b42318; font-weight: 700; }
.ax-empty-counties {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f7f4ea;
  border: 1px solid #e6dcbf;
}
.ax-empty-counties h4 {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--navy-deep);
}
.ax-empty-counties p {
  margin: 0;
  font-size: 13px;
  color: var(--ax-muted);
  line-height: 1.45;
}
.ax-empty-counties--ok {
  background: #eef6f0;
  border-color: #c9e2d1;
  color: #0f7a3a;
  font-size: 13px;
  font-weight: 600;
}
.ax-filter select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 2px rgba(20, 51, 140, 0.12);
}
.ax-truth-score {
  text-align: right;
  line-height: 1.1;
}
.ax-truth-score span {
  display: block;
  font-family: var(--font-display, Georgia, serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--navy-deep);
}
.ax-truth-score em {
  font-style: normal;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ax-muted);
}
.ax-truth-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 4px 0 8px;
}
.ax-truth {
  background: #f4f6fb;
  border-radius: 10px;
  padding: 12px 14px;
}
.ax-truth b {
  display: block;
  font-size: 18px;
  color: var(--navy-deep);
}
.ax-truth span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--ax-muted);
}
.ax-truth-help {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f4f6fb;
  border: 1px solid var(--ax-line);
}
.ax-truth-help p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ax-muted);
}
.ax-truth-help strong { color: var(--navy-deep); }
.ax-truth-unmatched summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy-deep);
}
@media (max-width: 900px) {
  .ax-truth-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.ax-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}
@media (max-width: 1200px) {
  .ax-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .ax-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
a.ax-kpi {
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
a.ax-kpi:hover {
  border-color: rgba(20, 51, 140, 0.35);
  box-shadow: 0 10px 24px rgba(20, 51, 140, 0.12);
  transform: translateY(-1px);
}
a.ax-kpi:hover .ax-kpi__go { color: var(--navy); }
.ax-kpi {
  position: relative;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 16px 16px 14px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(20, 51, 140, 0.06);
  overflow: hidden;
  min-height: 108px;
}
.ax-kpi::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 0;
  width: 3px;
  height: calc(100% - 28px);
  background: var(--navy);
  border-radius: 0 3px 3px 0;
  opacity: .55;
}
.ax-kpi--primary::before {
  background: var(--red);
  opacity: 1;
}
.ax-kpi--primary {
  background: linear-gradient(165deg, #ffffff 0%, #f5f7fd 58%, #fff8f8 100%);
  border-color: rgba(20, 51, 140, 0.16);
  box-shadow: 0 8px 22px rgba(20, 51, 140, 0.1);
}
.ax-kpi__label {
  display: block;
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.2;
}
.ax-kpi__value {
  display: block;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.ax-kpi__value--split {
  display: grid;
  gap: 4px;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}
.ax-kpi__value--split span {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.ax-kpi__value--split em {
  font-style: normal;
  font-size: .62em;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--muted);
  min-width: 1.1em;
}
.ax-kpi--primary .ax-kpi__value {
  color: var(--red);
}
.ax-kpi__go {
  margin-top: auto;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .02em;
}
.ax-kpi__of {
  font-size: .62em;
  font-weight: 600;
  color: var(--muted);
  margin-left: 2px;
}

.ax-chips {
  position: sticky;
  top: 72px;
  z-index: 15;
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 6px 0;
  margin: 0;
  background: linear-gradient(180deg, rgba(238,242,248,.96), rgba(238,242,248,.9));
  backdrop-filter: blur(8px);
  scrollbar-width: thin;
  border-bottom: 1px solid var(--ax-line);
}
.ax-chips a {
  flex: 0 0 auto;
  padding: 7px 11px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--navy-deep);
  font-size: 12px;
  font-weight: 600;
  box-shadow: none;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.ax-chips a:hover {
  transform: none;
  background: #fff;
  border-color: var(--ax-line);
  color: var(--navy);
}

.ax-panel {
  background: var(--ax-surface);
  border: 1px solid var(--ax-line);
  border-radius: 12px;
  padding: 20px 18px 18px;
  box-shadow: 0 14px 34px rgba(15, 39, 104, 0.055);
}
.ax-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--ax-line);
}
.ax-panel__head h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.18rem;
  color: var(--navy-deep);
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.ax-panel__head p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--ax-muted);
  line-height: 1.4;
}
.ax-tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  padding: 10px 0;
  background: linear-gradient(180deg, var(--bg, #eef1f8) 70%, transparent);
}
.ax-tabs__btn {
  appearance: none;
  border: 1px solid var(--ax-line);
  background: #fff;
  color: var(--navy-deep);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.ax-tabs__btn:hover { border-color: var(--navy); }
.ax-tabs__btn.is-on {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.ax-tab-panel { display: none; }
.ax-tab-panel.is-on { display: grid; gap: 16px; }
.ax-top {
  position: fixed;
  right: 18px;
  bottom: 88px;
  z-index: 6;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 10px 14px;
  box-shadow: 0 10px 24px rgba(15, 39, 104, .28);
  cursor: pointer;
}
@media print {
  .ax-tabs, .ax-top { display: none !important; }
  .ax-tab-panel { display: grid !important; gap: 16px !important; }
}
.ax-mini-label {
  margin: 14px 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ax-muted);
}
.ax-empty {
  margin: 0;
  padding: 18px;
  text-align: center;
  color: var(--ax-muted);
  background: var(--ax-soft);
  border-radius: 14px;
  font-size: 13px;
}

.ax-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.ax-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 960px) {
  .ax-grid-2, .ax-grid-3 { grid-template-columns: 1fr; }
}

.ax-coverage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
}
@media (max-width: 800px) {
  .ax-coverage { grid-template-columns: 1fr; }
}
.ax-cov__meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 12.5px;
}
.ax-cov__label { font-weight: 700; color: var(--navy-deep); }
.ax-cov__val { color: var(--ax-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ax-cov__track {
  height: 10px;
  border-radius: 999px;
  background: var(--ax-soft);
  overflow: hidden;
}
.ax-cov__track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy) 70%, var(--red) 70%, var(--red) 100%);
  min-width: 6px;
}

.ax-bars {
  display: grid;
  gap: 10px;
  max-height: 380px;
  overflow: auto;
  padding: 2px 4px 2px 0;
  margin-top: 2px;
}
.ax-bar {
  display: grid;
  grid-template-columns: minmax(90px, 28%) 1fr 64px;
  gap: 10px;
  align-items: center;
}
.ax-bar__label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy-deep);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ax-bar__track {
  height: 11px;
  border-radius: 999px;
  background: var(--ax-soft);
  overflow: hidden;
}
.ax-bar__fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy) 72%, var(--red) 72%, var(--red) 100%);
  min-width: 8px;
}
.ax-bar__n {
  text-align: right;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--navy-deep);
  font-variant-numeric: tabular-nums;
}

.ax-table-wrap {
  overflow: auto;
  border-radius: 14px;
  background: var(--ax-soft);
}
.ax-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
  background: transparent;
}
.ax-table th {
  text-align: left;
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ax-muted);
  padding: 12px 14px;
  border-bottom: 1px solid rgba(20,51,140,.08);
  background: transparent;
}
.ax-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(20,51,140,.06);
  font-size: 13px;
  color: var(--navy-deep);
  background: transparent;
}
.ax-table tbody tr:hover td { background: rgba(255,255,255,.65); }
.ax-table thead th { background: transparent !important; color: var(--ax-muted) !important; }
.ax-link {
  font-weight: 700;
  color: var(--red);
}
.ax-link:hover { text-decoration: underline; }

@media print {
  .ax-chips, .ax-filter, .ax-btn { display: none !important; }
  .ax-panel, .ax-kpi { box-shadow: none !important; break-inside: avoid; }
  .ax-kpis { grid-template-columns: repeat(3, 1fr) !important; }
}

/* Legacy analytics selectors kept for other pages */
.kpis--analytics {
  gap: 8px;
  margin-bottom: 12px;
}
.kpis--analytics .kpi {
  padding: 12px 12px 10px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 39, 104, 0.05);
}
.kpis--analytics .kpi b {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  letter-spacing: -0.02em;
}
.kpis--analytics .kpi span {
  color: #3b4f86;
  margin-top: 4px;
}
.kpis--analytics .kpi em {
  color: #7b879c;
  font-size: 11px;
}
.card--compact {
  padding: 14px 16px;
  margin-bottom: 12px;
}
.card--compact h2 { margin-bottom: 4px; }
.card--compact .lead { margin-bottom: 10px; font-size: 13px; }
.toolbar--inline { margin-bottom: 10px; }
.jump-nav--tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}
.jump-nav--tabs a {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.jump-nav--tabs a:hover { border-bottom-color: var(--gold); }
.coverage-list {
  display: grid;
  gap: 6px;
}
.coverage-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: #f4f6fb;
}
.coverage-row b {
  font-size: 1.15rem;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.coverage-row span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  color: #3b4f86;
}
.coverage-row em {
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 860px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* Admin role cards (Vercel admin colour language) */
.role-cards { margin-bottom: 14px; }
.role-card {
  position: relative;
  overflow: hidden;
  border-width: 1px;
  border-style: solid;
  padding: 16px;
}
.role-card__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.role-card__count {
  margin: 0;
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1;
  font-weight: 700;
}
.role-card__hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.role-card--super {
  border-color: #e6b800;
  background: linear-gradient(180deg, #fffdf3 0%, #fff 60%);
}
.role-card--super .role-card__badge { background: var(--gold); color: var(--navy-deep); }
.role-card--super .role-card__count { color: #9a7a00; }
.role-card--admin {
  border-color: #9eb0e0;
  background: linear-gradient(180deg, #f3f6ff 0%, #fff 60%);
}
.role-card--admin .role-card__badge { background: var(--navy); color: #fff; }
.role-card--admin .role-card__count { color: var(--navy); }
.role-card--viewer {
  border-color: #c5ccd8;
  background: linear-gradient(180deg, #f7f8fb 0%, #fff 60%);
}
.role-card--viewer .role-card__badge { background: #5b6b88; color: #fff; }
.role-card--viewer .role-card__count { color: #4b5a75; }

.role-pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.role-pill--super_admin { background: #ffe999; color: #7a5f00; }
.role-pill--administrator, .role-pill--admin { background: #dce6ff; color: var(--navy); }
.role-pill--operator { background: #e4f4ea; color: #1d6b3a; }
.role-pill--analyst { background: #e8eef8; color: #3d4f72; }
.role-pill--viewer { background: #eef0f4; color: #5b6b88; }

.rights-box {
  border: 1px solid #d5dce8;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 12px 0 16px;
}
.rights-box legend { font-weight: 800; font-size: 13px; padding: 0 6px; }
.rights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px 14px;
}
.rights-grid--compact { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); margin: 8px 0; }
.rights-item { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; font-weight: 600; }
.rights-item input { margin-top: 3px; }
.rights-item.is-locked { opacity: .55; }
.operator-edit { display: grid; gap: 6px; min-width: 280px; }
.tiny { font-size: 12px; }

.admin-tabs a.is-on { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: 0 0 0 2px rgba(255,199,0,.35); }

@media print {
  .kpis--analytics { grid-template-columns: repeat(4, 1fr) !important; }
  .coverage-row, .kpi, .card { break-inside: avoid; }
}

/* Member list: name opens full file */
td.name a { color: var(--navy); text-decoration: none; font-weight: 700; }
td.name a:hover { color: var(--red); text-decoration: underline; }
.row-actions a { font-weight: 600; }

/* Member file sync desk */
.sync-alert {
  display: flex; justify-content: space-between; gap: 14px; align-items: center; flex-wrap: wrap;
  border-radius: 12px; padding: 14px 16px; margin: 0 0 14px; border: 1px solid var(--line);
  background: #fff;
}
.sync-alert p { margin: 4px 0 0; color: #4a5578; font-size: 14px; max-width: 70ch; }
.sync-alert--ok { border-color: #86efac; background: #f0fdf4; }
.sync-alert--warn { border-color: #fcd34d; background: #fffbeb; }
.sync-alert--bad { border-color: #fca5a5; background: #fef2f2; }
.member-file__hero-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.member-file__kicker { margin: 0 0 4px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #6b7388; font-weight: 700; }
.member-file__hero-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.member-file__chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 16px 0 0; }
.member-file__chips div { background: #f4f6fb; border-radius: 10px; padding: 10px 12px; }
.member-file__chips dt { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #7a8398; font-weight: 800; }
.member-file__chips dd { margin: 4px 0 0; font-weight: 700; color: var(--navy); }
.member-file__chips dd.is-ok { color: #15803d; }
.member-file__chips dd.is-warn { color: #b45309; }
.file-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 16px; }
.file-grid p { margin: 4px 0 0; font-weight: 650; color: var(--navy); }
.sync-diff-table td:nth-child(2) { background: #fff7ed; }
.sync-diff-table td:nth-child(3) { background: #eff6ff; }
.sync-pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.sync-pill--ok { background: #dcfce7; color: #166534; }
.sync-pill--failed { background: #fee2e2; color: #991b1b; }
.sync-pill--pending { background: #fef3c7; color: #92400e; }
.sync-change-list { margin: 0; padding-left: 16px; font-size: 13px; }
.btn-gold { background: #e5af25; border-color: #e5af25; color: #1e2a5a; font-weight: 800; }
.btn-gold:hover { filter: brightness(.96); }

/* Registry member dossier — navy + TSP red */
.member-dossier { display: grid; gap: 8px; }
.member-dossier__alert { margin: 0; padding: 10px 12px; }
.member-dossier__hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px 12px;
  border-radius: 16px;
  color: #eef3ff;
  background:
    linear-gradient(120deg, rgba(209, 20, 20, .28) 0%, transparent 38%),
    linear-gradient(135deg, rgba(255, 199, 0, .12) 0%, transparent 46%),
    linear-gradient(160deg, #0b1f5a 0%, var(--navy-deep) 46%, #0a1844 100%);
  border: 1px solid #0a1844;
  box-shadow: 0 18px 40px rgba(10, 24, 68, .22);
  position: relative;
  overflow: hidden;
}
.member-dossier__hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, var(--red), #ff5a5a 55%, var(--gold));
}
.member-dossier__hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--red) 0%, var(--red) 42%, var(--gold) 42%, var(--gold) 100%);
}
.member-dossier__hero-main {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-width: min(100%, 520px);
  flex: 1;
  padding-left: 4px;
}
.member-dossier__mono {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
  background: linear-gradient(160deg, #e61f1f, var(--red) 55%, #9e0f0f);
  border: 2px solid var(--gold);
  box-shadow: 0 8px 20px rgba(209, 20, 20, .35);
}
.member-dossier__kicker {
  margin: 0 0 2px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(232, 238, 252, .78);
}
.member-dossier__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 2px rgba(209, 20, 20, .25);
}
.member-dossier__name {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.12;
  letter-spacing: -.02em;
  color: #fff;
  text-transform: none;
  max-width: 22ch;
}
.member-dossier__name-sub {
  margin: 2px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(232, 238, 252, .82);
}
.member-dossier__surname {
  color: #fff;
  font-weight: 800;
  border-bottom: 2px solid var(--red);
  padding-bottom: 1px;
}
.member-dossier__name-sep { opacity: .5; }
.member-dossier__id-row {
  margin: 8px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-width: 520px;
}
.member-dossier__id-tile {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 10px;
  padding: 6px 10px 7px;
  backdrop-filter: blur(4px);
}
.member-dossier__id-tile--mem {
  background: rgba(209, 20, 20, .22);
  border-color: rgba(255, 120, 120, .45);
}
.member-dossier__id-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 227, 160, .95);
}
.member-dossier__id-value {
  display: block;
  margin-top: 4px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.15;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.member-dossier__ids {
  margin: 10px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(232, 238, 252, .78);
}
.member-dossier__ids b { color: #fff; font-weight: 700; }
.member-dossier__hero-acts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.btn-ghost--on-navy {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .28);
  color: #fff;
}
.btn-ghost--on-navy:hover {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .4);
}
.member-dossier__status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.member-dossier__stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  box-shadow: 0 1px 0 rgba(20, 51, 140, .04);
  position: relative;
  overflow: hidden;
}
.member-dossier__stat::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--red);
}
.member-dossier__stat:nth-child(2)::before { background: var(--navy); }
.member-dossier__stat:nth-child(3)::before { background: var(--gold); }
.member-dossier__stat-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #7a8398;
}
.member-dossier__stat-value {
  display: block;
  margin-top: 2px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.25;
}
.member-dossier__stat-value.is-ok { color: #15803d; }
.member-dossier__stat-value.is-warn { color: #b45309; }
.member-dossier__stat-value.is-bad { color: var(--red); }
.member-dossier__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.member-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 39, 104, .05);
  border-top: 3px solid var(--red);
}
.member-panel--wide { grid-column: 1 / -1; border-top-color: var(--navy); }
.member-panel--warn {
  border-color: #fcd34d;
  border-top-color: #f59e0b;
  background: linear-gradient(180deg, #fffbeb, #fff);
}
.member-panel__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-bottom: 1px solid #e8edf6;
  background:
    linear-gradient(90deg, rgba(209, 20, 20, .06), transparent 55%),
    #f8fafd;
}
.member-panel__index {
  flex: 0 0 auto;
  min-width: 26px;
  height: 22px;
  padding: 0 6px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: var(--red);
  border: 1px solid #b01010;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .15);
}
.member-panel__head h2 {
  margin: 0;
  font-size: .92rem;
  letter-spacing: -.01em;
  color: var(--navy-deep);
}
.member-panel__lead {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
  max-width: 72ch;
}
.file-grid--dossier {
  margin: 0;
  padding: 2px 4px 6px;
  gap: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.file-grid--dossier > div {
  margin: 0;
  padding: 6px 10px 6px;
  border-bottom: 1px solid #eef2f8;
}
.file-grid--dossier > div.is-span { grid-column: 1 / -1; }
.file-grid--dossier > div.is-key {
  background: linear-gradient(180deg, #fff5f5, #fff);
  border-left: 3px solid var(--red);
}
.file-grid--dossier > div:nth-last-child(-n+2) { border-bottom: 0; }
.file-grid--dossier dt {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #7a8398;
}
.file-grid--dossier dd {
  margin: 1px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  word-break: break-word;
  text-transform: none;
}
.file-grid--dossier dd.is-name {
  font-family: var(--display);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--navy-deep);
}
.file-grid--dossier dd.is-id {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .03em;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}
.member-status-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  background: #fee2e2;
  color: #991b1b;
  font-size: 12px;
  font-weight: 800;
  text-transform: capitalize;
}
.member-dossier__table { width: 100%; }
.member-dossier .table-wrap { border-radius: 0; border-left: 0; border-right: 0; border-bottom: 0; }
.member-dossier .table-wrap thead th { padding: 7px 10px; }
.member-dossier .table-wrap tbody td { padding: 7px 10px; }

.review-file { max-width: none; }
.review-file__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.review-file__grid .file-grid--dossier {
  grid-template-columns: 1fr;
}
.review-file__decision {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: stretch;
  position: sticky;
  bottom: 8px;
  z-index: 12;
  background: linear-gradient(135deg, #0b1f5a, #0a1844);
  border: 0;
  border-top: 3px solid var(--gold);
  box-shadow: 0 -10px 28px rgba(10, 24, 68, .28), inset 4px 0 0 var(--red);
}
.review-file__form {
  display: flex;
  gap: 8px;
  flex: 1 1 280px;
  align-items: center;
  margin: 0;
}
.review-file__form input {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px;
  font: inherit;
  font-size: 13px;
  background: #fff;
}
.review-file__form .btn { white-space: nowrap; }
.review-file__form .btn-danger {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
@media (max-width: 980px) {
  .review-file__grid { grid-template-columns: 1fr; }
}
.member-dossier__review {
  font-weight: 800;
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.member-dossier__empty {
  margin: 0;
  padding: 8px 12px 10px;
  color: var(--muted);
  font-size: 13px;
}
.member-dossier__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  box-shadow: 0 10px 28px rgba(15, 39, 104, .05);
}
.member-dossier__actions-left {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
@media (max-width: 980px) {
  .member-dossier__status,
  .member-dossier__grid,
  .file-grid--dossier,
  .member-dossier__id-row {
    grid-template-columns: 1fr;
  }
  .file-grid--dossier > div:nth-last-child(-n+2) { border-bottom: 1px solid #eef2f8; }
  .file-grid--dossier > div:last-child { border-bottom: 0; }
}
@media (max-width: 640px) {
  .member-dossier__hero { padding: 18px 16px 16px; }
  .member-dossier__mono { width: 58px; height: 58px; border-radius: 14px; font-size: 1.25rem; }
  .member-dossier__name { max-width: none; }
  .member-dossier__id-value { font-size: 1.35rem; }
}

/* Membership sync dashboard */
.side-nav__badge--alert {
  background: #dc2626;
  color: #fff;
  font-weight: 800;
  animation: sync-pulse 1.6s ease-in-out infinite;
}
.topbar-notif {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid #fcd34d;
  background: #fffbeb;
  text-decoration: none;
  color: #1e2a5a;
}
.topbar-notif__ico { font-size: 18px; line-height: 1; }
.topbar-notif__count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.topbar-sync-count {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #1e2a5a;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.sync-alert--members {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid;
  border-radius: 12px;
}
.kpi--warn b { color: var(--red); }
.sync-queue-card h2 { font-size: 1.05rem; }
.linkish {
  background: none;
  border: 0;
  padding: 0;
  color: #1e3a8a;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}
.linkish--danger { color: #b91c1c; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
@keyframes sync-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.sync-alert__kicker {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
}
.sync-alert--ok .sync-alert__kicker { color: #166534; }
.sync-alert--warn strong { color: var(--red); }
.sync-alert--members {
  border-width: 0 0 0 5px;
  border-style: solid;
  box-shadow: 0 8px 22px rgba(20,51,140,.06);
}
.sync-alert--warn.sync-alert--members {
  border-color: var(--red);
  background: linear-gradient(90deg, #fff5f5, #fffbeb 42%);
}
.sync-alert--ok.sync-alert--members { border-color: #16a34a; }
.sync-queue-card {
  border: 1px solid #f1d48a;
  border-top: 3px solid var(--red);
  background: linear-gradient(180deg, #fffdf6 0%, #fff 48%);
  box-shadow: 0 10px 24px rgba(20,51,140,.06);
}
.sync-queue-card h2::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 3px;
  margin-right: 8px;
  vertical-align: middle;
  background: var(--red);
  border-radius: 2px;
}
.row-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  white-space: nowrap;
}
.row-actions form { display: inline; margin: 0; }
.act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.act:hover { border-color: var(--navy); color: var(--navy); }
.act--ok { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.act--bad { background: #fff; border-color: #fecaca; color: #b91c1c; }
.kpi {
  position: relative;
  overflow: hidden;
}
.kpi::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--navy);
}
.kpi--warn::before { background: var(--red); }
thead th {
  box-shadow: inset 0 -3px 0 var(--gold);
}
thead th a { color: #fff; }
.desk-members thead th,
.desk-sync thead th {
  background: var(--red);
  color: #fff;
  box-shadow: inset 0 -3px 0 var(--gold);
}
.desk-members thead th a,
.desk-sync thead th a { color: #fff; }
.toolbar--members {
  align-items: end;
  gap: 10px;
  padding: 12px;
  margin-bottom: 10px;
  background: #fff7f7;
  border: 1px solid #f3c4c6;
  border-radius: 14px;
}
.toolbar__search {
  flex: 1 1 340px;
  min-width: 280px;
}
.toolbar__search input[type="search"] {
  display: block;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 2px solid var(--red);
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  box-shadow: 0 0 0 3px rgba(233, 39, 44, .12);
}
.toolbar__search input[type="search"]::placeholder {
  color: #6b7388;
  opacity: 1;
  font-weight: 600;
}
.toolbar__search input[type="search"]:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(20, 51, 140, .16);
}
.toolbar--members select {
  min-width: 140px;
  padding: 12px 12px;
}
.card > .member-file__hero-row h2 { font-size: 1.2rem; }
.bottom-nav a.is-on { color: var(--red); }
.topbar-notif {
  border-color: var(--red);
  background: #fff5f5;
}