:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #5f6b7a;
  --border: #d9e2ec;
  --accent: #2f6fed;
  --accent-soft: #e8f0ff;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.page-shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 20px;
}

.hero h1 {
  margin: 0 0 8px 0;
  font-size: 2rem;
}

.hero p, .muted {
  color: var(--muted);
}

.hero-note {
  background: var(--accent-soft);
  border: 1px solid #c9d9ff;
  border-radius: 14px;
  padding: 14px 16px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(31, 41, 55, 0.06);
}

.control-panel h2,
.report-panel h2 {
  margin-top: 0;
}

.checkbox-grid {
  display: grid;
  gap: 8px;
  max-height: 65vh;
  overflow: auto;
  padding-right: 4px;
  margin-top: 14px;
}

.check-row {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.check-row em {
  font-size: 0.75rem;
  color: var(--muted);
  font-style: normal;
}

.disabledish {
  background: #fafbfc;
}

.button-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

button {
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.95rem;
  cursor: pointer;
  background: var(--accent);
  color: white;
}

button.secondary {
  background: #eef2f7;
  color: var(--text);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 10px;
}

.summary-pill {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 8px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.chart-wrap {
  position: relative;
  min-height: 560px;
}

.empty-state {
  margin-top: 12px;
  padding: 14px;
  border-radius: 12px;
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
}

.hidden {
  display: none;
}

@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .hero {
    flex-direction: column;
  }

  .hero-note {
    min-width: 0;
    width: 100%;
  }
}
