/* EDIT ROOM AV DIVIDER + EDIT ROOM SLIP PREVIEW (Simon, 15 Nov 2026 09:49 / 09:50) -- the Edit room's timeline split into
   a video region and an audio region by a divider you drag (js/nle-avsplit.js), audio tracks with headers and clips as
   clear as the video ones (js/nle-avmix.js), and the slip monitor over the viewer (js/nle-slip-preview.js). Everything
   is under html.ev-on (the Edit room) except the slip monitor, which shows wherever the timeline's Slip tool is used.
   The EDIT ROOM V2 look (css/nle/21-edit-room-v2.css): brand #e8194f, surfaces #0b0b0d / #111114 / #0e0e11, lines
   #1c1c22 / #1f1f25, Inter, 8px radius; sounds wear teal, never the brand colour, so a picture and a sound read apart. */

/* ---------- THE TWO REGIONS (html.av-split is set by js/nle-avsplit.js while the room is up) ---------- */
html.desktop.nle-on.ev-on.av-split .nle-tl-main { position: relative; }
html.desktop.nle-on.ev-on.av-split #nle-scroll { overflow-y: hidden; }
html.desktop.nle-on.ev-on.av-split #nle-tracks { height: var(--av-total, auto) !important; overflow: hidden; }
html.desktop.nle-on.ev-on.av-split #nle-heads { overflow: visible; }
/* the old heavy line on A1's top is the divider's job now */
html.desktop.nle-on.ev-on.av-split .nle-head-row.nle-ahead-row.first,
html.desktop.nle-on.ev-on.av-split .nle-track.nle-atrack.first { box-shadow: none; }
/* V1's own height seam would sit right on the divider; the divider wins the press */
html.desktop.nle-on.ev-on.av-split .av-v1 .nle-trk-grip { display: none; }
/* AV DIVIDER DRAG FIX: the video stack hangs from the divider, so the line between two video tracks is the TOP edge of the
   track below it (js/nle-avsplit.js vGrip); the engine's bottom seams on video rows step aside */
