body {
  font-family: system-ui, sans-serif;
  background: #f7f7fb;
  margin: 0;
  padding: 2rem;
  color: #222;
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  align-items: center;
}

.card,
.panel {
  background: #fff;
  border-radius: 12px;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}

.center {
  text-align: center;
}

.muted {
  color: #666;
}

.question {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.question:last-child {
  border-bottom: none;
}

.scale {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: .6rem;
  flex-wrap: wrap;
}

.option {
  display: flex;
  align-items: center;
  gap: .35rem;
}

button,
.btn,
select {
  font: inherit;
}

button,
.btn {
  padding: .6rem 1rem;
  border-radius: 6px;
  border: none;
  background: #2f5bea;
  color: white;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.btn.secondary {
  background: #555;
}

#result {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 10px;
  color: white;
  display: none;
  text-align: center;
}

.D { background: #d32f2f; }
.I { background: #f9a825; color: #111; }
.S { background: #388e3c; }
.C { background: #1976d2; }

canvas {
  max-width: 700px;
  margin: 2rem auto;
  display: block;
}

#totals {
  font-weight: 600;
  margin-top: 1rem;
}

#percentages {
  margin-top: 1rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.color-box {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: .3rem;
  margin-right: .4rem;
  vertical-align: middle;
}