/* ═══════════════════════════════════════════════════════════
   Attribution Hall of Heroes — ah- prefix
   Gold/amber accent theme differentiating from blue Explorer
   ═══════════════════════════════════════════════════════════ */

:root {
  --ah-gold: #f59e0b;
  --ah-gold-light: #fbbf24;
  --ah-gold-dim: rgba(245, 158, 11, 0.15);
  --ah-gold-glow: rgba(245, 158, 11, 0.08);
  --ah-gold-border: rgba(245, 158, 11, 0.25);
}

/* ── Header ───────────────────────────────────────────────── */
.ah-header {
  padding: 28px 32px 12px;
}
.ah-title {
  font-size: var(--font-3xl);
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
}
.ah-title-icon {
  width: 32px;
  height: 32px;
  color: var(--ah-gold);
}
.ah-title-text {
  background: linear-gradient(135deg, var(--ah-gold-light), var(--ah-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ah-subtitle {
  font-size: var(--font-sm);
  color: var(--text-muted);
  margin-top: 4px;
  margin-left: 44px;
}

/* ── Hero KPI Strip ──────────────────────────────────────── */
.ah-kpi-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  padding: 16px 32px 20px;
}
.ah-kpi {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.ah-kpi::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--ah-gold), transparent);
  opacity: 0;
  transition: var(--transition);
}
.ah-kpi:hover {
  border-color: var(--ah-gold-border);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px var(--ah-gold-glow);
}
.ah-kpi:hover::before { opacity: 1; }
.ah-kpi-label {
  font-size: var(--font-2xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.ah-kpi-value {
  font-size: var(--font-2xl);
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-primary);
}
.ah-kpi-value.gold { color: var(--ah-gold); }
.ah-kpi-value.green { color: var(--success); }
.ah-kpi-value.accent { color: var(--accent); }
.ah-kpi-value.purple { color: var(--purple); }
.ah-kpi-value.cyan { color: var(--cyan); }
.ah-kpi-sub {
  font-size: var(--font-2xs);
  color: var(--text-muted);
  margin-top: 3px;
  font-family: 'JetBrains Mono', monospace;
}

/* ── Horizontal Filter Bar ──────────────────────────────── */
.ah-filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 32px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.ah-band-group {
  display: flex;
  gap: 2px;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2px;
  border: 1px solid var(--border);
}
.ah-band-pill {
  padding: 5px 10px;
  font-size: var(--font-2xs);
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.ah-band-pill:hover { color: var(--text-primary); }
.ah-band-pill.active {
  background: var(--ah-gold-dim);
  color: var(--ah-gold-light);
  border: 1px solid var(--ah-gold-border);
}
.ah-filter-divider {
  width: 1px;
  height: 24px;
  background: var(--border);
  margin: 0 4px;
}

/* ── Dropdown Filters ───────────────────────────────────── */
.ah-dropdown {
  position: relative;
}
.ah-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  font-size: var(--font-2xs);
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.ah-dropdown-btn:hover {
  color: var(--text-primary);
  border-color: var(--ah-gold-border);
}
.ah-dropdown-btn.has-value {
  color: var(--ah-gold-light);
  border-color: var(--ah-gold-border);
  background: var(--ah-gold-dim);
}
.ah-dd-count {
  background: var(--ah-gold);
  color: #000;
  font-size: 9px;
  padding: 0 5px;
  border-radius: 8px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  line-height: 16px;
}
.ah-dd-chevron {
  transition: var(--transition);
  opacity: 0.5;
}
.ah-dd-chevron.open {
  transform: rotate(180deg);
}
.ah-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 200px;
  max-height: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  z-index: 100;
  display: flex;
  flex-direction: column;
}
.ah-dd-search {
  padding: 8px 10px;
  background: var(--bg-secondary);
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  font-size: var(--font-xs);
  outline: none;
}
.ah-dd-search::placeholder { color: var(--text-muted); }
.ah-dd-options {
  overflow-y: auto;
  max-height: 280px;
  padding: 4px;
}
.ah-dd-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: var(--font-xs);
  color: var(--text-secondary);
  transition: var(--transition);
}
.ah-dd-option:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}
.ah-dd-option.active {
  background: var(--ah-gold-dim);
  color: var(--ah-gold-light);
}
.ah-dd-option .ah-facet-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  min-width: 28px;
  text-align: right;
}
.ah-dd-option.active .ah-facet-count {
  color: var(--ah-gold);
}

