@layer components {
  /* --- site header ------------------------------------------------------------ */
  .site-header { display:flex; justify-content:space-between; align-items:center; gap:1rem; padding:.45rem 1rem; background:var(--soft); border-bottom:1px solid var(--line); }
  .site-header__brand { font-weight:800; font-size:16px; color:var(--fg); font-variation-settings:"MONO" 0, "CASL" .4; }
  .site-header__nav { display:flex; flex-wrap:wrap; align-items:center; gap:.2rem; }
  .site-header__link { display:inline-block; padding:.3rem .6rem; border:0; border-radius:var(--radius); background:none; color:var(--fg); font:inherit; cursor:pointer; }
  .site-header__link:hover { background:var(--line-soft); text-decoration:none; }

  /* --- repository header: name, then the tabs of the repository ----------------- */
  .repo-head { background:var(--soft); border-bottom:1px solid var(--line); margin-top:-1px; }
  .repo-head__inner { max-width:var(--page); margin:0 auto; padding:.9rem 1rem 0; }
  .repo-head__title { display:flex; flex-wrap:wrap; align-items:center; gap:.5rem; }
  .repo-head__path { margin:0; font-size:20px; font-weight:var(--weight); display:flex; align-items:center; gap:.4rem; }
  .repo-head__path a { color:var(--fg); font-weight:700; }
  .repo-head__path .i { color:var(--muted); }
  .repo-head__desc { margin:.3rem 0 0; color:var(--muted); }

  /* --- code: counts, clone address, files, file view ----------------------------- */

  /* the clone addresses behind the "Code" button at the end of the repository tabs */
  .clone-menu { margin:.2rem 0 .3rem; }
  .clone-menu__panel { width:min(26rem, calc(100vw - 2rem)); padding:.7rem .8rem; }
  .clone-menu__label { margin:.2rem 0 .25rem; font-size:13px; font-weight:600; }
  .clone-menu__row { display:flex; gap:.3rem; margin:0 0 .6rem; }
  .clone-menu__url { flex:1; min-width:0; white-space:nowrap; overflow:auto; overflow-wrap:normal; font-size:13px; }
  .clone-menu__copy { padding:.2rem .45rem; }
  .clone-menu__copy.is-copied { border-color:var(--green); color:var(--green); }
  .clone-menu__hint { margin:0; font-size:12px; }

  .ref-menu__current { max-width:16rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .ref-menu__panel { max-height:min(24rem, 70vh); overflow:auto; }
  .last-commit { display:flex; align-items:center; gap:.8rem; padding:.6rem .8rem; }
  .last-commit__main { flex:1; min-width:0; }
  .last-commit__summary { margin:0; font-weight:600; }
  .last-commit__summary a { color:var(--fg); }
  .last-commit__meta { margin:.1rem 0 0; font-size:13px; }
  .crumbs { margin:0; font-size:15px; }
  .file-list { width:100%; border-collapse:collapse; }
  .file-list th { padding:.45rem .8rem; background:var(--soft); border-bottom:1px solid var(--line); text-align:left; font-size:13px; font-weight:600; color:var(--muted); }
  .file-list th:first-child { border-top-left-radius:var(--radius); }
  .file-list th:last-child { border-top-right-radius:var(--radius); }
  .file-list th.num { text-align:right; }
  .file-list__when { width:1%; white-space:nowrap; text-align:right; }
  .file-list th.file-list__when { text-align:right; }
  .file-list td { padding:.4rem .8rem; border-top:1px solid var(--line-soft); }
  .file-list tr:first-child td { border-top:0; }
  .file-list tr:hover td { background:var(--softer); }
  .file-list a { color:var(--fg); }
  .file-list__icon { margin-right:.4rem; color:var(--muted); }
  .file-list__icon--dir { color:var(--primary); }

  table.code, table.diff { width:100%; border-collapse:collapse; border:1px solid var(--line); }
  table.code td.ln, table.diff td.ln { width:1%; color:var(--muted); text-align:right; padding:0 .5rem; user-select:none; font-family:var(--mono); font-variation-settings:var(--mono-axes); font-size:12px; }
  details.outline { margin:.5rem 0; }
  details.outline ul { list-style:none; margin:.3rem 0; padding:0; columns:2 22rem; font-family:var(--mono); font-variation-settings:var(--mono-axes); font-size:13px; }
  details.outline li.depth-1 { padding-left:1.2rem; } details.outline li.depth-2 { padding-left:2.4rem; }
  details.outline li.depth-3 { padding-left:3.6rem; } details.outline li.depth-4 { padding-left:4.8rem; }
  .desc { background:var(--soft); padding:.6rem; border-radius:var(--radius); }
  .token { user-select:all; }
  .markdown { border:1px solid var(--line); padding:1rem 1.5rem; border-radius:var(--radius); margin-top:1rem; }
  .box__body.markdown { border:0; margin:0; }
  /* rendered Markdown: repo images, tables, blocked images (forge/web/markup.py) */
  .markdown img { max-width:100%; height:auto; vertical-align:middle; }
  .markdown img[src$="#gh-dark-mode-only"] { display:none; } /* no dark theme yet */
  .markdown .table-scroll { overflow-x:auto; margin:0 0 1rem; }
  .markdown table { border-collapse:collapse; }
  .markdown th, .markdown td { border:1px solid var(--line); padding:.3rem .6rem; text-align:left; vertical-align:top; }
  .markdown th { background:var(--softer); font-weight:600; }
  .markdown th[align="center"], .markdown td[align="center"] { text-align:center; }
  .markdown th[align="right"], .markdown td[align="right"] { text-align:right; }
  .markdown .extimg { display:inline-block; white-space:nowrap; padding:0 .35rem; border:1px dashed var(--line); border-radius:var(--radius); color:var(--muted); font-size:.85em; }

  /* --- reference lists: branches, topics, bookmarks (forge/web/refs.py) ---------- */
  /* fixed layout: the columns line up across the boxes of one page; narrow rules follow the list's own width (container), not the window's */
  .ref-list { container:ref-list / inline-size; }
  .ref-list__table { width:100%; border-collapse:collapse; table-layout:fixed; }
  .ref-list__table th:first-child { width:19%; }
  .ref-list__table th { padding:.4rem .8rem; text-align:left; font-size:13px; font-weight:600; color:var(--muted); border-bottom:1px solid var(--line); }
  .ref-list__table td { padding:.5rem .8rem; border-top:1px solid var(--line-soft); vertical-align:top; }
  .ref-list__table tbody tr:first-child td { border-top:0; }
  .ref-list__note { font-size:13px; }
  .ref-list__extra { margin:.15rem 0 0; font-size:13px; color:var(--muted); }
  /* one line of the message, the rest behind an ellipsis (the first line in full as the title) */
  .ref-list__summary { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--fg); }
  .ref-list__extra .node-chip { vertical-align:0; }
  .ref-list__below:hover { text-decoration:none; }
  /* stack order: a topic on another one of the list, indented once however deep */
  .ref-list__row--stacked .ref-list__name { padding-left:2.2rem; }
  .ref-list__orders { display:flex; gap:.8rem; margin-left:auto; font-size:13px; }
  .ref-list__orders a { color:var(--muted); }
  .ref-list__orders a[aria-current] { color:var(--fg); font-weight:600; }
  .ref-list__more { margin:-.6rem 0 1.4rem; font-size:13px; }
  .ref-list__back { margin:0 0 .8rem; font-size:13px; }
  .ref-list__counts { width:22%; }   /* grows and shrinks with the list, the bars with it */
  .ref-list__stacked-on { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }   /* under the bar: one line, a long name cut */
  .ref-list__stacked-icon { display:none; vertical-align:middle; margin-right:.2rem; }
  .ref-list__ref { display:inline-flex; align-items:center; gap:.35rem; font-weight:600; color:var(--fg); }
  .ref-list__ref .i { color:var(--muted); }
  .ref-list__mr { width:5.6rem; }
  .ref-list__mr abbr { text-decoration:none; }
  .ref-list__action { width:5.5rem; text-align:right; }
  .ref-list__name { overflow-wrap:anywhere; }
  .ref-list__confirm .menu__panel { width:min(19rem, calc(100vw - 2rem)); white-space:normal; text-align:left; }
  .ref-list__confirm-text { margin:.2rem 0 .5rem; }
  /* behind | ahead: two bars from a middle line, after Forgejo; the numbers beside them */
  /* starts flush with the column head; room for two digits, more push the bar right; one line high like the name beside it */
  .ahead-behind { display:grid; grid-template-columns:minmax(2ch, max-content) 1fr 1fr 4.6rem; align-items:center; gap:0 .3rem; min-height:21px; font-size:12px; }
  .ahead-behind__num { color:var(--muted); font-variant-numeric:tabular-nums; white-space:nowrap; }
  .ahead-behind__own { opacity:.8; }
  .ahead-behind__track { display:flex; height:.5rem; background:var(--line-soft); }
  .ahead-behind__track--behind { justify-content:flex-end; border-right:1px solid var(--muted); }
  .ahead-behind__bar { width:var(--width); background:var(--muted); }
  .ahead-behind__bar--ahead { background:var(--primary); }
  /* commits of the topics a topic is stacked on: same colour, paler */
  .ahead-behind__bar--stacked { background:color-mix(in srgb, var(--primary) 30%, transparent); }
  /* less room under the bar: an arrow instead of the words, which stay for screen readers */
  @container ref-list (max-width: 1150px) {
      .ref-list__stacked-icon { display:inline-block; }
      .ref-list__stacked-label { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
  }
  @container ref-list (max-width: 720px) {
      /* narrow: no commit column, the others as wide as their content */
      .ref-list__table { table-layout:auto; }
      .ref-list__table th:first-child { width:auto; }
      .ref-list__table .ref-list__commit { display:none; }
      .ref-list__table th, .ref-list__table td { padding:.45rem .5rem; }
      .ref-list__counts { width:9rem; }
      .ref-list__mr, .ref-list__action { width:1%; }
      .ahead-behind { grid-template-columns:minmax(2ch, max-content) 1fr 1fr 3.4rem; }
  }
  /* a merge request as a pill: the state in colour and icon, as a word only for screen readers and on hover */
  .mr-pill { display:inline-flex; align-items:center; gap:.25rem; padding:0 .5rem; font-size:12px; font-weight:500; line-height:1.6; border:1px solid currentColor; border-radius:999px; background:var(--bg); white-space:nowrap; }
  .mr-pill:hover { text-decoration:none; background:var(--softer); }
  .mr-pill--open { color:var(--green); }
  .mr-pill--merged { color:var(--purple); }
  .mr-pill--closed { color:var(--red); }

  /* --- pushlog ------------------------------------------------------------------ */
  .push { border-bottom:1px solid var(--line-soft); }
  .push h3 { font-size:14px; font-weight:var(--weight); }

  /* --- diff ---------------------------------------------------------------------- */
  table.diff tr.add { background:var(--add); }
  table.diff tr.del { background:var(--del); }
  table.diff tr.hunk td { background:#f1f8ff; color:var(--muted); font-family:var(--mono); font-variation-settings:var(--mono-axes); font-size:12px; padding:.2rem .5rem; }
  table.diff tr.selected td, table.diff.excerpt tr.marked td { background:var(--mark); }
  table.diff tr.selected td.ln:first-child, table.diff.excerpt tr.marked td.ln:first-child { box-shadow:inset 3px 0 0 var(--accent); }
  table.diff td.ln a.addc { color:var(--muted); display:block; }
  table.diff td.ln a.addc:hover { color:var(--accent); text-decoration:underline; }
  tr.threads td { padding:.2rem .5rem; background:var(--bg); }
  tr.base td, tr.hunk.base td { opacity:.65; }
  tr.divergent { background:#fff7ed; }
  a.addc { color:var(--muted); } a.addc:hover { color:var(--accent); }
  a.hunkc { margin-left:1rem; font-family:var(--sans); font-variation-settings:var(--sans-axes); }
  .filediff { margin:1.2rem 0; }
  .filediff h3 { font-size:14px; background:var(--soft); padding:.4rem .6rem; border:1px solid var(--line); border-bottom:0; border-radius:var(--radius) var(--radius) 0 0; margin:0; }
  .filediff.baseonly h3 { color:var(--muted); }
  .status { font-size:12px; text-transform:uppercase; margin-right:.4rem; color:var(--muted); }

  /* --- merge request: head, review, threads, entries ------------------------------ */
  .mrhead h2 { margin:.2rem 0; font-size:20px; } .mrhead p { margin:.2rem 0; }
  .revline { margin:.5rem 0; }
  .link { display:inline-block; font-size:12px; color:var(--muted); margin-left:.4rem; }
  .filters { margin:.5rem 0; } .filters a[aria-current] { font-weight:600; color:var(--fg); }
  .thread { border:1px solid var(--line); border-left:3px solid var(--accent); border-radius:var(--radius); padding:.4rem .6rem; margin:.4rem 0; background:#fbfdff; font-family:var(--sans); font-variation-settings:var(--sans-axes); }
  .thread .note { margin:0 0 .3rem; font-size:12px; }
  .comment { margin:.3rem 0; } .comment.draft { background:#fff7e6; } .comment .body { border:0; padding:0; margin:.2rem 0 0; }
  .commentform textarea, .reviewform textarea, form.triage textarea { width:100%; }
  .commentform label, .reviewform label { margin-right:1rem; font-size:13px; }
  .commentform .where label { display:block; margin:.2rem 0; } .commentform .where select { max-width:100%; }
  .verdict-approve { background:var(--add); } .verdict-request_changes { background:var(--del); }
  .mergebox, .discussion, .verdicts, .divergence { margin:1.5rem 0; }
  .mergebox { border:1px solid var(--line); padding:.6rem 1rem; border-radius:var(--radius); }
  .divergence { border:1px solid var(--warn); border-radius:var(--radius); padding:.6rem 1rem; background:#fffaf2; }
  .blockers { color:var(--red); }
  .review { border-bottom:1px solid var(--line-soft); padding:.4rem 0; }
  /* what a diff shows: revision, point of comparison, kind */
  .compare { display:flex; flex-wrap:wrap; align-items:end; gap:.6rem 1rem; margin:.8rem 0; padding:.6rem .8rem; border:1px solid var(--line); border-radius:var(--radius); background:var(--soft); }
  .compare__field { display:flex; flex-direction:column; gap:.15rem; min-width:0; }
  .compare__field select { max-width:100%; }
  .compare__label { font-size:12px; color:var(--muted); }
  .compare__check { display:flex; align-items:center; gap:.3rem; padding-bottom:.2rem; }
  /* findings of a merge request: rows where something happened stand out by a rule at the left */
  table.findings tr.moved td:first-child { box-shadow:inset 3px 0 0 var(--accent); }
  .signal { font-weight:500; }
  .signal--changed { color:var(--red); }
  .signal--unclear { color:var(--warn); }
  .entryhead__page { margin-left:.4rem; font-size:12px; }
  .decision--past { color:var(--muted); }
  .aftertriage { display:flex; flex-direction:column; gap:.4rem; margin:.4rem 0; }
  /* review axes: the description is prose in a table cell, the form a column */
  table.axes .markdown.body { border:0; padding:0; background:none; }
  table.axes tr.axis--off td { color:var(--muted); }
  .axisform { display:flex; flex-direction:column; gap:.5rem; max-width:44rem; margin:.4rem 0; }
  .axisform label { display:flex; flex-direction:column; gap:.2rem; }
  .axisform button { align-self:flex-start; }
  .promoteform { display:flex; flex-wrap:wrap; align-items:end; gap:.4rem .8rem; margin:.3rem 0; }
  .roomhead { margin:.2rem 0 .8rem; }
  .roomhead__task .markdown.body { border:0; padding:.2rem 0 0; background:none; }
  /* a finding at its line in a diff: one line, the rest is on its page */
  .findinglink { margin:.2rem 0; }
  /* activity: per kind, what came in next to what was finished */
  .balance { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:0 1.5rem; margin-top:1.2rem; }
  .balance__title { grid-column:1 / -1; margin:0 0 .4rem; font-size:16px; }
  .balance__title .muted { font-weight:var(--weight); font-size:13px; margin-left:.4rem; }
  @media (max-width:40rem) { .balance { grid-template-columns:minmax(0, 1fr); } }
  .log__summary { width:100%; }
  /* the log in runs: a heading row per tbody (topic or branch, phase) */
  table.log--grouped .log__group th { padding:.35rem .4rem; color:var(--fg); font-weight:600; background:var(--soft); border-top:1px solid var(--line); }
  table.log--grouped .log__group .ref, table.log--grouped .log__group .phase { background:var(--bg); }   /* white on grey */
  table.log--grouped .log__group a:hover { text-decoration:none; }
  table.log--grouped .log__group a:hover .ref { border-color:var(--muted); }
  .badge.head { color:var(--warn); border-color:currentColor; }
  /* references on code an interdiff does not touch, with that code */
  details.unchanged { margin:.6rem 0; } details.unchanged > summary { cursor:pointer; color:var(--muted); }
  details.unchanged table.excerpt { margin-top:.5rem; }
  .log__badges { white-space:nowrap; text-align:right; }
  /* commit graph: one SVG per row; rows of fixed height without borders, so that the
     lines of one row meet those of the next (forge/web/graph.py draws them) */
  .graph { overflow-x:auto; }
  table.log--graph td { height:var(--graph-row); padding-top:0; padding-bottom:0; border:0; vertical-align:middle; white-space:nowrap; }
  table.log--graph td:not(.log__graph) { box-shadow:inset 0 -1px var(--line-soft); }
  table.log--graph td.log__graph { width:1px; padding:0 .3rem 0 0; }
  table.log--graph .log__summary { max-width:0; overflow:hidden; text-overflow:ellipsis; }
  table.log--graph .log__author { max-width:12rem; overflow:hidden; text-overflow:ellipsis; }
  .graph__svg { display:block; overflow:visible; }
  .graph__edge { fill:none; stroke:var(--graph-colour); stroke-width:2; stroke-linecap:butt; }
  .graph__gap { fill:none; stroke:var(--graph-halo); stroke-width:6; }
  .graph__edge--folded { stroke-dasharray:1 3; }
  .graph__edge--open { stroke-dasharray:3 3; }
  .graph__dot { fill:var(--graph-colour); stroke:var(--graph-halo); stroke-width:1.5; }
  .graph__dot--hollow { fill:var(--graph-halo); stroke:var(--graph-colour); stroke-width:2; }
  .graph--public { --graph-colour:var(--graph-public); } .graph--draft { --graph-colour:var(--graph-draft); }
  .graph--c0 { --graph-colour:var(--graph-1); } .graph--c1 { --graph-colour:var(--graph-2); }
  .graph--c2 { --graph-colour:var(--graph-3); } .graph--c3 { --graph-colour:var(--graph-4); }
  .graph--c4 { --graph-colour:var(--graph-5); } .graph--c5 { --graph-colour:var(--graph-6); }
  .graph--c6 { --graph-colour:var(--graph-7); } .graph--c7 { --graph-colour:var(--graph-8); }
  /* the topic badge names the colour of its line */
  .graph__row .topic { border-left:3px solid var(--graph-colour); }
  /* narrow: without author and date; the summary keeps a readable width and the
     table scrolls sideways in its frame, the page does not */
  @media (max-width:40rem) {
    table.log--graph .log__author, table.log--graph .log__when { display:none; }
    table.log--graph .log__summary { min-width:11rem; }
  }
  .threadgroup { margin:1.5rem 0; } .threadgroup h3 { border-bottom:1px solid var(--line); padding-bottom:.2rem; }
  .threaditem { margin:1rem 0; } .threaditem .where { margin:.2rem 0; }
  ol.steps { margin:.2rem 0 .4rem; padding-left:1.4rem; }
  /* entries of contributions (docs/discussions/oberflaeche.md) */
  .entryhead { margin:0 0 .4rem; }
  .badge.severity-blocker, .badge.severity-major { border-color:var(--red); color:var(--red); }
  .badge.state-accepted, .badge.state-accepted_modified, .badge.state-implemented { border-color:var(--green); color:var(--green); }
  .badge.state-rejected { border-color:var(--muted); color:var(--muted); }
  .evidence { font-size:13px; margin:.2rem 0 .4rem; padding-left:1.2rem; }
  .decision { font-size:13px; background:var(--soft); padding:.3rem .5rem; border-radius:var(--radius); }

  /* --- markdown editor -------------------------------------------------------------- */
  .mdtoolbar { display:flex; flex-wrap:wrap; gap:.2rem; margin:.2rem 0; }
  .mdtoolbar button { font-size:12px; padding:.1rem .5rem; min-width:2rem; }
  .mdtoolbar .mdtoggle { margin-left:auto; }
  .mdpreview { border:1px solid var(--line); border-radius:var(--radius); padding:.3rem .6rem; background:var(--bg); }
  .mdpreview .markdown { border:0; padding:0; margin:0; }

  /* --- issues --------------------------------------------------------------------- */
  .issuehead, .pagehead { margin-bottom:.6rem; }
  .issuehead .issuebar { display:flex; flex-wrap:wrap; gap:.6rem; align-items:baseline; }
  .assignees, ul.relations { list-style:none; margin:.2rem 0; padding:0; }
  .assignees li, .relations li { margin:.15rem 0; }
  .relationform { display:flex; flex-wrap:wrap; gap:.5rem; align-items:baseline; }
  /* dependency structure matrix */
  table.dsm { border-collapse:collapse; margin:.8rem 0; font-size:13px; }
  table.dsm caption { caption-side:top; text-align:left; color:var(--muted); padding-bottom:.3rem; }
  table.dsm th, table.dsm td { border:1px solid var(--line); padding:.15rem .45rem; text-align:center; }
  table.dsm th[scope=row] { text-align:left; }
  table.dsm td.mark { background:var(--accent); color:#fff; font-weight:700; }
  /* labels (design 13.1): the color is a swatch, the text keeps the page's contrast */
  .label { display:inline-flex; align-items:center; gap:.3rem; font-size:12px; padding:0 .45rem; border-radius:var(--radius); border:1px solid var(--line); background:var(--soft); white-space:nowrap; text-decoration:none; color:inherit; vertical-align:middle; }
  .label::before { content:""; width:.6rem; height:.6rem; border-radius:50%; background:var(--label, #8b949e); border:1px solid rgba(0,0,0,.2); }
  ul.labels { list-style:none; padding:0; margin:.2rem 0; display:flex; flex-wrap:wrap; gap:.3rem; }
  table.labels td { vertical-align:top; } table.labels input[type=text] { width:12rem; }

  /* --- the feed: a timeline of events and comments ------------------------------- */
  ol.feed { list-style:none; margin:.5rem 0; padding:0; }
  .feeditem { border-left:2px solid var(--line); padding:.15rem 0 .15rem .7rem; margin:0; }
  .feeditem .event { margin:.1rem 0; font-size:13px; color:var(--muted); }
  .feeditem .entrytitle { margin:.2rem 0 0; font-weight:600; }
  .feeditem { padding-bottom:.4rem; } .feeditem article { margin:0; }
  .feeditem .feedhead { margin:.2rem 0; font-size:14px; font-weight:var(--weight); }
  .feeditem .permalink { font-size:12px; text-decoration:none; }
  .feeditem details { margin:.3rem 0; } .feeditem summary { cursor:pointer; color:var(--muted); }
  .feeditem .thread.settled { border-left-color:var(--muted); } .feeditem .hidden-entry { font-style:italic; }
  .feeditem ol.steplist { margin:.3rem 0; padding-left:1.4rem; } .feeditem ol.steplist li { margin:.4rem 0; }
  .feeditem ol.steplist .where { margin:0; font-size:13px; }
  .feeditem ul.changelist { margin:.3rem 0; padding-left:1.2rem; font-size:13px; }
  .feedreply, .reviewbox { margin:1.5rem 0; }

  @media (max-width: 700px) {
    .tabs--repo a { padding:.45rem .55rem; }
    .item-list__item { flex-wrap:wrap; }
    .file-list .num { display:none; }
  }
}

/* --- test runs (docs/checks) ----------------------------------------------------------- */
@layer components {
  .run-state { flex:none; }
  .run-state--passed { color:var(--green); }
  .run-state--failed, .run-state--error { color:var(--red); }
  .run-state--running { color:var(--accent); }
  .run-state--queued, .run-state--cancelled, .run-state--skipped { color:var(--muted); }
  .item-list__item > .run-state { margin-top:.25rem; }
  .checkside { flex-direction:column; align-items:flex-end; gap:.1rem; font-size:13px; }
  .checkcounts { font-size:13px; }
  .badge.state-run-passed { border-color:var(--green); color:var(--green); }
  .badge.state-run-failed, .badge.state-run-error { border-color:var(--red); color:var(--red); }
  .badge.state-run-running { border-color:var(--accent); color:var(--accent); }
  .runhead h2 { display:flex; align-items:center; gap:.4rem; margin-bottom:.2rem; }
  .runhead h2 .i { width:20px; height:20px; }
  .runhead__actions { display:flex; gap:.4rem; flex-wrap:wrap; margin:.4rem 0 1rem; }
  .runhead__actions form { margin:0; }
  pre.runlog { max-height:32rem; overflow:auto; font-size:12px; line-height:1.45; background:var(--soft); border:1px solid var(--line-soft); border-radius:var(--radius); padding:.6rem .8rem; white-space:pre-wrap; overflow-wrap:anywhere; }
  pre.runlog--short { max-height:16rem; margin:.4rem 0; }
  .runfiles { margin:1rem 0; } .runfiles > summary { cursor:pointer; color:var(--muted); }
  .checkconfig { margin:.4rem 0 1rem; } .checkconfig > summary { cursor:pointer; color:var(--muted); }
  .checkconfig form { display:flex; flex-direction:column; gap:.3rem; align-items:flex-start; margin-top:.4rem; }
  form.inline { display:flex; gap:.4rem; align-items:center; margin:0; }
}
