/* Endpoint & Security Test Suite - kull.games dark theme (near-black bg,
   amber + teal accents), mobile-friendly. */
:root {
  --bg: #0a0c0f;
  --panel: #12161c;
  --panel2: #161b22;
  --ink: #e8eaed;
  --muted: #8b95a3;
  --line: #232a33;
  --amber: #ffb340;
  --teal: #38d6c4;
  --ok: #3fb950;
  --ok-bg: #123018;
  --err: #f85149;
  --err-bg: #35171a;
  --warn: #d29922;
  --run: #58a6ff;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}
.boot { padding: 24px; color: var(--muted); }
.suite { padding: 16px; max-width: 1100px; margin: 0 auto; }

/* ---- topbar ---- */
.topbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  justify-content: space-between; margin-bottom: 14px; }
.topbar h1 { font-size: 1.3rem; margin: 0; font-weight: 650; line-height: 1.25; }
.topbar .sub { display: block; color: var(--teal); font-weight: 400; font-size: .82rem; margin-top: 2px; }
.controls { display: flex; gap: 8px; }
button { font: inherit; font-weight: 600; border: 1px solid var(--line); border-radius: 8px;
  padding: 9px 16px; cursor: pointer; color: var(--ink); background: var(--panel2); }
button.run { background: var(--amber); color: #201400; border-color: transparent; }
button.run:hover:not(:disabled) { filter: brightness(1.08); }
button.stop { background: transparent; color: var(--err); border-color: var(--err); }
button:disabled { opacity: .45; cursor: default; }

/* ---- summary strip ---- */
.summary { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 12px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; text-align: center; }
.stat.good { border-color: #1e5130; }
.stat.bad { border-color: #6b2226; background: var(--err-bg); }
.stat.wide { grid-column: span 1; }
.stat-num { font-size: 1.5rem; font-weight: 700; line-height: 1; }
.stat-num.small { font-size: .82rem; font-weight: 600; color: var(--muted); }
.stat.good .stat-num { color: var(--ok); }
.stat.bad .stat-num { color: var(--err); }
.stat-lbl { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: 4px; }
@media (max-width: 720px) {
  .summary { grid-template-columns: repeat(3, 1fr); }
  .stat.wide { grid-column: span 3; }
}

.status-line { color: var(--amber); font-size: .85rem; margin: 6px 2px 14px; }

/* ---- panels ---- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 16px; }
.panel h2 { font-size: 1.05rem; margin: 0 0 10px; font-weight: 640; }
.panel h2 .hint { display: inline-block; font-size: .72rem; font-weight: 400; color: var(--muted); }
.grp { font-size: .82rem; color: var(--teal); margin: 14px 0 6px; font-weight: 600; }
.empty { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.empty code, .foot code, .offnote code { background: var(--panel2); padding: 1px 5px; border-radius: 4px;
  font-size: .85em; color: var(--amber); }

/* ---- progress ---- */
.progress { margin-bottom: 10px; }
.bar { height: 8px; background: var(--panel2); border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.fill { height: 100%; background: linear-gradient(90deg, var(--teal), var(--amber)); transition: width .2s ease; }
.ptext { font-size: .78rem; color: var(--muted); margin-top: 5px; }
.ptext .ok { color: var(--ok); } .ptext .err { color: var(--err); }

/* ---- tables ---- */
.tbl-wrap { overflow-x: auto; border-radius: 8px; }
.tbl { width: 100%; border-collapse: collapse; font-size: .84rem; }
.tbl th, .tbl td { text-align: left; padding: 7px 9px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th { color: var(--muted); font-weight: 600; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.tbl td.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl td.path { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: .82rem;
  max-width: 340px; overflow: hidden; text-overflow: ellipsis; }
.tbl td.ct { color: var(--muted); }
.tbl tr.pass td:first-child { box-shadow: inset 3px 0 0 var(--ok); }
.tbl tr.fail { background: var(--err-bg); }
.tbl tr.fail td:first-child { box-shadow: inset 3px 0 0 var(--err); }
.tbl tr.running td:first-child { box-shadow: inset 3px 0 0 var(--run); }
.tbl tr.error td:first-child { box-shadow: inset 3px 0 0 var(--warn); }

/* ---- badges ---- */
.badge { display: inline-block; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 20px;
  letter-spacing: .04em; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.err { background: var(--err-bg); color: var(--err); }
.badge.run { background: #123; color: var(--run); }
.badge.warn { background: #2a220c; color: var(--warn); }
.badge.pend { background: var(--panel2); color: var(--muted); }
.note { font-size: .74rem; color: var(--muted); }
.note.err { color: var(--err); font-weight: 600; }

/* ---- curl proof cards ---- */
.offnote { color: var(--muted); font-size: .84rem; margin: 0 0 12px; line-height: 1.5; }
.cards { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { display: flex; gap: 10px; background: var(--panel2); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px; align-items: flex-start; }
.card.pass { border-color: #1e5130; }
.card.auth { border-color: #2a5170; }
.card-code { font-size: 1.5rem; font-weight: 800; line-height: 1; min-width: 46px; }
.card.pass .card-code { color: var(--ok); }
.card.auth .card-code { color: var(--run); }
.card-body code { display: block; font-family: ui-monospace, Consolas, monospace; font-size: .74rem;
  color: var(--teal); word-break: break-all; }
.card-msg { font-size: .8rem; margin-top: 6px; color: var(--ink); }

.foot { color: var(--muted); font-size: .76rem; line-height: 1.6; margin-top: 8px; padding: 0 2px; }

/* ---- blazor error ui ---- */
#blazor-error-ui { position: fixed; bottom: 0; left: 0; right: 0; display: none;
  background: #2a1215; color: #ffd9d9; padding: 10px 14px; font-size: .85rem;
  box-shadow: 0 -2px 12px #0008; z-index: 1000; }
#blazor-error-ui .reload, #blazor-error-ui .dismiss { color: var(--amber); cursor: pointer; }
