:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --ink: #1d2433;
  --muted: #5b6475;
  --line: #dde1ea;
  --brand: #4f46e5;
  --brand-ink: #ffffff;
  --pass: #157347;
  --fail: #b42318;
  --blocked: #a15c07;
  --soft-pass: #e6f4ec;
  --soft-fail: #fdecea;
  --soft-blocked: #fdf2e1;
  --soft-info: #eef0fd;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12151c;
    --card: #1b1f29;
    --ink: #e7e9ef;
    --muted: #a3aaba;
    --line: #2e3442;
    --brand: #8b85ff;
    --brand-ink: #12151c;
    --pass: #5cc98a;
    --fail: #ff8a80;
    --blocked: #f0b35a;
    --soft-pass: #173325;
    --soft-fail: #3a1d1b;
    --soft-blocked: #3a2c14;
    --soft-info: #23264a;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--brand); }
code { font-size: 0.9em; }
main { max-width: 64rem; margin: 0 auto; padding: 1rem 16px 3rem; }
h1 { font-size: 1.6rem; margin: 0.5rem 0 0.75rem; }
h2 { font-size: 1.15rem; margin: 0 0 0.5rem; }
.top {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; align-items: center;
  padding: 0.6rem 16px; background: var(--card); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 5;
}
.brand { font-weight: 600; color: var(--ink); text-decoration: none; }
.brand b { color: var(--brand); }
.top nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; align-items: center; }
.who { margin-left: auto; display: flex; gap: 0.75rem; align-items: center; font-size: 0.9rem; color: var(--muted); }
.who form { margin: 0; }
.sha { font-family: ui-monospace, monospace; font-size: 0.85rem; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 1rem 1.1rem; margin: 1rem 0;
}
.narrow { max-width: 26rem; margin: 3rem auto; }
.muted { color: var(--muted); font-size: 0.92rem; }
.error { background: var(--soft-fail); color: var(--fail); padding: 0.5rem 0.75rem; border-radius: 8px; }
.crumbs { font-size: 0.9rem; margin: 0; }
label { display: block; margin: 0 0 0.75rem; font-weight: 500; }
label.radio { font-weight: 400; margin: 0.25rem 0; }
input, select, textarea {
  font: inherit; color: inherit; background: var(--bg); border: 1px solid var(--line);
  border-radius: 8px; padding: 0.45rem 0.6rem; width: 100%; margin-top: 0.2rem;
}
input[type="radio"] { width: auto; margin: 0 0.35rem 0 0; }
fieldset { border: 1px solid var(--line); border-radius: 8px; margin: 0 0 0.75rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.inline-form { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: end; }
.inline-form label { flex: 1 1 12rem; margin: 0; }
.button {
  display: inline-block; border: 0; border-radius: 999px; padding: 0.5rem 1.1rem;
  background: var(--brand); color: var(--brand-ink); font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.button.small { padding: 0.3rem 0.8rem; font-size: 0.9rem; }
.button.secondary { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
.button.pass { background: var(--pass); }
.button.fail { background: var(--fail); }
.button.blocked { background: var(--blocked); }
button.link { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; cursor: pointer; text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 0.75rem; }
.tile {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0.75rem;
  text-decoration: none; color: var(--ink);
}
.tile b { display: block; font-size: 1.5rem; }
.tile span { color: var(--muted); font-size: 0.9rem; }
.table-wrap { overflow-x: auto; }
table.issues { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.issues th, .issues td { text-align: left; padding: 0.5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.issues th { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.status, .sev, .result {
  display: inline-block; border-radius: 999px; padding: 0.05rem 0.55rem; font-size: 0.82rem;
  font-weight: 600; background: var(--soft-info); white-space: nowrap;
}
.s-fixed { background: var(--soft-pass); color: var(--pass); }
.s-verified { background: var(--soft-pass); color: var(--pass); }
.s-reopened, .s-new { background: var(--soft-fail); color: var(--fail); }
.s-needs_owner, .s-needs_info, .s-not_a_bug { background: var(--soft-blocked); color: var(--blocked); }
.v-blocker { background: var(--fail); color: #fff; }
.v-major { background: var(--soft-fail); color: var(--fail); }
.v-minor { background: var(--soft-blocked); color: var(--blocked); }
.r-pass { background: var(--soft-pass); color: var(--pass); }
.r-fail { background: var(--soft-fail); color: var(--fail); }
.r-blocked { background: var(--soft-blocked); color: var(--blocked); }
.flag { color: var(--fail); font-weight: 600; font-size: 0.85rem; }
.tabs { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin-bottom: 0.5rem; }
.tabs a[aria-current="page"] { font-weight: 700; color: var(--ink); text-decoration: none; }
ul.flows { list-style: none; padding: 0; margin: 0; }
ul.flows li { padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
ul.flows li:last-child { border-bottom: 0; }
ol.steps > li { margin: 0 0 1rem; padding: 0.5rem 0.75rem; border-left: 3px solid var(--line); }
ol.steps > li.done { border-left-color: var(--brand); }
ol.steps p { margin: 0.2rem 0; }
.why { color: var(--muted); font-size: 0.92rem; }
.step-form { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin-top: 0.4rem; }
.step-form input { flex: 1 1 12rem; width: auto; margin: 0; }
.context { background: var(--soft-info); border-radius: 10px; padding: 0.6rem 0.8rem; margin: 0 0 1rem; }
.context p { margin: 0.2rem 0; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { border-left: 3px solid var(--line); padding: 0.25rem 0 0.5rem 0.75rem; margin-bottom: 0.5rem; }
.timeline li.agent { border-left-color: var(--brand); }
.timeline p { margin: 0.2rem 0; }
.shots { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.shots img { max-width: 14rem; max-height: 10rem; border: 1px solid var(--line); border-radius: 6px; display: block; }
.paste {
  border: 2px dashed var(--line); border-radius: 10px; padding: 0.8rem; color: var(--muted);
  font-size: 0.92rem; margin-bottom: 0.5rem; cursor: text;
}
.paste:focus, .paste.over { border-color: var(--brand); outline: none; }
.previews { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; }
.previews figure { margin: 0; font-size: 0.8rem; color: var(--muted); }
.previews img { max-width: 8rem; max-height: 6rem; display: block; border-radius: 6px; border: 1px solid var(--line); }
dl.guidance dt { font-weight: 600; margin-top: 0.75rem; }
dl.guidance dd { margin: 0.2rem 0 0; }
@media (max-width: 640px) {
  .row { grid-template-columns: 1fr; }
  .who { margin-left: 0; flex-wrap: wrap; }
  .issues th:nth-child(5), .issues td:nth-child(5), .issues th:nth-child(6), .issues td:nth-child(6) { display: none; }
}
