
:root {
  --bg: #f4f5f7; --surface: #ffffff; --ink: #1f2430; --muted: #5d6576; --line: #dfe3ea;
  --blue: #2f74c8; --good: #157f5b; --warn: #a66e00; --bad: #c03333; --quiet: #7a7f88;
  --bad-soft: #fbeaea; --warn-soft: #fbf3e2; --good-soft: #e6f4ee; --blue-soft: #e9f1fb;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #181b1f; --surface: #22252b; --ink: #e4e7ec; --muted: #a2a9b6; --line: #343840;
    --blue: #6ea8f0; --good: #3fbf8f; --warn: #e3a92c; --bad: #ef6b6b; --quiet: #8d929b;
    --bad-soft: #3a2326; --warn-soft: #3a3121; --good-soft: #1e352d; --blue-soft: #1f2d40;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
}
main { max-width: 920px; margin: 0 auto; padding: 32px 16px 64px; }
a { color: var(--blue); text-underline-offset: 2px; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 3px; }
code { font: 0.875em/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
code.lit { padding: 0 4px; border-radius: 4px; background: var(--bg); border: 1px solid var(--line); }
h1 { font-size: 1.75rem; line-height: 1.2; margin: 0 0 4px; letter-spacing: -0.01em; }
h2 { font-size: 1.15rem; margin: 40px 0 12px; }
h3 { font-size: 1.05rem; line-height: 1.35; margin: 0; }
.crumb { margin: 0 0 20px; font-size: 0.9rem; }
.verdict { font-size: 1.15rem; font-weight: 600; margin: 0 0 16px; }
.verdict.passed { color: var(--good); } .verdict.found, .verdict.unfinished, .verdict.partial { color: var(--warn); }
.verdict.blocked { color: var(--bad); } .verdict.stopped { color: var(--quiet); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 20px; margin: 0; color: var(--muted);
         font-size: 0.925rem; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.summary { margin: 24px 0 0; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line);
           border-radius: 8px; white-space: pre-line; }
.alert { margin: 16px 0 0; padding: 12px 16px; border-radius: 8px; background: var(--bad-soft); }
.alert.note { background: var(--warn-soft); }
.alert p { margin: 0; } .alert ul { margin: 6px 0 0; padding-left: 20px; }
.alert .objections { margin: 8px 0 0; white-space: pre-line; }
.checks { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line);
          border-radius: 8px; }
.checks li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 12px; padding: 10px 16px;
             border-top: 1px solid var(--line); }
.checks li:first-child { border-top: 0; }
.checks .note { display: block; color: var(--muted); font-size: 0.9rem; }
.tag { display: inline-block; font-size: 0.8rem; font-weight: 600; padding: 1px 8px; border-radius: 999px;
       white-space: nowrap; align-self: start; justify-self: start; }
.tag.ok { color: var(--good); background: var(--good-soft); }
.tag.problem, .tag.critical { color: var(--bad); background: var(--bad-soft); }
.tag.major { color: var(--warn); background: var(--warn-soft); }
.tag.blocked, .tag.skipped, .tag.minor { color: var(--quiet); background: var(--bg); }
.finding { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 20px;
           margin: 0 0 16px; }
