/* N216 build16: the seek line of every player that is not the process frame (owner 16.11.2026: «мне нравится новая перемотка как на ют через
   полоску отдельную вводи похожий принцип на все оставшиеся гайды», «я хочу чтобы везде вот так было»). The look is the process frame's line
   (guide-frame.css: .gv-sk, .gv-seg, .gv-knob, .gv-tip, .gv-ctrl): the values below are copied from it and must stay equal to it.
   Shipped as assets/clip-line.css; drawn and driven by assets/clip-line.js (window.MeshLine). One segment = one clip.
   Parts: .cl (root) > .cl-sk (the line: .cl-segs > .cl-seg > i.b i.h i.p, .cl-knob, .cl-tip) + .cl-ctrl (.cl-pp, .cl-time, .cl-cur, .cl-fs).
   Colours come from four variables, so the same parts read on the dark ground of the full screen. */
.cl { --cl-ink: var(--ink, #1F2231); --cl-ink2: var(--ink-2, #5A6078); --cl-rail: #E4E6EF; --cl-buf: #CBCEE0; --cl-btn: var(--ink, #1F2231); --cl-btn-ink: #fff;
  min-width: 0; margin-top: .375rem; color: var(--cl-ink); }
.cl-sk { position: relative; height: 1.5rem; cursor: pointer; touch-action: none; outline: none; -webkit-tap-highlight-color: transparent; }
.cl-sk:focus-visible { outline: 3px solid var(--violet, #5B3BE0); outline-offset: 2px; border-radius: .375rem; }
/*zoom-twin*/@media (min-width: 1601px){.cl-sk:focus-visible{outline:calc(3rem / 13.6) solid var(--violet, #5B3BE0)}}
.cl-segs { position: absolute; inset: 0; display: flex; align-items: center; gap: 4px; }
/*zoom-twin*/@media (min-width: 1601px){.cl-segs{gap:calc(4rem / 13.6)}}
.cl-seg { position: relative; flex: var(--len, 1) 1 0; min-width: 6px; height: 4px; border-radius: 2px; background: var(--cl-rail); overflow: hidden; transition: height .12s ease; }
/*zoom-twin*/@media (min-width: 1601px){.cl-seg{min-width:calc(6rem / 13.6);height:calc(4rem / 13.6)}}
.cl-seg.is-cut { margin-left: 8px; }
/*zoom-twin*/@media (min-width: 1601px){.cl-seg.is-cut{margin-left:calc(8rem / 13.6)}}                                 /* a run through a group: a wider gap where the tool changes */
.cl-seg > i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: inherit; }
.cl-seg .b { background: var(--cl-buf); }                             /* buffered: lighter than played */
.cl-seg .h { background: rgba(91, 59, 224, .22); }                    /* hover preview */
.cl-seg .p { background: var(--acc, linear-gradient(95deg, #252ACF 0%, #6748EF 30%, #9E0BC5 58%, #DD35BE 80%, #E23A6A 100%)); background-size: var(--bw, 100%) 100%;
  background-position: var(--bx, 0) 0; background-repeat: no-repeat; }   /* played: one gradient across the whole line */
.cl-sk:hover .cl-seg, .cl-sk.is-drag .cl-seg { height: 6px; }
/*zoom-twin*/@media (min-width: 1601px){/* played: one gradient across the whole line */ .cl-sk:hover .cl-seg, .cl-sk.is-drag .cl-seg{height:calc(6rem / 13.6)}}
.cl-sk .cl-seg.is-hover { height: 10px; border-radius: 3px; }
/*zoom-twin*/@media (min-width: 1601px){.cl-sk .cl-seg.is-hover{height:calc(10rem / 13.6);border-radius:calc(3rem / 13.6)}}
.cl-knob { position: absolute; top: 50%; left: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #5B3BE0;
  box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(31, 34, 49, .35); transition: transform .12s ease; pointer-events: none; }
/*zoom-twin*/@media (min-width: 1601px){.cl-knob{width:calc(14rem / 13.6);height:calc(14rem / 13.6);box-shadow:0 0 0 2px #fff, 0 2px calc(6rem / 13.6) rgba(31, 34, 49, .35)}}
.cl-sk:hover .cl-knob, .cl-sk.is-drag .cl-knob { transform: scale(1.2); }
.cl-tip { position: absolute; bottom: calc(100% + .375rem); left: 0; z-index: 4; display: none; width: max-content; max-width: min(24rem, 100%); padding: .5rem .75rem .5625rem;
  border-radius: .625rem; background: var(--ink, #1F2231); color: #fff; box-shadow: 0 .75rem 1.5rem -.75rem rgba(31, 34, 49, .7); pointer-events: none; white-space: normal; text-align: left; }
.cl-tip::after { content: ""; position: absolute; top: 100%; left: var(--ax, 50%); margin-left: -6px; border: 6px solid transparent; border-top-color: var(--ink, #1F2231); }
/*zoom-twin*/@media (min-width: 1601px){.cl-tip::after{border:calc(6rem / 13.6) solid transparent}}
.cl-sk.is-tip .cl-tip { display: block; }
.cl-tip b { display: block; font: 700 .875rem/1.3 var(--f-sans); overflow-wrap: anywhere; }
.cl-tip b:empty { display: none; }
/* a large frame of the clip under the pointer (lines of 2+ clips); the box is fixed, so the tip keeps its size while the picture loads */
.cl-tp { display: block; width: 15rem; max-width: 100%; aspect-ratio: 12 / 7; object-fit: contain; margin: 0 0 .4375rem; border-radius: .375rem; background: #fff; }
.cl-tp[hidden] { display: none; }
@media (max-width: 719.98px) { .cl-tp { width: 11rem; } }
.cl-tip b span { color: #B9B4FF; font-weight: 700; }
.cl-tip time { display: block; margin-top: .125rem; font: 500 .75rem/1.2 var(--f-mono); color: rgba(255, 255, 255, .72); }
.cl-tip b:empty + time { margin-top: 0; }

/* controls row: play, time, the current clip, full screen */
.cl-ctrl { display: flex; align-items: center; gap: .75rem; min-height: 2.75rem; margin-top: .125rem; }
.cl-ib { flex: none; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--cl-ink); cursor: pointer; }
/*zoom-twin*/@media (min-width: 1601px){.cl-ib{width:calc(40rem / 13.6);height:calc(40rem / 13.6)}}
.cl-ib:hover { background: rgba(127, 131, 150, .16); }
.cl-ib:focus-visible { outline: 3px solid #5B3BE0; outline-offset: 2px; }
/*zoom-twin*/@media (min-width: 1601px){.cl-ib:focus-visible{outline:calc(3rem / 13.6) solid #5B3BE0}}
.cl-ib svg { width: 22px; height: 22px; fill: currentColor; }
/*zoom-twin*/@media (min-width: 1601px){.cl-ib svg{width:calc(22rem / 13.6);height:calc(22rem / 13.6)}}
.cl-ib.cl-pp { background: var(--cl-btn); color: var(--cl-btn-ink); }
.cl-ib.cl-pp:hover { background: #343a55; }
.cl-ib.cl-pp svg { width: 20px; height: 20px; }
/*zoom-twin*/@media (min-width: 1601px){.cl-ib.cl-pp svg{width:calc(20rem / 13.6);height:calc(20rem / 13.6)}}
.cl-pp .i-pause, .cl.is-playing .cl-pp .i-play { display: none; }
.cl.is-playing .cl-pp .i-pause { display: block; }
.cl-time { flex: none; font: 500 .875rem/1 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--cl-ink2); white-space: nowrap; }
.cl-time b { font-weight: 500; color: var(--cl-ink); }
.cl-cur { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: .5rem; margin: 0; font: 700 1rem/1.3 var(--f-sans); color: var(--cl-ink); }
.cl-cur::before { content: ""; flex: none; align-self: center; width: 4px; height: 4px; border-radius: 50%; background: var(--line-2, #D3D7E4); }
/*zoom-twin*/@media (min-width: 1601px){.cl-cur::before{width:calc(4rem / 13.6);height:calc(4rem / 13.6)}}
.cl-cur:empty::before { display: none; }
.cl-cur .n { flex: none; font: 500 .8125rem/1 var(--f-mono); color: var(--cl-ink2); white-space: nowrap; }
.cl-cur .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-ti { flex: none; align-self: center; width: 1.5rem; height: 1.5rem; border-radius: .375rem; background: #fff; box-shadow: 0 0 0 1px #D3D7E4; }   /* the tool's icon beside the clip's name */
.cl-fs[hidden] { display: none; }
/* phones: the clip's name takes its own line under the buttons (two lines at most) */
@media (max-width: 719.98px) {
  .cl-ctrl { flex-wrap: wrap; row-gap: .25rem; }
  .cl-fs { margin-left: auto; }
  .cl-cur { order: 5; flex: 1 0 100%; font-size: .9375rem; }
  .cl-cur::before { display: none; }
  .cl-cur .t { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}

/* full screen: the element with [data-cl-fs] holds the picture and the line; the picture is shown whole on a dark ground, the line under it */
[data-cl-fs]:fullscreen { display: flex; flex-direction: column; box-sizing: border-box; width: 100%; height: 100%; margin: 0; padding: 0 1rem .5rem; border-radius: 0; background: #0E0F16; }
[data-cl-fs]:fullscreen > :not(.cl) { flex: 1 1 0; min-height: 0; width: auto; max-width: none; margin: 0; border-radius: 0; box-shadow: none; background: none; aspect-ratio: auto; }
[data-cl-fs]:fullscreen video { width: 100%; height: 100%; object-fit: contain; }
[data-cl-fs]:fullscreen > .cl { flex: none; --cl-ink: #fff; --cl-ink2: rgba(255, 255, 255, .72); --cl-rail: rgba(255, 255, 255, .24); --cl-buf: rgba(255, 255, 255, .42); --cl-btn: #fff; --cl-btn-ink: #1F2231; }
[data-cl-fs]:fullscreen > .cl .cl-pp:hover { background: #E4E6EF; }
[data-cl-fs]:-webkit-full-screen { display: flex; flex-direction: column; box-sizing: border-box; width: 100%; height: 100%; margin: 0; padding: 0 1rem .5rem; border-radius: 0; background: #0E0F16; }
[data-cl-fs]:-webkit-full-screen > :not(.cl) { flex: 1 1 0; min-height: 0; width: auto; max-width: none; margin: 0; border-radius: 0; box-shadow: none; background: none; aspect-ratio: auto; }
[data-cl-fs]:-webkit-full-screen video { width: 100%; height: 100%; object-fit: contain; }
[data-cl-fs]:-webkit-full-screen > .cl { flex: none; --cl-ink: #fff; --cl-ink2: rgba(255, 255, 255, .72); --cl-rail: rgba(255, 255, 255, .24); --cl-buf: rgba(255, 255, 255, .42); --cl-btn: #fff; --cl-btn-ink: #1F2231; }
@media (prefers-reduced-motion: reduce) { .cl-seg, .cl-knob { transition: none; } }
/* N216 build16: the tool guides' players and the articles' loops with the seek line (clip-line.css): the box that goes full screen and
   the list of a tool's clips (plan S3, cards K0: number, title, length; no pictures). It replaces the strip of clip cards (.ctabs).
   Joined after clip-line.css as assets/clip-guides.css; driven by clip-tool.js. The values are the site's (styles.css tokens) and the
   process frame's (the marked row is the frame's current step). */
.cl-box { min-width: 0; }
.tool-main > .cl-list { margin-top: -.75rem; }          /* .tool-main is a grid with a 1.375 rem gap: the list sits under the line */
.cl-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(var(--cl-rows, 1), auto); grid-auto-flow: column;
  column-gap: .75rem; row-gap: .25rem; min-width: 0; margin: 0; }
.cl-row { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr) auto; align-items: center; column-gap: .625rem; min-width: 0; min-height: 2.5rem;
  margin: 0; padding: .25rem .75rem .25rem .5rem; border: 0; border-radius: 14px; background: transparent; font: 600 .875rem/1.25 var(--f-sans);
  color: var(--ink, #1F2231); text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
/*zoom-twin*/@media (min-width: 1601px){.cl-row{border-radius:calc(14rem / 13.6)}}
.cl-row:hover { background: var(--mist, #F6F4FF); }
.cl-row:focus-visible { outline: 3px solid #5B3BE0; outline-offset: 2px; }
/*zoom-twin*/@media (min-width: 1601px){.cl-row:focus-visible{outline:calc(3rem / 13.6) solid #5B3BE0}}
.cl-row .n { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px #C3C8D8;
  font: 700 .75rem/1 var(--f-mono); }
.cl-row .t { min-width: 0; overflow-wrap: anywhere; }          /* a long title takes a second line: nothing is cut */
.cl-row .d { font: 500 .75rem/1 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--ink-2, #555A6E); white-space: nowrap; }
.cl-row[aria-selected="true"] { background: #EEF0F6; box-shadow: inset 3px 0 0 #5B3BE0; color: #3B2FC0; }
/*zoom-twin*/@media (min-width: 1601px){.cl-row[aria-selected="true"]{box-shadow:inset calc(3rem / 13.6) 0 0 #5B3BE0}}
.cl-row[aria-selected="true"] .n { box-shadow: inset 0 0 0 1.5px #5B3BE0; }
/* touch widths: rows a finger can hit (44 px); phones: one column */
@media (max-width: 1023.98px), (pointer: coarse) { .cl-row { min-height: 2.75rem; } }
@media (max-width: 719.98px) {
  .cl-list { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; }
}
/* an article's loop is a small recording at its own size on the paper ground (pages.css); full screen it fills the frame as the clips do */
.art-clip [data-cl-fs]:fullscreen .player > video.art-loop { width: 100%; height: 100%; object-fit: contain; }
.art-clip [data-cl-fs]:-webkit-full-screen .player > video.art-loop { width: 100%; height: 100%; object-fit: contain; }
/* N216 build17: the clip's name once on a tool guide. build16's line put the clip's title beside the time (.cl-cur .t), and the same
   title stands right under it as the pane's heading (one clip: about 50 px lower) and in the marked row of the clip list (several clips).
   On the page the line keeps «Clip i of m» only; full screen hides the heading, so there the title stays. Joined after clip-tool.css. */
.cl-box[data-cl-tool]:not(:fullscreen) .cl-cur .t { display: none; }
.cl-box[data-cl-tool]:not(:fullscreen) .cl-cur:not(:has(.n))::before { display: none; }
/* build17 round 2: with a clip list the marked row already names the clip, so the pane's heading right under it is read by screen readers
   and search engines only (visually hidden, as the bundle's .sr; not display: none). A page with one clip and no list keeps its heading. */
.cl-list ~ .clip-pane > h2 { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0);
  clip-path: inset(50%); white-space: nowrap; }
/* N216 build17 round 4: the clip list under a tool guide's player, on a phone (the owner, 17.11: «не должна быть полная лента, максимум
   3 пункта которые „едут“ вместе с перемещением ползунка видео»). A list of 4+ clips is a window of three rows that scrolls by itself to the
   current clip (phone-list.js sets --cl-win to the measured height of three rows) and by finger to every other clip. The phone test is
   clip-tool.css's one-column rule; a list of 3 or fewer clips and wider windows are as before. Joined after clip-once.css. */
@media (max-width: 719.98px) {
  .cl-list:has(> .cl-row:nth-child(4)) { max-height: var(--cl-win, 8.75rem); overflow-x: hidden; overflow-y: auto; }   /* 8.75rem = 3 rows of 2.75rem + 2 gaps, before the script measures */
  .cl-list:has(> .cl-row:nth-child(4)) > .cl-row:focus-visible { outline-offset: -3px; }   /* the window would cut the ring drawn outside the row */
}
