:root {
  --primary: #C9960A;
  --primary-light: #E8B422;
  --primary-dark: #A67A08;
  --bg: #ffffff;
  --bg-subtle: #fafafa;
  --bg-muted: #f4f4f5;
  --border: #e4e4e7;
  --border-subtle: #f0f0f0;
  --text: #0e0c0c;
  --text-muted: #6b7280;
  --text-subtle: #9ca3af;
  --sidebar-bg: #7A4200;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-subtle);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
nav {
  background: var(--sidebar-bg);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0 2rem;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: sticky;
  top: 0;
  z-index: 50;
}
nav img.logo { height: 24px; width: auto; }
nav .nav-divider {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.15);
  margin: 0 0.25rem;
}
nav .nav-title {
  color: rgba(255,255,255,0.82);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
nav .nav-links { margin-left: auto; display: flex; gap: 1.5rem; }
nav .nav-links a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
}
nav .nav-links a:hover { color: white; }
main {
  flex: 1;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 4rem;
}
.section-label {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 2.5rem 0 0.75rem;
}
main > .section-label:first-child { margin-top: 0; }
.page-intro {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 1.25rem;
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.card-header {
  padding: 0.7rem 1.1rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg);
}
.card-header-icon { font-size: 0.95rem; line-height: 1; }
.card-header-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}
.card-body { padding: 0.85rem 1.1rem 1rem; }
.cmd-block { margin-top: 0.75rem; }
.cmd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}
.cmd-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cmd {
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
  overflow-x: auto;
  font-size: 0.75rem;
  line-height: 1.45;
}
.cmd code {
  font-family: 'SF Mono', ui-monospace, Consolas, monospace;
  color: var(--text);
  white-space: pre;
}
.snapshot-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; table-layout: fixed; }
.snapshot-table tr { border-bottom: 1px solid var(--border-subtle); }
.snapshot-table tr:last-child { border-bottom: none; }
.snapshot-table td { padding: 0.7rem 1.1rem; vertical-align: middle; }
.snapshot-file { width: 58%; }
.snapshot-file-name { margin-bottom: 0.2rem; }
.snapshot-file-name a {
  color: var(--primary-dark);
  font-weight: 500;
  text-decoration: none;
  font-size: 0.82rem;
  word-break: break-all;
}
.snapshot-file-name a:hover { color: var(--primary); text-decoration: underline; }
.snapshot-meta-line { font-size: 0.75rem; color: var(--text-subtle); }
.snapshot-meta-label { color: var(--text-muted); font-weight: 500; margin-right: 0.3em; }
.snapshot-info { width: 42%; text-align: right; color: var(--text-muted); }
.snapshot-info-line {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 0.35rem;
  font-size: 0.78rem;
  margin-bottom: 0.2rem;
  white-space: nowrap;
}
.snapshot-sep { color: var(--border); }
.snapshot-size {
  min-width: 4.75rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.snapshot-hash {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: var(--text-subtle);
}
.snapshot-hash .snapshot-meta-label { font-size: 0.72rem; }
.hash-short {
  font-family: 'SF Mono', ui-monospace, Consolas, monospace;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.7rem;
  color: var(--text-muted);
}
.copy-btn {
  background: none;
  border: 1px solid var(--border);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.copy-btn:hover { background: var(--primary); border-color: var(--primary); color: white; }
.mirror-links { padding: 0.85rem 1.1rem 1rem; }
.mirror-group + .mirror-group { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border-subtle); }
.mirror-group-header { margin-bottom: 0.55rem; }
.mirror-group-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.mirror-link {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
  font-size: 0.82rem;
}
.mirror-link:last-child { margin-bottom: 0; }
.mirror-link .label {
  min-width: 5.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}
.mirror-link a {
  color: var(--primary-dark);
  font-weight: 500;
  text-decoration: none;
  word-break: break-all;
}
.mirror-link a:hover { color: var(--primary); text-decoration: underline; }
.empty { padding: 1rem; color: var(--text-muted); font-size: 0.85rem; }
.error { color: #b91c1c; margin-top: 1rem; }
footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.78rem;
  color: var(--text-subtle);
  border-top: 1px solid var(--border);
  background: var(--bg);
}
footer a { color: var(--primary); text-decoration: none; }
footer a:hover { text-decoration: underline; }
