/* OxygenHub. The RetroPlay Network theme (hub spec §6.1): dark by default
   on the Commander X16 palette, light under [data-theme="light"], Barlow
   for text and Press Start 2P for the wordmark and first columns, square
   corners, thin rules, a band for navigation. Fonts are vendored. */

@font-face { font-family: "Barlow"; font-weight: 300; font-display: swap; src: url(/static/fonts/Barlow-300.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url(/static/fonts/Barlow-400.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url(/static/fonts/Barlow-500.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url(/static/fonts/Barlow-600.woff2) format("woff2"); }
@font-face { font-family: "Press Start 2P"; font-weight: 400; font-display: swap; src: url(/static/fonts/PressStart2P-400.woff2) format("woff2"); }

:root {
  /* Oxygen's mark: cyan #00F0FF to blue #0072FF on #070c18. */
  --bg:#070c18; --panel:#0e1526; --soft:#141d33; --ink:#e6ecf7; --mute:#8592ad; --line:#1f2b47; --dim:#43506d;
  --acc:#00e0f0; --acc-2:#0072ff; --band:#0b3f9e; --band-ink:#ffffff; --band-acc:#00f0ff; --band-line:rgba(7,12,24,.5); --now:#00f0ff; --now-ink:#070c18;
  --ok:#5fe3a1; --bad:#ff5e7a; --warn:#b48cff;
  --add:#0d3a3a; --del:#3f1a2e; --add-ink:#8ff0d8; --del-ink:#ffa5b8;
  --m1:#00f0ff; --m2:#d6dcea; --m3:#5aa8ff; --m4:#0072ff; --m5:#8592ad;
  /* syntax */
  --sy-kw:#7fb4ff; --sy-str:#8ff0d8; --sy-num:#9fd3ff; --sy-cmt:#7a86a4; --sy-fn:#00e0f0; --sy-ty:#c6a0ff; --sy-var:#e6ecf7; --sy-const:#b48cff;
  /* Backdrops (docs/backgrounds.md §3): a resting mark, a lit one, a link. */
  --bd-mark:rgba(0,224,240,.12); --bd-lit:rgba(0,240,255,.85); --bd-link:rgba(0,240,255,.35);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg:#f4f7fc; --panel:#ffffff; --soft:#e9eef8; --ink:#1b2333; --mute:#5f6a81; --line:#d6dded; --dim:#b3bccf;
  --acc:#0064e0; --acc-2:#00b8d4; --band:#0b3f9e; --band-ink:#ffffff; --band-acc:#9ff3ff; --band-line:rgba(255,255,255,.25); --now:#0064e0; --now-ink:#ffffff;
  --ok:#1a7850; --bad:#c62d47; --warn:#6b3fd1;
  --add:#e1f5ee; --del:#fbe3e8; --add-ink:#176b48; --del-ink:#a1243c;
  --m1:#0090a8; --m2:#7a8290; --m3:#2f6fcf; --m4:#0055c0; --m5:#8a8f9c;
  --sy-kw:#0b4fc9; --sy-str:#1a7850; --sy-num:#1e63b8; --sy-cmt:#606b81; --sy-fn:#007394; --sy-ty:#7a3fd1; --sy-var:#1b2333; --sy-const:#6b3fd1;
  --bd-mark:rgba(95,106,129,.18); --bd-lit:rgba(0,100,224,.7); --bd-link:rgba(0,100,224,.25);
  color-scheme: light;
}

* { box-sizing: border-box; }
/* Room for the scroll bar always, so nothing shifts when it comes and goes. */
html { background: var(--bg); scrollbar-gutter: stable; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font: 15px/1.45 "Barlow", "IBM Plex Sans", system-ui, sans-serif; }
a { color: var(--acc); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre, kbd, .mono { font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.px { font-family: "Press Start 2P", "Silkscreen", monospace; font-size: 13px; }
.pxs { font-family: "Press Start 2P", "Silkscreen", monospace; font-size: 11px; }
h1, h2, h3 { margin: 0; }
h2 { font-size: 16px; font-weight: 600; margin: 0 0 8px; }
h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); margin: 14px 0 6px; }
p { margin: 0 0 10px; }
.small { font-size: 12px; }
.mute { color: var(--mute); }
.dim { color: var(--mute); }
.center { text-align: center; }
.right { text-align: right; }
.empty { color: var(--mute); padding: 22px; text-align: center; border: 1px dashed var(--line); }
.lead { font-size: 16px; }
kbd { background: var(--soft); border: 1px solid var(--line); padding: 1px 5px; font-size: 11px; }

/* shell */
header { background: var(--panel); border-bottom: 1px solid var(--line); padding: 14px 22px; display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand svg { height: 22px; width: auto; }
.brand em { font-style: normal; color: var(--acc); }
.brand:hover { text-decoration: none; }
header nav { margin-left: auto; display: flex; gap: 8px; align-items: center; }
header nav .me { color: var(--ink); font-weight: 600; padding: 0 6px; }
header nav .theme-toggle { background: none; border: 1px solid var(--line); color: var(--ink); font-size: 15px; line-height: 1; padding: 4px 7px; cursor: pointer; }
header nav .theme-toggle:hover { border-color: var(--acc); }
fieldset.choices { border: 0; padding: 0; margin: 0 0 10px; display: flex; gap: 18px; flex-wrap: wrap; }
fieldset.choices legend { padding: 0; margin-bottom: 6px; }
form.card label.choice, label.choice { display: inline-flex; gap: 6px; align-items: center; font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--ink); margin: 0; }
form.inline { display: inline; margin: 0; }
.band a.admin { color: var(--band-acc); }
form.find { margin: 0; flex: 0 1 320px; }
form.find input { width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--ink); padding: 6px 10px; font: inherit; }
form.find input:focus { outline: 2px solid var(--band); outline-offset: 0; }
.band { background: var(--band); display: flex; align-items: stretch; padding: 0 22px; }
.band a { color: var(--band-ink); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; padding: 9px 14px; border-right: 1px solid var(--band-line); }
.band a:first-child { border-left: 1px solid var(--band-line); }
.band a.on { box-shadow: inset 0 -3px 0 var(--acc); background: rgba(0,0,0,.18); }
.band a:hover { text-decoration: none; background: rgba(0,0,0,.12); }
.band .grow { flex: 1; }
.band a.dim { opacity: .6; border: 0; }
.tabs { background: var(--panel); border-bottom: 1px solid var(--line); }
/* The repository bar is as wide as its contents need: at least the page
   column (so it lines up with it), wider for a long name, and it wraps only
   when the window itself is too narrow. */
.tabs-in { width: fit-content; min-width: min(1180px, 100%); max-width: 100%; box-sizing: border-box; margin: 0 auto; padding: 0 22px; display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.tabs .crumb { white-space: nowrap; }
.tabs .crumb { margin-right: 18px; padding: 10px 0; font-size: 16px; }
.tabs a:not(.crumb a) { padding: 10px 12px; color: var(--ink); font-size: 13px; }
.tabs a.on { border-bottom: 2px solid var(--acc); font-weight: 600; }
.tabs a:hover { text-decoration: none; background: var(--soft); }
/* The bar's menus (oxygenhub#254): a summary that looks like a tab, its
   links in a panel below it; where the bar scrolls (narrow screens) they
   open inline instead, so the panel is never clipped. */
.tab-menu { position: relative; }
.tab-menu > summary { list-style: none; cursor: pointer; padding: 10px 12px; color: var(--ink); font-size: 13px; }
.tab-menu > summary::-webkit-details-marker { display: none; }
.tab-menu > summary::after { content: " \25BE"; color: var(--mute); }
.tab-menu > summary.on { border-bottom: 2px solid var(--acc); font-weight: 600; }
.tab-menu > summary:hover { background: var(--soft); }
.tab-menu-list { position: absolute; top: 100%; left: 0; z-index: 30; min-width: 190px; display: flex; flex-direction: column; padding: 4px 0; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.tabs .tab-menu-list a { padding: 8px 14px; white-space: nowrap; }
.tabs .tab-menu-list a[aria-current] { font-weight: 600; box-shadow: inset 2px 0 0 var(--acc); }
main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 14px 22px 28px; }
main.wide { max-width: none; }
footer { background: var(--panel); border-top: 1px solid var(--line); margin-top: 28px; }
.foot { max-width: 1180px; margin: 0 auto; padding: 22px; display: grid; grid-template-columns: 1fr auto; gap: 22px; }
.foot .cols { display: flex; gap: 32px; }
.foot .cols a { display: block; font-size: 13px; }
.head { border-bottom: 2px solid var(--band); border-image: linear-gradient(90deg, var(--acc), var(--acc-2)) 1; margin: 6px 0 16px; padding-bottom: 6px; }
.head h1 { font-size: 30px; font-weight: 300; color: var(--mute); }
.head h1 small { display: block; font-size: 13px; color: var(--acc); font-weight: 400; }
.strip { padding: 8px 12px; margin: 0 0 12px; border: 1px solid; font-size: 13px; }
.strip.warn { border-color: var(--warn); color: var(--warn); background: color-mix(in srgb, var(--warn) 10%, transparent); }
.strip.bad { border-color: var(--bad); color: var(--bad); background: color-mix(in srgb, var(--bad) 10%, transparent); }
.strip a { color: inherit; text-decoration: underline; }
.sheet { position: fixed; right: 22px; bottom: 22px; background: var(--panel); border: 1px solid var(--line); padding: 14px 18px; box-shadow: 0 2px 12px rgba(0,0,0,.35); }
.sheet td { padding: 2px 8px 2px 0; font-size: 13px; }

/* buttons, tags, chips */
button, a.go, button.go, summary.go { font: inherit; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; background: var(--panel); color: var(--acc); border: 1px solid var(--acc); padding: 5px 10px; cursor: pointer; }
button:hover, a.go:hover { background: var(--acc); color: var(--now-ink); text-decoration: none; }
button.small, a.go.small { padding: 2px 8px; font-size: 11px; }
a.go { display: inline-block; line-height: normal; }
/* A form's buttons in one aligned row: a CANCEL link the same height as
   the buttons beside it. */
form .actions { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; margin: 12px 0 0; }
form .actions > *, form.card .actions > button[type=submit] { margin: 0; }
form .actions > a.go { display: inline-flex; align-items: center; }
/* A drop's form takes the page's width, as the notice above it does. */
form.card.drop-form { max-width: none; }
/* A page title with an action (+ NEW DROP): title left, action right, a
   gap between them; on a phone the action wraps below with room. */
.head.with-action { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.head.with-action h1 { margin: 0; }
.tag { display: inline-block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--acc); background: var(--soft); padding: 1px 6px; vertical-align: middle; }
.tag.bad { color: var(--bad); }
.tag.warn { color: var(--warn); }
.tag.ok { color: var(--ok); }
.warn-text { color: var(--warn); }
.tag.head { color: var(--now-ink); background: var(--now); }
.chip { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12px; background: var(--soft); padding: 1px 6px; border: 1px solid var(--line); }
.lbl { display: inline-block; font-size: 11px; padding: 1px 7px; margin-right: 4px; border: 1px solid; vertical-align: middle; }
.lbl-bm { color: var(--band-ink); background: var(--band); border-color: var(--band); }
.lbl-tag { color: var(--acc); border-color: var(--acc); }
.sig { display: inline-block; width: 1.2em; text-align: center; font-weight: 600; }
.sig-valid { color: var(--ok); }
.sig-unsigned { color: var(--mute); }
.sig-invalid { color: var(--bad); }
.sig-revoked { color: var(--warn); }

/* lists, tables, panels */
ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li { padding: 2px 0; }
ul.rows { list-style: none; margin: 0; padding: 0; }
ul.rows li { display: flex; justify-content: space-between; align-items: center; gap: 14px; background: var(--panel); border: 1px solid var(--line); padding: 12px 14px; margin-bottom: 6px; }
ul.rows .name { font-size: 16px; }
ul.rows p { margin: 4px 0 0; color: var(--mute); }
.table { border: 1px solid var(--line); overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--soft); }
td { padding: 7px 10px; background: var(--panel); border-bottom: 1px solid var(--line); vertical-align: top; }
td.px { color: var(--acc); }
.panel { background: var(--panel); border: 1px solid var(--line); padding: 14px 16px; margin-bottom: 14px; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; background: var(--panel); border: 1px solid var(--line); padding: 12px 16px; margin: 0 0 14px; }
dl.facts dt { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); padding-top: 3px; }
dl.facts dd { margin: 0; }
code.full { word-break: break-all; }
pre.msg { background: var(--panel); border: 1px solid var(--line); padding: 10px 12px; white-space: pre-wrap; font-family: inherit; font-size: 14px; }
pre.marked { background: var(--panel); border: 1px solid var(--bad); padding: 10px 12px; overflow-x: auto; }

/* repository layout */
.side-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; }
.side-layout.rev { grid-template-columns: minmax(0, 1fr) 380px; }
/* A proposal's conversation: the page is wide for its diffs, but text and
   the sidebar stay together at a readable width, and the description,
   comments and forms fill their column. */
.side-layout.conversation { max-width: 1240px; }
.side-layout.conversation > div > article.doc,
.side-layout.conversation > div > form.card,
.side-layout.conversation > div > .comment { max-width: none; box-sizing: border-box; }
.side h3:first-child { margin-top: 0; }
.dash h2 { font-size: 15px; margin: 18px 0 8px; }
.dash h2:first-child { margin-top: 0; }
.dash .side .bar { justify-content: space-between; }
.dash .side .bar h3 { margin: 0; }
ul.feed { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); background: var(--panel); }
ul.feed li { padding: 8px 14px; border-top: 1px solid var(--line); }
ul.feed li:first-child { border-top: 0; }
ul.feed .who { font-weight: 600; }
.clone { display: flex; gap: 6px; align-items: center; }
.clone code { background: var(--bg); border: 1px solid var(--line); padding: 4px 8px; flex: 1; overflow-x: auto; white-space: nowrap; }
.quickstart { background: var(--panel); border: 1px solid var(--line); padding: 16px 20px; }
.quickstart h2 { margin-top: 0; }
.quickstart h3 { font-size: 14px; margin: 18px 0 6px; }
.cmds { display: flex; gap: 6px; align-items: flex-start; }
.cmds pre { flex: 1; margin: 0; background: var(--bg); border: 1px solid var(--line); padding: 8px 10px; overflow-x: auto; }
.bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.ref { color: var(--acc); }
.crumbs a { color: var(--ink); }
/* The tree fills its column and never more (#152): a fixed column grid,
   long names and change titles cut with an ellipsis, so nothing runs
   under the sidebar. */
