.vtl-board {
	--vtl-color-green: #4caf50;
	--vtl-color-yellow: #f9a825;
	--vtl-color-red: #e53935;
	--vtl-card-bg: #ffffff;
	--vtl-card-border: #d9dde3;
	--vtl-title-color: #1f2d3d;
	--vtl-text-color: #4b5563;
	--vtl-card-radius: 10px;
	--vtl-card-shadow: none;
	--vtl-grid-gap: 16px;
	--vtl-card-font: inherit;
	--vtl-title-size: 1.05rem;
	--vtl-status-text-size: 0.92rem;
	--vtl-cols-desktop: 3;
	--vtl-cols-tablet: 2;
	--vtl-cols-mobile: 1;
	display: grid;
	grid-template-columns: repeat(var(--vtl-cols-desktop), minmax(0, 1fr));
	gap: var(--vtl-grid-gap);
}

/* Some editors/page builders wrap shortcode output in <code>. */
.vtl-board > code {
	display: grid;
	grid-template-columns: repeat(var(--vtl-cols-desktop), minmax(0, 1fr));
	gap: var(--vtl-grid-gap);
	grid-column: 1 / -1;
	width: 100%;
	padding: 0;
	margin: 0;
	background: transparent;
	border: 0;
	white-space: normal;
	font-family: inherit;
	color: inherit;
}

.vtl-board > code > .vtl-card {
	margin: 0;
}

.vtl-board > .vtl-card:only-child,
.vtl-board > code > .vtl-card:only-child {
	grid-column: 1 / -1;
}

