
:root {
  --bg: #f7f7f8; --panel: #ffffff; --text: #17181c; --muted: #646876; --line: #e3e4e8;
  --accent: #3b5bdb; --pass: #2f9e5b; --pass-bg: #e7f6ec; --fail: #d64545; --fail-bg: #fde8e8;
  --skip: #8a8d99; --skip-bg: #f1f1f3; --warn: #b7791f; --warn-bg: #fdf3e1; --code: #f3f4f6;
  --radius: 10px; --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111215; --panel: #1a1b20; --text: #e8e9ed; --muted: #9a9dab; --line: #2a2c33;
    --accent: #7c95f5; --pass: #4cc47e; --pass-bg: #15291d; --fail: #f07373; --fail-bg: #2f1717;
    --skip: #8a8d99; --skip-bg: #222329; --warn: #e0a84a; --warn-bg: #2c2414; --code: #22242a;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 system-ui, -apple-system, Segoe UI, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
header.top { display: flex; align-items: center; gap: 24px; padding: 12px 24px; background: var(--panel); border-bottom: 1px solid var(--line); }
header.top .brand { font-weight: 700; letter-spacing: -0.01em; color: var(--text); }
header.top nav { display: flex; gap: 16px; flex: 1; }
header.top .me { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
header.top .me img { width: 24px; height: 24px; border-radius: 50%; }
main { max-width: 1180px; margin: 0 auto; padding: 24px 16px 64px; }
h1 { font-size: 24px; margin: 0 0 4px; letter-spacing: -0.01em; }
h2 { font-size: 17px; margin: 32px 0 12px; }
.sub { color: var(--muted); font-size: 14px; }
.meta { color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.center { max-width: 420px; margin: 12vh auto; text-align: center; }
.center .sub { justify-content: center; }
h1.path { font-size: 16px; word-break: break-all; }
.button, button { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--text);
  border-radius: 8px; padding: 8px 14px; font: inherit; cursor: pointer; }
.button.primary, button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button.link { border: 0; background: none; color: var(--muted); padding: 0; }
form.inline { display: inline; margin: 0; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
code, pre, .mono { font-family: var(--mono); font-size: 13px; }
pre { background: var(--code); border-radius: 8px; padding: 12px; overflow: auto; white-space: pre-wrap; word-break: break-word; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge.passed { color: var(--pass); background: var(--pass-bg); }
.badge.failed { color: var(--fail); background: var(--fail-bg); }
.badge.skipped { color: var(--skip); background: var(--skip-bg); }
.badge.warn { color: var(--warn); background: var(--warn-bg); }
.badge.neutral { color: var(--muted); background: var(--skip-bg); }
.empty { color: var(--muted); padding: 32px; text-align: center; }
.notice { border-left: 3px solid var(--warn); background: var(--warn-bg); padding: 10px 14px; border-radius: 6px; margin: 16px 0; }
.notice.bad { border-color: var(--fail); background: var(--fail-bg); }
.notice.good { border-color: var(--pass); background: var(--pass-bg); }
ol.flow { list-style: none; padding: 0; margin: 0; }
ol.flow > li { position: relative; padding-left: 40px; padding-bottom: 14px; }
ol.flow > li::before { content: ""; position: absolute; left: 13px; top: 30px; bottom: 0; width: 2px; background: var(--line); }
ol.flow > li:last-child::before { display: none; }
ol.flow .dot { position: absolute; left: 0; top: 10px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; background: var(--skip-bg); color: var(--skip); }
ol.flow .passed .dot { background: var(--pass-bg); color: var(--pass); }
ol.flow .failed .dot { background: var(--fail-bg); color: var(--fail); }
.step { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.step .title { font-weight: 600; }
.step .what { color: var(--muted); font-size: 13px; }
.step .detail { margin-top: 8px; font-size: 13px; display: grid; gap: 4px; }
.step .shot img { width: 220px; border-radius: 6px; border: 1px solid var(--line); display: block; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }
.wf { font-family: var(--mono); font-size: 12px; }
details > summary { cursor: pointer; color: var(--muted); margin: 8px 0; }
.tree { list-style: none; padding-left: 18px; margin: 4px 0; border-left: 1px dashed var(--line); }
.tree li { margin: 4px 0; }
video { width: 100%; max-width: 900px; border-radius: var(--radius); border: 1px solid var(--line); background: #000; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.truncate { max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: bottom; }
@media (max-width: 720px) {
  header.top { flex-wrap: wrap; gap: 12px; }
  .step { grid-template-columns: 1fr; }
  .step .shot img { width: 100%; }
  .hide-sm { display: none; }
}
