:root {
  --border: #d8d8d8;
  --text: #1a1a1a;
  --muted: #666;
  --accent: #1a3e6e;
  --error: #b3261e;
}

* { box-sizing: border-box; }

body {
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  margin: 0;
  background: #fafafa;
}

main { max-width: 720px; margin: 0 auto; padding: 24px 16px; }

h1 { font-size: 1.25rem; margin: 0 0 16px; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.topbar-right { display: flex; align-items: center; gap: 12px; font-weight: 400; }

.inline-form { display: inline; margin: 0; }

.topbar button {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  border-radius: 4px;
  padding: 4px 10px;
  cursor: pointer;
}

.breadcrumb { margin-bottom: 16px; color: var(--muted); }
.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.file-list { list-style: none; padding: 0; }
.file-list li {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 8px;
  background: #fff;
}
.file-list a { color: var(--accent); text-decoration: none; font-weight: 500; }
.file-list a:hover { text-decoration: underline; }

.file-table { width: 100%; border-collapse: collapse; background: #fff; }
.file-table th, .file-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.file-table a { color: var(--accent); font-weight: 600; text-decoration: none; }
.file-table a:hover { text-decoration: underline; }

.empty { color: var(--muted); }

/* Login page */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}
.login-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  width: 320px;
}
.login-box h1 { font-size: 1.1rem; text-align: center; }
.login-box form { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.login-box label { font-size: 0.85rem; color: var(--muted); }
.login-box input {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 1rem;
  margin-bottom: 8px;
}
.login-box button {
  margin-top: 8px;
  padding: 10px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
}
.error { color: var(--error); font-size: 0.9rem; }
