:root {
  /* Navy ink, slate secondary text, purple accent, cool light-grey panels. */
  --ink: #0a2540; --muted: #425466; --faint: #8792a2; --line: #e3e8ee; --head: #f6f9fc; --row: #fbfcfe;
  --link: #533afd; --accent: #635bff; --accent-hover: #4b44e6; --nav: #0a2540; --bg: #fff;
  --warn-bg: #fff8e6; --warn: #7a5a00; --radius: 6px;
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #e8edf5; --muted: #a3b1c6; --faint: #7a889e; --line: #22314a; --head: #0f1d33; --row: #0c1a2e;
          --link: #a29bff; --accent: #7a73ff; --accent-hover: #918bff; --nav: #e8edf5; --bg: #0a1628;
          --warn-bg: #2b2410; --warn: #e6c46a; }
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Ubuntu, sans-serif; font-feature-settings: "cv11", "ss01"; font-optical-sizing: auto; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: none; font-weight: 500; }
a:hover { text-decoration: underline; }
header.site { background: var(--bg); border-bottom: 1px solid var(--line); position: relative; }
header.site::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--nav), var(--accent)); opacity: .85; }
header.site .wrap { display: flex; align-items: center; gap: 2rem; padding: .9rem 1rem; }
header.site a { color: var(--muted); font-weight: 500; }
header.site a:hover { color: var(--ink); text-decoration: none; }
header.site .brand { font-family: "Outfit Logo", "Inter", sans-serif; color: var(--nav); font-weight: 700; font-size: 1.45rem; letter-spacing: -.01em; line-height: 1; }
header.site nav { display: flex; gap: 1.6rem; font-size: .95rem; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 1rem; }
main.wrap { padding-top: 1.2rem; padding-bottom: 3rem; }
h1 { font-size: 1.9rem; font-weight: 700; letter-spacing: -.02em; margin: .3rem 0 .3rem; }
h2 { font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; margin: 2.2rem 0 .6rem; padding-bottom: .4rem; border-bottom: 1px solid var(--line); }
.crumbs { font-size: .85rem; color: var(--muted); }
.lede { color: var(--muted); margin: .2rem 0 1rem; }
.facts { display: flex; flex-wrap: wrap; gap: .4rem 1.8rem; margin: .9rem 0; padding: .8rem 1rem; background: var(--head); border: 1px solid var(--line); border-radius: var(--radius); }
.facts div { font-size: .85rem; color: var(--muted); } .facts b { display: block; font-size: 1.05rem; color: var(--ink); }
.table-scroll { overflow-x: auto; }
table.stats { font-feature-settings: "tnum"; border-collapse: collapse; width: 100%; font-size: .88rem; font-variant-numeric: tabular-nums; }
table.stats th, table.stats td { padding: .28rem .55rem; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
table.stats thead th { background: var(--head); color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--line); position: sticky; top: 0; }
table.stats tbody tr:nth-child(even) { background: var(--row); }
table.stats tbody tr:hover { background: var(--head); }
table.stats td.n, table.stats th.n { text-align: right; }
table.stats tr.sub td { color: var(--muted); font-size: .82rem; }
table.stats tr.sub td:first-child { padding-left: 1.6rem; }
table.stats tfoot td { font-weight: 600; border-top: 1px solid var(--ink); }
.swatch { display: inline-block; width: .7em; height: .7em; border-radius: 2px; margin-right: .35em; vertical-align: baseline; }
.muted { color: var(--muted); }
.tag { display: inline-block; font-size: .72rem; padding: 0 .4em; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); margin-left: .3em; }
.note { background: var(--warn-bg); color: var(--warn); padding: .65rem .9rem; border-radius: var(--radius); font-size: .88rem; margin: .9rem 0; }
.sources { font-size: .85rem; color: var(--muted); }
.sources li { margin: .25rem 0; }
footer.site { border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; padding: 1rem 0 2rem; }
.years { display: flex; flex-wrap: wrap; gap: .3rem .7rem; font-size: .9rem; margin: .4rem 0 .8rem; }
.years .on { font-weight: 700; color: var(--ink); }
pre.log { background: var(--head); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem; overflow-x: auto; font-size: .82rem; }
.status-succeeded { color: #05690d; } .status-failed { color: #df1b41; } .status-running, .status-doing, .status-todo { color: #635bff; }
.badge { display: inline-block; padding: .05rem .5rem; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.badge.succeeded { background: #d7f7c2; color: #05690d; } .badge.failed { background: #ffe7f2; color: #b3093c; }
.badge.running { background: #e2e0ff; color: #4b44e6; } .badge.interrupted { background: #ebeef1; color: #545969; }
.badge.running::before { content: "● "; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .2; } }
.filters a { margin-right: .7rem; } .filters a.on { font-weight: 700; color: var(--ink); text-decoration: none; }
tr.failed td { background: color-mix(in srgb, #df1b41 5%, var(--bg)); }
form.inline { display: inline; }
button { font: inherit; font-weight: 600; font-size: .88rem; padding: .35rem .9rem; cursor: pointer; color: #fff; background: var(--accent); border: 1px solid var(--accent); border-radius: var(--radius); }
button:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
button.secondary, form.inline + form.inline button { color: var(--link); background: var(--bg); border-color: var(--line); }
button.secondary:hover, form.inline + form.inline button:hover { border-color: var(--accent); background: var(--bg); }
input[type=text], input[type=search], select, textarea { font: inherit; padding: .35rem .6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--ink); }
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
