:root {
  --fx-bg: #f6f7f9;
  --fx-surface: #ffffff;
  --fx-text: #14181f;
  --fx-muted: #4b5563;
  --fx-accent: #1f5eff;
  --fx-radius: 12px;
  --fx-space: clamp(16px, 3vw, 32px);
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  display: grid;
  grid-template-rows: auto auto 1fr;
  background: var(--fx-bg);
  color: var(--fx-text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}
header { padding: 0 var(--fx-space); min-height: 56px; display: flex; align-items: center; background: var(--fx-surface); border-bottom: 1px solid #e5e7eb; }
.brand { font-weight: 700; font-size: 1.25rem; color: var(--fx-text); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
nav { padding: 0 var(--fx-space); display: flex; gap: 8px; }
nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; color: var(--fx-accent); border-radius: 8px; text-decoration: none; }
nav a:hover { background: #e8eeff; }
main { padding: var(--fx-space); overflow: auto; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--fx-accent); outline-offset: 2px; }
.msg { padding: 12px 16px; border-radius: var(--fx-radius); background: var(--fx-surface); border: 1px solid #e5e7eb; }
.msg.error { border-color: #b42318; color: #b42318; }
table { border-collapse: collapse; width: 100%; background: var(--fx-surface); border-radius: var(--fx-radius); }
th, td { text-align: start; padding: 12px; border-bottom: 1px solid #e5e7eb; }
.home h1 { font-size: clamp(1.75rem, 5vw, 3rem); margin: 0; }
main h1 { font-size: clamp(1.5rem, 4vw, 2.25rem); margin: 0 0 var(--fx-space); }
.ts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: var(--fx-space); }
.ts-card { background: var(--fx-surface); border: 1px solid #e5e7eb; border-radius: var(--fx-radius); padding: 20px; display: grid; gap: 8px; align-content: start; }
.ts-card h2 { margin: 0; font-size: 1.25rem; }
.ts-card p { margin: 0; color: var(--fx-muted); }
.ts-card .ts-counts { color: var(--fx-text); font-size: 1.125rem; font-weight: 600; }
.ts-badge { justify-self: start; min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; font-weight: 600; }
.ts-passed { background: #e6f6ec; color: #0f6b34; }
.ts-failed { background: #fdecea; color: #b42318; }
.ts-not_run { background: #eef0f3; color: #4b5563; }
.ts-retry { min-height: 44px; margin-top: 12px; padding: 0 20px; border: 0; border-radius: 8px; background: var(--fx-accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.ts-retry:hover { background: #1448cc; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
