* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: linear-gradient(180deg, #08111f 0%, #0f172a 100%);
  color: #f8fafc;
}
button { font: inherit; }
.app-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}
.card {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(59, 130, 246, 0.16);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}
.hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-end;
}
.select-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 220px;
  color: #bfdbfe;
  font-size: 12px;
}
.select-wrap select {
  background: #172554;
  color: #dbeafe;
  border: 1px solid #2563eb;
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #93c5fd;
  margin-bottom: 8px;
}
.hero h1 { margin: 0 0 8px; font-size: 32px; }
.muted { color: #94a3b8; }
.secondary-button, .tab-button {
  background: #172554;
  color: #dbeafe;
  border: 1px solid #2563eb;
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
}
.secondary-button:hover, .tab-button:hover { background: #1d4ed8; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.summary-item {
  padding: 14px;
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.14);
}
.summary-label { font-size: 12px; color: #93c5fd; text-transform: uppercase; letter-spacing: 0.08em; }
.summary-value { margin-top: 8px; font-size: 26px; font-weight: 700; }
.tabs { margin-bottom: 16px; }
.tab-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tab-button.active { background: #2563eb; }
.parent-only { display: none; }
body.role-parent .parent-only { display: inline-flex; }
.panel-grid { display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.panel-grid.active { display: grid; }
.wide-card { grid-column: 1 / -1; }
.list { display: grid; gap: 12px; }
.list-item {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
  padding: 14px;
  background: rgba(30, 41, 59, 0.65);
}
.list-item h3, .card h2 { margin-top: 0; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.badge {
  background: #1e3a8a;
  color: #dbeafe;
  border-radius: 999px;
  font-size: 12px;
  padding: 4px 10px;
}
.kv { display: grid; gap: 8px; }
.kv div { display: flex; justify-content: space-between; gap: 12px; }
.kv strong { color: #bfdbfe; }
.empty { color: #64748b; }
@media (max-width: 820px) {
  .hero { flex-direction: column; }
  .panel-grid { grid-template-columns: 1fr; }
}