@media (max-width: 1024px) {
	.vtl-board {
		grid-template-columns: repeat(var(--vtl-cols-tablet), minmax(0, 1fr));
	}

	.vtl-board > code {
		grid-template-columns: repeat(var(--vtl-cols-tablet), minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.vtl-board {
		grid-template-columns: repeat(var(--vtl-cols-mobile), minmax(0, 1fr));
	}

	.vtl-board > code {
		grid-template-columns: repeat(var(--vtl-cols-mobile), minmax(0, 1fr));
	}
}

.vtl-card {
	background: var(--vtl-card-bg);
	border: 1px solid var(--vtl-card-border);
	border-radius: var(--vtl-card-radius);
	box-shadow: var(--vtl-card-shadow);
	padding: 14px;
	font-family: var(--vtl-card-font);
}

/* Smooth live status updates ([trafficlight] polling, no full reload). */
@media (prefers-reduced-motion: no-preference) {
	.vtl-board[data-vtl-live="1"] .vtl-card {
		transition:
			background 0.42s ease,
			border-color 0.42s ease,
			box-shadow 0.42s ease;
	}

	.vtl-board[data-vtl-live="1"] .vtl-card .vtl-card__title,
	.vtl-board[data-vtl-live="1"] .vtl-card .vtl-card__description,
	.vtl-board[data-vtl-live="1"] .vtl-card .vtl-card__status-text {
		transition: color 0.38s ease;
	}

	.vtl-board[data-vtl-live="1"] .vtl-card .vtl-card__icon {
		transition: color 0.36s ease;
	}

	.vtl-board[data-vtl-live="1"] .vtl-card .vtl-trafficlight .vtl-light {
		transition:
			opacity 0.36s ease,
			background-color 0.36s ease;
	}

	.vtl-board[data-vtl-live="1"] .vtl-card .vtl-dot {
		transition: background-color 0.38s ease;
	}

	.vtl-board[data-vtl-live="1"] .vtl-card .vtl-status-panel {
		transition: background-color 0.4s ease;
	}

	/*
	 * Strip segments get inline background-color from vtl-board.js on each update.
	 * A CSS transition on background-color here can animate to wrong intermediates on
	 * first paint / class toggles (fill vanishes, only a thin colored edge remains).
	 * Same idea as .vtl-thermometer__marker below.
	 */
	.vtl-board[data-vtl-live="1"] .vtl-card .vtl-status-strip__segment {
		transition: none;
	}

	/* Thermometer marker is driven by JS spring when status changes; avoid fighting CSS transition. */
	.vtl-board[data-vtl-live="1"] .vtl-card .vtl-thermometer__marker {
		transition: none;
	}

	.vtl-board[data-vtl-live="1"] .vtl-card .vtl-status-arc linearGradient stop {
		transition: stop-color 0.4s ease;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vtl-board[data-vtl-live="1"] .vtl-card,
	.vtl-board[data-vtl-live="1"] .vtl-card .vtl-card__title,
	.vtl-board[data-vtl-live="1"] .vtl-card .vtl-card__description,
	.vtl-board[data-vtl-live="1"] .vtl-card .vtl-card__status-text,
	.vtl-board[data-vtl-live="1"] .vtl-card .vtl-card__icon,
	.vtl-board[data-vtl-live="1"] .vtl-card .vtl-trafficlight .vtl-light,
	.vtl-board[data-vtl-live="1"] .vtl-card .vtl-dot,
	.vtl-board[data-vtl-live="1"] .vtl-card .vtl-status-panel,
	.vtl-board[data-vtl-live="1"] .vtl-card .vtl-status-strip__segment,
	.vtl-board[data-vtl-live="1"] .vtl-card .vtl-thermometer__marker,
	.vtl-board[data-vtl-live="1"] .vtl-card .vtl-status-arc linearGradient stop {
		transition: none !important;
	}

}

.vtl-card__header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}

.vtl-card__media-slot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	min-width: 36px;
	min-height: 36px;
}

.vtl-card__title {
	font-size: var(--vtl-title-size);
	line-height: 1.2;
	color: var(--vtl-title-color);
	margin: 0;
}

.vtl-card__description {
	color: var(--vtl-text-color);
	margin: 0 0 12px;
	font-size: 0.95rem;
}

.vtl-card__icon {
	width: 32px;
	height: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: var(--vtl-icon-color, var(--vtl-title-color));
}

.vtl-card__icon.dashicons {
	font-size: 28px;
	width: 28px;
	height: 28px;
}

.vtl-card__icon--fa i {
	font-size: 1em;
	line-height: 1;
	color: inherit;
}

.vtl-card__icon--svg svg {
	width: 100%;
	height: 100%;
	display: block;
}

.vtl-card__image {
	width: 32px;
	height: 32px;
	object-fit: cover;
	border-radius: 10px;
}

.vtl-card__image--rounded {
	border-radius: 10px;
}

.vtl-card__image--circle {
	border-radius: 50%;
}

.vtl-card__image--square {
	border-radius: 0;
}

.vtl-card.vtl-layout-badge .vtl-card__media-slot {
	width: auto;
	height: auto;
	min-width: 32px;
	min-height: 32px;
	border-radius: 0;
	background: transparent;
	align-self: flex-start;
}

.vtl-card.vtl-layout-badge {
	padding: 18px 18px 16px;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 12px;
	min-height: 260px;
}

.vtl-card.vtl-layout-bgstatus {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 12px;
	padding: 18px 18px 16px;
	min-height: 260px;
}

.vtl-card.vtl-layout-bgstatus .vtl-card__header {
	align-items: flex-start;
	gap: 18px;
	margin-bottom: 0;
	order: 1;
}

.vtl-card.vtl-layout-bgstatus .vtl-card__title {
	font-size: var(--vtl-title-size);
	line-height: 1.15;
	font-weight: 700;
	letter-spacing: 0.01em;
	margin: 0;
}

.vtl-card.vtl-layout-bgstatus .vtl-card__description {
	margin: 0;
	order: 2;
}

.vtl-card.vtl-layout-bgstatus .vtl-card__status--panel {
	display: flex;
	align-items: stretch;
	flex: 1 1 auto;
	min-height: 118px;
	margin: 6px 0 0;
	order: 3;
}

.vtl-card.vtl-layout-bgstatus .vtl-status-panel {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 0;
	border: 1px solid rgba(255, 255, 255, 0.14);
}

.vtl-card.vtl-layout-bgstatus .vtl-card__status-text {
	margin: 0;
	padding-top: 12px;
	font-size: var(--vtl-status-text-size);
	line-height: 1.15;
	order: 4;
}

.vtl-card.vtl-layout-badge .vtl-card__header {
	align-items: flex-start;
	gap: 18px;
	margin-bottom: 0;
	order: 1;
}

.vtl-card.vtl-layout-badge .vtl-card__title {
	font-size: var(--vtl-title-size);
	line-height: 1.15;
	font-weight: 700;
	letter-spacing: 0.01em;
	margin-top: 0;
}

.vtl-card.vtl-layout-badge .vtl-card__description {
	margin: 0;
	font-size: 0.98rem;
	order: 2;
}

.vtl-card.vtl-layout-badge .vtl-card__media-slot .vtl-card__icon {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: transparent;
}

.vtl-card.vtl-layout-badge.vtl-status-green .vtl-card__media-slot .vtl-card__icon {
	background: transparent;
}

.vtl-card.vtl-layout-badge.vtl-status-yellow .vtl-card__media-slot .vtl-card__icon {
	background: transparent;
}

.vtl-card.vtl-layout-badge.vtl-status-red .vtl-card__media-slot .vtl-card__icon {
	background: transparent;
}

.vtl-card.vtl-layout-badge .vtl-card__status-text {
	margin-top: auto;
	font-size: var(--vtl-status-text-size);
	order: 4;
	line-height: 1.15;
	padding-top: 14px;
}

.vtl-card.vtl-layout-ring .vtl-card__media-slot {
	width: auto;
	height: auto;
	min-width: 32px;
	min-height: 32px;
	border-radius: 0;
	background: transparent;
	align-self: flex-start;
}

.vtl-card.vtl-layout-ring .vtl-card__status-text {
	margin-top: 8px;
	font-size: var(--vtl-status-text-size);
	order: 4;
	line-height: 1.15;
}

.vtl-card.vtl-layout-ring .vtl-card__media-slot .vtl-card__icon {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: transparent;
}

.vtl-card.vtl-layout-ring.vtl-status-green .vtl-card__media-slot .vtl-card__icon {
	background: transparent;
}

.vtl-card.vtl-layout-ring.vtl-status-yellow .vtl-card__media-slot .vtl-card__icon {
	background: transparent;
}

.vtl-card.vtl-layout-ring.vtl-status-red .vtl-card__media-slot .vtl-card__icon {
	background: transparent;
}

.vtl-card.vtl-layout-ring .vtl-card__status--arc {
	margin-top: 6px;
	margin-bottom: 0;
	order: 3;
	flex: 1 1 auto;
	min-height: 120px;
	display: flex;
	align-items: stretch;
}

.vtl-card.vtl-layout-ring .vtl-card__header {
	margin-bottom: 0;
	order: 1;
	align-items: flex-start;
	gap: 18px;
	padding-top: 6px;
	padding-left: 8px;
}

.vtl-card.vtl-layout-ring .vtl-card__description {
	order: 2;
	margin: 0;
}

.vtl-card.vtl-layout-ring {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 12px;
	min-height: 260px;
}

.vtl-card.vtl-layout-ring .vtl-card__title {
	font-size: var(--vtl-title-size);
	line-height: 1.15;
	font-weight: 700;
	letter-spacing: 0.01em;
	margin-top: 0;
}

.vtl-card.vtl-layout-thermometer {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	grid-template-rows: auto 1fr auto;
	column-gap: 18px;
	row-gap: 10px;
	padding: 18px 18px 16px;
	min-height: 260px;
	align-items: stretch;
}

.vtl-card.vtl-layout-thermometer .vtl-card__header {
	grid-column: 1;
	grid-row: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
}

.vtl-card.vtl-layout-thermometer .vtl-card__media-slot {
	width: auto;
	height: auto;
	min-width: 32px;
	min-height: 32px;
	border-radius: 0;
	background: transparent;
}

.vtl-card.vtl-layout-thermometer .vtl-card__media-slot .vtl-card__icon {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: transparent;
}

.vtl-card.vtl-layout-thermometer.vtl-status-green .vtl-card__media-slot .vtl-card__icon {
	background: transparent;
}

.vtl-card.vtl-layout-thermometer.vtl-status-yellow .vtl-card__media-slot .vtl-card__icon {
	background: transparent;
}

.vtl-card.vtl-layout-thermometer.vtl-status-red .vtl-card__media-slot .vtl-card__icon {
	background: transparent;
}

.vtl-card.vtl-layout-thermometer .vtl-card__title {
	font-size: var(--vtl-title-size);
	line-height: 1.15;
	font-weight: 700;
	letter-spacing: 0.01em;
	margin: 0;
}

.vtl-card.vtl-layout-thermometer .vtl-card__description {
	grid-column: 1;
	grid-row: 2;
	margin: 0;
	align-self: start;
}

.vtl-card.vtl-layout-thermometer .vtl-card__status-text {
	grid-column: 1;
	grid-row: 3;
	margin: 0;
	font-size: var(--vtl-status-text-size);
	line-height: 1.15;
	align-self: end;
}

.vtl-card.vtl-layout-thermometer .vtl-card__status--thermometer,
.vtl-card.vtl-layout-thermometer .vtl-card__status {
	grid-column: 2;
	grid-row: 1 / 4;
	display: flex;
	justify-content: center;
	align-items: stretch;
	margin: 0;
}

.vtl-card.vtl-layout-thermometer .vtl-thermometer {
	width: 100%;
	max-width: none;
	height: 100%;
	min-height: 210px;
	max-height: none;
	align-self: stretch;
	border-radius: 28px;
}

.vtl-card.vtl-layout-thermometer .vtl-thermometer__marker {
	width: calc(100% - 12px);
	max-width: none;
	height: 22px;
	margin-left: 0;
}

.vtl-card.vtl-layout-classic {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	grid-template-rows: auto 1fr auto;
	column-gap: 18px;
	row-gap: 10px;
	padding: 18px 18px 16px;
	min-height: 260px;
	align-items: stretch;
}

.vtl-card.vtl-layout-classic .vtl-card__header {
	grid-column: 1;
	grid-row: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
}

.vtl-card.vtl-layout-classic .vtl-card__media-slot {
	width: auto;
	height: auto;
	min-width: 32px;
	min-height: 32px;
	border-radius: 0;
	background: transparent;
}

.vtl-card.vtl-layout-classic .vtl-card__media-slot .vtl-card__icon {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: transparent;
}

.vtl-card.vtl-layout-classic.vtl-status-green .vtl-card__media-slot .vtl-card__icon {
	background: transparent;
}

.vtl-card.vtl-layout-classic.vtl-status-yellow .vtl-card__media-slot .vtl-card__icon {
	background: transparent;
}

.vtl-card.vtl-layout-classic.vtl-status-red .vtl-card__media-slot .vtl-card__icon {
	background: transparent;
}

.vtl-card.vtl-layout-classic .vtl-card__title {
	font-size: var(--vtl-title-size);
	line-height: 1.15;
	font-weight: 700;
	letter-spacing: 0.01em;
	margin: 0;
}

.vtl-card.vtl-layout-classic .vtl-card__description {
	grid-column: 1;
	grid-row: 2;
	margin: 0;
	align-self: start;
}

.vtl-card.vtl-layout-classic .vtl-card__status-text {
	grid-column: 1;
	grid-row: 3;
	margin: 0;
	font-size: var(--vtl-status-text-size);
	line-height: 1.15;
	align-self: end;
}

.vtl-card.vtl-layout-classic .vtl-card__status--full,
.vtl-card.vtl-layout-classic .vtl-card__status--current,
.vtl-card.vtl-layout-classic .vtl-card__status {
	grid-column: 2;
	grid-row: 1 / 4;
	display: flex;
	justify-content: flex-end;
	align-items: stretch;
	margin: 0;
	height: 100%;
	padding-right: 0;
}

.vtl-card.vtl-layout-classic .vtl-trafficlight {
	padding: 14px 12px;
	border-radius: 18px;
	gap: 0;
	width: 100%;
	max-width: 96px;
	height: 100%;
	min-height: 210px;
	max-height: none;
	justify-content: space-evenly;
	align-self: stretch;
	box-sizing: border-box;
}

.vtl-card.vtl-layout-classic .vtl-light {
	width: 56px !important;
	height: 56px !important;
	flex: 0 0 auto;
	aspect-ratio: 1 / 1;
	border-radius: 50% !important;
	align-self: center;
}

.vtl-card.vtl-layout-classic .vtl-light {
	width: 22px;
	height: 22px;
}

.vtl-card__status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
}

