:root {
  color-scheme: light;
  --bg: #f7f7f7;
  --fg: #111;
  --muted: #666;
  --line: #ddd;
  --hover: #eee;
  --panel: #fff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

.page {
  width: min(960px, calc(100% - 32px));
  margin: 40px auto;
}

.header {
  margin-bottom: 24px;
}

h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 650;
}

.subtitle {
  margin: 4px 0 0;
  color: var(--muted);
}

.breadcrumbs,
.status,
.listing {
  margin-top: 16px;
}

.breadcrumbs a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.breadcrumbs span {
  color: var(--muted);
  margin: 0 6px;
}

.status {
  min-height: 24px;
  color: var(--muted);
}

.status.error {
  color: #9b1c1c;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--line);
}

.table th,
.table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.table tr:last-child td {
  border-bottom: 0;
}

.table tbody tr:hover {
  background: var(--hover);
}

.name a {
  color: inherit;
  text-decoration: none;
}

.name a:hover {
  text-decoration: underline;
}

.size,
.uploaded {
  color: var(--muted);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .page {
    width: min(100% - 20px, 960px);
    margin: 24px auto;
  }

  .uploaded {
    white-space: normal;
  }
}
