/* ═══════════════════════════════════════════════════════════════════════
   AE Commission Tool — /admin/commission dashboard styles
   ───────────────────────────────────────────────────────────────────────
   Reuses the design tokens defined in /css/commission.css. Adds layout
   and presentation specific to the admin dashboard: filter rail, two-
   column body, tabs, stats row, per-rep table, charts grid, drill-down
   panel.
   ═══════════════════════════════════════════════════════════════════════ */

body.admin {
  /* Wider page; admin content needs more horizontal real-estate. */
  background: #f4f4f7;
}

/* ── Auth-gate states ──────────────────────────────────────────── */
.gate {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ae-bg, #f6f6f8);
  z-index: 50;
}
.gate-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--ae-border, #e3e3ea);
  border-top-color: var(--ae-purple, #5F51D5);
  border-radius: 50%;
  animation: gate-spin 0.7s linear infinite;
  margin-right: 12px;
}
@keyframes gate-spin { to { transform: rotate(360deg); } }
.gate-text { color: var(--ae-text-soft, #6a6a72); font-size: 0.9rem; }
.gate-card {
  text-align: center;
  background: white;
  border: 1px solid var(--ae-border);
  border-radius: var(--ae-radius);
  padding: 36px 40px;
  box-shadow: var(--ae-shadow-md);
  max-width: 420px;
}
.gate-card h1 { margin: 0 0 8px; font-size: 1.4rem; }
.gate-card p { color: var(--ae-text-soft); margin: 4px 0 16px; }
.gate-detail { font-family: 'DM Mono', ui-monospace, monospace; font-size: 0.78rem; }

/* ── Admin header (mirrors App Hub's .admin-header — admin.css) ──
   Dark ink background, white logo + "Commission · Admin" sub-label
   on the left, user chrome on the right. Class names match the Hub
   so future cross-tool styling shares the same selectors. */
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 28px;
  background: #0E0B2E;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 20;
}
.admin-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.admin-header-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.admin-header-logo img {
  /* AElogoallwhite.png is the true white wordmark — same asset the
     Hub uses on its own admin header. Bundled locally because the
     Hub serves it with CORP:same-origin, which blocks cross-
     subdomain embedding. No CSS filter; sits on the dark header
     directly. */
  height: 20px;
  width: auto;
  display: block;
}
.admin-header-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.22);
  flex-shrink: 0;
}
.admin-header-sub {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
  white-space: nowrap;
}
.admin-header-breadcrumb {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-header-breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}
.admin-header-breadcrumb a:hover { text-decoration: underline; }

.admin-user {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}
.admin-user img {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}
.admin-user a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: var(--ae-radius-sm);
  transition: color 120ms ease-out, background 120ms ease-out;
}
.admin-user a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
@media (max-width: 640px) {
  .admin-header { padding: 12px 16px; flex-wrap: wrap; }
  .admin-header-divider, .admin-header-sub { display: none; }
  .admin-user img { width: 24px; height: 24px; }
}

/* ── Admin sub-nav (Team commissions / Plans / Users) ──────────── */
.admin-subnav {
  display: flex;
  gap: 4px;
  align-items: center;
  background: var(--ae-surface);
  border-bottom: 1px solid var(--ae-border);
  padding: 0 28px;
  position: sticky;
  top: 50px; /* sits flush under the .admin-header (≈50px) */
  z-index: 15;
  overflow-x: auto;
}
.admin-subnav-link {
  display: inline-flex;
  align-items: center;
  padding: 12px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ae-text-soft);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: color 120ms ease-out, border-color 120ms ease-out;
}
.admin-subnav-link:hover { color: var(--ae-text); }
.admin-subnav-link.active {
  color: var(--ae-purple);
  border-bottom-color: var(--ae-purple);
}
@media (max-width: 640px) {
  .admin-subnav { padding: 0 16px; }
}

/* The drilldown panel still uses .btn-ghost-tight (close button) and
   so does the filter rail (Reset). Light-bg button used inside main
   content areas, not the dark header. */
.btn-ghost-tight {
  background: none;
  border: 0;
  font: inherit;
  font-size: 0.85rem;
  color: var(--ae-text-soft);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--ae-radius-sm);
}
.btn-ghost-tight:hover { background: #ececf2; color: var(--ae-text); }

/* ── Two-column body ───────────────────────────────────────────── */
.admin-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  min-height: calc(100vh - 60px);
}