table.tree { width: 100%; table-layout: fixed; }
table.tree col.c-g { width: 44px; }
table.tree col.c-name { width: 30%; }
table.tree col.c-age { width: 8.5em; }
table.tree td { padding: 6px 10px; }
table.tree td.g { color: var(--acc); text-align: center; }
table.tree td.name, table.tree td.last { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.tree td.last { color: var(--mute); }
table.tree td.last a { color: var(--mute); }
table.tree td.age { text-align: right; white-space: nowrap; }
article.doc { max-width: 60rem; background: var(--panel); border: 1px solid var(--line); padding: 18px 24px; margin-top: 14px; }
article.doc h1 { font-size: 26px; font-weight: 500; margin: 0 0 12px; }
article.doc h2 { font-size: 20px; margin: 18px 0 8px; }
article.doc h3 { text-transform: none; letter-spacing: 0; font-size: 16px; color: var(--ink); }
article.doc pre { background: var(--bg); border: 1px solid var(--line); padding: 10px 12px; overflow-x: auto; }
article.doc code { background: var(--soft); padding: 0 3px; }
article.doc pre code { background: none; padding: 0; }
article.doc table { width: auto; }
/* Pictures in rendered Markdown (attachments, #350) fit their box at any width (#364). */
.doc img, .body img, .tl-text img { max-width: 100%; height: auto; }
article.doc blockquote { border-left: 3px solid var(--band); margin: 0; padding: 2px 12px; color: var(--mute); }

/* files and diffs */
.filebox { background: var(--panel); border: 1px solid var(--line); }
.filebox > header { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--soft); }
.modes a { font-size: 12px; padding: 2px 8px; border: 1px solid var(--line); margin-left: 4px; color: var(--ink); }
.modes a.on { border-color: var(--acc); color: var(--acc); }
table.code { width: 100%; }
table.code td { padding: 0 8px; border: 0; background: transparent; line-height: 1.5; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13px; }
table.code td.n { width: 1%; min-width: 3em; text-align: right; color: var(--mute); user-select: none; cursor: pointer; padding-right: 12px; }
table.code td.n:hover { color: var(--acc); }
table.code td.t pre { margin: 0; white-space: pre; }
table.code tr.hl td { background: color-mix(in srgb, var(--acc) 18%, transparent); }
table.code td.blame { width: 1%; white-space: nowrap; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--soft); font-family: "Barlow", sans-serif; font-size: 12px; padding: 0 10px; vertical-align: top; line-height: 1.5; }
table.code td.blame .px { font-size: 9px; }
table.code td.blame .who { color: var(--ink); }
table.diff td.s { width: 1%; user-select: none; color: var(--mute); }
table.diff tr.add td { background: var(--add); color: var(--add-ink); }
table.diff tr.del td { background: var(--del); color: var(--del-ink); }
table.diff tr.gap td { background: var(--soft); color: var(--mute); font-family: "Barlow", sans-serif; font-size: 12px; padding: 2px 8px; }
.file-diff { background: var(--panel); border: 1px solid var(--line); margin: 0 0 14px; }
.file-diff > header, .file-diff > summary { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--soft); border-bottom: 1px solid var(--line); }
.file-diff > summary { cursor: pointer; list-style: none; }
.file-diff > summary::-webkit-details-marker { display: none; }
.file-diff > summary::before { content: "▾"; color: var(--mute); width: 1em; }
.file-diff:not([open]) > summary::before { content: "▸"; }
.file-diff:not([open]) > summary { border-bottom: 0; }
.diff-bar { display: flex; gap: 16px; align-items: center; margin: 0 0 10px; }
.diff-bar .modes a { padding: 3px 10px; border: 1px solid var(--line); color: var(--mute); }
.diff-bar .modes a.on { color: var(--ink); border-color: var(--acc); }
table.diff .wx { border-radius: 2px; }
table.diff tr.add .wx, table.diff td.add .wx { background: color-mix(in srgb, var(--add-ink) 28%, transparent); }
table.diff tr.del .wx, table.diff td.del .wx { background: color-mix(in srgb, var(--del-ink) 28%, transparent); }
table.diff.split { table-layout: fixed; }
table.diff.split col.n { width: 3.5em; }
table.diff.split td.t { overflow-x: auto; }
table.diff.split td.t pre { white-space: pre-wrap; word-break: break-word; }
table.diff.split td.add { background: var(--add); color: var(--add-ink); }
table.diff.split td.del { background: var(--del); color: var(--del-ink); }
table.diff.split td.none { background: var(--soft); }
table.diff.split td.t.mid { border-left: 1px solid var(--line); }
.file-diff .counts { margin-left: auto; font-family: ui-monospace, monospace; font-size: 12px; }
.counts .add { color: var(--add-ink); }
.counts .del { color: var(--del-ink); }
.kind { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; padding: 1px 6px; border: 1px solid var(--line); color: var(--mute); }
.kind-added { color: var(--ok); border-color: var(--ok); }
.kind-removed { color: var(--bad); border-color: var(--bad); }
.kind-renamed, .kind-modified { color: var(--acc); border-color: var(--acc); }
nav.files { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 12px; }

/* history */
.hist { background: var(--panel); border: 1px solid var(--line); }
.hrow { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); }
.hrow:last-child { border-bottom: 0; }
.hrow svg.lanes { flex: 0 0 auto; display: block; }
.lane { stroke: var(--band); stroke-width: 2; fill: none; }
.lane.none { stroke: none; }
.lane.dashed { stroke-dasharray: 3 3; stroke: var(--dim); }
.node { fill: var(--acc-2); stroke: var(--acc); stroke-width: 1.5; }
.node.head { fill: var(--now); stroke: var(--ink); stroke-width: 1.5; }
.node.res { fill: var(--ok); }
/* Swimlanes (hub spec §6.7): cards on lanes, dependency edges between them. */
.lanes-board { border: 1px solid var(--line); background: var(--panel); padding: 6px; }
.lanes-board rect.node { fill: var(--soft); stroke: var(--acc); }
.lanes-board rect.node.head { stroke: var(--now); stroke-width: 2; }
.lanes-board a:hover rect.node { fill: var(--line); }
.lanes-board text { fill: var(--ink); font-size: 11px; }
.chg { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 8px 12px; flex: 1; min-width: 0; }
.chg + .chg, .chg:only-child { border-bottom: 1px solid var(--line); }
.hrow .chg { border-bottom: 0; }
.chg .title { color: var(--ink); font-weight: 500; }
/* Nothing unbroken in a change row may push it wider than its card (#216). */
.chg-main { min-width: 0; overflow-wrap: anywhere; }
.chg .meta { color: var(--mute); font-size: 12px; margin-top: 2px; }
.chg-side { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.chg .hash { font-size: 9px; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }

@media (max-width: 760px) {
  header { flex-wrap: wrap; }
  .side-layout, .side-layout.rev { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; }
  main { padding: 10px 14px 20px; }
  .band { padding: 0 8px; overflow-x: auto; }
  .tabs-in { padding: 0 8px; }
}

/* syntax (syntect scopes as classes prefixed sy-, so no scope name can collide with the page's own classes) */
.sy-source .sy-keyword, .sy-source .sy-storage { color: var(--sy-kw); }
.sy-source .sy-string { color: var(--sy-str); }
.sy-source .sy-constant.sy-numeric, .sy-source .sy-constant.sy-language { color: var(--sy-num); }
.sy-source .sy-constant { color: var(--sy-const); }
.sy-source .sy-comment { color: var(--sy-cmt); font-style: italic; }
.sy-source .sy-entity.sy-name.sy-function, .sy-source .sy-support.sy-function, .sy-source .sy-meta.sy-function-call .sy-variable.sy-function { color: var(--sy-fn); }
.sy-source .sy-entity.sy-name.sy-type, .sy-source .sy-storage.sy-type, .sy-source .sy-support.sy-type, .sy-source .sy-entity.sy-name.sy-struct, .sy-source .sy-entity.sy-name.sy-enum, .sy-source .sy-entity.sy-name.sy-class { color: var(--sy-ty); }
.sy-source .sy-variable { color: var(--sy-var); }
.sy-source .sy-entity.sy-name.sy-tag { color: var(--sy-kw); }
.sy-source .sy-entity.sy-other.sy-attribute-name { color: var(--sy-const); }
.sy-source .sy-markup.sy-heading { color: var(--sy-ty); font-weight: 600; }
.sy-source .sy-markup.sy-bold { font-weight: 600; }
.sy-source .sy-markup.sy-italic { font-style: italic; }
.sy-source .sy-markup.sy-raw { color: var(--sy-str); }
.sy-source .sy-markup.sy-underline.sy-link { color: var(--sy-fn); }

/* forms */
form.card { max-width: 460px; background: var(--panel); border: 1px solid var(--line); padding: 18px 20px; margin: 0 0 16px; }
form.card.wide { max-width: 720px; }
/* As wide as the panel above it (a new proposal's changes, #315). */
form.card.full { max-width: none; }
form .actions > .end, form.card .actions > button.end[type=submit] { margin-left: auto; }
/* Assistants that fill a form's fields, under the editor: secondary,
   not the form's submit (#315). */
form.card .assist-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
form.card .assist-row button.agent-btn { background: var(--panel); color: var(--ink); border: 1px solid var(--line); margin: 0; }
form.card .assist-row button.agent-btn:hover { border-color: var(--acc); }
form.card label, .field label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); margin: 10px 0 4px; }
form.card input[type=text], form.card input[type=password], form.card input[type=email], form.card input[type=search], form.card input[type=number], form.card input[type=url], form.card textarea, form.card select,
.field input, .field select, .field textarea { width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--ink); padding: 7px 10px; font: inherit; }
form.card input:focus, form.card textarea:focus, form.card select:focus { outline: 2px solid var(--band); outline-offset: 0; }
form.card button[type=submit], form.card .primary { background: var(--acc); color: var(--now-ink); border: 0; margin-top: 12px; }
form.card .row { display: flex; gap: 10px; align-items: end; }
form.card .row > * { flex: 1; }
form.card .choice { display: flex; gap: 12px; flex-wrap: wrap; margin: 6px 0; }
form.card .choice label { display: inline-flex; gap: 6px; align-items: center; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--ink); margin: 0; }
.note { color: var(--ok); }
.error { color: var(--bad); }
details.danger { border: 1px solid var(--bad); padding: 10px 14px; margin-top: 18px; }
.panel.danger-zone { border-color: var(--bad); }
.danger-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.danger-row:first-of-type { border-top: 0; }
.danger-row > div { flex: 1; min-width: 0; }
.danger-row p { margin: 2px 0 0; }
.danger-row details.danger-act { flex: 0 0 auto; max-width: 420px; }
.danger-row details.danger-act summary { list-style: none; display: inline-block; cursor: pointer; border: 1px solid var(--bad); color: var(--bad); padding: 6px 12px; font-weight: 600; }
.danger-row details.danger-act summary::-webkit-details-marker { display: none; }
.danger-row details.danger-act[open] { flex: 1; }
.danger-row details.danger-act form.card { margin-top: 8px; }
details.danger summary { color: var(--bad); cursor: pointer; font-weight: 600; }
.secret { font-family: ui-monospace, monospace; background: var(--bg); border: 1px solid var(--acc); padding: 8px 10px; word-break: break-all; }
.qr { background: #fff; display: inline-block; padding: 8px; }
ul.codes { columns: 2; font-family: ui-monospace, monospace; }
table.small td, table.small th { padding: 5px 8px; font-size: 13px; }
form.tiny { display: inline; margin: 0; }
form.tiny button { padding: 1px 6px; font-size: 10px; }
.flow-job > form.job-rerun { display: block; margin: 0 0 8px; }
/* The runners table's Serves cell (#309): the scope above its input, so the inputs line up whatever the scope's length. */
.runner-serves form.tiny { display: flex; gap: 4px; margin-top: 4px; white-space: nowrap; }

/* proposals */
.comment { background: var(--panel); border: 1px solid var(--line); padding: 10px 14px; margin: 0 0 10px; }
.comment .who { font-weight: 600; }
.comment .body { margin-top: 6px; }
.comment .body p:last-child { margin: 0; }
.comment.resolved { opacity: .6; }
.comment.review-approve { border-color: var(--ok); }
.comment.review-changes { border-color: var(--bad); }
td.thread { background: var(--soft); padding: 8px 12px; }
td.thread .comment { margin: 4px 0; font-family: "Barlow", sans-serif; font-size: 14px; }
details.linecomment { display: inline; float: right; }
details.linecomment summary { list-style: none; cursor: pointer; color: var(--mute); font-size: 12px; padding: 0 4px; }
details.linecomment summary:hover { color: var(--acc); }
details.linecomment form { font-family: "Barlow", sans-serif; background: var(--panel); border: 1px solid var(--acc); padding: 8px; margin: 4px 0; }
details.linecomment textarea { width: 100%; font: inherit; background: var(--bg); color: var(--ink); border: 1px solid var(--line); }

/* issues and notifications */
.label { display: inline-block; font-size: 11px; padding: 1px 7px; margin-right: 4px; border: 1px solid var(--c, var(--acc)); color: var(--c, var(--acc)); vertical-align: middle; }
/* An issue's events and its references by day: indented lines, without the
   proposal timeline's rule (.timeline::before drew one through the chips). */
.tl-event { margin: 0 0 8px 14px; }
.refs-day summary { cursor: pointer; }
.board-filter { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 10px; }
.board-filter input[type=search] { min-width: 0; flex: 1 1 14em; max-width: 24em; }
.col-hidden { margin: 0 0 6px; }
.col-archives { margin: 0 0 6px; }
.board-archived-link { margin-left: auto; }
.col-archive { margin-top: 8px; }
/* A board's iteration (#343): its name and days beside its burn-up. */
.iteration { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin: 0 0 10px; padding: 8px 10px; background: var(--panel); border: 1px solid var(--line); }
.iteration h2 { font-size: 14px; margin: 0 0 2px; }
.iteration p { margin: 0 0 4px; }
.iteration > div { min-width: 0; flex: 1 1 16em; }
.iteration .burnup { flex: 0 1 280px; width: 280px; max-width: 100%; height: 64px; }
.burnup line { stroke: var(--line); stroke-width: 1; }
.burnup polyline { fill: none; stroke: var(--acc); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.iteration-new form { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; max-width: 26em; }
.iteration-new .inline-fields { display: flex; flex-wrap: wrap; gap: 8px; }
.iteration-past ul { margin: 6px 0 0; padding-left: 18px; }
.col-archive .inline-fields { align-items: center; }
.col-archive input[type=number] { width: 6em; margin: 0; }
.refs-chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 0; max-width: 100%; }
.refs-chips .chip { overflow-wrap: anywhere; }
details.inline-edit { display: inline; margin-left: 8px; }
details.inline-edit summary { cursor: pointer; color: var(--acc); }
details.inline-edit input, details.inline-edit textarea { width: 100%; font: inherit; background: var(--bg); color: var(--ink); border: 1px solid var(--line); margin: 4px 0; }
.tiny-form input[type=text], .tiny-form select { background: var(--bg); border: 1px solid var(--line); color: var(--ink); padding: 3px 6px; font: inherit; font-size: 13px; }
header nav .bell { color: var(--ink); position: relative; font-size: 16px; padding: 0 6px; }
header nav .bell .count { position: absolute; top: -6px; right: -4px; background: var(--acc); color: var(--now-ink); font-size: 10px; font-weight: 600; padding: 0 5px; border-radius: 9px; }
ul.rows li.unread { border-color: var(--acc); }
mark { background: color-mix(in srgb, var(--acc) 30%, transparent); color: inherit; }

/* editor */
form.editor { max-width: none; }
form.editor textarea.code { width: 100%; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13px; background: var(--bg); color: var(--ink); border: 1px solid var(--line); padding: 8px; }
.cm-host { border: 1px solid var(--line); margin: 8px 0; min-height: 360px; max-height: 70vh; overflow: auto; font-size: 13px; }
.cm-host .cm-editor { min-height: 360px; }
button.danger-btn { color: var(--bad); border-color: var(--bad); }
button.primary-btn { background: var(--acc); color: var(--now-ink); }
button.primary-btn:hover { filter: brightness(1.1); }
button:disabled { opacity: .45; cursor: not-allowed; }

/* EasyMDE in the hub's colours */
.EasyMDEContainer .CodeMirror { background: var(--bg); color: var(--ink); border-color: var(--line); }
.EasyMDEContainer .CodeMirror-cursor { border-color: var(--acc); }
.editor-toolbar { border-color: var(--line); background: var(--soft); opacity: 1; }
.editor-toolbar button.mde-btn { color: var(--ink); border: 0; background: transparent; font-weight: 600; font-size: 12px; text-transform: none; letter-spacing: 0; padding: 2px 6px; width: auto; }
.editor-toolbar button.mde-btn:hover, .editor-toolbar button.active { background: var(--panel); color: var(--acc); }
.editor-preview, .editor-preview-side { background: var(--panel); color: var(--ink); }

/* code search */
.inline-find { flex: 0 1 220px; }
.hits .hit { margin: 0; padding: 4px 8px; border-bottom: 1px solid var(--line); background: var(--panel); font-size: 13px; overflow-x: auto; white-space: nowrap; }
.hits .hit code { background: none; }

.scopes label { display: block; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--ink); margin: 4px 0; }