.vtl-card__status-text {
	margin: 8px 0 0;
	font-size: var(--vtl-status-text-size);
	color: var(--vtl-text-color);
}

.vtl-card__status--full {
	align-items: flex-end;
}

.vtl-card__status--thermometer {
	align-items: center;
}

.vtl-card__status--strip {
	display: flex;
	align-items: stretch;
	flex: 1 1 auto;
	min-height: 72px;
	margin-top: 6px;
	margin-bottom: 0;
	order: 3;
	padding-left: 0;
	padding-right: 0;
}

.vtl-status-strip {
	display: grid;
	grid-template-columns: repeat(30, minmax(0, 1fr));
	gap: 5px;
	width: 100%;
	position: relative;
	padding-left: 0;
	padding-right: 0;
	align-items: stretch;
	align-content: stretch;
	margin: 0;
	/*
	 * Avoid height:100% here: with an implicit auto grid row, percentage heights on
	 * children often resolve to 0 — only the 1px border stays visible (“thin rim”).
	 */
	min-height: 64px;
}

.vtl-status-strip__segment {
	display: block;
	align-self: stretch;
	min-height: 48px;
	border-radius: 0;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(31, 45, 61, 0.24);
	background-image: none;
}

/* Class fallback before JS; live boards overwrite per segment with inline `background` */
.vtl-status-strip__segment.is-active {
	background: var(--vtl-color-green);
	background-image: none;
	border-color: rgba(255, 255, 255, 0.35);
}

