:root { color-scheme: light;
  --bg: #f5f5f5; --border: #ccc; --border-light: #eee; --text: #24292f;
  --text-muted: #666; --text-dim: #999; --link: #007bff; --hover: #e0e0e0;
  --code-bg: #f6f8fa; --code-border: #d0d7de; --card-bg: #fff; --th-bg: #fafafa;
  --status-error: #0366d6; --status-inreview: #d67f05;
  --status-reviewed: #22863a; --status-failed: #d73a49;
  --tag-bg: #e0f7fa; --tag-text: #006064;
  --diff-add-bg: #e6ffec; --diff-rm-bg: #ffebe9;
  --warn-bg: #fff3cd; --warn-text: #856404;
  --lineage-bg: #f1f5f9; --lineage-text: #334155; --lineage-border: #cbd5e1;
  --series-1: #2a78d6; --series-2: #eb6834; --series-3: #1baf7a;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) {
  color-scheme: dark;
  --bg: #0d1117; --border: #30363d; --border-light: #21262d; --text: #c9d1d9;
  --text-muted: #8b949e; --text-dim: #6e7681; --link: #58a6ff; --hover: #21262d;
  --code-bg: #161b22; --code-border: #30363d; --card-bg: #161b22; --th-bg: #161b22;
  --status-error: #58a6ff; --status-inreview: #d29922;
  --status-reviewed: #3fb950; --status-failed: #f85149;
  --tag-bg: #032f62; --tag-text: #79c0ff;
  --diff-add-bg: rgba(46, 160, 67, .15); --diff-rm-bg: rgba(248, 81, 73, .15);
  --warn-bg: #3a2a00; --warn-text: #e5b300;
  --lineage-bg: rgba(148, 163, 184, .12); --lineage-text: #cbd5e1;
  --lineage-border: #475569;
  --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70;
} }
:root[data-theme=dark] {
  color-scheme: dark;
  --bg: #0d1117; --border: #30363d; --border-light: #21262d; --text: #c9d1d9;
  --text-muted: #8b949e; --text-dim: #6e7681; --link: #58a6ff; --hover: #21262d;
  --code-bg: #161b22; --code-border: #30363d; --card-bg: #161b22; --th-bg: #161b22;
  --status-error: #58a6ff; --status-inreview: #d29922;
  --status-reviewed: #3fb950; --status-failed: #f85149;
  --tag-bg: #032f62; --tag-text: #79c0ff;
  --diff-add-bg: rgba(46, 160, 67, .15); --diff-rm-bg: rgba(248, 81, 73, .15);
  --warn-bg: #3a2a00; --warn-text: #e5b300;
  --lineage-bg: rgba(148, 163, 184, .12); --lineage-text: #cbd5e1;
  --lineage-border: #475569;
  --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70;
}
:root[data-colorblind] {
  --status-error: #336C8B; --status-inreview: #8A5F00;
  --status-reviewed: #004D73; --status-failed: #803800;
}
@media (prefers-color-scheme: dark) { :root[data-colorblind]:not([data-theme=light]) {
  --status-error: #56B4E9; --status-inreview: #E69F00;
  --status-reviewed: #0072B2; --status-failed: #D55E00;
} }
:root[data-colorblind][data-theme=dark] {
  --status-error: #56B4E9; --status-inreview: #E69F00;
  --status-reviewed: #0072B2; --status-failed: #D55E00;
}

body { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
  monospace; font-size: 13px; line-height: 1.4; max-width: 1200px; margin: 0 auto;
  padding: 12px 16px; background: var(--bg); color: var(--text); }
pre, code { font-family: inherit; font-size: inherit; }
.wrap > * + * { margin-top: 16px; }
header { padding-bottom: 8px; border-bottom: 1px solid var(--border-light); }
header a { font-weight: 600; color: var(--text); }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 2em; margin: 0 0 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
h2 { font-size: 1.1em; margin: 0 0 8px; }
p { margin: 0; }
.muted { color: var(--text-muted); }
.text-muted-sm { color: var(--text-muted); font-size: .85em; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 6px 8px; vertical-align: top;
  border-bottom: 1px solid var(--border-light); }
th { font-weight: 600; background: var(--th-bg); }
tr:hover { background: var(--hover); }
/* A row of a table.rows is one link, as sashiko's rows are. Each cell is
   the containing block of its own cover: the main link's ::after in its
   cell, a row-cover to the same page in every other. Safari positions no
   tr, so nothing here may. The row's other links, and what names itself on
   hover, sit above the covers. */
table.rows tbody tr { cursor: pointer; }
table.rows tbody td { position: relative; }
a.row-link { color: inherit; text-decoration: none; }
a.row-link:hover { text-decoration: none; }
a.row-link::after { content: ""; position: absolute; inset: 0; }
a.row-cover { position: absolute; inset: 0; }
a.row-link:focus-visible { outline: none; }
a.row-link:focus-visible::after { outline: 2px solid var(--link);
  outline-offset: -2px; }
