:root {
  /* Shades below come from the approved design canvas, not §10. Ask before adding more. */
  --header-line: #1E222A;
  --card-head: #11141A;
  --band: #101317;
  --step-current: #18161F;
  --control-line: #333944;
  --accent-line-hover: #5C4A94;

  --font-sans: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

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

html { background: var(--ground); }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, p { margin: 0; }

.mono { font-family: var(--font-mono); }
.faint { color: var(--faint); }
.muted { color: var(--muted); }
.lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--faint);
}
.tool { font-family: var(--font-mono); color: var(--accent); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 20px;
  background: var(--card-head);
  border-bottom: 1px solid var(--line-inner);
}

.page { min-height: 100vh; display: flex; flex-direction: column; }
.page__main { flex: 1; }

.site-header { border-bottom: 1px solid var(--header-line); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  min-height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); min-height: 44px; }
.brand:hover { color: var(--text); }
.brand__mark {
  font-size: 13px;
  font-weight: 500;
  color: var(--ground);
  background: var(--accent);
  border-radius: 5px;
  padding: 3px 7px;
}
.brand__name { font-size: 16px; font-weight: 600; }
.site-nav { display: flex; gap: 24px; font-size: 14px; flex-wrap: wrap; }
.site-nav a { color: var(--text-2); }
.site-nav a:hover { color: var(--accent-hover); }
.site-nav .site-nav__muted { color: var(--muted); }

.site-footer { border-top: 1px solid var(--header-line); }
.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  padding-bottom: 32px;
  font-size: 13px;
  color: var(--faint);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  font: 600 15px var(--font-sans);
  border: 1px solid transparent;
  cursor: pointer;
}
.btn--sm { height: 44px; padding: 0 16px; font-size: 14px; }
.btn--primary { background: var(--accent); color: var(--ground); }
.btn--primary:hover { background: var(--accent-hover); color: var(--ground); }
.btn--secondary { background: transparent; border-color: var(--control-line); color: var(--text); font-weight: 500; }
.btn--secondary:hover { border-color: var(--accent-line-hover); color: var(--text); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 500;
  white-space: nowrap;
}
.pill--sm { height: 24px; padding: 0 10px; font-size: 12px; gap: 6px; }
.pill--md { height: 26px; padding: 0 10px; font-size: 12px; }
.pill--lg { height: 28px; padding: 0 12px; font-size: 13px; }
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill--lg .pill__dot { width: 8px; height: 8px; }
.pill--sm .pill__dot { width: 6px; height: 6px; }
.pill--investigating { background: var(--investigating-bg); color: var(--investigating); }
.pill--failing { background: var(--failing-bg); color: var(--failing); }
.pill--reported { background: var(--reported-bg); color: var(--reported); }
.pill--waiting, .pill--neutral { background: var(--raised); color: var(--text-2); }
.pill--neutral { font-family: var(--font-mono); font-weight: 400; letter-spacing: .02em; }

.verdict--reported { color: var(--reported); }
.verdict--failing { color: var(--failing); }
.verdict--waiting { color: var(--faint); }

.chip {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-line);
  border-radius: 6px;
  padding: 3px 7px;
  white-space: nowrap;
}
.chip:hover { color: var(--accent-hover); border-color: var(--accent-line-hover); }

.table-scroll { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; min-width: 640px; }
.table th, .table td { text-align: left; padding: 12px 14px; border-top: 1px solid var(--line-inner); font-size: 14px; }
.table th { font-weight: 500; color: var(--faint); font-size: 12px; border-top: 0; }

.empty { padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.empty p { font-size: 14px; color: var(--muted); line-height: 1.55; }

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .brand__mark { font-size: 12px; padding: 3px 6px; }
  .brand__name { font-size: 15px; }
  .site-header__inner { min-height: 56px; }
  .site-nav { gap: 16px; font-size: 13px; }
  .site-nav .site-nav__muted { display: none; }
}