.finding header { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.finding header h3 { flex: 1 1 18rem; }
.finding .meta { margin: 6px 0 0; color: var(--muted); font-size: 0.9rem; overflow-wrap: anywhere; }
.steps { margin: 16px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps > li { counter-increment: step; position: relative; padding: 6px 0 6px 40px; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 6px; width: 26px; height: 26px;
                      border-radius: 50%; background: var(--bg); color: var(--muted); font-size: 0.8rem;
                      font-weight: 600; display: grid; place-items: center; }
.steps > li.failed::before { background: var(--bad); color: #fff; }
.steps > li.failed > .text { font-weight: 600; }
.shots { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0 4px; }
.shots figure { margin: 0; max-width: 100%; }
.shots img, .shots video { display: block; max-width: min(100%, 420px); max-height: 320px; border-radius: 6px;
                           border: 1px solid var(--line); background: var(--bg); }
.shots figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 4px; max-width: 420px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0 0; }
.compare div { padding: 12px 14px; border-radius: 6px; background: var(--bg); }
.compare h4, .cause h4 { margin: 0 0 4px; font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.compare p, .cause p { margin: 0; white-space: pre-line; }
.compare .actual { background: var(--bad-soft); }
.cause { margin: 16px 0 0; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 6px; }
.cause ul { margin: 8px 0 0; padding-left: 20px; }
table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line);
        border-radius: 8px; overflow: hidden; }
th, td { text-align: left; padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.85rem; color: var(--muted); font-weight: 600; border-top: 0; }
td.nowrap { white-space: nowrap; }
td .passed { color: var(--good); } td .found, td .unfinished, td .partial { color: var(--warn); }
td .blocked { color: var(--bad); } td .stopped { color: var(--quiet); }
.run-summary { color: var(--muted); font-size: 0.9rem; display: block; margin-top: 2px; }
.empty { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
footer { margin-top: 48px; color: var(--muted); font-size: 0.875rem; }
footer ul { padding-left: 20px; }
@media (max-width: 640px) {
  main { padding-top: 20px; }
  .compare { grid-template-columns: 1fr; }
  .checks li { grid-template-columns: 1fr; gap: 4px; }
  .facts { grid-template-columns: 1fr; gap: 0; } .facts dd { margin-bottom: 6px; }
  .hide-narrow { display: none; }
}

.strip { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 16px 0 24px; padding: 14px 18px;
         background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.strip a { font-weight: 600; }
.strip span { color: var(--muted); }
.num { font: 600 0.85rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--muted); }
.tag.high { color: var(--bad); background: var(--bad-soft); }
.tag.medium { color: var(--warn); background: var(--warn-soft); }
.tag.low, .tag.still, .tag.proposal { color: var(--quiet); background: var(--bg); }
.tag.new, .tag.violation { color: var(--blue); background: var(--blue-soft); }
.tag.fixed, .tag.accepted, .tag.false_positive { color: var(--good); background: var(--good-soft); }
.finding .lede { margin: 12px 0 0; }
.finding h4 { margin: 0 0 4px; font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.finding .part { margin: 16px 0 0; }
.finding .part p { margin: 0; white-space: pre-line; }
.rule { margin: 16px 0 0; padding: 10px 14px; border-left: 3px solid var(--blue); background: var(--blue-soft);
        border-radius: 0 6px 6px 0; }
.rule p { margin: 0; }
.refs { margin: 6px 0 0; padding-left: 20px; }
.refs .note { color: var(--muted); }
.opinion { margin: 16px 0 0; padding: 12px 14px; border-radius: 6px; background: var(--bg); }
.opinion.confirmed { background: var(--good-soft); } .opinion.doubtful { background: var(--warn-soft); }
.opinion.rejected { background: var(--bad-soft); }
.opinion p { margin: 0; white-space: pre-line; }
.opinion strong { display: block; margin-bottom: 2px; }
.decision { margin: 20px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); }
.decision p { margin: 0 0 10px; }
.decision label { display: block; font-size: 0.9rem; color: var(--muted); margin: 0 0 6px; }
.decision textarea { display: block; width: 100%; min-height: 4.5rem; padding: 8px 10px; resize: vertical;
                     font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line);
                     border-radius: 6px; }
.decision textarea:focus-visible, .btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.btn { font: inherit; font-size: 0.925rem; font-weight: 600; padding: 7px 14px; border-radius: 6px; cursor: pointer;
       color: var(--ink); background: var(--surface); border: 1px solid var(--line); }
.btn:hover { border-color: var(--muted); }
.brief { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line);
         border-radius: 8px; }
