/*
 * Desk9 Video Guides
 *
 * Colors and fonts follow the theme: lines, muted text and tiles are mixed from the
 * current text color, so the blocks work on light and dark themes alike. The accent
 * color and the corner radius can be changed under Video Guides > Settings.
 */

/* ---------- Tokens ---------- */
.d9vg {
	--d9vg-bg: var(--wp--preset--color--base, #fff);
	--d9vg-accent-c: var(--d9vg-accent, var(--wp--preset--color--contrast, #1e1e1e));
	--d9vg-on-accent-c: var(--d9vg-on-accent, var(--wp--preset--color--base, #fff));
	--d9vg-line: color-mix(in srgb, currentColor 15%, transparent);
	--d9vg-line-strong: color-mix(in srgb, currentColor 28%, transparent);
	--d9vg-muted: color-mix(in srgb, currentColor 70%, transparent);
	--d9vg-soft: color-mix(in srgb, currentColor 6%, transparent);
	--d9vg-tile: color-mix(in srgb, currentColor 8%, transparent);
	--d9vg-r-sm: var(--d9vg-radius-all, 6px);
	--d9vg-r: var(--d9vg-radius-all, 12px);
	--d9vg-r-lg: var(--d9vg-radius-all, 16px);
	--d9vg-r-pill: var(--d9vg-radius-all, 999px);
	--d9vg-sticky-top: 0px;
}
.admin-bar .d9vg { --d9vg-sticky-top: 32px; }
@media (max-width: 782px) { .admin-bar .d9vg { --d9vg-sticky-top: 46px; } }
@media (max-width: 600px) { .admin-bar .d9vg { --d9vg-sticky-top: 0px; } }

/* ---------- Base: neutralize theme defaults inside the blocks ---------- */
.d9vg,
.d9vg *,
.d9vg *::before,
.d9vg *::after { box-sizing: border-box; }
.d9vg { line-height: 1.5; }
.d9vg p, .d9vg li, .d9vg strong, .d9vg span, .d9vg label {
	color: inherit;
	font-family: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
}
.d9vg p { margin: 0; padding: 0; }
.d9vg h2, .d9vg h3 { margin: 0; padding: 0; line-height: 1.15; }
.d9vg a { text-decoration: none; }
.d9vg img { max-width: 100%; height: auto; display: block; }
.d9vg [hidden] { display: none !important; }
.d9vg :focus-visible { outline: 3px solid var(--d9vg-accent-c); outline-offset: 3px; }
.d9vg .d9vg-icon { width: 20px; height: 20px; flex-shrink: 0; }
.d9vg .d9vg-notice { padding: 16px 20px; border: 1px dashed var(--d9vg-line-strong); border-radius: var(--d9vg-r); color: var(--d9vg-muted); }

/* ---------- Buttons ---------- */
.d9vg .d9vg-btn {
	min-height: 48px;
	margin: 0;
	padding: 0 22px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	border: 1px solid transparent;
	border-radius: var(--d9vg-r-pill);
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: 0;
	box-shadow: none;
	cursor: pointer;
	transition: background 0.15s, color 0.15s, border-color 0.15s, filter 0.15s;
}
.d9vg .d9vg-btn--accent { background: var(--d9vg-accent-c); color: var(--d9vg-on-accent-c); }
.d9vg .d9vg-btn--accent:hover { filter: brightness(0.9); background: var(--d9vg-accent-c); color: var(--d9vg-on-accent-c); }
.d9vg .d9vg-btn--outline { background: transparent; border-color: currentColor; color: inherit; }
.d9vg .d9vg-btn--outline:hover { background: var(--d9vg-soft); color: inherit; }

/* ---------- Two-click player ---------- */
.d9vg .d9vg-player {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: var(--d9vg-r);
	overflow: hidden;
	background: #111;
	container-type: inline-size;
}
.d9vg .d9vg-player--hero { border-radius: var(--d9vg-r-lg); background: #000; }
.d9vg .d9vg-player img { width: 100%; height: 100%; object-fit: cover; }
.d9vg .d9vg-player--hero img { opacity: 0.78; }
.d9vg .d9vg-player iframe,
.d9vg .d9vg-player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.d9vg .d9vg-player__btn {
	position: absolute;
	inset: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	/* Light shade so the button reads on bright preview images */
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.28));
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: none;
}
/* Size follows the card: small cards get a small button, large cards a larger one */
.d9vg .d9vg-player__play {
	width: clamp(36px, 20cqi, 60px);
	height: clamp(36px, 20cqi, 60px);
	border-radius: var(--d9vg-r-pill);
	background: rgba(0, 0, 0, 0.55);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35), 0 6px 20px rgba(0, 0, 0, 0.25);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s, color 0.15s, transform 0.15s;
}
.d9vg .d9vg-player__play .d9vg-icon { width: 42%; height: 42%; margin-left: 6%; }
.d9vg .d9vg-player img { transition: transform 0.4s ease; }
.d9vg .d9vg-video:hover .d9vg-player:not(.is-playing) img { transform: scale(1.04); }
.d9vg .d9vg-video:hover .d9vg-player__play { background: var(--d9vg-accent-c); color: var(--d9vg-on-accent-c); transform: scale(1.06); }
.d9vg .d9vg-player__btn:hover .d9vg-player__play,
.d9vg .d9vg-player__btn:focus-visible .d9vg-player__play { background: var(--d9vg-accent-c); color: var(--d9vg-on-accent-c); transform: scale(1.06); }
.d9vg .d9vg-player--hero .d9vg-player__btn { background: transparent; }
.d9vg .d9vg-player--hero .d9vg-player__play { width: clamp(56px, 12cqi, 80px); height: clamp(56px, 12cqi, 80px); background: var(--d9vg-accent-c); color: var(--d9vg-on-accent-c); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35); -webkit-backdrop-filter: none; backdrop-filter: none; }
.d9vg .d9vg-player--hero .d9vg-player__play .d9vg-icon { width: 38%; height: 38%; }
.d9vg .d9vg-player__caption { position: absolute; left: 24px; right: 24px; bottom: 22px; display: flex; flex-direction: column; gap: 4px; color: #fff; pointer-events: none; }
.d9vg .d9vg-player__label { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.d9vg .d9vg-player__name { font-size: 24px; font-weight: 600; line-height: 1.2; }
.d9vg .d9vg-player.is-playing .d9vg-player__caption { display: none; }
.d9vg.d9vg-video-block { display: flex; flex-direction: column; gap: 12px; }
.d9vg .d9vg-privacy-hint { margin: 0; display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--d9vg-muted); }
.d9vg .d9vg-privacy-hint .d9vg-icon { width: 15px; height: 15px; }
.d9vg .d9vg-privacy-hint a { color: inherit; text-decoration: underline; }

/* ---------- Consent panel (before YouTube loads) ---------- */
.d9vg .d9vg-player.is-asking .d9vg-player__caption { display: none; }
.d9vg .d9vg-player.is-asking img { filter: blur(2px) brightness(0.45); transform: scale(1.03); }
.d9vg .d9vg-consent {
	position: absolute;
	inset: 0;
	padding: 24px 28px;
	display: flex;
	flex-direction: column;
	justify-content: safe center;
	align-items: flex-start;
	gap: 10px;
	overflow-y: auto;
	color: #fff;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.75));
	text-align: left;
}
.d9vg .d9vg-consent p { margin: 0; color: #fff; }
.d9vg .d9vg-consent :focus-visible { outline-color: #fff; }
.d9vg .d9vg-consent__title { font-size: 20px; font-weight: 700; line-height: 1.2; }
.d9vg .d9vg-consent__text { font-size: 14px; line-height: 1.5; max-width: 460px; opacity: 0.88; }
.d9vg .d9vg-consent__text a { color: #fff; text-decoration: underline; }
.d9vg .d9vg-consent__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 6px; }
.d9vg .d9vg-consent__play { min-height: 44px; padding: 0 20px; }
/* White on the dark overlay reads with any accent color */
.d9vg .d9vg-consent .d9vg-consent__play,
.d9vg .d9vg-consent .d9vg-consent__play:hover { background: #fff; color: #111; filter: none; }
.d9vg .d9vg-consent .d9vg-consent__play:hover { background: #e8e8e8; }
.d9vg .d9vg-consent__always { display: inline-flex; align-items: center; gap: 8px; margin: 0; min-height: 44px; font-size: 14px; font-weight: 600; color: #fff; cursor: pointer; }
.d9vg .d9vg-consent__always input { width: 20px; height: 20px; margin: 0; accent-color: var(--d9vg-accent-c); }
.d9vg .d9vg-consent__close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: var(--d9vg-r-pill);
	background: transparent;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: none;
}
.d9vg .d9vg-consent__close:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
/* Small cards: only the essentials, shorter text */
@container (max-width: 420px) {
	.d9vg .d9vg-consent { padding: 12px 14px; gap: 6px; }
	.d9vg .d9vg-consent__title { font-size: 16px; padding-right: 36px; }
	.d9vg .d9vg-consent__text { font-size: 12px; line-height: 1.4; }
	.d9vg .d9vg-consent__actions { gap: 4px 12px; margin-top: 2px; }
	.d9vg .d9vg-consent__play { min-height: 40px; padding: 0 16px; font-size: 14px; }
	.d9vg .d9vg-consent__always { min-height: 32px; font-size: 12px; }
	.d9vg .d9vg-consent__always input { width: 16px; height: 16px; }
	.d9vg .d9vg-consent__close { top: 2px; right: 2px; }
}
@container (max-width: 300px) {
	.d9vg .d9vg-consent { padding: 8px 10px; gap: 4px; }
	.d9vg .d9vg-consent__text { display: none; }
	.d9vg .d9vg-consent__title { font-size: 14px; }
	.d9vg .d9vg-consent__actions { gap: 2px 10px; margin-top: 0; }
	.d9vg .d9vg-consent__play { min-height: 34px; padding: 0 14px; font-size: 13px; }
	.d9vg .d9vg-consent__always { min-height: 28px; font-size: 11px; gap: 6px; }
	.d9vg .d9vg-consent__always input { width: 14px; height: 14px; }
}
@container (max-width: 240px) {
	.d9vg .d9vg-consent__always { display: none; }
	.d9vg .d9vg-consent__title { font-size: 13px; padding-right: 30px; }
	.d9vg .d9vg-consent__close { width: 36px; height: 36px; }
}
/* No note needed once the provider is allowed */
.d9vg-consent-youtube .d9vg .d9vg-privacy-hint[data-source="youtube"],
.d9vg-consent-vimeo .d9vg .d9vg-privacy-hint[data-source="vimeo"] { display: none; }

/* ---------- Full-screen view (dark by default, light or theme colors in the settings) ---------- */
html.d9vg-lb-open { overflow: hidden; }
.d9vg.d9vg-lb {
	width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 20px 28px;
	border: 0; background: var(--d9vg-lb-bg); color: var(--d9vg-lb-fg);
	flex-direction: column; gap: 16px;
}
.d9vg.d9vg-lb[open] { display: flex; }
.d9vg.d9vg-lb::backdrop { background: var(--d9vg-lb-backdrop); }
.d9vg.d9vg-lb .d9vg-lb__bar { display: flex; align-items: center; justify-content: space-between; }
.d9vg.d9vg-lb .d9vg-lb__counter { font-size: 14px; color: var(--d9vg-lb-muted); }
.d9vg.d9vg-lb .d9vg-lb__close,
.d9vg.d9vg-lb .d9vg-lb__nav {
	width: 48px; height: 48px; margin: 0; padding: 0; border: 1px solid var(--d9vg-lb-line); border-radius: var(--d9vg-r-pill);
	background: transparent; color: var(--d9vg-lb-fg); display: inline-flex; align-items: center; justify-content: center; flex: none; cursor: pointer; box-shadow: none;
}
.d9vg.d9vg-lb .d9vg-lb__close:hover,
.d9vg.d9vg-lb .d9vg-lb__nav:hover { border-color: var(--d9vg-lb-fg); background: transparent; color: var(--d9vg-lb-strong); }
.d9vg.d9vg-lb .d9vg-lb__main { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px 340px; gap: 20px; align-items: center; }
.d9vg.d9vg-lb .d9vg-lb__stage { height: 100%; min-height: 0; display: flex; align-items: center; justify-content: center; container-type: size; touch-action: pan-y; }
.d9vg.d9vg-lb .d9vg-player--lb { width: min(100cqw, 100cqh * 16 / 9); border-radius: var(--d9vg-r); background: #000; }
.d9vg.d9vg-lb .d9vg-player--lb img { opacity: 0.85; }
.d9vg.d9vg-lb .d9vg-player--lb .d9vg-player__btn { background: transparent; }
.d9vg.d9vg-lb .d9vg-player--lb .d9vg-player__play { width: 80px; height: 80px; background: var(--d9vg-accent-c); color: var(--d9vg-on-accent-c); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35); -webkit-backdrop-filter: none; backdrop-filter: none; }
.d9vg.d9vg-lb .d9vg-player--lb .d9vg-player__play .d9vg-icon { width: 32px; height: 32px; margin: 0; }
.d9vg.d9vg-lb .d9vg-lb__info { align-self: stretch; padding: 28px; border-radius: var(--d9vg-r-lg); background: var(--d9vg-lb-panel); display: flex; flex-direction: column; gap: 12px; overflow: auto; }
.d9vg.d9vg-lb .d9vg-lb__tag { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--d9vg-lb-muted); }
.d9vg.d9vg-lb .d9vg-lb__title { margin: 0; font-weight: 700; font-size: 26px; line-height: 1.15; color: var(--d9vg-lb-strong); }
.d9vg.d9vg-lb .d9vg-lb__product { font-size: 15px; color: var(--d9vg-lb-muted); margin-top: -6px; }
.d9vg.d9vg-lb .d9vg-lb__desc { margin: 0; font-size: 15px; line-height: 1.6; color: var(--d9vg-lb-text); white-space: pre-line; }
.d9vg.d9vg-lb .d9vg-lb__manuals { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--d9vg-lb-line); display: flex; flex-direction: column; gap: 10px; }
.d9vg.d9vg-lb .d9vg-lb__label { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--d9vg-lb-muted); }
.d9vg.d9vg-lb .d9vg-lb__btn {
	min-height: 48px; padding: 8px 16px; display: flex; align-items: center; gap: 10px;
	border: 1px solid var(--d9vg-lb-line); border-radius: var(--d9vg-r); color: var(--d9vg-lb-fg); font-weight: 600; font-size: 15px; line-height: 1.3; text-decoration: none;
}
.d9vg.d9vg-lb .d9vg-lb__btn svg { width: 18px; height: 18px; flex: none; }
.d9vg.d9vg-lb .d9vg-lb__btn:hover { border-color: var(--d9vg-lb-fg); color: var(--d9vg-lb-strong); }
.d9vg.d9vg-lb .d9vg-lb__btn-text { flex: 1 1 auto; min-width: 0; }
.d9vg.d9vg-lb .d9vg-lb__filetype { flex: none; padding: 2px 6px; border: 1px solid var(--d9vg-lb-line); border-radius: var(--d9vg-r-sm); font-size: 11px; font-weight: 700; color: var(--d9vg-lb-muted); }
.d9vg.d9vg-lb .d9vg-lb__thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 2px 360px 2px 68px; scrollbar-width: none; }
.d9vg.d9vg-lb .d9vg-lb__thumbs::-webkit-scrollbar { display: none; }
.d9vg.d9vg-lb .d9vg-lb__thumb {
	position: relative; width: 144px; height: 81px; flex: none; margin: 0; padding: 0; border: 2px solid transparent; border-radius: min(10px, var(--d9vg-r));
	overflow: hidden; background: #000; opacity: 0.55; cursor: pointer; box-shadow: none;
}
.d9vg.d9vg-lb .d9vg-lb__thumb:hover { opacity: 0.85; }
.d9vg.d9vg-lb .d9vg-lb__thumb[aria-current="true"] { border-color: var(--d9vg-lb-fg); opacity: 1; }
.d9vg.d9vg-lb .d9vg-lb__thumb img { width: 100%; height: 100%; object-fit: cover; }
.d9vg.d9vg-lb .d9vg-lb__thumb-title {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 4px; font-size: 11px; line-height: 1.25; text-align: left; color: #fff;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.85)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.d9vg.d9vg-lb :focus-visible { outline: 3px solid var(--d9vg-lb-fg); outline-offset: 3px; }

/* ---------- Video library ---------- */
.d9vg.d9vg-library { padding-bottom: 32px; container: d9vg-lib / inline-size; }
/* A size container has no width of its own content: inside flex or grid groups (Row, Stack,
   page builders) give it the full width, otherwise it could shrink to nothing. */
:where(.is-layout-flex, .is-layout-grid, .wp-block-group-is-layout-flex) > .d9vg.d9vg-library,
:where(.is-layout-flex, .is-layout-grid, .wp-block-group-is-layout-flex) > .wp-block-desk9-video-guides-library { align-self: stretch; flex: 1 1 100%; width: 100%; min-width: 0; }
.d9vg .d9vg-sentinel { height: 0; }
.d9vg .d9vg-filter {
	background: var(--d9vg-bg);
	border-bottom: 1px solid var(--d9vg-line);
	padding-top: 20px;
	padding-bottom: 20px;
	scroll-margin-top: calc(var(--d9vg-sticky-top) + 16px);
}
.d9vg .d9vg-filter__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.d9vg .d9vg-chips-wrap { position: relative; min-width: 0; }
.d9vg .d9vg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.d9vg .d9vg-chip,
.d9vg .d9vg-seg {
	margin: 0;
	font-family: inherit;
	font-weight: 600;
	font-size: 14px;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: 0;
	box-shadow: none;
	cursor: pointer;
}
.d9vg .d9vg-chip {
	min-height: 44px;
	padding: 0 14px 0 18px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border-radius: var(--d9vg-r-pill);
	background: transparent;
	color: inherit;
	border: 1px solid var(--d9vg-line-strong);
	white-space: nowrap;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.d9vg .d9vg-chip:hover { border-color: currentColor; background: transparent; color: inherit; }
.d9vg .d9vg-chip[aria-pressed="true"] { background: var(--d9vg-accent-c); color: var(--d9vg-on-accent-c); border-color: var(--d9vg-accent-c); }
.d9vg .d9vg-chip[data-empty="true"]:not([aria-pressed="true"]) { color: var(--d9vg-muted); border-style: dashed; }
.d9vg .d9vg-chip__count {
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: var(--d9vg-r-pill);
	background: var(--d9vg-tile);
	font-size: 12px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.d9vg .d9vg-chip[aria-pressed="true"] .d9vg-chip__count { background: color-mix(in srgb, var(--d9vg-on-accent-c) 20%, transparent); }
.d9vg .d9vg-l-short { display: none; }
.d9vg .d9vg-segmented { display: flex; padding: 4px; background: var(--d9vg-tile); border-radius: var(--d9vg-r-pill); flex-shrink: 0; }
.d9vg .d9vg-seg { min-height: 40px; padding: 0 18px; border: 0; border-radius: var(--d9vg-r-pill); background: transparent; color: var(--d9vg-muted); }
.d9vg .d9vg-seg:hover { background: transparent; color: inherit; }
.d9vg .d9vg-seg[aria-pressed="true"] { background: var(--d9vg-bg); color: inherit; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18); }
.d9vg .d9vg-fbar { display: none; }

.d9vg .d9vg-result { margin: 20px 0 8px; font-size: 14px; color: var(--d9vg-muted); }
.d9vg .d9vg-product {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 48px;
	padding: 40px 0;
	border-top: 1px solid var(--d9vg-line);
	scroll-margin-top: calc(var(--d9vg-sticky-top) + 120px);
}
.d9vg .d9vg-product__aside { display: flex; flex-direction: column; gap: 16px; }
.d9vg .d9vg-product__tile {
	height: 170px;
	background: var(--d9vg-tile);
	border-radius: var(--d9vg-r);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	color: var(--d9vg-muted);
}
.d9vg .d9vg-product__tile img { max-width: 86%; max-height: 150px; width: auto; object-fit: contain; }
.d9vg .d9vg-product__tile .d9vg-icon { width: 52px; height: 52px; stroke-width: 1.4; }
.d9vg .d9vg-product__head { display: flex; flex-direction: column; gap: 4px; }
.d9vg .d9vg-product__count { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--d9vg-muted); }
.d9vg .d9vg-product__title { margin: 0; font-size: 28px; font-weight: 700; line-height: 1.15; }
.d9vg .d9vg-manuals { display: flex; flex-direction: column; }
.d9vg .d9vg-manual {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 10px 0;
	color: inherit;
	font-weight: 600;
	font-size: 15px;
	line-height: 1.35;
	text-decoration: none;
}
.d9vg .d9vg-manual .d9vg-icon { width: 18px; height: 18px; color: var(--d9vg-accent-c); }
.d9vg .d9vg-manuals .d9vg-manual + .d9vg-manual { border-top: 1px solid var(--d9vg-line); }
.d9vg .d9vg-manual:hover .d9vg-manual__name { text-decoration: underline; }
.d9vg .d9vg-manual__text { flex: 1 1 auto; min-width: 0; }
/* One consistent file type badge for all download links */
.d9vg .d9vg-filetype {
	flex: none;
	display: inline-block;
	padding: 1px 5px;
	border: 1px solid var(--d9vg-line-strong);
	border-radius: min(4px, var(--d9vg-r-sm));
	font-size: 10px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.08em;
	color: var(--d9vg-muted);
	text-decoration: none;
	vertical-align: 1px;
}
.d9vg .d9vg-manual .d9vg-filetype { margin-left: 6px; }
.d9vg .d9vg-videos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; align-content: start; }
.d9vg .d9vg-video { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.d9vg .d9vg-video__meta { display: flex; flex-direction: column; gap: 8px; cursor: pointer; }
.d9vg .d9vg-video:hover .d9vg-video__title { text-decoration: underline; text-underline-offset: 3px; }
.d9vg .d9vg-video__title { margin: 0; font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1.4; text-transform: none; letter-spacing: 0; color: inherit; }
.d9vg .d9vg-tag { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 8px; border-radius: var(--d9vg-r-sm); background: var(--d9vg-tile); color: var(--d9vg-muted); }
.d9vg .d9vg-empty { align-self: start; padding: 28px; border: 1px dashed var(--d9vg-line-strong); border-radius: var(--d9vg-r); display: flex; flex-direction: column; gap: 8px; max-width: 560px; }
.d9vg .d9vg-empty strong { font-size: 18px; font-weight: 600; }
.d9vg .d9vg-empty span { font-size: 15px; line-height: 1.6; color: var(--d9vg-muted); }
.d9vg .d9vg-no-results { padding: 48px 0; border-top: 1px solid var(--d9vg-line); color: var(--d9vg-muted); }

/* ---------- Bottom sheet (variant "filter bar") ---------- */
.d9vg .d9vg-fbar__btn {
	flex: 1;
	min-width: 0;
	min-height: 52px;
	margin: 0;
	padding: 0 14px;
	display: flex;
	align-items: center;
	gap: 12px;
	background: var(--d9vg-soft);
	border: 1px solid var(--d9vg-line);
	border-radius: var(--d9vg-r);
	color: inherit;
	font-family: inherit;
	text-align: left;
	text-transform: none;
	box-shadow: none;
	cursor: pointer;
}
.d9vg .d9vg-fbar__text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.d9vg .d9vg-fbar__title { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d9vg .d9vg-fbar__meta { font-size: 12px; color: var(--d9vg-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d9vg .d9vg-fbar__badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--d9vg-r-pill); background: var(--d9vg-accent-c); color: var(--d9vg-on-accent-c); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.d9vg .d9vg-fbar__reset { width: 52px; height: 52px; flex-shrink: 0; margin: 0; padding: 0; border: 1px solid var(--d9vg-line); border-radius: var(--d9vg-r); background: transparent; color: inherit; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.d9vg .d9vg-sheet {
	width: 100%;
	max-width: 560px;
	max-height: 90dvh;
	margin: auto auto 0;
	padding: 0;
	border: 0;
	border-radius: min(22px, var(--d9vg-r-lg)) min(22px, var(--d9vg-r-lg)) 0 0;
	background: var(--d9vg-bg);
	color: inherit;
	font-family: inherit;
	box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.2);
	overflow: hidden;
}
.d9vg .d9vg-sheet[open] { display: flex; flex-direction: column; animation: d9vg-sheet-up 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); }
.d9vg .d9vg-sheet::backdrop { background: rgba(0, 0, 0, 0.55); }
@keyframes d9vg-sheet-up { from { transform: translateY(100%); } to { transform: none; } }
.d9vg .d9vg-sheet__grip { width: 40px; height: 4px; border-radius: 4px; background: var(--d9vg-line-strong); margin: 10px auto 0; }
.d9vg .d9vg-sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px 8px 20px; }
.d9vg .d9vg-sheet__head h2 { margin: 0; font-size: 20px; font-weight: 700; text-transform: none; }
.d9vg .d9vg-sheet__close { width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: none; }
.d9vg .d9vg-sheet__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px 20px 16px; }
.d9vg .d9vg-sheet fieldset { border: 0; margin: 0 0 20px; padding: 0; min-width: 0; }
.d9vg .d9vg-sheet legend { padding: 0; margin-bottom: 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--d9vg-muted); }
.d9vg .d9vg-sheet-seg { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; padding: 4px; background: var(--d9vg-tile); border-radius: var(--d9vg-r-pill); }
.d9vg .d9vg-sheet-seg label { position: relative; min-height: 44px; margin: 0; display: flex; align-items: center; justify-content: center; border-radius: var(--d9vg-r-pill); font-size: 14px; font-weight: 600; color: var(--d9vg-muted); cursor: pointer; }
.d9vg .d9vg-sheet-seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.d9vg .d9vg-sheet-seg label:has(input:checked) { background: var(--d9vg-bg); color: inherit; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18); }
.d9vg .d9vg-sheet-seg label:has(input:focus-visible) { outline: 3px solid var(--d9vg-accent-c); outline-offset: 2px; }
.d9vg .d9vg-opt { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto 22px; align-items: center; gap: 14px; min-height: 64px; margin: 0; padding: 6px 0; border-bottom: 1px solid var(--d9vg-line); cursor: pointer; font-weight: 400; }
.d9vg .d9vg-opt:last-child { border-bottom: 0; }
.d9vg .d9vg-opt__img { width: 56px; height: 44px; border-radius: min(10px, var(--d9vg-r)); background: var(--d9vg-tile); display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--d9vg-muted); }
.d9vg .d9vg-opt__img img { max-width: 90%; max-height: 38px; width: auto; object-fit: contain; }
.d9vg .d9vg-opt__name { font-weight: 600; font-size: 16px; }
.d9vg .d9vg-opt__count { font-size: 13px; color: var(--d9vg-muted); }
.d9vg .d9vg-opt input { width: 22px; height: 22px; margin: 0; accent-color: var(--d9vg-accent-c); }
.d9vg .d9vg-opt[data-empty="true"] .d9vg-opt__name, .d9vg .d9vg-opt[data-empty="true"] .d9vg-opt__count { color: var(--d9vg-muted); }
.d9vg .d9vg-sheet__foot { display: flex; gap: 10px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--d9vg-line); background: var(--d9vg-bg); }
.d9vg .d9vg-sheet__foot .d9vg-btn { padding: 0 18px; white-space: nowrap; }
.d9vg .d9vg-sheet__foot .d9vg-btn--accent { flex: 1; }
body.d9vg-sheet-open { overflow: hidden; }