/* ── Filter rail (left, sticky) ─────────────────────────────────── */
.filter-rail {
  background: var(--ae-surface);
  border-right: 1px solid var(--ae-border);
  padding: 18px 16px;
  position: sticky;
  top: 60px;
  align-self: flex-start;
  height: calc(100vh - 60px);
  overflow-y: auto;
  font-size: 0.88rem;
}
.filter-rail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.filter-rail-header h3 {
  margin: 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ae-text-soft);
}
.filter-group {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ae-border);
}
.filter-group:last-child { border-bottom: 0; }
.filter-label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--ae-text);
}
.filter-select {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--ae-border-strong);
  border-radius: var(--ae-radius-sm);
  background: white;
  font: inherit;
}
.filter-hint {
  font-size: 0.75rem;
  color: var(--ae-text-soft);
  margin-top: 4px;
}
.filter-checks {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.filter-checks label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: var(--ae-radius-sm);
}
.filter-checks label:hover { background: #f3f1ff; }
.filter-checks input[type="checkbox"] { margin: 0; }

/* ── Main column ───────────────────────────────────────────────── */
.admin-main {
  padding: 24px 32px 48px;
  max-width: 1400px;
}
/* Plans + Users pages don't use the filter rail — main spans full body. */
.admin-main-full {
  padding: 24px 32px 48px;
  max-width: 1400px;
  width: 100%;
}

/* ── Plans table cell (used in /admin/plans) ──────────────────── */
.plan-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.plan-cell .plan-name { font-weight: 500; }
.plan-cell .plan-id {
  font-size: 0.78rem;
  color: var(--ae-text-soft);
  font-family: 'DM Mono', ui-monospace, monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rep-table tr.plan-row { cursor: pointer; }
.rep-table tr.plan-row:hover { background: #f3f1ff; }

/* ── Wide drawer (plan + user edit) ──────────────────────────── */
.drilldown-wide { width: 640px; max-width: 95vw; }
.drilldown-wide .drilldown-body { padding: 20px 24px; }
.drilldown-wide form .field { margin-bottom: 14px; }
.drilldown-wide textarea {
  font-family: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  line-height: 1.45;
  min-height: 240px;
  resize: vertical;
}
.drawer-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--ae-border);
}

/* ── Role chips (used in /admin/users table) ──────────────────── */
.role-chip {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 999px;
}
.role-chip.role-admin    { background: #ede9fe; color: #5b21b6; }
.role-chip.role-finance  { background: #dbeafe; color: #1e40af; }
.role-chip.role-manager  { background: #ecfeff; color: #0e7490; }
.role-chip.role-rep      { background: #f0fdf4; color: #15803d; }
.role-chip.role-none     { background: #f1f1f5; color: var(--ae-text-soft); }

.rep-table .user-row { cursor: pointer; }
.rep-table .user-row:hover { background: #f3f1ff; }
.muted-cell { color: var(--ae-text-soft); }

/* Inline programs checkbox cluster in the user drawer — denser than
   the filter-rail variant so it lays out compactly. */
.programs-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.programs-checks label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  padding: 4px 10px;
  border: 1px solid var(--ae-border);
  border-radius: var(--ae-radius-sm);
}
.programs-checks label:hover { border-color: var(--ae-purple); }
.admin-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}
.admin-page-title {
  margin: 0 0 4px;
  font-size: 1.6rem;
  font-weight: 600;
}
.admin-page-sub {
  margin: 0;
  color: var(--ae-text-soft);
  font-size: 0.95rem;
}
.live-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  background: white;
  border: 1px solid var(--ae-border);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  color: var(--ae-text-soft);
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ae-success, #2f9e6e);
  animation: live-pulse 1.6s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── Tab toggle ────────────────────────────────────────────────── */
.tab-row {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--ae-border);
  margin: 16px 0 20px;
}
.tab {
  background: none;
  border: 0;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 10px 16px;
  cursor: pointer;
  color: var(--ae-text-soft);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab:hover { color: var(--ae-text); }
.tab.tab-active {
  color: var(--ae-purple);
  border-bottom-color: var(--ae-purple);
}

/* ── Admin hero + leaderboard pane ─────────────────────────────── */
.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 1080px) {
  .admin-hero { grid-template-columns: 1fr; }
}
.admin-hero-stat {
  background: linear-gradient(180deg, #ffffff 0%, #faf9ff 100%);
  border: 1px solid var(--ae-border);
  border-radius: 14px;
  padding: 22px 26px;
  box-shadow: var(--ae-shadow-md);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
}
.admin-hero-left { min-width: 0; }
.admin-hero-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ae-text-soft);
  margin-bottom: 6px;
}
.admin-hero-amount {
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--ae-purple);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: 10px;
}
.admin-hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.admin-hero-delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
}
.admin-hero-delta.up { background: #dcfce7; color: #15803d; }
.admin-hero-delta.down { background: #fee2e2; color: #b91c1c; }
.admin-hero-delta.neutral { background: #f1f1f5; color: var(--ae-text-soft); }
.admin-hero-period {
  font-size: 0.82rem;
  color: var(--ae-text-soft);
}
.admin-hero-spark {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.admin-hero-spark canvas {
  width: 240px;
  height: 80px;
  max-width: 100%;
  display: block;
}
.admin-hero-spark-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ae-text-soft);
}
@media (max-width: 640px) {
  .admin-hero-stat { grid-template-columns: 1fr; }
  .admin-hero-spark { align-items: flex-start; }
  .admin-hero-spark canvas { width: 100%; }
}

/* Leaderboard pane (right of hero) */
.admin-leaderboard {
  background: var(--ae-surface);
  border: 1px solid var(--ae-border);
  border-radius: var(--ae-radius);
  padding: 18px 22px;
  box-shadow: var(--ae-shadow-sm);
}
.admin-leaderboard-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}
.admin-leaderboard-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ae-text-soft);
  font-weight: 600;
}
.admin-leaderboard-sub {
  font-size: 0.78rem;
  color: var(--ae-text-soft);
}
.admin-leaderboard-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.admin-leaderboard-list .admin-leaderboard-empty {
  color: var(--ae-text-soft);
  font-size: 0.85rem;
  text-align: center;
  padding: 12px 0;
}
.admin-leaderboard-row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 12px;
}
.admin-leaderboard-row .avatar {
  /* uses .rep-avatar */
}
.admin-leaderboard-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.admin-leaderboard-name {
  font-weight: 500;
  font-size: 0.92rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-leaderboard-bar {
  width: 100%;
}
.admin-leaderboard-amount {
  font-weight: 600;
  color: var(--ae-purple);
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
}

/* Rep avatar (initials, soft-color background) — shared by leaderboard
   row, per-rep table cell, drilldown header. */
.rep-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: white;
  flex-shrink: 0;
}
.rep-avatar-sm { width: 28px; height: 28px; font-size: 0.72rem; }

