.pe-app {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
  box-sizing: border-box;
}
.pe-title {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 28px;
}
.pe-scale {
  margin-bottom: 18px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 10px;
  line-height: 1.8;
  font-size: 14px;
}
.pe-progress-wrap {
  margin-bottom: 18px;
}
.pe-progress-bar {
  width: 100%;
  height: 10px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}
#pe-progress-fill {
  display: block;
  width: 0%;
  height: 100%;
  background: #2563eb;
  transition: width .25s ease;
}
.pe-progress-text {
  margin-top: 8px;
  font-size: 14px;
}
.pe-question-box {
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  min-height: 230px;
}
.pe-q-count {
  font-size: 14px;
  color: #475569;
  margin-bottom: 10px;
}
.pe-q-text {
  font-size: 22px;
  line-height: 1.6;
  margin-bottom: 18px;
}
.pe-options {
  display: grid;
  gap: 10px;
}
.pe-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  cursor: pointer;
}
.pe-option input {
  margin: 0;
}
.pe-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}
.pe-btn {
  appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 16px;
  cursor: pointer;
}
.pe-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.pe-btn-primary {
  background: #2563eb;
  color: #fff;
}
.pe-btn-secondary {
  background: #e5e7eb;
  color: #111827;
}
.pe-result {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}
#peChart {
  margin-top: 20px;
  max-width: 100%;
}
.pe-error {
  color: #b91c1c;
}
@media (max-width: 640px) {
  .pe-app {
    padding: 14px;
  }
  .pe-title {
    font-size: 24px;
  }
  .pe-q-text {
    font-size: 18px;
  }
  .pe-nav {
    flex-direction: column;
  }
  .pe-btn {
    width: 100%;
  }
}
