/* AURIFORTH /aimotion/video-search — Video Event Search module (unlisted demo, TH/EN).
   Loads after /aimotion/suite.css and uses its tokens (--bg, --bg-alt, --text, --text-2, --blue, --link, radii, --font …).
   Apple visual language: white / #f5f5f7 surfaces, #1d1d1f text, #6e6e73 secondary, #0071e3 actions, #0066cc links,
   pill buttons, 18–28px cards. Dark only inside the 3D scene, the video frames and the camera images.
   CSP: no inline styles; app.js sets dynamic values through CSSOM only. Every class is prefixed vs-. */

/* ---------------------------------------------------------------- page */
.vs-page .section { padding-top: 96px; padding-bottom: 96px; }
.vs-page .section .vs-sub { font-size: clamp(17px, 1.7vw, 21px); line-height: 1.45; color: var(--text-2); max-width: 880px; margin: 0 0 32px; }
.vs-page .section .title { max-width: 980px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.i18n-pending .vs-bar, .i18n-pending .vs-dialog { visibility: hidden; }
.vs-body { -webkit-tap-highlight-color: transparent; }
.vs-foot { margin-top: 28px; font-size: 12px; line-height: 1.6; color: var(--text-2); }
.vs-note { margin-top: 20px; padding: 16px 20px 16px 48px; position: relative; border-radius: var(--r-md); background: var(--bg-alt); color: var(--text);
  font-size: 15px; line-height: 1.55; max-width: 980px; }
.section--alt .vs-note { background: var(--bg); }
.vs-note::before { content: ""; position: absolute; left: 18px; top: 18px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M9 8v5' stroke='%23fff' stroke-width='1.8' stroke-linecap='round'/%3E%3Ccircle cx='9' cy='5.2' r='1.1' fill='%23fff'/%3E%3C/svg%3E") center / 18px 18px no-repeat; }
.vs-note--small { font-size: 13px; }
.vs-mini { margin-top: 14px; font-size: 13px; line-height: 1.6; color: var(--text-2); }
.vs-mini b { color: var(--text); }
.vs-status { margin: 12px 0 0; min-height: 1.6em; font-size: 14px; line-height: 1.55; color: var(--text-2); }
.vs-status--line { margin-top: 22px; padding: 14px 18px; border-radius: var(--r-sm); background: var(--bg-alt); color: var(--text); font-size: 15px; }
.vs-time { font-size: 13px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.vs-eyebrow-tag { display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 980px; background: var(--tint-blue); color: var(--link); font-size: 13px; vertical-align: 2px; }
.section--alt .chip { background: var(--bg); }

/* buttons (a and button share the look; button base comes from suite.css) */
.vs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 20px; border: 0; border-radius: 980px;
  background: var(--fill); color: var(--text); font: inherit; font-size: 15px; line-height: 1.25; text-align: center; cursor: pointer; text-decoration: none; }
a.vs-btn:hover { text-decoration: none; background: var(--fill-hover); }
.vs-btn--primary, button.vs-btn--primary { background: var(--blue); color: #fff; }
a.vs-btn--primary:hover, button.vs-btn--primary:hover:not(:disabled) { background: #0068d1; color: #fff; }
.vs-btn--primary:disabled { background: var(--fill); color: var(--text-3); }

/* icons from the source deck, redrawn in Apple blue */
.vs-ico { display: block; width: 76px; height: 64px; color: var(--blue); }
.vs-ico-bg { fill: var(--bg); }
.card--alt .vs-ico-bg { fill: var(--bg-alt); }
.vs-sig { stroke-dasharray: 15 9; animation: vsSignal 2.5s linear infinite; }
@keyframes vsSignal { to { stroke-dashoffset: -96; } }

/* ---------------------------------------------------------------- 01 hero */
.vs-hero { padding-top: 104px; }
.vs-hero .headline { max-width: 960px; }
.vs-hero .lead { margin: 0; }
.vs-audience { margin: 18px 0 0; font-size: 17px; line-height: 1.5; color: var(--text-2); max-width: 820px; }
.vs-audience b { color: var(--text); font-weight: 600; }
.vs-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 56px; }
.vs-hero__cta .vs-btn { font-size: 17px; padding: 12px 24px; }
.vs-steps3 { list-style: none; margin: 0; padding: 0; }
.vs-card { position: relative; background: var(--bg-alt); padding: 30px 28px 32px; }
.vs-card__num { position: absolute; top: 22px; right: 24px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); color: var(--text-2); font-size: 14px; font-weight: 600; }
.vs-card .vs-ico { margin-bottom: 18px; }
.vs-page .vs-card__title { font-size: 21px; line-height: 1.3; font-weight: 600; margin: 0 0 10px; letter-spacing: -.01em; }
html[lang="th"] .vs-page .vs-card__title { letter-spacing: 0; }
.vs-card p { font-size: 16px; line-height: 1.65; color: var(--text-2); }

/* ---------------------------------------------------------------- 02 3D scene */
.vs-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 0 0 20px; }
.vs-filters__q { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0; max-width: 100%; }
.vs-filters__label { font-size: 15px; font-weight: 600; }
.vs-filters .seg { background: var(--fill); }
.vs-demo { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.vs-demo__main { min-width: 0; }
.vs-stage { position: relative; overflow: hidden; border-radius: var(--r-lg); background: #0b1424; aspect-ratio: 35 / 18; color: #fff; isolation: isolate; }
.vs-stage__canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; touch-action: none; cursor: grab;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.vs-stage__canvas.is-dragging { cursor: grabbing; }
.vs-stage__canvas:focus-visible { outline: 3px solid #2997ff; outline-offset: -3px; border-radius: var(--r-lg); }
.vs-stage__label { position: absolute; top: 12px; left: 12px; padding: 6px 12px; border-radius: 980px; background: rgba(0, 0, 0, .55); font: 600 12px/1.3 var(--mono);
  color: #f5f5f7; pointer-events: none; font-variant-numeric: tabular-nums; }
.vs-rec { color: #ff453a; }
.vs-stage__tools { position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; }
.vs-tool { display: inline-grid; place-items: center; min-width: 40px; min-height: 40px; padding: 0 10px; border-radius: 980px; font-size: 13px;
  background: rgba(29, 29, 31, .72); color: #f5f5f7; }
.vs-tool:where(:hover:not(:disabled)) { background: rgba(60, 60, 64, .9); }
.vs-tool svg { display: block; }
.vs-tool--light { background: var(--fill); color: var(--text); }
.vs-tool--light:where(:hover:not(:disabled)) { background: var(--fill-hover); }
.vs-stage__banner { position: absolute; left: 12px; right: 12px; bottom: 12px; margin: 0; padding: 10px 14px; border-radius: var(--r-sm); background: rgba(0, 0, 0, .62);
  color: #f5f5f7; font-size: 14px; line-height: 1.45; pointer-events: none; }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .vs-stage__label, .vs-stage__banner, .vs-tool { -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); }
  .vs-tool--light { -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.vs-stage__banner.is-ok { background: rgba(28, 122, 51, .86); }
.vs-stage__banner.is-no { background: rgba(110, 110, 115, .9); }
.vs-hint { margin: 10px 2px 0; font-size: 12px; color: var(--text-2); }
.vs-hint--touch { display: none; }
@media (hover: none) and (pointer: coarse) { .vs-hint--mouse { display: none; } .vs-hint--touch { display: inline; } }
.vs-transport { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 14px; }
.vs-seek { flex: 1 1 180px; min-width: 0; display: flex; align-items: center; }
.vs-speed select, .vs-toolbar select { width: auto; min-height: 44px; padding: 8px 36px 8px 14px; font-size: 15px; border: 0; border-radius: 980px; background-color: var(--fill); background-position: right 14px center; }
.section--alt .vs-speed select { background-color: var(--bg); }

/* range input (Apple-style thin track, white knob); --p is the filled share, set by app.js */
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 32px; margin: 0; background: transparent; cursor: pointer; --p: 0%; }
input[type="range"]:focus { outline: none; }
input[type="range"]:focus-visible { outline: 3px solid rgba(0, 125, 250, .6); outline-offset: 2px; border-radius: 980px; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--blue) var(--p), #d2d2d7 var(--p)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: #fff; border: 0;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .12), 0 2px 6px rgba(0, 0, 0, .22); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: #d2d2d7; }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--blue); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .12), 0 2px 6px rgba(0, 0, 0, .22); }

.vs-panel { padding: 24px; }
.vs-page .vs-panel__title { font-size: 21px; margin: 0 0 6px; }
.vs-panel__state { font-size: 15px; line-height: 1.5; min-height: 3em; color: var(--text); }
.vs-bar-track { height: 6px; border-radius: 6px; background: var(--fill); overflow: hidden; margin: 12px 0 8px; }
.vs-bar-track i { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--blue); transition: width .25s var(--ease); }
.vs-panel__meta { font-size: 13px; color: var(--text-2); min-height: 2.6em; }
.vs-jobs { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.vs-jobs li { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "c n" "b b"; gap: 4px 10px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--bg-alt); }
.vs-jobs b { grid-area: c; font: 600 13px/1.3 var(--mono); }
.vs-jobs small { grid-area: n; font-size: 13px; color: var(--text-2); }
.vs-jobs__bar { grid-area: b; height: 4px; border-radius: 4px; background: #e3e3e8; overflow: hidden; }
.vs-jobs__bar i { display: block; height: 100%; width: 0; background: #34aadc; border-radius: 4px; }
.vs-results:empty { display: none; }
.vs-result { margin-top: 14px; padding: 16px; border-radius: var(--r-md); background: var(--tint-blue); }
.vs-result__label { font-size: 16px; font-weight: 600; }
.vs-result__meta { display: block; margin-top: 2px; font-size: 13px; color: #48484c; font-variant-numeric: tabular-nums; }
.vs-result__btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.vs-result__btns button { min-height: 40px; padding: 8px 14px; font-size: 14px; background: var(--bg); }
.vs-result__btns button:where(:hover:not(:disabled)) { background: #fff; box-shadow: var(--shadow-sm); }
.vs-result__btns .is-yes[aria-pressed="true"] { background: var(--green-ink); color: #fff; }
.vs-result__btns .is-no[aria-pressed="true"] { background: var(--text); color: #fff; }
.vs-process { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; counter-reset: vsp; }
.vs-process li { counter-increment: vsp; position: relative; padding: 12px 14px; border-radius: var(--r-sm); background: var(--bg); color: var(--text-2); font-size: 14px; line-height: 1.35;
  transition: background-color .3s var(--ease), color .3s var(--ease); }
.vs-process li::before { content: counter(vsp, decimal-leading-zero); display: block; font-size: 11px; font-weight: 600; color: var(--text-2); margin-bottom: 2px; }
.vs-process li.on { background: var(--text); color: #fff; }
.vs-process li.on::before { color: #a1a1a6; }

/* ---------------------------------------------------------------- 03 / 07 video players */
.vs-flow { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.vs-player { min-width: 0; }
.vs-video { border-radius: var(--r-lg); }
.vs-video .media__video { object-fit: contain; background: #000; }
.vs-play { position: absolute; right: 14px; bottom: 16px; z-index: 2; background: rgba(245, 245, 247, .86); color: #1d1d1f; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.vs-play:where(:hover:not(:disabled)) { background: #fff; }
.vs-play .i-pause { display: none; }
.vs-video.is-playing .vs-play .i-pause { display: block; }
.vs-video.is-playing .vs-play .i-play { display: none; }
.vs-video.has-controls .vs-play, .vs-video.has-controls .vs-vprog { display: none; }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .vs-play { background: rgba(245, 245, 247, .7); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px); }
}
.vs-vprog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .22); pointer-events: none; }
.vs-vprog i { display: block; height: 100%; width: 0; background: #fff; }
.vs-player__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin: 12px 2px 0; font-size: 13px; color: var(--text-2); }
.vs-player__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 14px; }
.vs-chapters { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
button.vs-chapter { display: flex; align-items: flex-start; gap: 16px; width: 100%; padding: 16px 18px; border-radius: var(--r-md); text-align: left; background: var(--bg-alt); color: var(--text); line-height: 1.4; }
button.vs-chapter:where(:hover:not(:disabled)) { background: #ececf0; }
.vs-chapter > b { flex: none; min-width: 30px; font-size: 22px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; line-height: 1.2; }
.vs-chapter strong { display: block; font-size: 17px; margin-bottom: 4px; }
.vs-chapter small { display: block; font-size: 14px; line-height: 1.55; color: #5f5f64; }
button.vs-chapter[aria-pressed="true"] { background: var(--tint-blue); color: var(--text); box-shadow: inset 0 0 0 2px var(--blue); }
.vs-chapter[aria-pressed="true"] > b { color: var(--blue); }
.vs-chapter.is-done > b { color: var(--green-ink); }

.vs-plate { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.vs-plate__result { padding: 24px; }
.vs-page .vs-plate__result h3 { font-size: 21px; margin: 0 0 8px; }
.vs-fields { margin: 0; }
.vs-fields > div { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.vs-fields dt { font-size: 15px; color: var(--text-2); }
.vs-fields dd { margin: 0; font-size: 17px; font-weight: 600; text-align: right; }
.vs-plateno { display: inline-block; padding: 3px 12px; border: 2px solid var(--text); border-radius: 7px; background: #fff; font: 700 16px/1.3 var(--mono); letter-spacing: .06em; }
.vs-plate__match { margin-top: 14px; font-size: 15px; font-weight: 600; color: var(--text); }
.vs-plate__match.is-caught { color: #a35a00; }
.vs-plate__match.is-ok { color: var(--green-ink); }
.vs-plate__ref { position: relative; margin-top: 10px; padding: 10px 12px 10px 34px; border-radius: var(--r-sm); font-size: 14px; line-height: 1.6; color: var(--text-2);
  box-shadow: inset 0 0 0 1px #d2d2d7; transition: background-color .3s var(--ease), color .3s var(--ease); }
.vs-plate__ref::before { content: ""; position: absolute; left: 12px; top: 14px; width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #86868b; }
.vs-plate__ref.is-on { color: var(--text); background: var(--bg); box-shadow: none; }
.vs-plate__ref.is-on::before { background: var(--green-ink); box-shadow: none; }
.vs-plate__ctl { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.vs-plate__ctl .vs-btn { padding: 10px 16px; }
.vs-plate__ctl .vs-btn:not(.vs-btn--primary) { background: var(--bg); }

/* ---------------------------------------------------------------- 04 pipeline */
.vs-pipe { padding: 28px; }
.vs-film { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; height: 64px; overflow: hidden; border-radius: var(--r-sm); }
.vs-film span { display: grid; place-items: center; border-radius: var(--r-sm); background: repeating-linear-gradient(90deg, #f0f0f3 0 10px, #e8e8ed 10px 20px);
  font: 600 12px/1 var(--mono); color: var(--text-2); }
.vs-film__scan { position: absolute; top: 0; bottom: 0; left: -90px; width: 90px; background: linear-gradient(90deg, transparent, rgba(0, 113, 227, .3), transparent); animation: vsFilmScan 5s linear infinite; }
@keyframes vsFilmScan { to { left: 100%; } }
.vs-pipe__wire { display: block; width: 100%; height: 48px; overflow: visible; }
.vs-pipe__wire path { vector-effect: non-scaling-stroke; }
.vs-pipe__pulse { animation: vsSignal 2.5s linear infinite; }
.vs-modules { list-style: none; margin: 0; padding: 0; }
.vs-module { min-width: 0; padding: 22px 20px; border-radius: var(--r-md); background: var(--bg-alt); }
.vs-modules .vs-module { animation: vsModule 5s linear infinite; }
.vs-modules .vs-module:nth-child(2) { animation-delay: 1.25s; }
.vs-modules .vs-module:nth-child(3) { animation-delay: 2.5s; }
.vs-modules .vs-module:nth-child(4) { animation-delay: 3.75s; }
@keyframes vsModule { 0%, 30%, 100% { background-color: var(--bg-alt); } 8%, 20% { background-color: var(--tint-blue); } }
.vs-module .vs-ico { width: 64px; height: 54px; margin-bottom: 14px; }
.vs-page .vs-module h3 { font-size: 19px; margin: 0 0 8px; }
.vs-module p { font-size: 15px; line-height: 1.6; color: var(--text-2); }
.vs-module--big { padding: 28px 26px; background: var(--bg); }
.vs-module--big .vs-ico { width: 84px; height: 70px; }
.vs-system { list-style: none; margin: 0; padding: 0; }

/* ---------------------------------------------------------------- 05 review */
.vs-rcard { padding: 30px 28px; }
.vs-rcard .vs-ico { margin-bottom: 14px; }
.vs-page .vs-rcard h3 { font-size: 24px; line-height: 1.3; margin: 0 0 14px; }
.vs-dl { margin: 0; }
.vs-dl > div { display: grid; grid-template-columns: minmax(96px, 34%) minmax(0, 1fr); gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.vs-dl dt { font-size: 15px; color: var(--text-2); }
.vs-dl dd { margin: 0; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.vs-pill { display: inline-block; padding: 3px 10px; border-radius: 980px; font-size: 13px; font-weight: 600; }
.vs-pill--wait { background: var(--fill); color: var(--text); }
.vs-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.vs-checks li { position: relative; padding-left: 30px; font-size: 16px; line-height: 1.5; }
.vs-checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.2l2.6 2.6L14.2 7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px 20px no-repeat; }

/* ---------------------------------------------------------------- 06 storage */
.vs-metrics { margin: 16px 0 0; }
.vs-metrics > div { padding: 20px 22px; border-radius: var(--r-lg); background: var(--bg); min-width: 0; }
.vs-metrics dt { font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.vs-metrics dd { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-2); }

/* ---------------------------------------------------------------- 08 route */
.vs-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 16px; padding: 12px 14px 12px 18px;
  border-radius: var(--r-lg); background: var(--bg); }
.vs-toolbar label { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; font-weight: 600; min-width: 0; max-width: 100%; }
.vs-toolbar__route select { max-width: 100%; font-weight: 400; }
.vs-toolbar__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vs-route { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.vs-mapcard { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.vs-mapbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 12px 12px 12px 18px; }
.vs-mapbar__t b { display: block; font-size: 15px; }
.vs-mapbar__t small { display: block; font-size: 12px; color: var(--text-2); }
.vs-mapbar__btns { display: flex; gap: 6px; }
.vs-map { position: relative; flex: 1 1 auto; height: clamp(320px, 38vw, 470px); overflow: hidden; background: #eef2ec; touch-action: none; cursor: grab;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; contain: layout paint; }
.vs-map.is-dragging { cursor: grabbing; }
.vs-map:focus-visible { outline: 3px solid rgba(0, 125, 250, .6); outline-offset: -3px; }
.vs-map__world { position: absolute; left: 0; top: 0; width: 1600px; height: 680px; transform-origin: 0 0; will-change: transform; }
.vs-map__base { position: absolute; inset: 0; width: 1600px; height: 680px; max-width: none; pointer-events: none; -webkit-user-drag: none; }
.vs-map__ov { position: absolute; left: 0; top: 0; width: 1600px; height: 680px; max-width: none; overflow: visible; pointer-events: none; }
.vs-route-full, .vs-route-trail { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.vs-route-full { stroke: #0071e3; stroke-opacity: .35; stroke-width: 7; }
.vs-route-trail { stroke: #ff2d55; stroke-width: 5; }
.vs-map__pins { position: absolute; inset: 0; pointer-events: none; }
.vs-mlabel { position: absolute; left: 0; top: 0; white-space: nowrap; font-size: 12px; line-height: 1.2; pointer-events: none; transform-origin: 0 0;
  text-shadow: 0 0 2px #fff, 0 0 3px #fff, 0 0 4px rgba(255, 255, 255, .9); }
.vs-mlabel--road { color: #5e5640; font-weight: 600; }
.vs-mlabel--area { color: #55706a; }
.vs-mlabel--canal { color: #2f7d8c; }
.vs-mlabel--poi { padding: 2px 7px; border-radius: 6px; background: rgba(255, 255, 255, .94); color: #2c4a56; text-shadow: none; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.vs-mlabel.is-hidden-small { display: none; }
.vs-map.is-far .vs-mlabel--area { display: none; }
button.vs-pin { position: absolute; left: 0; top: 0; z-index: 2; width: 30px; height: 30px; min-height: 30px; margin: -15px 0 0 -15px; padding: 0; border-radius: 50%;
  background: #3a3a3c; color: #fff; border: 2px solid #fff; font: 700 12px/1 var(--latin); pointer-events: auto; box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
  display: grid; place-items: center; }
button.vs-pin::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; }
button.vs-pin:where(:hover:not(:disabled)) { background: #1d1d1f; }
button.vs-pin.is-seen { background: var(--green-ink); }
button.vs-pin.is-sel { background: #d6003a; box-shadow: 0 0 0 5px rgba(214, 0, 58, .28), 0 2px 8px rgba(0, 0, 0, .3); }
button.vs-pin:active:not(:disabled) { transform: none; }
.vs-car { position: absolute; left: 0; top: 0; z-index: 3; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: #fff; border: 2px solid #ff2d55;
  box-shadow: 0 0 0 6px rgba(255, 45, 85, .2), 0 2px 8px rgba(0, 0, 0, .25); display: grid; place-items: center; color: #d6003a; pointer-events: none; }
.vs-car svg { display: block; }
.vs-map__state { position: absolute; left: 10px; bottom: 10px; z-index: 4; max-width: calc(100% - 20px); margin: 0; padding: 5px 10px; border-radius: 980px; background: rgba(255, 255, 255, .9);
  font-size: 11px; line-height: 1.35; color: var(--text-2); pointer-events: none; }
.vs-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0; padding: 12px 18px 14px; font-size: 12px; color: var(--text-2); }
.vs-legend__k { display: inline-flex; align-items: center; gap: 6px; }
.vs-legend__k i { width: 12px; height: 12px; border-radius: 3px; }
.vs-legend .k-bld { background: #d4ddd7; } .vs-legend .k-green { background: #b8d6a5; } .vs-legend .k-water { background: #92d2df; }
.vs-legend .k-route { width: 18px; height: 4px; border-radius: 2px; background: #ff2d55; }
.vs-legend__n { margin-left: auto; }
.vs-route__side { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 16px; min-width: 0; }
.vs-feed { padding: 16px; }
.vs-feed__title { font-size: 14px; font-weight: 600; margin-bottom: 10px; min-height: 1.5em; }
button.vs-feed__btn { position: relative; display: block; width: 100%; padding: 0; border-radius: var(--r-sm); overflow: hidden; background: #000; cursor: zoom-in; }
button.vs-feed__btn:active:not(:disabled) { transform: none; }
.vs-feed__btn img { width: 100%; aspect-ratio: 552 / 466; object-fit: cover; }
.vs-feed__zoom { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .55); color: #fff; }
.vs-feed__cap { margin-top: 10px; font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.vs-log { padding: 16px; display: flex; flex-direction: column; min-height: 0; }
.vs-log__head { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; margin-bottom: 8px; }
.vs-log__head span { font: 600 13px/1.5 var(--mono); color: var(--text-2); font-variant-numeric: tabular-nums; }
.vs-log__items { flex: 1 1 auto; min-height: 120px; max-height: 240px; overflow: auto; overscroll-behavior: contain; display: grid; align-content: start; gap: 2px; }
.vs-log__empty { font-size: 13px; color: var(--text-2); }
button.vs-ev { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 8px 10px; border-radius: 10px;
  background: transparent; text-align: left; font-size: 13px; line-height: 1.35; }
button.vs-ev:where(:hover:not(:disabled)) { background: var(--bg-alt); }
.vs-ev > span:first-child { min-width: 0; font-variant-numeric: tabular-nums; }
.vs-ev > span:last-child { flex: none; color: var(--link); font-weight: 600; }
.vs-ev.is-ok > span:last-child { color: var(--green-ink); }
.vs-camstrip { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
button.vs-cam { position: relative; display: block; width: 100%; padding: 0; border-radius: var(--r-sm); overflow: hidden; background: #000; color: #fff; min-height: 0; }
button.vs-cam:active:not(:disabled) { transform: none; }
.vs-cam img { width: 100%; aspect-ratio: 276 / 233; object-fit: cover; opacity: .78; transition: opacity .2s var(--ease); }
.vs-cam > span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 6px; background: linear-gradient(transparent, rgba(0, 0, 0, .78)); font: 600 11px/1.3 var(--mono);
  text-align: left; font-variant-numeric: tabular-nums; }
button.vs-cam[aria-pressed="true"] { background: #000; color: #fff; box-shadow: 0 0 0 3px var(--bg-alt), 0 0 0 5px var(--blue); }
button.vs-cam[aria-pressed="true"] img, button.vs-cam:hover img { opacity: 1; }
.vs-rstats { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 16px; padding: 12px 14px 12px 18px; border-radius: var(--r-lg); background: var(--bg); }
.vs-rstats__count { font-size: 14px; color: var(--text-2); white-space: nowrap; }
.vs-rstats__count strong { font-size: 21px; color: var(--text); font-variant-numeric: tabular-nums; }
.vs-rstats__seek { flex: 1 1 200px; }
.vs-rstats .vs-status { margin: 0; flex: 0 1 auto; min-width: 0; }
.vs-rstats .vs-btn { background: var(--fill); }

/* ---------------------------------------------------------------- 09 journey */
.vs-jflow { list-style: none; margin: 0; padding: 0; }
.vs-jcard { padding: 26px 24px; }
.vs-jcard__n { display: block; font-size: 28px; font-weight: 600; color: var(--blue); margin-bottom: 16px; font-variant-numeric: tabular-nums; }
.vs-page .vs-jcard h3 { font-size: 19px; margin: 0 0 8px; }
.vs-jcard p { font-size: 15px; line-height: 1.7; color: var(--text-2); }
.vs-mini--wide { max-width: 980px; }
.vs-chain { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vs-chain li { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.vs-chain li:not(:last-child)::after { content: "→"; color: #86868b; font-weight: 400; }
.vs-chain li { padding: 0; }
.vs-chain li::before { content: ""; }
.vs-more { margin-top: 18px; font-size: 17px; }
.vs-more a::after { content: " ›"; }

/* ---------------------------------------------------------------- 10 sizing */
.vs-calc { padding: 20px 22px; }
.vs-calc__inputs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto; gap: 12px; align-items: end; }
.vs-calc__inputs label { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 13px; font-weight: 600; color: var(--text-2); line-height: 1.3; }
.vs-calc__inputs input:invalid { border-color: #d70015; }
.vs-calc__inputs .vs-btn { min-height: 48px; }
.vs-calc__msg { margin: 12px 0 0; padding: 10px 16px; border-radius: var(--r-sm); background: #fff0f0; color: #b00015; font-size: 14px; }
.vs-kpis { margin-top: 16px; }
.vs-kpi { padding: 22px; }
.vs-kpi small { display: block; font-size: 13px; line-height: 1.4; color: var(--text-2); min-height: 2.8em; }
.vs-kpi strong { display: block; margin: 8px 0 6px; font-size: clamp(30px, 3.2vw, 40px); line-height: 1.1; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--text); }
.vs-kpi p { font-size: 13px; line-height: 1.5; color: var(--text-2); }
.vs-alloc { margin-top: 16px; }
.vs-alloc__card { padding: 24px; }
.vs-page .vs-alloc__card h3 { font-size: 21px; margin: 0 0 14px; }
.vs-table { font-size: 14px; background: var(--bg-alt); }
.vs-table th { background: #ececf0; }
.vs-table td + td { color: var(--text-2); }
.vs-alloc__scroll { border-radius: var(--r-md); }
.vs-slots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.vs-slots li { display: grid; place-items: center; height: 46px; border-radius: 10px; background: var(--bg-alt); color: var(--text-2); font: 600 12px/1 var(--latin); box-shadow: inset 0 0 0 1px #e3e3e8; }
.vs-slots li.live { background: var(--blue); color: #fff; box-shadow: none; }
.vs-slots li.search { background: #8944ab; color: #fff; box-shadow: none; }
.vs-slots__key { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 0; font-size: 12px; color: var(--text-2); }
.vs-slots__key span::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; vertical-align: -1px; }
.vs-slots__key .k-live::before { background: var(--blue); } .vs-slots__key .k-search::before { background: #8944ab; } .vs-slots__key .k-free::before { background: var(--bg-alt); box-shadow: inset 0 0 0 1px #d2d2d7; }
.vs-alloc__sum { margin-top: 14px; font-size: 16px; font-weight: 600; }
.vs-alloc__formula { margin-top: 6px; font: 13px/1.5 var(--mono); color: var(--text-2); overflow-wrap: anywhere; }
.vs-alloc__formula:empty { display: none; }
.vs-warn { margin-top: 16px; padding: 18px 22px 18px 52px; position: relative; border-radius: var(--r-lg); background: var(--bg); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; line-height: 1.65; }
.vs-warn::before { content: "!"; position: absolute; left: 18px; top: 18px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #bf4800; color: #fff; font-size: 14px; font-weight: 700; line-height: 1; }
.vs-warn b { color: var(--text); }
.vs-source { margin-top: 14px; font-size: 13px; line-height: 1.6; color: var(--text-2); }
.vs-source a { text-decoration: underline; text-underline-offset: 2px; }
a.vs-xlink { position: relative; display: grid; gap: 4px; margin-top: 24px; padding: 22px 56px 22px 26px; color: var(--text); text-decoration: none; transition: box-shadow .2s var(--ease); }
a.vs-xlink:hover { box-shadow: var(--shadow); text-decoration: none; }
.vs-xlink__t { font-size: 21px; font-weight: 600; color: var(--link); }
.vs-xlink__d { font-size: 15px; color: var(--text-2); }
.vs-xlink__go { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 30px; line-height: 1; color: var(--link); }

/* ---------------------------------------------------------------- footer + bottom bar */
.vs-pagefoot { padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px)); }
.vs-bar { position: fixed; z-index: 45; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); width: max-content; max-width: calc(100% - 24px);
  display: flex; align-items: center; gap: 10px; padding: 7px 7px 7px 16px; border-radius: 980px; background: rgba(255, 255, 255, .96);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .12), 0 0 0 1px rgba(0, 0, 0, .05); font-family: var(--font); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .vs-bar { background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
}
.vs-bar__track { position: absolute; left: 22px; right: 22px; top: 0; height: 2px; border-radius: 2px; overflow: hidden; }
.vs-bar__track i { display: block; height: 100%; width: 10%; background: var(--blue); border-radius: 2px; transition: width .3s var(--ease); }
.vs-bar__count { font-size: 13px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
button.vs-bar__topic { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 340px; min-height: 44px; padding: 8px 16px; font-size: 14px; background: var(--fill); }
.vs-bar__num { flex: none; font-weight: 600; color: var(--link); font-variant-numeric: tabular-nums; }
.vs-bar__title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-bar__chev { flex: none; color: var(--text-2); }
button.vs-bar__jump { min-height: 44px; padding: 8px 14px; font-size: 13px; background: transparent; white-space: nowrap; }
button.vs-bar__jump:where(:hover:not(:disabled)) { background: var(--fill); }
.vs-bar__ctl { display: flex; gap: 4px; flex: none; }
button.vs-icon { display: grid; place-items: center; width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; background: var(--fill); color: var(--text); }
.vs-icon--pause .i-play { display: none; }
.vs-icon--pause.is-paused .i-pause { display: none; }
.vs-icon--pause.is-paused .i-play { display: block; }
button.vs-icon--pause.is-paused, button.vs-icon--pause[aria-pressed="true"] { background: var(--blue); color: #fff; }
.vs-toast { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%); margin: 0; padding: 8px 14px; border-radius: 980px; background: rgba(29, 29, 31, .92);
  color: #fff; font-size: 13px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .3s; }
.vs-toast.is-on { opacity: 1; }

/* dialogs (topic picker, camera zoom). Without showModal the [open] fallback still centres them. */
.vs-dialog { width: min(760px, calc(100% - 32px)); max-height: calc(100vh / var(--z, 1) - 48px); max-height: calc(100dvh / var(--z, 1) - 48px); margin: auto; padding: 24px; border: 0; border-radius: var(--r-xl);
  background: var(--bg); color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, .25); overflow: auto; overscroll-behavior: contain; }
.vs-dialog[open] { position: fixed; inset: 0; z-index: 60; }
.vs-dialog::backdrop { background: rgba(0, 0, 0, .32); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.vs-dialog__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.vs-dialog__head h2 { font-size: 24px; line-height: 1.25; }
.vs-dialog__head p { margin-top: 6px; font-size: 13px; color: var(--text-2); }
.vs-dialog__head .vs-icon { flex: none; }
.vs-dialog__quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; font-size: 13px; color: var(--text-2); }
.vs-dialog__quick .chip { color: var(--link); text-decoration: none; min-height: 36px; }
.vs-dialog__quick .chip:hover { background: var(--fill); }
.vs-topics { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.vs-topic { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 16px; border-radius: var(--r-md); background: var(--bg-alt); color: var(--text); text-decoration: none; }
.vs-topic:hover { text-decoration: none; background: #ececf0; }
.vs-topic > b { flex: none; min-width: 30px; font-size: 21px; font-weight: 600; color: var(--link); font-variant-numeric: tabular-nums; }
.vs-topic > span { min-width: 0; font-size: 15px; line-height: 1.4; }
.vs-topic small { display: block; font-size: 12px; color: #5f5f64; }
.vs-topic[aria-current="true"] { background: var(--tint-blue); box-shadow: inset 0 0 0 2px var(--blue); }
.vs-topic[aria-current="true"] small, button.vs-chapter[aria-pressed="true"] small { color: #48484c; }
.vs-zoom { width: min(720px, calc(100% - 32px)); }
.vs-zoom .vs-dialog__head { align-items: center; }
.vs-zoom .vs-dialog__head h2 { font: 600 17px/1.3 var(--mono); }
.vs-zoom__img { width: 100%; border-radius: var(--r-md); background: #000; }
.vs-body.has-dialog { overflow: hidden; }

/* ---------------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  .vs-sig, .vs-pipe__pulse, .vs-film__scan, .vs-modules .vs-module { animation: none !important; }
  .vs-film__scan { display: none; }
  .vs-bar-track i, .vs-bar__track i, .vs-process li, .vs-plate__ref, .vs-cam img { transition: none; }
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1068px) {
  .vs-bar__jump { display: none; }
  .vs-pipe__wire { display: none; }
  .vs-film { margin-bottom: 16px; }
  .vs-calc__inputs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vs-route { grid-template-columns: minmax(0, 1fr); }
  .vs-route__side { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: none; }
  .vs-map { height: clamp(320px, 52vw, 480px); }
}
@media (max-width: 900px) {
  .vs-demo, .vs-flow, .vs-plate { grid-template-columns: minmax(0, 1fr); }
  .vs-camstrip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vs-process li { padding: 10px; font-size: 13px; }
}
@media (max-width: 734px) {
  .vs-page .section { padding-top: 64px; padding-bottom: 64px; }
  .vs-hero { padding-top: 56px; }
  .vs-hero__cta { margin: 24px 0 40px; }
  .vs-hero__cta .vs-btn { flex: 1 1 auto; }
  .vs-card { padding: 24px 22px 26px; }
  .vs-stage { aspect-ratio: 4 / 3; border-radius: var(--r-md); }
  .vs-stage__tools { top: 6px; right: 6px; gap: 2px; }
  .vs-tool { min-width: 36px; min-height: 36px; padding: 0 8px; }
  .vs-stage__label { top: 52px; left: 8px; font-size: 11px; padding: 5px 10px; }
  .vs-stage__banner { left: 8px; right: 8px; bottom: 8px; font-size: 13px; padding: 8px 12px; }
  .vs-process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vs-process li:last-child { grid-column: 1 / -1; }
  .vs-route__side { grid-template-columns: minmax(0, 1fr); }
  .vs-map { height: auto; aspect-ratio: 4 / 3.4; }
  .vs-legend__n { margin-left: 0; }
  .vs-camstrip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vs-toolbar { padding: 14px; }
  .vs-toolbar__btns .vs-btn { padding: 10px 14px; }
  .vs-calc__inputs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vs-calc__inputs .vs-btn { grid-column: 1 / -1; }
  .vs-slots { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .vs-dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .vs-pipe { padding: 18px; }
  .vs-film { height: 52px; gap: 6px; }
  .vs-film span { font-size: 10px; }
  .vs-topics { grid-template-columns: minmax(0, 1fr); }
  .vs-dialog { padding: 20px; }
  .vs-bar { left: 12px; right: 12px; transform: none; width: auto; max-width: none; gap: 6px; padding: 6px; }
  .vs-bar__count { display: none; }
  button.vs-bar__topic { flex: 1 1 auto; max-width: none; padding: 8px 12px; }
  .vs-toast { white-space: normal; width: max-content; max-width: calc(100vw - 48px); text-align: center; }
  a.vs-xlink { padding: 20px 48px 20px 22px; }
}
@media (max-width: 420px) {
  .vs-filters .seg { width: 100%; }
  .vs-filters .seg__btn { flex: 1 1 auto; padding: 8px 10px; }
  .vs-kpi strong { font-size: 30px; }
  .vs-bar__ctl { gap: 2px; }
  button.vs-icon { width: 40px; height: 44px; }
  #vsFull { display: none; }
}
@media (max-width: 359px) {
  .vs-calc__inputs { grid-template-columns: minmax(0, 1fr); }
  .vs-stage__tools .vs-tool--text { display: none; }
  .vs-stage__label { top: 50px; }
  .vs-camstrip { gap: 6px; }
  .vs-cam > span { font-size: 10px; padding: 14px 6px 5px; }
  .vs-slots li { height: 40px; }
}
/* phones in landscape: short screens */
@media (max-height: 500px) and (orientation: landscape) {
  .vs-page .section { padding-top: 48px; padding-bottom: 56px; }
  .vs-stage { aspect-ratio: auto; height: calc(100vh - 130px); height: calc(100svh - 130px); min-height: 220px; }
  .vs-video { max-height: calc(100vh - 110px); max-height: calc(100svh - 110px); margin-left: auto; margin-right: auto; }
  .vs-map { height: min(300px, calc(100vh - 120px)); aspect-ratio: auto; }
  .vs-bar { bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------------------------------------------------------------- print: one topic per page */
@media print {
  @page { margin: 12mm; }
  html, body { background: #fff !important; }
  .vs-bar, .vs-dialog, .vs-stage__tools, .vs-hint, .vs-play, .vs-vprog, .vs-transport, .vs-hero__cta, .vs-toolbar__btns, .vs-mapbar__btns,
  .vs-plate__ctl, .vs-result__btns, .vs-rstats__seek, .vs-rstats .vs-btn, .vs-calc__inputs .vs-btn, .vs-feed__zoom, .vs-more { display: none !important; }
  .vs-page .section { padding: 0 0 8mm !important; background: #fff !important; break-before: page; }
  .vs-page .section:first-child { break-before: auto; }
  .card, .vs-note, .vs-module, .vs-metrics > div, .vs-jcard, .vs-kpi, .vs-stage, .vs-video, .vs-mapcard, .vs-warn { break-inside: avoid; box-shadow: none !important; }
  .card, .vs-metrics > div { border: 1px solid var(--line); }
  .vs-stage, .vs-video, .vs-map, .vs-cam, .vs-feed__btn, .vs-slots li, .vs-process li.on { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .vs-pagefoot { padding-bottom: 0; }
  *, *::before, *::after { animation-play-state: paused !important; transition: none !important; }
  .vs-source a::after { content: " (" attr(href) ")"; font-size: 10px; word-break: break-all; }
}

/* ---------------------------------------------------------------- small additions */
.vs-print-pin { display: none; }
.vs-print-pin circle { fill: #3a3a3c; stroke: #fff; stroke-width: 3; }
.vs-print-pin text { fill: #fff; font: 700 15px var(--latin); text-anchor: middle; }
.no-js .vs-bar, .no-js .vs-hero__cta button, .no-js .vs-stage__tools, .no-js .vs-transport, .no-js .vs-play { display: none; }
@media print {
  .vs-map { height: auto !important; aspect-ratio: auto !important; overflow: visible; }
  .vs-map__world { position: relative; width: 100%; height: auto; transform: none !important; }
  .vs-map__base { position: static; width: 100%; height: auto; }
  .vs-map__ov { width: 100%; height: 100%; }
  .vs-map__pins, .vs-map__state { display: none !important; }
  .vs-print-pin { display: inline; }
}
.vs-noscript { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 10px 18px; border-radius: 980px; background: #f5f5f7; color: #1d1d1f; font-size: 15px; }
/* print: keep the desktop arrangement on paper (A4 is narrower than the phone breakpoint) */
@media print {
  html { font-size: 14px; }
  .vs-page .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vs-page .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vs-page .grid-4, .vs-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .vs-demo, .vs-flow, .vs-plate { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .vs-route { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
  .vs-route__side { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .vs-camstrip { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .vs-process { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .vs-process li:last-child { grid-column: auto; }
  .vs-calc__inputs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .vs-slots { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .vs-dl > div { grid-template-columns: minmax(80px, 34%) minmax(0, 1fr); }
  .vs-page .headline { font-size: 40px; } .vs-page .title { font-size: 30px; }
  .vs-page .section .vs-sub { font-size: 15px; margin-bottom: 16px; }
  .vs-card, .vs-rcard, .vs-jcard, .vs-module, .vs-module--big, .vs-panel, .vs-plate__result, .vs-alloc__card, .vs-kpi, .vs-pipe, .vs-calc { padding: 14px !important; }
  .vs-ico { width: 48px; height: 40px; } .vs-module--big .vs-ico { width: 56px; height: 46px; }
  .vs-page .vs-card__title, .vs-page .vs-rcard h3, .vs-page .vs-module h3, .vs-page .vs-jcard h3 { font-size: 16px; }
  .vs-card p, .vs-module p, .vs-jcard p, .vs-chapter small, .vs-metrics dd { font-size: 12px; }
  .vs-kpi strong { font-size: 24px; } .vs-kpi small { min-height: 0; }
  .vs-hero { padding-top: 0; } .vs-stage { aspect-ratio: 35 / 18; }
  .vs-map { height: auto !important; }
}
/* typographic polish where supported: balanced headlines, no one-word last lines */
.vs-page .headline, .vs-page .title { text-wrap: balance; }
.vs-page .lead, .vs-page .vs-sub, .vs-audience, .vs-note, .vs-card p, .vs-module p { text-wrap: pretty; }

/* One baseline per text row (owner rule; qa/baseline_scan.js). Sliders and icon-only controls stay centred. */
.vs-transport, .vs-player__actions, .vs-mapbar, .vs-log__head, .vs-toolbar__btns, .vs-bar, .vs-rstats, .vs-toolbar, .vs-filters, button.vs-chapter { align-items: baseline; }
.vs-seek, .vs-bar__ctl { align-self: center; }