/* ── Stats row ─────────────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.stat-chips {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.stat-chips .status-chip {
  font-size: 0.7rem;
  padding: 2px 6px;
}
.stat-detail.delta-up { color: var(--ae-success); }
.stat-detail.delta-down { color: var(--ae-danger); }

/* ── Per-rep table ─────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--ae-radius-sm);
}
.rep-table, .audit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.rep-table th, .rep-table td,
.audit-table th, .audit-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--ae-border);
  vertical-align: middle;
}
.rep-table th, .audit-table th {
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ae-text-soft);
  background: #fafafd;
}
.rep-table th.sortable { cursor: pointer; user-select: none; }
.rep-table th.sortable:hover { color: var(--ae-text); }
.rep-table th.sort-active { color: var(--ae-purple); }
.rep-table th.sort-active.sort-asc::after  { content: ' ▲'; font-size: 0.7em; }
.rep-table th.sort-active.sort-desc::after { content: ' ▼'; font-size: 0.7em; }
.rep-table tbody tr { cursor: pointer; }
.rep-table tbody tr:hover { background: #f3f1ff; }
.rep-table tbody tr.selected { background: #ebe7ff; }
.rep-table .empty {
  text-align: center;
  padding: 32px;
  color: var(--ae-text-soft);
  cursor: default;
}
.rep-table .rep-cell {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: center;
}
.rep-table .rep-cell .rep-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.rep-table .rep-cell .rep-name { font-weight: 500; }
.rep-table .rep-cell .rep-email {
  font-size: 0.78rem;
  color: var(--ae-text-soft);
  font-family: 'DM Mono', ui-monospace, monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Earned cell now stacks $-value over a share-of-total mini bar. */
