:root {
  --bg: #0f1419; --panel: #1a212b; --panel-border: #2a3441;
  --text: #e6edf3; --muted: #9aa7b4; --accent: #4cc2ff; --null: #5c6875;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
       background: var(--bg); color: var(--text); line-height: 1.5; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 36px 20px 64px; }
h1 { margin: 0 0 8px; font-size: 1.8rem; }
h2 { margin: 28px 0 6px; font-size: 1.25rem; }
a { color: var(--accent); }
.repo-link { margin: 6px 0 0; font-size: 0.85rem; }
.repo-link a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; }
.repo-link a:hover { color: var(--accent); }
.lede { color: var(--muted); max-width: 75ch; margin: 10px 0 16px; }
.back { margin: 0 0 10px; font-size: 0.9rem; }
.back a { text-decoration: none; color: var(--muted); }
.back a:hover { color: var(--accent); }
.crumbs { font-size: 0.9rem; color: var(--muted); margin: 0 0 12px; }
.crumbs a { text-decoration: none; }
.blurb { color: var(--muted); font-size: 0.92rem; max-width: 80ch; margin: 0 0 10px; }
.status { color: var(--muted); font-size: 0.9rem; }

table.index { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin-bottom: 8px; }
table.index th, table.index td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--panel-border); vertical-align: top; }
table.index th { color: var(--muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: .03em; }
table.index td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.index th.num { text-align: right; }
table.index td.desc { color: var(--muted); font-size: 0.86rem; }
table.index a.tbl { font-weight: 600; text-decoration: none; }
table.index a.tbl:hover { text-decoration: underline; }
table.index .links a { font-size: 0.82rem; margin-right: 8px; white-space: nowrap; }

.panel { background: var(--panel); border: 1px solid var(--panel-border); border-radius: 12px; padding: 16px 18px; margin: 12px 0; }
.meta { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: 0.9rem; margin: 6px 0 10px; }
.meta b { color: var(--text); }
.downloads a { display: inline-block; margin: 2px 12px 2px 0; font-size: 0.88rem; }
.cols { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; }
.cols span { border: 1px solid var(--panel-border); border-radius: 6px; padding: 1px 8px; font-size: 0.8rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.cols span i { color: var(--muted); font-style: normal; margin-left: 6px; }

.grid-wrap { overflow: auto; max-height: 70vh; border: 1px solid var(--panel-border); border-radius: 10px; background: #0b0f14; }
table.grid { border-collapse: separate; border-spacing: 0; font-size: 0.82rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
table.grid th { position: sticky; top: 0; background: var(--panel); color: var(--muted); text-align: left; padding: 6px 10px;
                border-bottom: 1px solid var(--panel-border); border-right: 1px solid var(--panel-border); white-space: nowrap; z-index: 1; }
table.grid th small { display: block; font-weight: 400; color: var(--null); font-size: 0.72rem; }
table.grid td { padding: 4px 10px; border-bottom: 1px solid #161c25; border-right: 1px solid #161c25; white-space: nowrap; max-width: 420px; overflow: hidden; text-overflow: ellipsis; }
table.grid td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.grid td.null { color: var(--null); font-style: italic; }
table.grid td.rownum, table.grid th.rownum { color: var(--null); text-align: right; position: sticky; left: 0; background: var(--panel); z-index: 1; }
table.grid tr:hover td { background: #121923; }
table.grid tr:hover td.rownum { background: #1f2834; }

footer { margin-top: 40px; color: var(--muted); font-size: 0.85rem; }
@media (max-width: 700px) {
  table.index td.desc, table.index th.desc { display: none; }
}
