/* ==========================================================================
   Setlists — Eval & Regression Testing Dashboard
   Dark theme, dense data layout, BEM naming
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Design Tokens
   -------------------------------------------------------------------------- */
:root {
  --bg-base: #0d1117;
  --bg-surface: #161b22;
  --bg-elevated: #21262d;
  --bg-border: #30363d;
  --blue: #58a6ff;
  --green: #3fb950;
  --red: #f85149;
  --yellow: #d29922;
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --text-disabled: #484f58;
  --font-ui: 'Inter', -apple-system, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Roboto Mono', monospace;

  /* Spacing scale */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;

  /* Transitions */
  --transition-fast: 120ms ease;
  --transition-base: 200ms ease;
}

/* --------------------------------------------------------------------------
   1. Global Reset + Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-ui);
  line-height: 1.5;
  min-width: 1200px;
  overflow-x: hidden;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code,
pre {
  font-family: var(--font-mono);
  font-size: 11px;
}

pre {
  background: var(--bg-base);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  padding: var(--sp-2);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* --------------------------------------------------------------------------
   21. Custom Dark Scrollbar
   -------------------------------------------------------------------------- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-disabled);
}

::-webkit-scrollbar-corner {
  background: var(--bg-base);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--bg-border) var(--bg-base);
}

/* --------------------------------------------------------------------------
   2. Top Navigation Bar — .nav-bar
   -------------------------------------------------------------------------- */
.nav-bar {
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 var(--sp-4);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--bg-border);
  position: sticky;
  top: 0;
  z-index: 100;
  gap: var(--sp-4);
}

.nav-bar__logo {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.nav-bar__logo-icon {
  width: 20px;
  height: 20px;
  fill: var(--blue);
}

.nav-bar__items {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  list-style: none;
}

.nav-bar__item {
  padding: var(--sp-1) var(--sp-2);
  font-size: 12px;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
}

.nav-bar__item:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.nav-bar__item--active {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.nav-bar__spacer {
  flex: 1;
}

.nav-bar__kpis {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.nav-bar__kpi {
  display: flex;
  align-items: baseline;
  gap: var(--sp-1);
  font-size: 11px;
  color: var(--text-secondary);
}

.nav-bar__kpi-value {
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   3. Layout — .app-layout
   -------------------------------------------------------------------------- */
.app-layout {
  display: flex;
  height: calc(100vh - 48px);
}

.app-layout__sidebar {
  flex: 0 0 260px;
  overflow-y: auto;
  border-right: 1px solid var(--bg-border);
  background: var(--bg-surface);
}

.app-layout__main {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp-4);
}

/* --------------------------------------------------------------------------
   4. Sidebar — .sidebar
   -------------------------------------------------------------------------- */
.sidebar {
  padding: var(--sp-3) 0;
}

.sidebar__heading {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-disabled);
  padding: var(--sp-2) var(--sp-3);
}

/* Suite card */
.suite-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-2) var(--sp-3);
  cursor: pointer;
  border-left: 2px solid transparent;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.suite-card:hover {
  background: var(--bg-elevated);
}

.suite-card--active {
  background: var(--bg-elevated);
  border-left-color: var(--blue);
}

.suite-card__name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 170px;
}

.suite-card__rate {
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 600;
}

.suite-card__rate--high {
  background: rgba(63, 185, 80, 0.15);
  color: var(--green);
}

.suite-card__rate--mid {
  background: rgba(210, 153, 34, 0.15);
  color: var(--yellow);
}

.suite-card__rate--low {
  background: rgba(248, 81, 73, 0.15);
  color: var(--red);
}

/* Set list item */
.set-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px var(--sp-3) 6px var(--sp-5);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.set-list-item:hover {
  background: var(--bg-elevated);
}

.set-list-item--active {
  background: var(--bg-elevated);
}

.set-list-item__name {
  font-size: 12px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.set-list-item__count {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-disabled);
  min-width: 24px;
  text-align: right;
}

.sidebar__divider {
  height: 1px;
  background: var(--bg-border);
  margin: var(--sp-2) var(--sp-3);
}

