:root { color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; background: #0b0f14; color: #e6edf3; font: 15px/1.6 system-ui, "PingFang TC", "Microsoft JhengHei", sans-serif; }
.wrap { max-width: 720px; margin: 0 auto; padding: 22px 16px 60px; }
h1 { font-size: 22px; margin: 0 0 4px; }
.sub { color: #8b98a5; font-size: 13px; margin: 0 0 14px; }
b { color: #e6edf3; }
code { font-family: ui-monospace, monospace; color: #58a6ff; font-size: 12px; }

.health { display: flex; flex-wrap: wrap; gap: 8px 16px; background: #131a22; border: 1px solid #223; border-radius: 10px; padding: 8px 12px; font-size: 13px; }
.health .svc { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #8b98a5; display: inline-block; }
.dot.up { background: #3fb950; } .dot.down { background: #f85149; }

.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 16px 0; }
.controls label { font-size: 13px; color: #8b98a5; display: inline-flex; gap: 6px; align-items: center; }
input, select { background: #0d1117; border: 1px solid #30363d; color: #e6edf3; border-radius: 7px; padding: 6px 9px; font-size: 14px; }
input#n { width: 90px; }
button.run { background: #1f6feb33; border: 1px solid #1f6feb; color: #e6edf3; border-radius: 8px; padding: 8px 18px; font-size: 15px; font-weight: 600; cursor: pointer; }
button.run:hover { background: #1f6feb55; } button.run:disabled { opacity: .5; cursor: not-allowed; }
.hint { color: #8b98a5; font-size: 12px; }

.flow { display: flex; flex-direction: column; gap: 4px; }
.gate { display: flex; gap: 12px; background: #131a22; border: 1px solid #223; border-radius: 12px; padding: 12px 14px; transition: border-color .2s, opacity .2s; }
.gate .num { width: 26px; height: 26px; flex: none; border-radius: 50%; background: #21262d; border: 1px solid #30363d; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.gate .body { flex: 1; min-width: 0; }
.gate .gt { font-weight: 600; font-size: 15px; }
.gate .gd { color: #8b98a5; font-size: 12px; margin: 2px 0 6px; }
.gate .st { font-family: ui-monospace, monospace; font-size: 12.5px; color: #cdd9e5; word-break: break-all; }
.gate.run   { border-color: #d29922; } .gate.run .num { border-color: #d29922; color: #d29922; }
.gate.pass  { border-color: #2f8f4e; } .gate.pass .num { background: #2f8f4e; border-color: #2f8f4e; }
.gate.fail  { border-color: #f85149; } .gate.fail .num { background: #f85149; border-color: #f85149; }
.gate.skip  { opacity: .4; }
.arrow { text-align: center; color: #465; font-size: 12px; padding: 1px 0; }

.verdict { text-align: center; font-size: 16px; font-weight: 700; margin: 14px 0; min-height: 24px; }
.verdict.ok { color: #3fb950; } .verdict.bad { color: #f85149; }
.card { background: #131a22; border: 1px solid #223; border-radius: 10px; padding: 12px 14px; margin-top: 12px; }
#log { font-family: ui-monospace, monospace; font-size: 11.5px; color: #8b98a5; max-height: 200px; overflow-y: auto; white-space: pre-wrap; }
#log .ok { color: #3fb950; } #log .bad { color: #f85149; } #log .dim { color: #6b7683; }
.foot { color: #8b98a5; font-size: 12px; margin-top: 16px; }
