:root {
  color-scheme: light;
  --bg: #fbfbfa;
  --panel: #ffffff;
  --text: #151515;
  --muted: #6d6d6d;
  --line: #d9d9d6;
  --accent: #0f62fe;
  --danger: #b00020;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

body {
  padding: 24px;
}

.shell {
  max-width: 1100px;
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1 {
  margin: 4px 0 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
}

.meta {
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

.app {
  padding: 16px 0 0;
}

.pathbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
  color: var(--muted);
}

.pathbar a {
  color: var(--accent);
  text-decoration: none;
}

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

.notice {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.notice.error {
  color: var(--danger);
}

.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: middle;
}

.table th {
  color: var(--muted);
  font-weight: 400;
}

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

.name a,
.name button {
  color: var(--accent);
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}

.name button.locked::after {
  content: " [locked]";
  color: var(--muted);
}

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

.footer {
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 720px) {
  body {
    padding: 12px;
  }

  .topbar {
    align-items: start;
    flex-direction: column;
  }

  .meta {
    text-align: left;
    white-space: normal;
  }

  .table th:nth-child(3),
  .table td:nth-child(3),
  .table th:nth-child(4),
  .table td:nth-child(4) {
    display: none;
  }
}
