* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f6f6f7;
  --panel: #ffffff;
  --border: #dcdde0;
  --text: #2b2d31;
  --muted: #6b6f76;
  --accent: #3a6ea5;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

header {
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  display: flex;
  align-items: center;
  height: 48px;
}

header .brand {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.2px;
}

header nav {
  margin-left: 32px;
  display: flex;
  gap: 20px;
}

header nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
}

header nav a:hover { color: var(--text); }

header .status {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3fa34d;
  display: inline-block;
}

main {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

h1 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
}

.subtitle {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 28px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 4px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th {
  text-align: left;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

td {
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

tr:last-child td { border-bottom: none; }

td.name { display: flex; align-items: center; gap: 8px; }

td.size, th.size { text-align: right; width: 90px; }
td.date, th.date { width: 150px; color: var(--muted); }

.icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  border-radius: 2px;
  background: #c7cad0;
  flex-shrink: 0;
}

.mono {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

a.file-link {
  color: var(--accent);
  text-decoration: none;
}
a.file-link:hover { text-decoration: underline; }

.section-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 32px 0 10px;
}

.section-title:first-child { margin-top: 0; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 8px;
}

.stat {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 14px 16px;
}

.stat .num {
  font-size: 22px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.stat .label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

form.login {
  max-width: 320px;
  margin: 60px auto 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px;
}

form.login h2 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

form.login p.hint {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 18px;
}

label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
  margin-top: 12px;
}

label:first-of-type { margin-top: 0; }

input[type="text"], input[type="password"] {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 13px;
  background: #fbfbfc;
}

input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }

button {
  margin-top: 18px;
  width: 100%;
  padding: 9px;
  border: none;
  border-radius: 3px;
  background: var(--accent);
  color: white;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

button:hover { background: #325f8f; }

.error-code {
  font-size: 64px;
  font-weight: 700;
  color: #c7cad0;
  line-height: 1;
}

.breadcrumb {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
}

.breadcrumb a { color: var(--muted); }

footer {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  padding: 30px 0 10px;
}

code {
  font-family: var(--mono);
  background: #eef0f2;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 12px;
}

pre {
  background: #1e1f22;
  color: #d4d6d9;
  padding: 14px 16px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 12px;
  overflow-x: auto;
  line-height: 1.6;
}
