/* DURATION SLIDER (Simon, 15 Nov 2026 10:43): the slider that pops out beside any duration control
   (js/panel/19c-duration-slider.js). On <body>, fixed, so no pane's overflow clips it.

   DURATION SLIDER LOOK (Simon, 15 Nov 2026 16:42): "We need to greatly improve the appearance of our duration slider
   to be more like this" -- a dark rounded card, a small muted label, a big bold value, a chunky rounded track whose
   filled part is a lighter grey block with a thin bright tick at the value, a dot at the far end, the step numbers
   under it. In Covert's colours: the dark surfaces, the value tick in the brand pink. And (16:46) Long take is
   subtle: a small pink mark where the model's own longest length is, and a circled-i beside the value past it.

   DURATION SLIDER COMPACT (Simon, 15 Nov 2026 22:32): "Let's make it so the duration slider is around half the current
   height. The actual slider itself can be smaller, and the duration counter, too. We should make it so a line that
   shows the max duration of the model is a continual line down. When the user clicks and drags beyond that slider, the
   bit beyond that is in the brand colour." So: the label and the value share one row (label, value, circled-i, the
   estimate muted on the right); the track is 18px (from 40); the value 15px (from 24); smaller numbers and padding
   (183px -> ~93px tall on a Long take card with its Auto chip). The model's max is one thin unbroken pink line from the
   top of the track down to its pink number (was two notches), and past it the fill from that line to the value is the
   brand pink; up to the line it stays grey. */
.ds-pop {
  --ds-surface: #16161b; --ds-deep: #111115; --ds-line: rgba(255,255,255,.075);
  --ds-unfilled: #222228; --ds-fill-a: #4a4a52; --ds-fill-b: #5a5a63;
  --ds-pink: #ff4d79; --ds-pink-deep: #e8194f;
  position: fixed; z-index: 2147483001; box-sizing: border-box; width: 300px; padding: 7px 11px 8px;   /* DURATION SLIDER COMPACT: was 320px, 13px 16px 14px */
  background: var(--ds-surface); border: 1px solid var(--ds-line); border-radius: 11px;
  box-shadow: 0 14px 36px rgba(0,0,0,.6), 0 1px 0 rgba(255,255,255,.03) inset; font-family: var(--font-ui); color: var(--text);
  -webkit-user-select: none; user-select: none;
}
.ds-pop [hidden] { display: none !important; }
/* DURATION SLIDER COMPACT: one row -- the label, the value beside it, a circled-i past the card's own longest length,
   and the live estimate muted on the right (the label had a row of its own above a 24px value) */
