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

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

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

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

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

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

.input-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

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

.input-prefix {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-width: 40px;
  height: 44px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 16px;
  font-weight: 600;
  border-right: 1px solid #cbd5e1;
}

.input-field {
  flex: 1;
  height: 44px;
  border: none;
  outline: none;
  padding: 0 12px;
  font-size: 16px;
  color: #1e293b;
  background: #ffffff;
  font-family: 'Courier New', Courier, monospace;
}

.input-field::placeholder {
  color: #94a3b8;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.btn-primary {
  display: block;
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 8px;
  background: #2563eb;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  margin-bottom: 12px;
}

.btn-primary:hover {
  background: #1d4ed8;
}

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

.btn-secondary {
  display: block;
  width: 100%;
  height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

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

.result-area {
  margin-top: 24px;
  padding: 20px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
}

.result-item:last-of-type {
  border-bottom: none;
}

.result-label {
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
}

.result-value {
  font-size: 20px;
  font-weight: 700;
  font-family: 'Courier New', Courier, monospace;
  color: #1e293b;
}

.result-value.positive {
  color: #16a34a;
}

.result-value.negative {
  color: #dc2626;
}

.result-interpretation {
  margin-top: 16px;
  padding: 12px 16px;
  background: #ffffff;
  border-radius: 8px;
  border-left: 4px solid #2563eb;
}

.result-interpretation p {
  margin: 0;
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
}

.error-message {
  margin-top: 16px;
  padding: 12px 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #dc2626;
  font-size: 14px;
  line-height: 1.6;
}

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

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

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

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

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

#features p {
  font-size: 15px;
  color: #475569;
  line-height: 1.7;
}

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

#scenarios li {
  font-size: 14px;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 8px;
}

#scenarios li strong {
  color: #1e293b;
}

#FAQ dl {
  margin: 0;
}

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

#FAQ dt:first-child {
  margin-top: 0;
}

#FAQ dd {
  font-size: 14px;
  color: #475569;
  line-height: 1.7;
  margin-left: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

#FAQ dd:last-of-type {
  border-bottom: none;
}

@media (max-width: 480px) {
  #app-title {
    font-size: 22px;
  }

  .card {
    padding: 20px 16px;
  }

  .result-value {
    font-size: 17px;
  }

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