table.rows tbody tr:focus-within { background: var(--hover); }
table.rows a:not(.row-link, .row-cover), table.rows [title] {
  position: relative; z-index: 1; }
td.num, th.num { text-align: right; }
.tag { display: inline-block; background: var(--tag-bg); color: var(--tag-text);
  padding: 1px 4px; border-radius: 3px; font-size: .75em; margin-right: 4px;
  border: 1px solid var(--tag-bg); vertical-align: middle; }
.lists { margin-top: 2px; }
.badge { display: inline-block; font-size: .85em; padding: 0 4px;
  border-radius: 3px; border: 1px solid currentColor; white-space: nowrap; }
.pass { color: var(--status-reviewed); } .fail { color: var(--status-failed); }
.warn { color: var(--status-inreview); } .none { color: var(--text-dim); }
/* A head's run time against its base's, as text: --warn-text reads at 5.5:1
   on a light card, where --status-inreview reads at 3.0:1. */
.slower { color: var(--warn-text); } .faster { color: var(--status-reviewed); }
.error { color: var(--status-error); }
.suite { white-space: nowrap; margin-right: 8px; }
.nowrap { white-space: nowrap; }
dl { display: grid; grid-template-columns: 120px 1fr; gap: 4px 8px; margin: 0; }
dt { font-weight: 600; color: var(--text-muted); }
dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
details { background: var(--card-bg); border: 1px solid var(--border-light);
  border-radius: 4px; }
details + details { margin-top: 4px; }
details:target { border-color: var(--link); box-shadow: 0 0 0 1px var(--link); }
details:target > summary { background: var(--hover); }
summary { cursor: pointer; padding: 4px 8px; display: flex; flex-wrap: wrap;
  gap: 4px 12px; align-items: baseline; }
.note, .step { padding: 4px 8px; overflow-wrap: anywhere; }
.step, summary + .note { border-top: 1px solid var(--border-light); }
.toggle { position: absolute; opacity: 0; pointer-events: none; }
.toggles label, .toggles a { display: inline-block; padding: 0 6px; margin-right: 6px;
  border: 1px solid var(--border); border-radius: 3px; cursor: pointer; }
.toggles label:hover { background: var(--hover); }
.out { display: none; }
.toggle.series:checked ~ .out.series, .toggle.base:checked ~ .out.base {
  display: block; }
.toggle.series:checked ~ .toggles .series, .toggle.base:checked ~ .toggles .base {
  background: var(--hover); border-color: var(--link); }
.toggle.series:focus-visible ~ .toggles .series,
.toggle.base:focus-visible ~ .toggles .base { outline: 2px solid var(--link); }
pre { margin: 0; padding: 8px; background: var(--code-bg); overflow-x: auto;
  border: 1px solid var(--code-border); }
pre .added, pre .gone { display: inline-block; min-width: 100%; }
pre .added { background: var(--diff-add-bg); }
pre .gone { background: var(--diff-rm-bg); }
pre .added::before, pre .gone::before, pre .same::before, pre .skip::before {
  user-select: none; color: var(--text-muted); }
pre .added::before { content: "+ "; }
pre .gone::before { content: "- "; }
pre .same::before { content: "  "; }
pre .skip::before { content: "\2026"; }
.controls { display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  margin-top: 8px; position: relative; z-index: 2; }
.controls input { flex: 1; min-width: 140px; max-width: 360px; padding: 4px 8px;
  font: inherit; color: var(--text); background: var(--card-bg);
  border: 1px solid var(--border); border-radius: 3px; }
.views { display: flex; gap: 8px; margin-left: auto; }
.button { display: inline-block; padding: 4px 10px; font: inherit; color: var(--text);
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 3px;
  cursor: pointer; }
a.button:hover, button.button:hover { background: var(--hover);
  text-decoration: none; }
.button.active { background: var(--border); font-weight: bold; }
.button.disabled { opacity: .5; cursor: not-allowed; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px;
  margin-top: 12px; font-size: .9em; position: relative; z-index: 2; }
footer { color: var(--text-muted); font-size: .85em;
  border-top: 1px solid var(--border-light); padding-top: 8px; }
table.fixed { table-layout: fixed; min-width: 1000px; }
table.fixed td { overflow-wrap: anywhere; }
col.subject { width: auto; }
col.author { width: 180px; } col.date { width: 110px; } col.parts { width: 50px; }
col.base { width: 200px; } col.findings { width: 300px; }
/* The bases' columns are as wide as what they hold: the commit and when it was
   recorded on one line, the builds and the producers sharing the rest. */