/* ── Tabs ─────────────────────────────────────────────────── */
.ah-tabs {
  display: flex;
  gap: 0;
  padding: 0 32px;
  border-bottom: 1px solid var(--border);
}
.ah-tab {
  padding: 10px 22px;
  font-size: var(--font-sm);
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}
.ah-tab:hover { color: var(--text-primary); }
.ah-tab.active {
  color: var(--ah-gold-light);
  border-bottom-color: var(--ah-gold);
}
.ah-tab svg { width: 16px; height: 16px; }
.ah-tab-badge {
  background: var(--ah-gold);
  color: #000;
  font-size: 10px;
  padding: 1px 7px;
  border-radius: 10px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

/* ── Toolbar ────────────────────────────────────────────── */
.ah-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}
.ah-toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ah-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ah-search {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 7px 14px;
  border-radius: var(--radius);
  font-size: var(--font-sm);
  width: 260px;
}
.ah-search:focus {
  outline: none;
  border-color: var(--ah-gold-border);
}
.ah-search::placeholder { color: var(--text-muted); }
.ah-sort-select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 7px 12px;
  border-radius: var(--radius);
  font-size: var(--font-sm);
  cursor: pointer;
}
.ah-result-count {
  font-size: var(--font-xs);
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}
.ah-elapsed {
  font-size: var(--font-2xs);
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

/* ── Account Leaderboard ────────────────────────────────── */
.ah-account-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ah-account-row {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  cursor: pointer;
  transition: var(--transition);
  display: grid;
  grid-template-columns: 36px 1fr 130px 90px 90px 36px;
  align-items: center;
  gap: 12px;
}
.ah-account-row:hover {
  border-color: var(--ah-gold-border);
  box-shadow: 0 2px 12px var(--ah-gold-glow);
}
.ah-account-row.expanded {
  border-color: var(--ah-gold-border);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.ah-rank {
  font-size: var(--font-lg);
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
  text-align: center;
}
.ah-rank.top-3 { color: var(--ah-gold); }
.ah-account-info { min-width: 0; }
.ah-account-name {
  font-size: var(--font-sm);
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ah-account-owner {
  font-size: var(--font-2xs);
  color: var(--text-muted);
  margin-top: 2px;
}
.ah-account-stat { text-align: right; }
.ah-account-stat-value {
  font-size: var(--font-base);
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-primary);
}
.ah-account-stat-label {
  font-size: var(--font-2xs);
  color: var(--text-muted);
}
.ah-award-value-col { color: var(--ah-gold); }
.ah-expand-icon {
  color: var(--text-muted);
  transition: var(--transition);
  display: flex;
  justify-content: center;
}
.ah-expand-icon.open { transform: rotate(180deg); }

/* ── Expanded Account Detail ────────────────────────────── */
.ah-account-detail {
  background: var(--bg-secondary);
  border: 1px solid var(--ah-gold-border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 12px 16px;
  margin-top: -6px;
  margin-bottom: 6px;
}

/* ── Band rows (Level 1 — top of hierarchy) ────────────── */
.ah-band-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ah-band-row-top {
  display: grid;
  grid-template-columns: 18px 8px 1fr 100px 100px 80px 100px;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  font-size: var(--font-sm);
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.ah-band-row-top:hover {
  border-color: var(--ah-gold-border);
  box-shadow: 0 1px 8px var(--ah-gold-glow);
}
.ah-band-row-top.expanded {
  border-color: var(--ah-gold-border);
}
.ah-band-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}
.ah-band-indicator.influence { background: var(--ah-gold); }
.ah-band-indicator.near { background: var(--warning); }
.ah-band-indicator.pre { background: var(--text-muted); }
.ah-band-indicator.post { background: var(--accent); }
.ah-band-name-top {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ah-band-stat {
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-secondary);
  font-size: var(--font-xs);
  font-weight: 400;
}
.ah-band-nest {
  padding-left: 16px;
  border-left: 2px solid var(--ah-gold-border);
  margin-left: 12px;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* ── Award rows (Level 2 — replaces source rows) ────────── */
.ah-award-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  border-left: 3px solid transparent;
}
.ah-award-row:hover { background: var(--bg-card); border-left-color: var(--ah-gold); }
.ah-award-row.expanded { background: var(--bg-card); border-left-color: var(--ah-gold); }
.ah-award-left { flex: 1; min-width: 0; }
.ah-award-title-row { display: flex; align-items: center; gap: 6px; }
.ah-award-title {
  font-size: var(--font-sm);
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ah-award-link {
  flex-shrink: 0;
  color: var(--ah-gold);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.15s;
}
.ah-award-link:hover { opacity: 1; text-decoration: none; }
.ah-award-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
  font-size: 11px;
  color: var(--text-muted);
}
.ah-award-source-tag {
  display: inline-block;
  padding: 0 5px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.ah-award-source-tag.nav { background: rgba(59,130,246,0.12); color: #60a5fa; }
.ah-award-source-tag.vp  { background: rgba(168,85,247,0.12); color: #c084fc; }
.ah-award-state { font-weight: 700; color: var(--text-secondary); }
.ah-award-date { opacity: 0.7; }
.ah-award-right {
  flex-shrink: 0;
  text-align: right;
}
.ah-award-amount {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: var(--font-sm);
  color: var(--ah-gold);
  white-space: nowrap;
}
.ah-award-counts {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 2px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
}
.ah-confidence-badge {
  display: inline-block;
  padding: 0 5px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ah-confidence-badge.high { background: rgba(34,197,94,0.15); color: #16a34a; }
.ah-confidence-badge.medium { background: rgba(245,158,11,0.15); color: #d97706; }
.ah-confidence-badge.low { background: rgba(239,68,68,0.12); color: #dc2626; }
.ah-band-value {
  font-family: 'JetBrains Mono', monospace;
  color: var(--ah-gold);
  font-weight: 700;
}
.ah-source-nest {
  padding-left: 18px;
  border-left: 2px solid var(--border);
  margin-left: 8px;
  margin-top: 2px;
}

/* ── Category rows (Level 3) ───────────────────────────── */
.ah-cat-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ah-cat-row {
  display: grid;
  grid-template-columns: 18px 1fr 100px 100px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  font-size: var(--font-sm);
  font-weight: 600;
  color: var(--text-primary);
}
.ah-cat-row:hover { background: var(--bg-card); }
.ah-cat-row.expanded { background: var(--bg-card); }
.ah-cat-chevron { transition: transform 0.2s ease; color: var(--text-muted); }
.ah-cat-chevron.open { transform: rotate(90deg); }
.ah-cat-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ah-cat-stat {
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-secondary);
  font-size: var(--font-xs);
  font-weight: 400;
}

/* ── Venue rows ─────────────────────────────────────────── */
.ah-venue-nest {
  padding-left: 20px;
  border-left: 2px solid var(--border);
  margin-left: 8px;
  margin-top: 2px;
}
.ah-venue-list { display: flex; flex-direction: column; gap: 2px; }
.ah-venue-row {
  display: grid;
  grid-template-columns: 16px 1fr 100px 80px;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  font-size: var(--font-xs);
}
.ah-venue-row:hover { background: rgba(255,255,255,0.03); }
.ah-venue-row.expanded { background: rgba(255,255,255,0.03); }
.ah-venue-title { color: var(--text-primary); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ah-venue-date { color: var(--text-muted); font-family: 'JetBrains Mono', monospace; font-size: var(--font-2xs); }
.ah-venue-stat { text-align: right; font-family: 'JetBrains Mono', monospace; color: var(--text-secondary); font-size: var(--font-xs); }

/* ── Lead nesting ───────────────────────────────────────── */
.ah-lead-nest {
  padding-left: 20px;
  border-left: 2px solid var(--border);
  margin-left: 8px;
  margin-top: 2px;
}

/* ── Lead rows ──────────────────────────────────────────── */
.ah-lead-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  max-height: 400px;
  overflow-y: auto;
}
.ah-lead-header {
  display: grid;
  grid-template-columns: 72px minmax(100px, 1.5fr) minmax(80px, 1.2fr) 36px 80px 68px 32px;
  padding: 4px 10px;
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2px;
}
.ah-lead-row {
  display: grid;
  grid-template-columns: 72px minmax(100px, 1.5fr) minmax(80px, 1.2fr) 36px 80px 68px 32px;
  align-items: center;
  padding: 5px 10px;
  font-size: var(--font-xs);
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}
.ah-lead-row:hover { background: rgba(255, 255, 255, 0.04); }
.ah-lead-row.active {
  background: var(--ah-gold-dim);
  border-left: 2px solid var(--ah-gold);
}
.ah-lead-reader {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ah-lead-dim {
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ah-lead-title { color: var(--text-primary); font-weight: 500; }
.ah-lead-juris { font-size: 11px; }
.ah-lead-st { font-weight: 600; text-align: center; }
.ah-lead-date {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-secondary);
  font-size: 10px;
  white-space: nowrap;
}
.ah-lead-band {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-align: center;
}
.ah-lead-band.influence { color: var(--ah-gold); }
.ah-lead-band.near { color: var(--warning); }
.ah-lead-band.pre { color: var(--text-muted); }
.ah-lead-band.post { color: var(--accent); }
.ah-lead-scan { text-align: center; }
.ah-scan-badge {
  color: var(--primary);
  cursor: pointer;
  font-size: 13px;
}

/* ── Lead Detail Panel ──────────────────────────────────── */
.ah-lead-detail {
  background: rgba(245, 158, 11, 0.04);
  border-left: 3px solid var(--ah-gold-border);
  margin: 2px 0 6px 10px;
  border-radius: 0 6px 6px 0;
  padding: 12px 16px;
}
.ah-detail-section {
  margin-bottom: 12px;
}
.ah-detail-section:last-child { margin-bottom: 0; }
.ah-detail-section-title {
  font-size: var(--font-xs);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.ah-detail-loading {
  color: var(--text-muted);
  font-size: 12px;
  padding: 4px 0;
}
.ah-detail-empty {
  color: var(--text-muted);
  font-size: 12px;
  font-style: italic;
  padding: 4px 0;
}

/* Attribution award cards within lead detail */
.ah-attr-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ah-attr-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
}
.ah-attr-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.ah-attr-card-title {
  font-size: var(--font-xs);
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ah-attr-card-amount {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--ah-gold);
  font-size: var(--font-sm);
  white-space: nowrap;
}
.ah-attr-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-muted);
}
.ah-attr-confidence {
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  text-transform: capitalize;
}
.ah-attr-confidence.high {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
}
.ah-attr-confidence.medium {
  background: rgba(245, 158, 11, 0.15);
  color: var(--ah-gold);
}
.ah-attr-confidence.low {
  background: rgba(239, 68, 68, 0.15);
  color: var(--error);
}
.ah-attr-band {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
}
.ah-attr-band.influence { color: var(--ah-gold); }
.ah-attr-band.near { color: var(--warning); }
.ah-attr-card-vendor {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Badge scan table within lead detail */
.ah-scan-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.ah-scan-table th {
  padding: 4px 8px;
  text-align: left;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
}
.ah-scan-table td {
  padding: 4px 8px;
  color: var(--text-secondary);
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ah-scan-table tr:hover td {
  color: var(--text-primary);
}

/* ── Awards Tab (global list view) ───────────────────────── */
.ah-awards-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ah-awards-grid .ah-award-row {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 1fr 160px 120px 100px;
  gap: 16px;
  border-left: 3px solid transparent;
}
.ah-awards-grid .ah-award-row:hover { border-color: var(--ah-gold-border); }
.ah-award-vendor {
  font-size: var(--font-2xs);
  color: var(--text-muted);
  margin-top: 2px;
}
.ah-awards-grid .ah-award-amount {
  text-align: right;
}
.ah-award-source {
  font-size: var(--font-xs);
  color: var(--text-secondary);
  text-align: center;
}
.ah-award-confidence {
  font-size: var(--font-xs);
  text-align: center;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 500;
}
.ah-award-confidence.high {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
}
.ah-award-confidence.medium {
  background: rgba(245, 158, 11, 0.15);
  color: var(--ah-gold);
}
.ah-award-confidence.low {
  background: rgba(239, 68, 68, 0.15);
  color: var(--error);
}

/* ── Timeline Tab ────────────────────────────────────────── */
.ah-timeline { padding: 20px 0; }
.ah-timeline-bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ah-timeline-row {
  display: grid;
  grid-template-columns: 160px 1fr 100px;
  align-items: center;
  gap: 16px;
}
.ah-timeline-label {
  font-size: var(--font-sm);
  font-weight: 500;
  color: var(--text-primary);
}
.ah-timeline-bar-track {
  height: 28px;
  background: var(--bg-secondary);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.ah-timeline-bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.6s ease;
  min-width: 2px;
}
.ah-timeline-bar-fill.influence {
  background: linear-gradient(90deg, var(--ah-gold), var(--ah-gold-light));
}
.ah-timeline-bar-fill.near {
  background: linear-gradient(90deg, var(--warning), #fcd34d);
}
.ah-timeline-bar-fill.pre {
  background: linear-gradient(90deg, var(--text-muted), #6b7280);
}
.ah-timeline-bar-fill.post {
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
}
.ah-timeline-bar-fill.fy {
  background: linear-gradient(90deg, var(--purple), #c084fc);
}
.ah-timeline-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--font-sm);
  color: var(--text-secondary);
  text-align: right;
}

/* ── Loading / Empty ────────────────────────────────────── */
.ah-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--text-muted);
  gap: 16px;
}
.ah-loading .spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--ah-gold);
  border-radius: 50%;
  animation: ah-spin 0.8s linear infinite;
}
@keyframes ah-spin {
  to { transform: rotate(360deg); }
}
.ah-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.ah-empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}

/* ── Pagination ─────────────────────────────────────────── */
.ah-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 0;
}
.ah-page-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: var(--font-xs);
  cursor: pointer;
  transition: var(--transition);
}
.ah-page-btn:hover { border-color: var(--ah-gold-border); }
.ah-page-btn:disabled { opacity: 0.4; cursor: default; }
.ah-page-info {
  font-size: var(--font-xs);
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

/* ── Buttons ────────────────────────────────────────────── */
.ah-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--radius);
  font-size: var(--font-sm);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.ah-btn-gold {
  background: linear-gradient(135deg, var(--ah-gold), #d97706);
  color: #000;
}
.ah-btn-gold:hover {
  box-shadow: 0 2px 12px var(--ah-gold-glow);
  transform: translateY(-1px);
}
.ah-btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.ah-btn-ghost:hover { border-color: var(--ah-gold-border); color: var(--text-primary); }
.ah-btn svg { width: 14px; height: 14px; }

/* ── Active filter chips ─────────────────────────────────── */
.ah-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 32px;
}
.ah-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--ah-gold-dim);
  border: 1px solid var(--ah-gold-border);
  border-radius: 20px;
  padding: 3px 10px 3px 12px;
  font-size: var(--font-2xs);
  color: var(--ah-gold-light);
}
.ah-chip-remove {
  background: none;
  border: none;
  color: var(--ah-gold);
  cursor: pointer;
  padding: 0 2px;
  font-size: 14px;
  line-height: 1;
}
.ah-chip-remove:hover { color: var(--error); }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1200px) {
  .ah-lead-header,
  .ah-lead-row {
    grid-template-columns: 60px minmax(80px, 1.3fr) minmax(60px, 1fr) 32px 70px 56px 28px;
    font-size: 11px;
  }
  .ah-band-row-top {
    grid-template-columns: 18px 8px 1fr 80px 80px 60px 80px;
  }
}
@media (max-width: 1024px) {
  .ah-account-row {
    grid-template-columns: 32px 1fr 100px 70px 70px 32px;
    gap: 8px;
  }
  .ah-filter-bar {
    padding: 10px 16px;
  }
}