/* Beat `span { background: … !important }` from themes on inactive strip cells */
.vtl-board .vtl-status-strip > .vtl-status-strip__segment:not(.is-active) {
	background: rgba(31, 45, 61, 0.24) !important;
	background-image: none !important;
	border-color: rgba(255, 255, 255, 0.12) !important;
}

.vtl-card__status--arc {
	display: flex;
	justify-content: center;
	margin-top: 10px;
}

.vtl-status-arc {
	display: inline-flex;
	width: 100%;
	max-width: none;
	align-self: center;
	padding-left: 0;
	padding-right: 0;
}

.vtl-status-arc__svg {
	width: 100%;
	height: auto;
	display: block;
}

.vtl-status-arc__track {
	fill: none;
	stroke: rgba(31, 45, 61, 0.18);
	stroke-width: 24;
	stroke-linecap: round;
}

.vtl-status-arc__progress {
	fill: none;
	stroke-width: 24;
	stroke-linecap: round;
}

.vtl-status-arc__marker {
	fill: #fff;
	stroke: #1f2d3d;
	stroke-width: 3.5;
	filter: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.25));
}

.vtl-trafficlight {
	display: inline-flex;
	flex-direction: column;
	gap: 4px;
	padding: 6px 5px;
	background: #2f3439;
	border-radius: 7px;
}

