/*!
 * Sensor Range/Accuracy Converter — module CSS (e2z-src- prefix).
 * Color scheme (spec): Primary #0284C7 (signal sky blue), Secondary #0C4A6E,
 * Accent #F97316, BG #F0F9FF.
 * Scope: .e2z-tool-sensor-range-accuracy-converter (framework shortcode wrapper).
 */

.e2z-tool-sensor-range-accuracy-converter,
.e2z-tool-sensor-range-accuracy-converter *,
.e2z-tool-sensor-range-accuracy-converter *::before,
.e2z-tool-sensor-range-accuracy-converter *::after {
	box-sizing: border-box;
}

.e2z-tool-sensor-range-accuracy-converter .e2z-src-container {
	font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
	line-height: 1.5;
	color: #0C4A6E;
	width: 100%;
	margin: 0 auto;
	background: #F0F9FF;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(2, 132, 199, 0.14);
	overflow: hidden;
}

/* Monospace technical fields */
.e2z-tool-sensor-range-accuracy-converter .e2z-src-mono,
.e2z-tool-sensor-range-accuracy-converter .e2z-src-stat-value,
.e2z-tool-sensor-range-accuracy-converter .e2z-src-formula {
	font-family: 'SF Mono', 'Courier New', ui-monospace, Menlo, Consolas, monospace;
}

/* Header */
.e2z-tool-sensor-range-accuracy-converter .e2z-src-header {
	padding: 24px 16px;
	background: linear-gradient(135deg, #0C4A6E, #0284C7);
	color: #fff;
	text-align: center;
	border-bottom: 3px solid #F97316;
}
.e2z-tool-sensor-range-accuracy-converter .e2z-src-title {
	font-size: 1.55rem;
	font-weight: 700;
	margin: 0 0 4px;
	color: #fff;
}
.e2z-tool-sensor-range-accuracy-converter .e2z-src-subtitle {
	font-size: 0.84rem;
	opacity: 0.85;
	margin: 0;
}

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

.e2z-tool-sensor-range-accuracy-converter .e2z-src-inputs-panel,
.e2z-tool-sensor-range-accuracy-converter .e2z-src-results-panel {
	background: #FFFFFF;
	border-radius: 12px;
	padding: 20px;
	border: 1px solid #BAE6FD;
	box-shadow: 0 2px 8px rgba(2, 132, 199, 0.05);
	min-width: 0;
}
.e2z-tool-sensor-range-accuracy-converter .e2z-src-section-title {
	font-size: 1.02rem;
	font-weight: 600;
	color: #0284C7;
	margin: 0 0 12px;
	padding-bottom: 7px;
	border-bottom: 2px solid #FFEDD5;
}
.e2z-tool-sensor-range-accuracy-converter .e2z-src-inputs-panel .e2z-src-section-title { margin-top: 14px; }
.e2z-tool-sensor-range-accuracy-converter .e2z-src-inputs-panel > .e2z-src-section-title:first-of-type { margin-top: 0; }

/* Fields */
.e2z-tool-sensor-range-accuracy-converter .e2z-src-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 12px;
}
.e2z-tool-sensor-range-accuracy-converter .e2z-src-field {
	flex: 1;
	min-width: 120px;
	display: flex;
	flex-direction: column;
	margin-bottom: 12px;
}
.e2z-tool-sensor-range-accuracy-converter .e2z-src-row .e2z-src-field { margin-bottom: 0; }
.e2z-tool-sensor-range-accuracy-converter .e2z-src-label {
	font-size: 0.85rem;
	font-weight: 500;
	color: #075985;
	margin-bottom: 4px;
}
.e2z-tool-sensor-range-accuracy-converter .e2z-src-hint {
	font-size: 0.73rem;
	color: #7DD3FC;
	margin: 0 0 10px;
	line-height: 1.45;
	display: block;
}
.e2z-tool-sensor-range-accuracy-converter .e2z-src-hint { color: #38BDF8; }
.e2z-tool-sensor-range-accuracy-converter .e2z-src-input {
	width: 100%;
	max-width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid #BAE6FD;
	border-radius: 6px;
	font-size: 0.95rem;
	background: #fff;
	color: #0C4A6E;
}
.e2z-tool-sensor-range-accuracy-converter .e2z-src-input:focus {
	outline: none;
	border-color: #F97316;
	box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18);
}
.e2z-tool-sensor-range-accuracy-converter .e2z-src-check-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.86rem;
	color: #075985;
	margin-bottom: 6px;
	cursor: pointer;
}
.e2z-tool-sensor-range-accuracy-converter .e2z-src-sqrt-toggle { width: 20px; height: 20px; min-height: 20px; accent-color: #0284C7; }

/* Button */
.e2z-tool-sensor-range-accuracy-converter .e2z-src-calc-btn {
	width: 100%;
	min-height: 48px;
	padding: 13px;
	border: none;
	border-radius: 8px;
	background: #0284C7;
	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: 6px;
}
.e2z-tool-sensor-range-accuracy-converter .e2z-src-calc-btn:hover { filter: brightness(1.15); }
.e2z-tool-sensor-range-accuracy-converter .e2z-src-calc-btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.55);
}

