:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #1a1a1a;
  --muted: #666;
  --border: #ddd;
  --accent: #2563eb;
  --error: #b91c1c;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17181c;
    --fg: #e6e6e6;
    --muted: #9a9a9a;
    --border: #333;
    --accent: #6ea8ff;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
main { max-width: 720px; margin: 0 auto; padding: 24px 16px 60px; }
.center { display: flex; flex-direction: column; align-items: center; padding-top: 15vh; }
h1 { font-size: 1.4rem; margin-bottom: 1.5rem; }
.login-form { display: flex; flex-direction: column; gap: 12px; width: 260px; }
.login-form label { display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; color: var(--muted); }
input[type=text], input[type=password] {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--fg);
  font-size: 1rem;
}
button {
  padding: 8px 14px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
}
.link-btn { background: none; border: none; color: var(--muted); text-decoration: underline; padding: 0; cursor: pointer; }
.error { color: var(--error); font-size: 0.9rem; }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.brand { font-weight: 600; }
.breadcrumbs { margin-bottom: 12px; font-size: 0.9rem; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.disc-info { font-size: 0.85rem; color: var(--muted); margin-bottom: 16px; }
.listing { width: 100%; border-collapse: collapse; }
.listing td { padding: 6px 4px; border-bottom: 1px solid var(--border); }
.listing a { color: var(--fg); text-decoration: none; }
.listing a:hover { text-decoration: underline; }
.listing a.dir { font-weight: 600; color: var(--accent); }
.listing td.size { text-align: right; color: var(--muted); white-space: nowrap; width: 90px; }
.empty { color: var(--muted); padding: 40px 0; text-align: center; }
a { color: var(--accent); }
