
:root { --bg: #f6f7f9; --fg: #1d2330; --muted: #5b6475; --card: #fff; --line: #d9dde4;
  --accent: #1f5fbf; --ok: #1b7a3d; --warn: #8a5100; --bad: #b3261e; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #14171c; --fg: #e6e9ee; --muted: #a2aab8; --card: #1d2128; --line: #343a45;
    --accent: #7fb0ff; --ok: #6fd08f; --warn: #f0b45a; --bad: #ff8a80; }
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, sans-serif; background: var(--bg); color: var(--fg); }
header { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; padding: .75rem 1rem;
  background: var(--card); border-bottom: 1px solid var(--line); }
header .brand { font-weight: 700; color: var(--fg); text-decoration: none; }
header nav { display: flex; gap: 1rem; flex: 1; }
main { max-width: 1000px; margin: 0 auto; padding: 1rem; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px; }
h1 { font-size: 1.5rem; margin: .5rem 0 1rem; }
h2 { font-size: 1.15rem; margin: 1.5rem 0 .5rem; }
h3 { font-size: 1rem; margin: 1rem 0 .25rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 1rem; margin-bottom: 1rem; }
.card > :first-child { margin-top: 0; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .4rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap { overflow-x: auto; }
label { display: block; font-weight: 600; margin: .75rem 0 .25rem; }
.hint { color: var(--muted); font-size: .9rem; margin: .25rem 0; }
input[type=text], input[type=url], input[type=number], input[type=password], select, textarea {
  width: 100%; max-width: 32rem; padding: .5rem; font: inherit; color: inherit; background: var(--bg);
  border: 1px solid var(--line); border-radius: 6px; }
textarea { display: block; min-height: 5rem; }
fieldset { border: 1px solid var(--line); border-radius: 6px; padding: .25rem 1rem .75rem; margin: .75rem 0; }
legend { font-weight: 600; padding: 0 .25rem; }
.check, .radio { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; margin: .5rem 0; }
.check input, .radio input { margin-top: .3rem; flex: none; }
button, .button { display: inline-block; margin-top: 1rem; padding: .6rem 1.1rem; font: inherit; font-weight: 600;
  color: #fff; background: var(--accent); border: 2px solid var(--accent); border-radius: 6px; cursor: pointer; text-decoration: none; }
button.secondary, .button.secondary { background: transparent; color: var(--accent); }
header button.secondary { margin-top: 0; }
button:disabled { opacity: .5; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.actions button, .actions .button { margin-top: .5rem; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.flash { padding: .75rem 1rem; border-radius: 6px; margin-bottom: 1rem; border: 1px solid var(--line); background: var(--card); }
.flash.error { border-color: var(--bad); color: var(--bad); }
.banner { padding: .5rem 1rem; background: var(--card); border-bottom: 1px solid var(--line); }
.ok { color: var(--ok); } .warn { color: var(--warn); } .bad { color: var(--bad); }
.badge { display: inline-block; padding: .1rem .6rem; border-radius: 999px; font-size: .85rem; font-weight: 600; border: 1px solid currentColor; white-space: nowrap; }
.badge.green { color: var(--ok); } .badge.yellow { color: var(--warn); } .badge.red { color: var(--bad); } .badge.blue { color: var(--accent); } .badge.grey { color: var(--muted); }
pre.log { background: #0f1115; color: #d7dbe2; padding: 1rem; border-radius: 8px; overflow: auto;
  max-height: 60vh; white-space: pre-wrap; word-break: break-word; font-size: .85rem; }
progress { width: 100%; height: 1.25rem; accent-color: var(--accent); }
details > summary { cursor: pointer; font-weight: 600; margin: .5rem 0; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.shot { background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.shot img { display: block; width: 100%; height: 300px; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); }
.shot div { padding: .5rem .75rem; font-size: .9rem; word-break: break-all; }
.inline { display: inline; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.step { position: relative; padding: 1rem 1rem 1rem 3.75rem; background: var(--card); border: 1px solid var(--line); border-radius: 8px; margin-bottom: .75rem; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 1rem; top: 1rem; width: 2rem; height: 2rem;
  border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--line); color: var(--fg); }
.step.done::before { content: "✓"; background: var(--ok); color: #fff; }
.step.current { border: 2px solid var(--accent); }
.step.current::before { background: var(--accent); color: #fff; }
.step.todo h2, .step.todo p { color: var(--muted); }
.step h2 { margin: .2rem 0 .5rem; font-size: 1.1rem; }
.step > :last-child { margin-bottom: 0; }
.substeps { list-style: none; padding: 0; margin: 0; }
.substep { border-top: 1px solid var(--line); padding: .75rem 0 .25rem; }
.substep:first-child { border-top: 0; padding-top: 0; }
.substep h3 { margin-top: 0; }
.result { border-left: 6px solid var(--line); }
.result.green { border-left-color: var(--ok); } .result.yellow { border-left-color: var(--warn); } .result.red { border-left-color: var(--bad); }
.result h3 { font-size: 1.15rem; margin-top: 0; }
.finding { border-top: 1px solid var(--line); padding-top: .75rem; margin-top: .75rem; }
.finding ul { padding-left: 1.2rem; margin: .25rem 0; }
.finding li { margin: .35rem 0; word-break: break-word; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
