/* runs.css - Runs list + rail screen. */

.runs-screen .runs-split { min-height: 420px; }

.runs-rail {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-1);
  padding: 12px;
  max-height: calc(100vh - var(--topbar-h) - 120px);
  overflow: auto;
}

.runs-search { margin-bottom: 10px; }
.runs-search input {
  width: 100%;
  font-family: inherit;
  font-size: 13.5px;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--ink);
}
.runs-search input:focus {
  outline: none;
  border-color: var(--info);
  box-shadow: var(--ring);
  background: var(--surface);
}

.runs-group { margin-bottom: 14px; }
.runs-group:last-child { margin-bottom: 0; }
.runs-group-h {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 8px 8px;
}

.runs-row {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  padding: 10px 10px;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  transition: background var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
}
.runs-row + .runs-row { margin-top: 2px; }
.runs-row:hover { background: var(--surface-2); border-color: var(--line); }
.runs-row:focus-visible { outline: none; box-shadow: var(--ring); }

.runs-row-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.runs-client {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.runs-row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
}
.runs-row-meta .dot { opacity: .55; }
.runs-owner { color: var(--ink-2); font-family: var(--mono); font-size: 11.5px; }

.runs-detail .empty-state { min-height: 320px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.empty-state.tight { padding: 28px 16px; }
.empty-state.tight .es-sub { font-size: 12.5px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

@media (max-width: 900px) {
  .runs-rail {
    position: static;
    max-height: none;
  }
}