/* avatars and owner pages */
img.avatar { display: inline-block; vertical-align: middle; border: 1px solid var(--line); object-fit: cover; }
img.avatar.xs { width: 18px; height: 18px; }
img.avatar.sm { width: 24px; height: 24px; }
img.avatar.xl { width: 100%; max-width: 240px; height: auto; aspect-ratio: 1; }
.profile .who-card h1.display { font-size: 24px; font-weight: 600; margin: 12px 0 0; }
.profile .who-card .handle { font-size: 18px; color: var(--mute); margin: 2px 0 10px; }
.profile .who-card .bio { margin: 0 0 10px; }
.profile .who-card .facts-list li { padding: 2px 0; }
.profile .who-card .facts-list li.social .icon { vertical-align: -2px; }
/* Profile actions (#328): one even group, Edit profile across, the pages below. */
.profile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 18px; }
.profile-actions a.go { display: block; text-align: center; padding: 6px 10px; }
.profile-actions a.go.wide { grid-column: 1 / -1; }
.profile h2 { font-size: 15px; margin: 0 0 8px; }
.profile h2 ~ h2 { margin-top: 18px; }
.profile .keys li { margin-bottom: 6px; }
.profile .side-layout, .side-layout.profile { grid-template-columns: 260px 1fr; }
@media (max-width: 760px) { .side-layout.profile { grid-template-columns: 1fr; } img.avatar.xl { max-width: 120px; } }

/* topics, stars, explore */
.topics { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 4px; }
.topic { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 10px; background: color-mix(in srgb, var(--acc) 14%, transparent); color: var(--acc); }
.topic:hover { text-decoration: none; background: color-mix(in srgb, var(--acc) 24%, transparent); }
.explore-bar input[type=search] { flex: 1 1 240px; }
.counts-line span { margin-right: 2px; }
.count-chip { display: inline-block; min-width: 1.6em; padding: 0 6px; margin-left: 4px; border-radius: 9px; background: var(--soft); color: var(--mute); font-size: 11px; text-align: center; }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin: 14px 0; }

/* repository page: the clone command sits at the right of the top bar, the README spans the column */
.top-clone { margin-left: auto; flex: 0 1 380px; min-width: 200px; }
.top-clone code { font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.latest-line { margin: -4px 0 8px; }
article.doc.readme { max-width: none; }

/* settings pages: section headings on the left, every section the same width on the right */
.sectioned { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 28px; align-items: start; }
.section-nav { position: sticky; top: 14px; display: flex; flex-direction: column; gap: 2px; }
.section-nav a { padding: 6px 12px; border-left: 2px solid var(--line); color: var(--mute); font-size: 14px; }
.section-nav a:hover, .section-nav a.on { border-left-color: var(--acc); color: var(--ink); text-decoration: none; }
.sections > form.card, .sections > form.card.wide, .sections > .panel, .sections > details { max-width: none; width: 100%; box-sizing: border-box; scroll-margin-top: 14px; }
.sections .panel form.card { max-width: 720px; }
.sections > details > form.card { max-width: none; }
/* A repository's settings (#278): grouped pages in a sidebar, one page beside it. */
/* The admin overview (oxygenhub#288): the site's numbers, then a card per
   group of pages. */
.admin-counts { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; }
.admin-counts strong { font-size: 18px; margin-right: 4px; }
.admin-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 16px; }
.settings-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: start; }
.settings-nav { position: sticky; top: 14px; display: flex; flex-direction: column; gap: 14px; }
.settings-group h2 { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); margin: 0 0 4px; padding: 0 12px; }
.settings-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.settings-group a { display: block; padding: 5px 12px; border-left: 2px solid var(--line); color: var(--mute); font-size: 14px; }
.settings-group a:hover { border-left-color: var(--dim); color: var(--ink); text-decoration: none; }
.settings-group a.on { border-left-color: var(--acc); color: var(--ink); background: var(--soft); }
@media (max-width: 720px) {
  .settings-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .settings-nav { position: static; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
  .settings-group { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: baseline; gap: 10px; }
  .settings-group h2 { padding: 0; margin: 0; }
  .settings-group ul { flex-direction: row; flex-wrap: wrap; gap: 4px; min-width: 0; }
  .settings-group a { border-left: 0; border: 1px solid var(--line); padding: 3px 8px; font-size: 13px; }
  .settings-group a.on { border-color: var(--acc); }
}
@media (max-width: 760px) {
  .sectioned { grid-template-columns: 1fr; gap: 12px; }
  .section-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .section-nav a { border-left: 0; border-bottom: 2px solid var(--line); }
}

/* File view: tree sidebar, line bar, blame age (hub spec §6.6). */
.file-layout { display: grid; grid-template-columns: minmax(180px, 240px) minmax(0, 1fr); gap: 16px; align-items: start; }
.file-side { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; font-size: 13px; background: var(--panel); border: 1px solid var(--line); padding: 8px 0; }
.file-side .side-root { display: block; padding: 2px 12px 6px; font-weight: 600; }
.file-side ul { list-style: none; margin: 0; padding: 0; }
.file-side li a { display: block; padding: 2px 12px 2px calc(12px + var(--d, 0) * 14px); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-side li a:hover { background: var(--soft); text-decoration: none; }
.file-side li.here a { background: color-mix(in srgb, var(--acc) 16%, transparent); font-weight: 600; box-shadow: inset 3px 0 0 var(--acc); }
.file-side .glyph { color: var(--mute); font-size: 10px; }
.file-main { min-width: 0; overflow-x: auto; }
.linebar { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--acc) 8%, var(--panel)); }
.linebar[hidden] { display: none; }
.linebar [data-linebar-label] { margin-right: auto; }
table.code td.blame { box-shadow: inset 3px 0 0 color-mix(in srgb, var(--acc) calc(var(--age, 0) * 10%), transparent); }
table.code td.blame.age-0 { --age: 1; } table.code td.blame.age-1 { --age: 2; } table.code td.blame.age-2 { --age: 3; }
table.code td.blame.age-3 { --age: 4; } table.code td.blame.age-4 { --age: 5; } table.code td.blame.age-5 { --age: 6; }
table.code td.blame.age-6 { --age: 7; } table.code td.blame.age-7 { --age: 8; } table.code td.blame.age-8 { --age: 9; }
table.code td.blame.age-9 { --age: 10; }
table.code td.blame .before { color: var(--mute); margin-left: 4px; }
table.code td.blame .before:hover { color: var(--acc); text-decoration: none; }
@media (max-width: 900px) {
  .file-layout { grid-template-columns: minmax(0, 1fr); }
  .file-side { display: none; }
}

/* OxygenFlow (hub spec §13.2): runs, the job graph and logs. Status is
   carried by a glyph as well as colour. */
.flow-glyph { display: inline-block; width: 1.2em; text-align: center; font-weight: 700; }
.flow-glyph.st-passed, .node.st-passed .g { color: var(--ok); fill: var(--ok); }
.flow-glyph.st-failed, .flow-glyph.st-error, .node.st-failed .g, .node.st-error .g { color: var(--bad); fill: var(--bad); }
.flow-glyph.st-running, .node.st-running .g { color: var(--acc); fill: var(--acc); }
.flow-glyph.st-queued, .flow-glyph.st-skipped, .flow-glyph.st-cancelled, .node.st-queued .g, .node.st-skipped .g, .node.st-cancelled .g { color: var(--mute); fill: var(--mute); }
.flow-glyph.st-running, .node.st-running .g { animation: flow-pulse 1.2s ease-in-out infinite; }
@keyframes flow-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .flow-glyph.st-running, .node.st-running .g { animation: none; } }
.flow-dots .flow-glyph { width: 1em; }
.flow-graph-box { overflow-x: auto; padding: 12px; }
.flow-graph { display: block; max-width: none; font-family: "Barlow", sans-serif; }
.flow-graph .edge { fill: none; stroke: var(--line); stroke-width: 2; }
.flow-graph .edge.st-passed { stroke: color-mix(in srgb, var(--ok) 60%, var(--line)); }
.flow-graph .edge.st-failed, .flow-graph .edge.st-error { stroke: color-mix(in srgb, var(--bad) 60%, var(--line)); stroke-dasharray: 4 4; }
.flow-graph .node rect { fill: var(--panel); stroke: var(--line); stroke-width: 1.5; }
.flow-graph .node:hover rect, .flow-graph .node:focus rect { stroke: var(--acc); }
.flow-graph .node.st-passed rect { stroke: var(--ok); }
.flow-graph .node.st-failed rect, .flow-graph .node.st-error rect { stroke: var(--bad); fill: color-mix(in srgb, var(--bad) 8%, var(--panel)); }
.flow-graph .node.st-running rect { stroke: var(--acc); fill: color-mix(in srgb, var(--acc) 8%, var(--panel)); }
.flow-graph .node.st-skipped rect, .flow-graph .node.st-cancelled rect { stroke-dasharray: 4 3; }
.flow-graph .node .g { font-size: 18px; }
.flow-graph text { font-family: "Barlow", sans-serif; stroke: none; }
.flow-graph .node .name { fill: var(--ink); font-size: 14px; font-weight: 600; }
.flow-graph .node .meta { fill: var(--mute); font-size: 11.5px; font-weight: 400; }
details.flow-job { padding: 0; margin-top: 10px; }
details.flow-job > summary { padding: 10px 12px; cursor: pointer; list-style-position: inside; }
details.flow-job .pad { padding: 0 12px 10px; margin: 0; }
pre.flow-log { margin: 0; padding: 8px 0; max-height: 70vh; overflow: auto; border-top: 1px solid var(--line); background: var(--soft); font-size: 12.5px; line-height: 1.5; }
pre.flow-log:empty { display: none; }
ul.flow-artifacts { list-style: none; margin: 0; padding: 6px 12px; border-top: 1px solid var(--line); }
ul.flow-artifacts li { padding: 2px 0; overflow-wrap: anywhere; }
ul.flow-artifacts select { font-size: 11px; }
.flow-tests { padding: 6px 12px; border-top: 1px solid var(--line); }
.flow-tests > p { margin: 0 0 4px; }
.flow-tests .tests-count.ok { color: var(--ok); }
.flow-tests .tests-count.bad, .flow-tests .bad { color: var(--bad); font-weight: 600; }
.tests-failure { border-left: 3px solid var(--bad); margin: 4px 0; padding: 2px 8px; }
.tests-failure summary { cursor: pointer; overflow-wrap: anywhere; }
.tests-failure pre.flow-log { padding: 6px 8px; margin: 4px 0; white-space: pre-wrap; word-break: break-word; max-height: 24em; overflow: auto; }
pre.flow-log .ln { display: block; padding: 0 12px; white-space: pre-wrap; word-break: break-word; }
pre.flow-log .t { display: inline-block; min-width: 5.5em; color: var(--mute); user-select: none; }
pre.flow-log details.log-group > summary { cursor: pointer; font-weight: 600; list-style: none; }
pre.flow-log details.log-group > summary::before { content: "▸ "; color: var(--mute); }
pre.flow-log details.log-group[open] > summary::before { content: "▾ "; }
pre.flow-log details.log-group > summary .took { font-weight: 400; color: var(--mute); margin-left: 6px; }
pre.flow-log .s-err { color: color-mix(in srgb, var(--bad) 75%, var(--ink)); }
pre.flow-log .s-flow, pre.flow-log .s-console { color: var(--mute); font-style: italic; }
table.flow-runs td.st { width: 1.5em; }

