.casia-tool-app {
	margin: 24px 0 32px;
}

.casia-tool-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 18px;
}

.casia-tool-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.casia-pill {
	appearance: none;
	border: 1px solid #cbd5e1;
	background: #ffffff;
	color: #0f172a;
	border-radius: 6px;
	padding: 8px 14px;
	font-size: 0.88rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.casia-pill:hover {
	border-color: #0e7490;
	color: #0e7490;
}

.casia-pill.is-active {
	background: #0f172a;
	border-color: #0f172a;
	color: #ffffff;
}

.casia-tool-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.casia-tool-actions select {
	padding: 7px 10px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	background: #ffffff;
	font-size: 0.88rem;
}

.casia-check-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.88rem;
	font-weight: 600;
	color: #334155;
	cursor: pointer;
}

.casia-tool-kpis {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 18px;
}

.casia-kpi {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-left: 4px solid #0e7490;
	border-radius: 6px;
	padding: 12px 14px;
}

.casia-kpi span {
	display: block;
	font-size: 0.76rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #64748b;
	margin-bottom: 4px;
}

.casia-kpi strong {
	display: block;
	font-size: 1.05rem;
	color: #0f172a;
	font-variant-numeric: tabular-nums;
}

.casia-chart-panel,
.casia-leaflet-panel {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 16px;
	margin-bottom: 20px;
}

.casia-chart-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 12px;
}

.casia-chart-head h3 {
	margin: 0;
	font-size: 1rem;
}

.casia-tool-meta {
	font-size: 0.82rem;
	color: #64748b;
	font-variant-numeric: tabular-nums;
}

.casia-chart-wrap {
	position: relative;
	height: 320px;
}

.casia-leaflet-box {
	width: 100%;
	height: 440px;
	border-radius: 6px;
	z-index: 1;
}

.casia-macro-charts {
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	gap: 16px;
	margin-bottom: 8px;
}

.casia-badge-pos {
	color: #0f766e;
	font-weight: 700;
}

.casia-badge-neg {
	color: #b45309;
	font-weight: 700;
}

@media (max-width: 900px) {
	.casia-tool-kpis {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.casia-macro-charts {
		grid-template-columns: 1fr;
	}
}
