*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0f1117;
  --card: #1a1d27;
  --border: #2a2d3a;
  --primary: #6366f1;
  --primary-hover: #4f52d0;
  --success: #22c55e;
  --error: #ef4444;
  --text: #e2e8f0;
  --text-muted: #64748b;
  --input-bg: #12151f;
  --radius: 10px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  padding: 24px 16px 48px;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
}

header {
  text-align: center;
  margin-bottom: 32px;
}

header h1 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.subtitle {
  color: var(--text-muted);
  font-size: 13px;
}

main {
  max-width: 640px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  color: #cbd5e1;
  font-size: 13px;
}

input[type="text"],
input[type="password"],
select {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}

input[type="text"]:focus,
input[type="password"]:focus,
select:focus {
  border-color: var(--primary);
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
}

select option {
  background: #1e2130;
}

.hint {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 4px;
}

.input-with-toggle {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-toggle input {
  padding-right: 42px;
}

.toggle-btn {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  padding: 2px;
  transition: color 0.2s;
}

.toggle-btn:hover { color: var(--text); }
.toggle-btn svg { width: 18px; height: 18px; }

.btn-row {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.btn-action {
  flex: 1;
  padding: 18px 12px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}
.btn-action::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 50%);
  pointer-events: none;
}
.btn-action:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.btn-action:active:not(:disabled) {
  transform: translateY(0);
}
.btn-action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-icon {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
  opacity: 0.9;
}

.btn-desc {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.65;
  letter-spacing: 0.3px;
}

