:root {
  --probe-css-loaded: 1;
  --bg: #07111f;
  --panel: rgba(18, 35, 55, 0.78);
  --panel-strong: #102338;
  --line: rgba(154, 187, 219, 0.16);
  --text: #ecf6ff;
  --muted: #8ba5bb;
  --cyan: #52e6d1;
  --blue: #66a8ff;
  --red: #ff6d7d;
  --amber: #f5c463;
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 85% 0%, rgba(44, 120, 175, 0.3), transparent 36rem),
    radial-gradient(circle at 5% 35%, rgba(35, 166, 151, 0.15), transparent 28rem),
    var(--bg);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.18;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.shell {
  width: min(100% - 32px, 760px);
  margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) 0 max(28px, env(safe-area-inset-bottom));
}

.hero { padding: 26px 4px 30px; }
.eyebrow, .kicker, .fact span, .diagnostics span, footer {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
}

.signal-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px var(--cyan);
}

h1 {
  margin: 18px 0 14px;
  font-size: clamp(42px, 13vw, 78px);
  line-height: .86;
  letter-spacing: -.065em;
}

h1 span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(236, 246, 255, .52);
}

.hero > p {
  max-width: 580px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(10, 25, 40, .7);
  backdrop-filter: blur(12px);
}

.fact { padding: 17px 16px; border-right: 1px solid var(--line); }
.fact:last-child { border: 0; }
.fact span { display: block; margin-bottom: 8px; }
.fact strong { font-size: 13px; letter-spacing: .03em; }

.test-panel {
  margin-top: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(17, 38, 60, .94), rgba(10, 25, 40, .9));
  box-shadow: 0 24px 80px rgba(0, 0, 0, .24);
}

.panel-heading, .test-top, footer { display: flex; align-items: center; justify-content: space-between; }
.kicker { margin: 0 0 6px; }
h2 { margin: 0; font-size: 25px; letter-spacing: -.025em; }
.overall, .test-status {
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 7px 10px 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
}

.tests { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 24px 0 18px; }
.test-card { padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: rgba(4, 15, 27, .48); }
.test-top strong { font-size: 16px; }
.track { height: 4px; margin: 15px 0 12px; overflow: hidden; border-radius: 9px; background: rgba(255,255,255,.08); }
.progress { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--cyan)); transition: width .25s ease; }
.test-detail { min-height: 31px; margin: 0; color: var(--muted); font: 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }

.pass { color: var(--cyan) !important; }
.fail { color: var(--red) !important; }
.pending { color: var(--amber) !important; }
.running { color: var(--blue) !important; }

button {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  color: #06131e;
  background: linear-gradient(110deg, var(--cyan), #8bf0ff);
  font: 800 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: .04em;
  cursor: pointer;
}

button:disabled { opacity: .5; cursor: wait; }
.run-note { margin: 12px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; text-align: center; }

.diagnostics { margin: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.diagnostics div { display: grid; grid-template-columns: 94px 1fr; gap: 12px; padding: 13px 4px; border-bottom: 1px solid var(--line); }
.diagnostics div:last-child { border: 0; }
.diagnostics code { overflow: hidden; color: #c3d4e1; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
footer { padding: 6px 4px 0; }

@media (max-width: 560px) {
  .shell { width: min(100% - 22px, 760px); }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .tests { grid-template-columns: 1fr; }
  .test-panel { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