.vtl-light {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #9ca3af;
	opacity: 0.35;
}

.vtl-light.is-inactive {
	opacity: 0.16;
	filter: grayscale(0.2);
}

.vtl-light.is-active {
	opacity: 1 !important;
	filter: none;
	transform: scale(1.12);
	border: 2px solid rgba(15, 23, 42, 0.9);
	box-shadow: 0 3px 8px rgba(15, 23, 42, 0.35);
}

.vtl-thermometer {
	display: inline-block;
	position: relative;
	width: 16px;
	height: 86px;
	border-radius: 28px;
	border: 0;
	background: var(--vtl-thermo-gradient, linear-gradient(to bottom, #4caf50 0%, #e53935 100%));
	box-shadow: none;
}

.vtl-thermometer__marker {
	position: absolute;
	left: 50%;
	width: 16px;
	height: 16px;
	margin-left: 0;
	border-radius: 999px;
	box-sizing: border-box;
	background: #fff;
	border: 4.5px solid #1f2d3d;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.25);
	transform: translate(-50%, -50%);
	z-index: 2;
}

.vtl-light.vtl-light-green.is-active {
	background: var(--vtl-color-green);
	opacity: 1;
}

.vtl-light.vtl-light-yellow.is-active {
	background: var(--vtl-color-yellow);
	opacity: 1;
}

.vtl-light.vtl-light-red.is-active {
	background: var(--vtl-color-red);
	opacity: 1;
}

.vtl-dot {
	display: inline-block;
	width: 13px;
	height: 13px;
	border-radius: 50%;
	background: #9ca3af;
}

.vtl-status-green .vtl-dot {
	background: var(--vtl-color-green);
}

.vtl-status-yellow .vtl-dot {
	background: var(--vtl-color-yellow);
}

.vtl-status-red .vtl-dot {
	background: var(--vtl-color-red);
}

.vtl-bg-by-status.vtl-status-green {
	background: rgba(76, 175, 80, 0.12);
	border-color: rgba(76, 175, 80, 0.35);
}

.vtl-bg-by-status.vtl-status-yellow {
	background: rgba(249, 168, 37, 0.14);
	border-color: rgba(249, 168, 37, 0.35);
}

.vtl-bg-by-status.vtl-status-red {
	background: rgba(229, 57, 53, 0.14);
	border-color: rgba(229, 57, 53, 0.35);
}

/* Light UI island: reset dark-page inheritance (e.g. marketing landing body color). */
.vtl-terminal {
	background: #f4f6f8;
	border: 1px solid #c8cdd4;
	border-radius: 0;
	padding: 16px;
	color: #0f1419;
	box-shadow: 0 2px 12px rgba(15, 20, 25, 0.06);
}

.vtl-terminal__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
}

.vtl-terminal__title {
	margin: 0;
	font-size: 1.2rem;
}

.vtl-terminal__pair-state {
	display: inline-flex;
	align-items: center;
	margin: 6px 0 0;
}

.vtl-terminal__pair-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #8c8f94;
	box-shadow: 0 0 0 2px rgba(140, 143, 148, 0.18);
}

