:root {
  --ink: #1f1f1f;
  --muted: #5f6368;
  --line: #e0e0e0;
  --bg: #fff;
  --rail: #f8f9fa;
  --hover: #f1f3f4;
  --active: #e8f0fe;
  --link: #0e20b2;
  --accent: #ee137b;
  --header: 64px;
  --rail-w: 256px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font: 14px/1.45 "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
a { color: inherit; text-decoration: none; }
header {
  height: var(--header);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 16px 0 12px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.search {
  flex: 1;
  max-width: 720px;
  height: 46px;
  border: 0;
  border-radius: 8px;
  background: var(--rail);
  padding: 0 16px 0 44px;
  font: inherit;
  outline: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%235f6368' stroke-width='2'><circle cx='8' cy='8' r='6'/><path d='M13 13l4 4'/></svg>");
  background-repeat: no-repeat;
  background-position: 16px 50%;
}
.search:focus { background-color: #fff; box-shadow: 0 1px 6px rgba(32,33,36,.18); }
.layout { display: flex; min-height: calc(100% - var(--header)); }
nav {
  width: var(--rail-w);
  padding: 12px 8px;
  background: var(--bg);
}
nav a, nav .nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 40px;
  padding: 0 16px;
  border-radius: 0 20px 20px 0;
  color: var(--ink);
}
nav a:hover { background: var(--hover); }
nav a.active { background: var(--active); color: var(--link); font-weight: 600; }
main { flex: 1; padding: 8px 24px 48px; min-width: 0; }
.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  font-size: 18px;
  font-weight: 500;
}
.crumb a { color: var(--muted); }
.crumb a:hover { text-decoration: underline; }
.toolbar { color: var(--muted); font-size: 12px; margin: 0 0 8px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 500; font-size: 12px; }
tr:hover td { background: var(--hover); }
.name { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.name svg, .name img.file-icon { width: 24px; height: 24px; flex: 0 0 24px; }
.hash, .meta {
  color: var(--muted);
  font-size: 12px;
  margin: 16px 0 0;
}
.hash { font-family: Consolas, ui-monospace, monospace; word-break: break-all; }
.note {
  margin-top: 20px;
  padding: 12px 14px;
  background: var(--rail);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
}
@media (max-width: 800px) {
  nav { display: none; }
  .brand { min-width: auto; }
  .search { max-width: none; }
  th:nth-child(3), td:nth-child(3) { display: none; }
}
