/* Agent performance panel (tracker idea_agentperf). Own file for the same
   reason agent-performance.js is: styles.css is written by several sessions
   at once. Buttons only -- no inputs, so the global input rule does not
   reach anything here. */

.perf-panel {
  display: grid;
  gap: 12px;
}

.perf-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.perf-head h3 {
  margin: 0;
}

.perf-head p {
  margin: 2px 0 0;
  color: var(--sv-text-muted);
  font-size: 0.86rem;
}

.perf-window {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  background: #f8fbfa;
  border: 1px solid rgba(8, 112, 122, 0.14);
  border-radius: 8px;
}

.perf-window-btn {
  min-height: 32px;
  padding: 4px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--lake-dark);
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.perf-window-btn.is-active {
  background: var(--lake-dark);
  color: #fff;
}

.perf-visibility {
  margin: 0;
  color: var(--sv-heading);
  font-size: 0.84rem;
  font-weight: 700;
}

.perf-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}

.perf-tile {
  display: grid;
  align-content: start;
  gap: 2px;
  min-width: 0;
  padding: 10px;
  background: #f8fbfa;
  border: 1px solid rgba(8, 112, 122, 0.14);
  border-radius: 8px;
}

.perf-tile strong {
  color: var(--lake-dark);
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.1;
}

.perf-tile small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.perf-tile em {
  color: var(--muted);
  font-size: 0.74rem;
  font-style: normal;
}

.perf-note {
  margin: 0;
  color: var(--sv-text-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.perf-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(8, 112, 122, 0.14);
  border-radius: 8px;
}

.perf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.perf-table th,
.perf-table td {
  padding: 8px 10px;
  text-align: right;
  white-space: nowrap;
  border-bottom: 1px solid rgba(8, 112, 122, 0.1);
}

.perf-table thead th {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  background: #f8fbfa;
}

.perf-table th[scope="row"],
.perf-table thead th:first-child {
  text-align: left;
}

.perf-table th[scope="row"] strong,
.perf-table th[scope="row"] small {
  display: block;
}

.perf-table th[scope="row"] small {
  color: var(--muted);
  font-weight: 400;
}