.vtl-terminal__pair-state.is-disconnected .vtl-terminal__pair-dot {
	background: #d63638;
	box-shadow: 0 0 0 2px rgba(214, 54, 56, 0.14);
}

.vtl-terminal__pair-state.is-connected .vtl-terminal__pair-dot {
	background: #2f9e44;
	box-shadow: 0 0 0 2px rgba(47, 158, 68, 0.18);
}

.vtl-terminal__logo {
	display: block;
	max-height: 48px;
	width: auto;
	margin: 0 0 6px;
	object-fit: contain;
}

.vtl-terminal__device-name {
	margin: 4px 0 0;
	font-size: 0.85rem;
	color: #646970;
}

.vtl-terminal__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.vtl-terminal button.vtl-terminal__btn,
.vtl-terminal .vtl-terminal__btn {
	border: 1px solid #c5cad3;
	background: #fff;
	border-radius: 0 !important;
	padding: 9px 12px;
	cursor: pointer;
	color: #0f1419 !important;
	font-weight: 600;
}

.vtl-terminal .vtl-terminal__btn:hover {
	background: #e8eaed;
}

.vtl-terminal__credentials {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 10px;
}

.vtl-terminal__credentials.is-collapsed {
	display: none;
}

.vtl-terminal__credentials label {
	display: flex;
	flex-direction: column;
	gap: 5px;
	font-size: 0.85rem;
}

