/* Lab results page — light theme */
body.lab-theme {
  background: #f4f6f9;
  color: #1e293b;
}
body.lab-theme .bar {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
body.lab-theme .bar strong { color: #0f172a; }
body.lab-theme .tag { color: #b45309; background: #fffbeb; padding: 2px 8px; border-radius: 6px; }
body.lab-theme nav {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}
body.lab-theme nav a { color: #2563eb; font-weight: 500; }
body.lab-theme nav a:hover { color: #1d4ed8; }
body.lab-theme .hint { color: #64748b; }
body.lab-theme .warn { color: #b45309; }
body.lab-theme .box,
body.lab-theme pre.box {
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
body.lab-theme code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

body.lab-theme .lab-export-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin: 16px 0;
  padding: 14px 16px;
}
body.lab-theme .lab-export-label {
  font-weight: 600;
  color: #0f172a;
}
body.lab-theme .lab-export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
body.lab-theme .lab-export-hint {
  margin: 0;
  flex: 1 1 220px;
  color: #64748b;
  font-size: 0.85rem;
}
body.lab-theme .lab-result-teaser {
  margin: 6px 0 4px;
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.45;
}
body.lab-theme .lab-detail-block {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.9rem;
  line-height: 1.55;
  padding: 12px 16px;
  margin: 0 16px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-family: ui-sans-serif, system-ui, sans-serif;
}
body.lab-theme .summary { margin: 20px 0 28px; }
body.lab-theme .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  border: 1px solid transparent;
}
body.lab-theme .pill-ok { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
body.lab-theme .pill-bad { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
body.lab-theme .pill-pending { background: #f8fafc; color: #475569; border-color: #e2e8f0; }

body.lab-theme .lab-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: #334155;
  margin: 28px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e2e8f0;
}
body.lab-theme .lab-section-title:first-of-type { margin-top: 0; }

body.lab-theme .lab-result-card {
  margin-bottom: 10px;
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
body.lab-theme .lab-result-card:hover {
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}
body.lab-theme .lab-result-card.lab-status-ok { border-left: 4px solid #10b981; }
body.lab-theme .lab-result-card.lab-status-pending { border-left: 4px solid #94a3b8; }
body.lab-theme .lab-result-card.lab-status-bad { border-left: 4px solid #ef4444; }

body.lab-theme .lab-result-details { margin: 0; }
body.lab-theme .lab-result-summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  user-select: none;
}
body.lab-theme .lab-result-summary::-webkit-details-marker { display: none; }
body.lab-theme .lab-result-summary:hover { background: #f8fafc; }
body.lab-theme .lab-result-details[open] .lab-result-summary {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
body.lab-theme .lab-result-details[open] .lab-chevron { transform: rotate(180deg); }

body.lab-theme .lab-summary-grid {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 12px;
  align-items: center;
}
body.lab-theme .lab-status-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
body.lab-theme .lab-status-ok .lab-status-icon { background: #d1fae5; color: #047857; }
body.lab-theme .lab-status-pending .lab-status-icon { background: #f1f5f9; color: #64748b; }
body.lab-theme .lab-status-bad .lab-status-icon { background: #fee2e2; color: #b91c1c; }

body.lab-theme .test-title { font-size: 1rem; color: #0f172a; margin: 0; }
body.lab-theme .test-meta { color: #64748b; margin-top: 4px; }
body.lab-theme .test-detail {
  color: #475569;
  margin: 0;
  padding: 12px 16px 0;
  font-size: 14px;
  line-height: 1.5;
}
body.lab-theme .lab-result-expanded { padding: 0 16px 16px; }

body.lab-theme .status {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 999px;
}
body.lab-theme .status-ok { background: #d1fae5; color: #047857; }
body.lab-theme .status-bad { background: #fee2e2; color: #b91c1c; }
body.lab-theme .status-pending { background: #e2e8f0; color: #475569; }

body.lab-theme .lab-chevron {
  color: #94a3b8;
  transition: transform 0.2s ease;
  display: flex;
}
body.lab-theme .lab-evidence-hint {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
}

body.lab-theme .lab-viewer-global { margin-top: 12px; }
body.lab-theme .card-mode-btn,
body.lab-theme button.btn {
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #334155;
  border-radius: 8px;
}
body.lab-theme .card-mode-btn:hover { border-color: #2563eb; color: #2563eb; }
body.lab-theme .card-mode-btn.is-active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}
body.lab-theme .lab-screenshot {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-top: 8px;
}
body.lab-theme .lab-proof-frame {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  margin-top: 8px;
}
body.lab-theme .evidence-viewer { margin-top: 4px; }
body.lab-theme .evidence-pane { display: none; }
body.lab-theme .evidence-pane.is-active { display: block; }

body.lab-theme .lab-page-title { color: #0f172a; margin-bottom: 8px; }
body.lab-theme .lab-run-meta { font-size: 13px; color: #64748b; margin-bottom: 0; }

body.lab-theme .lab-search {
  padding: 14px 16px;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 12px;
  align-items: center;
}
body.lab-theme .lab-search-label {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}
body.lab-theme .lab-search-input {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 15px;
  background: #fff;
  color: #0f172a;
}
body.lab-theme .lab-search-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
body.lab-theme .lab-search-clear { margin: 0; }
body.lab-theme .lab-search-status {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 12px;
  color: #64748b;
}
body.lab-theme .lab-search-empty {
  text-align: center;
  color: #64748b;
  padding: 24px;
  margin-top: 12px;
}
body.lab-theme .lab-result-card[hidden],
body.lab-theme .lab-status-section[hidden] {
  display: none !important;
}
