/*!
 * Engine Power/Torque Converter — module CSS (e2z-ept- prefix).
 * Color scheme (spec): Primary #71717A (chrome zinc), Secondary #18181B,
 * Accent #DC2626 (racing red), BG #FAFAFA.
 * Scope: .e2z-tool-engine-power-torque-converter (framework shortcode wrapper).
 */

.e2z-tool-engine-power-torque-converter,
.e2z-tool-engine-power-torque-converter *,
.e2z-tool-engine-power-torque-converter *::before,
.e2z-tool-engine-power-torque-converter *::after {
	box-sizing: border-box;
}

.e2z-tool-engine-power-torque-converter .e2z-ept-container {
	font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
	line-height: 1.5;
	color: #18181B;
	width: 100%;
	margin: 0 auto;
	background: #FAFAFA;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(113, 113, 122, 0.15);
	overflow: hidden;
}

/* Monospace technical fields */
.e2z-tool-engine-power-torque-converter .e2z-ept-mono,
.e2z-tool-engine-power-torque-converter .e2z-ept-stat-value,
.e2z-tool-engine-power-torque-converter .e2z-ept-formula {
	font-family: 'SF Mono', 'Courier New', ui-monospace, Menlo, Consolas, monospace;
}

/* Header */
.e2z-tool-engine-power-torque-converter .e2z-ept-header {
	padding: 24px 16px;
	background: linear-gradient(135deg, #18181B, #71717A);
	color: #fff;
	text-align: center;
	border-bottom: 3px solid #DC2626;
}
.e2z-tool-engine-power-torque-converter .e2z-ept-title {
	font-size: 1.68rem;
	font-weight: 700;
	margin: 0 0 4px;
	color: #fff;
}
.e2z-tool-engine-power-torque-converter .e2z-ept-subtitle {
	font-size: 0.86rem;
	opacity: 0.85;
	margin: 0;
}

/* Layout */
.e2z-tool-engine-power-torque-converter .e2z-ept-main-grid {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 16px;
}
@media (min-width: 1024px) {
	.e2z-tool-engine-power-torque-converter .e2z-ept-main-grid {
		flex-direction: row;
		align-items: flex-start;
	}
	.e2z-tool-engine-power-torque-converter .e2z-ept-inputs-panel { flex: 2; min-width: 0; }
	.e2z-tool-engine-power-torque-converter .e2z-ept-results-panel { flex: 3; min-width: 350px; }
}

.e2z-tool-engine-power-torque-converter .e2z-ept-inputs-panel,
.e2z-tool-engine-power-torque-converter .e2z-ept-results-panel {
	background: #FFFFFF;
	border-radius: 12px;
	padding: 20px;
	border: 1px solid #E4E4E7;
	box-shadow: 0 2px 8px rgba(113, 113, 122, 0.05);
	min-width: 0;
}
.e2z-tool-engine-power-torque-converter .e2z-ept-section-title {
	font-size: 1.02rem;
	font-weight: 600;
	color: #52525B;
	margin: 0 0 12px;
	padding-bottom: 7px;
	border-bottom: 2px solid #FEE2E2;
}
.e2z-tool-engine-power-torque-converter .e2z-ept-inputs-panel .e2z-ept-section-title { margin-top: 16px; }
.e2z-tool-engine-power-torque-converter .e2z-ept-inputs-panel .e2z-ept-pane > .e2z-ept-section-title:first-child { margin-top: 0; }

/* Tabs */
.e2z-tool-engine-power-torque-converter .e2z-ept-tabs {
	display: flex;
	gap: 4px;
	margin-bottom: 16px;
	background: #FAFAFA;
	padding: 4px;
	border-radius: 8px;
	flex-wrap: wrap;
}
.e2z-tool-engine-power-torque-converter .e2z-ept-tab {
	flex: 1;
	min-width: 140px;
	min-height: 44px;
	padding: 10px 6px;
	border: none;
	border-radius: 6px;
	background: transparent;
	color: #3F3F46;
	font-family: inherit;
	font-size: 0.84rem;
	font-weight: 600;
	cursor: pointer;
}
.e2z-tool-engine-power-torque-converter .e2z-ept-tab-active {
	background: #71717A;
	color: #fff;
}

/* Fields */
.e2z-tool-engine-power-torque-converter .e2z-ept-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 12px;
}
.e2z-tool-engine-power-torque-converter .e2z-ept-field {
	flex: 1;
	min-width: 140px;
	display: flex;
	flex-direction: column;
	margin-bottom: 12px;
}
.e2z-tool-engine-power-torque-converter .e2z-ept-row .e2z-ept-field { margin-bottom: 0; }
.e2z-tool-engine-power-torque-converter .e2z-ept-label {
	font-size: 0.85rem;
	font-weight: 500;
	color: #3F3F46;
	margin-bottom: 4px;
}
.e2z-tool-engine-power-torque-converter .e2z-ept-hint {
	font-size: 0.75rem;
	color: #A1A1AA;
	margin: 0 0 12px;
	line-height: 1.45;
	display: block;
}
.e2z-tool-engine-power-torque-converter .e2z-ept-input {
	width: 100%;
	max-width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid #D4D4D8;
	border-radius: 6px;
	font-size: 0.95rem;
	background: #fff;
	color: #18181B;
}
.e2z-tool-engine-power-torque-converter .e2z-ept-input:focus {
	outline: none;
	border-color: #DC2626;
	box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

/* Button */
.e2z-tool-engine-power-torque-converter .e2z-ept-calc-btn {
	width: 100%;
	min-height: 48px;
	padding: 13px;
	border: none;
	border-radius: 8px;
	background: #71717A;
	color: #fff;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: filter 0.15s ease;
	margin-top: 4px;
}
.e2z-tool-engine-power-torque-converter .e2z-ept-calc-btn:hover { filter: brightness(1.15); }
.e2z-tool-engine-power-torque-converter .e2z-ept-calc-btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.5);
}

