* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #fff;
  color: #1a1a1a;
  padding: 20px;
  min-height: 100vh;
}

.container {
  max-width: 600px;
  margin: 0 auto;
}

.header {
  margin-bottom: 32px;
}

h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}

.role-toggle {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.role-btn {
  flex: 1;
  max-width: 150px;
  padding: 12px 24px;
  border: 2px solid #1a1a1a;
  background: #fff;
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.role-btn.active {
  background: #1a1a1a;
  color: #fff;
}

.role-btn:active {
  transform: scale(0.98);
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.check-btn {
  width: 100%;
  padding: 16px 32px;
  margin-bottom: 32px;
  border: 2px solid #1a1a1a;
  background: #1a1a1a;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.check-btn:active {
  transform: scale(0.98);
}

.check-item {
  border: 2px solid #e0e0e0;
  padding: 16px;
  transition: all 0.2s;
  cursor: pointer;
}

.check-item:active {
  transform: scale(0.99);
}

.check-item.checked {
  border-color: #1a1a1a;
  background: #f5f5f5;
}

.check-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.checkbox {
  width: 24px;
  height: 24px;
  border: 2px solid #1a1a1a;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.check-item.checked .checkbox {
  background: #1a1a1a;
}

.checkmark {
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  display: none;
}

.check-item.checked .checkmark {
  display: block;
}

.check-text {
  font-size: 16px;
  line-height: 1.6;
  flex: 1;
}

.result {
  text-align: center;
  animation: fadeIn 0.4s;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.score-display {
  margin-bottom: 20px;
}

.score-number {
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}

.score-label {
  font-size: 16px;
  color: #666;
}

.score-bar {
  width: 100%;
  height: 8px;
  background: #e0e0e0;
  margin-bottom: 32px;
  overflow: hidden;
}

.score-fill {
  height: 100%;
  background: #1a1a1a;
  transition: width 0.6s ease-out;
  width: 0;
}

.diagnosis {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 32px;
  padding: 24px;
  border: 2px solid #1a1a1a;
  background: #f5f5f5;
  white-space: pre-line;
}

.reset-btn {
  padding: 16px 32px;
  border: 2px solid #1a1a1a;
  background: #1a1a1a;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.reset-btn:active {
  transform: scale(0.98);
}

@media (max-width: 640px) {
  body {
    padding: 16px;
  }

  h1 {
    font-size: 20px;
  }

  .check-text {
    font-size: 15px;
  }

  .score-number {
    font-size: 48px;
  }

  .diagnosis {
    font-size: 16px;
    padding: 20px;
  }
}