/* The timeline bar (2.8.262, Sam, 10 Nov 2026: "timeline with camera moves shaded and cut points marked", the
   Video Editor in the Workspace). One bar across the width for anything that runs in time: a video's clips, the
   stretches to leave out shaded, and its cut points marked. Each piece sits by its own start and end in seconds,
   given as --a and --b on the piece and --secs on the bar, so the page writes numbers, never positions.
   A piece with data-gg-tl-at jumps the video named by the bar's data-gg-tl-for to that second (js/timeline.js);
   the play head (.gg-tl-now) follows the video. Sharp corners; colours are the kit's own tokens. */
.gg-tl{--secs:1;margin:12px 0 18px}
.gg-tl-bar{position:relative;height:36px;background:var(--paper-2);border:1px solid var(--hair);overflow:hidden}
.gg-tl-seg{position:absolute;top:0;bottom:0;left:calc(var(--a) / var(--secs) * 100%);width:calc((var(--b) - var(--a)) / var(--secs) * 100%);
  margin:0;padding:0 6px;border:0;background:transparent;color:var(--ink-2);font:inherit;font-size:12px;font-weight:600;
  text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
.gg-tl-seg.is-clip{background:color-mix(in srgb,var(--primary) 20%,transparent);border-right:1px solid var(--paper)}
.gg-tl-seg.is-clip:hover,.gg-tl-seg.is-clip:focus-visible{background:color-mix(in srgb,var(--primary) 34%,transparent);color:var(--ink);outline:0}
.gg-tl-seg.is-out{background:repeating-linear-gradient(135deg,color-mix(in srgb,var(--ink) 22%,transparent) 0 4px,transparent 4px 9px)}
.gg-tl-seg.is-out:hover{background:repeating-linear-gradient(135deg,color-mix(in srgb,var(--ink) 34%,transparent) 0 4px,transparent 4px 9px)}
.gg-tl-cut{position:absolute;top:0;bottom:0;left:calc(var(--at) / var(--secs) * 100%);width:2px;margin-left:-1px;background:var(--primary);pointer-events:none}
.gg-tl-now{position:absolute;top:0;bottom:0;left:calc(var(--now,0) / var(--secs) * 100%);width:2px;margin-left:-1px;background:var(--ink);pointer-events:none}
.gg-tl-scale{display:flex;justify-content:space-between;margin-top:4px;color:var(--ink-3);font-size:12px;font-variant-numeric:tabular-nums}
/* Notes on the timeline and a box on the picture (2.8.339, HQ project "Video review with timeline notes", 17 Nov 2026).
   A bar marked .is-pin takes a click on its empty space as "a note here" (js/timeline.js sends gg:tl-pick). Each note is
   a .gg-tl-note at --at seconds: a thin line with a small square on top, warn while open, primary once dealt with, ok
   and faded once done. .gg-vstage holds a video with the boxes drawn on it (.gg-vbox, its place as fractions of the
   picture in --bx --by --bw --bh); .is-drawing puts the crosshair layer (.gg-vdraw) over the picture to draw a new one.
   .gg-vbtns is a row of small buttons that stay pressed while on (aria-pressed). .gg-vpair puts two videos side by side,
   one above the other on a phone. Sharp corners; the kit's own colours. */
.gg-tl-bar.is-pin{cursor:copy}
.gg-tl-note{position:absolute;top:0;bottom:0;left:calc(var(--at) / var(--secs) * 100%);width:16px;margin-left:-8px;padding:0;border:0;background:transparent;cursor:pointer;z-index:2;--c:var(--warn)}
.gg-tl-note::before{content:"";position:absolute;left:7px;top:0;bottom:0;width:2px;background:var(--c)}
.gg-tl-note::after{content:"";position:absolute;left:3px;top:0;width:10px;height:10px;background:var(--c)}
.gg-tl-note.is-dealt{--c:var(--primary)}
.gg-tl-note.is-done{--c:var(--ok);opacity:.55}
.gg-tl-note:hover::after,.gg-tl-note:focus-visible::after,.gg-tl-note.is-on::after{outline:2px solid var(--ink);outline-offset:1px}
.gg-tl-note:focus-visible{outline:0}
.gg-vstage{position:relative;display:block;width:fit-content;max-width:100%;line-height:0}
.gg-vstage video{display:block;max-width:100%;height:auto}
.gg-vbox{position:absolute;left:calc(var(--bx) * 100%);top:calc(var(--by) * 100%);width:calc(var(--bw) * 100%);height:calc(var(--bh) * 100%);border:2px solid var(--warn);box-shadow:0 0 0 1px rgba(0,0,0,.45);pointer-events:none}
.gg-vbox.is-new{border-style:dashed}
.gg-vdraw{position:absolute;inset:0;display:none;cursor:crosshair;touch-action:none;background:rgba(0,0,0,.08)}
.gg-vstage.is-drawing .gg-vdraw{display:block}
.gg-vbtns{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:10px 0}
.gg-vbtns .btn[aria-pressed="true"]{background:var(--ink);color:var(--paper);border-color:var(--ink)}
.gg-vpair{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:start}
.gg-vpair video{width:100%;height:auto}
.gg-vpair[hidden],.gg-vbox[hidden]{display:none}
@media(max-width:760px){.gg-vpair{grid-template-columns:1fr}.gg-tl-note{width:24px;margin-left:-12px}.gg-tl-note::before{left:11px}.gg-tl-note::after{left:7px}}
