.mmd-site {
	color: #1f2937;
	font-family: inherit;
	margin: 1.5rem 0;
}

.mmd-single-sensor {
	color: #1f2937;
	font-family: inherit;
	margin: 0;
	max-width: 320px;
	width: 100%;
}

.mmd-single-sensor-compact {
	margin: 0;
	max-width: 260px;
	width: 100%;
}

.mmd-site-header {
	align-items: baseline;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1rem;
	justify-content: space-between;
	margin-bottom: 1rem;
}

.mmd-site-meta {
	text-align: right;
}

.mmd-site-title {
	font-size: 1.5rem;
	line-height: 1.25;
	margin: 0;
}

.mmd-site-status {
	color: #667085;
	font-size: 0.9rem;
	margin: 0;
	text-align: right;
}

.mmd-site-updated {
	color: #98a2b3;
	font-size: 0.78rem;
	line-height: 1.4;
	margin: 0.15rem 0 0;
}

.mmd-refresh-debug {
	color: #667085;
	font-size: 0.74rem;
	line-height: 1.4;
	margin: 0.15rem 0 0;
}

.mmd-refresh-debug[data-mmd-refresh-status="failed"] {
	color: #9a3412;
}

.mmd-site-note {
	color: #667085;
	font-size: 0.92rem;
	line-height: 1.5;
	margin: -0.35rem 0 1rem;
	max-width: 760px;
}

.mmd-card-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.mmd-weather {
	align-items: center;
	background: #f8fafc;
	border: 1px solid #eaecf0;
	border-radius: 8px;
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem 1.25rem;
	justify-content: space-between;
	margin: 0 0 1rem;
	padding: 0.75rem 1rem;
}

.mmd-weather-label {
	color: #475467;
	font-size: 0.88rem;
	font-weight: 700;
	line-height: 1.3;
}

.mmd-weather-values {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
}

.mmd-weather-values > span {
	align-items: baseline;
	display: inline-flex;
	gap: 0.35rem;
	white-space: nowrap;
}

.mmd-weather-value {
	color: #101828;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
}

.mmd-weather-unit {
	color: #667085;
	font-size: 0.78rem;
	line-height: 1.2;
}

.mmd-card {
	background: #ffffff;
	border: 1px solid #d0d5dd;
	border-radius: 8px;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 1rem;
}

.mmd-single-sensor .mmd-card {
	width: 100%;
}

.mmd-single-sensor-compact .mmd-card {
	gap: 0.65rem;
	padding: 0.75rem;
}

.mmd-card-header {
	min-width: 0;
}

.mmd-card-title {
	color: #101828;
	font-size: 1.14rem;
	font-weight: 600;
	line-height: 1.25;
	margin: 0;
	overflow-wrap: anywhere;
}

.mmd-card-meta {
	color: #667085;
	display: flex;
	flex-wrap: wrap;
	font-size: 0.82rem;
	gap: 0.25rem 0.75rem;
	line-height: 1.4;
	margin: 0.35rem 0 0;
}

.mmd-metrics {
	display: grid;
	gap: 0.75rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: auto;
}

.mmd-metric {
	background: #f8fafc;
	border: 1px solid #eaecf0;
	border-radius: 8px;
	min-height: 76px;
	padding: 0.75rem;
}

.mmd-single-sensor-compact .mmd-metric {
	min-height: 62px;
	padding: 0.55rem;
}

.mmd-metric-label {
	color: #667085;
	display: block;
	font-size: 0.78rem;
	line-height: 1.2;
	margin-bottom: 0.25rem;
}

.mmd-metric-value {
	color: #101828;
	display: block;
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.2;
	overflow-wrap: anywhere;
}

.mmd-single-sensor-compact .mmd-metric-value {
	font-size: 1.2rem;
}

.mmd-card-footer {
	align-items: center;
	color: #667085;
	display: flex;
	flex-wrap: wrap;
	font-size: 0.82rem;
	gap: 0.25rem 0.75rem;
	line-height: 1.4;
}

.mmd-freshness {
	align-items: center;
	color: #7a4a12;
	display: inline-flex;
	font-size: 0.78rem;
	font-weight: 500;
	gap: 0.4rem;
	line-height: 1.2;
}

.mmd-freshness::before {
	background: #d97706;
	border-radius: 999px;
	content: "";
	display: inline-block;
	height: 0.48rem;
	width: 0.48rem;
}

.mmd-freshness-stale {
	color: #9a3412;
}

.mmd-message {
	border-radius: 8px;
	font-size: 0.95rem;
	line-height: 1.5;
	padding: 0.9rem 1rem;
}

.mmd-message-empty {
	background: #f8fafc;
	border: 1px solid #d0d5dd;
	color: #475467;
}

.mmd-message-error {
	background: #fff5f5;
	border: 1px solid #f5b8b8;
	color: #9f1c1c;
}

@media (max-width: 480px) {
	.mmd-card-grid {
		grid-template-columns: 1fr;
	}

	.mmd-metrics {
		grid-template-columns: 1fr;
	}

	.mmd-single-sensor .mmd-metrics,
	.mmd-single-sensor-compact .mmd-metrics {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
