/* ── testsRecords.css ──────────────────────────────────────────── */

.trc-wrap {
  margin-top: 24px;
}

.trc-filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.trc-section {
  margin-bottom: 24px;
}

.trc-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.trc-section-header .tr-section-heading {
  margin-bottom: 4px;
}

.trc-section-header .tr-btn-secondary {
  flex: 0 0 auto;
}

.trc-section-note {
  font-size: 11px;
  color: var(--text-tertiary);
}

.trc-tabstrip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 10px;
}

.trc-tab-btn {
  flex-shrink: 0;
  padding: 8px 14px;
  background: var(--surface);
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: #6b7280;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

[data-theme="dark"] .trc-tab-btn { border-color: rgba(255,255,255,0.16); color: var(--text-secondary); }

.trc-tab-btn--active {
  background: var(--nav-navy);
  border-color: var(--nav-navy);
  color: #fff;
}

.trc-my-submission {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.trc-my-submission-action {
  flex-shrink: 0;
}

.trc-scroll-panel {
  max-height: 320px;
  overflow-y: auto;
  background: var(--surface);
  border: 0.5px solid var(--border-strong);
  border-radius: 10px;
  padding: 6px 14px;
}

.trc-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 0.5px solid var(--border);
  font-size: 13px;
}

.trc-row:last-child { border-bottom: none; }

.trc-row--gold {
  background: linear-gradient(90deg, rgba(212,175,55,0.16), transparent);
  margin: 0 -14px;
  padding: 8px 14px;
  border-radius: 6px;
}

[data-theme="dark"] .trc-row--gold {
  background: linear-gradient(90deg, rgba(212,175,55,0.22), transparent);
}

.trc-row--you {
  background: rgba(30,58,95,0.06);
  margin: 0 -14px;
  padding: 8px 14px;
  border-radius: 6px;
}

[data-theme="dark"] .trc-row--you {
  background: rgba(147,197,253,0.1);
}

.trc-rank {
  width: 22px;
  flex-shrink: 0;
  text-align: center;
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 600;
}

.trc-row--gold .trc-rank { color: #b8860b; }

.trc-row-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.trc-name {
  flex: 1;
  min-width: 0;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trc-sub {
  font-size: 11px;
  color: var(--text-tertiary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trc-val {
  flex-shrink: 0;
  font-weight: 600;
  color: var(--navy-dark);
  font-size: 13px;
}