/* Results */
.e2z-tool-engine-power-torque-converter .e2z-ept-empty-state {
	padding: 24px;
	text-align: center;
	color: #71717A;
	background: #FAFAFA;
	border-radius: 8px;
}
.e2z-tool-engine-power-torque-converter .e2z-ept-hero {
	border-radius: 10px;
	padding: 16px;
	text-align: center;
	margin-bottom: 14px;
	background: #18181B;
	border-bottom: 3px solid #DC2626;
}
.e2z-tool-engine-power-torque-converter .e2z-ept-hero-value {
	font-size: 1.9rem;
	font-weight: 800;
	margin: 4px 0;
	line-height: 1.12;
	color: #FCA5A5;
	font-family: 'SF Mono', 'Courier New', ui-monospace, monospace;
	word-break: break-word;
}
.e2z-tool-engine-power-torque-converter .e2z-ept-hero-label {
	font-size: 0.83rem;
	font-weight: 600;
	color: #A1A1AA;
	margin: 0;
}
.e2z-tool-engine-power-torque-converter .e2z-ept-badge {
	display: inline-block;
	padding: 4px 14px;
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 800;
	margin-top: 6px;
	background: #FEE2E2;
	color: #B91C1C;
}

.e2z-tool-engine-power-torque-converter .e2z-ept-result-block {
	background: #FAFAFA;
	border: 1px solid #E4E4E7;
	border-radius: 10px;
	padding: 14px;
	margin-bottom: 12px;
}
.e2z-tool-engine-power-torque-converter .e2z-ept-result-block h3 {
	font-size: 1rem;
	color: #18181B;
	margin: 0 0 10px;
}
.e2z-tool-engine-power-torque-converter .e2z-ept-stat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 10px;
}
.e2z-tool-engine-power-torque-converter .e2z-ept-stat {
	background: #fff;
	border: 1px solid #E4E4E7;
	border-radius: 8px;
	padding: 10px;
	text-align: center;
}
.e2z-tool-engine-power-torque-converter .e2z-ept-stat-label {
	font-size: 0.72rem;
	font-weight: 600;
	color: #71717A;
	margin: 0 0 3px;
	font-family: 'Inter', system-ui, sans-serif;
}
.e2z-tool-engine-power-torque-converter .e2z-ept-stat-value {
	font-size: 1.05rem;
	font-weight: 700;
	color: #18181B;
	margin: 0;
	word-break: break-word;
}
.e2z-tool-engine-power-torque-converter .e2z-ept-stat-red .e2z-ept-stat-value { color: #DC2626; }
.e2z-tool-engine-power-torque-converter .e2z-ept-stat-zinc .e2z-ept-stat-value { color: #52525B; }

.e2z-tool-engine-power-torque-converter .e2z-ept-formula {
	display: block;
	background: #18181B;
	color: #FCA5A5;
	border-radius: 6px;
	padding: 9px 11px;
	font-size: 0.85rem;
	margin: 8px 0 0;
	overflow-x: auto;
	white-space: pre;
}
.e2z-tool-engine-power-torque-converter .e2z-ept-steps {
	list-style: none;
	margin: 0;
	padding: 0;
}
.e2z-tool-engine-power-torque-converter .e2z-ept-steps li {
	padding: 7px 10px 7px 12px;
	border-left: 3px solid #DC2626;
	margin-bottom: 7px;
	background: #fff;
	border-radius: 0 6px 6px 0;
	font-size: 0.86rem;
	border-top: 1px solid #FAFAFA;
	border-right: 1px solid #FAFAFA;
	border-bottom: 1px solid #FAFAFA;
}

.e2z-tool-engine-power-torque-converter .e2z-ept-note {
	font-size: 0.84rem;
	margin: 8px 0 0;
	padding: 9px 11px;
	border-radius: 6px;
}
.e2z-tool-engine-power-torque-converter .e2z-ept-note-info { background: #FEE2E2; color: #991B1B; border-left: 3px solid #DC2626; }
.e2z-tool-engine-power-torque-converter .e2z-ept-note-warn { background: #FEF3C7; color: #92400E; border-left: 3px solid #F59E0B; }
.e2z-tool-engine-power-torque-converter .e2z-ept-note-error { background: #FEF2F2; color: #991B1B; border-left: 3px solid #DC2626; }

/* Export */
.e2z-tool-engine-power-torque-converter .e2z-ept-export-row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 12px;
}
.e2z-tool-engine-power-torque-converter .e2z-ept-print-btn,
.e2z-tool-engine-power-torque-converter .e2z-ept-copy-btn {
	flex: 1;
	min-height: 44px;
	padding: 11px;
	border: none;
	border-radius: 8px;
	color: #fff;
	font-family: inherit;
	font-size: 0.88rem;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}
.e2z-tool-engine-power-torque-converter .e2z-ept-print-btn { background: #18181B; }
.e2z-tool-engine-power-torque-converter .e2z-ept-copy-btn { background: #71717A; }
.e2z-tool-engine-power-torque-converter .e2z-ept-print-btn:hover,
.e2z-tool-engine-power-torque-converter .e2z-ept-copy-btn:hover { filter: brightness(1.3); }

.e2z-tool-engine-power-torque-converter .e2z-ept-disclaimer {
	font-size: 0.75rem;
	color: #A1A1AA;
	margin: 12px 0 0;
	line-height: 1.45;
}

.e2z-tool-engine-power-torque-converter .e2z-ept-hidden { display: none !important; }

/* Responsive */
@media (max-width: 480px) {
	.e2z-tool-engine-power-torque-converter .e2z-ept-title { font-size: 1.28rem; }
	.e2z-tool-engine-power-torque-converter .e2z-ept-inputs-panel,
	.e2z-tool-engine-power-torque-converter .e2z-ept-results-panel { padding: 14px; }
	.e2z-tool-engine-power-torque-converter .e2z-ept-hero-value { font-size: 1.5rem; }
	.e2z-tool-engine-power-torque-converter .e2z-ept-tab { min-width: 100%; }
}
@media (max-width: 360px) {
	.e2z-tool-engine-power-torque-converter .e2z-ept-header { padding: 16px 10px; }
	.e2z-tool-engine-power-torque-converter .e2z-ept-title { font-size: 1.08rem; }
	.e2z-tool-engine-power-torque-converter .e2z-ept-field { min-width: 100%; }
}
