/* THE TUTORIAL VOLUME (js/learn-volume.js; Simon, 5 Nov 2026: "Add a volume
   slider to the tutorials and app walkthroughs"). The timeline's slider
   (css/nle/10-viewer.css, .nle-volwrap) in the app's control tokens: a
   speaker button in --ctl-surface, the slider sliding out to its right on
   hover, while dragging, or while it has the keyboard, with the level
   beside it. */
.lv-wrap { display: inline-flex; align-items: center; flex: none; }
.lv-wrap.hidden { display: none; }
.lv-mute { width: 28px; height: 28px; flex: none; display: inline-flex; align-items: center; justify-content: center; padding: 0;
  background: var(--ctl-surface); border: 1px solid var(--ctl-line); border-radius: var(--ctl-r); color: var(--ctl-text); cursor: pointer; }
.lv-mute:hover { background: var(--ctl-surface-hover); border-color: var(--ctl-line-hover); color: #fff; }
.lv-mute.off { color: var(--text-faint); }
.lv-mute.off:hover { color: var(--text-dim); }
.lv-mute:focus-visible { outline: none; box-shadow: var(--focus-ring); }
/* the slider says it has the keyboard on its knob (its well clips a ring) */
.lv-track:focus-visible { outline: none; }
.lv-track:focus-visible .lv-fill::after { box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 0 0 3px rgba(var(--accent-rgb), .55); }
.lv-mute svg { width: 14px; height: 14px; }
.lv-pop { display: inline-flex; align-items: center; width: 0; overflow: hidden; opacity: 0; transition: width .15s ease, opacity .15s ease; }
.lv-wrap:hover .lv-pop, .lv-wrap.drag .lv-pop, .lv-wrap:focus-within .lv-pop { width: 118px; opacity: 1; }
.lv-track { position: relative; flex: none; width: 70px; height: 16px; margin: 0 6px 0 8px; border-radius: 3px; cursor: pointer; touch-action: none; }
.lv-track::before { content: ''; position: absolute; left: 0; right: 0; top: 7px; height: 3px; border-radius: 2px; background: var(--ctl-line-hover); }
.lv-fill { position: absolute; left: 0; top: 7px; height: 3px; border-radius: 2px; background: var(--accent); }
.lv-fill::after { content: ''; position: absolute; right: -5px; top: -3.5px; width: 10px; height: 10px;
  border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.4); }
.lv-num { width: 34px; flex: none; font-size: var(--ctl-fs-sm); color: var(--text-dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* The walkthrough's header: the Close button's height (--ctl-h-sm). */
#tut-modal .tm-head .lv-mute { width: var(--ctl-h-sm); height: var(--ctl-h-sm); border-radius: var(--ctl-r-sm); }
