.mf-header {
	display: flex;
	align-items: center;
	gap: var(--mf-space-4);
	padding: var(--mf-space-2) var(--mf-space-3);
	background: linear-gradient(180deg, var(--mf-color-accent-faint), transparent),
		var(--mf-color-surface);
	border-bottom: var(--mf-border);
}

.mf-header-id {
	flex: 1 1 auto;
	display: flex;
	align-items: baseline;
	gap: var(--mf-space-5);
	min-width: 0;
}

.mf-header-title {
	color: var(--mf-color-accent);
	font-size: var(--mf-font-size-small);
	font-weight: var(--mf-font-weight-strong);
	letter-spacing: var(--mf-track-heading);
	text-transform: uppercase;
	text-shadow: 0 0 8px var(--mf-color-accent-faint);
}

.mf-header-sub {
	color: var(--mf-color-text-muted);
	font-size: var(--mf-font-size-tiny);
	letter-spacing: var(--mf-track-caption);
	text-transform: uppercase;
}

/* Collapsed, or an empty rail still opens a gap beside the identity. */
.mf-header > .mf-widget-rail:empty {
	display: none;
}

.mf-header > .mf-widget-rail[data-mf-slot="header-right"] {
	gap: var(--mf-space-5);
	justify-content: flex-end;
}

/* A caption over its value. Worn by the clock too, so HST reads as the last cell. */
.mf-telemetry {
	flex-direction: column;
	align-items: flex-end;
	gap: 0;
	line-height: var(--mf-font-line-height-tight);

	.mf-widget-label {
		color: var(--mf-color-text-muted);
		font-size: var(--mf-font-size-tiny);
		letter-spacing: var(--mf-track-label);
	}
}

/* A cell that is pressed reads as one that is not, until the pointer is on it. */
button.mf-telemetry {
	padding: 0;
	background: none;
	border: 0;
	cursor: pointer;

	&:hover .mf-widget-label,
	&:focus-visible .mf-widget-label {
		color: var(--mf-color-text-bright);
	}
}

.mf-telemetry-value {
	color: var(--mf-color-text);
	font-weight: var(--mf-font-weight-strong);

	&[data-mf-tone="ok"] {
		color: var(--mf-color-success);
		text-shadow: 0 0 6px color-mix(in srgb, var(--mf-color-success) 40%, transparent);
	}

	&[data-mf-tone="bad"] {
		color: var(--mf-color-danger);
	}
}