/* ---------- Manuals block ---------- */
.d9vg .d9vg-downloads__head { margin-bottom: 32px; }
.d9vg .d9vg-downloads__title { margin: 0; font-size: clamp(26px, 3vw, 36px); font-weight: 700; line-height: 1.1; }
.d9vg .d9vg-downloads__intro { margin-top: 12px; font-size: 16px; line-height: 1.6; color: var(--d9vg-muted); }
.d9vg .d9vg-dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.d9vg p.d9vg-dl { margin: 0; }
.d9vg .d9vg-dl a {
	padding: 20px;
	min-height: 120px;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 16px;
	background: var(--d9vg-soft);
	border: 1px solid var(--d9vg-line);
	border-radius: var(--d9vg-r);
	color: inherit;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.d9vg .d9vg-dl a strong { font-size: 18px; font-weight: 600; line-height: 1.25; }
.d9vg .d9vg-dl a:hover { background: var(--d9vg-tile); border-color: var(--d9vg-line-strong); transform: translateY(-2px); }
.d9vg .d9vg-dl__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--d9vg-muted); }

/* ==========================================================================
   Pro 1.1: style options
   Block options (classes on the library): d9vg-cols-*, d9vg-card--*, d9vg-ar--*,
   d9vg-prod--*, d9vg-title--*, d9vg-hide-*. Global options (Settings, on every
   block): d9vg-play--*, d9vg-hover--*, d9vg-frame--*, d9vg-filter--*, d9vg-no-counts.
   ========================================================================== */

