:root { color-scheme: light dark; --fg: #1a1a1a; --muted: #666; --bg: #fff; --line: #e3e3e3; --accent: #1257a8; }
@media (prefers-color-scheme: dark) {
  :root { --fg: #ececec; --muted: #a0a0a0; --bg: #171717; --line: #333; --accent: #7fb2ff; }
}
* { box-sizing: border-box; }
body { margin: 0; padding: 2rem 1rem; background: var(--bg); color: var(--fg);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
main { max-width: 52rem; margin: 0 auto; }
h1 { font-size: 1.4rem; margin: 0 0 1.5rem; }
a { color: var(--accent); }
nav { margin-bottom: 1rem; font-size: .9rem; color: var(--muted); }
nav a { text-decoration: none; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--line); }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
td.file { display: flex; align-items: center; gap: .75rem; justify-content: space-between; }
a.name { overflow-wrap: anywhere; }
a.dl { flex: none; font-size: .8rem; color: var(--muted); text-decoration: none; white-space: nowrap;
  border: 1px solid var(--line); border-radius: 999px; padding: .15rem .65rem; }
a.dl:hover, a.dl:focus { color: var(--accent); border-color: var(--accent); }
td.size, td.date { color: var(--muted); font-size: .9rem; white-space: nowrap; }
form.login { max-width: 26rem; margin: 3rem auto; }
input[type=password] { width: 100%; padding: .7rem; font-size: 1rem; margin: .4rem 0 1rem;
  border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--fg); }
button { padding: .7rem 1.4rem; font-size: 1rem; border: 0; border-radius: 6px;
  background: var(--accent); color: #fff; cursor: pointer; }
.error { padding: .7rem; border-radius: 6px; background: #fdecea; color: #8a1c12; margin-bottom: 1rem; }
@media (prefers-color-scheme: dark) { .error { background: #3b1512; color: #ffb4ab; } }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.bar button { background: none; color: var(--muted); padding: .3rem; font-size: .85rem; }
.empty { color: var(--muted); padding: 2rem 0; }