:root {
  --bg: #0f141e;
  --card: #161d2b;
  --line: #28354d;
  --ink: #edf2f7;
  --muted: #93a3bc;
  --accent: #a78bfa;
  --ok: #22c55e;
  --bad: #ef4444;
  --warn: #f59e0b;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--ink); font-size: 13px; }
.topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 15px 24px; background: #121824; border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; }
.mark {
  width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, #a78bfa, #6366f1); color: #090d16; font-weight: 900;
}
.topbar h1 { margin: 0; font-size: 17px; }
.topbar p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.actions { display: flex; gap: 8px; }

.shell { width: min(1240px, calc(100% - 32px)); margin: 16px auto 36px; display: grid; gap: 14px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 15px; }
.kpis .card { display: grid; gap: 4px; }
.kpis strong { font-size: 19px; }
.kicker { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); font-weight: 800; }
.muted { color: var(--muted); font-size: 11.5px; }

.btn { padding: 8px 13px; border-radius: 8px; border: 1px solid var(--line); background: #1e293b; color: var(--ink); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.btn.primary { background: linear-gradient(135deg, #a78bfa, #6366f1); color: #070b14; border: 0; }
.btn.ghost { background: transparent; }

.grid-main { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; align-items: start; }
.head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
h2 { margin: 0; font-size: 14.5px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg);
  color: var(--muted); font-size: 11.5px; cursor: pointer; font-weight: 600;
}
.chip.active { border-color: var(--accent); color: #ede9fe; background: rgba(167, 139, 250, 0.14); }

.case-list { display: grid; gap: 7px; }
.case-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 9px 11px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); cursor: pointer;
}
.case-row.active, .case-row:hover { border-color: var(--accent); }
.pill { padding: 3px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; }
.pill.pass { background: rgba(34, 197, 94, 0.15); color: #86efac; }
.pill.fail { background: rgba(239, 68, 68, 0.18); color: #fca5a5; }
.pill.run { background: rgba(245, 158, 11, 0.16); color: #fcd34d; }

.detail-box { display: grid; gap: 10px; }
pre {
  margin: 0; padding: 11px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line);
  font-family: ui-monospace, monospace; font-size: 11.5px; color: #dbeafe; white-space: pre-wrap; line-height: 1.5;
}

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