html, body, main, header, footer {
  padding: 0px;
  margin: 0px;
}

#app {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 16px;
}

.calculator-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  padding: 28px 24px;
}

#calc-title {
  text-align: center;
  font-size: 1.5rem;
  color: #d63384;
  margin-bottom: 24px;
  font-weight: 700;
}

.input-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-group label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #4a4a4a;
}

.input-field {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e0d0e0;
  border-radius: 10px;
  font-size: 1rem;
  color: #333;
  background: #fdf7fd;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
  outline: none;
}

.input-field:focus {
  border-color: #d63384;
  background: #fff;
}

.input-hint {
  font-size: 0.8rem;
  color: #999;
}

.action-buttons {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.btn {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, #e83e8c, #d63384);
  color: #fff;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #d63384, #c12e76);
}

.btn-secondary {
  background: #f0e6f6;
  color: #7a4e8c;
}

.btn-secondary:hover {
  background: #e4d4ee;
}

.result-section {
  display: none;
  margin-top: 24px;
  border-top: 1.5px solid #f0e6f6;
  padding-top: 20px;
}

.result-section.visible {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.result-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #fdf7fd;
}

.result-item.highlight-primary {
  background: linear-gradient(135deg, #fff0f7, #ffe0ef);
  border: 1.5px solid #f5c6d8;
}

.result-item.highlight-secondary {
  background: linear-gradient(135deg, #fef5ff, #fae8ff);
  border: 1.5px solid #e8c8f0;
}

.result-item.highlight-accent {
  background: linear-gradient(135deg, #fff8f0, #ffead6);
  border: 1.5px solid #f5d5b0;
}

.result-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #6c5b7b;
  min-width: 90px;
}

.result-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: #333;
  flex: 1;
}

.highlight-primary .result-value {
  color: #d63384;
}

.highlight-secondary .result-value {
  color: #a64dff;
}

.highlight-accent .result-value {
  color: #e87a3e;
}

.result-desc {
  font-size: 0.78rem;
  color: #999;
  width: 100%;
  margin-top: 2px;
}

#__fork {
  text-align: center;
  margin: 24px auto 12px;
}

#__fork button {
  background: #f0e6f6;
  color: #7a4e8c;
  border: none;
  border-radius: 8px;
  padding: 8px 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

#__fork button:hover {
  background: #e4d4ee;
}

#features, #scenarios, #FAQ {
  max-width: 640px;
  margin: 0 auto;
  padding: 12px 16px 20px;
}

#features h2, #scenarios h2, #FAQ h2 {
  font-size: 1.2rem;
  color: #d63384;
  margin-bottom: 10px;
  font-weight: 700;
}

#features p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.7;
}

#scenarios ul {
  padding-left: 20px;
  margin: 0;
}

#scenarios li {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 6px;
}

#scenarios li strong {
  color: #4a4a4a;
}

#FAQ dl {
  margin: 0;
}

#FAQ dt {
  font-size: 0.95rem;
  font-weight: 600;
  color: #4a4a4a;
  margin-top: 12px;
  margin-bottom: 4px;
}

#FAQ dd {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.7;
  margin-left: 0;
  margin-bottom: 8px;
}

@media (max-width: 576px) {
  #app {
    padding: 12px 10px;
  }

  .calculator-card {
    padding: 20px 16px;
  }

  #calc-title {
    font-size: 1.3rem;
  }

  .action-buttons {
    flex-direction: column;
  }

  .result-item {
    flex-direction: column;
    gap: 4px;
  }
}