.brief li { padding: 10px 16px; border-top: 1px solid var(--line); }
.brief li:first-child { border-top: 0; }
.brief .note { display: block; color: var(--muted); font-size: 0.9rem; }
details { margin: 12px 0 0; }
details summary { cursor: pointer; color: var(--blue); }
.criteria { margin: 8px 0 0; padding-left: 20px; } .criteria li { margin: 0 0 8px; }
.alert .objections { margin: 8px 0 0; white-space: pre-line; }
.who-decided { display: block; margin: -4px 0 10px; color: var(--muted); font-size: 0.875rem; }
.history { margin: 12px 0 0; } .history .journal { margin: 6px 0 0; }
.history .journal li { padding: 6px 0; border-top: 1px solid var(--line); font-size: 0.9rem; overflow-wrap: anywhere; }
.history .journal li:first-child { border-top: 0; }
.history .at { display: block; color: var(--muted); font-size: 0.8rem; }
.history .note { display: block; color: var(--muted); }

[hidden] { display: none !important; }
body { min-height: 100vh; display: flex; flex-direction: column; }
main { width: 100%; max-width: 1040px; flex: 1 0 auto; }
.bar { background: var(--surface); border-bottom: 1px solid var(--line); }
.bar-in { max-width: 1040px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 4px 16px;
          flex-wrap: wrap; min-height: 56px; }
.brand { display: flex; align-items: baseline; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 700;
         letter-spacing: -0.01em; padding: 14px 0; }
.brand span { font-weight: 500; color: var(--muted); font-size: 0.9rem; min-width: 0; overflow: hidden;
              text-overflow: ellipsis; white-space: nowrap; }
