:root {
  color-scheme: dark;
  font-family: Inter, "Segoe UI", sans-serif;
  --bg: #07111f;
  --surface: #0f172a;
  --border: #22314d;
  --text: #f8fafc;
  --muted: #9fb5cb;
  --accent: #38bdf8;
  --accent-soft: #082f49;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.app-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar { background: #020617; padding: 1.4rem; display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; }
.eyebrow, .section-label { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.74rem; color: #7dd3fc; }
.sidebar h1 { margin: 0.3rem 0 0.4rem; font-size: 1.45rem; }
.sidebar-copy { color: #cbd5e1; line-height: 1.5; }
.nav-list { display: grid; gap: 0.45rem; }
.nav-item { background: transparent; border: 1px solid transparent; color: #e2e8f0; text-align: left; padding: 0.8rem 0.9rem; border-radius: 12px; }
.nav-item.active { background: rgba(56, 189, 248, 0.14); border-color: rgba(56, 189, 248, 0.25); }
.content { padding: 1.3rem; display: flex; flex-direction: column; gap: 1rem; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; }
.topbar-actions { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.back-link { display: inline-flex; align-items: center; }
.ghost-btn { border: 1px solid var(--border); background: var(--surface); color: var(--text); padding: 0.7rem 0.95rem; border-radius: 999px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 1rem; box-shadow: 0 12px 32px rgba(2, 6, 23, 0.24); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.9rem; }
.charts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 0.9rem; }
.card h3 { margin-top: 0; }
.bars-grid { display: grid; gap: 0.8rem; margin-top: 0.9rem; }
.bar-row { display: grid; grid-template-columns: 100px 1fr 42px; align-items: center; gap: 0.7rem; }
.bar { height: 10px; background: rgba(255,255,255,0.08); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, #38bdf8, #0ea5e9); }
.bar-fill.alt { background: linear-gradient(90deg, #34d399, #059669); }
.bar-fill.accent { background: linear-gradient(90deg, #f59e0b, #d97706); }
.demo-card { border-style: dashed; border-color: rgba(56, 189, 248, 0.35); }
.table-simple { width: 100%; border-collapse: collapse; }
.table-simple th, .table-simple td { text-align: left; padding: 0.65rem 0; border-bottom: 1px solid var(--border); }
.filter-row { display: flex; gap: 0.6rem; }
input[type="search"], select { padding: 0.65rem 0.8rem; border-radius: 999px; border: 1px solid var(--border); background: #0f172a; color: white; }
.view { display: none; }
.view.active { display: block; }
.toast { position: fixed; right: 1rem; bottom: 1rem; background: #020617; color: white; padding: 0.75rem 1rem; border-radius: 999px; opacity: 0; transform: translateY(10px); transition: 0.2s ease; pointer-events: none; z-index: 20; }
.toast.show { opacity: 1; transform: translateY(0); }
.empty-state { color: var(--muted); font-style: italic; padding: 0.6rem 0; }
@media (max-width: 920px) { .app-shell { grid-template-columns: 1fr; } .stats-grid, .charts-grid, .filter-row { grid-template-columns: 1fr; display: grid; } }
