:root {
  --ink: #080b14;
  --surface: #101725;
  --surface2: #0c1220;
  --line: #1d2637;
  --text: #e8eaf0;
  --muted: #8b98b3;
  --mint: #00e5a0;
  --amber: #f5a623;
  --red: #ff6b6b;
  --blue: #4fc3f7;
  --han: "PingFang HK", "Microsoft JhengHei", "Noto Sans HK", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: #05070e;
  color: var(--text);
  font-family: var(--han);
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.app { max-width: 1100px; margin: 0 auto; padding: 16px 16px 48px; }
.top { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-end; justify-content: space-between; }
.brand h1 { margin: 0; font-size: 22px; }
.brand span { color: var(--muted); font-size: 13px; }
.banner {
  margin: 0;
  max-width: 640px;
  background: #2a2208;
  color: #ffd98a;
  border: 1px solid #3d3210;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.5;
}
.nav { display: flex; gap: 6px; overflow-x: auto; margin: 16px 0; padding-bottom: 4px; }
.nav button {
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  white-space: nowrap;
}
.nav button[aria-pressed="true"] { color: var(--mint); border-color: rgba(0,229,160,.45); background: rgba(0,229,160,.08); }
.view { display: flex; flex-direction: column; gap: 14px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
input, select, textarea {
  background: #080d18;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
}
textarea { width: 100%; min-height: 80px; }
.pri { background: var(--mint); color: #05110c; border: none; border-radius: 8px; padding: 9px 14px; font-weight: 700; }
.ghost { background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; color: var(--muted); }
h2 { margin: 0 0 8px; font-size: 16px; }
.muted { color: var(--muted); font-size: 13px; line-height: 1.6; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.card { background: var(--surface2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.card b { display: block; font-family: var(--mono); font-size: 22px; margin-top: 4px; }
.gate { font-family: var(--mono); font-weight: 700; }
.gate.pass { color: var(--mint); }
.gate.fail { color: var(--red); }
.gate.miss { color: var(--amber); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.err { color: #ffb3b3; background: rgba(255,107,107,.08); border: 1px solid rgba(255,107,107,.3); border-radius: 8px; padding: 10px 12px; }
.engines { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 900px) {
  .engines { grid-template-columns: 1fr 1fr; }
}
.tag { font-size: 11px; color: var(--amber); border: 1px solid rgba(245,166,35,.4); border-radius: 6px; padding: 2px 6px; }
code { font-family: var(--mono); }
