.vr-lab { scroll-margin-top:115px; }
.vr-lab :is(input, select) { max-width:100%; min-width:0; min-height:44px; font-size:1rem; }
.vr-lab button[aria-pressed=true] { background:#1e4b44; color:#fff; border-color:#1e4b44; }
.vr-lab button:disabled { opacity:.55; cursor:default; }
.vr-step { display:flex; align-items:end; flex-wrap:wrap; gap:8px 12px; margin:14px 0; }
.vr-step > label { flex:1 1 180px; display:grid; gap:4px; font-size:.88rem; }
.vr-step input { width:100%; padding:5px 8px; border:1px solid #829d92; background:#fff; color:inherit; }
.vr-step button { min-height:44px; border:1px solid #829d92; padding:4px 10px; background:#fafcf9; color:#24443f; }
.vr-clock { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1px; overflow:hidden; border-radius:8px; background:#506966; }
.vr-clock > div { min-width:0; display:grid; align-content:start; gap:6px; background:#1b3737; color:#edfbf3; padding:12px; }
.vr-clock span { font-size:.79rem; }
.vr-clock output { min-width:0; font:600 clamp(.85rem,2.4vw,1.25rem) var(--mono,monospace); }
.vr-feedback { margin:12px 0; font-size:.91rem; }
.vr-table { width:100%; table-layout:fixed; border-collapse:collapse; text-align:left; line-height:1.5; font-size:.87rem; }
.vr-table caption { text-align:left; font-weight:700; margin-bottom:5px; }
.vr-table :is(td,th) { padding:7px 8px; border-bottom:1px solid #b9cac2; overflow-wrap:anywhere; }
.vr-table thead th { background:#d3e3da; color:#224739; }
.vr-table [data-state=current] { background:#203e3a; color:#fff; }
.vr-table [aria-current=true] td { font-weight:700; }
[data-vr-lab=timecode] .vr-table td { font-family:var(--mono,monospace); }
.vr-scenario { display:grid; gap:6px; max-width:380px; }
.vr-scenario select { width:100%; padding:5px 7px; border:1px solid #829d92; }
.vr-input { margin:14px 0; padding:10px 12px; background:#1b3737; color:#edfbf3; border-radius:7px; }
.vr-input p { margin:0; font-size:.88rem; overflow-wrap:anywhere; }
.vr-config { margin-top:12px; }
.vr-file { margin-top:18px; }
.vr-file h3 { margin-bottom:9px; }
.vr-file #vr-rec-result { margin:12px 0 0; font-weight:600; }
.vr-file [data-state=pass] { color:#194b37; }
.vr-file [data-state=fail] { color:#6f3320; }
.vr-file tr[data-state=fail] td:last-child { background:#f4e2d7; }
.vr-file tr[data-state=pass] td:last-child { background:#dcecdf; }
@media(max-width:550px) {
  .vr-step > label { order:-1; flex-basis:100%; }
  .vr-clock { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .vr-clock > div:last-child { grid-column:1 / -1; }
  .vr-clock > div { padding:9px; }
  .vr-file .vr-table :is(td,th) { padding:6px 4px; font-size:.81rem; }
}

.vr-source-ranges { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:16px 0; }
.vr-source-ranges > div { min-width:0; padding:9px 12px; background:#1b3737; color:#effcf7; border-radius:6px; }
.vr-source-ranges dt { font-size:.86rem; font-weight:700; }
.vr-source-ranges dd { margin:0; font:.82rem/1.6 var(--mono,monospace); overflow-wrap:anywhere; }
.vr-repair :is(.vr-observe,.vr-patch,.vr-handoff) { margin-top:20px; padding-top:15px; border-top:1px solid #b8cbc3; }
.vr-repair h3 { margin-bottom:8px; }
.vr-timeline { margin:12px 0 6px; }
.vr-timeline > div { display:grid; grid-template-columns:3.3rem repeat(16,minmax(0,1fr)); gap:2px; align-items:center; margin-bottom:3px; }
.vr-timeline b { font-size:.8rem; color:#294941; }
.vr-timeline i { display:block; min-height:18px; background:var(--frame-color,#566f65); border-radius:2px; }
.vr-timeline i[data-frame=missing] { background:repeating-linear-gradient(135deg,#a85134 0 3px,#cf947e 3px 6px); }
.vr-timeline i[data-current=true] { outline:2px solid #203b32; outline-offset:1px; }
.vr-timeline .vr-ticks { display:flex; justify-content:space-between; padding-left:3.3rem; gap:4px; font:.68rem/1.6 var(--mono,monospace); }
.vr-repair [data-frame=main] { --frame-color:#327157; }
.vr-repair [data-frame=missing] { --frame-color:#a85134; }
.vr-repair [data-frame=backup] { --frame-color:#316b8d; }
.vr-legend { display:flex; flex-wrap:wrap; gap:4px 12px; font-size:.8rem; }
.vr-legend span::before { content:""; display:inline-block; width:.7em; height:.7em; margin-right:.35em; background:var(--frame-color); }
.vr-frame-nav { display:flex; align-items:center; flex-wrap:wrap; gap:5px 12px; }
.vr-frame-nav > label { flex:1 1 250px; min-width:0; display:grid; grid-template-columns:1fr auto; align-items:center; font-size:.88rem; }
.vr-frame-nav output { font-family:var(--mono,monospace); }
.vr-frame-nav input { grid-column:1 / -1; }
.vr-frame-nav .vf-actions { margin:0; }
.vr-frame-table td[data-frame=missing], .vr-handoff tr[data-state=fail] { background:#f3dfd4; color:#69301d; }
.vr-frame-table td[data-frame=backup] { background:#daeaf0; }
.vr-handoff [data-state=pass] { color:#194b37; }
.vr-handoff [data-state=fail] { color:#6f3320; }
#vr-verdict { font-weight:650; }
#vr-note-label { margin:12px 0 3px; }
#vr-patch-log { margin:0 0 14px; padding-left:1.35rem; font-size:.9rem; overflow-wrap:anywhere; }
@media(max-width:460px) {
  .vr-source-ranges { grid-template-columns:1fr; }
  .vr-timeline > div { grid-template-columns:2.6rem repeat(16,minmax(0,1fr)); }
  .vr-timeline .vr-ticks { padding-left:2.6rem; font-size:.59rem; }
  .vr-frame-table :is(td,th) { padding:6px 3px; font-size:.76rem; }
}
.vr-repair [data-frame=misaligned] { --frame-color:#794a82; }
.vr-timeline i[data-frame=misaligned] { background:repeating-linear-gradient(45deg,#794a82 0 3px,#d3a5d9 3px 6px); }
.vr-frame-table td[data-frame=misaligned] { background:#ebd9ef; color:#572f60; }
.vr-track-title { margin-top:18px; }
.vr-sync { margin:15px 0; padding:14px 0; border-block:1px solid #b8cbc3; }
.vr-offset { margin:10px 0; }
.vr-offset label { display:flex; align-items:center; flex-wrap:wrap; gap:6px 12px; font-weight:700; }
.vr-offset select { padding:5px 8px; background:#f9fcfa; color:#253e38; }
.vr-offset p { margin:5px 0; }
.vr-monitors { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:10px 0; }
.vr-monitor { min-width:0; margin:0; overflow:hidden; background:#14282f; color:#e8f8f5; border:1px solid #365155; border-radius:7px; }
.vr-monitor figcaption { display:grid; gap:2px; padding:6px 8px; }
.vr-monitor figcaption span { font:600 .79rem/1.35 var(--mono,monospace); }
.vr-monitor canvas { display:block; width:100%; height:auto; }
.vr-monitor .vr-monitor-cue { padding:5px 8px; margin:0; font-size:.78rem; line-height:1.5; }
.vr-marks { margin:9px 0; padding-left:20px; font-size:.87rem; }
.vr-segment { margin:12px 0; padding:12px; border:1px solid #a1bab0; border-radius:7px; background:#eff5eb; }
.vr-segment h4 { margin:0 0 5px; }
.vr-segment > p { margin:0 0 10px; }
.vr-segment label, .vr-seams label { display:grid; gap:3px; font-weight:700; font-size:.9rem; max-width:27rem; }
.vr-segment select, .vr-seams select { width:100%; padding:5px 8px; background:#fcfdfb; color:#253e38; }
.vr-offset-pair { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-top:10px; }
.vr-timeline i[data-split=true] { border-left:3px solid #ffd776; }
.vr-seams { margin-top:20px; padding-top:15px; border-top:1px solid #b8cbc3; }
.vr-seam-pictures { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:8px 0 12px; }
.vr-seam-pictures .vr-monitor figcaption span { overflow-wrap:anywhere; }
#vr-seam-wave { display:block; width:100%; height:auto; margin-top:8px; border-radius:6px; }
@media(max-width:650px) {
  .vr-monitors { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .vr-monitors > .vr-monitor:last-child { grid-column:1 / -1; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:center; }
  .vr-monitors > .vr-monitor:last-child :is(figcaption,.vr-monitor-cue) { grid-column:1 / -1; }
  [data-vr-lab=offset] #vr-review :is(th,td) { padding:6px 4px; font-size:.76rem; }
}