/* ---------- Badges on the preview image: "New" and the length ---------- */
.d9vg .d9vg-badges { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.d9vg .d9vg-badge {
	position: absolute; padding: 3px 7px; border-radius: min(6px, var(--d9vg-r-sm));
	font-size: 11px; font-weight: 700; line-height: 1.3; letter-spacing: 0.02em; color: #fff; background: rgba(0, 0, 0, 0.72);
}
.d9vg .d9vg-badge--new { top: 8px; left: 8px; text-transform: uppercase; letter-spacing: 0.08em; background: var(--d9vg-accent-c); color: var(--d9vg-on-accent-c); }
.d9vg .d9vg-badge--time { right: 8px; bottom: 8px; font-variant-numeric: tabular-nums; }
.d9vg .d9vg-player.is-playing .d9vg-badges,
.d9vg .d9vg-player.is-asking .d9vg-badges { display: none; }
.d9vg .d9vg-player__text { display: none; }

/* ---------- Videos per row ---------- */
.d9vg.d9vg-cols-2 .d9vg-videos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.d9vg.d9vg-cols-3 .d9vg-videos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.d9vg.d9vg-cols-4 .d9vg-videos { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 18px; }
/* Upright videos: narrower cards, more per row */
.d9vg.d9vg-ar--9-16.d9vg-cols-auto .d9vg-videos { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }

/* ---------- Image format ---------- */
.d9vg.d9vg-ar--4-3 .d9vg-videos .d9vg-player { aspect-ratio: 4 / 3; }
.d9vg.d9vg-ar--1-1 .d9vg-videos .d9vg-player { aspect-ratio: 1 / 1; }
.d9vg.d9vg-ar--9-16 .d9vg-videos .d9vg-player { aspect-ratio: 9 / 16; }

/* ---------- Product area ---------- */
.d9vg.d9vg-prod--top .d9vg-product,
.d9vg.d9vg-prod--minimal .d9vg-product { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 32px 0; }
.d9vg.d9vg-prod--top .d9vg-product__aside { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px 16px; align-items: center; }
.d9vg.d9vg-prod--top .d9vg-product__tile { height: 72px; grid-row: span 2; }
.d9vg.d9vg-prod--top .d9vg-product__tile img { max-height: 60px; }
.d9vg.d9vg-prod--top .d9vg-product__tile .d9vg-icon { width: 30px; height: 30px; }
.d9vg.d9vg-prod--minimal .d9vg-product__tile { display: none; }
/* Photos (JPEG) fill the product tile and the filter thumbnail; cutouts (PNG, WebP, SVG) stay fitted. */
.d9vg .d9vg-product__tile.d9vg-product__tile--photo img,
.d9vg .d9vg-opt__img.d9vg-opt__img--photo img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; }
.d9vg.d9vg-prod--minimal .d9vg-product__aside { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.d9vg.d9vg-prod--top .d9vg-manuals,
.d9vg.d9vg-prod--minimal .d9vg-manuals { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 24px; }
.d9vg.d9vg-prod--top .d9vg-manuals .d9vg-manual + .d9vg-manual,
.d9vg.d9vg-prod--minimal .d9vg-manuals .d9vg-manual + .d9vg-manual { border-top: 0; }
.d9vg.d9vg-prod--top .d9vg-manual,
.d9vg.d9vg-prod--minimal .d9vg-manual { border-bottom: 1px solid var(--d9vg-line); }

/* ---------- What is shown ---------- */
.d9vg.d9vg-hide-type .d9vg-video .d9vg-tag,
.d9vg.d9vg-hide-count .d9vg-product__count,
.d9vg.d9vg-hide-manuals .d9vg-product .d9vg-manuals { display: none; }

/* ---------- Text size ---------- */
.d9vg.d9vg-title--s .d9vg-video__title { font-size: 14px; }
.d9vg.d9vg-title--s .d9vg-product__title { font-size: 22px; }
.d9vg.d9vg-title--l .d9vg-video__title { font-size: 19px; line-height: 1.3; }
.d9vg.d9vg-title--l .d9vg-product__title { font-size: 34px; }

/* ---------- Card style: title on the image ---------- */
.d9vg.d9vg-card--overlay .d9vg-video { position: relative; gap: 0; }
.d9vg.d9vg-card--overlay .d9vg-video__meta {
	position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; gap: 6px; padding: 48px 14px 12px;
	border-radius: 0 0 var(--d9vg-r) var(--d9vg-r); background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.8));
	color: #fff; pointer-events: none;
}
.d9vg.d9vg-card--overlay .d9vg-video__title { color: #fff; }
.d9vg.d9vg-card--overlay .d9vg-video .d9vg-tag { background: rgba(255, 255, 255, 0.2); color: #fff; }
.d9vg.d9vg-card--overlay .d9vg-player__btn { background: transparent; padding-bottom: 14%; }
.d9vg.d9vg-card--overlay .d9vg-badge--time { top: 8px; bottom: auto; }
.d9vg.d9vg-card--overlay .d9vg-video:has(.is-playing) .d9vg-video__meta,
.d9vg.d9vg-card--overlay .d9vg-video:has(.is-asking) .d9vg-video__meta { display: none; }
/* In a framed card the title sits on the image, which ends 14px above the card edge */
.d9vg.d9vg-card--overlay.d9vg-frame--line .d9vg-video,
.d9vg.d9vg-card--overlay.d9vg-frame--surface .d9vg-video { padding-bottom: 10px; }
.d9vg.d9vg-card--overlay.d9vg-frame--line .d9vg-video .d9vg-video__meta,
.d9vg.d9vg-card--overlay.d9vg-frame--surface .d9vg-video .d9vg-video__meta { left: 10px; right: 10px; bottom: 10px; padding-left: 14px; padding-right: 14px; }

/* ---------- Card style: list with small images ---------- */
.d9vg.d9vg-library.d9vg-card--list .d9vg-videos { grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 16px 28px; }
.d9vg.d9vg-card--list .d9vg-video { display: grid; grid-template-columns: minmax(110px, 40%) minmax(0, 1fr); gap: 16px; align-items: center; }
.d9vg.d9vg-card--list.d9vg-ar--9-16 .d9vg-video { grid-template-columns: minmax(80px, 26%) minmax(0, 1fr); }
.d9vg.d9vg-card--list .d9vg-video__meta { gap: 6px; }
.d9vg.d9vg-card--list .d9vg-video__title { font-size: 15px; }
.d9vg.d9vg-card--list.d9vg-title--l .d9vg-video__title { font-size: 17px; }
/* Playing in the card: give the player the whole row */
.d9vg.d9vg-card--list .d9vg-video:has(.is-playing),
.d9vg.d9vg-card--list .d9vg-video:has(.is-asking) { grid-template-columns: minmax(0, 1fr); }

/* ---------- Play button (cards only; the large video and the full-screen view keep theirs) ---------- */
.d9vg.d9vg-play--accent .d9vg-player:not(.d9vg-player--hero):not(.d9vg-player--lb) .d9vg-player__play {
	background: var(--d9vg-accent-c); color: var(--d9vg-on-accent-c); -webkit-backdrop-filter: none; backdrop-filter: none;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.d9vg.d9vg-play--icon .d9vg-player:not(.d9vg-player--hero):not(.d9vg-player--lb) .d9vg-player__play,
.d9vg.d9vg-play--icon .d9vg-video:hover .d9vg-player__play {
	width: clamp(40px, 24cqi, 72px); height: clamp(40px, 24cqi, 72px); background: transparent; color: #fff;
	-webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none;
}
.d9vg.d9vg-play--icon .d9vg-player:not(.d9vg-player--hero):not(.d9vg-player--lb) .d9vg-player__play .d9vg-icon { width: 70%; height: 70%; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.55)); }
.d9vg.d9vg-play--icon .d9vg-video:hover .d9vg-player__play { transform: scale(1.12); }
.d9vg.d9vg-play--label .d9vg-player:not(.d9vg-player--hero):not(.d9vg-player--lb) .d9vg-player__play {
	width: auto; height: auto; min-height: 36px; padding: 0 16px 0 12px; gap: 6px;
	background: rgba(255, 255, 255, 0.94); color: #111; -webkit-backdrop-filter: none; backdrop-filter: none;
	font-size: 13px; font-weight: 700; line-height: 1; white-space: nowrap;
}
.d9vg.d9vg-play--label .d9vg-player:not(.d9vg-player--hero):not(.d9vg-player--lb) .d9vg-player__play .d9vg-icon { width: 14px; height: 14px; margin: 0; }
.d9vg.d9vg-play--label .d9vg-player:not(.d9vg-player--hero):not(.d9vg-player--lb) .d9vg-player__text { display: inline; }
/* Very small cards: icon only */
@container (max-width: 180px) {
	.d9vg.d9vg-play--label .d9vg-player__text { display: none; }
	.d9vg.d9vg-play--label .d9vg-player:not(.d9vg-player--hero):not(.d9vg-player--lb) .d9vg-player__play { padding: 0 10px; }
}

/* ---------- Hover effect ---------- */
.d9vg .d9vg-video { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.d9vg.d9vg-hover--brighten .d9vg-video:hover .d9vg-player:not(.is-playing) img { transform: none; filter: brightness(1.12) saturate(1.05); }
.d9vg.d9vg-hover--lift .d9vg-video:hover .d9vg-player:not(.is-playing) img,
.d9vg.d9vg-hover--none .d9vg-video:hover .d9vg-player:not(.is-playing) img { transform: none; }
.d9vg.d9vg-hover--lift .d9vg-video:not(:has(.is-playing, .is-asking)):hover { transform: translateY(-4px); }
.d9vg.d9vg-hover--lift .d9vg-video:not(:has(.is-playing, .is-asking)):hover .d9vg-player { box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18); }
.d9vg.d9vg-hover--lift.d9vg-frame--line .d9vg-video:not(:has(.is-playing, .is-asking)):hover,
.d9vg.d9vg-hover--lift.d9vg-frame--surface .d9vg-video:not(:has(.is-playing, .is-asking)):hover { box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12); }
.d9vg.d9vg-hover--lift.d9vg-frame--line .d9vg-video:hover .d9vg-player,
.d9vg.d9vg-hover--lift.d9vg-frame--surface .d9vg-video:hover .d9vg-player { box-shadow: none; }
.d9vg.d9vg-hover--none .d9vg-video:hover .d9vg-video__title { text-decoration: none; }