/* Compare pickers (hub spec §6.3). */
.compare-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 14px; }
.compare-bar label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--mute); margin: 0; }
.compare-bar input { width: 16em; margin: 0; }
.compare-bar .swap { font-size: 18px; padding: 0 4px; }
.compare-bar .swap:hover { text-decoration: none; color: var(--ink); }
.compare-bar button { margin: 0; }

/* Help (hub spec §6.3). */
.help section.panel { padding: 16px 20px; scroll-margin-top: 14px; }
.help section.panel h2 { margin-top: 0; }
.help ol, .help ul { padding-left: 1.3em; }
.help li { margin: 4px 0; }
table.glossary td:first-child { white-space: nowrap; color: var(--mute); }
table.glossary td:nth-child(2) { white-space: nowrap; }

button.linkish { background: none; border: 0; padding: 0; margin: 0; color: var(--acc); font: inherit; cursor: pointer; text-transform: none; letter-spacing: normal; }
button.linkish:hover { text-decoration: underline; }

/* Inbox filters (hub spec §10). */
.inbox-nav h3 { margin: 14px 0 4px 12px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); }
.inbox .rows.threads .tag.dim { opacity: .7; }

/* Picture upload (hub spec §6.3). */
.picture-row { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.picture-row img.avatar.xl { width: 96px; height: 96px; }
.picture-row > div { flex: 1; min-width: 220px; }

/* Accessibility and narrow screens (hub spec §6.13). */
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.band a:focus-visible, .tabs a:focus-visible { outline-offset: -2px; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 8px 14px; background: var(--acc); color: var(--bg); font-weight: 600; }
.skip:focus { top: 8px; }
main:focus { outline: none; }
@media (max-width: 760px) {
  .tabs-in { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
  .side-layout > * { min-width: 0; }
  /* No room for the last change: its column closes to nothing (the cells
     stay, so the age keeps its own column). */
  table.tree col.c-name { width: auto; }
  table.tree col.c-last { width: 0; }
  table.tree col.c-age { width: 7.5em; }
  table.tree td.last { padding: 0; font-size: 0; }
  article.doc, .panel { overflow-x: auto; }
  article.doc pre, article.doc table { max-width: 100%; overflow-x: auto; }
  .tabs-in > * { flex-shrink: 0; }
  .tab-menu { position: static; }
  .tab-menu > summary { display: inline-block; }
  .tab-menu-list { position: static; display: inline-flex; flex-direction: row; min-width: 0; padding: 0; border: 0; box-shadow: none; background: var(--soft); }
  .band { overflow-x: auto; white-space: nowrap; }
  main table.list, main table.flow-runs { display: block; overflow-x: auto; }
  .sectioned { grid-template-columns: 1fr; }
  .section-nav { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  header .find { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* Projects (hub spec §8.2). */
.board { display: flex; gap: 12px; align-items: flex-start; overflow-x: auto; padding-bottom: 8px; }
.board-col { flex: 0 0 290px; background: var(--soft); border: 1px solid var(--line); padding: 8px; }
.board-col > header { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.board-col h2 { font-size: 14px; margin: 2px 0 8px; }
.board-col ul.cards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-height: 12px; }
.card-item { background: var(--panel); border: 1px solid var(--line); padding: 8px 10px; }
.card-item.note { border-left: 3px solid var(--warn); }
.card-item p { margin: 4px 0 0; }
/* Board views (#361): tabs, WIP limits, lanes, compact cards, the table. */
.board-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 10px; border-bottom: 1px solid var(--line); }
.board-tab { padding: 4px 10px; border: 1px solid transparent; border-bottom: none; color: var(--mute); text-decoration: none; }
.board-tab.on { border-color: var(--line); background: var(--panel); color: var(--ink); margin-bottom: -1px; }
.board-col > header.over-wip h2, .board-col > header.over-wip .count-chip { color: var(--warn); }
.board-col > header.over-wip { border-bottom: 2px solid var(--warn); }
.lane { margin: 0 0 14px; }
.lane-head { font-size: 14px; margin: 0 0 6px; }
.lane .board-col h3 { font-size: 13px; margin: 2px 0 6px; }
.board.compact .card-item { padding: 5px 8px; }
.board.compact .card-item > p.small, .board.compact .card-actions { display: none; }
.board.compact .card-item:focus-within .card-actions { display: flex; }
.card-dots { display: flex; gap: 3px; }
.card-dots .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.card-item:focus { outline: 2px solid var(--acc); outline-offset: 1px; }
.table-wrap { overflow-x: auto; }
.board-table { border-collapse: collapse; width: 100%; font-size: 13px; }
.board-table th, .board-table td { text-align: left; padding: 5px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.board-table thead th { color: var(--mute); font-weight: 600; }
.board-table tr.group-row th { background: var(--soft); padding-top: 8px; }
.board-table tr.card-item { background: none; border: none; }
.board-save-view { margin: 0 0 10px; }
.board-keys { margin-top: 8px; }
/* Cumulative flow bands (#357): the mark's colours, Done in the success colour. */
svg.chart .band { stroke: var(--panel); stroke-width: .5; }
.cf-0 { fill: var(--m3); color: var(--m3); } .cf-1 { fill: var(--m1); color: var(--m1); } .cf-2 { fill: var(--warn); color: var(--warn); }
.cf-3 { fill: var(--m4); color: var(--m4); } .cf-4 { fill: var(--m5); color: var(--m5); } .cf-5 { fill: var(--ok); color: var(--ok); }
.legend .key.cf-key { color: var(--ink); fill: none; }
.legend .key.cf-0::before { background: var(--m3); } .legend .key.cf-1::before { background: var(--m1); } .legend .key.cf-2::before { background: var(--warn); }
.legend .key.cf-3::before { background: var(--m4); } .legend .key.cf-4::before { background: var(--m5); } .legend .key.cf-5::before { background: var(--ok); }
.chart-card.wide-card { grid-column: 1 / -1; }
.kpi { margin: 6px 0; }
svg.timeline .forecast { opacity: .55; }
svg.timeline .today { stroke: var(--acc); stroke-dasharray: 3 3; }
svg.timeline path.line { fill: currentColor; }
.card-item .card-labels { display: flex; flex-wrap: wrap; gap: 4px; }
.card-item .card-labels .label { margin-right: 0; text-decoration: none; }
.card-item .card-labels .label:hover, .card-item .card-labels .label:focus-visible { background: color-mix(in srgb, var(--c, var(--acc)) 14%, transparent); }
.card-item .card-who { color: inherit; }
.card-item .card-actions { margin-top: 6px; display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.card-item .card-actions select { width: auto; margin: 0; padding: 1px 4px; font-size: 12px; }
.board .add-card { margin-top: 8px; }
.board .add-card form { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.board .inline-fields { display: flex; gap: 4px; }
.board .inline-fields select { width: 40%; }
.board .add-col form { display: flex; flex-direction: column; gap: 6px; }
.state-open { color: var(--ok); } .state-closed, .state-landed { color: var(--acc); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.card-item.note > p { color: var(--ink); }

/* Webhooks (hub spec §12.2): long URLs wrap inside the panel. */
ul.hooks { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
li.hook { border: 1px solid var(--line); background: var(--soft); padding: 8px 12px; min-width: 0; }
.hook-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
code.hook-url { overflow-wrap: anywhere; word-break: break-all; }
li.hook p { margin: 4px 0; }
li.hook .hook-edit { margin-top: 4px; }

/* Repository overview: clone popover, contributors, languages, visibility. */
.clone-pop { position: relative; }
.clone-pop > summary { list-style: none; cursor: pointer; }
.clone-pop > summary::-webkit-details-marker { display: none; }
.clone-pop[open] > summary { background: var(--soft); }
.clone-panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: min(440px, 88vw); background: var(--panel); border: 1px solid var(--line); box-shadow: 0 6px 24px rgba(0,0,0,.25); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.clone-panel .clone input { flex: 1; min-width: 0; margin: 0; font-family: var(--mono, monospace); font-size: 12px; }
.clone-panel p { margin: 0; overflow-wrap: anywhere; }
.clone-panel .download { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 2px; font-weight: 600; text-decoration: none; }
.clone-panel .download:hover { text-decoration: underline; }
.bar .inline-find { flex: 1 1 200px; }
ul.contributors li { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 4px 0; }
ul.contributors img.avatar.sm { width: 20px; height: 20px; vertical-align: middle; }
ul.contributors ul.via-list { flex-basis: 100%; margin: 0 0 0 26px; padding: 0; }
ul.contributors ul.via-list li { margin: 2px 0; }
ul.contributors ul.via-list img.avatar.sm { width: 16px; height: 16px; }
.avatar-none { display: inline-block; width: 20px; text-align: center; color: var(--mute); }
.lang-bar { display: flex; height: 8px; overflow: hidden; background: var(--soft); margin: 6px 0 8px; }
.lang-bar > span { display: block; height: 100%; }
.lang-bar > span + span { margin-left: 1px; }
ul.langs { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; }
ul.langs li { margin: 0; }
.lang-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; vertical-align: middle; }
.vis { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: 1px 8px; border: 1px solid var(--line); border-radius: 10px; margin-left: 8px; vertical-align: middle; }
.vis-public { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.vis-internal { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.vis-private { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
summary.go { display: inline-block; user-select: none; }
.clone-pop > summary.go:hover { background: var(--soft); }

/* Release trust (hub spec §9.1) */
.audit ul.checks li { padding: 3px 0; }
.audit ul.checks li .glyph { display: inline-block; width: 1.2em; text-align: center; font-weight: 700; }
.audit ul.checks li.pass .glyph { color: var(--ok); }
.audit ul.checks li.warn .glyph { color: var(--warn); }
.audit ul.checks li.fail .glyph { color: var(--bad); }
.audit-fail { border-left: 3px solid var(--bad); }
.audit-warn { border-left: 3px solid var(--warn); }
.audit-pass { border-left: 3px solid var(--ok); }
.trust-graph-wrap { overflow-x: auto; }
svg.trust-graph { max-width: 100%; height: auto; display: block; }
svg.trust-graph .node .badge { fill: var(--bg); stroke: none; }
svg.trust-graph .node.pass .badge { fill: color-mix(in srgb, var(--ok) 15%, var(--panel)); }
svg.trust-graph .node.warn .badge { fill: color-mix(in srgb, var(--warn) 18%, var(--panel)); }
svg.trust-graph .node.fail .badge { fill: color-mix(in srgb, var(--bad) 15%, var(--panel)); }
svg.trust-graph .node .lock { fill: var(--ok); stroke: none; }
svg.trust-graph .node .shackle { fill: none; stroke: var(--ok); stroke-width: 1.6; }
svg.trust-graph .node.warn .mark { fill: var(--warn); font-weight: 700; font-size: 13px; }
svg.trust-graph .node.fail .mark { fill: var(--bad); font-weight: 700; font-size: 12px; }
svg.trust-graph text.t { font-weight: 600; }
/* Trust badges: the page's summary, and the assets' headings. */
ul.plain.trust-summary { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
/* ul.plain li's padding would otherwise win and the text would touch the border. */
ul.plain.trust-summary li.tb { padding: 5px 14px 5px 12px; gap: 8px; }
.tb { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; font-weight: 500; }
.tb-sm { padding: 2px 10px; font-size: 12px; vertical-align: middle; }
.tb-mark { display: inline-flex; font-weight: 700; }
.tb-pass { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); background: color-mix(in srgb, var(--ok) 8%, transparent); }
.tb-warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); background: color-mix(in srgb, var(--warn) 8%, transparent); }
.tb-fail { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); background: color-mix(in srgb, var(--bad) 8%, transparent); }
svg.trust-graph .edge { fill: none; stroke: var(--line); stroke-width: 1.5; }
svg.trust-graph .edge.dashed { stroke-dasharray: 5 4; stroke: var(--warn); }
/* The history graph's .node (a dot) must not reach these groups' text. */
svg.trust-graph .node { fill: none; stroke: none; stroke-width: 1; }
svg.trust-graph text { stroke: none; }
svg.trust-graph .node rect { fill: var(--panel); stroke: var(--line); stroke-width: 1.5; }
svg.trust-graph .node.pass rect { stroke: var(--ok); }
svg.trust-graph .node.warn rect { stroke: var(--warn); }
svg.trust-graph .node.fail rect { stroke: var(--bad); }
svg.trust-graph text { font-size: 11px; fill: var(--ink); }
svg.trust-graph text.s { font-size: 10px; fill: var(--mute); }
/* Runners (hub spec §13.2) */
.runner-status { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: 1px 6px; border: 1px solid var(--line); }
.runner-status.st-online { color: var(--ok); border-color: var(--ok); }
.runner-status.st-offline { color: var(--mute); }
.runner-status.st-draining { color: var(--warn); border-color: var(--warn); }
.runner-status.st-disabled { color: var(--bad); border-color: var(--bad); }

/* The chain of work: issue → proposal → bookmark (hub spec §8). Issues and
   proposals share one number space, so every number says which it is. */
.kind-issue::before { content: "◇ "; color: var(--warn); }
.kind-proposal::before { content: "⇄ "; color: var(--acc); }
p.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 10px 0 14px; padding: 8px 12px; border: 1px solid var(--line); border-left: 3px solid var(--acc); background: var(--panel); font-size: 13px; }
.chain-link { display: inline-flex; align-items: baseline; gap: 6px; padding: 2px 8px; border: 1px solid var(--line); background: var(--soft); color: var(--ink); text-decoration: none; }
a.chain-link:hover { border-color: var(--acc); text-decoration: none; }
.chain-kind { font-weight: 600; }
.chain-state { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); }
.st-open .chain-state, .chain-state.st-open { color: var(--ok); }
.st-landed .chain-state, .chain-state.st-landed { color: var(--acc); }
.st-closed .chain-state { color: var(--mute); }
.chain-arrow { color: var(--acc); font-weight: 700; }
.chain-and { color: var(--mute); }

/* A proposal's conversation as a timeline (hub spec §7): avatars on a rail,
   each entry a card with its author and time, events as quiet lines. */
.timeline { position: relative; min-width: 0; }
.timeline::before { content: ""; position: absolute; left: 17px; top: 12px; bottom: 12px; border-left: 2px solid var(--line); z-index: 0; }
.tl-item { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; margin: 0 0 18px; z-index: 1; }
.tl-avatar { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--bg); background: var(--panel); }
.tl-card { min-width: 0; background: var(--panel); border: 1px solid var(--line); }
.tl-head { padding: 8px 14px; border-bottom: 1px solid var(--line); background: var(--soft); font-size: 13px; color: var(--mute); }
.tl-head strong { color: var(--ink); }
.tl-head .tl-edit { float: right; }
.tl-card article.doc.tl-doc { max-width: none; margin: 0; border: 0; }
.tl-text { padding: 10px 14px; overflow-wrap: anywhere; }
.tl-empty { padding: 10px 14px; margin: 0; }
.tl-card form { padding: 10px 14px; margin: 0; }
.tl-card textarea { width: 100%; box-sizing: border-box; }
.tl-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; padding-top: 0; }
form.tl-actions { padding: 0 14px 12px; }
.tl-item.review-approve .tl-card { border-color: var(--ok); }
.tl-item.review-changes .tl-card { border-color: var(--bad); }
.tl-event { position: relative; z-index: 1; display: flex; align-items: center; gap: 6px; margin: -6px 0 16px 10px; font-size: 13px; color: var(--mute); }
.tl-event strong { color: var(--ink); font-weight: 600; }
.tl-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--soft); border: 2px solid var(--line); flex: none; }
.tl-mini { width: 18px; height: 18px; border-radius: 50%; }
.timeline form.card.tl-review { max-width: none; margin-left: 50px; }
.tl-editbox { margin-left: 50px; }
.tl-editbox summary { cursor: pointer; font-weight: 600; }
.tl-editbox input[type=text], .tl-editbox textarea { width: 100%; box-sizing: border-box; }
.head-edit { margin-left: 8px; vertical-align: middle; }
aside.side h3 .side-edit { float: right; font-size: 11px; font-weight: 400; text-transform: none; letter-spacing: 0; }
.side-picker summary { cursor: pointer; font-size: 12px; color: var(--acc); }
.side-picker form { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.side-check { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.side-picker-inline { display: flex; gap: 6px; align-items: center; margin-top: 4px; }
.side-picker-inline select { flex: 1; min-width: 0; }
@media (max-width: 760px) { .timeline::before { display: none; } .tl-item { grid-template-columns: 1fr; } .tl-avatar { display: none; } .timeline form.card.tl-review, .tl-editbox { margin-left: 0; } }

/* The issue page's sidebar, as GitHub lays it out (oxygenhub#82): sections
   with a heading and a gear opening a filterable menu that applies in one
   go; what is set is shown under the heading; moderation as quiet actions. */
form.card.comment-form { max-width: none; }
/* Proposal and issue sidebars (#162, #163): each section a card, its
   heading a shaded bar across the top, as the repository page's cards.
   Overflow stays visible so the pickers' menus can open past the card. */
.side-sections { display: flex; flex-direction: column; gap: 14px; }
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
/* Each card a two-column grid: the heading's bar across the top, the
   body in the first column, and the heading's cog in the second beside
   the body's first row (Andy, 2026-10-13: the cogs go in the body). The
   heading's box gives way (display: contents) so its heading and cog are
   placed in the card's grid. */
.side-sections .side-sec { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); padding: 0 12px 10px; }
.side-sections .side-sec > * { grid-column: 1; }
/* A long hash or path in a side panel (a check's summary) wraps rather
   than pushing the panel wider. */
.side-sections .side-sec { min-width: 0; overflow-wrap: anywhere; }
.side-sections .side-sec > .side-head { display: contents; }
.side-sections .side-sec > .side-head > h3 { grid-column: 1 / -1; grid-row: 1; margin: 0 -12px 10px; padding: 8px 12px; background: var(--soft); border-bottom: 1px solid var(--line); border-radius: 6px 6px 0 0; }
.side-sections .side-sec > .side-head > details.menu { grid-column: 2; grid-row: 2; margin-left: 8px; }
.side-sections .side-sec.side-actions { padding-top: 6px; }
.side-empty, .side-note { margin: 0; font-size: 12px; color: var(--mute); }
.side-empty button.linkish { font-size: inherit; }
.side-note { margin-top: 6px; }
.side-value { margin: 0; font-size: 14px; }
.side-labels { margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.side-labels .label { margin: 0; }
.side-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.side-people a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: 13px; }
.side-people img.avatar, .menu-item img.avatar { border-radius: 50%; }
.side-wide { width: 100%; }
form.inline { display: inline; margin: 0; }
details.menu { position: relative; }
details.menu > summary { list-style: none; cursor: pointer; color: var(--mute); display: inline-flex; padding: 3px; border-radius: 6px; }
details.menu > summary::-webkit-details-marker { display: none; }
details.menu > summary:hover, details.menu[open] > summary { color: var(--acc); background: var(--soft); }
.menu-pop { position: absolute; right: 0; top: 28px; z-index: 30; width: 290px; margin: 0; padding: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.menu-title { margin: 0; padding: 9px 12px; font-size: 12px; font-weight: 600; color: var(--ink); }
.menu-filter { display: block; width: calc(100% - 20px); margin: 0 10px 10px; box-sizing: border-box; }
.menu-list { max-height: 300px; overflow-y: auto; border-top: 1px solid var(--line); }
aside.side .menu-item { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 8px 12px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 13px; font-weight: 400; color: var(--ink); text-transform: none; letter-spacing: 0; }
aside.side .menu-item:hover { background: var(--soft); }
.menu-item input { margin: 2px 0 0; flex: none; }
.menu-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.menu-name small { color: var(--mute); font-size: 12px; }
.menu-empty { margin: 0; padding: 10px 12px; font-size: 12px; color: var(--mute); }
.menu-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 8px 12px; }
.menu-foot a { margin-right: auto; }
.swatch { flex: none; width: 12px; height: 12px; margin-top: 3px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.side-actions form { display: grid; gap: 2px; }
button.side-action { all: unset; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 13px; font-weight: 600; color: var(--ink); }
button.side-action span { width: 16px; text-align: center; color: var(--mute); }
button.side-action:hover { color: var(--acc); }
button.side-action:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

/* Device sign-in's answer (oxygenhub#83). */
.device-done h2 { display: flex; align-items: center; gap: 10px; margin-top: 0; }
.device-mark { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; font-size: 16px; color: #fff; }
.device-done.ok .device-mark { background: var(--ok); }
.device-done.no .device-mark { background: var(--bad); }
.side-note-inline { font-size: 12px; color: var(--mute); font-weight: 400; }
.side-list li { margin: 0 0 4px; }
.side-list form.inline { margin-left: 6px; }
.side-assist { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 8px; }
.side-assist form.inline { display: block; margin: 0; }
.model-row { display: flex; gap: 6px; align-items: center; }
.model-row input { flex: 1; }
/* A button that asks an AI agent: its mark, then the verb and its name. */
button.agent-btn { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 4px 6px; font-size: 11px; line-height: 16px; }
button.agent-btn img { width: 16px; height: 16px; border-radius: 50%; flex: 0 0 16px; }
button.agent-btn:hover img { filter: brightness(1.1); }
/* Forms inside a settings panel fill it, and a form that follows a table
   (Add a runner) stands off it (oxygenhub#99). */
.panel form.card { max-width: none; }
.panel .table + form { margin-top: 12px; }

/* The proposal conversation (oxygenhub#86): a pencil by the title, a ···
   menu on the description that edits it in place, one action row under
   the comment box, a compact review, and a card when it landed. */
.head-pencil { color: var(--mute); display: inline-flex; vertical-align: middle; padding: 4px; margin-left: 6px; border-radius: 6px; }
.head-pencil:hover { color: var(--acc); background: var(--soft); }
.tl-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tl-head .tl-when { color: inherit; }
.tl-menu > summary.dots { font-weight: 700; letter-spacing: 1px; padding: 0 6px; line-height: 20px; }
.menu-pop.menu-actions { width: 180px; padding: 6px 0; top: 26px; }
.menu-actions hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.menu-action { all: unset; display: block; box-sizing: border-box; width: 100%; padding: 6px 14px; font-size: 13px; color: var(--ink); cursor: pointer; }
.menu-action:hover { background: var(--soft); color: var(--ink); }
.tl-editform { display: none; padding: 12px 14px; }
.tl-editform:target, .tl-editform.open { display: block; }
.tl-card:has(.tl-editform:target) .tl-view, .tl-card:has(.tl-editform.open) .tl-view { display: none; }
.edit-row { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 10px; margin-bottom: 8px; }
.edit-row label { margin: 0; font-size: 13px; font-weight: 600; color: var(--ink); text-transform: none; letter-spacing: 0; }
.tl-editform .tl-actions { margin-top: 10px; align-items: center; }
.tl-compose { padding: 12px 14px; }
.tl-card.tl-compose form { padding: 0; }
form.tl-card.tl-compose { padding: 12px 14px; margin: 0; }
.tl-compose textarea:not(.md) { font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--ink); resize: vertical; }
.compose-title { margin: 0 0 8px; font-weight: 600; font-size: 14px; color: var(--ink); }
.compose-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.compose-actions .segmented { margin-right: auto; }
.compose-note { margin: 10px 0 0; font-size: 12px; color: var(--mute); }
.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.segmented label { margin: 0; text-transform: none; letter-spacing: 0; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: block; padding: 5px 12px; font-size: 13px; font-weight: 500; color: var(--ink); border-right: 1px solid var(--line); }
.segmented label:last-child span { border-right: 0; }
.segmented input:checked + span { background: var(--acc); color: #fff; }
.segmented input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: -2px; }
.tl-badge { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--mute); font-size: 15px; }
.tl-badge.review { background: var(--soft); color: var(--mute); border: 1px solid var(--line); }
.tl-outcome.landed .tl-badge { background: #8250df; }
.tl-outcome.closed .tl-badge { background: var(--bad); }
.outcome-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.tl-outcome.landed .outcome-card { border-color: #8250df; }
.outcome-card p { margin: 4px 0 0; color: var(--mute); }
.outcome-card form { margin: 0; padding: 0; }
.outcome-card form button { white-space: nowrap; }

/* Form controls, site-wide (oxygenhub#87): every text field, textarea and
   select is rounded, padded and rings on focus; a select draws its own
   chevron. Zero specificity, so a place that sizes its controls still
   does. */
:where(input[type=text], input[type=search], input[type=email], input[type=password], input[type=number], input[type=url], input[type=date], input:not([type]), textarea, select) {
  box-sizing: border-box; font: inherit; font-size: 14px; line-height: 20px; color: var(--ink);
  background-color: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 5px 10px;
}
:where(input[type=text], input[type=search], input[type=email], input[type=password], input[type=number], input[type=url], input[type=date], input:not([type]), textarea, select):focus {
  outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 22%, transparent);
}
:where(input, textarea)::placeholder { color: var(--mute); opacity: 1; }
select:not([multiple]) {
  appearance: none; -webkit-appearance: none; padding-right: 30px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%238592ad' d='M4.4 6.2a.75.75 0 0 1 1.06 0L8 8.74l2.54-2.54a.75.75 0 1 1 1.06 1.06l-3.07 3.07a.75.75 0 0 1-1.06 0L4.4 7.26a.75.75 0 0 1 0-1.06Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center; background-size: 16px 16px;
}
input[type=checkbox], input[type=radio] { accent-color: var(--acc); }
/* A row of filters: spaced, aligned to one height, wrapping when narrow;
   an .end item (a Charts link) sits at the far end. */
form.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 12px; }
form.filters > select, form.filters > input { width: auto; max-width: 100%; min-width: 0; margin: 0; }
form.filters > button { margin: 0; align-self: stretch; }
form.filters > .end { margin-left: auto; }
/* Insights (oxygenhub#257): headline numbers, then charts drawn by the hub
   as inline SVG, coloured through currentColor from these classes. */
.insights-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.insights-bar form.filters { margin: 0; }
.insights-links { margin-left: auto; display: flex; flex-wrap: wrap; gap: 14px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 14px 0; }
.kpi { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; min-width: 0; }
.kpi-v { font-size: 28px; font-weight: 600; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kpi-l { font-size: 13px; }
.kpi-s { font-size: 12px; color: var(--mute); }
.kpi-warn { border-color: var(--warn); }
.kpi-bad { border-color: var(--bad); }
.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 12px; margin-bottom: 14px; }
.chart-card { margin: 0; padding: 10px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; min-width: 0; }
.chart-card figcaption { font-weight: 600; margin-bottom: 4px; }
svg.chart { display: block; width: 100%; height: auto; }
svg.chart .grid { stroke: var(--line); stroke-width: 1; }
svg.chart .axis { fill: var(--mute); font-size: 11px; }
svg.chart .line { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
svg.chart .dot, svg.chart .bar { fill: currentColor; }
.s-main { color: var(--acc); }
.s-warn { color: var(--warn); }
.s-ok { color: var(--ok); }
.s-bad { color: var(--bad); }
.s-mute { color: var(--mute); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; margin-top: 4px; }
.legend .key { color: var(--ink); }
.legend .key::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 2px; background: var(--acc); vertical-align: -1px; }
.legend .key.s-warn::before { background: var(--warn); }
.legend .key.s-ok::before { background: var(--ok); }
.legend .key.s-bad::before { background: var(--bad); }
.legend .key.s-mute::before { background: var(--mute); }
/* The wall view (?wall=1): for a second monitor, no menus, larger. */
body.wall > header, body.wall > .band, body.wall > footer, body.wall > .skip { display: none; }
body.wall main { max-width: none; padding: 18px 28px; }
body.wall .kpi-v { font-size: 40px; }
body.wall .kpi-l { font-size: 15px; }
body.wall .chart-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 560px), 1fr)); }
/* Landing over required checks (#261): behind a toggle, with its reason. */
details.land-over { margin-top: 10px; }
details.land-over > summary { cursor: pointer; color: var(--mute); }
details.land-over form { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
/* A Terraform state's kept versions (#255). */
details.tf-versions { margin-top: 14px; }
details.tf-versions > summary { cursor: pointer; }
.edit-row input { width: 100%; }
button.menu-item.menu-pick { all: unset; box-sizing: border-box; width: 100%; display: flex; padding: 8px 12px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 13px; color: var(--ink); }
button.menu-item.menu-pick:hover, button.menu-item.menu-pick:focus-visible { background: var(--soft); }

/* Mermaid diagrams drawn from ```mermaid blocks (assets/hub.js). */
figure.mermaid-diagram { margin: 1em 0; overflow-x: auto; text-align: center; }
figure.mermaid-diagram svg { max-width: 100%; height: auto; }

/* Coverage (#113): the theme's own colours, so it fits every look, light or dark. */
.cov-good { color: var(--ok); } .cov-fair { color: color-mix(in srgb, var(--ok) 60%, var(--warn)); } .cov-low { color: var(--warn); } .cov-poor { color: var(--bad); } .cov-none { color: var(--mute); }
.cov-hero { border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(180deg, var(--soft), var(--panel)); padding: 1.1em 1.3em .4em; margin: 1em 0; overflow: hidden; }
.cov-hero-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1em; flex-wrap: wrap; }
.cov-hero h1 { margin: 0; font-size: 1.6em; letter-spacing: .01em; }
.cov-sub { margin-top: .3em; font-size: .95em; }
.cov-score { text-align: right; }
.cov-big { font-size: 3.4em; font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.cov-change { font-size: .9em; font-weight: 600; }
.cov-change.up { color: var(--ok); } .cov-change.down { color: var(--bad); } .cov-change.same { color: var(--mute); font-weight: 400; }
.cov-hero-chart { margin: .4em -.6em 0; }
.cov-chart { width: 100%; height: auto; display: block; }
.cov-chart .grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 4; }
.cov-chart .axis { font-size: 11px; fill: var(--mute); }
.cov-chart .area { stroke: none; }
.cov-chart .line { fill: none; stroke-width: 2.2; stroke-linejoin: round; }
.cov-chart .area.cov { fill: color-mix(in srgb, var(--ok) 18%, transparent); } .cov-chart .line.cov, .cov-chart .dot.cov { stroke: var(--ok); fill: var(--ok); }
.cov-chart .line.cov { fill: none; }
.cov-chart .area.relevant { fill: color-mix(in srgb, var(--bad) 14%, transparent); } .cov-chart .line.relevant { stroke: var(--bad); } .cov-chart .dot.relevant { fill: var(--bad); }
.cov-chart .area.covered { fill: color-mix(in srgb, var(--ok) 30%, transparent); } .cov-chart .line.covered { stroke: var(--ok); } .cov-chart .dot.covered { fill: var(--ok); }
.cov-chart .hit { fill: transparent; } .cov-chart .hit:hover { fill: color-mix(in srgb, var(--acc) 10%, transparent); }
.cov-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5em, 1fr)); gap: .6em; margin: 0 0 1em; }
.cov-facts > div { border: 1px solid var(--line); border-radius: 8px; padding: .55em .8em; background: var(--panel); }
.cov-facts .k { display: block; font-size: .72em; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); }
.cov-facts .v { display: block; font-size: 1.25em; font-weight: 600; margin-top: .15em; }
.cov-facts .v small { font-size: .7em; font-weight: 400; color: var(--mute); }
.cov-badge { vertical-align: middle; }
.cov-copy { font-size: .65em; margin-left: .4em; vertical-align: middle; }
.cov-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(20em, 1fr)); gap: 1em; align-items: start; }
.cov-card h3 { font-size: .95em; margin: 1em 0 .4em; }
.cov-stats { list-style: none; padding: 0; margin: 0; line-height: 1.8; }
.cov-moved, .cov-runs { width: 100%; }
.cov-moved td { padding: .15em .3em; } .cov-moved td.num, .cov-files td.num, .cov-files th.num, .cov-runs .num { text-align: right; white-space: nowrap; }
.cov-runs tr.on td { background: var(--soft); }
.cov-bands { display: grid; gap: .55em; margin-top: .4em; }
.cov-band { display: grid; grid-template-columns: 6.5em 1fr 2.5em; align-items: center; gap: .6em; }
.cov-band-lbl { font-size: .9em; color: var(--mute); white-space: nowrap; }
.cov-band .bar { height: .9em; background: var(--soft); border-radius: 4px; overflow: hidden; }
.cov-band .bar > span { display: block; height: 100%; background: currentColor; border-radius: 4px; min-width: 2px; }
.cov-band .n { text-align: right; font-weight: 600; }
.cov-bar { display: inline-block; width: 8em; height: .7em; background: var(--soft); border-radius: 3px; vertical-align: middle; overflow: hidden; }
.cov-bar > span { display: block; height: 100%; background: currentColor; }
.cov-key { padding: 0 .4em; border-radius: 3px; font-size: .85em; }
.cov-key.relevant { background: color-mix(in srgb, var(--bad) 18%, transparent); } .cov-key.covered { background: color-mix(in srgb, var(--ok) 22%, transparent); }
.cov-code tr.cov-hit td.t, .cov-key.cov-hit { background: color-mix(in srgb, var(--ok) 16%, transparent); }
.cov-code tr.cov-miss td.t, .cov-key.cov-miss { background: color-mix(in srgb, var(--bad) 16%, transparent); }
.t-list { list-style: none; padding: 0; margin: 0; line-height: 1.7; overflow-wrap: anywhere; }
.cov-code td.cov-hits { text-align: right; padding: 0 .5em; color: var(--mute); font-size: .85em; white-space: nowrap; user-select: none; }

