:root {
  --bg: #050816;
  --surface: #111827;
  --surface-alt: #172033;
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #8b5cf6;
  --accent-2: #22d3ee;
  --border: rgba(148, 163, 184, 0.15);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.18), transparent 30%), var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
code {
  background: rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  padding: 0.15rem 0.4rem;
}
.layout-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  border-right: 1px solid var(--border);
  padding: 2.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: rgba(5, 8, 22, 0.82);
  backdrop-filter: blur(18px);
}
.content-shell {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.page-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
}
.page-header h2, .auth-card h2 { margin: 0.35rem 0; font-size: 2rem; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--accent-2);
  font-weight: 700;
}
.muted { color: var(--muted); }
.nav-list {
  display: grid;
  gap: 0.65rem;
}
.nav-list a, .button {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  background: rgba(17, 24, 39, 0.7);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.nav-list a:hover, .button:hover { transform: translateY(-1px); border-color: rgba(34, 211, 238, 0.35); }
.button.primary {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.95), rgba(34, 211, 238, 0.88));
  border-color: transparent;
  color: #020617;
  font-weight: 700;
}
.actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}
.metric-card, .panel, .auth-card {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.95), rgba(11, 18, 32, 0.9));
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.25rem;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
}
.metric-label { display: block; color: var(--muted); font-size: 0.85rem; }
.metric-value { display: block; font-size: 2rem; margin-top: 0.35rem; }
.grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}
.panel-header h3 { margin: 0; }
.list-stack { display: grid; gap: 0.8rem; }
.list-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  background: rgba(15, 23, 42, 0.55);
}
.pill {
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  background: rgba(34, 211, 238, 0.12);
  color: var(--accent-2);
  border: 1px solid rgba(34, 211, 238, 0.2);
  white-space: nowrap;
  font-size: 0.85rem;
}
.note-list {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.75rem;
  color: var(--muted);
}
.auth-shell {
  min-height: 100%;
  display: grid;
  place-items: center;
}
.auth-card {
  width: min(460px, 92vw);
  display: grid;
  gap: 1rem;
}
.auth-card label { display: grid; gap: 0.4rem; }
.auth-card input {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.8);
  color: var(--text);
}
.error-box {
  padding: 0.8rem 1rem;
  border-radius: 14px;
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
  border: 1px solid rgba(239, 68, 68, 0.28);
}
@media (max-width: 980px) {
  .layout-shell { grid-template-columns: 1fr; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--border); }
  .grid-two { grid-template-columns: 1fr; }
  .page-header { flex-direction: column; align-items: flex-start; }
}