/* --------------------------------------------------------------------------
   5. KPI Row — .kpi-row
   -------------------------------------------------------------------------- */
.kpi-row {
  display: flex;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}

.kpi-card {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  padding: var(--sp-3);
  min-width: 0;
}

.kpi-card__label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-bottom: var(--sp-1);
}

.kpi-card__value {
  font-size: 20px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
  line-height: 1.2;
}

.kpi-card__delta {
  font-size: 11px;
  font-family: var(--font-mono);
  margin-top: 2px;
}

.kpi-card__delta--up {
  color: var(--green);
}

.kpi-card__delta--down {
  color: var(--red);
}

.kpi-card__delta--neutral {
  color: var(--text-disabled);
}

/* --------------------------------------------------------------------------
   6. Results Table — .results-table
   -------------------------------------------------------------------------- */
.results-table {
  width: 100%;
  font-size: 12px;
}

.results-table thead th {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  padding: var(--sp-2) var(--sp-2);
  border-bottom: 1px solid var(--bg-border);
  text-align: left;
  position: sticky;
  top: 0;
  background: var(--bg-base);
  white-space: nowrap;
}

.results-table tbody tr {
  border-bottom: 1px solid var(--bg-border);
  transition: background var(--transition-fast);
}

.results-table tbody tr:hover {
  background: var(--bg-surface);
}

.results-table td {
  padding: 6px var(--sp-2);
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}

.results-table__name {
  font-weight: 500;
  color: var(--text-primary);
}

.results-table__score {
  font-family: var(--font-mono);
  font-weight: 600;
  text-align: right;
}

.results-table__score--pass {
  color: var(--green);
}

.results-table__score--fail {
  color: var(--red);
}

.results-table__score--warn {
  color: var(--yellow);
}

.results-table__failure {
  font-size: 11px;
  color: var(--text-secondary);
  max-width: 240px;
}

.results-table__failure code {
  background: var(--bg-elevated);
  padding: 1px 4px;
  border-radius: 3px;
  color: var(--red);
}

.results-table__duration {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-disabled);
  text-align: right;
}

/* --------------------------------------------------------------------------
   7. Run Summary — .run-summary
   -------------------------------------------------------------------------- */
.run-summary {
  margin-bottom: var(--sp-4);
}

.run-summary__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-3);
}

.run-summary__title {
  font-size: 16px;
  font-weight: 600;
}

.run-summary__meta {
  font-size: 11px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.run-summary__issues {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.issue-card {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  padding: var(--sp-3);
}

.issue-card__type {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  flex-shrink: 0;
}

.issue-card__type--regression {
  background: rgba(248, 81, 73, 0.15);
  color: var(--red);
}

.issue-card__type--flaky {
  background: rgba(210, 153, 34, 0.15);
  color: var(--yellow);
}

.issue-card__type--new-failure {
  background: rgba(248, 81, 73, 0.15);
  color: var(--red);
}

.issue-card__type--improvement {
  background: rgba(63, 185, 80, 0.15);
  color: var(--green);
}

.issue-card__body {
  flex: 1;
  min-width: 0;
}

.issue-card__desc {
  font-size: 12px;
  color: var(--text-primary);
  margin-bottom: var(--sp-1);
}

.issue-card__link {
  font-size: 11px;
}

/* --------------------------------------------------------------------------
   8. Pipeline Config — .pipeline-config
   -------------------------------------------------------------------------- */
.pipeline-config {
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--sp-4);
}

.pipeline-config__title {
  font-size: 12px;
  font-weight: 600;
  padding: var(--sp-2) var(--sp-3);
  border-bottom: 1px solid var(--bg-border);
  color: var(--text-secondary);
}

.pipeline-config__stage {
  display: grid;
  grid-template-columns: 140px 1fr 100px 80px;
  gap: var(--sp-2);
  align-items: center;
  padding: var(--sp-2) var(--sp-3);
  border-bottom: 1px solid var(--bg-border);
  font-size: 12px;
}

.pipeline-config__stage:last-child {
  border-bottom: none;
}

.pipeline-config__label {
  font-weight: 500;
  color: var(--text-primary);
}

.pipeline-config__model {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--blue);
}

