.two-stroke-calculator-wrapper {
  max-width: 1290px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  line-height: 1.6;
  color: #1e293b;
}

.calc-card,
.results-card,
.ratio-guide {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
  padding: 2rem;
}

.calc-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.calc-icon {
  color: #2563eb;
  flex-shrink: 0;
}

.calc-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  line-height: 1.2;
}

.calc-description {
  color: #64748b;
  margin: 0 0 2rem 0;
  font-size: 1rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: #1e293b;
}

.label-icon {
  color: #2563eb;
}

.input-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.form-input {
  flex: 1;
  min-width: 200px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  transition: all 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.unit-buttons {
  display: flex;
  gap: 0.5rem;
}

.unit-btn {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
}

.unit-btn:hover {
  border-color: #cbd5e1;
}

.unit-btn.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.ratio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.75rem;
}

.ratio-option {
  position: relative;
  cursor: pointer;
}

.ratio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.ratio-label {
  display: block;
  padding: 0.75rem;
  text-align: center;
  font-weight: 500;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  color: #475569;
  transition: all 0.2s;
}

.ratio-option input[type="radio"]:checked + .ratio-label {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.ratio-option:hover .ratio-label {
  border-color: #cbd5e1;
}

.custom-ratio-input {
  margin-top: 1rem;
}

.help-text {
  display: block;
  margin-top: 0.5rem;
  color: #64748b;
  font-size: 0.875rem;
}

.button-group {
  display: flex;
  justify-content: flex-end;
  padding-top: 1rem;
}

.btn-reset {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 1rem;
  font-weight: 500;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-reset:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.results-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 2px solid #86efac;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.results-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.btn-print {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  background: #2563eb;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-print:hover {
  background: #1d4ed8;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.result-item {
  padding: 1rem;
  background: #ffffff;
  border-radius: 8px;
}

.result-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin: 0 0 0.5rem 0;
}

.result-value-group {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.result-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2563eb;
}

.result-unit {
  font-size: 1.25rem;
  color: #64748b;
}

.result-subtitle {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
}

.conversions {
  font-size: 0.875rem;
  color: #64748b;
}

.conversions p {
  margin: 0.25rem 0;
}

.mixing-instructions {
  padding: 1rem;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.mixing-instructions p {
  margin: 0;
  font-size: 0.875rem;
  color: #1e293b;
}

.guide-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1.5rem 0;
  color: #1e293b;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.guide-card {
  padding: 1.5rem;
  border-radius: 8px;
  border: 2px solid #e2e8f0;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  transition: all 0.3s;
}

.guide-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.guide-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.guide-icon-wrap {
  padding: 0.5rem;
  border-radius: 8px;
  background: #ffffff;
  color: #2563eb;
}

.guide-icon-accent {
  color: #f97316;
}

.guide-icon-success {
  color: #16a34a;
}

.guide-icon-muted {
  color: #64748b;
}

.guide-ratio {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: #1e293b;
}

.guide-desc {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
}

.guide-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.guide-list li {
  font-size: 0.875rem;
  color: #1e293b;
  padding: 0.25rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.guide-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2563eb;
}

.warning-box {
  padding: 1.25rem;
  background: #fef3c7;
  border-radius: 8px;
  border: 2px solid #fbbf24;
}

.warning-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: #1e293b;
}

.warning-box p {
  margin: 0;
  font-size: 0.875rem;
  color: #1e293b;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .calc-card,
  .results-card,
  .ratio-guide {
    padding: 1.5rem;
  }

  .calc-title {
    font-size: 1.5rem;
  }

  .input-group {
    flex-direction: column;
  }

  .form-input {
    min-width: 100%;
  }

  .ratio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .results-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .result-value {
    font-size: 2rem;
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  .calc-card,
  .ratio-guide,
  .btn-print,
  .btn-reset {
    display: none !important;
  }
  
  .results-card {
    box-shadow: none;
    border: 1px solid #000;
  }
}
