.admin-dashboard { display: grid; gap: 14px; color: var(--ink); }
.dashboard-heading, .dashboard-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dashboard-heading h1 { margin: 2px 0 0; font-size: clamp(28px, 3vw, 36px); line-height: 1.12; }
.dashboard-eyebrow { margin: 0; color: var(--cobalt-dark); font-size: 11px; letter-spacing: .09em; text-transform: uppercase; font-weight: 800; }
.dashboard-actions { display: flex; gap: 8px; }
.admin-dashboard button:disabled { opacity: .5; cursor: default; }
.dashboard-tabs { display: flex; gap: 15px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.dashboard-tabs a { white-space: nowrap; text-decoration: none; padding: 10px 6px; border-bottom: 3px solid transparent; font-size: 14px; }
.dashboard-tabs a[aria-current="page"] { border-color: var(--cobalt); color: var(--cobalt-dark); font-weight: 700; }
.dashboard-filters, .dashboard-series-controls { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; }
.dashboard-filters label, .dashboard-series-controls label { display: grid; gap: 4px; color: var(--muted); font-size: 12px; font-weight: 700; }
.dashboard-filters input[type="date"], .dashboard-series-controls select, .dashboard-panel select { min-height: 38px; max-width: 100%; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 8px; background: var(--surface); color: var(--ink); }
.dashboard-filters .dashboard-check, .dashboard-check { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-size: 13px; font-weight: 500; }
.dashboard-filter-error { color: #92400e; font-size: 12px; }
.dashboard-filters input[aria-invalid="true"] { border-color: #d97706; background: #fffbeb; }
.dashboard-filters input[aria-invalid="true"]:focus { outline-color: rgba(217, 119, 6, 0.35); }
.dashboard-live:empty { display: none; }
.dashboard-live, .dashboard-meta, .dashboard-caption, .dashboard-panel-meta { color: var(--muted); font-size: 12px; }
.dashboard-meta { margin: 0; }
.dashboard-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.dashboard-kpi { display: grid; text-align: left; align-content: center; gap: 5px; min-height: 103px; padding: 14px 16px; background: transparent; border: 0; border-right: 1px solid var(--line); color: var(--ink); }
.dashboard-kpi:last-child { border-right: 0; }
.dashboard-kpi:hover, .dashboard-kpi:focus-visible { background: var(--mist); }
.dashboard-kpi span { font-size: 11px; text-transform: uppercase; font-weight: 800; letter-spacing: .03em; color: var(--muted); }
.dashboard-kpi strong { font-size: 28px; line-height: 1; }
.dashboard-kpi small { min-height: 1em; color: var(--muted); font-size: 12px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 14px; align-items: stretch; }
.dashboard-panel { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.dashboard-panel h2 { margin: 0 0 14px; font-size: 20px; }
.dashboard-panel-head h2 { margin-bottom: 0; }
.dashboard-panel-head { margin-bottom: 10px; }
.dashboard-chart { width: 100%; height: auto; max-height: 225px; overflow: visible; }
.dashboard-chart text { fill: var(--muted); font-size: 11px; }
.dashboard-legend { display: flex; gap: 16px; color: var(--muted); font-size: 12px; }
.dashboard-legend span { display: inline-flex; align-items: center; gap: 5px; }
.dashboard-legend-swatch { width: 9px; height: 9px; border-radius: 50%; background: var(--cobalt); }
.dashboard-series-1 { background: var(--violet); }
.dashboard-series-controls { margin: 6px 0; }
.dashboard-series-controls label { flex: 1; min-width: 130px; }
.dashboard-series-controls select { width: 100%; }
.dashboard-bars { display: grid; gap: 18px; margin: 20px 0; }
.dashboard-bar-row { display: grid; grid-template-columns: minmax(100px, 1fr) minmax(50px, 2fr) auto; align-items: center; gap: 10px; font-size: 13px; }
.dashboard-bar-track { height: 16px; background: var(--mist); border-radius: 3px; overflow: hidden; }
.dashboard-bar-track div { height: 100%; background: var(--cobalt); }
.dashboard-bar-row strong { min-width: 45px; text-align: right; font-size: 12px; }
.dashboard-scroll { max-width: 100%; overflow-x: auto; }
.dashboard-scroll .table { width: 100%; min-width: 480px; }
.dashboard-cohort-table { min-width: 510px; }
.dashboard-heat { background: var(--mist); text-align: center; }
.dashboard-heat span, .dashboard-heat small { display: block; }
.dashboard-heat small { color: var(--muted); font-size: 11px; }
.dashboard-pending { color: var(--muted); background: var(--paper); text-align: center; }
.dashboard-pagination { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--muted); font-size: 12px; }
.dashboard-pagination span { margin-right: auto; }
.dashboard-footer { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12px; }
.dashboard-link-button { padding: 4px 0; border: 0; background: none; color: var(--cobalt-dark); text-decoration: underline; cursor: pointer; font-size: 12px; }
.dashboard-notice, .dashboard-skeleton, .dashboard-empty { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--muted); }
.dashboard-skeleton { min-height: 125px; background: linear-gradient(100deg, var(--surface) 0%, var(--mist) 50%, var(--surface) 100%); }
.dashboard-modal-backdrop { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(31,41,51,.55); }
.dashboard-modal { position: relative; width: min(650px, 100%); max-height: min(80vh, 800px); overflow-y: auto; padding: 22px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.dashboard-modal h2 { padding-right: 36px; margin-top: 0; }
.dashboard-modal-close { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; border: 0; background: transparent; font-size: 24px; }
.dashboard-definition { display: grid; grid-template-columns: 90px 1fr; gap: 5px 12px; }
.dashboard-definition dt { font-weight: 700; }
.dashboard-definition dd { margin: 0; }
.dashboard-definition-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.dashboard-definition-item h3 { margin: 0 0 6px; }
.dashboard-definition-item p { margin: 4px 0; }
.dashboard-modal input[type="search"] { display: block; width: 100%; min-height: 44px; margin-top: 6px; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); }
@media (max-width: 700px) {
  .dashboard-heading { align-items: start; }
  .dashboard-actions { flex-wrap: wrap; justify-content: end; }
  .dashboard-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-kpi:nth-child(2) { border-right: 0; }
  .dashboard-kpi:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
  .dashboard-filters input[type="date"] { max-width: 142px; }
  .dashboard-panel { padding: 14px; }
  .dashboard-bar-row { grid-template-columns: minmax(80px, 1fr) minmax(40px, 1.5fr) auto; }
  .dashboard-footer { display: grid; }
  .dashboard-actions button, .dashboard-filters button, .dashboard-pagination button, .dashboard-tabs a, .dashboard-check { min-height: 44px; }
}
@media (max-width: 390px) { .dashboard-heading { display: grid; } .dashboard-actions { justify-content: start; } .dashboard-kpi { padding: 12px; } .dashboard-kpi strong { font-size: 24px; } }
@media (prefers-reduced-motion: reduce) { .dashboard-skeleton { background: var(--surface); } }
.dashboard-club-filter { display: inline-grid; gap: 4px; margin-bottom: 10px; color: var(--muted); font-size: 12px; font-weight: 700; }
.dashboard-club-filter select { min-height: 38px; }
@media (max-width: 700px) { .dashboard-club-filter select { min-height: 44px; } }
/* Keep both dashboard panel rows in the initial desktop reading area. */
.dashboard-heading h1 { font-size: clamp(26px, 2.2vw, 30px); }
.admin-dashboard { gap: 10px; }
.dashboard-content { display: grid; gap: 12px; }
.dashboard-kpi { min-height: 88px; }
.dashboard-grid { gap: 12px; }
.dashboard-panel { padding: 12px 16px; }
.dashboard-panel h2 { margin-bottom: 8px; font-size: 18px; }
.dashboard-panel-head { margin-bottom: 6px; }
.dashboard-chart { max-height: 155px; }
.dashboard-series-controls { gap: 8px; margin: 4px 0; }
.dashboard-series-controls label { display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; }
.dashboard-series-controls select { min-width: 0; max-width: 185px; min-height: 34px; }
.dashboard-bars { gap: 12px; margin: 12px 0; }
.dashboard-caption, .dashboard-panel-meta { margin: 8px 0; }
.dashboard-filters select { min-height: 38px; max-width: 100%; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 8px; background: var(--surface); color: var(--ink); }
.dashboard-heat-unknown { background: var(--paper); }
.dashboard-heat-0 { background: #f3f6fb; }
.dashboard-heat-1 { background: #e1eaff; }
.dashboard-heat-2 { background: #b9d0ff; }
.dashboard-heat-3 { background: #739cf8; color: #102242; }
.dashboard-heat-4 { background: var(--cobalt); color: #fff; }
.dashboard-heat-4 small { color: #fff; }
@media (max-width: 700px) {
  .dashboard-series-controls label { display: grid; gap: 4px; }
  .dashboard-series-controls select { max-width: 100%; min-height: 44px; }
  .dashboard-filters select { min-height: 44px; }
  .dashboard-panel { padding: 14px; }
  .dashboard-link-button, .dashboard-panel select { min-height: 44px; }
}
