/* EDIT ROOM V2 -- the Edit room's timeline in the Edit tool's new look, a dark viewer, and the names toggle on the
   tool strip (js/nle-v2.js, js/nle-precomp.js, js/edit-view.js). Simon, 15 Nov 2026 07:31. Everything is under
   html.ev-on (the Edit room, js/edit-view.js): the timeline anywhere else is exactly as it was. The design is the
   approved Edit room mockup (Simple.dc.html), the same one js/cropvid-nle.js dresses the Edit tool's timeline from:
   brand #e8194f, surfaces #0b0b0d / #111114 / #0e0e11, lines #1c1c22 / #1f1f25, Inter, calm spacing. Loads after
   css/nle/11-timeline.css and css/style/50-edit-view.css, and wins on its own specificity, not on !important. */

/* ---------- 2 · THE VIEWER IS DARK, NOT GREY ----------
   "In the viewing panel (main viewer), it doesn't have that grey background. It's more like a dark." The stage went
   #24242a whenever a clip was selected (the pasteboard for the transform box, .nle-pb, which the Edit room has no use
   for) and the bars around it were the card grey. RECORDED REVERSAL: the grey pasteboard and grey bars in the room. */
html.desktop.nle-on.ev-on #nle-viewer,
html.desktop.nle-on.ev-on #nle-viewer .nle-stage,
html.desktop.nle-on.ev-on #nle-viewer .nle-stage.nle-pb,
html.desktop.nle-on.ev-on #nle-viewer .nle-nodeview { background: #0b0b0d; }
html.desktop.nle-on.ev-on #nle-viewer .nle-vmode,
html.desktop.nle-on.ev-on #nle-viewer .nle-transport { background: #0b0b0d; border-color: #1f1f25; }
html.desktop.nle-on.ev-on #nle-viewer #nle-canvas { box-shadow: none; }
/* (TOOL NAMES HOVER) the rail's colours go to its ::before / ::after (css/style/50-edit-view.css); the strip's own box
   is see-through now, so the names' panel can fade and slide out from under the icons. */
html.desktop.nle-on.ev-on #ev-strip { --ev-rail-bg: #0f0f12; --ev-rail-line: #1f1f25; }   /* (TOOL NAMES HOVER) */

/* ---------- 5 · (TOOL NAMES HOVER) THE NAMES ON HOVER, in the room's look (js/edit-view.js setPeek) ----------
   The names' panel is the rail's own #0f0f12 with a thin brand edge; the names are Inter in the room's text colours;
   the open tool's name is lit in the brand pink. RECORDED REVERSAL: the Show names / Hide names button (.ev-fold.ev-ntog,
   EDIT ROOM V2 section 5). */
html.desktop.nle-on.ev-on #ev-strip.ev-peek::after { border-right-color: rgba(232,25,79,.35); }   /* (TOOL NAMES HOVER) */
html.desktop.nle-on.ev-on #ev-strip .ev-tool .ev-name { font: 500 12px/1.2 Inter, system-ui, sans-serif; color: #c4c4cc; }   /* (TOOL NAMES HOVER) */
html.desktop.nle-on.ev-on #ev-strip .ev-tool:hover .ev-name,
html.desktop.nle-on.ev-on #ev-strip .ev-tool:focus-visible .ev-name { color: #ececef; }   /* (TOOL NAMES HOVER) */
html.desktop.nle-on.ev-on #ev-strip .ev-tool.on .ev-name { color: #ff4d79; font-weight: 600; }   /* (TOOL NAMES HOVER) */

/* ---------- 1 · THE TIMELINE ---------- */
html.desktop.nle-on.ev-on #nle-timeline { background: #111114; font-family: Inter, system-ui, sans-serif; }
html.desktop.nle-on.ev-on #nle-timeline .nle-tl-bar { background: #0f0f12; border-bottom-color: #1f1f25; }
html.desktop.nle-on.ev-on #nle-timeline .nle-tl-hint { color: #6b6b74; font-size: 11px; }

/* the icon toolbar row, directly above the tracks (js/nle-v2.js ensureBar) */
#nle-v2bar { display: none; }
html.desktop.nle-on.ev-on #nle-v2bar {
  flex: none; display: flex; align-items: center; gap: 4px; height: 48px; padding: 0 16px 0 12px; box-sizing: border-box;
  background: #111114; border-bottom: 1px solid #1c1c22; overflow: hidden; color: #ececef; font-size: 13px;
}
html.desktop.nle-on.ev-on #nle-v2bar .v2-ib,
html.desktop.nle-on.ev-on #nle-v2bar .nle-tool {
  flex: none; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #b4b4bc;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
