/* «Велостанок» — приложение в странице. Тёмная «приборная панель»: читается с велосипеда, в полумраке и с экрана ТВ. */

.vtt, .vtt-toast {
	--vtt-bg: #0b0f17;
	--vtt-panel: #131a26;
	--vtt-line: #243045;
	--vtt-text: #e8edf5;
	--vtt-muted: #8b98ad;
	--vtt-accent: #3b82f6;
	--vtt-go: #16a34a;
	--vtt-stop: #dc2626;
}
.vtt {
	--vtt-bg: #0b0f17;
	--vtt-panel: #131a26;
	--vtt-line: #243045;
	--vtt-text: #e8edf5;
	--vtt-muted: #8b98ad;
	--vtt-accent: #3b82f6;
	--vtt-go: #16a34a;
	--vtt-stop: #dc2626;
	position: relative;
	max-width: 1180px;
	margin: 0 auto;
	padding: clamp(14px, 2.4vw, 28px);
	border-radius: 18px;
	background: var(--vtt-bg);
	color: var(--vtt-text);
	font: 15px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	box-sizing: border-box;
}
.vtt *, .vtt *::before, .vtt *::after { box-sizing: border-box; }
.vtt [hidden] { display: none !important; }
.vtt a { color: #93c5fd; }
.vtt h2, .vtt h3 { color: var(--vtt-text); margin: 0; }

.vtt-head { margin-bottom: 18px; }
.vtt-title { font-size: clamp(20px, 3vw, 28px); font-weight: 700; letter-spacing: -.01em; }
.vtt-sub { margin: 4px 0 0; color: var(--vtt-muted); max-width: 70ch; }
.vtt-lead { margin: 0; font-size: 16px; color: var(--vtt-text); opacity: .85; }
.vtt-note { color: var(--vtt-muted); font-size: 13px; margin: 10px 0 0; }
.vtt-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.vtt-card {
	background: var(--vtt-panel);
	border: 1px solid var(--vtt-line);
	border-radius: 14px;
	padding: 16px;
	margin-bottom: 14px;
}
.vtt-card h3 { font-size: 16px; margin-bottom: 12px; }

/* Кнопки */
.vtt-btn {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid transparent;
	border-radius: 10px;
	background: var(--vtt-accent);
	color: #fff;
	font: 600 15px/1 inherit;
	font-family: inherit;
	cursor: pointer;
	text-decoration: none;
	white-space: nowrap;
	transition: background .15s, border-color .15s, opacity .15s;
}
.vtt-btn:hover { filter: brightness(1.08); }
.vtt-btn:focus-visible { outline: 2px solid #93c5fd; outline-offset: 2px; }
.vtt-btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.vtt-btn--ghost { background: transparent; border-color: var(--vtt-line); color: var(--vtt-text); }
.vtt-btn--ghost:hover { background: rgba(255,255,255,.05); }
.vtt-btn--ghost.is-on { border-color: var(--vtt-accent); color: #93c5fd; }
.vtt-btn--go { background: var(--vtt-go); }
.vtt-btn--stop { background: transparent; border-color: rgba(220,38,38,.6); color: #fca5a5; }
.vtt-btn--accent { background: #7c3aed; }
.vtt-btn--small { min-height: 36px; padding: 0 12px; font-size: 14px; }

/* Устройства */
.vtt-devs { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 10px; }
.vtt-dev {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
	border: 1px solid var(--vtt-line);
	border-radius: 12px;
	background: rgba(255,255,255,.02);
}
.vtt-dev__icon { font-size: 22px; width: 32px; text-align: center; flex: none; }
.vtt-dev__body { display: flex; flex-direction: column; flex: 1 1 0; min-width: 0; }
.vtt-dev > .vtt-btn { flex: none; }
.vtt-dev__body b { font-size: 15px; }
.vtt-dev__body span, .vtt-dev__body small { color: var(--vtt-muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.vtt-dev.is-on { border-color: rgba(22,163,74,.6); }
.vtt-dev.is-on .vtt-dev__body span { color: #86efac; }
.vtt-dev.is-lost, .vtt-dev.is-connecting { border-color: rgba(234,179,8,.6); }
.vtt-dev--sim { cursor: pointer; }
.vtt-dev--sim input { width: 20px; height: 20px; accent-color: var(--vtt-accent); }
.vtt-devs .vtt-note { grid-column: 1 / -1; margin: 0; }

/* Выбор тренировки */
.vtt-params { margin-bottom: 14px; align-items: flex-end; }
.vtt-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--vtt-muted); }
.vtt-field input, .vtt-field select, .vtt-field textarea, .vtt-vid__url, .vtt-check select {
	min-height: 44px;
	padding: 8px 10px;
	border: 1px solid var(--vtt-line);
	border-radius: 10px;
	background: var(--vtt-bg);
	color: var(--vtt-text);
	font: 16px/1.3 inherit;
	font-family: inherit;
}
.vtt-field input[type=number] { width: 110px; }
.vtt-field textarea { min-height: 80px; resize: vertical; width: 100%; }
.vtt-check select { min-height: 32px; padding: 4px 8px; font-size: 14px; }

.vtt-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.vtt-wo {
	appearance: none;
	display: flex;
	flex-direction: column;
	gap: 4px;
	text-align: left;
	padding: 12px;
	border: 1px solid var(--vtt-line);
	border-radius: 12px;
	background: var(--vtt-bg);
	color: var(--vtt-text);
	font: inherit;
	cursor: pointer;
}
.vtt-wo:hover { border-color: #3a4a66; }
.vtt-wo.is-on { border-color: var(--vtt-accent); box-shadow: 0 0 0 2px rgba(59,130,246,.35); }
.vtt-wo__top { display: flex; justify-content: space-between; color: var(--vtt-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.vtt-wo__title { font-size: 15px; }
.vtt-wo__type { color: var(--vtt-muted); font-size: 13px; }
.vtt-wo--free { justify-content: center; border-style: dashed; }
.vtt-prof--mini { margin-top: 6px; height: 48px; }

.vtt-gobar {
	position: sticky;
	bottom: 0;
	padding: 12px 0 2px;
	background: linear-gradient(to top, var(--vtt-bg) 70%, transparent);
	z-index: 2;
}
.vtt-gobar .vtt-btn { width: 100%; min-height: 54px; font-size: 17px; overflow: hidden; text-overflow: ellipsis; }

.vtt-recover { border: 1px solid rgba(234,179,8,.5); background: rgba(234,179,8,.08); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.vtt-recover p { margin: 0 0 10px; }

/* Профиль */
.vtt-prof { display: block; width: 100%; height: 100%; background: rgba(255,255,255,.03); border-radius: 6px; }
.vtt-prof__ftp { stroke: rgba(255,255,255,.4); stroke-dasharray: 6 6; stroke-width: 1; vector-effect: non-scaling-stroke; }
.vtt-prof__done { fill: rgba(0,0,0,.35); }
.vtt-prof__trace { stroke: #fff; stroke-width: 1.5; vector-effect: non-scaling-stroke; opacity: .9; }
.vtt-prof__cur { stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; }
.vtt-profbox { height: clamp(90px, 16vw, 160px); margin: 12px 0 6px; }

/* Экран тренировки */
.vtt-ridehead { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.vtt-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.vtt-tile {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 96px;
	padding: 10px 14px;
	border-radius: 12px;
	background: var(--vtt-panel);
	border: 1px solid var(--vtt-line);
	min-width: 0;
}
.vtt-tile__l { color: var(--vtt-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.vtt-tile__v { font-size: clamp(28px, 4.6vw, 46px); font-weight: 700; line-height: 1.05; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.vtt-tile__s { color: var(--vtt-muted); font-size: 13px; min-height: 1.2em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vtt-tile--big { grid-column: span 2; min-height: 140px; }
.vtt-tile--big .vtt-tile__v { font-size: clamp(48px, 9vw, 92px); }
.vtt-tile--p { border-left: 6px solid var(--z, var(--vtt-line)); }
.vtt-tile--p.is-low .vtt-tile__v { color: #93c5fd; }
.vtt-tile--p.is-high .vtt-tile__v { color: #fca5a5; }

.vtt-msg { margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; background: rgba(124,58,237,.18); color: #ddd6fe; font-weight: 600; }
.vtt-next { margin: 4px 0 0; color: var(--vtt-muted); font-size: 14px; min-height: 1.4em; }

.vtt-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0; }
.vtt-controls > .vtt-btn:first-child { min-width: 170px; min-height: 54px; font-size: 17px; }
.vtt-bias { display: inline-flex; align-items: center; gap: 6px; }
.vtt-bias .vtt-btn { width: 48px; padding: 0; font-size: 22px; }
.vtt-bias__v { min-width: 88px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.vtt-controls .vtt-btn--stop { margin-left: auto; }

.vtt-more summary { cursor: pointer; font-weight: 600; }
.vtt-more[open] summary { margin-bottom: 12px; }
.vtt-more .vtt-devs { margin: 14px 0; }
.vtt-vid .vtt-row { margin-top: 10px; }
.vtt-vid__url { flex: 1 1 260px; min-width: 0; }
.vtt-check { display: inline-flex; align-items: center; gap: 6px; color: var(--vtt-muted); font-size: 14px; cursor: pointer; }
.vtt-check input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--vtt-accent); }

/* Итог */
.vtt-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.vtt-sum__i { display: flex; flex-direction: column; }
.vtt-sum__i span { color: var(--vtt-muted); font-size: 13px; }
.vtt-sum__i b { font-size: 22px; font-variant-numeric: tabular-nums; }
.vtt-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.vtt-form h3, .vtt-form .vtt-field--wide, .vtt-form .vtt-row { grid-column: 1 / -1; margin-bottom: 0; }

/* Сообщение */
.vtt-toast {
	position: fixed;
	left: 50%;
	bottom: 20px;
	transform: translate(-50%, 20px);
	max-width: min(560px, calc(100vw - 32px));
	padding: 12px 16px;
	border-radius: 12px;
	background: #1e293b;
	color: #fff;
	box-shadow: 0 10px 30px rgba(0,0,0,.4);
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s, transform .2s;
	z-index: 100000;
}
.vtt-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.vtt-toast.is-bad { background: #7f1d1d; }

.vtt-pipvideo { position: fixed; left: 0; bottom: 0; opacity: 0.01; pointer-events: none; z-index: -1; }

/* Полоса титров (в приложении; для окна PiP стили встраиваются из trainer.js) */
.vtt-strip { display: flex; flex-direction: column; box-sizing: border-box; padding: 6px 10px; gap: 5px; background: rgba(11,15,23,.82); color: #fff; font: 600 14px/1.1 system-ui, sans-serif; }
.vtt-strip__row { display: flex; gap: 4px 14px; align-items: stretch; justify-content: space-between; flex-wrap: wrap; }
.vtt-strip.is-col .vtt-strip__row { flex-direction: column; flex-wrap: nowrap; }
.vtt-m { display: flex; flex-direction: column; justify-content: center; min-width: 64px; }
.vtt-strip.is-col .vtt-m { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 10px; }
.vtt-m b { font-size: 30px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; font-weight: 700; }
.vtt-m small { display: flex; align-items: center; gap: 4px; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.65); white-space: nowrap; }
.vtt-m i { font-style: normal; font-size: .55em; opacity: .7; margin-left: 3px; }
.vtt-m--p b { color: var(--z, #fff); }
.vtt-m--step { min-width: 90px; }
.vtt-strip__prof { height: 34px; }
.vtt-strip__prof svg { width: 100%; height: 100%; display: block; }
.vtt-strip.is-paused .vtt-m b { opacity: .55; }
.vtt-strip__pause { display: none; color: #facc15; }
.vtt-strip.is-paused .vtt-strip__pause { display: inline; }

.vtt-launch { margin-right: 8px; }

@media (max-width: 760px) {
	.vtt { border-radius: 0; margin: 0 -16px; padding: 14px 16px; }
	.vtt-tiles { grid-template-columns: repeat(2, 1fr); gap: 8px; }
	.vtt-tile { min-height: 80px; padding: 8px 10px; }
	.vtt-tile--big { min-height: 110px; }
	.vtt-sum { grid-template-columns: repeat(2, 1fr); }
	.vtt-form { grid-template-columns: 1fr; }
	.vtt-controls .vtt-btn--stop { margin-left: 0; }
	.vtt-controls > .vtt-btn:first-child { flex: 1 1 100%; }
	.vtt-m b { font-size: 22px; }
	.vtt-m { min-width: 52px; }
}

/* Значки показателей */
.vtt-ic { width: 1.35em; height: 1.35em; flex: none; color: rgba(255,255,255,.8); }
.vtt-tile__l { display: flex; align-items: center; gap: 6px; }
.vtt-tile__l .vtt-ic { width: 18px; height: 18px; color: var(--vtt-text); opacity: .85; }
.vtt-tile--p .vtt-tile__l .vtt-ic { color: var(--z, var(--vtt-text)); opacity: 1; }
.vtt-tile--kcal .vtt-tile__l .vtt-ic, .vtt-m--kcal .vtt-ic { color: #fb923c; opacity: 1; }
.vtt-m--p .vtt-ic { color: var(--z, #fff); }
.vtt-m--hr .vtt-ic, .vtt-m--hr b { color: var(--hz, #fff); }

/* Пульсовые зоны */
.vtt-tile--hr { border-left: 6px solid var(--hz, var(--vtt-line)); }
.vtt-tile--hr.has-zone .vtt-tile__v, .vtt-tile--hr.has-zone .vtt-tile__l .vtt-ic { color: var(--hz); opacity: 1; }

/* Весь экран */
.vtt-head--setup { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: flex-start; gap: 12px; }
.vtt-head--setup .vtt-fs { flex: none; }
.vtt:fullscreen, .vtt:-webkit-full-screen, .vtt.is-full {
	max-width: none;
	width: 100%;
	height: 100%;
	margin: 0;
	border-radius: 0;
	overflow-y: auto;
	padding: clamp(14px, 2.4vw, 32px) max(16px, env(safe-area-inset-right)) clamp(14px, 2.4vw, 32px) max(16px, env(safe-area-inset-left));
}
.vtt.is-full { position: fixed; inset: 0; z-index: 99999; }
.vtt:fullscreen .vtt-tile--big .vtt-tile__v, .vtt.is-full .vtt-tile--big .vtt-tile__v { font-size: clamp(56px, 11vw, 150px); }
.vtt:fullscreen .vtt-tile__v, .vtt.is-full .vtt-tile__v { font-size: clamp(30px, 5.4vw, 64px); }
.vtt:fullscreen .vtt-profbox, .vtt.is-full .vtt-profbox { height: clamp(100px, 20vh, 220px); }
.vtt-noscroll, .vtt-noscroll body { overflow: hidden; }

/* Маршрут GPX */
.vtt-tile--grade { border-left: 6px solid var(--g, var(--vtt-line)); }
.vtt-tile--grade .vtt-tile__v, .vtt-tile--grade .vtt-tile__l .vtt-ic { color: var(--g, var(--vtt-text)); opacity: 1; }
.vtt-tile--alt .vtt-tile__l .vtt-ic { color: #a3b1c6; }
.vtt-wo__prof { display: block; }
.vtt-wo--route .vtt-wo__type { min-height: 1.4em; }

/* Карта маршрута */
.vtt-map { position: relative; height: clamp(220px, 36vh, 420px); margin: 12px 0 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--vtt-line); background: #1b2433; }
.vtt-map.is-err { height: auto; padding: 12px 14px; }
.vtt-map__gl { position: absolute; inset: 0; }
.vtt-map__tools { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.vtt-map__btn {
	appearance: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255,255,255,.18);
	background: rgba(11,15,23,.78); color: #fff; font: 700 18px/1 system-ui, sans-serif; cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center;
}
.vtt-map__btn.is-on { background: var(--vtt-accent); border-color: var(--vtt-accent); }
.vtt-map__btn:focus-visible { outline: 2px solid #93c5fd; outline-offset: 2px; }
.vtt-map__me { width: 34px; height: 34px; border-radius: 50%; background: #2563eb; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(37,99,235,.28), 0 2px 8px rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; }
.vtt-map__me svg { width: 18px; height: 18px; fill: #fff; }
.vtt-map__flag { width: 16px; height: 16px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.vtt-map__flag.is-start { background: #16a34a; }
.vtt-map__flag.is-finish { background: #111827; background-image: repeating-conic-gradient(#111827 0 25%, #fff 0 50%); background-size: 6px 6px; }
.vtt-map__err { margin: 0; }
.vtt:fullscreen .vtt-map, .vtt.is-full .vtt-map { height: clamp(260px, 42vh, 560px); }
/* Размер карты — независимо от порядка подключения стилей MapLibre (у .maplibregl-map свой position: relative). */
.vtt-map .vtt-map__gl, .vtt-map .vtt-map__gl.maplibregl-map { position: absolute !important; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; }
.vtt-map__warn { position: absolute; left: 10px; bottom: 10px; margin: 0; padding: 4px 8px; border-radius: 6px; background: rgba(11,15,23,.8); color: #fde68a; font-size: 12px; z-index: 2; }

/* План тренировки поверх маршрута */
.vtt-planrow { margin-top: 4px; }
.vtt-field--grow { flex: 1 1 320px; }
.vtt-plansel { width: 100%; }
.vtt-planbar {
	margin: 12px 0 0; padding: 12px 16px 10px; border-radius: 12px;
	background: linear-gradient(90deg, color-mix(in srgb, var(--z, #64748b) 22%, var(--vtt-panel)) 0%, var(--vtt-panel) 70%);
	border: 1px solid var(--vtt-line); border-left: 6px solid var(--z, #64748b);
}
.vtt-planbar__main { display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap; }
.vtt-planbar__what { display: flex; flex-direction: column; flex: 1 1 200px; min-width: 0; }
.vtt-planbar__what small, .vtt-planbar__time small { color: var(--vtt-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.vtt-planbar__name { font-size: 20px; }
.vtt-planbar__zone { padding: 4px 10px; border-radius: 999px; background: var(--z, #64748b); color: #0b0f17; font-weight: 700; font-size: 14px; white-space: nowrap; }
.vtt-planbar__zone:empty { display: none; }
.vtt-planbar__target { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vtt-planbar__time { display: flex; flex-direction: column; align-items: flex-end; }
.vtt-planbar__left { font-size: clamp(28px, 4vw, 44px); line-height: 1; font-variant-numeric: tabular-nums; color: var(--z, var(--vtt-text)); }
.vtt-planbar__track { display: block; height: 6px; margin: 10px 0 6px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.vtt-planbar__fill { display: block; height: 100%; width: 0; background: var(--z, #64748b); transition: width .9s linear; }
.vtt-planbar__foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--vtt-muted); font-size: 13px; }
.vtt-profbox--plan { height: 46px; margin-top: 6px; }

/* Стрелка у мощности: ▲ — сильнее, ▼ — полегче */
.vtt-dir { display: inline-block; margin-left: .12em; font-size: .55em; vertical-align: .3em; animation: vttDir 1s ease-in-out infinite; }
.vtt-dir--up { color: #fbbf24; }
.vtt-dir--down { color: #38bdf8; animation-name: vttDirDn; }
@keyframes vttDir { 50% { transform: translateY(-.18em); } }
@keyframes vttDirDn { 50% { transform: translateY(.18em); } }
.vtt-tile__v i { font-style: normal; font-size: .5em; opacity: .7; margin-left: .15em; }

/* Напоминание попить */
.vtt-drink {
	position: fixed; z-index: 60; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.9);
	display: flex; flex-direction: column; align-items: center; gap: 6px;
	padding: 22px 36px 20px; border: 2px solid #38bdf8; border-radius: 24px;
	background: rgba(11, 15, 23, .9); color: #fff; font: inherit; cursor: pointer;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
	opacity: 0; visibility: hidden; transition: opacity .3s, transform .3s, visibility .3s;
}
.vtt-drink.is-on { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); animation: vttDrinkPulse 1.6s ease-in-out infinite; }
.vtt-drink__ic { width: clamp(110px, 22vmin, 220px); height: auto; filter: drop-shadow(0 0 18px rgba(56, 189, 248, .55)); }
.vtt-drink__t { display: flex; flex-direction: column; align-items: center; font-size: clamp(22px, 4vmin, 40px); font-weight: 700; line-height: 1.1; }
.vtt-drink__t small { font-size: .55em; font-weight: 600; color: #7dd3fc; }
@keyframes vttDrinkPulse { 50% { box-shadow: 0 0 0 10px rgba(56, 189, 248, .18), 0 20px 60px rgba(0, 0, 0, .5); } }
@media (prefers-reduced-motion: reduce) { .vtt-dir, .vtt-drink.is-on { animation: none; } }

/* ---------- Вид «Приборы»: стрелочные скорость и мощность (1.7) ---------- */
.vtt-gauges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.vtt-gauge {
	--gz: var(--vtt-accent);
	display: flex; flex-direction: column; align-items: center;
	padding: 12px 14px 10px; border-radius: 14px;
	background: radial-gradient(120% 90% at 50% 40%, #1a2333 0%, var(--vtt-panel) 60%);
	box-shadow: inset 0 0 0 1px var(--vtt-line);
}
.vtt-gauge__l { align-self: flex-start; display: flex; align-items: center; gap: 6px; color: var(--vtt-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.vtt-gauge__l .vtt-ic { width: 18px; height: 18px; color: var(--gz); }
.vtt-gauge__svg { display: block; width: 100%; max-width: 380px; height: auto; margin-top: -4px; overflow: visible; }
.vtt-gauge__track { fill: none; stroke: #2a3750; stroke-width: 3; }
.vtt-gauge__band { fill: none; stroke-width: 7; opacity: .85; }
.vtt-gauge__tick { stroke: #6b7a92; stroke-width: 1.4; }
.vtt-gauge__tick.is-major { stroke: var(--vtt-text); stroke-width: 2.4; }
.vtt-gauge__num { fill: var(--vtt-muted); font: 600 13px/1 system-ui, sans-serif; text-anchor: middle; font-variant-numeric: tabular-nums; }
.vtt-gauge__needle { transform-origin: 120px 120px; transition: transform .45s cubic-bezier(.25, .8, .35, 1); }
.vtt-gauge__needle path { fill: var(--gz); filter: drop-shadow(0 0 4px color-mix(in srgb, var(--gz) 60%, transparent)); }
.vtt-gauge__hub { fill: #0b0f17; stroke: var(--gz); stroke-width: 3; }
.vtt-gauge__target { fill: #fbbf24; stroke: #0b0f17; stroke-width: 1; }
.vtt-gauge__val { fill: var(--vtt-text); font: 700 36px/1 system-ui, sans-serif; text-anchor: middle; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.vtt-gauge__unit { fill: var(--vtt-muted); font: 500 13px/1 system-ui, sans-serif; text-anchor: middle; }
.vtt-gauge__s { min-height: 1.2em; margin-top: -2px; color: var(--vtt-muted); font-size: 13px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.vtt-tiles--compact .vtt-tile { min-height: 84px; }
.vtt-tiles--compact .vtt-tile--big { grid-column: span 2; min-height: 100px; }
.vtt-tiles--compact .vtt-tile--big .vtt-tile__v { font-size: clamp(36px, 6vw, 64px); }
.vtt:fullscreen .vtt-gauge__svg, .vtt.is-full .vtt-gauge__svg { max-width: min(46vh, 520px); }
@media (max-width: 520px) {
	.vtt-gauges { gap: 8px; }
	.vtt-gauge { padding: 8px 6px 6px; }
	.vtt-gauge__val { font-size: 32px; }
	.vtt-gauge__num { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .vtt-gauge__needle { transition: none; } }

/* ---------- Карта маршрута в 3D: рельеф и велосипедист (1.8) ---------- */
.vtt-map.is-3d { height: clamp(300px, 52vh, 640px); background: #9cc3ea; }
.vtt-map.is-3d.is-dark { background: #0b1a33; }
.vtt:fullscreen .vtt-map.is-3d, .vtt.is-full .vtt-map.is-3d { height: clamp(320px, 60vh, 900px); }
.vtt-map__btn--3d { font-weight: 800; font-size: 13px; letter-spacing: .02em; }

/* Онлайн-заезд */
.vtt-profbox { position: relative; }
.vtt-ol { margin: 12px 0; padding: 10px 12px; border: 1px solid var(--vtt-line); border-radius: 14px; background: var(--vtt-panel); }
.vtt-ol__head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin-bottom: 6px; }
.vtt-ol__head span { color: var(--vtt-muted); font-size: 13px; }
.vtt-ol__note { margin: 0 0 6px; font-size: 13px; color: #fde68a; }
.vtt-ol__list { list-style: none; margin: 0; padding: 0; max-height: 264px; overflow-y: auto; }
.vtt-ol__row { display: grid; grid-template-columns: 1.6em 28px minmax(0, 1fr) auto; grid-template-areas: "pos ava name gap" "pos ava pw pw"; gap: 0 8px; align-items: center; padding: 5px 4px; border-radius: 8px; }
.vtt-ol__row + .vtt-ol__row { border-top: 1px solid var(--vtt-line); }
.vtt-ol__row.is-me { background: rgba(59,130,246,.16); border-top-color: transparent; }
.vtt-ol__row.is-off { opacity: .5; }
.vtt-ol__pos { grid-area: pos; color: var(--vtt-muted); font-variant-numeric: tabular-nums; text-align: right; }
.vtt-ol__ava { grid-area: ava; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--c); color: #fff; font-size: 11px; font-weight: 700; }
.vtt-ol__name { grid-area: name; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vtt-ol__gap { grid-area: gap; font-variant-numeric: tabular-nums; font-weight: 700; }
.vtt-ol__pw { grid-area: pw; color: var(--vtt-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.vtt-ol__dots { position: absolute; inset: 0; pointer-events: none; }
.vtt-ol__dot { position: absolute; width: 12px; height: 12px; margin: 0 0 -6px -6px; border-radius: 50%; background: var(--c); border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.5); }
.vtt-ol__dot.is-off { opacity: .45; }
.vtt-map__rider { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--c); border: 2px solid #fff; color: #fff; font: 700 10px/1 system-ui, sans-serif; box-shadow: 0 1px 6px rgba(0,0,0,.45); }
.vtt-map__rider.is-off { opacity: .5; }
.vtt-map.is-3d .vtt-map__rider { width: auto; height: 20px; padding: 0 7px; border-radius: 10px; }
.vtt-lobby__start { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.vtt-lobby__cdl { color: var(--vtt-muted); text-transform: uppercase; letter-spacing: .06em; font-size: 13px; }
.vtt-lobby__cd { font-size: clamp(34px, 7vw, 64px); font-variant-numeric: tabular-nums; line-height: 1.05; }
.vtt-lobby__cd.is-soon { color: #facc15; }
.vtt-lobby__start .vtt-btn { margin-left: auto; align-self: center; }
.vtt-lobby__people { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.vtt-lobby__p { display: grid; grid-template-columns: 32px 1fr; grid-template-areas: "a n" "a s"; gap: 0 10px; align-items: center; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--vtt-line); border-left: 4px solid var(--c); }
.vtt-lobby__p img, .vtt-lobby__p .vtt-ol__ava { grid-area: a; width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.vtt-lobby__p b { grid-area: n; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vtt-lobby__p span:last-child { grid-area: s; color: var(--vtt-muted); font-size: 13px; }
.vtt-lobby__p.is-ok span:last-child { color: #4ade80; }
.vtt-lobby__p.is-off { opacity: .55; }
.vtt-lobby__prof { height: 110px; }
.vtt-ol-res ol { margin: 8px 0 0; padding-left: 1.4em; }
.vtt-ol-res li { padding: 2px 0; }
.vtt-ol-res li.is-me b { color: #93c5fd; }
.vtt-launch--online { font-weight: 700; }
.vtt-lobby__cd.is-text { font-size: clamp(20px, 3.2vw, 30px); }
