@font-face {
  font-family: Space Grotesk;
  src: url(/assets/space-grotesk-400.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
}

* { box-sizing: border-box; }
:root {
  color-scheme: dark;
  --bg: #141312;
  --panel: #201d1b;
  --text: #f6eee7;
  --muted: #bfb2a6;
  --accent: #ff8b63;
  --line: #49413b;
}
body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.55 "Space Grotesk", system-ui, sans-serif; }
button, input { font: inherit; }
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.masthead { min-height: 72px; padding: 12px clamp(16px, 5vw, 75px); display: flex; align-items: center; flex-wrap: wrap; gap: 12px 30px; border-bottom: 1px solid var(--line); }
.masthead nav { display: flex; gap: 20px; flex-wrap: wrap; margin-right: auto; }
.masthead nav a { color: var(--muted); text-decoration: none; }
.masthead nav a[aria-current] { color: var(--text); text-decoration: underline; text-underline-offset: 5px; }
.brand { font-size: 1.6rem; font-weight: 750; line-height: 1.1; }
.brand span { color: var(--accent); }
main { max-width: 1320px; padding: clamp(24px, 5vw, 68px) clamp(16px, 4vw, 54px); margin: 0 auto; }
h1, h2 { line-height: 1.14; }
h1 { margin: 0 0 8px; font-size: clamp(1.85rem, 4vw, 2.9rem); overflow-wrap: anywhere; }
h2 { margin: 42px 0 12px; font-size: 1.35rem; }
.muted, dt, .files small { color: var(--muted); }
.page-heading { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between; margin-bottom: 24px; }
main > a + .page-heading { margin-top: 18px; }
.page-heading p { margin: 0; }
button, .button { min-height: 40px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); color: var(--text); cursor: pointer; white-space: nowrap; }
.primary { display: inline-grid; place-items: center; border-color: var(--accent); background: var(--accent); color: #201510; text-decoration: none; font-weight: 700; }
.primary:hover { background: #ffac8c; }
input { width: 100%; min-height: 42px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); color: var(--text); }
label { display: block; margin-bottom: 6px; }
.login { width: min(100%, 440px); background: var(--panel); border: 1px solid var(--line); padding: clamp(20px, 4vw, 42px); margin: 5vh auto 0; }
.login form { margin-top: 22px; }
.login button { margin-top: 16px; }
.problem { color: #ffab99; }
.search { margin: 0 0 22px; width: min(100%, 520px); }
.search div { display: flex; gap: 8px; }
.table-wrap { max-width: 100%; overflow-x: auto; border-top: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; text-align: left; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 700; color: var(--muted); }
td:first-child, th:first-child { padding-left: 0; }
td:first-child { white-space: nowrap; }
.details { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); gap: 14px 20px; border: 1px solid var(--line); padding: 18px; background: var(--panel); }
.details dd { margin: 4px 0 0; overflow-wrap: anywhere; }
.files { padding-left: 20px; }
.files li { margin-bottom: 10px; }
.files small { display: block; overflow-wrap: anywhere; }
.empty { border: 1px solid var(--line); background: var(--panel); padding: 20px; color: var(--muted); }
.pager { display: flex; gap: 16px; padding-top: 20px; color: var(--muted); }
