.toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 180px 160px auto;
  gap: 12px;
  padding: 18px;
  margin-bottom: 18px;
}

.toolbar label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
}

.toolbar input,
.toolbar select {
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  padding: 0 10px;
  background: #fffdfa;
  color: var(--text);
}

.data-source-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: -4px 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: #fff8ed;
  color: var(--muted);
  font-size: 13px;
}

.data-source-bar a {
  color: var(--blue);
  font-weight: 800;
  white-space: nowrap;
}

.record-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0 18px 18px;
}

.record-stat {
  min-height: 112px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: start;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdfa;
}

.record-stat span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.record-stat strong {
  align-self: end;
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
}

.membership-history-table {
  min-width: 1380px;
}

.user-cell {
  display: grid;
  gap: 3px;
}

.user-cell strong {
  color: var(--primary);
}

.user-cell span {
  color: var(--muted);
  font-size: 12px;
}

.record-no {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  background: var(--surface-soft);
  font-size: 12px;
  font-weight: 800;
}

.muted-text {
  color: var(--muted);
  font-size: 12px;
}

.empty-row {
  padding: 28px 0;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 900px) {
  .toolbar,
  .record-stats {
    grid-template-columns: 1fr;
  }
}