/* ---------- Card frame ---------- */
.d9vg.d9vg-frame--line .d9vg-video { padding: 10px 10px 14px; border: 1px solid var(--d9vg-line); border-radius: var(--d9vg-r-lg); }
.d9vg.d9vg-frame--surface .d9vg-video { padding: 10px 10px 14px; border-radius: var(--d9vg-r-lg); background: var(--d9vg-soft); }
.d9vg.d9vg-frame--line .d9vg-video__meta,
.d9vg.d9vg-frame--surface .d9vg-video__meta { padding-left: 4px; padding-right: 4px; }
.d9vg.d9vg-frame--line.d9vg-card--list .d9vg-video,
.d9vg.d9vg-frame--surface.d9vg-card--list .d9vg-video { padding: 8px; }

/* ---------- Product filter style ---------- */
.d9vg.d9vg-filter--square .d9vg-chip { border-radius: min(6px, var(--d9vg-r-sm)); }
.d9vg.d9vg-filter--square .d9vg-chip__count { border-radius: min(4px, var(--d9vg-r-sm)); }
.d9vg.d9vg-filter--tabs .d9vg-chips { gap: 4px 22px; }
.d9vg.d9vg-filter--tabs .d9vg-chip,
.d9vg.d9vg-filter--tabs .d9vg-chip:hover {
	padding: 0 2px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--d9vg-muted);
}
.d9vg.d9vg-filter--tabs .d9vg-chip:hover { color: inherit; border-bottom-color: var(--d9vg-line-strong); }
.d9vg.d9vg-filter--tabs .d9vg-chip[aria-pressed="true"] { background: transparent; color: inherit; border-bottom-color: var(--d9vg-accent-c); }
.d9vg.d9vg-filter--tabs .d9vg-chip[aria-pressed="true"] .d9vg-chip__count { background: var(--d9vg-accent-c); color: var(--d9vg-on-accent-c); }
.d9vg.d9vg-filter--tabs .d9vg-chip[data-empty="true"]:not([aria-pressed="true"]) { opacity: 0.55; }
.d9vg.d9vg-no-counts .d9vg-chip__count { display: none; }
.d9vg.d9vg-no-counts .d9vg-chip { padding-right: 18px; }
.d9vg.d9vg-filter--tabs.d9vg-no-counts .d9vg-chip,
.d9vg.d9vg-library--chips.d9vg-filter--tabs .d9vg-chip { padding: 0 2px; }