/* Where a repository's data lives, when it is its owner's bucket (#123):
   the provider's icon, and a card with the details on hover, focus or a
   tap (it takes focus). */
.store { position: relative; display: inline-flex; align-items: center; margin-left: 8px; vertical-align: middle; cursor: pointer; border-radius: 3px; }
.store svg { display: block; }
.store:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.store-card { display: none; position: absolute; top: calc(100% + 8px); left: -6px; z-index: 30; width: max-content; max-width: min(420px, 90vw); background: var(--panel); border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0, 0, 0, .28); padding: 10px 12px; font-size: 13px; font-weight: 400; line-height: 1.45; white-space: normal; color: var(--ink); cursor: auto; }
.store-card::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.store:hover .store-card, .store:focus .store-card, .store:focus-within .store-card { display: block; }
.store-card strong { display: block; margin-bottom: 4px; }
.store-card dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 6px 0 8px; }
.store-card dt { color: var(--mute); }
.store-card dd { margin: 0; min-width: 0; }
.store-card code { word-break: break-all; }

/* Projects (#124): a filter and a New project button above a panel of
   rows with Open and Closed tabs; the form opens from the button. */
.proj-bar { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.proj-filter { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; margin: 0; padding: 0 10px; border: 1px solid var(--line); background: var(--panel); color: var(--mute); }
.proj-filter:focus-within { border-color: var(--acc); }
.proj-filter input { flex: 1; min-width: 0; width: auto; margin: 0; padding: 7px 0; border: 0; background: transparent; color: var(--ink); outline: none; }
.proj-new { display: none; max-width: 560px; margin: 0 0 16px; }
.proj-new:target, .proj-new.open { display: block; }
.proj-new h2 { margin-top: 0; }
.proj-new-actions { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.proj-list { border: 1px solid var(--line); background: var(--panel); }
.proj-tabs { display: flex; gap: 4px; padding: 8px 12px; background: var(--soft); border-bottom: 1px solid var(--line); }
.proj-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; color: var(--mute); font-size: 14px; }
.proj-tabs a:hover { color: var(--ink); text-decoration: none; }
.proj-tabs a.on { color: var(--ink); font-weight: 600; }
.proj-rows { list-style: none; margin: 0; padding: 0; }
.proj-rows li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.proj-rows li:last-child { border-bottom: 0; }
.proj-rows li:hover { background: var(--soft); }
.proj-icon { flex: none; margin-top: 3px; color: var(--mute); }
.proj-main { flex: 1; min-width: 0; }
.proj-main p { margin: 2px 0 0; }
.proj-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.proj-title .name { font-size: 16px; font-weight: 600; }
.proj-title .vis { margin-left: 2px; }
.proj-desc { color: var(--ink); font-size: 14px; }
.proj-list .empty { border: 0; margin: 0; }

/* Reports (oxygenhub#127) */
.rep-top h1 { margin-bottom: .2em; }
.rep-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(21em, 1fr)); gap: 1em; margin-top: 1.2em; }
.rep-card { --tone: var(--mute); position: relative; display: flex; flex-direction: column; gap: .7em; padding: 1.1em 1.2em 1em; border: 1px solid var(--line); border-top: 3px solid var(--tone); border-radius: 12px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--tone) 9%, var(--panel)), var(--panel) 70%); transition: border-color .15s, transform .15s, box-shadow .15s; }
.rep-card:hover { transform: translateY(-1px); box-shadow: 0 6px 18px color-mix(in srgb, var(--tone) 18%, transparent); border-color: color-mix(in srgb, var(--tone) 55%, var(--line)); }
.rep-card.rep-good { --tone: var(--ok); } .rep-card.rep-bad { --tone: var(--bad); } .rep-card.rep-neutral { --tone: var(--acc); }
.rep-head { display: flex; align-items: center; gap: .7em; }
.rep-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: var(--kind); background: color-mix(in srgb, var(--kind) 14%, transparent); }
.rep-icon.rep-performance { --kind: var(--acc); } .rep-icon.rep-coverage { --kind: var(--ok); } .rep-icon.rep-tests { --kind: var(--warn); } .rep-icon.rep-custom { --kind: var(--mute); }
.rep-name { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.rep-link { color: var(--ink); font-weight: 600; font-size: 1.08em; }
.rep-link::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.rep-kindname { color: var(--mute); font-size: .8em; text-transform: uppercase; letter-spacing: .06em; }
.rep-badge { flex: none; font-size: .8em; font-weight: 600; padding: .2em .65em; border-radius: 999px; color: var(--tone); background: color-mix(in srgb, var(--tone) 14%, transparent); }
.rep-summary { margin: 0; color: var(--ink); }
.rep-tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5em; }
.rep-tiles li { display: flex; flex-direction: column; padding: .5em .65em; border-radius: 8px; background: var(--soft); min-width: 0; }
.rep-tiles .v { font-size: 1.15em; font-weight: 600; font-variant-numeric: tabular-nums; }
.rep-tiles .v small { font-weight: 400; color: var(--mute); font-size: .7em; }
.rep-tiles .k { font-size: .78em; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rep-tiles li.rep-failing { box-shadow: inset 3px 0 0 var(--bad); }
.rep-hero { display: flex; flex-direction: column; gap: .1em; }
.rep-big { font-size: 2em; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--tone); line-height: 1.1; }
.rep-foot { margin-top: auto; font-size: .82em; color: var(--mute); display: flex; flex-wrap: wrap; align-items: center; gap: .35em; }
.rep-kind { text-transform: lowercase; }
.rep-performance { color: var(--acc); } .rep-coverage { color: var(--ok); } .rep-tests { color: var(--warn); } .rep-custom { color: var(--mute); }
.rep-delta { font-size: .8em; font-weight: 600; font-variant-numeric: tabular-nums; }
.rep-delta.better { color: var(--ok); } .rep-delta.worse { color: var(--bad); } .rep-delta.same { color: var(--mute); }
.rep-failing .v, .rep-failing strong { color: var(--bad); }
.rep-table { width: 100%; border-collapse: collapse; }
.rep-table th, .rep-table td { padding: .45em .6em; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.rep-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.rep-spark polyline { fill: none; stroke: var(--acc); stroke-width: 1.5; }
.rep-spark circle { fill: var(--acc); }
.rep-frame-wrap { margin: 1em 0; }
.rep-frame { display: block; width: 100%; height: 70vh; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.rep-frame.sized { overflow: hidden; }
.rep-context { display: grid; grid-template-columns: max-content 1fr; gap: .3em 1em; margin: 0; }
.rep-context dt { color: var(--mute); }
.rep-context dd { margin: 0; font-variant-numeric: tabular-nums; }
.rep-runs { list-style: none; padding: 0; margin: 0; }
.rep-runs li { padding: .25em 0; }
.rep-runs li.on a { font-weight: 700; }

/* Reports timeline (oxygenhub#127, RP4) */
.rep-timeline { margin: 1em 0; padding: .8em 1em; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.rep-tl-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .6em 1.2em; margin-bottom: .7em; }
.rep-tl-btn { font: inherit; font-weight: 600; padding: .3em .9em; border-radius: 999px; border: 1px solid var(--acc); color: var(--acc); background: transparent; cursor: pointer; }
.rep-tl-btn:hover { background: color-mix(in srgb, var(--acc) 12%, transparent); }
.rep-tl-keys { margin-left: auto; }
.rep-tl-stops { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.rep-tl-stops li { flex: 1; min-width: 4px; }
.rep-tl-stop { display: block; height: 14px; border-radius: 3px; background: color-mix(in srgb, var(--acc) 22%, var(--soft)); }
.rep-tl-stop:hover { background: color-mix(in srgb, var(--acc) 55%, var(--soft)); }
.rep-tl-stop.on { background: var(--acc); height: 22px; }
.rep-tl-stop.cmp { background: var(--warn); height: 22px; }
.rep-tl-ends { display: flex; justify-content: space-between; margin-top: .3em; }
.rep-cmp-h { display: flex; align-items: baseline; gap: 1em; font-size: 1.05em; margin: 0 0 .6em; }
.rep-frame-wrap.rep-side { display: grid; grid-template-columns: 1fr 1fr; gap: 1em; }
.rep-frame-wrap.rep-side > p { grid-column: 1 / -1; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Working (#142): a pressed button's spinner, and the Oxygen mark's rings
   spinning and its arms sliding back and forth in turn while a slow page
   loads (hub.js adds .oxy-wait after 300 ms; #306). The pointer keeps its own
   shape: the mark beside it is the only sign. */
button[aria-busy=true] { opacity: 1; }
.oxy-spin { display: inline-block; width: 1em; text-align: center; }
.oxy-wait-mark { display: none; position: fixed; z-index: 1000; pointer-events: none; padding: 4px 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); line-height: 0; }
.oxy-wait-mark svg { width: 36px; height: 18px; }
.oxy-wait-mark.corner { left: auto !important; top: calc(env(safe-area-inset-top, 0px) + 68px) !important; right: 16px; }
.oxy-wait .oxy-wait-mark { display: block; }
.oxy-wait header .brand svg circle[r="10"], .oxy-wait-mark svg circle[r="10"] { stroke-dasharray: 44 18.8; animation: oxy-ring .9s linear infinite; }
.oxy-wait header .brand svg circle[cx="11"][r="10"], .oxy-wait-mark svg circle[cx="11"][r="10"] { animation-direction: reverse; }
.oxy-wait header .brand svg .arm, .oxy-wait-mark svg .arm { animation: oxy-arm .9s ease-in-out infinite alternate; }
.oxy-wait header .brand svg .arm + .arm, .oxy-wait-mark svg .arm + .arm { animation-direction: alternate-reverse; }
@keyframes oxy-ring { to { stroke-dashoffset: -62.8; } }
@keyframes oxy-arm { from { transform: translateX(-3px); } to { transform: translateX(3px); } }
@media (prefers-reduced-motion: reduce) {
  .oxy-wait header .brand svg circle[r="10"], .oxy-wait-mark svg circle[r="10"] { animation: none; stroke-dasharray: none; }
  .oxy-wait header .brand svg .arm, .oxy-wait-mark svg .arm { animation: none; }
}

/* Admin › Runners › Images (C0, docs/cylinder.md): where each image is. */
table.images td { vertical-align: top; }
table.images tr.stranded td:first-child { box-shadow: inset 3px 0 0 var(--bad); }
.lbl.img-hub { color: var(--acc); border-color: var(--acc); }
.lbl.img-holds { color: var(--ok); border-color: var(--ok); }
.lbl.img-fetching { color: var(--warn); border-color: var(--warn); }
.lbl.img-peer { color: var(--acc); border-color: var(--acc); border-style: dashed; }

/* Diffusion (#150): each consumer's status at a glance. */
.df-chip { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 10px; border: 1px solid; white-space: nowrap; }
.df-green { color: var(--ok); border-color: var(--ok); }
.df-amber { color: #b7791f; border-color: #e3a008; background: color-mix(in srgb, #e3a008 12%, transparent); }
.df-red { color: var(--bad); border-color: var(--bad); }
.df-grey { color: var(--mute); border-color: var(--line); }
.df-current { color: var(--acc); border-color: var(--acc); }
.df-off { color: var(--dim); border-color: var(--line); border-style: dashed; }
.df-key .df-chip { margin-right: 2px; }
table.diffusion td { vertical-align: middle; }
/* Every upstream's table shares one column grid (#152), so the tables on
   the Diffusion pages line up with each other. */
table.diffusion { table-layout: fixed; width: 100%; min-width: 880px; }
table.diffusion td { overflow-wrap: anywhere; }
table.diffusion .df-c-repo { width: 26%; }
table.diffusion .df-c-pin { width: 10%; }
table.diffusion .df-c-behind { width: 7%; }
table.diffusion .df-c-pill { width: 17%; }
table.diffusion .df-c-bump { width: 16%; }
table.diffusion .df-c-landed { width: 14%; }
table.diffusion .df-c-follow { width: 10%; }
table.diffusion .df-path { display: block; }

/* The Diffusion pill (#150): two halves like a capsule, the upstream on
   the left, the repository that pins it on the right. */
.df-pill { display: inline-flex; border-radius: 999px; overflow: hidden; font-size: 12px; line-height: 1.6; vertical-align: middle; box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.df-half { padding: 0 9px; font-weight: 600; }
.df-half + .df-half { border-left: 1px solid rgba(255, 255, 255, .55); }
.df-half.df-green { background: #1a7f4b; color: #fff; }
.df-half.df-amber { background: #e3a008; color: #2b1d00; }
.df-half.df-red { background: #c62d47; color: #fff; }
.df-half.df-grey { background: var(--soft); color: var(--mute); }
.df-half.df-off { background: transparent; color: var(--mute); border-style: solid; border-width: 0; }
.df-half + .df-half.df-off { border-left: 1px solid var(--line); }

/* Icons (#152): inline SVGs in the colour of their text. */
svg.ic { width: 16px; height: 16px; vertical-align: -3px; flex: none; }
.band a { display: inline-flex; align-items: center; gap: 6px; }
.band a svg.ic { opacity: .8; }
table.tree td.g svg.ic { vertical-align: -3px; }
table.tree td.g.ic-dir { color: #54aeff; }
table.tree td.g.ic-file, table.tree td.g.ic-link { color: var(--mute); }
table.tree td.g.ic-sub { color: var(--acc); }

/* The tree's shaded head (#152): the latest change, and the history. */
.tree-box { margin-top: 4px; }
.tree-head { display: flex; align-items: center; gap: 10px; background: var(--soft); border: 1px solid var(--line); border-bottom: 0; border-radius: 6px 6px 0 0; padding: 8px 16px; font-size: 13px; }
.tree-head .tree-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree-head .tree-title a.t { color: var(--ink); }
.tree-head .tree-title a.who { font-weight: 600; color: var(--ink); }
.tree-head img.avatar { width: 20px; height: 20px; border-radius: 50%; vertical-align: middle; }
.tree-head .tree-meta { display: flex; align-items: center; gap: 12px; white-space: nowrap; color: var(--mute); }
.tree-head .tree-meta a { color: var(--mute); }
.tree-head .tree-meta a.hist { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); font-weight: 600; }
.tree-box .tree-head + table.tree { border-top-left-radius: 0; border-top-right-radius: 0; margin-top: 0; }
@media (max-width: 760px) { .tree-head .tree-meta .ago { display: none; } }

/* The sidebar as cards (#152): each section a rounded box with a shaded
   heading. */
aside.side.cards { display: flex; flex-direction: column; gap: 14px; }
.side-card { border: 1px solid var(--line); border-radius: 6px; background: var(--panel); overflow: hidden; }
.side-card > h3 { margin: 0; padding: 8px 12px; background: var(--soft); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 6px; }
.side-card > h3 .more { margin-left: auto; font-size: 12px; font-weight: 400; text-transform: none; letter-spacing: 0; }
.side-card > .body { padding: 10px 12px; }
.side-card > .body > :first-child { margin-top: 0; }
.side-card > .body > :last-child { margin-bottom: 0; }
.side-card h4 { margin: 10px 0 4px; font-size: 12px; font-weight: 600; color: var(--mute); }
.side-card h4:first-child { margin-top: 0; }
ul.contributors li.c { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
ul.contributors li.c > .who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
ul.contributors li.c > .n { margin-left: auto; }
ul.df-list { margin: 0; }
ul.df-list li { padding: 6px 0; border-top: 1px solid var(--line); }
ul.df-list li:first-child { border-top: 0; padding-top: 0; }
ul.df-list .df-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
ul.df-list .df-line { display: flex; align-items: center; gap: 8px; margin-top: 3px; font-size: 12px; }
ul.bookmarks li { display: flex; align-items: center; gap: 6px; }
ul.bookmarks li > a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* A main-column section as a card (#155), the counterpart of the
   sidebar's side-card: a rounded box, its heading and count in a shaded
   bar, its list flush inside. */
.card-box { border: 1px solid var(--line); border-radius: 6px; background: var(--panel); overflow: hidden; margin-bottom: 16px; }
.card-box > .card-head { display: flex; align-items: center; gap: 8px; padding: 8px 16px; background: var(--soft); border-bottom: 1px solid var(--line); }
.card-box > .card-head h2, .card-box > .card-head h3 { margin: 0; font-size: 14px; font-weight: 600; }
.card-box > .card-head .more { margin-left: auto; font-size: 12px; }
.card-box > ul.rows, .card-box > ul.feed { border: 0; border-radius: 0; margin: 0; }
.card-box > ul.rows li { margin: 0; border: 0; border-top: 1px solid var(--line); }
.card-box > ul.rows li:first-child, .card-box > ul.feed li:first-child { border-top: 0; }
.card-box > .empty { margin: 0; padding: 12px 16px; }
ul.repo-list li { display: flex; align-items: center; gap: 6px; margin: 3px 0; }
ul.repo-list li > a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Backdrops (docs/backgrounds.md, #157): the canvas behind a page's
   content, never in its way. The page's background moves to the root so
   the canvas shows in the margins and between the cards. */
#backdrop { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; display: block; }
html:has(#backdrop) body { background: transparent; }
.bd-label { position: fixed; z-index: -1; pointer-events: none; transform: translate(-50%, -100%); font-size: 12px; color: var(--mute); opacity: 0; transition: opacity .3s; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .bd-label { transition: none; } }

/* The page's primary action (#161): filled with the accent. */
a.go.primary, summary.go.primary { background: var(--acc); color: var(--panel); border-color: var(--acc); }
a.go.primary:hover, summary.go.primary:hover { filter: brightness(1.1); text-decoration: none; }

/* The About card (#159): counts in its heading, the actions centred. */
.side-card.about > h3 .about-counts { display: inline-flex; align-items: center; gap: 12px; color: var(--mute); font-size: 12px; font-weight: 400; text-transform: none; letter-spacing: 0; }
.side-card.about > h3 .about-counts > * { display: inline-flex; align-items: center; gap: 4px; color: var(--mute); }
.side-card.about > h3 .about-counts svg.ic { width: 14px; height: 14px; vertical-align: 0; }
.side-card.about .topics { margin: 10px 0; }
.about-actions { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.about-actions form { margin: 0; }
.about-propose { text-align: center; margin: 10px 0 0; }

/* Diffusion rows (#160): the repository and its pill on one line, how far
   behind beneath, a rule between rows. */
ul.df-list .df-row { display: flex; align-items: center; gap: 8px; }
ul.df-list .df-row .df-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
ul.df-list .df-row .df-pill { flex: none; }
ul.df-list .df-sub { display: flex; gap: 10px; margin-top: 2px; font-size: 12px; color: var(--mute); }

/* Every boxed section's heading as a shaded bar (#164): a panel's or a
   form card's leading heading (after its hidden CSRF field, in a form)
   runs across the box's top, as the cards' headings do. */
.panel { --box-py: 14px; --box-px: 16px; }
form.card { --box-py: 18px; --box-px: 20px; }
:is(.panel, form.card) > h2:first-child,
:is(.panel, form.card) > input[type=hidden]:first-child + h2 {
  margin: calc(-1 * var(--box-py)) calc(-1 * var(--box-px)) 14px;
  padding: 10px var(--box-px);
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
/* A sidebar section with no heading (a wiki's own sidebar) keeps its
   padding at the top. */
.side-sections .side-sec:not(:has(> .side-head)) { padding-top: 10px; }
.card-box > ul.card-list { margin: 0; padding: 10px 16px; }
.who-card .side-card { margin-top: 14px; }

/* Backups (#169): each run's outcome. */
.backup-status { display: inline-block; padding: 0 8px; border-radius: 10px; font-size: 12px; font-weight: 600; border: 1px solid; }
.backup-status.st-ok { color: var(--ok); }
.backup-status.st-partial { color: var(--warn); }
.backup-status.st-failed { color: var(--bad); }
.backup-status.st-running { color: var(--mute); }
.backup-what { max-width: 760px; }

/* Nothing runs out of its card (#170): long tokens in the timeline and in
   inline code wrap where they must. */
.tl-event, .tl-event code { overflow-wrap: anywhere; }
article.doc :not(pre) > code, .comment :not(pre) > code, .tl-card :not(pre) > code { overflow-wrap: anywhere; }
/* Settings › Tokens (oxygenhub#185): one card per token, actions beside it. */
.card-box > .pad, .card-box .pad { padding: 14px 16px; }
.token-rows li { display: flex; align-items: flex-start; gap: 16px; padding: 12px 16px; }
.token-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.token-scopes { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.token-scopes .chip { font-size: 11.5px; padding: 1px 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.token-actions { display: flex; gap: 6px; flex-shrink: 0; }
button.danger { color: var(--bad); }
.agent-pill { font-size: 11px; padding: 1px 7px; border-radius: 10px; background: color-mix(in srgb, var(--acc) 18%, transparent); color: var(--ink); }
/* Settings › Security (#285): every box the page's width, a form's
   field and button on one row. */
.sec-form p { margin: 0 0 10px; }
.sec-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sec-row label { margin: 0; font-weight: 600; }
.sec-row input { flex: 0 1 320px; min-width: 0; }
.sec-split { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sec-split p { margin: 0; }
/* Waiting for a phone's approval (oxygenhub#356): the number to pick, big enough to read across a desk. */
.approve-wait { text-align: center; }
.approve-wait p { margin: 6px 0; }
.approve-number { font: 700 56px/1.1 var(--mono, ui-monospace, monospace); color: var(--acc); letter-spacing: 4px; margin: 8px 0 !important; }
.approve-wait[data-state="approved"] .approve-number { color: var(--ok); }
.approve-wait[data-state="denied"] .approve-number, .approve-wait[data-state="expired"] .approve-number { color: var(--bad); text-decoration: line-through; }
.card-box > .card-head form.more { margin-left: auto; }
.card-box > .sec-foot { margin: 0; border-top: 1px solid var(--line); }
.token-form { display: flex; flex-direction: column; gap: 6px; max-width: 720px; }
.token-form .scopes { display: flex; flex-direction: column; gap: 2px; }
.token-form button[type=submit] { align-self: flex-start; margin-top: 8px; }
.token-form .token-agent { margin-top: 8px; }
.token-form .token-hint { margin: 0 0 0 24px; }
@media (max-width: 700px) { .token-rows li { flex-direction: column; } }
/* Settings › Keys (oxygenhub#188) shares the token rows; Backups' form is as wide as its Runs (#189). */
form.card.keys-verify { max-width: none; }
form.card.backup-form { max-width: none; }
/* Wiki clone box (oxygenhub#192): the command wraps inside its card. */
.side-sec pre.snippet { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
/* The overview's bookmark and tag picker (oxygenhub#191). */
details.ref-pick { position: relative; }
details.ref-pick > summary { list-style: none; cursor: pointer; }
details.ref-pick > summary::-webkit-details-marker { display: none; }
.ref-panel { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; min-width: 240px; max-width: min(360px, 90vw); max-height: 60vh; overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.15); padding: 8px 0; }
.ref-panel p { margin: 4px 12px; }
.ref-panel ul { margin: 0; }
.ref-panel li a { display: block; padding: 4px 12px; overflow-wrap: anywhere; }
.ref-panel li a:hover, .ref-panel li a.on { background: var(--soft); text-decoration: none; }
.ref-panel li a.on { font-weight: 600; }
/* The Markdown editor in GitLab's manner (oxygenhub#193): one bordered box,
   a Preview tab, icon buttons, a footer. */
.EasyMDEContainer { border: 1px solid var(--line); border-radius: 6px; background: var(--bg); overflow: hidden; }
.EasyMDEContainer:focus-within { border-color: var(--acc); box-shadow: 0 0 0 2px color-mix(in srgb, var(--acc) 25%, transparent); }
.EasyMDEContainer .editor-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: var(--panel); padding: 4px 6px; }
.EasyMDEContainer .editor-toolbar i.separator { border-left: 1px solid var(--line); border-right: 0; height: 18px; margin: 0 4px; }
.EasyMDEContainer .editor-toolbar button.mde-btn { border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 28px; padding: 0; border-radius: 6px; color: var(--mute); }
.EasyMDEContainer .editor-toolbar button.mde-btn.mde-text { width: auto; padding: 0 10px; font-size: 13px; font-weight: 500; color: var(--ink); }
.EasyMDEContainer .editor-toolbar button.mde-btn:hover, .EasyMDEContainer .editor-toolbar button.mde-btn.active { background: var(--soft); color: var(--ink); }
.EasyMDEContainer .editor-toolbar button.fullscreen { margin-left: auto; }
.EasyMDEContainer .editor-toolbar .mde-ico { display: inline-flex; }
.EasyMDEContainer .CodeMirror { border: 0; border-radius: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.EasyMDEContainer .CodeMirror .CodeMirror-placeholder { color: var(--mute); }
.EasyMDEContainer .editor-preview { background: var(--bg); color: var(--ink); }
.mde-foot { display: flex; justify-content: space-between; align-items: center; padding: 4px 10px; border-top: 1px solid var(--line); background: var(--panel); }
.mde-md { font-weight: 700; border: 1px solid currentColor; border-radius: 3px; padding: 0 3px; font-size: 10px; }
.EasyMDEContainer .editor-toolbar.fullscreen, .EasyMDEContainer .CodeMirror-fullscreen, .EasyMDEContainer .editor-preview-active-side { background: var(--bg); }
/* Wiki pages (oxygenhub#194): a title row with who edited it and the
   buttons, the page as a card, pages and contents in the side bar. */
.wiki-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.wiki-title { min-width: 0; }
.wiki-title h1 { margin: 0 0 4px; text-wrap: balance; }
.wiki-title p { margin: 0; }
.wiki-actions { display: flex; gap: 8px; flex-shrink: 0; }
article.wiki-doc.card-doc { border: 1px solid var(--line); border-radius: 6px; background: var(--panel); padding: 20px 28px; }
.wiki-foot { margin-top: 8px; }
.wiki-side-col .side-sec { min-width: 0; }
details.wiki-pages > summary { list-style: none; cursor: pointer; }
details.wiki-pages > summary::-webkit-details-marker { display: none; }
details.wiki-pages > summary h3::before { content: "▸ "; color: var(--mute); }
details.wiki-pages[open] > summary h3::before { content: "▾ "; }
.wiki-pages ul, .wiki-toc { margin: 0; padding: 6px 12px; }
.wiki-pages li a, .wiki-toc li a { display: block; padding: 2px 0; overflow-wrap: anywhere; }
.wiki-pages li a.on { font-weight: 600; }
.wiki-pages p { margin: 0 12px 8px; }
.wiki-toc li.lv2 { padding-left: 12px; }
.wiki-toc li.lv3 { padding-left: 24px; font-size: 13px; }
.wiki-side-col .clone { display: flex; gap: 6px; padding: 8px 12px; }
.wiki-side-col .clone input { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.wiki-doc h1[id], .wiki-doc h2[id], .wiki-doc h3[id] { scroll-margin-top: 16px; }
.EasyMDEContainer .editor-toolbar button.mde-btn.mde-text, .EasyMDEContainer .editor-toolbar button.mde-btn.mde-text::first-letter { text-transform: none; }
/* A long hash or state address shows its two ends; the whole of it in a
   wrapped, square-ish tip on hover or focus (oxygenhub#198). */
.hash-tip { position: relative; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; cursor: help; border-bottom: 1px dotted currentColor; white-space: nowrap; }
.hash-tip::after { content: attr(data-full); position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; width: min(34ch, 80vw); padding: 8px 10px; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.15); white-space: normal; overflow-wrap: anywhere; word-break: break-all; line-height: 1.45; font-size: 12px; visibility: hidden; opacity: 0; transition: opacity .12s; pointer-events: none; text-transform: none; font-weight: 400; }
.hash-tip:hover::after, .hash-tip:focus::after { visibility: visible; opacity: 1; }
/* Sign-in with a provider (oxygenhub#213): branded buttons beside the
   sign-in box, in the style of Gitter's (the provider's colour and logo). */
.signin-layout { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.signin-layout > form.card { flex: 1 1 320px; margin: 0; }
.signin-or { display: flex; flex-direction: column; align-items: center; align-self: stretch; color: var(--mute); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.signin-or::before, .signin-or::after { content: ""; flex: 1; width: 1px; background: var(--line); }
.signin-or span { padding: 8px 0; }
.signin-with { display: flex; flex-direction: column; gap: 10px; flex: 0 1 280px; min-width: 0; }
/* `:root .signin-with` outranks the looks' link colours (assets/github.css). */
:root .signin-with a.signin-btn { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 16px; border-radius: 4px; color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; border: 1px solid transparent; }
:root .signin-with a.signin-btn svg { flex-shrink: 0; fill: currentColor; }
:root .signin-with a.signin-btn:hover, :root .signin-with a.signin-btn:focus-visible { filter: brightness(1.08); text-decoration: none; color: #fff; }
:root .signin-with a.signin-btn:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
:root .signin-with a.signin-btn.gitlab { background: #cf3d1b; } /* GitLab's red-orange, dark enough for white text (4.8:1) */
:root .signin-with a.signin-btn.github { background: #24292f; }
:root .signin-with a.signin-btn.google { background: #fff; color: #3c4043; border-color: #dadce0; }
:root .signin-with a.signin-btn.google:hover, :root .signin-with a.signin-btn.google:focus-visible { color: #3c4043; background: #f8f9fa; filter: none; }
@media (max-width: 700px) {
  .signin-or { flex-direction: row; width: 100%; }
  .signin-or::before, .signin-or::after { height: 1px; width: auto; }
  .signin-or span { padding: 0 8px; }
  .signin-with { flex-basis: 100%; }
}
/* The profile's pulse (oxygenhub#217): repository colours that read on
   both looks and both themes, and the agents' violet. */
:root { --pu1: #2f81f7; --pu2: #0fb5c9; --pu3: #2da44e; --pu4: #e3832a; --pu5: #d1453b; --pu6: #c2307a; --pu7: #b08800; --pu8: #8c959f; --pu-agent: #8a63d2; }
.pulse-box .card-head { flex-wrap: wrap; row-gap: 6px; }
.pulse-total { font-weight: 700; font-variant-numeric: tabular-nums; }
.pulse-legend { display: flex; flex-wrap: wrap; gap: 4px; }
:root .pulse-legend button.pu-chip { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; font-size: 11.5px; line-height: 1.6; border-radius: 999px; text-transform: none; letter-spacing: 0; font-weight: 500; min-height: 0; }
:root .pulse-legend button.pu-chip::first-letter { text-transform: none; }
:root .pulse-legend button.pu-chip i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
:root .pulse-legend button.pu-chip[aria-pressed="true"] { border-color: var(--ink); background: var(--soft); }
.pulse-stage { position: relative; padding: 8px 12px 4px; }
.pulse-stage svg { width: 100%; height: auto; display: block; touch-action: pan-y; }
.pulse-stage .pu-axis { font: 10px var(--mono, ui-monospace, monospace); fill: var(--mute); }
.pulse-stage .pu-peak { font: 11px var(--mono, ui-monospace, monospace); fill: var(--ink); }
.pulse-card { position: absolute; top: 6px; pointer-events: none; opacity: 0; transition: opacity .15s; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; min-width: 170px; font-size: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.pulse-card b { display: block; margin-bottom: 3px; }
.pulse-card .row { display: flex; justify-content: space-between; gap: 14px; color: var(--mute); font-variant-numeric: tabular-nums; }
.pulse-card .row span:last-child { color: var(--ink); }
.pulse-card .bar { display: flex; height: 5px; border-radius: 3px; overflow: hidden; margin-top: 6px; background: var(--soft); }
@keyframes pu-ring { from { r: 4; opacity: .9; } to { r: 15; opacity: 0; } }
.pu-ring { animation: pu-ring 2.4s ease-out infinite; }
@media (prefers-reduced-motion: reduce) { .pu-ring { animation: none; opacity: 0; } }

/* Drops (oxygenhub#279). */
.drop-filebox { margin-bottom: 16px; }
/* A drop's page (#283): what it is on the left, what you can do on the
   right, the clone line under them; a Markdown file fills its box. */
.drop-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 24px; flex-wrap: wrap; margin: 6px 0 14px; padding-bottom: 12px; border-bottom: 2px solid var(--band); border-image: linear-gradient(90deg, var(--acc), var(--acc-2)) 1; }
.drop-id { flex: 1 1 320px; min-width: 0; }
.drop-id h1 { font-size: 30px; font-weight: 300; color: var(--ink); margin: 0 0 6px; overflow-wrap: anywhere; }
.drop-id h1 small { font-size: 13px; color: var(--acc); font-weight: 400; }
.drop-id .drop-desc { margin: 0 0 6px; font-size: 15px; }
.drop-id p.small { margin: 0; }
.drop-actions { display: flex; gap: 8px; align-items: stretch; }
.drop-actions form { margin: 0; display: flex; }
.drop-actions a.go { display: inline-flex; align-items: center; }
.drop-clone { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; font-size: 13px; }
.drop-clone label { color: var(--mute); }
.drop-clone input { flex: 0 1 640px; min-width: 0; }

/* Copy buttons (#338): a copy glyph joined to the end of its field, or in
   the corner of a command block; "Copy to clipboard" on hover, a tick and
   "Copied!" for two seconds after a click (hub.js). */
:root { --icon-copy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5'%3E%3Crect x='5.25' y='1.25' width='9.5' height='9.5' rx='1.75'/%3E%3Cpath d='M3.5 5.25h-.75c-.83 0-1.5.67-1.5 1.5v6.5c0 .83.67 1.5 1.5 1.5h6.5c.83 0 1.5-.67 1.5-1.5v-.75'/%3E%3C/svg%3E"); --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.25 3.25L13 4.75'/%3E%3C/svg%3E"); }
button.copy-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 32px; min-height: 30px; padding: 0; margin: 0; background: var(--panel); border: 1px solid var(--line); color: var(--mute); letter-spacing: normal; text-transform: none; }
button.copy-btn::before { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--icon-copy) center / 16px no-repeat; mask: var(--icon-copy) center / 16px no-repeat; }
button.copy-btn:hover { background: var(--soft); color: var(--ink); }
button.copy-btn.copied, button.copy-btn.copied:hover { color: var(--ok); }
button.copy-btn.copied::before { -webkit-mask-image: var(--icon-check); mask-image: var(--icon-check); }
button.copy-btn[data-tip]:hover::after, button.copy-btn[data-tip]:focus-visible::after, button.copy-btn.copied::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); right: -4px; z-index: 30; white-space: nowrap; pointer-events: none;
  background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 500; line-height: 1.4; padding: 3px 8px; border-radius: 6px;
}
.clone, .drop-clone { gap: 0; }
.clone > input, .clone > code, .drop-clone > input { margin: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.clone > button.copy-btn, .drop-clone > button.copy-btn { align-self: stretch; border-left: 0; border-radius: 0 6px 6px 0; }
.cmds { position: relative; }
.cmds pre { padding-right: 46px; }
.cmds > button.copy-btn { position: absolute; top: 6px; right: 6px; width: 28px; min-height: 28px; border-radius: 6px; }
/* A drop's Embed and Clone: labels in one column, the fields lined up in the next. */
.drop-fields { display: grid; grid-template-columns: max-content minmax(0, 680px) auto; row-gap: 10px; margin: 0 0 16px; }
.drop-fields .drop-clone { display: grid; grid-template-columns: subgrid; grid-column: 1 / -1; margin: 0; }
.drop-fields .drop-clone label { align-self: center; padding-right: 12px; }
.drop-filebox article.doc { max-width: none; margin: 0; border: 0; }
/* A drop framed on another site (#280): its files and a link back. */
body.drop-embedded { margin: 0; padding: 8px; }
.embed-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; margin: 0 0 8px; }
.drop-comment-rows li { align-items: flex-start; }
.drop-comment { flex: 1; min-width: 0; }
.drop-comment .doc { margin-top: 4px; overflow-wrap: anywhere; }
.drop-comment-form textarea { width: 100%; box-sizing: border-box; }
.drop-file { border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; margin: 0 0 12px; }
.drop-file-actions { display: flex; align-items: flex-end; justify-content: flex-end; }
/* Admin › Runners › Updates (oxygenhub#322): a level's settings in a row. */
.pol-row, .pol-form { display: flex; flex-wrap: wrap; align-items: end; gap: 6px 14px; margin: 6px 0; }
.pol-form > strong { align-self: center; min-width: 8em; }
label.pol { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: normal; }
label.pol input[type=text], label.pol input[type=number], label.pol select { width: auto; margin: 0; }
td .pol-form { flex-wrap: nowrap; gap: 4px 8px; }
.update-group h3 small { font-weight: normal; }
/* Run in this tab (oxygenflow#80) */
.tab-job { border-top: 1px solid var(--line); padding: 8px 0; }
.tab-job:first-child { border-top: 0; }
.tab-job h3 { margin: 0; font-size: 15px; }
.tab-job .ok { color: var(--ok); }
.tab-job .bad { color: var(--bad); }
.tab-job pre { max-height: 24rem; overflow: auto; }
/* The New repository page (#360). */
.new-repo .name-row { display: flex; align-items: flex-end; gap: 8px; }
.new-repo .name-row .grow { flex: 1; min-width: 0; }
.new-repo .name-row .slash { font-size: 20px; color: var(--mute); padding-bottom: 6px; }
.new-repo .name-check { min-height: 1.4em; margin: 4px 0 8px; }
.ok-text { color: var(--ok); }
.err-text { color: var(--bad); }
.new-repo fieldset.choices { border: 1px solid var(--line); padding: 10px 12px; margin: 12px 0; display: grid; gap: 8px; }
.new-repo fieldset.choices legend { padding: 0 4px; font-weight: 600; }
.choice-card { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line); background: var(--soft); cursor: pointer; }
.choice-card > span { display: grid; gap: 2px; }
.choice-card:has(input:checked) { border-color: var(--acc); }
.new-repo .board-title, .new-repo .board-existing { margin-left: 28px; }
.new-repo details.storage { margin: 12px 0; }
