/* ViseoTape interactive models of the app's own controls.
   The camcorder body is drawn in the app's fixed cream/charcoal/orange palette in both light and dark pages. */
.vt {
  --a-body: #e8e5de; --a-panel: #f3f1ec; --a-key: #fbfaf7; --a-keyborder: #c9c5bc; --a-keylip: #bdb8ae;
  --a-dark: #2e2d2b; --a-darklip: #1a1918; --a-text: #3a3936; --a-strong: #2b2b2a; --a-cap: #6a6761;
  --a-inactive: #a9a49a; --a-track: #cfcbc2; --a-swoff: #d3cfc7; --a-swon: #5e8a3a; --a-led: #6fa046;
  --a-accent: #e8561e; --a-reclip: #b4400f; --a-cbg: #2b2a28; --a-ctext: #d8d4cb; --a-crec: #f2b07f;
  --osd: rgb(255,150,40); --osd-rec: rgb(255,70,60);
  color: var(--a-text);
  font-family: var(--font-main);
  min-width: 0;
}
.vt *, .vt *::before, .vt *::after { box-sizing: border-box; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.vt .cap { display: block; font-size: 0.72rem; line-height: 1.2; color: var(--a-cap); text-align: center; letter-spacing: 0.02em; }
.vt .mono { font-family: var(--font-osd); }
.vt .note { font-size: 0.78rem; color: var(--a-cap); line-height: 1.4; }

/* ---------- keys ---------- */
.vt .key {
  appearance: none; -webkit-appearance: none; font: inherit; font-size: 0.86rem; font-weight: 600;
  color: var(--a-text); background: var(--a-key); border: 1px solid var(--a-keyborder); border-radius: 6px;
  height: 40px; min-width: 44px; padding: 0 14px; cursor: pointer; position: relative; top: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-transform: lowercase;
  box-shadow: 0 2px 0 var(--a-keylip);
  transition: top .08s, box-shadow .08s, background-color .16s, color .16s;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.vt .key:active, .vt .key.is-down { top: 1px; box-shadow: 0 1px 0 var(--a-keylip); }
.vt .key:focus-visible, .vt .switch:focus-visible, .vt .fader:focus-visible, .vt .slider:focus-visible,
.vt .tab:focus-visible, .vt .dial button:focus-visible, .vt .vf-screen[role=button]:focus-visible, .vt .textfield:focus-visible {
  outline: 2px solid var(--a-accent); outline-offset: 3px;
}
.vt .key--dark, .vt .key.is-on { background: var(--a-dark); border-color: var(--a-dark); color: var(--a-panel); box-shadow: 0 1px 0 var(--a-darklip); }
.vt .key--dark:active, .vt .key--dark.is-down, .vt .key.is-on:active { box-shadow: 0 0 0 var(--a-darklip); }
.vt .key--rec { background: var(--a-accent); border-color: var(--a-accent); color: #fff; box-shadow: 0 2px 0 var(--a-reclip); }
.vt .key--rec:active, .vt .key--rec.is-down { box-shadow: 0 1px 0 var(--a-reclip); }
.vt .key--round { border-radius: 50%; padding: 0; }
.vt .key--cut { width: 46px; height: 46px; font-family: var(--font-osd); font-size: 0.74rem; letter-spacing: .06em; }
.vt .key--recbtn { width: 58px; height: 58px; }
.vt .rec-glyph { width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: border-radius .16s, transform .16s; }
.vt .key--rec.is-recording .rec-glyph { border-radius: 3px; transform: scale(.8); }
.vt .key .led { position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; }
.vt .bolt { width: 18px; height: 18px; fill: none; stroke: var(--a-inactive); stroke-width: 1.8; stroke-linejoin: round; transition: stroke .2s, transform .2s; }
.vt .key.is-lit .bolt { stroke: var(--a-led); transform: scale(1.12); }
@media (pointer: coarse) { .vt .key { height: 44px; } }

/* ---------- LED ---------- */
.vt .led { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--a-track); flex-shrink: 0; transition: background-color .15s, box-shadow .15s; }
.vt .led.is-on { background: var(--a-led); box-shadow: 0 0 6px rgba(111,160,70,.7); }
.vt .led--rec.is-on { background: var(--a-accent); box-shadow: 0 0 8px rgba(232,86,30,.8); }
.vt .led--rec.is-blink { animation: ledpulse 1s ease-in-out infinite; }
@keyframes ledpulse { 50% { opacity: .35; box-shadow: none; } }
.vt .led-cap { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- slide switch ---------- */
.vt .switch {
  appearance: none; -webkit-appearance: none; border: 0; padding: 0; position: relative; cursor: pointer;
  width: 52px; height: 20px; border-radius: 3px; background: var(--a-track); display: inline-block; flex-shrink: 0;
  box-shadow: inset 0 3px 3px -2px rgba(0,0,0,.28); -webkit-tap-highlight-color: transparent;
}
.vt .switch::before { content: ''; position: absolute; inset: -12px -6px; }
.vt .switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 24px; height: 16px; border-radius: 2px; background: var(--a-dark); transition: transform .12s ease-out; }
.vt .switch[aria-checked=true]::after, .vt .switch.is-checked::after { transform: translateX(24px); }
.vt .switch--sm { width: 34px; height: 16px; background: var(--a-swoff); transition: background-color .15s; }
.vt .switch--sm::after { width: 14px; height: 12px; background: var(--a-key); box-shadow: 0 1px 1px rgba(0,0,0,.25); }
.vt .switch--sm[aria-checked=true], .vt .switch--sm.is-checked { background: var(--a-swon); }
.vt .switch--sm[aria-checked=true]::after, .vt .switch--sm.is-checked::after { transform: translateX(16px); }
.vt .nudge { animation: nudge .35s; }
@keyframes nudge { 20% { transform: translateX(-4px); } 40% { transform: translateX(4px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }

/* ---------- counter ---------- */
.vt .counter {
  display: inline-block; min-width: 78px; height: 34px; line-height: 34px; padding: 0 8px; text-align: center;
  background: var(--a-cbg); color: var(--a-ctext); border-radius: 3px; font-family: var(--font-osd); font-size: 15px; letter-spacing: .04em;
  box-shadow: inset 0 6px 6px -4px rgba(0,0,0,.5);
}
.vt .counter.is-rec { color: var(--a-crec); }

/* ---------- sliders and fader ---------- */
.vt .slider { position: relative; height: 30px; flex: 1; min-width: 0; cursor: pointer; touch-action: pan-y; --v: 0; -webkit-tap-highlight-color: transparent; }
.vt .slider::before { content: ''; position: absolute; left: 5px; right: 5px; top: 14px; height: 2px; background: var(--a-track); }
.vt .slider .fill { position: absolute; left: 5px; top: 14px; height: 2px; width: calc((100% - 10px) * var(--v)); background: var(--a-text); }
.vt .slider .thumb { position: absolute; top: 6px; left: calc((100% - 10px) * var(--v)); width: 10px; height: 18px; border-radius: 2px; background: var(--a-dark); }
.vt .fader { position: relative; width: 56px; flex: 1; min-height: 130px; cursor: pointer; touch-action: none; --v: 0; -webkit-tap-highlight-color: transparent; }
.vt .fader .end { position: absolute; left: 0; right: 0; text-align: center; font-size: 0.72rem; color: var(--a-cap); }
.vt .fader .end.t { top: 0; } .vt .fader .end.w { bottom: 0; }
.vt .fader .rail { position: absolute; left: 0; right: 0; top: 25px; bottom: 25px; }
.vt .fader .rail::before { content: ''; position: absolute; left: calc(50% - 1px); top: 0; bottom: 0; width: 2px; background: var(--a-track); }
.vt .fader .tick { position: absolute; height: 1px; background: var(--a-inactive); left: 8%; right: 8%; }
.vt .fader .tick.mid { left: 15%; right: 15%; }
.vt .fader .tick::after { content: ''; position: absolute; left: calc(50% - 3px); width: 6px; height: 3px; top: -1px; background: var(--a-body); }
.vt .fader .cap-knob {
  position: absolute; left: 12%; right: 12%; height: 15px; border-radius: 2px; background: var(--a-dark);
  top: calc(100% * (1 - var(--v))); transform: translateY(-50%); box-shadow: 0 1px 0 var(--a-darklip);
}
.vt .fader .cap-knob::after { content: ''; position: absolute; left: 6px; right: 6px; top: 7px; height: 1px; background: rgba(243,241,236,.8); }

/* ---------- dial ---------- */
.vt .dial { position: relative; width: 170px; height: 104px; flex-shrink: 0; margin: 0 auto; }
.vt .dial .lbl {
  position: absolute; transform: translate(-50%, -50%); appearance: none; border: 0; background: none; font: inherit;
  font-size: 0.68rem; font-weight: 700; letter-spacing: .03em; color: var(--a-cap); padding: 8px 4px; cursor: pointer; min-width: 32px;
}
.vt .dial .lbl[aria-checked=true] { color: var(--a-strong); }
.vt .dial .knob {
  position: absolute; left: 57px; top: 32px; width: 56px; height: 56px; border-radius: 50%; padding: 0; cursor: pointer;
  background: radial-gradient(circle at 37% 30%, #fbfaf7, #dad6cc); border: 1px solid var(--a-keyborder); box-shadow: 0 2px 0 var(--a-keylip);
}
.vt .dial .knob:active { top: 33px; box-shadow: 0 1px 0 var(--a-keylip); }
.vt .dial .ind { position: absolute; inset: 0; transform: rotate(var(--ang, 0deg)); transition: transform .22s cubic-bezier(.3,1.4,.5,1); pointer-events: none; }
.vt .dial .ind::before { content: ''; position: absolute; left: calc(50% - 1.25px); top: 5px; width: 2.5px; height: 15px; border-radius: 2px; background: var(--a-dark); }

/* ---------- tabs ---------- */
.vt .tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; }
.vt .tab { appearance: none; background: none; border: 0; font: inherit; font-size: 0.86rem; font-weight: 600; color: var(--a-cap); padding: 9px 12px 14px; min-height: 40px; position: relative; cursor: pointer; text-transform: lowercase; }
.vt .tab[aria-selected=true], .vt .tab.is-active { color: var(--a-strong); }
.vt .tab[aria-selected=true]::after, .vt .tab.is-active::after { content: ''; position: absolute; left: calc(50% - 2px); bottom: 7px; width: 4px; height: 4px; border-radius: 50%; background: var(--a-accent); }

/* ---------- panels ---------- */
.vt .panel { background: var(--a-panel); border-radius: 8px; padding: 6px 16px 16px; }
.vt .setting { display: flex; align-items: center; gap: 10px; min-height: 36px; }
.vt .setting > label, .vt .setting > .nm { flex: 0 0 112px; font-size: 0.82rem; color: var(--a-text); }
.vt .setting .val { flex: 0 0 34px; text-align: right; font-family: var(--font-osd); font-size: 0.78rem; color: var(--a-cap); }
.vt .setting .switch-wrap { flex: 1; display: flex; align-items: center; min-height: 36px; }
@media (max-width: 420px) { .vt .setting > label, .vt .setting > .nm { flex-basis: 96px; } }

/* ---------- viewfinder ---------- */
.vt .bezel { background: #1a1918; padding: 6px; border-radius: 10px; box-shadow: 0 2px 0 rgba(0,0,0,.25); }
.vt .vf-screen { position: relative; aspect-ratio: 4 / 3; background: #000; border-radius: 5px; overflow: hidden; container-type: inline-size; user-select: none; -webkit-user-select: none; }
.vt .vf-screen.is-wide { aspect-ratio: 16 / 9; }
.vt .vf-screen[role=button] { cursor: pointer; }
.vt .vf-flash { position: absolute; inset: 0; background: #fff; opacity: .5; pointer-events: none; animation: vfflash .22s linear forwards; z-index: 2; }
@keyframes vfflash { to { opacity: 0; } }
.vt .vf-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transform-origin: 50% 50%; }
.vt .vf-screen::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(135deg, rgba(255,255,255,.08), transparent 38%); }
.vt .vf-screen.is-off .vf-canvas, .vt .vf-screen.is-off .osd { opacity: 0; }
.vt .vf-screen.is-powering .vf-canvas { animation: crton .5s ease-out; }
.vt .vf-screen.is-closing .vf-canvas { animation: crtoff .22s ease-in forwards; }
@keyframes crton { 0% { transform: scale(.2, .005); filter: brightness(4); } 35% { transform: scale(1, .012); filter: brightness(3); } 100% { transform: none; filter: none; } }
@keyframes crtoff { 0% { transform: none; filter: none; } 70% { transform: scale(1, .01); filter: brightness(3); } 100% { transform: scale(.05, .005); filter: brightness(4); } }
.vt .osd { --sx: 0; --sy: .8; --mx: 1; --my: .8; --ss: 1; position: absolute; inset: 0; pointer-events: none; font-family: var(--font-osd); font-weight: 700; font-size: 11px; font-size: calc(clamp(9px, 3.4cqw, 17px) * var(--ss)); color: var(--oc, var(--osd)); text-shadow: 1px 1px 0 #000, 0 0 3px rgba(0,0,0,.6); letter-spacing: .04em; transition: opacity .2s; }
.vt .osd > * { position: absolute; white-space: nowrap; }
.vt .osd-tl { left: 5%; top: 6%; }
.vt .osd-bl { left: calc(5% + var(--sx) * 90%); top: calc(7% + var(--sy) * 86%); transform: translate(calc(var(--sx) * -100%), calc(var(--sy) * -100%)); }
.vt .osd-br { left: calc(5% + var(--mx) * 90%); top: calc(7% + var(--my) * 86%); transform: translate(calc(var(--mx) * -100%), calc(var(--my) * -100%)); }
.vt .osd-lens { left: 50%; transform: translateX(-50%); bottom: 14%; font-size: clamp(9px, 3cqw, 15px); color: var(--osd); opacity: 0; transition: opacity .3s; }
.vt .osd-lens.is-show { opacity: 1; }
.vt .osd-tl.is-rec { color: var(--osd-rec); font-size: clamp(9px, 3.4cqw, 17px); }
.vt .osd-tl.is-rec::first-letter { animation: ledpulse 1s steps(1) infinite; }
.vt .osd .is-hidden { visibility: hidden; }
.vt .glass-hint { text-align: center; margin-top: 8px; }

/* ---------- rig ---------- */
.rig { position: relative; background: var(--a-body); border: 1px solid #c9c5bc; border-radius: 22px; padding: 16px; box-shadow: 0 6px 0 #bdb8ae, 0 28px 44px -22px rgba(0,0,0,.55); max-width: 520px; margin: 0 auto; width: 100%; }
.rig-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 4px 12px; }
.rig-brand { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; letter-spacing: .08em; text-transform: uppercase; color: var(--a-strong); }
.rig-power { display: flex; align-items: center; gap: 10px; }
.rig-power .cap { text-align: right; }
.rig-screen-row { display: flex; gap: 10px; align-items: stretch; }
.rig-screen-row .bezel { flex: 1; min-width: 0; align-self: flex-start; }
.fader-col { width: 56px; display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.fader-col .zv { font-family: var(--font-osd); font-size: 0.8rem; color: var(--a-strong); margin-bottom: 4px; min-height: 1.1em; }
.rig-controls { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-around; gap: 14px 12px; margin-top: 18px; padding: 14px 8px 4px; border-top: 1px solid var(--a-keyborder); }
.rig-controls .ctl { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.rig-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-top: 14px; padding: 12px 4px 0; border-top: 1px solid var(--a-keyborder); }
.rig-foot .note { flex: 1 1 200px; }
@media (max-width: 420px) { .rig { padding: 12px; border-radius: 18px; } .fader-col { width: 46px; } .rig-controls { gap: 14px 8px; } }

.hero-deco { position: absolute; right: -8%; top: 4%; width: 620px; max-width: 80vw; opacity: .09; pointer-events: none; z-index: 0; color: var(--text); }
.hero-deco svg { width: 100%; height: auto; display: block; overflow: visible; }
.hero-grid { position: relative; z-index: 1; }
.try-hint { margin-top: 22px; font-size: 0.8rem; color: var(--amber); }

/* ---------- Tape Lab ---------- */
.lab { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: start; background: var(--a-body); border: 1px solid #c9c5bc; border-radius: 22px; padding: 22px; box-shadow: 0 6px 0 #bdb8ae, 0 28px 44px -22px rgba(0,0,0,.45); }
@media (max-width: 900px) { .lab { grid-template-columns: minmax(0, 1fr); padding: 14px; gap: 18px; border-radius: 18px; } }
.lab-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.lab-actions .note { flex: 1 1 160px; }
.lab .tabpanel { min-height: 330px; padding-top: 4px; }
@media (max-width: 900px) { .lab .tabpanel { min-height: 0; } }
.lab-presets { margin-top: 14px; display: grid; gap: 12px; }
.lab-presets .grp-title { font-size: 0.72rem; color: var(--a-cap); margin-bottom: 6px; letter-spacing: .02em; }
.keyrow { display: flex; flex-wrap: wrap; gap: 8px; }
.keyrow .key { padding: 0 12px; }
.lab-msg { min-height: 1.3em; font-family: var(--font-osd); font-size: 0.78rem; color: var(--a-reclip); }

/* ---------- Title demo ---------- */
.title-demo { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: center; background: var(--a-body); border: 1px solid #c9c5bc; border-radius: 22px; padding: 22px; box-shadow: 0 6px 0 #bdb8ae, 0 28px 44px -22px rgba(0,0,0,.45); }
@media (max-width: 900px) { .title-demo { grid-template-columns: minmax(0, 1fr); padding: 14px; gap: 18px; border-radius: 18px; } }
.title-controls { display: grid; gap: 14px; }
.title-controls .grp-title { font-size: 0.72rem; color: var(--a-cap); margin-bottom: 6px; }
.vt .textfield { width: 100%; height: 42px; border-radius: 6px; border: 1px solid var(--a-keyborder); background: var(--a-key); color: var(--a-strong); font-family: var(--font-osd); font-size: 1rem; letter-spacing: .05em; padding: 0 12px; text-transform: uppercase; }
.swatch-row { display: flex; gap: 10px; }
.vt .swatch { width: 32px; height: 32px; border-radius: 50%; border: 2px solid transparent; box-shadow: 0 0 0 1px var(--a-keyborder); cursor: pointer; padding: 0; position: relative; }
.vt .swatch::before { content: ''; position: absolute; inset: -6px; }
.vt .swatch[aria-checked=true] { border-color: var(--a-body); box-shadow: 0 0 0 2px var(--a-dark); }
.vt .swatch:focus-visible { outline: 2px solid var(--a-accent); outline-offset: 3px; }
.vt .card-tag { position: absolute; left: 3%; bottom: 5%; font-family: var(--font-osd); font-size: clamp(8px, 2.6cqw, 12px); color: rgba(255,255,255,.6); pointer-events: none; z-index: 1; }

/* ---------- Tour (the app's onboarding, on the page) ---------- */
.tour { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 48px; align-items: start; }
.tour-stage { position: sticky; top: 78px; background: var(--a-body); border: 1px solid #c9c5bc; border-radius: 22px; padding: 18px; box-shadow: 0 6px 0 #bdb8ae, 0 28px 44px -22px rgba(0,0,0,.45); z-index: 2; }
.tour-scenes { position: relative; }
.tour-scene { display: none; }
.tour-scene.is-active { display: block; animation: sceneIn .32s ease-out; }
@keyframes sceneIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.tour-art { width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; background: transparent; display: block; }
.tour-art-row { display: flex; gap: 12px; align-items: stretch; }
.tour-art-row .tour-art { flex: 1; min-width: 0; align-self: flex-start; }
.tour-controls { display: flex; align-items: flex-end; justify-content: center; gap: 22px; min-height: 108px; padding-top: 14px; flex-wrap: wrap; }
.tour-controls .ctl { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.tour-scene .panel { margin-top: 4px; }
.tour-scene .tabs .tab { pointer-events: none; }
.tour-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--a-keyborder); flex-wrap: wrap; }
.tour-dots { display: flex; gap: 2px; }
.tour-dots button { appearance: none; border: 0; background: none; width: 24px; height: 32px; padding: 0; cursor: pointer; position: relative; }
.tour-dots button::after { content: ''; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%; background: var(--a-track); transition: transform .26s, background-color .26s; }
.tour-dots button[aria-current=step]::after { background: var(--a-accent); transform: scale(1.5); }
.tour-dots button:focus-visible { outline: 2px solid var(--a-accent); outline-offset: 1px; }
.tour-keys { display: flex; gap: 8px; align-items: center; }
.tour-steps { list-style: none; margin: 0; padding: 0; counter-reset: tour; }
.tour-step { min-height: 40vh; padding: 28px 0 28px 20px; border-left: 2px solid var(--hairline); opacity: .45; transition: opacity .35s, border-color .35s; cursor: default; }
.tour-step.is-active { opacity: 1; border-color: var(--rec); }
.tour-step .step-no { margin-bottom: 8px; }
.tour-step h3 { font-size: 1.8rem; margin-bottom: 12px; }
.tour-step p { font-size: 1.05rem; max-width: 42ch; }
@media (max-width: 900px) {
  .tour { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .tour-stage { top: 62px; padding: 12px; border-radius: 16px; }
  .tour-controls { min-height: 92px; padding-top: 8px; gap: 14px; }
  .tour-step { min-height: 36vh; }
  .tour-step h3 { font-size: 1.5rem; }
  .tour-nav { margin-top: 8px; padding-top: 6px; }
}
.js-off .tour-step { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .vt .vf-screen.is-powering .vf-canvas, .vt .vf-screen.is-closing .vf-canvas { animation: none !important; }
  .vt .led--rec.is-blink, .vt .osd-tl.is-rec::first-letter, .tour-scene.is-active { animation: none !important; }
  .vt .dial .ind { transition: none; }
}
.hero { position: relative; }

/* sound: the app's dot-grille key (5 x 5 dots), "sound" / "muted" */
.vt .grille { appearance: none; -webkit-appearance: none; border: 0; padding: 0; width: 44px; height: 44px; flex: 0 0 44px; cursor: pointer; position: relative; --c: var(--a-inactive); -webkit-tap-highlight-color: transparent; }
.vt .grille::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at center, var(--c) 2px, transparent 2.6px); background-size: 10px 10px; background-position: -3px -3px; background-repeat: repeat; transition: --c .2s; }
.vt .grille[aria-checked=true] { --c: var(--a-text); }
.vt .grille:focus-visible { outline: 2px solid var(--a-accent); outline-offset: 2px; }
.vt .sound-sw { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.vt .sound-sw .state { font-size: 0.72rem; color: var(--a-cap); min-width: 3.4em; }
.vt .setting--stack { flex-direction: column; align-items: stretch; gap: 4px; padding: 6px 0; }
.vt .setting--stack .nm { flex: none; }
.vt textarea.textfield { height: auto; min-height: 66px; padding: 8px 12px; resize: none; line-height: 1.3; }
.vt .grp-title { font-size: 0.72rem; color: var(--a-cap); margin: 12px 0 6px; display: block; }
.lab-view .dial-wrap { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 14px; }
.vt .lab-view .note { margin-top: 0; }
.rig-brand { display: inline-flex; align-items: center; gap: 8px; }
.rig-brand img { width: 28px; height: 28px; border-radius: 6px; flex: 0 0 28px; }

/* ---------- small screens: tidy key rows, tabs and setting rows ---------- */
.vt .tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.vt .tabs::-webkit-scrollbar { display: none; }
.vt .tab { flex: 0 0 auto; }
@media (min-width: 560px) { .vt .tabs { justify-content: center; } }
.title-controls .keyrow[data-g=style], .title-controls .keyrow[data-g=bg] { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.title-controls .keyrow[data-g=style] .key, .title-controls .keyrow[data-g=bg] .key { padding: 0 4px; min-width: 0; }
.title-controls .keyrow[data-g=card] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.title-controls .keyrow[data-g=card] .key { min-width: 0; }
@media (max-width: 520px) {
  .vt .setting { flex-wrap: wrap; row-gap: 0; }
  .vt .setting > .nm, .vt .setting > label { flex: 1 1 auto; }
  .vt .setting .val { flex: 0 0 auto; order: 2; }
  .vt .setting .slider { flex: 1 0 100%; order: 3; }
  .vt .setting .switch-wrap { flex: 0 0 auto; }
  .vt .setting--stack { flex-wrap: nowrap; }
}
