.caf-spd {
	--caf-ink: #0f172a;
	--caf-muted: #64748b;
	--caf-label: #475569;
	--caf-blue: #2f7cf6;
	--caf-track: #e6e9ee;
	max-width: 1040px;
	margin: 0 auto;
	padding: 0px 8px 4px;
	font-family: Inter, "Segoe UI", sans-serif;
	color: var(--caf-ink);
}

.caf-spd__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 28px 36px;
}

.caf-spd__gauge {
	position: relative;
	width: min(100%, 440px);
	flex: 1 1 440px;
}

.caf-spd__svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

circle[Attributes Style] {
    r: 0;
}

.caf-spd__tick {
	font-family: Inter, "Segoe UI", sans-serif;
	font-size: 9px;
	font-weight: 500;
	fill: #9aa1ab;
	text-anchor: middle;
	transform-box: view-box;
	transform-origin: 0 0;
	/* --x and --y are gauge coordinates. Right increases --x, up decreases --y. */
	transform: translate(calc(var(--x) / 360 * 100%), calc(var(--y) / 214 * 100%));
}

.caf-spd__tick--0 { --x: 88; --y: 150; }
.caf-spd__tick--1 { --x: 116; --y: 86; }
.caf-spd__tick--2 { --x: 180; --y: 60; }
.caf-spd__tick--3 { --x: 244; --y: 86; }
.caf-spd__tick--4 { --x: 272; --y: 150; }

.caf-spd__meter {
	/* Negative --y moves the needle and its hub up. */
	--y: -24;
	transform-box: view-box;
	transform-origin: 0 0;
	transform: translate(0, calc(var(--y) / 214 * 100%));
}

.caf-spd__needle {
	/* Rest angle at 0s. A reading aims the needle at that second on the arc. */
	--angle-zero: -101.5;
	transform-box: fill-box;
	transform-origin: 50% 50%;
	transform: rotate(calc(var(--angle-zero) * 1deg));
	fill: #6b7280;
	transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.caf-spd__hub {
	fill: #6b7280;
}

.caf-spd__hub-hole {
	fill: #fff;
}

.caf-spd.is-measuring .caf-spd__needle {
	transition-duration: 0.2s;
}

.caf-spd__readout {
	position: absolute;
	left: 50%;
	top: 68%;
	transform: translateX(-50%);
	text-align: center;
	width: 150px;
	pointer-events: none;
}

.caf-spd__readout-label {
	margin-top: 0;
	font-family: Poppins, Inter, sans-serif;
	font-size: 14px;
	font-weight: 400;
	color: #8b8b8b;
	line-height: 1.2;
}

.caf-spd__readout-value {
	font-family: Poppins, Inter, sans-serif;
	margin-top: 2px;
	font-size: 28px;
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.05;
	color: #11233a;
}

.caf-spd__card {
	flex: 1 1 461px;
	max-width: 461px;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
	padding: 18px 22px 14px;
}

.caf-spd__kicker {
display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #a3aab3;
    line-height: normal;
    margin-bottom: 4px;
}

.caf-spd__kicker svg {
	width: 16px;
	height: 16px;
	color: #1c2433;
}

.caf-spd__kicker--blue,
.caf-spd__kicker--blue svg {
	/*color: var(--caf-blue);*/
}

.caf-spd__figure {
	display: flex;
	align-items: baseline;
	gap: 6px;
	margin-top: 2px;
	font-size: 26px;
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 1;
	color: #0f172a;
}

.caf-spd__figure--tight {
	gap: 0;
}

.caf-spd__unit {
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0;
	color: var(--caf-label);
}

.caf-spd__unit--ink {
	color: #0f172a;
margin-left: 6px;
}

.caf-spd__range {
	margin-top: 2px;
	font-size: 10px;
	font-weight: 700;
	color: var(--caf-muted);
display:none;
}

.caf-spd__track {
	position: relative;
	height: 8px;
	margin: 15px 0 0;
	border-radius: 999px;
}

.caf-spd__dataline {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	/*column-gap: 14px;*/
	align-items: center;
	margin-top: 6px;
}

.caf-spd__dataline .caf-spd__range {
	grid-column: 1;
	grid-row: 1;
	margin: 0;
	padding-top: 22px;
}

.caf-spd__dataline .caf-spd__track {
	grid-column: 2;
	grid-row: 1;
	margin-top: 12px;
}

.caf-spd__dataline .caf-spd__scale {
	grid-column: 2;
	grid-row: 2;
	margin: 4px 0 0;
}

.caf-spd__track--time {
	background: linear-gradient(
		90deg,
		#4caf2a 0%,
		#7ed321 22%,
		#c6d63a 40%,
		#f5c400 54%,
		#f5a000 70%,
		#ef6c2b 86%,
		#e53935 100%
	);
}

.caf-spd__track--data {
	background: var(--caf-track);
}

.caf-spd__fill {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 0;
	border-radius: 999px;
	background: var(--caf-blue);
	transition: width 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.caf-spd__pin {
	position: absolute;
	top: 50%;
	left: 0;
	z-index: 1;
	transform: translate(-50%, -50%);
	transition: left 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.caf-spd__dot {
	display: block;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #111827;
	border: 2px solid #fff;
	box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.08);
}

.caf-spd__dot--blue {
	background: var(--caf-blue);
}

.caf-spd__pill {
	position: absolute;
	left: 50%;
	bottom: 12px;
	transform: translateX(-50%);
	padding: 2px 6px;
	border-radius: 4px;
	background: #111827;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
display:none;
}

.caf-spd__pill[hidden] {
	display: none;
}

.caf-spd__pill--blue {
	background: var(--caf-blue);
}

.caf-spd__scale {
	position: relative;
	height: 14px;
	margin: 4px 0 0;
	font-size: 10px;
	font-weight: 700;
	color: var(--caf-muted);
}

.caf-spd__scale span {
	position: absolute;
	top: 0;
	transform: translateX(-50%);
	white-space: nowrap;
}

.caf-spd__scale span.is-start {
	transform: none;
}

.caf-spd__scale span.is-end {
	transform: translateX(-100%);
}

.caf-spd__scale span.is-current {
	font-weight: 800;
	color: var(--caf-ink);
}

.caf-spd__scale span.is-current-blue {
	font-weight: 800;
	color: var(--caf-ink);
}

.caf-spd__rule {
	border: 0;
	border-top: 1px solid #e8edf3;
	margin: 14px 0 12px;
}

.caf-spd.is-waiting [data-seconds],
.caf-spd.is-waiting [data-kb] {
	color: #c5cad3;
}

.caf-spd.is-waiting .caf-spd__pin,
.caf-spd.is-waiting .caf-spd__fill {
	opacity: 0;
}

@media (max-width: 782px) {
	.caf-spd__card {
		padding: 16px 16px 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.caf-spd__needle,
	.caf-spd__pin,
	.caf-spd__fill {
		transition: none;
	}
}
