:root {
  color-scheme: light;
  font-family: Inter, Pretendard, "Noto Sans KR", sans-serif;
}

body {
  background: #f3f6fb;
  color: #172033;
  margin: 0;
}

.demo-gallery {
  margin: 0 auto;
  max-width: 1240px;
  padding: 32px 24px 48px;
}

.demo-gallery header {
  margin-bottom: 22px;
}

.demo-gallery h1,
.demo-gallery h2,
.demo-gallery p {
  margin-top: 0;
}

.demo-gallery h1 {
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}

.eyebrow {
  color: #3154d8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.demo-toolbar,
.chart-card,
.result-card {
  background: #fff;
  border: 1px solid #dce3ef;
  border-radius: 16px;
  box-shadow: 0 14px 36px rgba(35, 50, 82, 0.08);
}

.demo-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  padding: 14px 16px;
}

.demo-toolbar label {
  font-weight: 700;
}

.demo-toolbar select,
.demo-toolbar input {
  border: 1px solid #bbc6d9;
  border-radius: 8px;
  min-height: 38px;
  padding: 7px 12px;
}

.demo-toolbar select {
  flex: 1 1 300px;
}

.demo-toolbar input {
  background: #f7f9fc;
  cursor: pointer;
  font-weight: 700;
}

.demo-toolbar input:hover {
  background: #e8eefc;
}

.chart-card,
.result-card {
  padding: 20px;
}

.chart-heading {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.chart-heading h2 {
  margin: 8px 0;
}

.product-badge {
  background: #e9efff;
  border-radius: 999px;
  color: #294cc9;
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 9px;
}

.module-list {
  color: #5b6880;
  font: 12px/1.5 Consolas, monospace;
  max-width: 48%;
  text-align: right;
}

.chart-description {
  color: #5b6880;
  margin-bottom: 12px;
}

.result-card {
  margin-top: 18px;
}

.result-card pre {
  background: #111827;
  border-radius: 10px;
  color: #d8e2f3;
  margin: 0;
  max-height: 320px;
  overflow: auto;
  padding: 16px;
  white-space: pre-wrap;
}

@media (max-width: 720px) {
  .demo-gallery {
    padding: 20px 12px 36px;
  }

  .chart-heading {
    display: block;
  }

  .module-list {
    display: block;
    max-width: none;
    text-align: left;
  }
}