.pipeline-config__provider {
  font-size: 11px;
  color: var(--text-secondary);
}

.pipeline-config__tokens {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-disabled);
  text-align: right;
}

/* --------------------------------------------------------------------------
   9. Sparkline Charts — .sparkline
   -------------------------------------------------------------------------- */
.sparkline {
  display: inline-flex;
  align-items: flex-end;
  gap: 1px;
  height: 24px;
  vertical-align: middle;
}

.sparkline__bar {
  width: 3px;
  border-radius: 1px;
  background: var(--blue);
  transition: height var(--transition-fast);
  min-height: 2px;
}

.sparkline__bar--pass {
  background: var(--green);
}

.sparkline__bar--fail {
  background: var(--red);
}

.sparkline__bar--warn {
  background: var(--yellow);
}

.sparkline--dot {
  align-items: center;
  gap: 3px;
  height: 12px;
}

.sparkline__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue);
}

.sparkline__dot--pass {
  background: var(--green);
}

.sparkline__dot--fail {
  background: var(--red);
}

/* --------------------------------------------------------------------------
   10. Case Detail — .case-detail
   -------------------------------------------------------------------------- */
.case-detail {
  display: grid;
  grid-template-columns: 1fr 1fr 320px;
  gap: var(--sp-3);
  height: 100%;
}

.case-detail__column {
  overflow-y: auto;
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  padding: var(--sp-3);
}

.case-detail__heading {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--bg-border);
}

/* Execution trace */
.execution-trace {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.execution-trace__step {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  padding: var(--sp-1) 0;
  font-size: 12px;
  position: relative;
}

.execution-trace__step::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 20px;
  bottom: -4px;
  width: 1px;
  background: var(--bg-border);
}

.execution-trace__step:last-child::before {
  display: none;
}

.execution-trace__marker {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--bg-border);
  background: var(--bg-surface);
  flex-shrink: 0;
  margin-top: 1px;
}

.execution-trace__marker--pass {
  border-color: var(--green);
  background: rgba(63, 185, 80, 0.15);
}

.execution-trace__marker--fail {
  border-color: var(--red);
  background: rgba(248, 81, 73, 0.15);
}

.execution-trace__marker--active {
  border-color: var(--blue);
  background: rgba(88, 166, 255, 0.15);
}

.execution-trace__content {
  flex: 1;
  min-width: 0;
}

.execution-trace__label {
  font-weight: 500;
  color: var(--text-primary);
}

.execution-trace__timestamp {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-disabled);
  margin-left: var(--sp-2);
}

.execution-trace__detail {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Tool call rows */
.tool-call {
  background: var(--bg-elevated);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-sm);
  padding: var(--sp-2);
  margin-top: var(--sp-1);
  font-size: 11px;
}

.tool-call__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-1);
}

.tool-call__name {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--blue);
}

.tool-call__duration {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-disabled);
}

.tool-call__args,
.tool-call__result {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 80px;
  overflow-y: auto;
}

.tool-call__result {
  margin-top: var(--sp-1);
  padding-top: var(--sp-1);
  border-top: 1px solid var(--bg-border);
}

/* First failure marker */
.first-failure-marker {
  background: rgba(248, 81, 73, 0.08);
  border: 1px solid rgba(248, 81, 73, 0.3);
  border-radius: var(--radius-md);
  padding: var(--sp-2) var(--sp-3);
  margin: var(--sp-2) 0;
}

.first-failure-marker__label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--red);
  margin-bottom: var(--sp-1);
}

.first-failure-marker__message {
  font-size: 12px;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   11. Judge Panel — .judge-panel
   -------------------------------------------------------------------------- */
.judge-panel {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.judge-score {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.judge-score__dimension {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  width: 100px;
  flex-shrink: 0;
  text-align: right;
}

.judge-score__bar-track {
  flex: 1;
  height: 6px;
  background: var(--bg-elevated);
  border-radius: 3px;
  overflow: hidden;
}

.judge-score__bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width var(--transition-base);
}

.judge-score__bar-fill--high {
  background: var(--green);
}

.judge-score__bar-fill--mid {
  background: var(--yellow);
}

.judge-score__bar-fill--low {
  background: var(--red);
}

.judge-score__value {
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-primary);
  width: 36px;
  text-align: right;
}

.reasoning-text {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  padding: var(--sp-3);
  max-height: 200px;
  overflow-y: auto;
}

.reasoning-text__heading {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-disabled);
  margin-bottom: var(--sp-1);
}