.rep-table .gross-share-bar {
  margin-top: 6px;
  height: 4px;
  background: #eef0f3;
  border-radius: 999px;
  overflow: hidden;
  min-width: 80px;
}
.rep-table .gross-share-bar-fill {
  height: 100%;
  background: var(--ae-purple);
  border-radius: 999px;
}

/* Trend cell — tiny sparkline canvas per rep */
.rep-table .trend-cell {
  width: 110px;
  padding: 6px 12px;
}
.rep-table .trend-cell canvas {
  width: 110px;
  height: 32px;
  display: block;
}

/* Last-activity cell with relative time + raw timestamp on hover */
.rep-table .last-cell {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.rep-table .last-cell .last-relative {
  font-weight: 500;
}
.rep-table .last-cell .last-absolute {
  font-size: 0.72rem;
  color: var(--ae-text-soft);
  display: block;
}
.rep-table .gross-cell {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--ae-purple);
}
.rep-table .type-chips, .rep-table .status-chips {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.rep-table .type-chip {
  font-size: 0.72rem;
  background: #f0eeff;
  color: #4a4ac9;
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 500;
}
.rep-table .status-chip {
  font-size: 0.7rem;
  padding: 2px 6px;
}

/* ── Charts grid ───────────────────────────────────────────────── */
.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}
.chart-card-wide {
  grid-column: 1 / -1;
}
.chart-card canvas {
  width: 100%;
  height: 220px;
  display: block;
}

/* ── Audit table ───────────────────────────────────────────────── */
.audit-table .empty {
  text-align: center;
  padding: 32px;
  color: var(--ae-text-soft);
}
.audit-table .audit-time {
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 0.82rem;
  color: var(--ae-text-soft);
  white-space: nowrap;
}
.audit-table .audit-action {
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 0.82rem;
}
.audit-table .audit-target {
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--ae-text-soft);
  word-break: break-all;
}

/* ── Drill-down panel ──────────────────────────────────────────── */
.drilldown {
  position: fixed;
  top: 0;
  right: 0;
  width: 480px;
  max-width: 95vw;
  height: 100vh;
  background: var(--ae-surface);
  border-left: 1px solid var(--ae-border);
  box-shadow: -8px 0 24px rgba(20, 20, 30, 0.08);
  display: flex;
  flex-direction: column;
  z-index: 40;
  transform: translateX(100%);
  transition: transform 200ms ease-out;
}
.drilldown[hidden] {
  display: flex !important;
  visibility: hidden;
}
.drilldown.open {
  transform: translateX(0);
  visibility: visible;
}
.drilldown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--ae-border);
  flex-shrink: 0;
}
.drilldown-rep {
  font-weight: 600;
  font-size: 1.05rem;
}
.drilldown-meta {
  font-size: 0.82rem;
  color: var(--ae-text-soft);
}
.drilldown-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px;
}
.drill-event {
  border: 1px solid var(--ae-border);
  border-radius: var(--ae-radius-sm);
  padding: 12px 14px;
  margin-bottom: 10px;
  background: white;
}
.drill-event-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.drill-event-type {
  font-weight: 500;
}
.drill-event-bounty {
  font-weight: 600;
  color: var(--ae-purple);
  font-variant-numeric: tabular-nums;
}
.drill-event-meta {
  font-size: 0.82rem;
  color: var(--ae-text-soft);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.drill-event-meta .sep { color: var(--ae-border-strong); }
.drill-event-expand {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--ae-text-soft);
  border-top: 1px solid var(--ae-border);
  padding-top: 8px;
  display: none;
}
.drill-event.open .drill-event-expand { display: block; }
.drill-event-expand pre {
  background: #fafafd;
  padding: 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  overflow-x: auto;
  margin: 6px 0 0;
}
.drill-toggle {
  font-size: 0.78rem;
  color: var(--ae-purple);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
  margin-top: 6px;
}
.drill-toggle:hover { text-decoration: underline; }

/* ── Reduced-motion guards for the admin page ──────────────────── */
@media (prefers-reduced-motion: reduce) {
  .live-dot,
  .gate-spinner,
  .drilldown,
  .admin-hero,
  .stat-tile {
    animation: none !important;
    transition: none !important;
  }
}
