/* SDK Test Runner — Styles */

.ext-sdk-test-runner-header {
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
  margin-bottom: var(--sp-1);
}
.ext-sdk-test-runner-header h1 {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  color: var(--text, #e0e0e0);
}
.ext-sdk-test-runner-version {
  font-size: 12px;
  color: var(--text-3, #888);
  font-family: 'JetBrains Mono', monospace;
}
.ext-sdk-test-runner-desc {
  font-size: 13px;
  color: var(--text-2, #aaa);
  margin: 0 0 var(--sp-4) 0;
  line-height: 1.5;
}

/* Fixtures panel */
.ext-sdk-test-runner-fixtures {
  margin-bottom: var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--border, #333);
  border-radius: 6px;
  background: var(--bg-raised, #1a1a1a);
}
.ext-sdk-test-runner-fixture-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.ext-sdk-test-runner-fixture-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2, #aaa);
  text-transform: uppercase;
  white-space: nowrap;
}
.ext-sdk-test-runner-select {
  padding: var(--sp-1) var(--sp-2);
  font-size: 13px;
  background: var(--bg-raised, #222);
  color: var(--text, #e0e0e0);
  border: 1px solid var(--border, #444);
  border-radius: 4px;
  min-width: 130px;
}
.ext-sdk-test-runner-input {
  padding: var(--sp-1) var(--sp-2);
  font-size: 13px;
  background: var(--bg-raised, #222);
  color: var(--text, #e0e0e0);
  border: 1px solid var(--border, #444);
  border-radius: 4px;
  flex: 1;
  min-width: 200px;
  max-width: 400px;
  font-family: 'JetBrains Mono', monospace;
}
.ext-sdk-test-runner-input::placeholder {
  color: var(--text-3, #666);
  font-family: inherit;
}
.ext-sdk-test-runner-fixture-status {
  font-size: 12px;
  color: var(--text-3, #888);
  font-family: 'JetBrains Mono', monospace;
}
.ext-sdk-test-runner-fixture-note {
  font-size: 11px;
  color: var(--text-3, #666);
  margin-top: var(--sp-2);
  line-height: 1.4;
}

/* Controls */
.ext-sdk-test-runner-controls {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.ext-sdk-test-runner-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
}
.ext-sdk-test-runner-filter-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2, #aaa);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ext-sdk-test-runner-check {
  font-size: 13px;
  color: var(--text, #e0e0e0);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.ext-sdk-test-runner-check input { cursor: pointer; }
.ext-sdk-test-runner-btn-row {
  display: flex;
  gap: var(--sp-2);
}
.ext-sdk-test-runner-btn {
  padding: var(--sp-2) var(--sp-4);
  border-radius: 6px;
  border: 1px solid var(--border, #444);
  background: var(--bg-raised, #2a2a2a);
  color: var(--text, #e0e0e0);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s;
}
.ext-sdk-test-runner-btn:hover { background: var(--bg-hover, #383838); }
.ext-sdk-test-runner-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.ext-sdk-test-runner-btn-primary {
  background: var(--accent, #3b82f6);
  border-color: var(--accent, #3b82f6);
  color: #fff;
}
.ext-sdk-test-runner-btn-primary:hover { filter: brightness(1.15); }
.ext-sdk-test-runner-btn-danger {
  background: var(--danger, #ef4444);
  border-color: var(--danger, #ef4444);
  color: #fff;
}

/* Summary */
.ext-sdk-test-runner-summary {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
  padding: var(--sp-3) var(--sp-3);
  background: var(--bg-raised, #1e1e1e);
  border-radius: 8px;
  border: 1px solid var(--border, #333);
}
.ext-sdk-test-runner-badge {
  display: inline-block;
  padding: var(--sp-1) var(--sp-3);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}

/* Table */
.ext-sdk-test-runner-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border, #333);
  border-radius: 8px;
}
.ext-sdk-test-runner-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.ext-sdk-test-runner-table th {
  text-align: left;
  padding: var(--sp-2) var(--sp-3);
  background: var(--bg-raised, #1e1e1e);
  color: var(--text-2, #aaa);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border, #333);
  position: sticky;
  top: 0;
  z-index: 1;
}
.ext-sdk-test-runner-table td {
  padding: var(--sp-2) var(--sp-3);
  border-bottom: 1px solid var(--border-subtle, #2a2a2a);
  color: var(--text, #e0e0e0);
  vertical-align: top;
}
.ext-sdk-test-runner-table tbody tr:hover {
  background: var(--bg-hover, rgba(255,255,255,0.03));
}
.ext-sdk-test-runner-test-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}
.ext-sdk-test-runner-verdict {
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}
.ext-sdk-test-runner-ms {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-3, #888);
  text-align: right;
}
.ext-sdk-test-runner-detail {
  font-size: 11px;
  color: var(--text-3, #888);
  max-width: 400px;
  word-break: break-word;
}

/* Row verdict highlights */
.ext-sdk-test-runner-row-sdk_bug td { background: rgba(245, 158, 11, 0.06); }
.ext-sdk-test-runner-row-icd_bug td { background: rgba(239, 68, 68, 0.06); }
.ext-sdk-test-runner-row-shape_bug td { background: rgba(168, 85, 247, 0.06); }
.ext-sdk-test-runner-row-error td { background: rgba(239, 68, 68, 0.08); }
