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

#app {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px;
}

#app-title {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a2e;
  text-align: center;
  margin: 0 0 8px 0;
}

#app-subtitle {
  font-size: 14px;
  color: #6b7280;
  text-align: center;
  margin: 0 0 24px 0;
}

.card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 24px;
}

#calculator-card {
  padding: 24px;
}

#input-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.input-label {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.input-field {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 16px;
  color: #1f2937;
  background: #f9fafb;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
  font-family: inherit;
}

.input-field:focus {
  outline: none;
  border-color: #1a73e8;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.input-field::placeholder {
  color: #9ca3af;
}

.input-error {
  font-size: 12px;
  color: #dc2626;
  min-height: 16px;
}

#result-section {
  margin-top: 24px;
  background: #f0f9ff;
  border-radius: 12px;
  padding: 20px;
}

#result-title {
  font-size: 16px;
  font-weight: 600;
  color: #374151;
  margin: 0 0 16px 0;
  text-align: center;
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.result-label {
  font-size: 14px;
  color: #6b7280;
}

.result-value {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  font-family: "Courier New", monospace;
}

.result-highlight {
  padding: 16px 0;
  border-bottom: 1px solid #e0f2fe;
  margin-bottom: 8px;
}

.result-highlight .result-label {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a2e;
}

.result-highlight .result-value {
  font-size: 24px;
  font-weight: 700;
}

#result-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#result-detail .result-item {
  padding: 8px 0;
}

select.input-field {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%236b7280'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

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

#fork-button {
  padding: 10px 28px;
  font-size: 14px;
  color: #1a73e8;
  background: #ffffff;
  border: 1px solid #1a73e8;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

#fork-button:hover {
  background: #1a73e8;
  color: #ffffff;
}

#features {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px;
}

#features h2 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 12px 0;
}

#features p {
  font-size: 15px;
  color: #4b5563;
  line-height: 1.8;
  margin: 0;
}

#scenarios {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px;
}

#scenarios h2 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 12px 0;
}

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

#scenarios li {
  font-size: 15px;
  color: #4b5563;
  line-height: 2;
}

#FAQ {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 48px 16px;
}

#FAQ h2 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 16px 0;
}

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

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

footer {
  text-align: center;
}

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

  #app-title {
    font-size: 24px;
  }

  .card {
    padding: 16px;
  }

  #calculator-card {
    padding: 16px;
  }

  #result-section {
    padding: 16px;
  }

  .result-highlight .result-value {
    font-size: 20px;
  }

  #features,
  #scenarios,
  #FAQ {
    padding: 20px 12px;
  }
}
