:root {
  color-scheme: light;
  --ink: #12231e;
  --muted: #587169;
  --line: #d8e2dc;
  --paper: #f5f7f2;
  --panel: #ffffff;
  --accent: #007c63;
  --accent-dark: #005a48;
  --warm: #f5b348;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: radial-gradient(circle at 95% 0, #d7f0e5 0, transparent 31rem), var(--paper); }
.shell { width: min(1200px, calc(100% - 2rem)); margin: 0 auto; padding: 4.5rem 0 2rem; }
.hero { max-width: 780px; }
.eyebrow { margin: 0 0 .7rem; color: var(--accent); font-weight: 750; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.5rem, 7vw, 5rem); line-height: .95; letter-spacing: -.055em; }
.lede { max-width: 600px; color: var(--muted); line-height: 1.65; font-size: 1.08rem; }
.metrics { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }
.metrics div { min-width: 150px; padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: .7rem; background: color-mix(in srgb, var(--panel) 85%, transparent); }
.metrics strong, .metrics span { display: block; }
.metrics strong { font-size: 1.3rem; letter-spacing: -.03em; }
.metrics span { margin-top: .15rem; color: var(--muted); font-size: .8rem; }
.controls { display: grid; grid-template-columns: minmax(240px, 1fr) auto; gap: 1rem 1.5rem; margin: 4rem 0 1.25rem; align-items: end; }
.search-label, .status-label { display: grid; gap: .4rem; color: var(--muted); font-size: .8rem; font-weight: 700; }
input, select { width: 100%; min-height: 2.8rem; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: .45rem; color: var(--ink); background: var(--panel); font: inherit; }
input:focus, select:focus { outline: 3px solid color-mix(in srgb, var(--accent) 25%, transparent); border-color: var(--accent); }
.year-filter { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .45rem; }
button { padding: .58rem .75rem; border: 1px solid var(--line); border-radius: .42rem; color: var(--ink); background: var(--panel); font: inherit; cursor: pointer; }
button:hover { border-color: var(--accent); color: var(--accent-dark); }
button:focus-visible, a:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 30%, transparent); outline-offset: 2px; }
button:disabled { cursor: not-allowed; opacity: .5; }
.year-button { display: inline-flex; align-items: center; gap: .45rem; }
.year-button span { color: var(--muted); font-size: .75rem; }
.year-button.active { border-color: var(--accent); color: white; background: var(--accent); }
.year-button.active span { color: #dff5ed; }
.results { overflow: hidden; border: 1px solid var(--line); border-radius: .75rem; background: var(--panel); box-shadow: 0 12px 30px rgb(18 35 30 / 5%); }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.results-bar p { margin: 0; color: var(--muted); font-size: .9rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: .8rem 1.2rem; color: var(--muted); background: #f5f8f6; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
td { padding: .9rem 1.2rem; border-top: 1px solid #edf1ef; font-size: .9rem; vertical-align: middle; }
tr:hover td { background: #f8fcfa; }
td strong, .owner { display: block; }
.owner { margin-top: .15rem; color: var(--muted); font-size: .78rem; }
a { color: var(--accent-dark); font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.badge { display: inline-block; padding: .28rem .45rem; border-radius: 999px; background: #e9f6f1; color: #076a55; font-size: .74rem; font-weight: 700; white-space: nowrap; }
.badge.source-archive-fallback { background: #fff0d5; color: #925b00; }
.badge.bare-shallow-clone { background: #e5efff; color: #245da6; }
.pagination { display: flex; justify-content: center; align-items: center; gap: .8rem; padding: 1.1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
footer { max-width: 800px; margin: 1.7rem auto 0; color: var(--muted); font-size: .82rem; line-height: 1.55; }
footer p { margin: .5rem 0; }
@media (max-width: 650px) { .shell { width: min(100% - 1.25rem, 1200px); padding-top: 2.5rem; } .controls { grid-template-columns: 1fr; margin-top: 2.7rem; } .status-label { grid-row: 2; } th:nth-child(3), td:nth-child(3) { display: none; } td, th { padding: .75rem; } }
