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

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

#app-title {
  text-align: center;
  font-size: 1.5rem;
  color: #1e293b;
  margin-bottom: 24px;
}

.calculator-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

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

.input-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
}

.input-field {
  width: 100%;
  padding: 10px 12px;
  font-size: 1rem;
  color: #1e293b;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.input-field:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.term-row {
  display: flex;
  gap: 10px;
}

.term-input {
  flex: 1;
}

.term-select {
  width: 80px;
  padding: 10px 8px;
  font-size: 1rem;
  color: #1e293b;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.term-select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.result-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: #f0fdf4;
  border-radius: 8px;
  margin-bottom: 12px;
}

.result-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #475569;
}

.result-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #059669;
  font-variant-numeric: tabular-nums;
}

#actions {
  margin-top: 20px;
  text-align: center;
}

.btn-reset {
  padding: 10px 32px;
  font-size: 1rem;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-reset:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}

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

#features, #scenarios, #FAQ {
  max-width: 480px;
  margin: 24px auto 0;
  padding: 0 16px;
}

#features h2, #scenarios h2, #FAQ h2 {
  font-size: 1.2rem;
  color: #1e293b;
  margin-bottom: 12px;
}

#features p {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.7;
}

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

#scenarios li {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.8;
}

#FAQ dl {
  margin: 0;
}

#FAQ dt {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
  margin-top: 14px;
}

#FAQ dd {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.7;
  margin: 6px 0 0 0;
}

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

.page-info {
  font-size: 0.85rem;
  color: #94a3b8;
}

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

.page-info a:hover {
  text-decoration: underline;
}
