/* ── Rounds toolbar ───────────────────────────────────────── */
.rounds-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.list-search-wrap {
  flex: 1 1 14rem;
  min-width: 12rem;
  max-width: 24rem;
  margin: 0;
}

.list-search-input {
  width: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.rounds-count-label {
  font-size: 0.8125rem;
  color: var(--color-gray-500);
}

/* ── Pagination controls ──────────────────────────────────── */
.pagination-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.rounds-page-label {
  font-size: 0.8125rem;
  color: var(--color-gray-600);
  min-width: 80px;
  text-align: center;
}

/* ── Rounds table wrapper ─────────────────────────────────── */
.rounds-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--border-radius);
}

/* ── Rounds table ─────────────────────────────────────────── */
.rounds-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.rounds-table thead {
  background: var(--color-gray-50);
  border-bottom: 1px solid var(--color-gray-200);
}

.rounds-table th {
  padding: 0.625rem 0.875rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-gray-600);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.rounds-table th.sortable {
  cursor: pointer;
  user-select: none;
  transition: color var(--transition);
}

.rounds-table th.sortable:hover {
  color: var(--color-dark-green);
}

.rounds-table th.sort-asc::after {
  content: ' ↑';
  color: var(--color-fresh-green);
}

.rounds-table th.sort-desc::after {
  content: ' ↓';
  color: var(--color-fresh-green);
}

.rounds-table td {
  padding: 0.625rem 0.875rem;
  color: var(--color-gray-700);
  border-bottom: 1px solid var(--color-gray-100);
  vertical-align: middle;
}

.rounds-table tbody tr:last-child td {
  border-bottom: none;
}

.rounds-table tbody tr:nth-child(odd) {
  background: var(--color-white);
}

.rounds-table tbody tr:nth-child(even) {
  background: var(--color-gray-50);
}

.rounds-table tbody tr:hover {
  background: var(--color-fresh-green-light);
}

/* ── Name link (human-readable text — inherits body font) ─── */
.name-link {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  color: var(--color-fresh-green);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-align: left;
}

.name-link:hover {
  color: var(--color-dark-green);
}

/* ── Round UUID link cell ─────────────────────────────────── */
.round-uuid-link {
  background: none;
  border: none;
  padding: 0;
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.8125rem;
  color: var(--color-fresh-green);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-align: left;
  white-space: nowrap;
}

.round-uuid-link:hover {
  color: var(--color-dark-green);
}

/* ── Monospace cells ──────────────────────────────────────── */
.rounds-table .cell-mono {
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.8125rem;
  color: var(--color-gray-500);
}

/* ── Empty / loading state ────────────────────────────────── */
.rounds-empty-cell {
  text-align: center;
  color: var(--color-gray-400);
  padding: 2.5rem 1rem;
  font-size: 0.9375rem;
}