.btn-test {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}
.btn-deep {
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
  box-shadow: 0 2px 8px rgba(20, 184, 166, 0.3);
}
.btn-stress {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

@media (max-width: 520px) {
  .btn-row { flex-direction: column; }
  .btn-action { padding: 14px 12px 12px; }
}

.loading {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* 结果卡片 */
.result {
  margin-top: 20px;
  border-radius: var(--radius);
  padding: 18px 20px;
  border: 1px solid;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.result.success {
  background: rgba(34,197,94,0.08);
  border-color: rgba(34,197,94,0.3);
}

.result.failure {
  background: rgba(239,68,68,0.08);
  border-color: rgba(239,68,68,0.3);
}

.result-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.result-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.success .result-icon { background: rgba(34,197,94,0.2); }
.failure .result-icon { background: rgba(239,68,68,0.2); }

.result-title {
  font-weight: 700;
  font-size: 15px;
}

.success .result-title { color: var(--success); }
.failure .result-title { color: var(--error); }

.result-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.result-row {
  display: flex;
  gap: 8px;
}

.result-label {
  color: var(--text-muted);
  min-width: 80px;
  flex-shrink: 0;
}

.result-value {
  color: var(--text);
  word-break: break-all;
}

.badge-time {
  display: inline-block;
  background: rgba(99,102,241,0.2);
  color: #818cf8;
  border-radius: 6px;
  padding: 1px 8px;
  font-size: 13px;
  font-weight: 600;
}

.hidden { display: none !important; }

/* 历史 */
#historySection {
  margin-top: 28px;
}

.history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.history-header h2 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
}

.btn-clear {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 12px;
  padding: 3px 10px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.btn-clear:hover { color: var(--error); border-color: var(--error); }

.history-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.history-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.history-dot.ok { background: var(--success); }
.history-dot.fail { background: var(--error); }

.history-info { flex: 1; min-width: 0; }

.history-model {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-url {
  color: var(--text-muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-meta {
  text-align: right;
  flex-shrink: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.history-status-ok { color: var(--success); font-weight: 600; }
.history-status-fail { color: var(--error); font-weight: 600; }

/* 性能指标网格 */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
  padding: 16px;
  background: rgba(15, 17, 23, 0.6);
  border-radius: 8px;
  border: 1px solid var(--border);
}

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

.metric-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.metric-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.metric-value.latency {
  color: #f59e0b;
}

.metric-value.speed {
  color: #22c55e;
}

/* 判定结论 */
.judgment-section {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid;
}

.judgment-section.high {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.25);
}

.judgment-section.medium {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.25);
}

.judgment-section.low {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.25);
}

.judgment-section.unknown {
  background: rgba(148, 163, 184, 0.08);
  border-color: rgba(148, 163, 184, 0.25);
}

.judgment-verdict {
  font-size: 14px;
  font-weight: 600;
  color: #f59e0b;
}

.judgment-section.high .judgment-verdict {
  color: #22c55e;
}

.judgment-section.low .judgment-verdict {
  color: #f87171;
}

.judgment-price {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.judgment-flags {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.judgment-flag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 渠道来源 */
.channel-section {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid;
}

.channel-section.high {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.28);
}
.channel-section.medium {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.25);
}
.channel-section.low {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.25);
}
.channel-section.unknown {
  background: rgba(148, 163, 184, 0.08);
  border-color: rgba(148, 163, 184, 0.25);
}

.channel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.channel-label {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.channel-source {
  font-size: 14px;
  font-weight: 600;
  color: #c7d2fe;
}
.channel-section.medium .channel-source { color: #f59e0b; }
.channel-section.low .channel-source { color: #f87171; }
.channel-section.unknown .channel-source { color: #cbd5e1; }

.channel-confidence {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

.channel-reason {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.5;
}

.channel-evidence {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 8px 10px;
  margin-top: 4px;
}

/* 矛盾信号块 */
.channel-contradictions {
  margin-top: 8px;
  padding: 10px 12px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 6px;
}
.channel-contradictions-title {
  font-size: 12px;
  font-weight: 600;
  color: #f87171;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}
.channel-contradictions-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.channel-contradiction {
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.2);
  border-left: 3px solid;
  border-radius: 3px;
}
.channel-contradiction.high { border-color: #ef4444; }
.channel-contradiction.medium { border-color: #f59e0b; }
.cc-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 2px;
}
.cc-detail {
  font-size: 11.5px;
  color: #cbd5e1;
  line-height: 1.55;
  word-break: break-word;
}

.channel-evidence-empty {
  font-size: 12px;
  color: var(--text-muted);
}

.channel-evidence-title {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.channel-evidence-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.channel-evidence-list li {
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #cbd5e1;
  word-break: break-all;
  line-height: 1.5;
}

.channel-evidence-list code {
  color: #93c5fd;
  background: transparent;
  padding: 0;
}

.channel-ev-sep {
  color: var(--text-muted);
  margin: 0 4px;
}

.channel-ev-val {
  color: #e2e8f0;
}

.channel-raw {
  margin-top: 8px;
}

.channel-raw summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--text-muted);
  user-select: none;
  padding: 4px 0;
}

.channel-raw summary:hover {
  color: #c7d2fe;
}

.channel-raw-pre {
  margin-top: 6px;
  padding: 10px 12px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: #cbd5e1;
  max-height: 320px;
  overflow: auto;
  white-space: pre;
}

.result-content {
  font-size: 13px;
  line-height: 1.5;
  max-height: 80px;
  overflow-y: auto;
}

/* 回复内容：默认截断 3 行，点击展开 / 收起 */
.result-content.clamp {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: none;
  cursor: pointer;
}
.result-content.clamp.expanded {
  -webkit-line-clamp: unset;
  display: block;
  max-height: 320px;
  overflow-y: auto;
}

/* ==================== 可折叠结果分区 ==================== */
.collapsible-section {
  margin: 12px 0 4px;
}
.collapsible-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  padding: 2px 0;
}
.collapsible-summary::-webkit-details-marker { display: none; }
.collapsible-summary:hover .cs-title { color: var(--text); }
.cs-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.15s;
}
.cs-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cs-count {
  font-size: 12px;
  color: var(--text-muted);
}
.cs-chevron {
  font-size: 11px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}
details[open] > .collapsible-summary .cs-chevron { transform: rotate(180deg); }
.collapsible-body {
  margin-top: 10px;
  animation: cs-reveal 0.18s ease;
}
@keyframes cs-reveal {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}
/* details 形态下复用原分区底色，但取消标题区的额外间距 */
.validation-section.collapsible-section .validation-section-title { display: none; }
.channel-section.collapsible-section .channel-head { margin-bottom: 0; }

@media (max-width: 480px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==================== 深度测试 ==================== */

/* 进度卡 */
.deep-progress {
  margin-top: 18px;
  padding: 16px;
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius);
}
.deep-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.deep-progress-title {
  font-weight: 600;
  font-size: 14px;
}
.deep-progress-stats {
  font-size: 13px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), #8b5cf6);
  transition: width 0.25s ease;
}
.deep-progress-current {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cur-pass { color: var(--success); }
.cur-fail { color: var(--error); }
.cur-skip { color: var(--text-muted); }

.deep-progress-counts {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  font-size: 12px;
}
.count-pass { color: var(--success); }
.count-fail { color: var(--error); }
.count-skip { color: var(--text-muted); }
.deep-progress-counts strong { font-weight: 700; }

/* 历史表 */
#deepHistorySection {
  margin-top: 32px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px 24px;
}
.deep-table-wrap {
  overflow-x: auto;
}
.deep-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.deep-table thead th {
  text-align: left;
  padding: 10px 12px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  font-size: 12px;
}
.deep-table tbody td {
  padding: 12px;
  border-bottom: 1px solid rgba(42, 45, 58, 0.5);
  vertical-align: middle;
}
.deep-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}
.run-id {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--text);
  border: 1px solid var(--border);
}
.channel-name {
  font-weight: 600;
  color: var(--text);
}
.st-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid;
}
.st-ok {
  color: #fcd34d;
  background: rgba(252, 211, 77, 0.08);
  border-color: rgba(252, 211, 77, 0.3);
}
.st-partial {
  color: #fb923c;
  background: rgba(251, 146, 60, 0.1);
  border-color: rgba(251, 146, 60, 0.3);
}
.st-err {
  color: var(--error);
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
}
.st-run {
  color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.3);
}

