/* FTL Engine Horsepower Calculator Styles */
.ftl-hp-calculator-wrapper { max-width: 800px; margin: 0 auto; padding: 24px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #fff; border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.ftl-hp-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 16px; }
.ftl-hp-header h2 { margin: 0; font-size: 1.5rem; font-weight: 700; color: #111827; }
.ftl-hp-unit-toggle { display: flex; background: #f3f4f6; border-radius: 8px; padding: 4px; }
.ftl-hp-unit-btn { padding: 8px 16px; border: none; background: transparent; color: #6b7280; font-weight: 500; cursor: pointer; border-radius: 6px; transition: all 0.2s; }
.ftl-hp-unit-btn.active { background: #fff; color: #111827; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.ftl-hp-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
@media (max-width: 640px) { .ftl-hp-inputs { grid-template-columns: 1fr; } }
.ftl-hp-card { background: #fafafa; border-radius: 12px; padding: 20px; border: 1px solid #e5e7eb; }
.ftl-hp-correction-card { border-left: 4px solid #8b5cf6; }
.ftl-hp-card h3 { margin: 0 0 16px; font-size: 1rem; color: #374151; font-weight: 600; }
.ftl-hp-input-group { margin-bottom: 16px; }
.ftl-hp-input-group:last-child { margin-bottom: 0; }
.ftl-hp-input-group label { display: block; font-size: 0.8rem; color: #6b7280; margin-bottom: 4px; font-weight: 500; }
.ftl-hp-input-group input, .ftl-hp-input-group select { width: 100%; padding: 10px; border: 2px solid #e5e7eb; border-radius: 8px; font-size: 1rem; font-weight: 600; color: #111827; transition: border-color 0.2s; box-sizing: border-box; background: #fff; }
.ftl-hp-input-group input:focus, .ftl-hp-input-group select:focus { outline: none; border-color: #8b5cf6; }
.ftl-hp-conditions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-top: 16px; }
.ftl-hp-results { background: #fafafa; border-radius: 12px; padding: 24px; border: 1px solid #e5e7eb; }
.ftl-hp-result-main { text-align: center; padding: 24px; background: linear-gradient(135deg, #8b5cf6, #6366f1); border-radius: 12px; color: #fff; margin-bottom: 20px; }
.ftl-hp-result-label { font-size: 0.9rem; opacity: 0.9; margin-bottom: 8px; }
.ftl-hp-result-value { font-size: 3.5rem; font-weight: 800; line-height: 1; margin-bottom: 8px; }
.ftl-hp-hp-unit { font-size: 1.5rem; font-weight: 600; opacity: 0.9; }
.ftl-hp-result-corrected { font-size: 0.95rem; opacity: 0.9; }
.ftl-hp-corrected-label { margin-right: 4px; }
.ftl-hp-hp-corrected { font-weight: 700; margin-right: 4px; }
.ftl-hp-correction-factor { opacity: 0.8; }
.ftl-hp-result-breakdown { margin-bottom: 20px; }
.ftl-hp-result-breakdown h3 { margin: 0 0 12px; font-size: 0.95rem; color: #374151; font-weight: 600; }
.ftl-hp-breakdown-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 640px) { .ftl-hp-breakdown-grid { grid-template-columns: repeat(2, 1fr); } }
.ftl-hp-breakdown-item { background: #fff; padding: 12px; border-radius: 8px; text-align: center; border: 1px solid #e5e7eb; }
.ftl-hp-breakdown-label { display: block; font-size: 0.75rem; color: #6b7280; margin-bottom: 4px; }
.ftl-hp-breakdown-value { font-size: 1rem; font-weight: 700; color: #111827; }
.ftl-hp-comparison h3 { margin: 0 0 12px; font-size: 0.95rem; color: #374151; font-weight: 600; }
.ftl-hp-comparison-grid { background: #fff; border-radius: 8px; overflow: hidden; border: 1px solid #e5e7eb; }
.ftl-hp-comp-row { display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 10px 16px; border-bottom: 1px solid #e5e7eb; font-size: 0.9rem; }
.ftl-hp-comp-row:last-child { border-bottom: none; }
.ftl-hp-comp-header { background: #f9fafb; font-weight: 600; color: #374151; font-size: 0.8rem; }
.ftl-hp-comp-factor { color: #6b7280; }
.ftl-hp-comp-hp { font-weight: 600; color: #111827; }