/* ---------- Full-screen view: light and theme colors ---------- */
.d9vg.d9vg-lb,
.d9vg.d9vg-lbmock {
	--d9vg-lb-bg: #141414; --d9vg-lb-backdrop: rgba(20, 20, 20, 0.96); --d9vg-lb-fg: #f2f2f2; --d9vg-lb-strong: #fff;
	--d9vg-lb-muted: #b5b5b5; --d9vg-lb-text: #d6d6d6; --d9vg-lb-line: #3a3a3a; --d9vg-lb-panel: #1f1f1f;
}
.d9vg.d9vg-lb.d9vg-lb--light,
.d9vg.d9vg-lbmock.d9vg-lb--light {
	--d9vg-lb-bg: #f4f4f4; --d9vg-lb-backdrop: rgba(244, 244, 244, 0.97); --d9vg-lb-fg: #1e1e1e; --d9vg-lb-strong: #000;
	--d9vg-lb-muted: #5c5c5c; --d9vg-lb-text: #333; --d9vg-lb-line: #d4d4d4; --d9vg-lb-panel: #fff;
}
.d9vg.d9vg-lb.d9vg-lb--theme,
.d9vg.d9vg-lbmock.d9vg-lb--theme {
	--d9vg-lb-bg: var(--wp--preset--color--base, #fff);
	--d9vg-lb-backdrop: color-mix(in srgb, var(--wp--preset--color--base, #fff) 96%, transparent);
	--d9vg-lb-fg: var(--wp--preset--color--contrast, #1e1e1e); --d9vg-lb-strong: var(--wp--preset--color--contrast, #1e1e1e);
	--d9vg-lb-muted: color-mix(in srgb, var(--wp--preset--color--contrast, #1e1e1e) 65%, transparent);
	--d9vg-lb-text: color-mix(in srgb, var(--wp--preset--color--contrast, #1e1e1e) 85%, transparent);
	--d9vg-lb-line: color-mix(in srgb, var(--wp--preset--color--contrast, #1e1e1e) 18%, transparent);
	--d9vg-lb-panel: color-mix(in srgb, var(--wp--preset--color--contrast, #1e1e1e) 5%, var(--wp--preset--color--base, #fff));
	font-family: var(--wp--preset--font-family--body, inherit);
}

/* ---------- Library layout by the width of the block (also in narrow content columns) ---------- */
@container d9vg-lib (max-width: 1100px) {
	.d9vg .d9vg-product { grid-template-columns: 220px minmax(0, 1fr); gap: 32px; }
	.d9vg .d9vg-videos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.d9vg.d9vg-cols-4 .d9vg-videos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@container d9vg-lib (max-width: 800px) {
	.d9vg .d9vg-product { grid-template-columns: 1fr; gap: 20px; padding: 28px 0; }
	.d9vg .d9vg-product__aside { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px 16px; align-items: center; }
	.d9vg .d9vg-product__tile { height: 72px; grid-row: span 2; }
	.d9vg .d9vg-product__tile img { max-height: 60px; }
	.d9vg .d9vg-product__tile .d9vg-icon { width: 30px; height: 30px; }
	.d9vg .d9vg-product__title { font-size: 24px; }
	.d9vg .d9vg-manuals { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 24px; }
	.d9vg .d9vg-manuals .d9vg-manual + .d9vg-manual { border-top: 0; }
	.d9vg .d9vg-manual { border-bottom: 1px solid var(--d9vg-line); }
	.d9vg .d9vg-videos { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px 20px; }
	.d9vg.d9vg-cols-3 .d9vg-videos,
	.d9vg.d9vg-cols-4 .d9vg-videos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.d9vg.d9vg-title--l .d9vg-product__title { font-size: 28px; }
}
@container d9vg-lib (max-width: 480px) {
	.d9vg .d9vg-videos,
	.d9vg[class*="d9vg-cols-"] .d9vg-videos { grid-template-columns: 1fr; gap: 24px; }
	.d9vg.d9vg-ar--9-16[class*="d9vg-cols-"]:not(.d9vg-card--list) .d9vg-videos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
	.d9vg .d9vg-product__title { font-size: 21px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
	.d9vg .d9vg-filter__inner { flex-direction: column; align-items: flex-start; gap: 16px; }
	.d9vg .d9vg-chips-wrap { width: 100%; }
}
@media (max-width: 960px) {
	.d9vg.d9vg-library[data-d9vg-sticky="1"] .d9vg-filter {
		position: sticky;
		/* view.js sets --d9vg-top to the bottom edge of a fixed theme header */
		top: max(var(--d9vg-sticky-top), var(--d9vg-top, 0px));
		z-index: 50;
		transition: transform 0.25s ease, box-shadow 0.2s;
	}
	.d9vg .d9vg-filter.is-stuck { box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); }
	.d9vg .d9vg-filter.is-hidden { transform: translateY(calc(-100% - max(var(--d9vg-sticky-top), var(--d9vg-top, 0px)))); }
}
/* Full-screen view on tablets and phones: player on top, details below */
@media (max-width: 960px) {
	.d9vg.d9vg-lb { padding: 12px; gap: 10px; }
	.d9vg.d9vg-lb .d9vg-lb__main { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); align-items: start; position: relative; gap: 12px; }
	.d9vg.d9vg-lb .d9vg-lb__stage { grid-row: 1; height: auto; container-type: inline-size; }
	.d9vg.d9vg-lb .d9vg-player--lb { width: 100%; }
	.d9vg.d9vg-lb .d9vg-player--lb .d9vg-player__play { width: 64px; height: 64px; }
	.d9vg.d9vg-lb .d9vg-player--lb .d9vg-player__play .d9vg-icon { width: 24px; height: 24px; }
	/* Arrows move up into the top bar, next to the close button */
	.d9vg.d9vg-lb .d9vg-lb__nav { position: absolute; top: -58px; z-index: 2; }
	.d9vg.d9vg-lb .d9vg-lb__nav--prev { right: 112px; }
	.d9vg.d9vg-lb .d9vg-lb__nav--next { right: 56px; }
	.d9vg.d9vg-lb .d9vg-lb__info { grid-row: 2; align-self: start; padding: 18px; max-height: 100%; }
	.d9vg.d9vg-lb .d9vg-lb__manuals { margin-top: 4px; }
	.d9vg.d9vg-lb .d9vg-lb__title { font-size: 21px; }
	.d9vg.d9vg-lb .d9vg-lb__btn { min-height: 44px; font-size: 14px; }
	.d9vg.d9vg-lb .d9vg-lb__thumbs { padding: 2px 0; }
	.d9vg.d9vg-lb .d9vg-lb__thumb { width: 112px; height: 63px; }
}
@media (max-width: 640px) {
	.d9vg .d9vg-player--hero { border-radius: min(12px, var(--d9vg-r-lg)); }
	.d9vg .d9vg-player--hero .d9vg-player__play { width: 64px; height: 64px; }
	.d9vg .d9vg-player--hero .d9vg-player__play .d9vg-icon { width: 24px; height: 24px; }
	.d9vg .d9vg-player__caption { left: 16px; right: 16px; bottom: 14px; }
	.d9vg .d9vg-player__name { font-size: 19px; }

	/* Variant "swipeable product buttons" */
	.d9vg.d9vg-library--chips .d9vg-filter { padding-top: 12px; padding-bottom: 12px; }
	.d9vg.d9vg-library--chips .d9vg-filter__inner { gap: 10px; }
	.d9vg .d9vg-chips-wrap::before,
	.d9vg .d9vg-chips-wrap::after {
		content: "";
		position: absolute;
		top: 0;
		bottom: 0;
		width: 28px;
		pointer-events: none;
		opacity: 0;
		transition: opacity 0.2s;
		z-index: 1;
	}
	.d9vg .d9vg-chips-wrap::before { left: 0; background: linear-gradient(90deg, var(--d9vg-bg) 20%, transparent); }
	.d9vg .d9vg-chips-wrap::after { right: 0; background: linear-gradient(270deg, var(--d9vg-bg) 20%, transparent); }
	.d9vg .d9vg-chips-wrap.fade-l::before,
	.d9vg .d9vg-chips-wrap.fade-r::after { opacity: 1; }
	.d9vg.d9vg-library--chips .d9vg-chips {
		flex-wrap: nowrap;
		overflow-x: auto;
		scroll-snap-type: x proximity;
		padding: 2px 0;
		scrollbar-width: none;
		overscroll-behavior-x: contain;
		-webkit-overflow-scrolling: touch;
	}
	.d9vg.d9vg-library--chips .d9vg-chips::-webkit-scrollbar { display: none; }
	.d9vg.d9vg-library--chips .d9vg-chip { scroll-snap-align: start; padding: 0 14px; }
	.d9vg.d9vg-library--chips .d9vg-l-long:not(.d9vg-l-both) { display: none; }
	.d9vg.d9vg-library--chips .d9vg-l-short { display: inline; }
	.d9vg.d9vg-library--chips .d9vg-segmented { width: 100%; display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; }
	.d9vg.d9vg-library--chips .d9vg-seg { padding: 0 8px; }

	/* Variant "filter bar with bottom sheet" */
	.d9vg.d9vg-library--sheet .d9vg-filter { padding-top: 10px; padding-bottom: 10px; }
	.d9vg.d9vg-library--sheet .d9vg-chips-wrap,
	.d9vg.d9vg-library--sheet .d9vg-segmented { display: none; }
	.d9vg.d9vg-library--sheet .d9vg-fbar { display: flex; gap: 8px; width: 100%; }

	.d9vg .d9vg-dl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.d9vg .d9vg-dl a { padding: 16px; min-height: 96px; }
	.d9vg .d9vg-dl a strong { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
	.d9vg *, .d9vg .d9vg-filter, .d9vg .d9vg-sheet[open] { transition: none !important; animation: none !important; }
}