html.desktop.nle-on.ev-on.av-split .nle-track:not(.nle-atrack) .nle-trk-grip:not(.av-vgrip),
html.desktop.nle-on.ev-on.av-split .nle-head-row:not(.nle-ahead-row) .nle-trk-grip:not(.av-vgrip) { display: none; }
html.desktop.nle-on.ev-on.av-split .nle-trk-grip.av-vgrip { display: block; top: -3px; bottom: auto; z-index: 7; }
html.desktop.nle-on.ev-on.av-split .nle-avdiv {
  position: absolute; left: 0; right: 0; z-index: 6; box-sizing: border-box;
  display: flex; align-items: center; gap: 10px; padding: 0 12px 0 16px;
  background: #0b0b0d; border-top: 1px solid #1f1f25; border-bottom: 1px solid #1f1f25;
  cursor: row-resize; touch-action: none; user-select: none;
}
/* the grip sits in the header column's middle (168px wide), the line runs on across the tracks */
html.desktop.nle-on.ev-on.av-split .nle-avdiv .av-dv-grip {
  flex: none; width: 36px; height: 3px; border-radius: 2px; background: #3a3a43; margin-left: 50px;
}
html.desktop.nle-on.ev-on.av-split .nle-avdiv:hover,
html.desktop.nle-on.ev-on.av-split .nle-avdiv.drag { background: #111114; border-color: rgba(232,25,79,.55); }
html.desktop.nle-on.ev-on.av-split .nle-avdiv:hover .av-dv-grip,
html.desktop.nle-on.ev-on.av-split .nle-avdiv.drag .av-dv-grip { background: #e8194f; }
html.desktop.nle-on.ev-on.av-dividing, html.desktop.nle-on.ev-on.av-dividing * { cursor: row-resize !important; }
/* each region's own scroll bar, at the right edge of the tracks */
html.desktop.nle-on.ev-on.av-split .nle-avsb { position: absolute; right: 2px; width: 8px; z-index: 6; cursor: default; }
html.desktop.nle-on.ev-on.av-split .nle-avsb[hidden] { display: none; }
html.desktop.nle-on.ev-on.av-split .nle-avsb i {
  position: absolute; left: 1px; right: 1px; border-radius: 4px; background: rgba(255,255,255,.16);
}
html.desktop.nle-on.ev-on.av-split .nle-avsb:hover i { background: rgba(255,255,255,.3); }
/* the add-track rows ride on the stacks (js/nle-avsplit.js places them) */
html.desktop.nle-on.ev-on.av-split .nle-head-addrow { position: relative; z-index: 1; background: #0e0e11; }

/* ---------- THE AUDIO TRACK HEADERS (js/nle-avmix.js afterHeads) ---------- */
/* the same dress as a video track's .v2-head (css/nle/21-edit-room-v2.css): the name on top, the controls under it */
html.desktop.nle-on.ev-on .nle-head-bar.av-ahead {
  flex-wrap: wrap; align-content: center; column-gap: 4px; row-gap: 5px; padding: 0 10px 0 16px; box-sizing: border-box;
}
/* two lines in 48px: the name, then speaker / S / padlock / record / level; the delete sits at the name line's end */
html.desktop.nle-on.ev-on .av-ahead .nle-head-b.del { position: absolute; right: 6px; top: 4px; }
html.desktop.nle-on.ev-on .av-ahead .nle-head-name {
  order: 1; flex: 1 1 100%; min-width: 0; font-size: 13px; font-weight: 600; letter-spacing: 0; color: #bfeee2;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
html.desktop.nle-on.ev-on .av-ahead .nle-head-b { order: 2; width: 20px; height: 20px; border: 0; color: #9a9aa3; background: none; }
html.desktop.nle-on.ev-on .av-ahead .nle-head-b svg { width: 16px; height: 16px; }
html.desktop.nle-on.ev-on .av-ahead .nle-head-b:hover { color: #ececef; background: rgba(255,255,255,.06); }
html.desktop.nle-on.ev-on .av-ahead .nle-head-b.off { color: #e8194f; }
html.desktop.nle-on.ev-on .av-ahead .nle-head-b.del { order: 3; margin-left: auto; opacity: 0; }
html.desktop.nle-on.ev-on .av-ahead:hover .nle-head-b.del { opacity: 1; }
html.desktop.nle-on.ev-on .av-ahead .nle-head-b.av-solo {
  font: 700 11px/1 Inter, system-ui, sans-serif; border-radius: 4px; color: #9a9aa3;
}
html.desktop.nle-on.ev-on .av-ahead .nle-head-b.av-solo.on { color: #0b0b0d; background: #e7c34a; }
html.desktop.nle-on.ev-on .av-ahead .nle-head-b.av-lock.on { color: #ff4d79; }
html.desktop.nle-on.ev-on .av-ahead .nle-head-b.rec { color: #b4413c; width: 16px; }
html.desktop.nle-on.ev-on .av-ahead .nle-head-b.rec svg { width: 10px; height: 10px; }
html.desktop.nle-on.ev-on .av-ahead input.av-vol {
  order: 2; flex: 1 1 28px; min-width: 28px; max-width: 72px; height: 14px; margin: 0 0 0 2px; padding: 0; background: none;
  accent-color: #3fbfa4; cursor: pointer;
}
html.desktop.nle-on.ev-on .av-ahead input.av-vol::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: #2a2a31; }
html.desktop.nle-on.ev-on .av-ahead input.av-vol::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 10px; height: 10px; margin-top: -3.5px; border-radius: 50%; background: #5fe0c4; border: 0;
}
html.desktop.nle-on.ev-on .av-ahead input.av-vol { -webkit-appearance: none; appearance: none; }

/* ---------- THE AUDIO TRACKS AND THE SOUND CLIPS ---------- */
html.desktop.nle-on.ev-on .nle-track.nle-atrack,
html.desktop.nle-on.ev-on .nle-track.nle-atrack:nth-child(even) { background-color: #0e0e11; }
html.desktop.nle-on.ev-on .nle-track.nle-atrack.muted,
html.desktop.nle-on.ev-on .nle-track.nle-atrack.av-silenced { background-color: #0b0b0d; }
html.desktop.nle-on.ev-on .nle-track.nle-atrack.av-silenced .nle-aclip { opacity: .45; }
html.desktop.nle-on.ev-on .nle-clip.nle-aclip:not(.nle-recclip) {
  border-radius: 8px; border: 1.5px solid #2f7f72; background: #0f2b28; box-sizing: border-box; overflow: hidden;
}
html.desktop.nle-on.ev-on .nle-clip.nle-aclip.sel:not(.nle-recclip) { border: 2px solid #5fe0c4; box-shadow: 0 0 0 3px rgba(95,224,196,.22); }
html.desktop.nle-on.ev-on .nle-clip.nle-aclip.av-locked { background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 3px, transparent 3px 9px); }
/* EDITOR CLIP LABELS (EDITOR NAME, Simon 17 Nov 2026 09:59: smaller and more subtle). RECORDED REVERSAL: 10.5px / 600
   #e6fbf5 on a .62 backing, padding 1px 6px, at 10 / 4. Now 10px regular, ~72% of that tint, faint backing, top-left. */
html.desktop.nle-on.ev-on .nle-aclip > .nle-clip-name {
  left: 6px; top: 3px; bottom: auto; right: auto; max-width: min(calc(100% - 12px), 240px); box-sizing: border-box; padding: 0 5px; border-radius: 3px;
  background: rgba(11,11,13,.42); font-size: 10px; font-weight: 400; line-height: 14px; color: rgba(230,251,245,.72);
  text-shadow: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; z-index: 1;   /* EDITOR CLIP LABELS */
}
html.desktop.nle-on.ev-on .nle-aclip:hover > .nle-clip-name,
html.desktop.nle-on.ev-on .nle-aclip.sel > .nle-clip-name { color: rgba(230,251,245,.94); }   /* EDITOR CLIP LABELS */
html.desktop.nle-on.ev-on .nle-aclip > .nle-clip-dur {
  left: auto; right: 10px; bottom: 3px; padding: 0 5px; border-radius: 4px; background: rgba(11,11,13,.62);
  font-size: 10px; color: #b8d8d0; text-shadow: none; z-index: 1;
}
html.desktop.nle-on.ev-on .nle-aclip .nle-wave { opacity: .95; }
html.desktop.nle-on.ev-on.nle-tool-select .nle-aclip > .nle-clip-edge:hover { background: rgba(95,224,196,.32); }
/* the fades: the ramp over the waveform, a dot at each top corner */
html.desktop.nle-on.ev-on .nle-aclip > .av-fades { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
html.desktop.nle-on.ev-on .nle-aclip > .av-fades .av-fsh { fill: rgba(11,11,13,.55); }
html.desktop.nle-on.ev-on .nle-aclip > .av-fades .av-fln { stroke: #e6fbf5; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
html.desktop.nle-on.ev-on .nle-aclip > .av-fh {
  position: absolute; top: 2px; width: 10px; height: 10px; margin: 0 -5px; z-index: 4; box-sizing: border-box;
  border-radius: 50%; background: #0b0b0d; border: 1.5px solid #e6fbf5; cursor: ew-resize; opacity: 0; transition: opacity .12s;
}
html.desktop.nle-on.ev-on .nle-aclip > .av-fh.in { margin-left: 4px; }
html.desktop.nle-on.ev-on .nle-aclip > .av-fh.out { margin-right: 4px; }
html.desktop.nle-on.ev-on .nle-aclip:hover > .av-fh,
html.desktop.nle-on.ev-on .nle-aclip.sel > .av-fh,
html.desktop.nle-on.ev-on .nle-aclip > .av-fh.set,
html.desktop.nle-on.ev-on .nle-aclip.av-fading > .av-fh { opacity: 1; }
html.desktop.nle-on.ev-on .nle-aclip > .av-fh.set { background: #5fe0c4; border-color: #0b0b0d; }
html.desktop.nle-on.ev-on .nle-aclip.av-locked > .av-fh { display: none; }
html.desktop.nle-on.ev-on.nle-tool-blade .nle-aclip > .av-fh { display: none; }

/* ---------- THE SLIP MONITOR (js/nle-slip-preview.js), over the viewer while a slip is held ---------- */
.nle-slipmon[hidden] { display: none !important; }
html.desktop.nle-on .nle-slipmon {
  position: absolute; inset: 0; z-index: 40; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 16px; box-sizing: border-box; background: rgba(11,11,13,.94); pointer-events: none;
  font-family: Inter, system-ui, sans-serif; color: #ececef;
}
html.desktop.nle-on .nle-slipmon .sm-amt {
  padding: 4px 12px; border-radius: 8px; background: #111114; border: 1px solid #2a2a31;
  font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; color: #fff;
}
html.desktop.nle-on .nle-slipmon .sm-row { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; max-height: 80%; }
html.desktop.nle-on .nle-slipmon .sm-f { margin: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
html.desktop.nle-on .nle-slipmon .sm-in, html.desktop.nle-on .nle-slipmon .sm-out { flex: 0 1 40%; }
html.desktop.nle-on .nle-slipmon .sm-prev, html.desktop.nle-on .nle-slipmon .sm-next { flex: 0 1 15%; display: none; opacity: .75; }
html.desktop.nle-on .nle-slipmon.has-prev .sm-prev, html.desktop.nle-on .nle-slipmon.has-next .sm-next { display: flex; }
html.desktop.nle-on .nle-slipmon .sm-pic { border-radius: 8px; overflow: hidden; background: #000; border: 1px solid #1f1f25; }
html.desktop.nle-on .nle-slipmon .sm-in .sm-pic, html.desktop.nle-on .nle-slipmon .sm-out .sm-pic { border-color: #3a3a43; }
html.desktop.nle-on .nle-slipmon canvas { display: block; width: 100%; height: auto; }
html.desktop.nle-on .nle-slipmon figcaption {
  font-size: 11.5px; color: #9a9aa3; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center;
}
html.desktop.nle-on .nle-slipmon figcaption b { color: #ececef; font-weight: 700; letter-spacing: .04em; margin-right: 4px; }
html.desktop.nle-on .nle-slipmon .sm-prev figcaption, html.desktop.nle-on .nle-slipmon .sm-next figcaption { font-size: 10px; }