table.bases { min-width: 800px; }
table.bases td:not(:nth-child(2), :last-child) { white-space: nowrap; }
.versions { margin-top: 2px; }
.lineage-badge { display: inline-block; margin-right: 6px; padding: 0 7px;
  border-radius: 10px; border: 1px solid var(--lineage-border);
  background: var(--lineage-bg); color: var(--lineage-text); font-size: .75em;
  line-height: 1.6; text-decoration: none; vertical-align: middle;
  white-space: nowrap; }
a.lineage-badge:hover { border-color: var(--lineage-text); text-decoration: none; }
.lineage-badge.current { border-color: var(--lineage-text); font-weight: 600; }
.stats-container { display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: .9em; color: var(--text-muted); border-radius: 4px; padding: 8px 12px;
  margin-top: 20px; }
.stats-group { display: flex; align-items: center; gap: 6px; }
.stats-sep { width: 1px; height: 16px; background: var(--border-light);
  margin: 0 4px; }
.stats-label { font-weight: 600; color: var(--text); }
.stats-val { font-weight: bold; color: var(--text); }
.stats-sub { font-size: .85em; opacity: .7; }
.stats-link { font-weight: 500; }
.stat-card-grid { display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.stat-card { background: var(--card-bg); border: 1px solid var(--border);
  padding: 12px; border-radius: 4px; }
.stat-card h3 { margin: 0 0 8px; font-size: .9em; text-transform: uppercase;
  color: var(--text-muted); letter-spacing: .5px; }
.stat-card .value { font-size: 1.8em; font-weight: bold; }
.chart-card { background: var(--card-bg); border: 1px solid var(--border-light);
  border-radius: 4px; padding: 12px; }
svg.chart { display: block; width: 100%; height: auto; }
svg.chart text { fill: var(--text-muted); font-size: 11px; font-family: inherit; }
svg.chart text.label { fill: var(--text); }
svg.chart .grid { stroke: var(--border-light); stroke-width: 1; }
svg.chart .axis { stroke: var(--border); stroke-width: 1; }
svg.chart .ring { stroke: var(--card-bg); stroke-width: 2; }
svg.chart .hit { fill: transparent; }
svg.chart a.mark { cursor: pointer; }
svg.chart a.mark:focus-visible { outline: 2px solid var(--link); }
svg.chart .marks:hover a.mark:not(:hover) { opacity: .35; }
.s1 { fill: var(--series-1); } .s2 { fill: var(--series-2); }
.s3 { fill: var(--series-3); }
.o-introduced { fill: var(--status-failed); } .o-clean { fill: var(--status-reviewed); }
.o-unapplied { fill: var(--text-dim); } .o-fetched { fill: var(--border); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 8px;
  padding: 0; list-style: none; color: var(--text-muted); font-size: .9em; }
.legend svg { width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; }
.table-view { margin-top: 8px; border: none; background: none; }
.table-view summary { padding: 0; color: var(--text-muted); }
.chart-tip { position: fixed; z-index: 3; pointer-events: none; padding: 4px 8px;
  background: var(--card-bg); color: var(--text); border: 1px solid var(--border);
  border-radius: 4px; font-size: .9em; white-space: pre; }
.settings { display: grid; grid-template-columns: max-content max-content;
  gap: 12px 24px; align-items: center; }
/* About and Settings open as sashiko's modals, as popovers. A browser
   without them keeps the .modal hidden and, by @supports, the link to the
   page in place of the button; with no CSS, the button stays hidden. */
button.stats-link { padding: 0; font: inherit; color: var(--link);
  background: none; border: none; cursor: pointer; }
button.stats-link:hover { text-decoration: underline; }
@supports selector(:popover-open) {
  button.stats-link[hidden] { display: inline; }
  a.stats-link.page { display: none; }
}
.modal { display: none; }
.modal:popover-open { display: block; position: fixed; inset: 0; margin: auto;
  max-width: 600px; width: 90%; height: fit-content; max-height: 90vh;
  overflow-y: auto; padding: 32px; border-radius: 8px; color: var(--text);
  background: var(--bg); border: 1px solid var(--border-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15); }
.modal::backdrop { background: rgba(0, 0, 0, .5); }
.stack > * + * { margin-top: 12px; }
.modal-title { margin: 0; font-size: 1.4em; padding-bottom: 12px;
  border-bottom: 1px solid var(--border); }
.modal-close { position: absolute; top: 16px; right: 16px; padding: 4px;
  font: inherit; font-size: 1.5em; line-height: 1; color: var(--text-muted);
  background: none; border: none; cursor: pointer; }
.modal-close:hover { color: var(--text); }
.github { text-align: center; margin-top: 24px; }
.github a { display: inline-flex; align-items: center; gap: 8px; font-weight: bold;
  color: var(--text); padding: 8px 16px; border: 1px solid var(--border);
  border-radius: 6px; background: var(--card-bg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.github a:hover { background: var(--hover); text-decoration: none; }
.github svg { width: 20px; height: 20px; fill: currentColor; }