.sections { flex: 0 1 auto; }
.nav { display: flex; flex-wrap: wrap; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav a { display: block; padding: 6px 8px; border-radius: 6px; color: var(--muted); text-decoration: none;
         font-size: 0.925rem; font-weight: 500; }
.nav a:hover { color: var(--ink); background: var(--bg); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--bg); }
.external { margin-left: 3px; font-size: 0.8em; opacity: 0.75; }
.nav .count { display: inline-block; min-width: 1.3rem; margin-left: 4px; padding: 0 6px; border-radius: 999px;
              background: var(--blue); color: #fff; font-size: 0.75rem; line-height: 1.3rem; text-align: center; }
/* The name and Sign out keep to the right of the bar. When the sections do not fit beside them (an admin's full
   list, a long name), the script marks the bar .stack: the name stays on the brand's line and the sections take a
   line of their own, as on a narrow screen. On that first line the project and the name give way (cut with an
   ellipsis) so that "Arceus" and Sign out both stay whole, side by side, at any width. */
.who { display: flex; align-items: center; gap: 12px; font-size: 0.9rem; margin-left: auto; flex: 0 1 auto;
       min-width: 0; white-space: nowrap; }
.who a { color: var(--muted); text-decoration: none; max-width: 14rem; overflow: hidden; text-overflow: ellipsis; }
.who form { flex: none; }
.bar-in.stack { gap: 0 12px; }
.bar-in.stack .brand { flex: 1 1 0; min-width: 0; }
.bar-in.stack .who { max-width: calc(100% - 7rem); }
.bar-in.stack .sections { order: 3; flex-basis: 100%; }
.bar-in.stack .nav { margin: 0 -8px 6px; }
.who a:hover { color: var(--ink); }
.who form { margin: 0; }
.linkish { font: inherit; font-size: 0.9rem; color: var(--muted); background: none; border: 0; padding: 0;
           cursor: pointer; }
.linkish:hover { color: var(--ink); }
.meta { color: var(--muted); font-size: 0.925rem; }
.lede { color: var(--muted); margin: 4px 0 24px; max-width: 46rem; }
.notice { margin: 0 0 20px; padding: 10px 14px; border-radius: 8px; background: var(--good-soft); color: var(--ink); }
.notice.err { background: var(--bad-soft); }
.notice.warn { background: var(--warn-soft); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 20px;
        margin: 0 0 16px; }
.card > :is(h2, h3):first-of-type { margin-top: 0; }
.narrow { max-width: 420px; margin: 8vh auto 0; }
.narrow h1 { margin-bottom: 4px; }
.form-row { margin: 0 0 14px; }
.form-row label, .label { display: block; font-size: 0.9rem; font-weight: 600; margin: 0 0 6px; }
.form-row .hint { display: block; color: var(--muted); font-size: 0.85rem; font-weight: 400; margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], select, textarea {
  display: block; width: 100%; padding: 8px 10px; font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 6px; }
textarea { min-height: 6rem; resize: vertical; }
textarea.code { font: 0.875rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; min-height: 24rem;
                tab-size: 2; white-space: pre; overflow-wrap: normal; overflow-x: auto; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 2px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none;
       min-height: 38px; }
.btn.primary { color: #fff; background: var(--blue); border-color: var(--blue); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--bad); }
.btn.danger:hover { border-color: var(--bad); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn.block { width: 100%; }
.after { margin: 16px 0 0; font-size: 0.925rem; color: var(--muted); }
.checks-row { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 12px; padding: 0; border: 0; }
.checks-row legend { font-size: 0.9rem; font-weight: 600; margin: 0 0 6px; padding: 0; }
.checks-row label { display: inline-flex; align-items: center; gap: 6px; font-size: 0.95rem; }
.role { display: inline-block; font-size: 0.8rem; font-weight: 600; padding: 1px 8px; border-radius: 999px;
        color: var(--blue); background: var(--blue-soft); white-space: nowrap; }
.role.admin { color: var(--bad); background: var(--bad-soft); }
.role.none { color: var(--quiet); background: var(--bg); }
.status-pending { color: var(--warn); font-weight: 600; }
.status-disabled { color: var(--quiet); font-weight: 600; }
.people td .note { display: block; color: var(--muted); font-size: 0.875rem; overflow-wrap: anywhere; }
.people td, .people th { vertical-align: middle; }
.roles-help { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.roles-help li { display: grid; grid-template-columns: 7rem 1fr; gap: 12px; font-size: 0.925rem; }
.roles-help .everyone { color: var(--muted); }
.made { margin: 0 0 20px; padding: 14px 16px; border-radius: 8px; background: var(--blue-soft); }
.made p { margin: 0 0 8px; }
.made input { font: 0.85rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.spaced { margin-top: 32px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); gap: 24px; align-items: start; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.inline-form .grow { flex: 1 1 14rem; }
.journal { list-style: none; margin: 0; padding: 0; font-size: 0.9rem; }
.journal li { padding: 8px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.journal li:first-child { border-top: 0; }
.journal .at { color: var(--muted); display: block; font-size: 0.825rem; }
.foot { max-width: 1040px; margin: 0 auto; padding: 24px 16px 32px; color: var(--quiet); font-size: 0.825rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.table-wrap { overflow-x: auto; border-radius: 8px; }

/* home */
.headline { display: flex; gap: 10px; align-items: baseline; font-size: 1.35rem; font-weight: 650; line-height: 1.3;
            letter-spacing: -0.01em; margin: 4px 0 20px; overflow-wrap: anywhere; }
.headline .glyph { flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; display: inline-grid;
                   place-items: center; font-size: 0.95rem; transform: translateY(0.1rem); }
.headline.good .glyph { color: var(--good); background: var(--good-soft); }
.headline.busy .glyph { color: var(--blue); background: var(--blue-soft); }
.headline.wait .glyph { color: var(--warn); background: var(--warn-soft); }
.headline.bad .glyph { color: var(--bad); background: var(--bad-soft); }
.headline.unknown .glyph { color: var(--quiet); background: var(--surface); border: 1px solid var(--line); }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 8px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
.tile h2 { font-size: 0.85rem; font-weight: 600; color: var(--muted); margin: 0 0 4px; }
.tile .value { font-size: 1.6rem; font-weight: 650; margin: 0; line-height: 1.25; }
.tile .note { margin: 4px 0 0; font-size: 0.85rem; color: var(--muted); overflow-wrap: anywhere; }
.value.good, .value-line.good { color: var(--good); } .value.bad { color: var(--bad); }
.value.unknown, .value-line.unknown { color: var(--quiet); }
.tile .value.good, .tile .value.bad, .tile .value.unknown { font-size: 1.15rem; padding-top: 6px; }
.value-line { margin: 0; font-weight: 600; }
.home-split { grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); margin-top: 28px; }
.home-split > div > h2:first-child { margin-top: 0; }
.rows { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line);
        border-radius: 8px; }
.rows li { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 12px; padding: 10px 16px;
           border-top: 1px solid var(--line); align-items: start; }
.rows li:first-child { border-top: 0; }
.rows .what { overflow-wrap: anywhere; }
.rows .note, .checklist .note, .links .note, .meters .note { display: block; color: var(--muted); font-size: 0.875rem; }
.tag.busy { color: var(--blue); background: var(--blue-soft); }
.tag.wait { color: var(--warn); background: var(--warn-soft); }
.tag.bad { color: var(--bad); background: var(--bad-soft); }
.tag.quiet { color: var(--quiet); background: var(--bg); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { overflow-wrap: anywhere; }
.meters { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.meters li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: baseline; }
.meter-name { font-size: 0.925rem; }
.meter-num { font-weight: 600; font-variant-numeric: tabular-nums; }
.meter { grid-column: 1 / -1; display: block; height: 8px; border-radius: 999px; background: var(--blue-soft);
         overflow: hidden; }
.meter .fill { display: block; height: 100%; border-radius: 999px; background: var(--blue); }
.meter.warn { background: var(--warn-soft); } .meter.warn .fill { background: var(--warn); }
.meter.bad { background: var(--bad-soft); } .meter.bad .fill { background: var(--bad); }
.meters .note { grid-column: 1 / -1; margin-top: -2px; }
.meter .w0 { width: 0%; }
.meter .w5 { width: 5%; }
.meter .w10 { width: 10%; }
.meter .w15 { width: 15%; }
.meter .w20 { width: 20%; }
.meter .w25 { width: 25%; }
.meter .w30 { width: 30%; }
.meter .w35 { width: 35%; }
.meter .w40 { width: 40%; }
.meter .w45 { width: 45%; }
.meter .w50 { width: 50%; }
.meter .w55 { width: 55%; }
.meter .w60 { width: 60%; }
.meter .w65 { width: 65%; }
.meter .w70 { width: 70%; }
.meter .w75 { width: 75%; }
.meter .w80 { width: 80%; }
.meter .w85 { width: 85%; }
.meter .w90 { width: 90%; }
.meter .w95 { width: 95%; }
.meter .w100 { width: 100%; }
.links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
         gap: 12px; }
.links li { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; }
.links a { font-weight: 600; }
.dashboards { margin-top: 40px; }
.dashboards .lede { margin-bottom: 12px; }
.refreshed { margin: 16px 0 0; color: var(--quiet); font-size: 0.8rem; }
.problems { list-style: none; } .problems li { padding: 4px 0; }
@media (max-width: 900px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-split { grid-template-columns: 1fr; }
  .links { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .rows li { grid-template-columns: 1fr; gap: 4px; }
  .headline { font-size: 1.15rem; }
}

/* runs, reports, files */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.toolbar form { margin: 0; }
.inline-stop { display: inline; margin: 0 0 0 6px; }
.btn.small { min-height: 28px; padding: 2px 10px; font-size: 0.85rem; }
.report > .crumb:first-child { margin-top: 0; }
.file-split { grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); }
pre.diff { margin: 0 0 20px; padding: 12px 0; background: var(--surface); border: 1px solid var(--line);
           border-radius: 8px; overflow-x: auto; font: 0.85rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
pre.diff span { display: block; padding: 0 14px; white-space: pre; }
pre.diff .add { background: var(--good-soft); } pre.diff .del { background: var(--bad-soft); }
pre.diff .ctx { color: var(--muted); }

/* a task's page and a run's before its report */
.task-title { overflow-wrap: anywhere; }
.task-title span { font-weight: 500; color: var(--muted); }
.task-meta { margin: 0 0 20px; overflow-wrap: anywhere; }
.lede.why { margin-top: -12px; }
.task-head { margin-bottom: 4px; }
.task-facts { margin-top: 16px; }
.stale strong { font-weight: 600; }
.facts .sub { display: block; color: var(--muted); font-size: 0.85rem; }
.facts .value-line { font-weight: 600; }
.value-line.bad { color: var(--bad); }
.task-split { grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); gap: 0 24px; }
.task-split .note, .card > .note { color: var(--muted); font-size: 0.875rem; }
.question-text { white-space: pre-wrap; overflow-wrap: anywhere; padding: 14px 16px; border-radius: 6px;
                 background: var(--bg); border: 1px solid var(--line); }
.question .options { margin: 12px 0 0; padding-left: 24px; overflow-wrap: anywhere; }
.question .answer-here { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 16px 0 0; }
.question .answer-here .note { color: var(--muted); font-size: 0.875rem; }
.mr-rows .tag.ok { color: var(--good); background: var(--good-soft); }
.branch { margin: 10px 0 0; color: var(--muted); font-size: 0.9rem; overflow-wrap: anywhere; }
.review h3 { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; margin: 0 0 12px; }
.review .stale { margin: 0 0 12px; }

/* settings */
.settings-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.settings-groups .count-note { color: var(--quiet); font-size: 0.8rem; margin-top: 4px; }
.settings-form .group { border: 0; border-top: 1px solid var(--line); margin: 18px 0 0; padding: 14px 0 0; min-width: 0; }
.settings-form .group legend { padding: 0 8px 0 0; font-weight: 600; }
.settings-form .group .group { margin-left: 12px; }
.settings-form > .setting:first-of-type { margin-top: 0; }
.setting { margin: 14px 0 0; min-width: 0; }
.setting > label { display: block; font-size: 0.9rem; margin: 0 0 4px; }
.setting .kind { color: var(--quiet); font-size: 0.8rem; margin-left: 6px; }
.setting .hint, .group > .hint { display: block; color: var(--muted); font-size: 0.85rem; margin: 4px 0 0; overflow-wrap: anywhere; }
.setting.default input, .setting.default select, .setting.default textarea { color: var(--muted); }
/* The settings' choices draw their own arrow: the browser's sits against the border. It is a background, so a click
   on it is a click on the select. */
.setting select { appearance: none; -webkit-appearance: none; padding-right: 36px; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%235d6576' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 12px 12px; }
.setting select:disabled { opacity: 0.6; cursor: not-allowed; }
@media (prefers-color-scheme: dark) {
  .setting select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%23a2a9b6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }
}
@media (forced-colors: active) {
  .setting select { appearance: auto; -webkit-appearance: auto; background-image: none; padding-right: 10px; }
}
.check { display: inline-flex; gap: 8px; align-items: center; }
textarea.code.small { min-height: 0; }
.form-end { padding: 14px 0 0; margin-top: 20px; border-top: 1px solid var(--line); align-items: center; }
pre.diff .hunk { color: var(--blue); }
.spaced-top { margin-top: 14px; }

/* operations */
.ops-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ops-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.muted-title { font-weight: 600; color: var(--quiet); }
.toolbar.spaced { margin-top: 24px; }
pre.oplog { margin: 0; padding: 12px 14px; max-height: 32rem; overflow: auto; background: var(--surface);
            border: 1px solid var(--line); border-radius: 8px; white-space: pre-wrap; overflow-wrap: anywhere;
            font: 0.825rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
@media (max-width: 760px) {
  .split, .task-split { grid-template-columns: 1fr; }
  .roles-help li { grid-template-columns: 1fr; gap: 2px; }
  .settings-groups, .ops-links { grid-template-columns: 1fr; }
  .bar-in { gap: 0 12px; }
  .brand { flex: 1 1 0; min-width: 0; }
  .who { max-width: calc(100% - 7rem); }
  .sections { order: 3; flex-basis: 100%; }
  .nav { margin: 0 -8px 6px; }
  .narrow { margin-top: 2vh; }
}
