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

.calculator-card {
  max-width: 680px;
  margin: 20px auto;
  padding: 32px 28px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

#calculator-title {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
  margin: 0 0 8px 0;
}

#calculator-desc {
  font-size: 14px;
  color: #888888;
  text-align: center;
  margin: 0 0 28px 0;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 8px;
}

.input-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.slider {
  flex: 1;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: #e0e0e0;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #2b6de8;
  cursor: pointer;
}

.slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #2b6de8;
  cursor: pointer;
  border: none;
}

.number-input {
  width: 100px;
  padding: 8px 10px;
  font-size: 14px;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  outline: none;
  text-align: center;
  box-sizing: border-box;
}

.number-input:focus {
  border-color: #2b6de8;
  box-shadow: 0 0 0 2px rgba(43, 109, 232, 0.15);
}

.unit {
  font-size: 14px;
  color: #666666;
  flex-shrink: 0;
}

.calculate-btn {
  display: block;
  width: 100%;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  background: #2b6de8;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s ease;
}

.calculate-btn:hover {
  background: #1a5ad4;
}

.calculate-btn:active {
  background: #1449b0;
}

.result-group {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #f0f0f0;
}

.result-item {
  flex: 1;
  text-align: center;
  padding: 16px 8px;
  background: #f7f9fc;
  border-radius: 8px;
}

.result-label {
  display: block;
  font-size: 13px;
  color: #888888;
  margin-bottom: 8px;
}

.result-value {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #2b6de8;
  word-break: break-all;
}

.result-unit {
  display: block;
  font-size: 12px;
  color: #aaaaaa;
  margin-top: 4px;
}

#__fork {
  text-align: center;
  padding: 12px 0;
}

#__fork button {
  padding: 8px 20px;
  font-size: 14px;
  color: #2b6de8;
  background: transparent;
  border: 1px solid #2b6de8;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

#__fork button:hover {
  background: rgba(43, 109, 232, 0.06);
}

#features, #scenarios, #FAQ {
  max-width: 680px;
  margin: 0 auto;
  padding: 20px 28px 0;
}

#features h2, #scenarios h2, #FAQ h2 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 12px 0;
}

#features p {
  font-size: 14px;
  color: #555555;
  line-height: 1.8;
  margin: 0;
}

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

#scenarios li {
  font-size: 14px;
  color: #555555;
  line-height: 2;
}

#FAQ dl {
  margin: 0;
}

#FAQ dt {
  font-size: 15px;
  font-weight: 600;
  color: #333333;
  margin-top: 16px;
}

#FAQ dd {
  font-size: 14px;
  color: #666666;
  line-height: 1.8;
  margin: 6px 0 0 0;
}

footer {
  text-align: center;
  padding: 24px 0 16px;
}

.page-info {
  font-size: 13px;
  color: #999999;
}

.page-info a {
  color: #666666;
  text-decoration: none;
}

.page-info a:hover {
  color: #2b6de8;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .calculator-card {
    margin: 12px;
    padding: 24px 16px;
    border-radius: 8px;
  }

  .result-group {
    flex-direction: column;
    gap: 10px;
  }

  .result-item {
    padding: 14px 10px;
  }

  .number-input {
    width: 80px;
  }

  #features, #scenarios, #FAQ {
    padding: 16px 16px 0;
  }
}