html.desktop.nle-on.ev-on #nle-v2bar .v2-ib svg,
html.desktop.nle-on.ev-on #nle-v2bar .nle-tool svg { width: 18px; height: 18px; }
html.desktop.nle-on.ev-on #nle-v2bar .v2-ib:hover:not(:disabled),
html.desktop.nle-on.ev-on #nle-v2bar .nle-tool:hover { background: rgba(255,255,255,.06); color: #ececef; }
html.desktop.nle-on.ev-on #nle-v2bar .nle-tool.on { background: rgba(232,25,79,.16); color: #ff4d79; }
html.desktop.nle-on.ev-on #nle-v2bar .v2-ib:disabled { color: #55555d; cursor: default; }
html.desktop.nle-on.ev-on #nle-v2bar .v2-ib[hidden] { display: none; }
html.desktop.nle-on.ev-on #nle-v2bar .nle-tools { display: flex; gap: 4px; }
html.desktop.nle-on.ev-on #nle-v2bar .v2-sep { flex: none; width: 1px; height: 20px; margin: 0 8px; background: #2a2a31; }
html.desktop.nle-on.ev-on #nle-v2bar .v2-sp { flex: 1 1 auto; min-width: 8px; }
html.desktop.nle-on.ev-on #nle-v2bar .v2-tc { flex: none; font-variant-numeric: tabular-nums; font-weight: 600; color: #fff; }
html.desktop.nle-on.ev-on #nle-v2bar .v2-fr { flex: none; margin-left: 16px; font-variant-numeric: tabular-nums; color: #9a9aa3; }
/* the breadcrumb of precomps */
html.desktop.nle-on.ev-on #nle-v2bar .v2-crumbs { display: flex; align-items: center; gap: 2px; min-width: 0; flex: 0 1 auto; }
html.desktop.nle-on.ev-on #nle-v2bar .v2-crumbs .v2-ib { width: 28px; height: 28px; }
html.desktop.nle-on.ev-on #nle-v2bar .v2-trail { display: flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; margin-left: 4px; white-space: nowrap; }
html.desktop.nle-on.ev-on #nle-v2bar .v2-crumb {
  flex: 0 1 auto; min-width: 0; max-width: 200px; padding: 4px 6px; border: 0; border-radius: 6px; background: none;
  color: #9a9aa3; font: inherit; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer;
}
html.desktop.nle-on.ev-on #nle-v2bar .v2-crumb:hover { color: #ececef; background: rgba(255,255,255,.05); }
html.desktop.nle-on.ev-on #nle-v2bar .v2-crumb[aria-current="page"] { color: #ececef; font-weight: 600; cursor: default; background: none; }
html.desktop.nle-on.ev-on #nle-v2bar .v2-csep { flex: none; color: #55555d; }
/* inside a precomp the viewer says so with a thin brand line along its top */
html.desktop.nle-on.ev-on.nle-in-pc #nle-viewer .nle-stage { box-shadow: inset 0 2px 0 rgba(232,25,79,.65); }

