.vt-scene {
  color: var(--ink);
  container-type: inline-size;
  font-size: inherit;
  line-height: 1.5;
  min-width: 0;
}
.vt-scene *, .vt-scene *::before, .vt-scene *::after { box-sizing: border-box; }
.vt-body, .vt-editor { display: grid; gap: 10px; min-width: 0; }
.vt-body > *, .vt-editor > * { min-width: 0; }
.vt-scene .vt-hint, .vt-scene .vt-excerpt { margin: 0; }
.vt-hint, .vt-readout, .vt-trackinfo > span, .vt-library-copy > span, .vt-storage-values, .vt-connection > span {
  color: var(--muted);
}
.vt-hint, .vt-status, .vt-field, .vt-readout, .vt-storage-values, .vt-bucket, .vt-connection, .vt-player-result {
  font-size: .875rem;
}
.vt-scene .vt-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.vt-scene .demo-button { min-height: 36px; max-width: 100%; white-space: normal; }
.vt-scene .vt-field { display: flex; justify-content: space-between; align-items: center; gap: 6px 12px; flex-wrap: wrap; padding: 0; }
.vt-field > .demo-label { color: var(--ink); font-weight: 600; }
.vt-scene select.vt-select {
  display: block; min-width: 0; max-width: 100%; min-height: 34px; margin: 0; padding: 4px 5px;
  background-color: var(--raised); color: var(--ink); font: inherit; line-height: normal; text-align: start;
}
.vt-scene .vt-check { width: 18px; height: 18px; margin: 0 3px; accent-color: var(--accent); }
.vt-status { margin: 10px 0 0; }
.vt-status:empty { margin: 0; padding: 0; min-height: 0; }
.vt-slider { display: flex; align-items: center; flex: 1 1 135px; max-width: 72%; gap: 8px; }
.vt-range { min-width: 0; width: 100%; height: 30px; margin: 0; accent-color: var(--accent); }
.vt-percent, .vt-count, .vt-location, .vt-storage-head span, .vt-storage-values, .vt-bucket b { font-variant-numeric: tabular-nums; }
.vt-percent { flex: 0 0 4.6ch; white-space: nowrap; text-align: end; }
.vt-titlebar {
  display: flex; align-items: center; gap: 7px; min-height: 27px; padding: 3px 9px;
  color: var(--ink); background: var(--soft); font-size: 12px; font-weight: 600;
}
.vt-lights { display: flex; flex: none; gap: 3px; }
.vt-lights i { width: 5px; height: 5px; border-radius: 50%; background: #ff6058; }
.vt-lights i:nth-child(2) { background: #ffbd2e; }
.vt-lights i:nth-child(3) { background: #29c741; }
.vt-setup { border-top: 1px solid var(--rule); padding-top: 5px; }
.vt-setup > summary { width: fit-content; cursor: pointer; color: var(--muted); font-size: 13px; padding: 5px 0; }
.vt-setup[open] > .vt-field { margin: 4px 1px; }

/* The English trail sign is part of the sample image; only its text changes in a translation. */
.vt-capture {
  display: grid; place-items: center; isolation: isolate; overflow: hidden;
  padding: 6px; min-height: 140px;
}
.vt-photo-frame { position: relative; width: 100%; max-width: 620px; }
.vt-capture[data-mode="edit"] {
  gap: 12px; padding: 16px 12px 9px;
  background: #668898 url("../assets/coast.webp") center / cover;
}
.vt-capture .crop-frame { box-shadow: 0 0 0 100vmax rgb(0 0 0 / 35%); }
.crop-frame { position: relative; outline: 1px solid var(--control-accent); }
.crop-frame::after {
  content: ""; position: absolute; inset: -1px; pointer-events: none;
  --edge: linear-gradient(var(--control-accent), var(--control-accent));
  background: var(--edge) left top, var(--edge) right top, var(--edge) left bottom, var(--edge) right bottom,
              var(--edge) left top, var(--edge) right top, var(--edge) left bottom, var(--edge) right bottom;
  background-size: 12px 2.5px, 12px 2.5px, 12px 2.5px, 12px 2.5px, 2.5px 12px, 2.5px 12px, 2.5px 12px, 2.5px 12px;
  background-repeat: no-repeat;
}
.crop-handle { position: absolute; z-index: 1; border: 1px solid var(--control-accent); border-radius: 4px; background: #fff; pointer-events: none; }
.crop-handle:nth-last-of-type(1), .crop-handle:nth-last-of-type(2) { width: 14px; height: 5px; left: 50%; transform: translateX(-50%); }
.crop-handle:nth-last-of-type(3), .crop-handle:nth-last-of-type(4) { width: 5px; height: 14px; top: 50%; transform: translateY(-50%); }
.crop-handle:nth-last-of-type(1) { top: -3px; }
.crop-handle:nth-last-of-type(2) { bottom: -3px; }
.crop-handle:nth-last-of-type(3) { left: -3px; }
.crop-handle:nth-last-of-type(4) { right: -3px; }
.vt-toolbar {
  position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 1px;
  width: fit-content; max-width: 100%; padding: 4px; border: 1px solid var(--glass-edge); border-radius: 999px;
  background: var(--surface); box-shadow: inset 0 1px 1px var(--glass-light), 0 4px 15px rgb(0 0 0 / 16%);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .vt-toolbar { background: var(--panel-glass); -webkit-backdrop-filter: blur(20px) saturate(1.45); backdrop-filter: blur(20px) saturate(1.45); }
}
.vt-toolbar button { display: grid; place-items: center; position: relative; min-width: 36px; min-height: 34px; border-radius: 99px; color: var(--ink); }
.vt-toolbar button :is(.icon, svg) { width: 20px; height: 20px; }
.vt-toolbar :is([aria-pressed="true"], [aria-expanded="true"]) { color: var(--accent-ink); }
.vt-toolbar :is([aria-pressed="true"], [aria-expanded="true"])::after { content: ""; position: absolute; bottom: 0; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }

.vt-postcard {
  position: relative; height: clamp(160px, 44cqi, 310px); overflow: hidden;
  background: linear-gradient(65deg, rgb(5 20 35 / 68%), transparent 75%), #31536b url("../assets/lighthouse.webp") 65% center / cover;
}
.vt-sign {
  position: absolute; left: 7%; bottom: 14%; display: grid; gap: 1px; max-width: 86%;
  color: #fff;
}
.vt-sign b { font: 550 clamp(24px, 6cqi, 42px)/1.15 var(--sans); }
.vt-sign:lang(en) b { font: 400 clamp(34px, 8cqi, 62px)/1 var(--display); }
.vt-sign span { font-size: 12px; line-height: 1.4; }
.vt-capture[data-mode="pin"] {
  min-height: clamp(160px, 46cqi, 232px);
  background: var(--soft);
}
.vt-capture[data-mode="pin"] .vt-photo-frame {
  transform: scale(calc(.65 * var(--vt-zoom, 1))); outline: 1px solid var(--line-strong);
}
.vt-ink { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; pointer-events: none; }
.vt-drawing .vt-ink { pointer-events: auto; touch-action: none; cursor: crosshair; }
.vt-mark-palette, .vt-readout { display: grid; gap: 7px; border-top: 1px solid var(--rule); padding-top: 9px; }
.vt-excerpt { color: var(--ink); white-space: pre-line; user-select: text; }

/* RC003. The rocker and direction ring use separate physical hit targets. */
/* Keep the photographed handset beside the same matrix used by the Mac editor. */
.vt-remote-board { display: grid; grid-template-rows: auto auto 1fr; grid-template-columns: auto minmax(0, 1fr); gap: 10px clamp(12px, 3cqi, 24px); align-items: start; }
.vt-remote-board > .vt-remote { grid-row: 1 / 4; width: clamp(64px, 14cqi, 100px); height: auto; justify-self: center; }
.vt-remote image { cursor: zoom-in; }
.vt-remote-board[data-enlarged="true"] > .vt-remote { grid-column: 1 / -1; grid-row: auto; width: min(34%,140px); }
.vt-remote-board[data-enlarged="true"] > :is(.vt-remote-head, .vt-matrix) { grid-column: 1 / -1; }
.vt-remote-board[data-enlarged="true"] image { cursor: zoom-out; }
.vt-remote-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 17px; }
.vt-remote-head .vt-field { min-height: 0; gap: 5px; }
.vt-matrix { width: 100%; border-collapse: collapse; table-layout: fixed; font: 13px/1.35 var(--sans); }
.vt-matrix th { text-align: start; font-weight: 530; padding: 5px 3px; }
.vt-matrix th:first-child { width: 22%; }
.vt-matrix thead { color: var(--muted); }
.vt-matrix td { padding: 2px; overflow-wrap: anywhere; }
.vt-matrix-cell { width: 100%; min-height: 32px; padding: 3px; border-radius: 5px; color: var(--ink); }
.vt-matrix-cell:hover, .vt-matrix-cell[aria-expanded=true] { color: var(--accent-ink); background: var(--accent-wash); }
.vt-inline-editor { padding: 9px 10px; background: var(--surface); border-radius: 9px; }
.vt-edit-title, .vt-action-groups { display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.vt-edit-title strong { font-weight: 600; }
.vt-text-button { padding: 4px 2px; min-height: 27px; color: var(--muted); font-size: 13px; }
.vt-action-groups [aria-pressed=true], .vt-option[aria-pressed=true] { color: var(--accent-ink); font-weight: 600; }
.vt-action-list { max-height: 9rem; overflow-y: auto; }
.vt-option { display: block; width: 100%; padding: 5px 6px; min-height: 29px; text-align: start; border-radius: 5px; }
.vt-option:hover { background: var(--accent-wash); }
.vt-test { justify-self: start; align-self: start; }
.vt-remote-board[data-enlarged="true"] .vt-test { grid-column: 1 / -1; }
@container (max-width: 500px) {
  .vt-remote-board { grid-template-columns: minmax(0,1fr); }
  .vt-remote-board > .vt-remote { grid-area: auto; width: 60px; }
}
@media (pointer: coarse) {
  .vt-matrix-cell, .vt-text-button, .vt-option { min-height: 44px; }
}
.vt-hardware-key { fill: transparent; stroke: transparent; stroke-width: 1.6px; vector-effect: non-scaling-stroke; cursor: pointer; }
.vt-hardware-key[aria-pressed="true"] { stroke: #68a9ff; }
.library .vt-hardware-key:focus-visible, .vt-hardware-key:active { outline: none; stroke: #68a9ff; stroke-width: 2.4px; fill: rgb(70 151 255 / 28%); }
.vt-editor { align-content: center; gap: 7px; }
.vt-editor > strong { font-size: 17px; }
.vt-editor .vt-field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.vt-editor select { width: 100%; }
.vt-editor > .demo-button { justify-self: start; margin-top: 2px; }
.vt-mapping { font-size: 13px; }
.vt-recorder-row { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.vt-recorder { flex: 1 1 120px; max-width: 100%; min-width: 0; min-height: 36px; font-size: 13px; }
.vt-player-result, .vt-connection, .vt-storage-head, .vt-storage-values, .vt-library-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.vt-voicebox { display: grid; gap: 7px; align-content: center; padding-block: 12px; }
.vt-audio-bars { height: 36px; display: flex; gap: 3px; align-items: center; }
.vt-audio-bars i { width: 4px; height: 6px; max-height: 5px; border-radius: 3px; background: var(--line-strong); }
.vt-voicebox[data-active="true"] .vt-audio-bars i { max-height: 36px; background: var(--control-accent); }
.vt-talk { touch-action: none; user-select: none; -webkit-user-select: none; }

/* Mission Control's two previews and the separate, positionable document window. */
.vt-mission, .vt-dragdesk {
  overflow: hidden; isolation: isolate; border-radius: .35rem; background: var(--soft);
}
.vt-spaces { width: fit-content; margin: 10px auto 0; padding: 2px 12px; border-radius: 5px; background: var(--raised); color: var(--muted); font-size: 12px; }
.vt-thumbs { display: flex; justify-content: center; align-items: center; gap: clamp(10px, 3cqi, 20px); min-height: 163px; padding: 20px 12px 9px; }
.vt-thumb { position: relative; flex: 1 1 0; max-width: 195px; min-width: 0; }
.vt-mini-window { overflow: hidden; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--raised); }
.vt-mini-window .vt-titlebar { justify-content: center; font-size: 11px; min-height: 22px; padding: 2px 5px; }
.vt-mini-window .vt-lights { display: none; }
.vt-mini-window > :last-child { height: clamp(61px, 17cqi, 91px); }
.vt-map {
  display: flex; align-items: end; padding: 5px 8px; color: #fff; font-size: 13px; font-weight: 700;
  background: linear-gradient(0deg, rgb(0 0 0 / 68%), transparent 65%), url("../assets/coast.webp") 50% 63% / cover no-repeat;
}
.vt-appname { display: block; text-align: center; margin-top: 4px; color: var(--ink); font-size: 12px; font-weight: 650; }
.vt-notepaper { display: grid; align-content: center; justify-items: start; gap: 3px; padding: 8px 11px; color: var(--ink); background: var(--raised); }
.vt-notepaper b { font: 550 15px/1.2 var(--sans); }
.vt-notepaper b:lang(en) { font: 400 19px/1.1 var(--display); }
.vt-notepaper span { font-size: 11px; }
.vt-rule { display: block; width: 74%; height: 1px; background: var(--line-strong); }
.vt-rule:last-child { width: 45%; }
.vt-scene .vt-window-close {
  position: absolute; left: -7px; top: -11px; display: grid; place-items: center; padding: 0; width: 36px; height: 36px;
  z-index: 1; background: transparent; border: 0; color: var(--on-solid); font: 600 19px/1 var(--sans); isolation: isolate;
}
.vt-window-close::before { content: ''; position: absolute; inset: 5px; z-index: -1; border: 1px solid var(--on-solid); border-radius: 50%; background: var(--solid); }
@media (hover: hover) {
  .vt-hardware-key:hover { stroke: #68a9ff; }
  .vt-setup > summary:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .2em; }
  .vt-scene .vt-window-close:enabled:hover { color: var(--solid); }
  .vt-window-close:enabled:hover::before { border-color: var(--solid); background: var(--on-solid); }
}
@media (hover: hover) and (pointer: fine) {
  .vt-thumb .vt-window-close { opacity: 0; }
  .vt-thumb:hover .vt-window-close, .vt-thumb:focus-within .vt-window-close { opacity: 1; }
}
.vt-empty-windows { padding: 5px 10px; background: var(--raised); border-radius: 6px; font-size: 13px; }
.vt-save-sheet { display: grid; justify-items: start; gap: 8px; background: var(--raised); padding: .8rem; border: 1px solid var(--line-strong); border-radius: .35rem; }
.vt-dragdesk { position: relative; height: clamp(175px, 43cqi, 216px); }
.vt-drag-window {
  position: absolute; z-index: 1; width: min(55%, 197px); overflow: hidden; cursor: grab; touch-action: none;
  user-select: none; -webkit-user-select: none; border: 1px solid var(--line-strong); border-radius: 4px;
}
.vt-drag-window.vt-grabbed { cursor: grabbing; }
.vt-drag-window .vt-notepaper { min-height: 64px; }
.vt-location { position: absolute; right: 6px; bottom: 5px; padding: 1px 5px; border-radius: 3px; font: 12px/1.4 ui-monospace, monospace; background: var(--raised); color: var(--ink); pointer-events: none; }

/* Original album sleeves. Two songs share the first album and therefore the same art. */
.vt-record { display: flex; align-items: center; gap: clamp(12px, 4cqi, 24px); padding-block: .35rem .8rem; border-bottom: 1px solid var(--rule); }
.vt-sleeve {
  position: relative; isolation: isolate; overflow: hidden; flex: none; width: clamp(80px, 29cqi, 132px); aspect-ratio: 1;
  --vt-stock: #d4ddc2;
  --vt-print: #275d62;
  border: 1px solid var(--line-strong); background: var(--vt-stock); color: var(--vt-print);
}
.vt-record-grooves {
  position: absolute; width: 124%; aspect-ratio: 1; bottom: -46%; left: -23%; z-index: -1; border-radius: 50%;
  background: repeating-radial-gradient(circle at center, var(--vt-print) 0 6%, var(--vt-stock) 6.5% 8.2%);
}
.vt-sleeve[data-album="lamp"] { --vt-stock: #f0c582; --vt-print: #6e3e54; }
.vt-sleeve[data-album="lamp"] .vt-record-grooves {
  width: 80%; bottom: -12%; left: 44%; background: repeating-radial-gradient(circle at center, var(--vt-print) 0 9%, var(--vt-stock) 9.5% 12%);
}
.vt-sleeve-title { display: block; width: fit-content; padding: 6px 8px; background: var(--vt-stock); font: 550 clamp(15px, 4.5cqi, 22px)/1.15 var(--sans); }
.vt-trackinfo, .vt-library-copy { display: grid; align-content: center; gap: 3px; min-width: 0; }
.vt-trackinfo > strong { color: var(--ink); font: 550 clamp(19px, 5.2cqi, 28px)/1.16 var(--sans); }
.vt-sleeve-title:lang(en), .vt-trackinfo > strong:lang(en) { font-family: var(--display); font-weight: 400; }
.vt-trackinfo > span, .vt-library-copy > span { font-size: 13px; }
.vt-scene .vt-library { display: grid; gap: 6px; padding: 9px 0 0; border-top: 1px solid var(--rule); }
.vt-count { color: var(--muted); }
.vt-scene .vt-library-item { display: flex; flex-wrap: nowrap; align-items: center; justify-content: start; gap: 8px; padding: 2px 0; }
.vt-sleeve-small { width: 37px; }

.vt-files { overflow: hidden; border: 1px solid var(--rule); border-radius: .35rem; background: var(--raised); }
.vt-filelist { display: grid; align-content: start; justify-items: stretch; gap: 4px; min-height: 93px; padding: 10px; }
.vt-filelist > .demo-button { justify-self: start; }
.vt-file { display: grid; align-items: center; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 8px; min-height: 32px; font-size: 13px; }
.vt-file > span { color: var(--muted); }
.vt-drive, .vt-folder { display: block; position: relative; width: 18px; height: 12px; background: var(--soft); border: 1px solid var(--muted); border-radius: 3px; }
.vt-drive::after { content: ''; position: absolute; right: 2px; bottom: 2px; background: var(--ink); width: 3px; height: 3px; border-radius: 50%; }
.vt-folder { height: 13px; }
.vt-folder::before { content: ''; position: absolute; left: -1px; bottom: 100%; width: 8px; height: 3px; border-radius: 2px 3px 0 0; background: var(--muted); }
.vt-document { display: block; width: 13px; height: 16px; margin-left: 2px; border: 1px solid var(--muted); border-radius: 2px; background: linear-gradient(45deg, transparent 72%, var(--line-strong) 73%); }
.vt-folder-link { display: block; text-align: start; width: 100%; border: 0; padding: 0 3px; background: transparent; color: var(--ink); border-radius: 4px; }
.vt-folder-link:hover { background: var(--soft); }
.vt-files .vt-hint { align-self: center; }
.vt-storage { padding-block: .35rem .8rem; border-bottom: 1px solid var(--rule); }
.vt-storage-head span { color: var(--muted); font-size: 13px; }
.vt-storage-bar { display: flex; height: 15px; margin: 12px 0 7px; border: 1px solid var(--line-strong); border-radius: 2px; overflow: hidden; }
.vt-segment { display: block; background: var(--raised); }
.vt-segment[data-bucket="used"] { background: var(--solid); }
.vt-segment[data-bucket="ai"] { background: repeating-linear-gradient(135deg, var(--ink) 0 1px, var(--raised) 1px 4px); }
.vt-segment[data-bucket="apps"] { background: var(--muted); }
.vt-segment[data-bucket="old"] { background: repeating-linear-gradient(0deg, var(--ink) 0 1px, var(--raised) 1px 3px); }
.vt-storage-values b { color: var(--ink); }
.vt-buckets { display: grid; gap: 6px; margin-top: 14px; }
.vt-bucket { display: grid; align-items: center; grid-template-columns: 11px minmax(0, 1fr) auto; gap: 8px; }
.vt-bucket b { font-weight: 550; }
.vt-dot { width: 11px; height: 11px; border: 1px solid var(--muted); border-radius: 2px; }

@container (max-width: 340px) {
  .vt-thumb .vt-notepaper { padding: 5px 7px; gap: 2px; }
  .vt-thumb .vt-notepaper b { font-size: 13px; }
}
@media (pointer: coarse) {
  .vt-scene .demo-button, .vt-scene .vt-select, .vt-setup > summary { min-height: 44px; }
  .vt-scene .vt-window-close { width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  .vt-scene *, .vt-scene *::before, .vt-scene *::after { animation: none !important; transition: none !important; scroll-behavior: auto; }
}

@media (pointer: coarse) {
  .vt-toolbar button { min-width: 44px; min-height: 44px; }
}
@media (prefers-reduced-transparency: reduce) {
  .vt-toolbar { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (forced-colors: active) {
  .vt-toolbar button[aria-pressed="true"] { outline: 1.5px solid Highlight; outline-offset: -2px; }
  .crop-frame { outline-color: Highlight; }
}