.grade-badge {
  display: inline-block;
  width: 32px;
  text-align: center;
  padding: 2px 0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid;
}
.g-s {
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.12);
  border-color: rgba(167, 139, 250, 0.4);
}
.g-a {
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.12);
  border-color: rgba(96, 165, 250, 0.4);
}
.g-b {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.4);
}
.g-c {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.4);
}
.g-d {
  color: #fb7185;
  background: rgba(251, 113, 133, 0.12);
  border-color: rgba(251, 113, 133, 0.4);
}
.g-f {
  color: var(--error);
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.4);
}
.g-none {
  color: var(--text-muted);
  background: rgba(148, 163, 184, 0.08);
  border-color: rgba(148, 163, 184, 0.25);
}

.link-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 13px;
  cursor: pointer;
  padding: 2px 6px;
}
.link-btn.link-delete {
  color: var(--error);
}
.link-btn:hover {
  text-decoration: underline;
}

/* 模态 */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 50;
  padding: 24px;
}
.modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  width: 100%;
  max-width: 880px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.modal-title {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  color: var(--text);
}
.modal-subtitle {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
}
.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.modal-close:hover {
  color: var(--text);
}
.modal-body {
  padding: 16px 20px 20px;
  overflow-y: auto;
}
.modal-loading,
.modal-empty {
  padding: 40px;
  text-align: center;
  color: var(--text-muted);
}

.cat-block {
  margin-bottom: 18px;
}
.cat-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.cat-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}
.cat-stats {
  font-size: 12px;
  color: var(--text-muted);
}
.cat-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.case-row {
  display: grid;
  grid-template-columns: 24px 1fr 2fr 60px;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 12.5px;
  align-items: center;
}
.case-row:hover {
  background: rgba(255, 255, 255, 0.03);
}
.case-status {
  text-align: center;
  font-weight: 700;
}
.case-pass .case-status { color: var(--success); }
.case-fail .case-status { color: var(--error); }
.case-skip .case-status { color: var(--text-muted); }
.case-name {
  font-weight: 500;
}
.case-msg {
  color: var(--text-muted);
  font-size: 12px;
  word-break: break-all;
}
.case-time {
  text-align: right;
  font-size: 11px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 720px) {
  .case-row {
    grid-template-columns: 24px 1fr;
    gap: 4px;
  }
  .case-msg {
    grid-column: 1 / -1;
    padding-left: 34px;
  }
  .case-time {
    grid-column: 1 / -1;
    padding-left: 34px;
    text-align: left;
  }
}