/* --------------------------------------------------------------------------
   12. Run Comparison — .comparison-table, .case-diff, .config-diff-bar
   -------------------------------------------------------------------------- */
.comparison-table {
  width: 100%;
  font-size: 12px;
}

.comparison-table thead th {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  padding: var(--sp-2);
  border-bottom: 1px solid var(--bg-border);
  text-align: left;
}

.comparison-table td {
  padding: 6px var(--sp-2);
  border-bottom: 1px solid var(--bg-border);
  vertical-align: middle;
}

.comparison-table__run-a,
.comparison-table__run-b {
  font-family: var(--font-mono);
  font-size: 11px;
}

.comparison-table__delta {
  font-family: var(--font-mono);
  font-weight: 600;
}

.comparison-table__delta--better {
  color: var(--green);
}

.comparison-table__delta--worse {
  color: var(--red);
}

.comparison-table__delta--same {
  color: var(--text-disabled);
}

.case-diff {
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  padding: var(--sp-3);
  margin-bottom: var(--sp-2);
}

.case-diff__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-2);
}

.case-diff__name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
}

.case-diff__columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}

.case-diff__side {
  font-size: 11px;
}

.case-diff__side-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-disabled);
  margin-bottom: var(--sp-1);
}

.config-diff-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  padding: var(--sp-2) var(--sp-3);
  margin-bottom: var(--sp-3);
  font-size: 11px;
}

.config-diff-bar__label {
  font-weight: 600;
  color: var(--text-secondary);
}

.config-diff-bar__item {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.config-diff-bar__old {
  color: var(--red);
  text-decoration: line-through;
}

.config-diff-bar__new {
  color: var(--green);
}

.config-diff-bar__arrow {
  color: var(--text-disabled);
}

/* --------------------------------------------------------------------------
   13. Simulation Runner — .sim-runner
   -------------------------------------------------------------------------- */
.sim-runner {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  height: 100%;
}

.sim-runner__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sim-runner__title {
  font-size: 16px;
  font-weight: 600;
}

.sim-runner__controls {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

/* Case card grid */
.sim-runner__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--sp-2);
  flex: 1;
  overflow-y: auto;
  align-content: start;
}

.case-card {
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  padding: var(--sp-2);
  font-size: 11px;
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.case-card:hover {
  border-color: var(--text-disabled);
}

.case-card--pass {
  border-left: 3px solid var(--green);
}

.case-card--fail {
  border-left: 3px solid var(--red);
}

.case-card--running {
  border-left: 3px solid var(--blue);
}

.case-card--queued {
  border-left: 3px solid var(--text-disabled);
}

.case-card--running::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  animation: case-card-running 1.5s ease infinite;
}

@keyframes case-card-running {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.case-card__name {
  font-weight: 500;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 2px;
}

.case-card__score {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-secondary);
}

.case-card__duration {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-disabled);
}

/* Live failures bar */
.live-failures {
  background: var(--bg-surface);
  border: 1px solid rgba(248, 81, 73, 0.3);
  border-radius: var(--radius-md);
  padding: var(--sp-2) var(--sp-3);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  overflow-x: auto;
  flex-shrink: 0;
}

.live-failures__label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--red);
  white-space: nowrap;
}

