* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 320px 1fr;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111827;
  background: #f8fafc;
}

aside {
  border-right: 1px solid #dbe3ef;
  background: #ffffff;
  padding: 20px;
  overflow: auto;
}

h1 {
  margin: 0 0 18px;
  font-size: 20px;
  line-height: 1.2;
}

.list {
  display: grid;
  gap: 8px;
}

button {
  width: 100%;
  border: 1px solid #dbe3ef;
  background: #ffffff;
  border-radius: 6px;
  padding: 10px 12px;
  color: #111827;
  cursor: pointer;
  text-align: left;
}

button:hover,
button.active {
  border-color: #2563eb;
  background: #eff6ff;
}

main {
  min-width: 0;
  padding: 24px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 16px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.eyebrow {
  color: #64748b;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
}

h2 {
  margin: 4px 0 0;
  font-size: 22px;
  line-height: 1.2;
}

.chart-wrap {
  min-height: 0;
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  padding: 16px;
  height: 520px;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
}

@media (max-width: 760px) {
  body {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  aside {
    border-right: 0;
    border-bottom: 1px solid #dbe3ef;
    max-height: 260px;
  }
}
