:root { --fg: #1b1f24; --muted: #5b6470; --bg: #f6f7f9; --card: #fff; --line: #d9dde3; --accent: #1f5fbf;
        --danger: #b42318; color-scheme: light dark; }
@media (prefers-color-scheme: dark) {
  :root { --fg: #e6e9ed; --muted: #9aa4b0; --bg: #14171b; --card: #1d2126; --line: #333a42; --accent: #6ea2ff;
          --danger: #ff8a7a; }
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--fg); background: var(--bg); }
.bar { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between;
       padding: .75rem 1rem; background: var(--card); border-bottom: 1px solid var(--line); }
.bar nav { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.brand { font-weight: 700; text-decoration: none; color: var(--fg); }
a { color: var(--accent); }
main { max-width: 960px; margin: 0 auto; padding: 1rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 1rem; margin: 0 0 1rem; }
.narrow { max-width: 28rem; margin: 2rem auto; }
label { display: block; margin: .75rem 0 .25rem; font-weight: 600; }
input, select { width: 100%; padding: .6rem; border: 1px solid var(--line); border-radius: 8px; font: inherit;
                background: var(--bg); color: var(--fg); }
button { font: inherit; cursor: pointer; }
button.primary { margin-top: 1rem; width: 100%; padding: .75rem; border: 0; border-radius: 8px; background: var(--accent);
                 color: #fff; font-weight: 600; }
button.link { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; }
button.danger, .error { color: var(--danger); }
button:disabled { opacity: .6; cursor: wait; }
form.inline { display: inline; }
table { width: 100%; border-collapse: collapse; margin-top: 1rem; display: block; overflow-x: auto; }
th, td { text-align: left; padding: .5rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 640px) { button.primary { width: auto; padding: .6rem 1.25rem; } }
a.button { display: inline-block; padding: .6rem 1.25rem; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
details { margin-top: 1.25rem; }
summary { cursor: pointer; color: var(--accent); }
.filters select { margin-bottom: .25rem; }
pre.mono { background: var(--bg); padding: .75rem; border-radius: 8px; border: 1px solid var(--line); }
input.check { width: auto; }
.wrap { white-space: normal; }
textarea { width: 100%; padding: .6rem; border: 1px solid var(--line); border-radius: 8px; font: inherit;
           background: var(--bg); color: var(--fg); min-height: 8rem; }
.post { white-space: pre-wrap; background: var(--bg); padding: .75rem; border-radius: 8px; border: 1px solid var(--line); }
.pass { color: #1a7f37; }
.fail { color: var(--danger); }
.grid2 { display: grid; gap: 0 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.actions form { display: inline-block; margin: .25rem .5rem .25rem 0; }
.actions button { padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--fg); }
.thumb { display: block; max-width: 100%; height: auto; max-height: 360px; border-radius: 8px; border: 1px solid var(--line); }
.images { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.verdict-pass { color: var(--muted); }
.verdict-warn { color: #b26b00; font-weight: 600; }
.verdict-fail { color: var(--danger); font-weight: 700; }
.verdict-skip { color: var(--muted); font-style: italic; }
.flag { display: inline-block; padding: 0 .4rem; border: 1px solid var(--line); border-radius: 6px; font-size: .85rem; }