.live-failures__item {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.live-failures__item code {
  color: var(--red);
  background: var(--bg-elevated);
  padding: 1px 4px;
  border-radius: 3px;
}

/* Progress bar */
.progress-bar {
  height: 4px;
  background: var(--bg-elevated);
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}

.progress-bar__fill {
  height: 100%;
  border-radius: 2px;
  background: var(--blue);
  transition: width var(--transition-base);
}

.progress-bar__fill--complete {
  background: var(--green);
}

.progress-bar__fill--error {
  background: var(--red);
}

/* --------------------------------------------------------------------------
   14. Set Management — .set-mgmt
   -------------------------------------------------------------------------- */
.set-mgmt {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

.set-mgmt__column {
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.set-mgmt__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3);
  border-bottom: 1px solid var(--bg-border);
}

.set-mgmt__title {
  font-size: 14px;
  font-weight: 600;
}

.set-mgmt__body {
  padding: var(--sp-2);
  max-height: 600px;
  overflow-y: auto;
}

/* Case row */
.case-row {
  display: grid;
  grid-template-columns: 1fr 100px 80px 32px;
  gap: var(--sp-2);
  align-items: center;
  padding: var(--sp-1) var(--sp-2);
  border-bottom: 1px solid var(--bg-border);
  font-size: 12px;
}

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

.case-row:hover {
  background: var(--bg-elevated);
}

.case-row__name {
  font-weight: 500;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-row__field {
  font-size: 11px;
  color: var(--text-secondary);
}

.case-row__action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-disabled);
  cursor: pointer;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.case-row__action:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.case-row__action--danger:hover {
  color: var(--red);
}

/* New case form */
.new-case-form {
  padding: var(--sp-3);
  border-top: 1px solid var(--bg-border);
  background: var(--bg-elevated);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.new-case-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
}

.new-case-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--sp-2);
  margin-top: var(--sp-1);
}

/* --------------------------------------------------------------------------
   15. Trends — .trends-page
   -------------------------------------------------------------------------- */
.trends-page {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.sparkline-panel {
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  padding: var(--sp-3);
}

.sparkline-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-3);
}

.sparkline-panel__title {
  font-size: 14px;
  font-weight: 600;
}

.sparkline-panel__range {
  font-size: 11px;
  color: var(--text-secondary);
}

.sparkline-panel__chart {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 80px;
  padding: var(--sp-2) 0;
}

.sparkline-panel__bar {
  flex: 1;
  min-width: 4px;
  max-width: 12px;
  border-radius: 2px 2px 0 0;
  transition: height var(--transition-fast);
}

/* Stage analysis table */
.stage-analysis-table {
  width: 100%;
  font-size: 12px;
}

.stage-analysis-table thead th {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  padding: var(--sp-2);
  border-bottom: 1px solid var(--bg-border);
  text-align: left;
}

.stage-analysis-table td {
  padding: 6px var(--sp-2);
  border-bottom: 1px solid var(--bg-border);
  vertical-align: middle;
}

.stage-analysis-table__name {
  font-weight: 500;
}

.stage-analysis-table__value {
  font-family: var(--font-mono);
  font-size: 11px;
}

/* Failure patterns */
.failure-patterns {
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  padding: var(--sp-3);
}

.failure-patterns__title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: var(--sp-3);
}

.failure-patterns__item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--bg-border);
  font-size: 12px;
}

.failure-patterns__item:last-child {
  border-bottom: none;
}

.failure-patterns__count {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--red);
  min-width: 32px;
  text-align: right;
}

.failure-patterns__desc {
  color: var(--text-secondary);
  flex: 1;
}

.failure-patterns__trend {
  display: flex;
  align-items: center;
}

/* --------------------------------------------------------------------------
   16. Config Page — .config-page
   -------------------------------------------------------------------------- */
.config-page {
  display: grid;
  grid-template-columns: 260px 1fr 300px;
  gap: var(--sp-3);
  height: 100%;
}

.config-page__panel {
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.config-page__panel-header {
  padding: var(--sp-3);
  border-bottom: 1px solid var(--bg-border);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.config-page__panel-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp-2);
}

/* Stage card */
.stage-card {
  background: var(--bg-elevated);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  padding: var(--sp-3);
  margin-bottom: var(--sp-2);
}

.stage-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-2);
}

.stage-card__name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.stage-card__toggle {
  font-size: 10px;
  color: var(--text-disabled);
  cursor: pointer;
}

.stage-card__fields {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.stage-card__field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stage-card__field-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-disabled);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Config list */
.config-list {
  list-style: none;
}

