:root{
  --bg:#0A0E14;
  --panel:#12161F;
  --panel-alt:#161B26;
  --line:#1E2430;
  --text:#E7EAF0;
  --muted:#8B94A3;
  --tr:#00D9C0;
  --us:#FFB020;
  --up:#28C787;
  --down:#FF5C5C;
  --font-display:'Space Grotesk', sans-serif;
  --font-mono:'IBM Plex Mono', monospace;
  --font-body:'Inter', sans-serif;
}
*{box-sizing:border-box; margin:0; padding:0;}
html,body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  min-height:100%;
  font-size:15px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit; text-decoration:none; transition:color 0.18s ease;}

/* ---------- Entry animations ---------- */
@keyframes fadeUp{
  from{ opacity:0; transform:translateY(10px); }
  to{ opacity:1; transform:translateY(0); }
}
@keyframes fadeIn{
  from{ opacity:0; }
  to{ opacity:1; }
}
.main > *{
  animation:fadeUp 0.5s ease both;
}
.main > *:nth-child(1){ animation-delay:0.02s; }
.main > *:nth-child(2){ animation-delay:0.08s; }
.main > *:nth-child(3){ animation-delay:0.14s; }
.main > *:nth-child(4){ animation-delay:0.20s; }
.rail{ animation:fadeIn 0.4s ease both; }
tbody tr{ animation:fadeUp 0.35s ease both; }
tbody tr:nth-child(1){ animation-delay:0.03s; }
tbody tr:nth-child(2){ animation-delay:0.06s; }
tbody tr:nth-child(3){ animation-delay:0.09s; }
tbody tr:nth-child(4){ animation-delay:0.12s; }
tbody tr:nth-child(5){ animation-delay:0.15s; }
tbody tr:nth-child(6){ animation-delay:0.18s; }
tbody tr:nth-child(7){ animation-delay:0.21s; }
tbody tr:nth-child(8){ animation-delay:0.24s; }
tbody tr:nth-child(n+9){ animation-delay:0.27s; }

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration:0.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:0.01ms !important;
  }
}

/* ---------- Shell shared across pages ---------- */
.shell{
  display:grid;
  grid-template-columns:220px 1fr;
  min-height:100vh;
}
@media (max-width:900px){
  .shell{ grid-template-columns:1fr; }
  .rail{ display:none; }
}

.rail{
  background:var(--panel);
  border-right:1px solid var(--line);
  padding:22px 16px;
  display:flex;
  flex-direction:column;
  gap:26px;
  position:sticky;
  top:0;
  height:100vh;
}
.brand{
  font-family:var(--font-display);
  font-weight:700;
  font-size:17px;
  letter-spacing:-0.02em;
}
.brand span{ color:var(--tr); }
.nav-label{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:0.08em;
  color:var(--muted);
  margin-bottom:8px;
}
.nav-links{ display:flex; flex-direction:column; gap:2px; }
.nav-links a{
  padding:9px 12px;
  font-size:13.5px;
  color:var(--muted);
  border-radius:5px;
  transition:background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.nav-links a:hover{ background:var(--panel-alt); color:var(--text); transform:translateX(3px); }
.nav-links a.current{ color:var(--text); background:var(--panel-alt); box-shadow:inset 2px 0 0 var(--tr); }

.main{
  padding:28px 32px;
  overflow-y:auto;
}
.main-head{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  margin-bottom:24px;
  flex-wrap:wrap;
  gap:10px;
}
.main-head h1{
  font-family:var(--font-display);
  font-size:22px;
  font-weight:600;
  letter-spacing:-0.01em;
}
.main-head .updated{
  font-family:var(--font-mono);
  font-size:12px;
  color:var(--muted);
}
.main-head .subtitle{
  font-size:13.5px;
  color:var(--muted);
  margin-top:5px;
  line-height:1.6;
  max-width:620px;
}

.empty-note{
  font-size:12.5px;
  color:var(--muted);
  line-height:1.7;
  padding:14px 16px;
  background:var(--panel-alt);
  border-radius:5px;
  border:1px solid var(--line);
}