/* the header column: 168px of #0e0e11, the ruler 30px */
html.desktop.nle-on.ev-on .nle-tl-heads { width: 168px; background: #0e0e11; border-right-color: #1c1c22; }
html.desktop.nle-on.ev-on .nle-ruler-spacer { height: 30px; border-bottom: 0; background: #0e0e11; }
html.desktop.nle-on.ev-on .nle-ruler { height: 30px; background: #111114; border-bottom: 0; }
html.desktop.nle-on.ev-on .nle-tick { top: 24px; bottom: 0; background: #2c2c33; }
html.desktop.nle-on.ev-on .nle-tick.minor { top: 26px; background: #232329; }
html.desktop.nle-on.ev-on .nle-tick span { top: -18px; left: 0; font-size: 11px; color: #8e8e98; font-family: Inter, system-ui, sans-serif; }

/* the track headers: the name, then eye / padlock / speaker under it (js/nle-v2.js afterHeads) */
html.desktop.nle-on.ev-on .nle-head-row { border-bottom: 0; }
html.desktop.nle-on.ev-on .nle-head-bar.v2-head {
  flex-wrap: wrap; align-content: center; column-gap: 12px; row-gap: 8px; padding: 0 10px 0 16px; box-sizing: border-box;
}
html.desktop.nle-on.ev-on .v2-head .nle-fxtw { order: 0; }
html.desktop.nle-on.ev-on .v2-head .nle-head-name {
  order: 1; flex: 1 1 calc(100% - 30px); min-width: 0; font-size: 13px; font-weight: 600; letter-spacing: 0; color: #ececef;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
html.desktop.nle-on.ev-on .v2-head .nle-head-b { order: 2; width: 20px; height: 20px; border: 0; color: #9a9aa3; background: none; }
html.desktop.nle-on.ev-on .v2-head .nle-head-b svg { width: 16px; height: 16px; }
html.desktop.nle-on.ev-on .v2-head .nle-head-b:hover { color: #ececef; background: rgba(255,255,255,.06); }
html.desktop.nle-on.ev-on .v2-head .nle-head-b.off { color: #e8194f; }
html.desktop.nle-on.ev-on .v2-head .v2-lock.on { color: #ff4d79; }
html.desktop.nle-on.ev-on .v2-head .nle-head-b.del { order: 3; margin-left: auto; opacity: 0; }
html.desktop.nle-on.ev-on .v2-head:hover .nle-head-b.del { opacity: 1; }
html.desktop.nle-on.ev-on .nle-head-addrow { color: #6b6b74; }

/* the tracks and the clips: rounded, a filmstrip body, the name and length on chips, ⋮⋮ grips at the ends */
html.desktop.nle-on.ev-on .nle-track,
html.desktop.nle-on.ev-on .nle-track:nth-child(even) { background-color: #111114; border-bottom: 0; }
html.desktop.nle-on.ev-on .nle-track.v2-locked { background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 3px, transparent 3px 9px); }
html.desktop.nle-on.ev-on .nle-track.over { background-color: rgba(232,25,79,.08); box-shadow: inset 0 0 0 1px #e8194f; }
html.desktop.nle-on.ev-on .nle-clip:not(.nle-aclip) {
  border-radius: 8px; border: 1.5px solid #3a3a43; background: #1a1a20; box-sizing: border-box;
}
html.desktop.nle-on.ev-on .nle-clip:not(.nle-aclip).sel { border: 2px solid #e8194f; box-shadow: 0 0 0 3px rgba(232,25,79,.22); }
html.desktop.nle-on.ev-on .nle-clip.missing { border-style: dashed; border-color: #b4413c; }
html.desktop.nle-on.ev-on .nle-clip.v2-hasfilm > .nle-clip-thumb,
html.desktop.nle-on.ev-on .nle-clip.v2-hasfilm > .nle-clip-grad { display: none; }
html.desktop.nle-on.ev-on .nle-clip > .v2-film { position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; pointer-events: none; border-radius: 6px; }
html.desktop.nle-on.ev-on .nle-clip > .v2-film .tlfs-t { box-shadow: inset -1px 0 0 #0b0b0d; }
/* EDITOR CLIP LABELS (EDITOR NAME) -- Simon, 17 Nov 2026 09:59: "make it so the name overlay over the items in the
   timeline is smaller and more subtle." RECORDED REVERSAL: the name was a 12px / 600 white chip on a .72 backing, padding
   2px 8px, at 10 / 6, as wide as the clip. Now 10.5px regular, about three-quarters white on a faint backing (enough to
   read on a bright picture), 1px 5px, tucked into the top-left at 6 / 4, one line with an ellipsis and never wider than
   240px; it comes up to near white on hover and on the selected clip. */
html.desktop.nle-on.ev-on .nle-clip:not(.nle-aclip) > .nle-clip-name {
  left: 6px; top: 4px; right: auto; max-width: min(calc(100% - 12px), 240px); box-sizing: border-box; padding: 1px 5px; border-radius: 3px;
  background: rgba(11,11,13,.5); font-size: 10.5px; font-weight: 400; line-height: 14px; color: rgba(255,255,255,.78);
  text-shadow: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; z-index: 1;   /* EDITOR CLIP LABELS */
}
html.desktop.nle-on.ev-on .nle-clip:not(.nle-aclip):hover > .nle-clip-name,
html.desktop.nle-on.ev-on .nle-clip:not(.nle-aclip).sel > .nle-clip-name { color: rgba(255,255,255,.94); }   /* EDITOR CLIP LABELS */
html.desktop.nle-on.ev-on .nle-clip:not(.nle-aclip) > .nle-clip-dur {
  left: auto; right: 10px; bottom: 6px; padding: 1px 6px; border-radius: 4px; background: rgba(11,11,13,.72);
  font-size: 11px; color: #c4c4cc; text-shadow: none; z-index: 1;
}
html.desktop.nle-on.ev-on .nle-clip > .nle-clip-edge { display: flex; align-items: center; justify-content: center; z-index: 3; }
html.desktop.nle-on.ev-on .nle-clip > .nle-clip-edge .tls-grip {
  font-size: 11px; line-height: 1; letter-spacing: -4px; margin-left: -4px; color: rgba(236,236,239,.85);
  text-shadow: 0 1px 2px rgba(0,0,0,.9); pointer-events: none;
}
html.desktop.nle-on.ev-on.nle-tool-select .nle-clip > .nle-clip-edge:hover { background: rgba(232,25,79,.45); }
/* a precomp: its badge, and a brand edge */
html.desktop.nle-on.ev-on .nle-clip.v2-precomp:not(.sel) { border-color: rgba(232,25,79,.55); }
html.desktop.nle-on.ev-on .nle-clip > .v2-pc-badge {
  position: absolute; right: 8px; top: 6px; z-index: 2; padding: 2px 7px; border-radius: 4px;
  background: #e8194f; color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; pointer-events: none;
}

/* the playhead: a thin white line through every track, its handle a rounded 16 x 18 on the ruler */
html.desktop.nle-on.ev-on .nle-phline { width: 0; margin-left: -0.75px; background: none; border-left: 1.5px solid #fff; z-index: 7; }
html.desktop.nle-on.ev-on .nle-phline::before {
  content: ''; position: absolute; top: 2px; left: -8.75px; width: 16px; height: 18px;
  border: 0; border-radius: 4px 4px 8px 8px; background: #fff;
}