.config-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-2) var(--sp-3);
  border-bottom: 1px solid var(--bg-border);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.config-list__item:hover {
  background: var(--bg-elevated);
}

.config-list__item--active {
  background: var(--bg-elevated);
  border-left: 2px solid var(--blue);
}

.config-list__name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
}

.config-list__meta {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-disabled);
}

/* Launch button */
.launch-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  width: 100%;
  padding: var(--sp-3);
  background: var(--blue);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: opacity var(--transition-fast);
  margin-top: var(--sp-2);
}

.launch-button:hover {
  opacity: 0.9;
}

.launch-button:active {
  opacity: 0.8;
}

.launch-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.launch-button__icon {
  width: 16px;
  height: 16px;
}

/* --------------------------------------------------------------------------
   17. Forms — inputs, selects, textareas, buttons
   -------------------------------------------------------------------------- */
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--bg-base);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 12px;
  padding: 6px var(--sp-2);
  transition: border-color var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--blue);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-disabled);
}

.form-input--mono {
  font-family: var(--font-mono);
  font-size: 11px;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238b949e'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 24px;
  cursor: pointer;
}

.form-textarea {
  min-height: 64px;
  resize: vertical;
  line-height: 1.5;
}

.form-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.form-group {
  margin-bottom: var(--sp-3);
}

.form-hint {
  font-size: 10px;
  color: var(--text-disabled);
  margin-top: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  padding: 5px var(--sp-3);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text-primary);
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
  line-height: 1.4;
}

.btn:hover {
  background: var(--bg-border);
}

.btn:active {
  background: var(--bg-surface);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn--primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
}

.btn--primary:hover {
  opacity: 0.9;
  background: var(--blue);
}

.btn--danger {
  background: transparent;
  border-color: var(--red);
  color: var(--red);
}

.btn--danger:hover {
  background: rgba(248, 81, 73, 0.1);
}

.btn--sm {
  padding: 3px var(--sp-2);
  font-size: 11px;
}

.btn--lg {
  padding: var(--sp-2) var(--sp-4);
  font-size: 13px;
}

.btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-secondary);
}

.btn--ghost:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.btn__icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   18. Badges — .badge
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 10px;
  line-height: 1.4;
  white-space: nowrap;
}

.badge--pass {
  background: rgba(63, 185, 80, 0.15);
  color: var(--green);
}

.badge--fail {
  background: rgba(248, 81, 73, 0.15);
  color: var(--red);
}

.badge--running {
  background: rgba(88, 166, 255, 0.15);
  color: var(--blue);
}

.badge--pending {
  background: rgba(139, 148, 158, 0.15);
  color: var(--text-secondary);
}

.badge--warn {
  background: rgba(210, 153, 34, 0.15);
  color: var(--yellow);
}

/* --------------------------------------------------------------------------
   19. Status Dots — .status-dot
   -------------------------------------------------------------------------- */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-disabled);
  flex-shrink: 0;
}

.status-dot--pass {
  background: var(--green);
}

.status-dot--fail {
  background: var(--red);
}

.status-dot--running {
  background: var(--blue);
  animation: status-dot-pulse 1.5s ease-in-out infinite;
}

.status-dot--pending {
  background: var(--text-disabled);
}

.status-dot--warn {
  background: var(--yellow);
}

@keyframes status-dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* --------------------------------------------------------------------------
   20. Modals / Drawers
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  backdrop-filter: blur(2px);
}

.modal {
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  width: 480px;
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--bg-border);
}

.modal__title {
  font-size: 14px;
  font-weight: 600;
}

.modal__close {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.modal__close:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.modal__body {
  padding: var(--sp-4);
  overflow-y: auto;
  flex: 1;
}

.modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  border-top: 1px solid var(--bg-border);
}

/* Drawer (slides from right) */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 200;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 480px;
  max-width: 90vw;
  background: var(--bg-surface);
  border-left: 1px solid var(--bg-border);
  z-index: 201;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.3);
}

.drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--bg-border);
}

.drawer__title {
  font-size: 14px;
  font-weight: 600;
}

.drawer__close {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.drawer__close:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp-4);
}

