/* runs.css - Single-column Runs list. */

.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 {
  position: relative;
  display: flex;
  align-items: stretch;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  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-main {
  display: block;
  flex: 1;
  min-width: 0;
  text-align: left;
  background: transparent;
  border: none;
  border-radius: var(--r-sm);
  padding: 10px 10px;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}
.runs-row-main:focus-visible { outline: none; box-shadow: var(--ring); }
.runs-row.has-menu .runs-row-main { padding-right: 4px; }
/* Rows without a menu (runs shared with you) keep their status pill in the same column. */
.runs-list:has(.runs-kebab) .runs-row:not(.has-menu) .runs-row-main { padding-right: 42px; }

.runs-row-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.runs-row-flags { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.runs-shared-glyph {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: var(--r-pill);
  background: var(--brand-tint); color: var(--primary-text);
}
.runs-shared-glyph .ic { width: 14px; height: 14px; }
.runs-shared-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-weight: 600; color: var(--primary-text);
}
.runs-shared-tag .ic { width: 13px; height: 13px; }
.runs-kebab {
  flex: none;
  align-self: flex-start;
  width: 32px; height: 32px; margin: 6px 6px 0 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid transparent; border-radius: var(--r-sm);
  color: var(--muted); cursor: pointer;
  transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
}
.runs-kebab:hover, .runs-kebab[aria-expanded="true"] { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.runs-kebab:focus-visible { outline: none; box-shadow: var(--ring); }
.runs-kebab .ic { width: 18px; height: 18px; }
.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; }

.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;
  }
}

/* A proposal's conversation (the proposal chat on Ready): message count and current revision. */
.runs-chat { display: inline-flex; align-items: center; gap: 4px; }
.runs-chat .ic { width: 13px; height: 13px; color: var(--primary); }