.ds-lab { font-size: 11px; font-weight: 500; letter-spacing: 0; color: var(--text-dim); white-space: nowrap; }
.ds-head { position: relative; display: flex; align-items: center; gap: 6px; margin: 0 0 5px; min-height: 18px; }
.ds-val { font-size: 15px; font-weight: 700; line-height: 18px; letter-spacing: -.2px; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ds-val .ds-u { margin-left: 1px; }
.ds-info {
  display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; padding: 0; margin: 0 0 0 -3px;
  border: 0; border-radius: 50%; background: transparent; color: var(--text-faint); cursor: help;
}
.ds-info:hover, .ds-info:focus-visible { color: var(--ds-pink); }
.ds-info:focus { outline: none; }
.ds-info:focus-visible { box-shadow: 0 0 0 2px rgba(255,77,121,.45); }
/* the tooltip: hover or keyboard focus on the circled-i */
.ds-tip {
  display: none; position: absolute; z-index: 3; left: -4px; right: -4px; top: calc(100% + 6px); box-sizing: border-box; padding: 9px 11px;
  background: var(--ds-deep); border: 1px solid rgba(255,77,121,.28); border-radius: 10px; box-shadow: 0 10px 26px rgba(0,0,0,.6);
  font-size: 11px; font-weight: 500; line-height: 1.45; color: var(--text-dim); white-space: normal; pointer-events: none;
}
.ds-info:hover ~ .ds-tip, .ds-info:focus ~ .ds-tip { display: block; }
.ds-est { margin-left: auto; align-self: center; font-size: 10.5px; font-weight: 600; color: var(--text-faint); white-space: nowrap; font-variant-numeric: tabular-nums; }
/* THE TRACK: drawn here; the real range lies over all of it, transparent, so the whole track is what a hand presses.
   The range's thumb is 14px wide (invisible), so a value's spot is 7px in from each end -- the tick, the fill's end
   and the numbers below use the same line (19c-duration-slider.js, PAD). DURATION SLIDER COMPACT: 18px tall (was 40). */
.ds-track { position: relative; height: 18px; }
.ds-rail {
  position: absolute; left: 0; top: 0; right: 0; bottom: 0; border-radius: 5px; overflow: hidden; background: var(--ds-unfilled);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}
.ds-fill {
  position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px 3px 3px 5px;
  background: linear-gradient(180deg, var(--ds-fill-b), var(--ds-fill-a)); box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
}
/* DURATION SLIDER COMPACT: past the model's max, the fill from the max line to the value is the brand pink (drawn over
   the grey fill, which is left grey up to the line); hidden at or below the max and on Auto */
.ds-over {
  position: absolute; top: 0; bottom: 0; border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, var(--ds-pink-deep), var(--ds-pink)); box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.ds-tick {
  position: absolute; top: 50%; width: 2px; height: 10px; margin: -5px 0 0 -1px; border-radius: 1px;
  background: var(--ds-pink); box-shadow: 0 0 5px rgba(255,77,121,.55);
}
/* DURATION SLIDER COMPACT: on the pink stretch a pink tick would vanish, so there it is white */
.ds-pop.in-lt .ds-tick { background: #fff; box-shadow: 0 0 4px rgba(0,0,0,.35); }
.ds-end { position: absolute; right: 7px; top: 50%; width: 3px; height: 3px; margin-top: -1.5px; border-radius: 50%; background: rgba(255,255,255,.3); }
/* DURATION SLIDER COMPACT: the card's own longest length is one continuous thin pink line (was two small notches, Simon
   16:46), from just above the track down to its pink number under it. It sits in .ds-track, not the rail (whose
   overflow would cut it at the track's edge), under the transparent range, and takes no presses. */
.ds-cap {
  position: absolute; top: -2px; bottom: -4px; width: 1.5px; margin-left: -.75px; z-index: 1; border-radius: 1px;
  background: var(--ds-pink-deep); pointer-events: none;
}
/* `.ds-pop .ds-range`, not `.ds-range`: the panel's one range style (12-card-sections.css, input[type=range]) is more
   specific than a lone class and would draw its 5px groove and crimson ball over the track */
.ds-pop .ds-range {
  position: absolute; z-index: 2; left: 0; top: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 5px;   /* DURATION SLIDER COMPACT */
  background: transparent; box-shadow: none; -webkit-appearance: none; appearance: none; cursor: pointer;
}
.ds-pop .ds-range:disabled { cursor: default; }
/* DURATION SCALE (Simon, 16 Nov 2026 06:59): on a card with Long take lengths the track is two parts -- the model's own
   range over the first 80%, the 10 s Long take steps over the last 20% -- so the native range's even steps no longer sit
   under the drawing: it keeps the value, the focus and the keys, and the track takes the presses
   (19c-duration-slider.js maps them). Every other card: the native range, as before. */
.ds-pop.ds-scaled .ds-range { pointer-events: none; }
.ds-pop.ds-scaled .ds-track { cursor: pointer; touch-action: none; }
.ds-pop .ds-range:focus { outline: none; }
.ds-pop .ds-range:focus-visible { box-shadow: 0 0 0 2px rgba(255,77,121,.55); }
.ds-pop.ds-by-pointer .ds-range:focus-visible { box-shadow: none; }   /* opened by a press: the ring waits for a key */
.ds-pop .ds-range::-webkit-slider-runnable-track { height: 18px; background: transparent; border: 0; box-shadow: none; }   /* DURATION SLIDER COMPACT: 18 (was 40) */
.ds-pop .ds-range::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 18px; margin: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.ds-track:hover .ds-rail { background: #26262d; }
.ds-pop.auto-on .ds-tick { display: none; }
.ds-pop.auto-on .ds-rail { opacity: .7; }
/* the numbers under the track, each centred on its step. DURATION SLIDER COMPACT: 9.5px, 12px tall, 4px under the track */
.ds-scale { position: relative; height: 12px; margin-top: 4px; font-size: 9.5px; font-weight: 600; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.ds-tl { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; line-height: 12px; }
.ds-tl.cap { color: var(--ds-pink); }
/* Auto (and any other word) as small pills under it. DURATION SLIDER COMPACT: 16px pills, closer */
.ds-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.ds-pop .ds-chips .ds-chip {
  height: 16px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--ds-line); background: var(--ds-deep);
  color: var(--text-dim); font: 600 9.5px/14px var(--font-ui);
}
.ds-pop .ds-chips .ds-chip:hover { color: var(--text); background: #1c1c22; }
.ds-pop .ds-chips .ds-chip.on { border-color: rgba(255,77,121,.6); background: rgba(255,77,121,.12); color: #fff; }
.ds-note { margin-top: 5px; font-size: 10px; line-height: 1.35; color: var(--text-faint); }   /* DURATION SLIDER COMPACT */
/* The duration chips other popovers borrow (extend-handles.js) keep this look. */
.ds-chip {
  height: 24px; padding: 0 10px; border-radius: var(--radius-ctl); border: 1px solid var(--border-dash);
  background: transparent; color: var(--text-dim); font: 600 11px var(--font-ui); cursor: pointer;
}
.ds-chip:hover { color: var(--text); background: var(--card-hover); }
.ds-chip.on { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.ds-chip:focus-visible { outline: 2px solid rgba(var(--accent-rgb), .6); outline-offset: 1px; }
/* The control it belongs to, while it is open. */
.ds-open { border-color: var(--accent) !important; }
/* The Create card's free-number row: a compact button in place of the bare range. */
.ds-src-hidden { display: none !important; }
.slider-row.ds-row .slider-val { display: none; }
.ds-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 9px; margin-left: auto; box-sizing: border-box;
  border: 1px solid var(--border-dash); border-radius: var(--radius-ctl); background: var(--card); color: var(--text);
  font: 600 11px var(--font-ui); cursor: pointer; white-space: nowrap;
}
.ds-btn:hover { background: var(--card-hover); }
.ds-btn[aria-expanded="true"] { border-color: var(--accent); }
.ds-btn:focus-visible { outline: 2px solid rgba(var(--accent-rgb), .6); outline-offset: 1px; }
.ds-btn-ico { display: inline-flex; color: var(--text-dim); }
.ds-btn-chev::after { content: '\25BE'; font-size: 9px; color: var(--text-dim); }
