:root {
  --bg: #0b1220;
  --panel: #111b2e;
  --panel-alt: #17233b;
  --text: #e8edf8;
  --muted: #a7b3cc;
  --accent: #4ea1ff;
  --border: #23314d;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(180deg, #09101c 0%, var(--bg) 35%, #070d18 100%);
  color: var(--text);
}

.site-header,
.site-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

h1 { margin: 0; font-size: 1.8rem; }
.subtitle { margin: 0.25rem 0 0; color: var(--muted); }

.status-chip {
  background: var(--panel-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.dashboard {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  min-height: 180px;
}

.card h2 {
  margin-top: 0;
  font-size: 1.05rem;
  color: #d8e4fa;
}

.card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.card li { margin-bottom: 0.45rem; color: var(--text); }
.loading, .muted { color: var(--muted); }

.error {
  background: rgba(255, 116, 116, 0.12);
  border: 1px solid rgba(255, 116, 116, 0.45);
  color: #ffb3b3;
  border-radius: 8px;
  padding: 0.8rem;
}

.reports-card {
  grid-column: 1 / -1;
}

.reports-heading {
  max-width: 760px;
}

.reports-intro {
  margin: -0.25rem 0 1rem;
  color: var(--muted);
  line-height: 1.5;
}

.reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.report-embed {
  overflow: hidden;
  background: rgba(23, 35, 59, 0.6);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.report-header h3 {
  margin: 0;
  color: #d8e4fa;
  font-size: 1rem;
}

.report-header a {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.report-header a:hover,
.report-header a:focus {
  color: #8fc3ff;
}

.report-embed iframe {
  display: block;
  width: 100%;
  height: 460px;
  border: 0;
  background: #ffffff;
}

@media (max-width: 640px) {
  .site-header { flex-direction: column; align-items: stretch; }
  h1 { font-size: 1.5rem; }

  .reports-grid {
    grid-template-columns: 1fr;
  }

  .report-header {
    flex-direction: column;
  }

  .report-header a {
    white-space: normal;
  }

  .report-embed iframe {
    height: 380px;
  }
}