.vtl-terminal__setup-methods {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.vtl-terminal .vtl-terminal__setup-methods .vtl-terminal__btn.is-active {
	background: #1d4ed8;
	color: #fff !important;
	border-color: #1d4ed8;
	border-radius: 0 !important;
}

.vtl-terminal__setup-panel {
	display: none;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 10px;
	align-items: end;
}

.vtl-terminal__setup-panel.is-active {
	display: grid;
}

.vtl-terminal__setup-panel[hidden] {
	display: none !important;
}

.vtl-terminal__actions--secondary {
	border-top: 1px dashed #dcdcde;
	padding-top: 8px;
}

.vtl-terminal__credentials input {
	padding: 7px 8px;
	border: 1px solid #dcdcde;
	border-radius: 0;
}

.vtl-terminal__setup-status {
	margin: 2px 0 0;
	font-size: 0.9rem;
	color: #3c434a;
	min-height: 1.2em;
}

.vtl-terminal__status {
	margin: 0 0 12px;
	font-size: 0.9rem;
}

.vtl-terminal__connection-name {
	margin: -4px 0 12px;
	font-size: 1.12rem;
	color: #0f1419;
	font-weight: 700;
	line-height: 1.25;
}

.vtl-terminal__pairing {
	margin: 0 0 12px;
	padding: 10px;
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 0;
	display: none;
}

.vtl-terminal__pairing.is-visible {
	display: block !important;
}

.vtl-terminal__pairing img {
	max-width: 220px;
	height: auto;
	display: block;
	background: #fff;
	padding: 6px;
	border: 1px solid #dcdcde;
	border-radius: 0;
}

.vtl-terminal__stations {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

@media (max-width: 900px) {
	.vtl-terminal__stations {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {
	.vtl-terminal__stations {
		grid-template-columns: 1fr;
	}
}

.vtl-terminal-card {
	background: #fff;
	border: 1px solid #c5cad3;
	/* linker Streifen: Breite/Farbe setzt JS aus aktivem Status (Backend), Platzhalter bis Mount */
	border-left: 10px solid #94a3b8;
	border-radius: 0;
	padding: 12px 12px 12px 14px;
	box-shadow: 0 1px 3px rgba(15, 20, 25, 0.06);
}

.vtl-terminal .vtl-terminal-card__title,
.vtl-terminal h4.vtl-terminal-card__title {
	margin: 0 0 8px;
	font-size: 1.05rem;
	color: #06090d !important;
	-webkit-text-fill-color: #06090d;
	font-weight: 800;
	letter-spacing: -0.01em;
	line-height: 1.2;
}

.vtl-terminal-card__meta {
	margin: 0 0 8px;
	font-size: 0.8rem;
	color: #646970;
}

.vtl-terminal-card__controls {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
	gap: 8px;
}

/*
 * Status-Buttons: einheitliche Fläche, nur Text unterscheidet Optionen.
 * Inaktiv = hellgrau, Aktiv = dunkelgrau + helles Label (kein Doppel-Rand).
 */
.vtl-terminal button.vtl-terminal-card__btn,
.vtl-terminal .vtl-terminal-card__btn {
	box-sizing: border-box;
	border-radius: 0 !important;
	padding: 11px 10px;
	font-size: 0.95rem;
	letter-spacing: 0.01em;
	line-height: 1.3;
	cursor: pointer;
	transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
	-webkit-font-smoothing: antialiased;
	background: #e2e5ea !important;
	background-image: none !important;
	color: #1a1f26 !important;
	border: 1px solid #b7bec9 !important;
	font-weight: 600;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset;
	outline: none !important;
	filter: none !important;
}

.vtl-terminal .vtl-terminal-card__btn:not(.is-active):hover {
	background: #d5d9e0 !important;
	border-color: #a8b0bd !important;
}

.vtl-terminal .vtl-terminal-card__btn:active {
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12) inset;
}

.vtl-terminal .vtl-terminal-card__btn:disabled {
	opacity: 0.65;
	cursor: wait;
}

.vtl-terminal .vtl-terminal-card__btn.is-active {
	background: #2f343c !important;
	background-image: none !important;
	color: #f2f4f7 !important;
	border-color: #1e2228 !important;
	font-weight: 700;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

.vtl-terminal .vtl-terminal-card__btn.is-active:hover {
	background: #3a4049 !important;
	border-color: #252a31 !important;
}

.vtl-terminal__analytics {
	margin-top: 12px;
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 0;
	padding: 10px;
}

.vtl-terminal__analytics-controls {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	gap: 8px;
	margin-bottom: 8px;
}

.vtl-terminal__analytics-controls label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 0.85rem;
}

.vtl-terminal__analytics-controls input {
	padding: 7px 8px;
	border: 1px solid #dcdcde;
	border-radius: 6px;
}

.vtl-terminal__analytics-title {
	margin: 0 0 6px;
}

.vtl-terminal__analytics-total {
	margin: 0 0 8px;
}

.vtl-terminal__analytics-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 8px;
}

.vtl-terminal__analytics-item {
	border: 1px solid #dcdcde;
	border-radius: 8px;
	padding: 8px;
	background: #fbfbfc;
}

.vtl-terminal__analytics-meta {
	font-size: 0.85rem;
	color: #50575e;
	margin-top: 4px;
}

.vtl-terminal--minimal {
	background: transparent;
	border: 0;
	padding: 0;
}

.vtl-terminal--minimal .vtl-terminal__credentials,
.vtl-terminal--minimal .vtl-terminal__status,
.vtl-terminal--minimal .vtl-terminal__pairing,
.vtl-terminal--minimal .vtl-terminal__analytics {
	display: none !important;
}

.vtl-terminal--minimal .vtl-terminal__header {
	display: flex !important;
	justify-content: flex-start;
	align-items: flex-start;
	margin: 0 0 10px;
}

.vtl-terminal--minimal .vtl-terminal__header .vtl-terminal__actions,
.vtl-terminal--minimal .vtl-terminal__title,
.vtl-terminal--minimal .vtl-terminal__device-name {
	display: none !important;
}

.vtl-terminal--minimal.vtl-terminal--setup-needed {
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	padding: 14px;
}

.vtl-terminal--minimal.vtl-terminal--setup-needed .vtl-terminal__header {
	display: flex !important;
}

.vtl-terminal--minimal.vtl-terminal--setup-needed [data-vtl-action="toggle-credentials"] {
	display: none !important;
}

.vtl-terminal--minimal.vtl-terminal--setup-needed .vtl-terminal__credentials {
	display: grid !important;
}

.vtl-terminal--minimal.vtl-terminal--setup-needed .vtl-terminal__status {
	display: block !important;
}

.vtl-terminal--minimal.vtl-terminal--setup-needed .vtl-terminal__pairing.is-visible {
	display: block !important;
}
