/* --- Filter row --- */
.filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0 8px;
}
.search-input {
  flex: 1;
  min-width: 160px;
}
.filter-sel {
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-surface);
  color: var(--c-text);
  cursor: pointer;
  transition: border-color .15s;
}
.filter-sel:focus {
  outline: none;
  border-color: var(--c-accent);
}

/* --- Result count --- */
.result-meta {
  font-size: 13px;
  color: var(--c-text-muted);
  margin-bottom: 8px;
  min-height: 1.4em;
}

/* --- Privacy note --- */
.privacy-note {
  font-size: 13px;
  color: #1d6fa4;
  background: #e8f3fc;
  border: 1px solid #a8cfea;
  border-radius: var(--radius);
  padding: 8px 12px;
  margin-bottom: 12px;
}

/* --- Error banner --- */
.error-banner {
  background: #fdecea;
  color: var(--c-danger);
  border: 1px solid #e8a89e;
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 14px;
  margin-bottom: 12px;
}

/* --- Table --- */
.table-wrap {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
thead tr {
  background: var(--c-text);
  color: #fff;
}
th {
  text-align: left;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--c-border);
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: #f4f7f4; }

.color-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,.12);
  flex-shrink: 0;
}

.loading-cell {
  text-align: center;
  padding: 32px;
  color: var(--c-text-muted);
}
.empty-state-cell {
  text-align: center;
  padding: 48px 16px;
  color: var(--c-text-muted);
  font-size: 15px;
}

@media (max-width: 560px) {
  .hide-sm { display: none; }
  th, td { padding: 9px 10px; }
}

/* --- Stats section --- */
.stats-section {
  border-top: 1px solid var(--c-border);
  padding-top: 24px;
  margin-top: 8px;
}
.stats-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--c-text-muted);
  margin-bottom: 14px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
@media (max-width: 400px) {
  .stats-grid { grid-template-columns: 1fr; }
}
.stat-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--c-accent);
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-top: 4px;
}

/* --- Brand bar chart --- */
.chart-wrap {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 16px;
}
.chart-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--c-text-muted);
  margin-bottom: 14px;
}
.bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 13px;
}
.bar-label {
  width: 130px;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bar-track {
  flex: 1;
  background: var(--c-bg);
  border-radius: 3px;
  height: 12px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: var(--c-accent);
  border-radius: 3px;
  transition: width .4s ease;
  min-width: 2px;
}
.bar-count {
  width: 28px;
  text-align: right;
  color: var(--c-text-muted);
  flex-shrink: 0;
}