/* --------------------------------------------------------------------------
   22. Utility Classes
   -------------------------------------------------------------------------- */
.text-mono {
  font-family: var(--font-mono);
}

.text-secondary {
  color: var(--text-secondary);
}

.text-disabled {
  color: var(--text-disabled);
}

.text-pass {
  color: var(--green);
}

.text-fail {
  color: var(--red);
}

.text-warn {
  color: var(--yellow);
}

.text-blue {
  color: var(--blue);
}

.text-sm {
  font-size: 11px;
}

.text-xs {
  font-size: 10px;
}

.text-right {
  text-align: right;
}

.text-center {
  text-align: center;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-1 {
  gap: var(--sp-1);
}

.gap-2 {
  gap: var(--sp-2);
}

.gap-3 {
  gap: var(--sp-3);
}

.gap-4 {
  gap: var(--sp-4);
}

.mt-2 {
  margin-top: var(--sp-2);
}

.mt-3 {
  margin-top: var(--sp-3);
}

.mt-4 {
  margin-top: var(--sp-4);
}

.mb-2 {
  margin-bottom: var(--sp-2);
}

.mb-3 {
  margin-bottom: var(--sp-3);
}

.mb-4 {
  margin-bottom: var(--sp-4);
}

.p-2 {
  padding: var(--sp-2);
}

.p-3 {
  padding: var(--sp-3);
}

.p-4 {
  padding: var(--sp-4);
}

.w-full {
  width: 100%;
}

.hidden {
  display: none;
}

/* --------------------------------------------------------------------------
   Section Headers (reusable)
   -------------------------------------------------------------------------- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-3);
}

.section-header__title {
  font-size: 16px;
  font-weight: 600;
}

.section-header__subtitle {
  font-size: 11px;
  color: var(--text-secondary);
  margin-left: var(--sp-2);
}

.section-header__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

/* --------------------------------------------------------------------------
   Empty State
   -------------------------------------------------------------------------- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6) var(--sp-4);
  color: var(--text-disabled);
  text-align: center;
}

.empty-state__icon {
  width: 40px;
  height: 40px;
  margin-bottom: var(--sp-3);
  opacity: 0.5;
}

.empty-state__title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: var(--sp-1);
}

.empty-state__desc {
  font-size: 12px;
}

/* --------------------------------------------------------------------------
   Loading / Skeleton
   -------------------------------------------------------------------------- */
.skeleton {
  background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--bg-border) 50%, var(--bg-elevated) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton--text {
  height: 12px;
  width: 100%;
  margin-bottom: var(--sp-1);
}

.skeleton--text-short {
  height: 12px;
  width: 60%;
}

.skeleton--bar {
  height: 6px;
  width: 100%;
}

.skeleton--card {
  height: 60px;
  width: 100%;
}

/* --------------------------------------------------------------------------
   Tooltip
   -------------------------------------------------------------------------- */
.tooltip {
  position: relative;
}

.tooltip__content {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elevated);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-sm);
  padding: var(--sp-1) var(--sp-2);
  font-size: 11px;
  color: var(--text-primary);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-fast);
  z-index: 50;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tooltip:hover .tooltip__content {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Tab Bar (inline)
   -------------------------------------------------------------------------- */
.tab-bar {
  display: flex;
  align-items: center;
  gap: 0;
  border-bottom: 1px solid var(--bg-border);
  margin-bottom: var(--sp-3);
}

.tab-bar__item {
  padding: var(--sp-2) var(--sp-3);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast);
  margin-bottom: -1px;
}

.tab-bar__item:hover {
  color: var(--text-primary);
}

.tab-bar__item--active {
  color: var(--text-primary);
  border-bottom-color: var(--blue);
}

/* --------------------------------------------------------------------------
   Tag
   -------------------------------------------------------------------------- */
.tag {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 500;
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--bg-border);
}

.tag--blue {
  background: rgba(88, 166, 255, 0.1);
  border-color: rgba(88, 166, 255, 0.2);
  color: var(--blue);
}