/* Results */
.e2z-tool-sensor-range-accuracy-converter .e2z-src-empty-state {
	padding: 24px;
	text-align: center;
	color: #64748B;
	background: #F8FAFC;
	border-radius: 8px;
}
.e2z-tool-sensor-range-accuracy-converter .e2z-src-hero {
	border-radius: 10px;
	padding: 16px;
	text-align: center;
	margin-bottom: 14px;
	background: #0C4A6E;
	border-bottom: 3px solid #F97316;
}
.e2z-tool-sensor-range-accuracy-converter .e2z-src-hero-value {
	font-size: 2rem;
	font-weight: 800;
	margin: 4px 0;
	line-height: 1.12;
	color: #FDBA74;
	font-family: 'SF Mono', 'Courier New', ui-monospace, monospace;
	word-break: break-word;
}
.e2z-tool-sensor-range-accuracy-converter .e2z-src-hero-label {
	font-size: 0.83rem;
	font-weight: 600;
	color: #7DD3FC;
	margin: 0;
}
.e2z-tool-sensor-range-accuracy-converter .e2z-src-badge {
	display: inline-block;
	padding: 4px 14px;
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 800;
	margin-top: 6px;
	background: #FFEDD5;
	color: #C2410C;
}

.e2z-tool-sensor-range-accuracy-converter .e2z-src-result-block {
	background: #F8FAFC;
	border: 1px solid #E0F2FE;
	border-radius: 10px;
	padding: 14px;
	margin-bottom: 12px;
}
.e2z-tool-sensor-range-accuracy-converter .e2z-src-result-block h3 {
	font-size: 1rem;
	color: #0C4A6E;
	margin: 0 0 10px;
}
.e2z-tool-sensor-range-accuracy-converter .e2z-src-stat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 10px;
}
.e2z-tool-sensor-range-accuracy-converter .e2z-src-stat {
	background: #fff;
	border: 1px solid #E0F2FE;
	border-radius: 8px;
	padding: 10px;
	text-align: center;
}
.e2z-tool-sensor-range-accuracy-converter .e2z-src-stat-label {
	font-size: 0.72rem;
	font-weight: 600;
	color: #64748B;
	margin: 0 0 3px;
	font-family: 'Inter', system-ui, sans-serif;
}
.e2z-tool-sensor-range-accuracy-converter .e2z-src-stat-value {
	font-size: 1.15rem;
	font-weight: 700;
	color: #0C4A6E;
	margin: 0;
	word-break: break-word;
}
.e2z-tool-sensor-range-accuracy-converter .e2z-src-stat-blue .e2z-src-stat-value { color: #0284C7; }
.e2z-tool-sensor-range-accuracy-converter .e2z-src-stat-orange .e2z-src-stat-value { color: #C2410C; }

/* Scale bar */
.e2z-tool-sensor-range-accuracy-converter .e2z-src-scale {
	position: relative;
	height: 30px;
	border-radius: 8px;
	overflow: visible;
	margin: 18px 0 8px;
	background: linear-gradient(to right, #E0F2FE, #0284C7);
	border: 1px solid #BAE6FD;
}
.e2z-tool-sensor-range-accuracy-converter .e2z-src-scale-marker {
	position: absolute;
	top: -6px;
	width: 4px;
	height: 42px;
	background: #F97316;
	border-radius: 2px;
}
.e2z-tool-sensor-range-accuracy-converter .e2z-src-scale-band {
	position: absolute;
	top: 0;
	height: 100%;
	background: rgba(249, 115, 22, 0.28);
}
.e2z-tool-sensor-range-accuracy-converter .e2z-src-scale-legend {
	display: flex;
	justify-content: space-between;
	font-size: 0.72rem;
	color: #64748B;
	font-family: 'SF Mono', monospace;
}

.e2z-tool-sensor-range-accuracy-converter .e2z-src-formula {
	display: block;
	background: #0C4A6E;
	color: #FDBA74;
	border-radius: 6px;
	padding: 9px 11px;
	font-size: 0.8rem;
	margin: 8px 0 0;
	overflow-x: auto;
	white-space: pre;
}

.e2z-tool-sensor-range-accuracy-converter .e2z-src-note {
	font-size: 0.84rem;
	margin: 8px 0 0;
	padding: 9px 11px;
	border-radius: 6px;
}
.e2z-tool-sensor-range-accuracy-converter .e2z-src-note-info { background: #E0F2FE; color: #075985; border-left: 3px solid #0284C7; }
.e2z-tool-sensor-range-accuracy-converter .e2z-src-note-warn { background: #FFEDD5; color: #9A3412; border-left: 3px solid #F97316; }
.e2z-tool-sensor-range-accuracy-converter .e2z-src-note-error { background: #FEF2F2; color: #991B1B; border-left: 3px solid #DC2626; }

/* Export */
.e2z-tool-sensor-range-accuracy-converter .e2z-src-export-row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 12px;
}
.e2z-tool-sensor-range-accuracy-converter .e2z-src-print-btn,
.e2z-tool-sensor-range-accuracy-converter .e2z-src-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-sensor-range-accuracy-converter .e2z-src-print-btn { background: #0C4A6E; }
.e2z-tool-sensor-range-accuracy-converter .e2z-src-copy-btn { background: #0284C7; }
.e2z-tool-sensor-range-accuracy-converter .e2z-src-print-btn:hover,
.e2z-tool-sensor-range-accuracy-converter .e2z-src-copy-btn:hover { filter: brightness(1.2); }

.e2z-tool-sensor-range-accuracy-converter .e2z-src-disclaimer {
	font-size: 0.75rem;
	color: #38BDF8;
	margin: 12px 0 0;
	line-height: 1.45;
}

.e2z-tool-sensor-range-accuracy-converter .e2z-src-hidden { display: none !important; }

/* Responsive */
@media (max-width: 480px) {
	.e2z-tool-sensor-range-accuracy-converter .e2z-src-title { font-size: 1.2rem; }
	.e2z-tool-sensor-range-accuracy-converter .e2z-src-inputs-panel,
	.e2z-tool-sensor-range-accuracy-converter .e2z-src-results-panel { padding: 14px; }
	.e2z-tool-sensor-range-accuracy-converter .e2z-src-hero-value { font-size: 1.6rem; }
}
@media (max-width: 360px) {
	.e2z-tool-sensor-range-accuracy-converter .e2z-src-header { padding: 16px 10px; }
	.e2z-tool-sensor-range-accuracy-converter .e2z-src-title { font-size: 1.05rem; }
	.e2z-tool-sensor-range-accuracy-converter .e2z-src-field { min-width: 100%; }
}
