body {
  overflow-y: auto;
}

.pageMain--mostVersatile {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  overflow: visible;
}

.infoCallout {
  border: 1px solid rgba(138, 180, 255, 0.2);
  background: rgba(138, 180, 255, 0.05);
  border-radius: 12px;
  padding: 14px 16px;
}

.infoCalloutHead {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 14px;
}

.infoCallout p {
  margin: 4px 0 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.infoCallout p strong {
  color: var(--text);
}

.panel {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  overflow: visible;
}

.panelHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.panelHead h2 {
  margin: 0;
  font-size: 18px;
}

.panelSub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.panelBody {
  padding: 18px;
}

.mostVersatileForm {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: flex-end;
}

.searchField {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 0 0 auto;
}

.searchField--wide {
  min-width: 260px;
  flex: 1 1 280px;
}

.searchField label {
  font-size: 14px;
  opacity: 0.75;
  color: var(--muted);
  font-weight: 600;
}

.searchWrap--field {
  width: 100%;
}

.searchWrap--field input[type="search"] {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  outline: none;
  font-size: 14px;
}

.searchField input[type="search"],
.searchField select {
  width: auto;
  min-width: 130px;
  max-width: 220px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-radius: 10px;
  padding: 0 12px;
  font-size: 14px;
}

.searchField--wide input,
.searchField--wide .searchWrap--field {
  width: 100%;
  max-width: none;
}

.searchField select,
.searchField select option {
  background-color: #111827;
  color: #e5e7eb;
}

.searchField input:focus,
.searchField select:focus,
.searchWrap--field:focus-within {
  outline: none;
  border-color: rgba(96, 165, 250, 0.75);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.16);
}

.searchActions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  margin-left: auto;
}

#resetBtn {
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid var(--stroke);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

#resetBtn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.panelBody--results {
  padding-top: 12px;
  min-height: 0;
  overflow: visible;
}

.tableWrap {
  width: 100%;
  overflow: auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mostVersatileTable {
  width: 100%;
  border-collapse: collapse;
  min-width: 1100px;
  background: rgba(255, 255, 255, 0.025);
}

.mostVersatileTable th,
.mostVersatileTable td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  vertical-align: middle;
  text-align: left;
  font-size: 13px;
}

.mostVersatileTable th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(15, 23, 32, 0.98);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mostVersatileTable tbody tr:hover {
  background: rgba(96, 165, 250, 0.08);
}

.colTune {
  min-width: 260px;
}

.colScore {
  min-width: 140px;
}

.colSummary {
  min-width: 320px;
}

.colActions {
  min-width: 140px;
}

.tuneCell {
  min-width: 260px;
}

.tuneNameLine {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.tuneMainLink {
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  line-height: 1.35;
}

.tuneMainLink:hover {
  color: #93c5fd;
  text-decoration: underline;
}

.tuneSubLine {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.actionLinks {
  display: table-cell;
  white-space: nowrap;
}

.actionLinks a {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-right: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #93c5fd;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.actionLinks a:hover {
  background: rgba(96, 165, 250, 0.14);
  border-color: rgba(96, 165, 250, 0.28);
  color: var(--text);
}

.emptyState,
.errorState,
.loadingState {
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}

.errorState {
  color: #fca5a5;
}

.typePill,
.modePill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  white-space: nowrap;
}

.typePill {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.28);
  color: #fde68a;
}

.modePill {
  background: rgba(167, 139, 250, 0.14);
  border-color: rgba(167, 139, 250, 0.28);
  color: #ddd6fe;
}

/* Evidence levels and progress bars */
.evidenceBadge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  text-transform: uppercase;
}

.evidenceBadge.strong {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.35);
  color: #bbf7d0;
}

.evidenceBadge.medium {
  background: rgba(234, 179, 8, 0.15);
  border-color: rgba(234, 179, 8, 0.35);
  color: #fef08a;
}

.evidenceBadge.weak {
  background: rgba(96, 165, 250, 0.15);
  border-color: rgba(96, 165, 250, 0.3);
  color: #bfdbfe;
}

.scoreWrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.scoreVal {
  font-weight: 800;
  font-size: 14px;
  min-width: 48px;
  text-align: right;
  font-family: monospace;
}

.scoreBarOutline {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  min-width: 60px;
}

.scoreBarFill {
  height: 100%;
  background: linear-gradient(90deg, #60a5fa, #3b82f6);
  border-radius: 999px;
}

.summaryText {
  color: var(--text);
  opacity: 0.85;
  line-height: 1.4;
  font-size: 13px;
}

.sortableTh {
  cursor: pointer;
  user-select: none;
}

.sortableTh::after {
  content: "↕";
  margin-left: 6px;
  opacity: 0.35;
  font-size: 11px;
}

.sortableTh.is-asc::after {
  content: "↑";
  opacity: 0.9;
  color: #93c5fd;
}

.sortableTh.is-desc::after {
  content: "↓";
  opacity: 0.9;
  color: #93c5fd;
}

@media (max-width: 900px) {
  .mostVersatileForm {
    align-items: stretch;
  }

  .searchField,
  .searchField--wide {
    flex: 1 1 calc(50% - 12px);
    min-width: 180px;
  }

  .searchActions {
    margin-left: 0;
  }
}

@media (max-width: 700px) {
  .panelHead {
    flex-direction: column;
    gap: 8px;
  }

  .panelBody,
  .panelHead {
    padding-left: 14px;
    padding-right: 14px;
  }

  .searchField,
  .searchField--wide {
    flex: 1 1 100%;
    min-width: 100%;
  }

  .searchField select {
    width: 100%;
    max-width: none;
  }

  .searchActions {
    flex: 1 1 100%;
  }

  .mostVersatileTable {
    min-width: 980px;
  }
}

/* Session and ABC Tools links in table */
.sessionIconLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.sessionIconLink:hover {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.3);
  transform: translateY(-1px);
}

.sessionIconLink img {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
}

/* Track recordings overview dot link */
.trackOverviewLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.trackOverviewDot {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #fde68a, #f59e0b);
  box-shadow:
    0 0 0 1px rgba(245, 158, 11, 0.5),
    0 0 6px rgba(245, 158, 11, 0.6);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.trackOverviewLink:hover .trackOverviewDot {
  transform: scale(1.2);
  box-shadow:
    0 0 0 1px rgba(245, 158, 11, 0.7),
    0 0 10px rgba(245, 158, 11, 0.9);
}

.abcToolsIconBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  vertical-align: middle;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.abcToolsIconBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
  background: #f8fafc;
}

.abcToolsIconBtn img {
  display: block;
  max-width: 26px;
  max-height: 20px;
  object-fit: contain;
}