.tag--green {
  background: rgba(63, 185, 80, 0.1);
  border-color: rgba(63, 185, 80, 0.2);
  color: var(--green);
}

.tag--red {
  background: rgba(248, 81, 73, 0.1);
  border-color: rgba(248, 81, 73, 0.2);
  color: var(--red);
}

.tag--yellow {
  background: rgba(210, 153, 34, 0.1);
  border-color: rgba(210, 153, 34, 0.2);
  color: var(--yellow);
}

/* --------------------------------------------------------------------------
   Dashboard two-column layout
   -------------------------------------------------------------------------- */
.dashboard__body {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--sp-4);
  margin-top: var(--sp-4);
  min-height: 0;
}

.dashboard__left {
  min-width: 0;
  overflow-x: auto;
}

.dashboard__right {
  min-width: 0;
}

/* Clickable issue cards */
.issue-card--clickable:hover {
  border-color: var(--blue);
  background: rgba(88, 166, 255, 0.04);
}

.issue-card__link {
  font-size: 11px;
  color: var(--blue);
  margin-top: var(--sp-1);
}

/* ── Run picker (dashboard header) ─────────────────────────────────────── */
/* Dropdown that lists the selected suite's recent runs. Without it, the
 * dashboard always shows `suite.latest_run_id` and prior runs become
 * unreachable from the UI the moment a new run starts.
 */
.run-picker {
  position: relative;
  margin: 0 0 var(--sp-3) 0;
}
.run-picker__trigger {
  background: var(--surface-subtle, #14171b);
  border: 1px solid var(--border, #2a2e35);
  color: var(--text, #e6e6e6);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, monospace;
  cursor: pointer;
}
.run-picker__trigger:hover {
  border-color: var(--border-strong, #3a3f48);
}
.run-picker__menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 20;
  min-width: 540px;
  max-height: 480px;
  overflow-y: auto;
  background: var(--surface, #1a1d22);
  border: 1px solid var(--border, #2a2e35);
  border-radius: 6px;
  padding: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.run-picker__item {
  display: grid;
  grid-template-columns: 130px 90px 80px 80px 1fr;
  gap: 12px;
  padding: 8px 10px;
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, monospace;
  color: var(--text, #e6e6e6);
  cursor: pointer;
  border-radius: 4px;
}
.run-picker__item:hover {
  background: rgba(255, 255, 255, 0.04);
}
.run-picker__item--active {
  background: rgba(132, 170, 255, 0.10);
  color: var(--blue, #84aaff);
}
.run-picker__status {
  color: var(--text-muted, #9ba0a8);
}
.run-picker__config {
  color: var(--text-muted, #9ba0a8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --------------------------------------------------------------------------
   Operator sign-in (AUTH-04)
   -------------------------------------------------------------------------- */
.nav-bar__operator {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-left: var(--sp-4);
  font-size: 11px;
  color: var(--text-secondary);
}

.nav-bar__operator-id {
  font-family: var(--font-mono);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-bar__sign-out {
  background: none;
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font: inherit;
  padding: 2px var(--sp-2);
  cursor: pointer;
}

.nav-bar__sign-out:hover {
  color: var(--text-primary);
}

.sign-in {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-ui);
  padding: var(--sp-4);
}

.sign-in__panel {
  width: 100%;
  max-width: 360px;
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.sign-in__title {
  margin: 0;
  font-size: 20px;
}

.sign-in__note {
  margin: 0;
  font-size: 12px;
  color: var(--text-secondary);
}

.sign-in__error {
  margin: 0;
  font-size: 12px;
  color: var(--red);
}

.sign-in__form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.sign-in__label {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  font-size: 12px;
  color: var(--text-secondary);
}

.sign-in__input {
  background: var(--bg-elevated);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font: inherit;
  font-size: 14px;
  padding: var(--sp-2) var(--sp-3);
}

.sign-in__submit {
  background: var(--blue);
  border: none;
  border-radius: var(--radius-md);
  color: var(--bg-base);
  font: inherit;
  font-weight: 600;
  padding: var(--sp-2) var(--sp-3);
  cursor: pointer;
}

.sign-in__submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.sign-in__shared summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--text-secondary);
}
