:root {
  --bg: #0b1020;
  --panel: rgba(15, 23, 42, 0.88);
  --panel-strong: #111a31;
  --line: rgba(148, 163, 184, 0.18);
  --text: #eef2ff;
  --muted: #a5b4cf;
  --accent: #7dd3fc;
  --accent-2: #c084fc;
  --green: #86efac;
  --amber: #fcd34d;
  --red: #fca5a5;
  --shadow: 0 20px 60px rgba(2, 6, 23, 0.45);
  --radius: 22px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(125, 211, 252, 0.14), transparent 30%),
    radial-gradient(circle at top right, rgba(192, 132, 252, 0.14), transparent 30%),
    linear-gradient(180deg, #09111f 0%, #0f172a 100%);
}
.shell {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 100vh;
}
.sidebar {
  padding: 28px;
  border-right: 1px solid var(--line);
  background: rgba(9, 17, 31, 0.82);
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100vh;
}
.content {
  padding: 28px;
}
.hero, .panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 20px;
}
.panel { padding: 20px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 2rem; margin-bottom: 8px; }
h2 { font-size: 1.25rem; margin-bottom: 0; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  color: var(--accent);
  margin-bottom: 8px;
}
.muted, .small { color: var(--muted); }
.small { font-size: 0.85rem; }
.filters { display: grid; gap: 12px; }
label span { display: block; font-size: 0.9rem; margin-bottom: 6px; color: var(--muted); }
select, input {
  width: 100%;
  background: #0b1327;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
}
.button {
  border: 1px solid var(--line);
  background: #172445;
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
}
.button.subtle { background: transparent; }
.source-head, .section-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.hero-pills, .kpi-grid, .grid { display: grid; gap: 16px; }
.hero-pills { grid-template-columns: repeat(3, auto); }
.pill, .tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 0.85rem;
}
.kpi-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 20px;
}
.kpi-card {
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.kpi-card strong { display: block; font-size: 1.8rem; margin-bottom: 8px; }
.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 20px; }
.stack-list { display: grid; gap: 12px; }
.list-item, .timeline-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.55);
}
.list-item-head, .timeline-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.status-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  border: 1px solid transparent;
}
.badge.good { color: #d1fae5; background: rgba(16, 185, 129, 0.15); border-color: rgba(16,185,129,0.25); }
.badge.warn { color: #fde68a; background: rgba(245, 158, 11, 0.15); border-color: rgba(245,158,11,0.25); }
.badge.danger { color: #fecaca; background: rgba(239, 68, 68, 0.15); border-color: rgba(239,68,68,0.25); }
.badge.neutral { color: #dbeafe; background: rgba(96, 165, 250, 0.15); border-color: rgba(96,165,250,0.25); }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th { color: var(--muted); font-weight: 600; font-size: 0.85rem; }
tr:hover td { background: rgba(30, 41, 59, 0.35); }
.timeline { display: grid; gap: 12px; }
.progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.15);
  overflow: hidden;
  margin-top: 12px;
}
.progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.controls-panel, .source-panel { margin-top: 20px; }
@media (max-width: 1120px) {
  .shell, .two-up, .kpi-grid, .hero { grid-template-columns: 1fr; display: grid; }
  .sidebar { position: static; min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .content, .sidebar { padding: 18px; }
  .hero-pills { grid-template-columns: 1fr; }
}
