/* Vocal studio (vocals.js): input strip, timeline of lanes with a sticky name column, transport footer. */
#main:has(.vs-tl) { padding-bottom: 110px; }
.vs-head { margin-bottom: 14px; }
.vs-input { padding: 12px 14px; margin-bottom: 12px; }
.vs-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.vs-row + .vs-row { margin-top: 10px; }
.vs-lab { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.vs-warn { font-size: 12px; color: var(--warn); border: 1px solid rgba(245,183,78,.35); border-radius: 99px; padding: 3px 10px; }
.vs-field { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.vs-field select { background: var(--bg); color: var(--text); border: 1px solid var(--line2); border-radius: 8px; padding: 7px 10px; max-width: 260px; font: inherit; font-size: 13px; }
.vs-field input[type=range] { width: 110px; accent-color: var(--accent); }
.vs-field b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; min-width: 52px; }
.vs-ch button { padding: 5px 10px; font-size: 12px; }
.vs-meter { position: relative; width: 140px; height: 8px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line2); overflow: hidden; }
.vs-meter i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--accent); transition: width .05s linear; }
.vs-meter i.hot { background: var(--warn); }
.vs-meter u { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line2); }
.vs-clip { border: 1px solid var(--line2); background: transparent; color: var(--muted); border-radius: 6px; padding: 2px 7px; font-size: 11px; font-weight: 600; }
.vs-clip.on { background: var(--bad); border-color: var(--bad); color: #0b0d14; }
.vs-lat { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.vs-lat b { color: var(--text); font-variant-numeric: tabular-nums; min-width: 58px; text-align: center; }
.vs-lat .xbtn { width: 26px; height: 26px; }

/* timeline */
.vs-tl { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.vs-scroll { overflow-x: auto; overflow-y: hidden; }
.vs-inner { position: relative; --vs-head: 188px; min-width: 100%; }
.vs-lane { display: flex; height: 56px; border-bottom: 1px solid var(--line); }
.vs-lane:last-of-type { border-bottom: 0; }
.vs-h { position: sticky; left: 0; z-index: 3; flex: 0 0 var(--vs-head); width: var(--vs-head); background: var(--panel); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 6px 10px; min-width: 0; }
.vs-c { display: block; height: 100%; cursor: text; touch-action: pan-y; }
.vs-ruler { height: 34px; background: #13161d; }
.vs-ruler .vs-h { background: #13161d; flex-direction: row; align-items: center; }
.vs-ruler .vs-c { cursor: col-resize; }
.vs-zoom { display: flex; gap: 4px; }
.vs-zoom .xbtn { width: 26px; height: 24px; font-size: 13px; line-height: 1; }
.vs-backing { height: 56px; }
.vs-track { height: 64px; background: #181b23; }
.vs-track .vs-h { background: #181b23; }
.vs-take { height: 44px; }
.vs-take .vs-h { flex-direction: row; align-items: center; padding-left: 26px; }
.vs-add { height: auto; }
.vs-lane.vs-add { height: 48px; }
.vs-add .vs-h, .vs-lane.vs-add .vs-h { flex-direction: row; align-items: center; border-right: 0; flex-basis: auto; width: auto; }
.vs-add { display: flex; gap: 6px; flex-wrap: nowrap; }
.vs-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.vs-name.sm { font-weight: 500; color: var(--muted); flex: 1; }
.vs-vol { width: 100%; max-width: 150px; accent-color: var(--accent); height: 14px; margin: 0; }
.vs-guide.seg button, .vs-h .seg button { padding: 3px 9px; font-size: 12px; }
.vs-trow1, .vs-trow2 { display: flex; align-items: center; gap: 6px; min-width: 0; }
.vs-trow2 .vs-vol { flex: 1; min-width: 40px; }
.vs-arm { flex: 0 0 auto; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--muted); background: transparent; padding: 0; }
.vs-arm.on { border-color: var(--bad); background: var(--bad); }
.vs-ms { width: 22px; height: 20px; border-radius: 5px; border: 1px solid var(--line2); background: transparent; color: var(--muted); font-size: 11px; font-weight: 700; padding: 0; }
.vs-ms.on { background: var(--accent); border-color: var(--accent); color: #0b0d14; }
.vs-tk { margin-left: auto; border: 0; background: transparent; color: var(--muted); font-size: 11px; padding: 2px 4px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.vs-tk .chev { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); display: inline-block; }
.vs-tk.open .chev { transform: rotate(-135deg) translateY(-1px); }
.vs-mini { border: 1px solid var(--line2); background: transparent; color: var(--muted); border-radius: 6px; padding: 1px 6px; font-size: 11px; white-space: nowrap; }
.vs-mini:hover { color: var(--text); }
.vs-mini.x { width: 20px; height: 20px; padding: 0; display: grid; place-items: center; flex: 0 0 auto; }
.vs-use { flex: 0 0 auto; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--muted); background: transparent; padding: 0; }
.vs-use.on { border-color: var(--accent); background: radial-gradient(var(--accent) 45%, transparent 50%); }
.vs-sel { position: absolute; top: 0; bottom: 0; z-index: 2; background: rgba(0, 220, 196,.13); border-left: 1px solid rgba(0, 220, 196,.7); border-right: 1px solid rgba(0, 220, 196,.7); pointer-events: none; }
.vs-ph { position: absolute; top: 0; bottom: 0; left: 0; width: 1px; background: var(--text); z-index: 2; pointer-events: none; will-change: transform; }

/* footer transport */
.vs-foot { position: fixed; left: 232px; right: 0; bottom: 0; z-index: 25; background: #0c0e13; border-top: 1px solid var(--line2);
  display: flex; align-items: center; gap: 12px; padding: 10px 24px; }
.vs-foot.loading .play { opacity: .4; pointer-events: none; }
.vs-foot .play { flex: 0 0 auto; width: 44px; height: 44px; color: #0b0d14; }
.vs-rec, .vs-stop { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line2); background: var(--panel2); display: grid; place-items: center; padding: 0; }
.vs-rec i { width: 14px; height: 14px; border-radius: 50%; background: var(--bad); }
.vs-rec.on { background: var(--bad); border-color: var(--bad); animation: vsPulse 1.2s ease-in-out infinite; }
.vs-rec.on i { background: #0b0d14; border-radius: 3px; }
.vs-rec:disabled { opacity: .4; }
.vs-stop i { width: 12px; height: 12px; border-radius: 2px; background: var(--text); }
@keyframes vsPulse { 50% { box-shadow: 0 0 0 6px rgba(240,113,120,.18); } }
.vs-time { display: flex; flex-direction: column; min-width: 82px; font-variant-numeric: tabular-nums; }
.vs-time b { font-size: 18px; font-weight: 600; }
.vs-time b.count { color: var(--bad); }
.vs-time span { font-size: 11px; color: var(--muted); }
.vs-opts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.vs-count button { padding: 5px 10px; font-size: 12px; }
.vs-range { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text); font-variant-numeric: tabular-nums; }
.vs-bounce { margin-left: auto; display: flex; align-items: center; gap: 12px; }

@media (max-width: 900px) { .vs-foot { left: 0; } }
@media (max-width: 700px) {
  .vs-foot { flex-wrap: wrap; padding: 8px 12px; gap: 8px 10px; }
  .vs-opts { order: 5; width: 100%; }
  .vs-bounce { margin-left: auto; }
  .vs-bounce .vs-lab { display: none; }
  .vs-time { min-width: 64px; }
  .vs-time b { font-size: 15px; }
  #main:has(.vs-tl) { padding-bottom: 170px; }
  .vs-meter { width: 90px; }
  .vs-field select { max-width: 170px; }
  .vs-vol { max-width: 90px; }
  .vs-ms { width: 20px; }
  .vs-trow2 .vs-mini:not(.x) { display: none; }
}

/* track header: one Vocal tools button opens the drawer for that track */
.vs-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; }
.vs-ntk { font-size: 11px; color: var(--muted); white-space: nowrap; }
.vs-tools { margin-left: auto; flex: 0 0 auto; width: 28px; height: 24px; border-radius: 7px; border: 1px solid var(--line2); background: transparent; color: var(--muted); display: grid; place-items: center; padding: 0; }
.vs-tools svg { width: 15px; height: 15px; }
.vs-tools:hover { color: var(--text); }
.vs-tools.on { color: var(--text); border-color: var(--accent); background: rgba(0, 220, 196,.14); }
@media (min-width: 641px) { body.vs-toolsopen #main { padding-right: 416px; } }

/* the drawer (cx-sheet + the Fine-tune drawer's mx-ft / ft-* classes) */
.vs-tools-sheet header h2 { gap: 10px; }
.vs-tools-sheet header h2 svg { width: 17px; height: 17px; color: var(--accent); }
.vs-tools-sheet .ft-row { grid-template-columns: 86px minmax(0, 1fr) 66px 0; }
.vs-in { background: var(--bg); color: var(--text); border: 1px solid var(--line2); border-radius: 8px; padding: 6px 9px; font: inherit; font-size: 13px; min-width: 0; grid-column: 2 / 4; }
.vs-sw { display: flex; gap: 8px; grid-column: 2 / 4; }
.vs-sw button { width: 18px; height: 18px; border-radius: 50%; border: 0; background: var(--c); padding: 0; }
.vs-sw button[aria-checked=true] { outline: 2px solid var(--text); outline-offset: 2px; }
.vs-takes { list-style: none; margin: 0 0 8px; padding: 0; }
.vs-takes li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto auto 22px; align-items: center; gap: 8px; padding: 6px 6px; border-radius: 8px; }
.vs-takes li.sel { background: var(--panel2); }
.vs-tkname { border: 0; background: none; padding: 0; text-align: left; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vs-tkm { font-size: 11.5px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.vs-tkm.on { color: var(--text); }
.vs-next .ft-ghead { align-items: center; }
.vs-next .mx-pv { margin-left: 0; }
.vs-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.vs-chips button { border: 1px solid var(--line); background: transparent; color: #5d6475; border-radius: 99px; padding: 4px 11px; font-size: 12px; cursor: not-allowed; }
@media (max-width: 640px) { .vs-tools-sheet { max-height: 62vh; } .vs-takes li { grid-template-columns: 18px minmax(0, 1fr) auto 22px; } .vs-takes li .vs-tkm:nth-of-type(1) { display: none; } }

/* in the song */
.vs-in-song { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text); white-space: nowrap; }
.vs-in-song i { width: 7px; height: 7px; border-radius: 50%; background: var(--good); }
.vs-link { font-size: 12px; color: var(--accent); white-space: nowrap; }
.vs-link:hover { text-decoration: underline; }
@media (max-width: 700px) { .vs-bounce .vs-in-song { display: inline-flex; } .vs-bounce .vs-link { display: none; } }

/* lane switches: on = in the song (dimmed lane when off); M / S = listening only */
.toggle.vs-onoff { flex: 0 0 auto; width: 28px; height: 16px; padding: 0; }
.toggle.vs-onoff::after { top: 2px; left: 2px; width: 12px; height: 12px; }
.toggle.vs-onoff.on::after { left: 14px; }
.vs-lane.off .vs-c { opacity: .35; }
.vs-lane.off .vs-name { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(138,146,166,.5); }
.vs-orig { height: 52px; background: #181b23; }
.vs-orig .vs-h { background: #181b23; }
@media (max-width: 700px) {
  .vs-h { padding: 6px 8px; }
  .vs-name { font-size: 12px; }
  .vs-dot, .vs-ntk { display: none; }
  .vs-trow1, .vs-trow2 { gap: 5px; }
}

/* ---- phase 2: back link, grouped lanes, lane tags, Tools / more buttons, menus, notes view, Tuning + Effects drawer */
.vs-back { margin: -6px 0 6px -4px; }
.vs-group { height: 30px; background: #12151c; }
.vs-group .vs-h { background: #12151c; flex-direction: row; align-items: center; gap: 8px; border-right: 0; flex-basis: auto; width: auto; min-width: var(--vs-head); z-index: 4; padding-right: 12px; }
.vs-gname { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #aab1c2; white-space: nowrap; }
.vs-gsub { font-size: 11px; color: var(--muted); border: 1px solid var(--line2); border-radius: 99px; padding: 0 7px; line-height: 16px; }
.vs-addbtn { padding: 3px 10px; font-size: 12px; margin-left: 6px; white-space: nowrap; }
.vs-gline { height: 100%; }
.vs-lane.vs-group + .vs-lane { border-top: 0; }
.vs-tags { display: inline-flex; gap: 3px; min-width: 0; overflow: hidden; }
.vs-tools-sheet #vtReset { justify-self: start; grid-column: 2 / 4; }
.vs-tag { font-style: normal; font-size: 9.5px; font-weight: 700; letter-spacing: .03em; color: #b5f5ec; background: rgba(0, 220, 196,.18); border: 1px solid rgba(0, 220, 196,.45); border-radius: 99px; padding: 0 5px; line-height: 14px; flex: 0 0 auto; }
.vs-tools { width: auto; padding: 0 8px 0 6px; gap: 5px; display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 600; color: var(--text); border-color: rgba(0, 220, 196,.45); }
.vs-tools span { line-height: 1; white-space: nowrap; }
.vs-tools .ws { display: none; }
.vs-tools.act { background: rgba(0, 220, 196,.2); border-color: var(--accent); color: #d4fbf5; }
.vs-more { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 7px; border: 1px solid var(--line2); background: transparent; color: var(--muted); display: grid; place-items: center; padding: 0; }
.vs-more svg { width: 15px; height: 15px; fill: currentColor; }
.vs-more:hover, .vs-more[aria-expanded=true] { color: var(--text); border-color: var(--accent); }
.vs-grab { cursor: grab; touch-action: none; }
.vs-lane.dragging { opacity: .55; }
.vs-drop { position: absolute; left: 0; right: 0; height: 2px; background: var(--accent); z-index: 5; pointer-events: none; }
@keyframes vsFlash { 0%, 35% { box-shadow: inset 3px 0 0 var(--accent); background-color: rgba(0, 220, 196,.22); } 100% { box-shadow: inset 3px 0 0 transparent; } }
.vs-lane.vs-flash, .vs-lane.vs-flash .vs-h { animation: vsFlash 1.8s ease-out; }
.vs-menu { width: auto; min-width: 210px; max-width: 280px; gap: 2px; }
.vs-mlab { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 8px 10px 2px; }
.vs-mgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.vs-mgrid.two { grid-template-columns: 1fr 1fr; }
.vs-mgrid button { padding: 7px 8px; }

/* notes view: piano-roll strip under its lane (same time axis as the lanes) */
.vs-notes { height: 260px; background: #12151c; }
.vs-notes .vs-h { background: #12151c; flex-direction: row; align-items: stretch; padding: 0 0 0 10px; gap: 6px; }
.vs-nh { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 8px 0; }
.vs-nh-top { display: flex; align-items: center; gap: 6px; }
.vs-nh-top b { font-size: 13px; }
.vs-nh-top .vs-mini.x { margin-left: auto; }
.vs-nh-acts { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px; }
.vs-nh-acts .vs-mini { padding: 2px 8px; }
/* a selected note: small buttons (split / join, time, level, formant) */
.vs-nh-sel { display: flex; flex-direction: column; gap: 4px; }
.vs-nh-sel.is-hidden { display: none; }
.vs-nh-pair { display: flex; gap: 4px; }
.vs-nh-pair .vs-mini { padding: 2px 8px; }
.vs-nh-row { display: grid; grid-template-columns: 52px 26px 26px; align-items: center; gap: 4px; }
.vs-nh-row .vs-mini { padding: 1px 0; text-align: center; }
.vs-nh-hint { margin-top: auto; }
.vs-kb { flex: 0 0 30px; width: 30px; height: 100%; display: block; }
.vs-nc { cursor: default; touch-action: none; }

/* drawer: Tuning + Effects */
.vt-sec.is-off .ft-row, .vt-sec.is-off .ft-disc { opacity: .55; }
.vt-sec .ft-ghead { align-items: center; }
.vt-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 8px; }
.vt-chips .mx-tg { padding: 4px 11px; }
.vt-key { display: flex; gap: 6px; grid-column: 2 / 4; }
.vt-key select { background: var(--bg); color: var(--text); border: 1px solid var(--line2); border-radius: 8px; padding: 5px 8px; font: inherit; font-size: 12.5px; }
.vt-key select:first-child { width: 64px; }
.vt-key select:last-child { flex: 1; min-width: 0; }
.vt-inline { display: flex; align-items: center; gap: 8px; grid-column: 2 / 4; }
.vt-sub { min-height: 28px; margin-top: -4px; }
.vt-sub .ft-seg { grid-column: 2 / 4; justify-self: start; }
.vt-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.vt-acts .vs-lab { margin-left: 6px; }
.vt-acts .mx-tg { padding: 4px 10px; }
.vt-acts .mx-tg:disabled { opacity: .4; }
.vt-del { color: var(--bad); border-color: rgba(240,113,120,.35); grid-column: 2 / 4; justify-self: start; }
.vs-tools-sheet .ft-foot { align-items: center; }
.vs-tools-sheet .ft-foot .btn.ghost { flex: 0 0 auto; }
.vt-status { flex: 1; min-width: 0; font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vt-status .vs-warn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 700px) {
  .vs-tools:not(.act) span, .vs-tools.act .w { display: none; }
  .vs-tools.act .ws { display: inline; }
  .vs-tools:not(.act) { padding: 0; width: 26px; justify-content: center; }
  .vs-tools.act svg { display: none; }
  .vs-tools.act { padding: 0 6px; font-size: 10.5px; }
  .vs-tag { font-size: 8.5px; padding: 0 4px; }
  .vs-group .vs-h { min-width: 0; padding-left: 8px; }
  .vs-notes { height: 210px; }
  .vs-nh-hint { display: none; }
  .vs-nh { gap: 5px; padding: 6px 0; }
  .vs-nh-row { grid-template-columns: 46px 24px 24px; }
  .vs-back { margin-bottom: 2px; }
}
/* 2 Dec: roomier studio (it felt cramped): taller lanes, wider names column, more space between controls */
.vs-inner { --vs-head: 228px; }
.vs-lane { height: 68px; }
.vs-backing, .vs-orig { height: 72px; }
.vs-track { height: 82px; }
.vs-take { height: 52px; }
.vs-lane.vs-add { height: 56px; }
.vs-h { gap: 8px; padding: 8px 14px; }
.vs-ms { width: 26px; height: 24px; }
.vs-group { margin-top: 6px; }
.vs-group .vs-h { padding-top: 10px; padding-bottom: 10px; }
.vs-ruler { height: 38px; }
.vs-back { margin-bottom: 4px; }
.vs-head h1 { margin-top: 2px; }
@media (max-width: 700px) { .vs-inner { --vs-head: 150px; } .vs-h { padding: 8px 10px; } }
.vs-lane.vs-group { height: 46px; margin-top: 0; }
.vs-lane.vs-group .vs-h { padding-top: 0; padding-bottom: 0; }
/* "+ Add vocal track" on its own row at the end of Your vocals, not squeezed into the heading */
.vs-lane.vs-addrow { height: 52px; }
.vs-lane.vs-addrow .vs-h { flex-direction: row; align-items: center; border-right: 0; }
.vs-addrow .vs-addbtn { border-style: dashed; width: 100%; justify-content: center; }
/* one-click Auto-fix at the top of the vocal tools */
.vt-auto { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 18px 12px; border-bottom: 1px solid var(--line); }
.vt-auto small { color: var(--muted); font-size: 12px; }
/* the notes view keeps its own height (the 68 px lane rule above was squeezing it) */
.vs-lane.vs-notes { height: 290px; }
.vs-lane.vs-notes .vs-h { padding: 0 0 0 12px; }
@media (max-width: 700px) { .vs-lane.vs-notes { height: 250px; } .vs-lane.vs-notes .vs-h { padding-left: 8px; } }

/* ---------------- Vocal preset (the big picker at the top + chip next to Record): vocals.js "vocal presets" */
.vp { padding: 16px 18px; margin-bottom: 12px; border-color: rgba(0, 220, 196,.45); background: linear-gradient(180deg, rgba(0, 220, 196,.10), rgba(0, 220, 196,.02) 70%), var(--panel); }
.vp-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.vp-lab { display: flex; flex-direction: column; gap: 2px; min-width: 120px; }
.vp-lab > b { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.vp-lab > span { font-size: 12px; color: var(--muted); }
.vp-lab > span b { color: var(--text); font-weight: 600; }
.vp-lab .vs-mini { align-self: flex-start; margin-top: 4px; }
.vp-pick { flex: 1 1 320px; max-width: 520px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center; column-gap: 12px; text-align: left;
  padding: 12px 16px; border-radius: 12px; border: 2px solid var(--accent); background: var(--bg); color: var(--text); cursor: pointer; }
.vp-pick:hover { background: #12151c; }
.vp-pick:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.vp-name { font-size: 22px; font-weight: 700; line-height: 1.15; }
.vp-sub { grid-column: 1; font-size: 13px; color: var(--muted); }
.vp-car { grid-row: 1 / span 2; grid-column: 2; width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.vp.is-dry .vp-pick { border-style: dashed; }
.vp.is-dry .vp-name { color: var(--muted); }
.vp-adj { display: none; padding: 4px 10px; font-size: 12px; }
.vp-live { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.vp-mon { display: inline-flex; align-items: center; gap: 6px; }
.vp-mon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.vp-sl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 22px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.vp-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) 64px; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); min-width: 0; }
.vp-row input[type=range] { width: 100%; accent-color: var(--accent); margin: 0; }
.vp-row b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.vp-row.moved > span { color: var(--text); }
.vp-key { grid-template-columns: 112px auto auto; justify-content: start; }
.vp-key > div { display: inline-flex; gap: 6px; }
.vp-key select { background: var(--bg); color: var(--text); border: 1px solid var(--line2); border-radius: 8px; padding: 5px 8px; font: inherit; font-size: 13px; }
.vp-takes { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.vp-trow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vp-takes[hidden] { display: none; }
.vp-tlab { font-size: 12px; color: var(--muted); margin-right: 2px; }
.vp-tk { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 10px; border-radius: 99px; border: 1px solid var(--line2); background: var(--bg); }
.vp-tk.on { border-color: var(--accent); }
.vp-tk i { font-style: normal; font-size: 12px; color: var(--muted); }
.vp-chip, .vp-mini { display: inline-flex; align-items: center; gap: 5px; border: 1px solid rgba(0, 220, 196,.5); background: rgba(0, 220, 196,.12); color: var(--text);
  border-radius: 99px; padding: 3px 10px; font-size: 12px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.vp-mini { padding: 1px 7px; font-size: 11px; max-width: 96px; overflow: hidden; text-overflow: ellipsis; }
.vp-chip:hover, .vp-mini:hover { background: rgba(0, 220, 196,.22); }
.vp-chip.own, .vp-mini.own { border-color: var(--accent); }
.vp-chip.err, .vp-mini.err { border-color: var(--warn); color: var(--warn); }
.vp-chip .spin, .vp-mini .spin { width: 10px; height: 10px; }
.vs-menu.vp-menu { width: min(1120px, calc(100vw - 16px)); max-width: none; min-width: 0; max-height: calc(100vh - 16px); overflow-y: auto; overscroll-behavior: contain; }
.vp-mcats { columns: 4 220px; column-gap: 14px; }
.vp-mcat { break-inside: avoid; display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.vp-mcl { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); padding: 4px 10px 2px; }

.vp-mcat button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; padding: 7px 10px; border-radius: 8px; width: 100%; }
.vp-mcat button b { font-size: 14px; font-weight: 650; color: var(--text); }
.vp-mcat button small { font-size: 11px; color: var(--muted); line-height: 1.3; }
.vp-mcat button.on { background: rgba(0, 220, 196,.18); box-shadow: inset 0 0 0 1px var(--accent); }
.vp-foot { flex: 0 1 auto; min-width: 0; display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; height: 40px; padding: 0 12px;
  border-radius: 10px; border: 1px solid var(--accent); background: rgba(0, 220, 196,.12); color: var(--text); cursor: pointer; text-align: left; }
.vp-foot span { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); line-height: 1.1; }
.vp-foot b { font-size: 13px; font-weight: 650; line-height: 1.2; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vp-foot:not(.on) { border-style: dashed; }
.vp-foot:disabled { opacity: .5; }
.vs-take .vs-h { gap: 6px; }
@media (max-width: 1100px) { .vp-sl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .vp { padding: 12px; }
  .vp-top { gap: 10px; }
  .vp-pick { flex: 1 1 100%; max-width: none; padding: 10px 12px; }
  .vp-name { font-size: 20px; }
  .vp-sl { grid-template-columns: 1fr; gap: 8px; }
  .vp-row { grid-template-columns: 104px minmax(0, 1fr) 58px; }
  .vp-key { grid-template-columns: 104px minmax(0, 1fr) auto; }
  .vp-key > div { min-width: 0; }
  .vp-key select { min-width: 0; flex: 1 1 auto; }
  .vp-sl:not(.open) { display: none; }
  .vp-adj { display: inline-flex; }
  .vp-mcats { columns: auto; }
  .vs-menu.vp-menu { max-height: 72vh; }
  .vp-foot { padding: 0 8px; }
  .vp-foot b { max-width: 84px; font-size: 12px; }
}

/* Clean up vocal artefacts (original lanes) */
.vs-clean { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; font-size: 12px; color: #c3c8d6; white-space: nowrap; }
.vs-clean label { cursor: pointer; }
.vs-clean .spin { width: 12px; height: 12px; }

/* vocal preset, quiet (owner 3 Dec: the block was too big, the dashed lines made no sense) */
.vp { padding: 10px 0 12px !important; border: 0 !important; background: none !important; box-shadow: none !important; }
.vp-top { gap: 10px 14px; }
.vp-lab { min-width: 0; }
.vp-lab > b { font-size: 12px; letter-spacing: .02em; text-transform: none; color: var(--muted); }
.vp-pick { flex: 0 1 360px; padding: 7px 12px; border: 1px solid var(--line2); border-radius: 10px; background: var(--panel); }
.vp.is-dry .vp-pick { border-style: solid; }
.vp-name { font-size: 15px; }
.vp-sub { font-size: 12px; }
.vp-car { width: 18px; height: 18px; stroke: var(--muted); }
.vp-foot { border-style: solid !important; }

/* 3 Dec 2026 (owner): group headings on the left; a preset button on each line; thin dark scrollbar when zoomed in */
.vs-group .vs-h { justify-content: flex-start; }
.vs-lpre { margin-left: auto; flex: none; }
.vs-scroll { scrollbar-width: thin; scrollbar-color: #2b3142 transparent; }
.vs-scroll::-webkit-scrollbar { height: 6px; }
.vs-scroll::-webkit-scrollbar-thumb { background: #2b3142; border-radius: 3px; }
.vs-scroll::-webkit-scrollbar-track { background: transparent; }
@media (max-width: 700px) { .vs-lpre { display: none; } }   /* phones: the 150 px name column has no room; the preset picker above does it */