/* 确认弹窗 */
.modal-confirm {
  max-width: 520px;
}
.modal-confirm .modal-title {
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.confirm-lead {
  margin-bottom: 8px;
  color: var(--text);
}
.confirm-lead strong {
  color: #818cf8;
}
.confirm-list {
  margin: 0 0 14px 22px;
  padding: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.9;
}
.confirm-list li {
  list-style: disc;
}
.confirm-foot {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}
.confirm-foot strong {
  color: #f59e0b;
}
.confirm-warn {
  margin-top: 4px;
  padding: 10px 12px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 8px;
  font-size: 12.5px;
  color: #fbbf24;
  line-height: 1.6;
}
.modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover {
  border-color: var(--text-muted);
}
.btn-confirm {
  background: var(--primary);
  border: none;
  border-radius: 8px;
  color: #fff;
  padding: 8px 22px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-confirm:hover { background: var(--primary-hover); }

/* ==================== 并发压测 ==================== */

.stress-form-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.stress-form-row label {
  width: 92px;
  flex-shrink: 0;
  margin: 0;
  font-size: 13px;
  color: #cbd5e1;
}
.stress-form-row input[type="number"] {
  width: 110px;
  padding: 6px 10px;
  font-size: 13px;
}
.stress-form-row .hint {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}
.stress-checkbox-group {
  display: flex;
  gap: 14px;
}
.cbx {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  margin: 0;
}
.cbx input[type="checkbox"] {
  width: 14px;
  height: 14px;
  cursor: pointer;
}

.stress-mode-row { margin-bottom: 14px; }
.stress-mode-group {
  display: flex;
  gap: 10px;
  flex: 1;
}
.stress-mode-option {
  flex: 1;
  cursor: pointer;
  margin: 0;
}
.stress-mode-option input[type="radio"] { display: none; }
.stress-mode-card {
  display: block;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.15s, background 0.15s;
}
.stress-mode-card strong {
  display: block;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 2px;
}
.stress-mode-card small {
  font-size: 12px;
  color: var(--text-muted);
}
.stress-mode-option input[type="radio"]:checked + .stress-mode-card {
  border-color: #818cf8;
  background: rgba(129, 140, 248, 0.08);
}

.stress-result {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stress-overall {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.stress-overall-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.stress-overall-title {
  font-weight: 700;
  font-size: 15px;
}
.stress-level {
  font-size: 12.5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.lvl-excellent { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.lvl-good      { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.lvl-fair      { background: rgba(234, 179, 8, 0.15);  color: #facc15; }
.lvl-poor      { background: rgba(239, 68, 68, 0.15);  color: #f87171; }
.lvl-unknown   { background: rgba(148, 163, 184, 0.15); color: #94a3b8; }

.stress-overall-stats {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 8px;
}
.stress-overall-stats strong {
  color: var(--text);
  font-weight: 700;
}
.stress-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.cc-tag {
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.25);
}
.stress-lines {
  margin: 8px 0 0 18px;
  padding: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.7;
}
.stress-lines li { margin-bottom: 2px; }

.stress-scenarios {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.stress-scenario-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.stress-scenario-card.skipped { opacity: 0.65; }
.stress-scenario-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.scenario-name {
  font-weight: 600;
  font-size: 14px;
}
.scenario-rate {
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.scenario-rate.ok   { color: #4ade80; }
.scenario-rate.warn { color: #facc15; }
.scenario-rate.bad  { color: #f87171; }
.scenario-skipped {
  font-size: 12px;
  color: var(--text-muted);
}
.scenario-reason {
  font-size: 12px;
  color: var(--text-muted);
}

.stress-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}
.stress-metric-grid > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
}
.stress-metric-grid .mk {
  font-size: 11px;
  color: var(--text-muted);
}
.stress-metric-grid .mv {
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.stress-metric-grid .mv-warn { color: #f59e0b; }

/* 指标对比箭头 + 标准值 */
.mc-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.mc-row .mc-arrow {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}
.mc-row .mc-std {
  color: var(--text-muted);
  white-space: nowrap;
}
.mc-good { color: #22c55e; }
.mc-warn { color: #f59e0b; }
.mc-bad  { color: #ef4444; }
.mc-good .mc-std,
.mc-warn .mc-std,
.mc-bad  .mc-std {
  color: inherit;
  opacity: 0.85;
}

.overall-sr-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  vertical-align: baseline;
}
.overall-sr-wrap .mc-row {
  margin-top: 0;
}

.stress-status-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.st-pill {
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--input-bg);
}
.st-pill-ok  { color: #4ade80; border-color: rgba(34, 197, 94, 0.3); }
.st-pill-bad { color: #f87171; border-color: rgba(239, 68, 68, 0.3); }

.stress-errors {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 6px;
}
.stress-errors summary {
  cursor: pointer;
  color: var(--text-muted);
}
.stress-errors ul {
  margin: 6px 0 0 18px;
  padding: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: var(--text);
  line-height: 1.6;
}

/* 缓存检测 */
.stress-cache {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.cache-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.cache-label {
  font-weight: 600;
  color: var(--text);
}
.cache-level {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}
.cache-none .cache-level  { background: rgba(100,116,139,0.15); color: #94a3b8; }
.cache-low .cache-level   { background: rgba(234,179,8,0.12);   color: #facc15; }
.cache-medium .cache-level { background: rgba(249,115,22,0.15); color: #fb923c; }
.cache-high .cache-level  { background: rgba(239,68,68,0.15);   color: #f87171; }
.cache-metrics {
  display: flex;
  gap: 16px;
  color: var(--text-muted);
  font-size: 12px;
  margin-bottom: 4px;
}
.cache-metrics strong { color: var(--text); }

/* 双指标显示：真实缓存命中率 + 输出一致性率 */
.cache-metrics-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 6px 0 8px;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.04);
}
.cache-metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
}
.cache-metric-label {
  color: var(--text);
  font-weight: 500;
}
.cache-metric-hint {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 11px;
}
.cache-metric-value {
  font-weight: 700;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.cache-metric-real      { color: #4ade80; }   /* 真实缓存命中：绿色 */
.cache-metric-zero      { color: #f87171; }   /* 明确 0% 命中：红色（区别于"未检出"的灰色）*/
.cache-metric-empty     { color: #94a3b8; font-size: 12px; font-weight: 500; }
.cache-metric-consistency { color: #fbbf24; } /* 输出一致性：黄色，提示这只是启发式 */
.cache-context {
  font-size: 12px;
  color: var(--text-muted);
  margin: 4px 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cache-proto-good { background: rgba(74, 222, 128, 0.15); color: #4ade80; padding: 2px 8px; border-radius: 3px; font-size: 11px; }
.cache-proto-fallback { background: rgba(251, 191, 36, 0.15); color: #fbbf24; padding: 2px 8px; border-radius: 3px; font-size: 11px; }
.cache-request-strip {
  margin: 8px 0;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}
.rstrip-legend {
  font-size: 10.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.rstrip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}
.rstrip-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  cursor: help;
  user-select: none;
}
.rstrip-baseline   { background: #475569; color: #e2e8f0; }
.rstrip-warmup     { background: #2563eb; color: #fff; }
.rstrip-warmup-miss{ background: #7f1d1d; color: #fee2e2; }
.rstrip-hit        { background: #16a34a; color: #fff; }
.rstrip-create     { background: #ca8a04; color: #fff; }
.rstrip-miss       { background: #b91c1c; color: #fff; }
.rstrip-probe-miss { background: #0e7490; color: #cffafe; }
.rstrip-probe-hit  { background: #be185d; color: #fdf2f8; box-shadow: 0 0 0 1px #f472b6 inset; }
.cache-src-strong  { background: rgba(74, 222, 128, 0.18); color: #4ade80; padding: 2px 8px; border-radius: 3px; font-size: 11px; }
.cache-src-weak    { background: rgba(251, 191, 36, 0.18); color: #fbbf24; padding: 2px 8px; border-radius: 3px; font-size: 11px; }
.cache-src-fake    { background: rgba(244, 63, 94, 0.18); color: #fb7185; padding: 2px 8px; border-radius: 3px; font-size: 11px; font-weight: 600; }

/* R/W token 双柱状图 —— 直观展示递增式缓存读写规律（参考 cctest.ai） */
.cache-rw-bars {
  margin: 10px 0 12px;
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 6px;
}
.rw-bars-title {
  font-size: 12px;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 6px;
}
.rw-bars-legend {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}
.rw-bar-read-sample,
.rw-bar-write-sample {
  display: inline-block;
  width: 14px;
  height: 10px;
  border-radius: 2px;
  vertical-align: middle;
  margin-right: 4px;
}
.rw-bar-read-sample  { background: #4ade80; }
.rw-bar-write-sample { background: #fbbf24; }
.rw-bar-row {
  display: grid;
  grid-template-columns: 38px 1fr 150px;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  margin-bottom: 3px;
}
.rw-bar-label {
  color: var(--text-muted);
  font-family: var(--mono, monospace);
  text-align: right;
}
.rw-bar-track {
  position: relative;
  height: 14px;
  background: rgba(148, 163, 184, 0.12);
  border-radius: 3px;
  display: flex;
  overflow: hidden;
}
.rw-bar-read,
.rw-bar-write {
  display: block;
  height: 100%;
  transition: width 0.2s ease;
}
.rw-bar-read  { background: #4ade80; }
.rw-bar-write { background: #fbbf24; }
.rw-bar-num {
  font-family: var(--mono, monospace);
  color: var(--text-muted);
  text-align: right;
  white-space: nowrap;
}
.rw-num-read  { color: #4ade80; }
.rw-num-write { color: #fbbf24; }
.cache-metric-extra {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
  padding-left: 2px;
}
.cache-metric-extra:last-of-type { margin-bottom: 0; }
.cache-metric-extra strong { color: var(--text); }
.cache-preview {
  font-size: 11px;
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  margin: 4px 0;
  padding: 4px 8px;
  background: rgba(0,0,0,0.2);
  border-radius: 4px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.cache-detail {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 4px;
  line-height: 1.5;
}

/* 缓存诊断块（3 次对照请求 + verdict） */
.cache-diagnostic {
  margin: 8px 0;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid;
  background: rgba(255, 255, 255, 0.02);
}
.cache-diagnostic.diag-good {
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.06);
}
.cache-diagnostic.diag-warn {
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.06);
}
.cache-diagnostic.diag-bad {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.06);
}

.diag-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.diag-label {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}
.diag-verdict {
  font-size: 13px;
  font-weight: 600;
}
.cache-diagnostic.diag-good .diag-verdict { color: #22c55e; }
.cache-diagnostic.diag-warn .diag-verdict { color: #f59e0b; }
.cache-diagnostic.diag-bad  .diag-verdict { color: #f87171; }

.diag-reason {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.55;
  margin-bottom: 6px;
}

.diag-detail-toggle summary {
  cursor: pointer;
  font-size: 11.5px;
  color: var(--text-muted);
  user-select: none;
  padding: 4px 0;
}
.diag-detail-toggle summary:hover { color: #c7d2fe; }

.diag-rows {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.diag-row {
  padding: 8px 10px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.diag-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.diag-row-title {
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
}
.diag-status {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}
.diag-status.diag-ok { color: #22c55e; background: rgba(34, 197, 94, 0.08); }
.diag-status.diag-fail { color: #f87171; background: rgba(239, 68, 68, 0.08); }
.diag-row-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
  line-height: 1.5;
}
.diag-usage {
  margin: 0;
  padding: 6px 8px;
  background: #0a0d14;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  color: #cbd5e1;
  word-break: break-all;
  white-space: pre-wrap;
  max-height: 120px;
  overflow: auto;
}

/* ============================================================
   测试选项 toggles（流式 / thinking）
   ============================================================ */
.test-options,
.basic-config-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.opt-toggle {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}
.opt-toggle:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(99, 102, 241, 0.3);
}
.opt-toggle input[type="checkbox"] {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: #6366f1;
  cursor: pointer;
}
.opt-toggle-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.opt-toggle-text strong {
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
}
.opt-toggle-text small {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.4;
}
.opt-toggle input:checked ~ .opt-toggle-text strong {
  color: #c7d2fe;
}

/* ============================================================
   附加校验区块（token 计数 / thinking / 流式）
   ============================================================ */
.validation-section {
  margin: 12px 0 4px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}
.validation-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.validation-block {
  margin-bottom: 10px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  border-left: 3px solid var(--text-muted);
}
.validation-block:last-child { margin-bottom: 0; }
.validation-block.vd-pass { border-left-color: #22c55e; }
.validation-block.vd-warn { border-left-color: #f59e0b; }
.validation-block.vd-fail { border-left-color: #ef4444; }
.validation-block.vd-skip { border-left-color: #475569; opacity: 0.65; }

.vd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.vd-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.vd-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.02em;
}
.vd-pass-badge,
.validation-block.vd-pass .vd-badge { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.vd-warn-badge,
.validation-block.vd-warn .vd-badge { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.vd-fail-badge,
.validation-block.vd-fail .vd-badge { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.vd-skip-badge { background: rgba(100, 116, 139, 0.18); color: #94a3b8; }

.vd-summary {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 6px;
}
.vd-extra {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}
.vd-extra strong { color: var(--text); font-variant-numeric: tabular-nums; }
.vd-extra code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  color: #c7d2fe;
}
.vd-checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vd-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.015);
  border-radius: 4px;
}
.vd-check-icon {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  border-radius: 50%;
}
.vd-c-pass .vd-check-icon { color: #22c55e; background: rgba(34, 197, 94, 0.12); }
.vd-c-fail .vd-check-icon { color: #f87171; background: rgba(239, 68, 68, 0.12); }
.vd-check-body { flex: 1; min-width: 0; }
.vd-check-name {
  font-size: 12px;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 2px;
}
.vd-check-detail {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.45;
  word-break: break-all;
}

@media (max-width: 600px) {
  .stress-metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
