/*
 * TAG Legal Desk v2.1, J154 (settled 29 Sep 2026): the Atelier's effect levels and No clip (js\v21_atelier_levels.js).
 *   1. The Settings group "Effects and pointer play": the switches, ten sliders (two columns from 700 px, one below),
 *      tabular numbers, and the sliders in High contrast and forced colours.
 *   2. All effects under 5 percent (html[data-atl-fx="still"]): every still rule the quiet states have in
 *      styles\v21_colours_fx.css and styles\v21_colours_more.css, so the J121 and J150 effect colours show plain,
 *      and colleagues' pointers show their plain colour.
 *   3. Other people's effects at 0 (html[data-atl-others="off"]): a colleague's effect pointer drawn plain, as a
 *      pointer that is not live (styles\v21_cursors.css), its J150 pattern plain too; Pointer trails at 0
 *      (html[data-atl-trails="off"]): no J121 trail pieces; Collision particles at 0 (html[data-atl-impacts-off]) or
 *      almost off: no J125 spark burst.
 *   4. The pointer shape a hook puts into a colleague's arrow (js\v21_cursors.js, class v21cur-shape): the arrow's
 *      box offset by --v21cur-tipx and --v21cur-tipy so the shape's tip is the point, the outline shape and the
 *      double edge.
 * The sliders only scale cosmetics: nothing here touches a control, a focus ring, a toast, welfare or the pointers
 * themselves. No colour here carries meaning.
 */

/* ======================================================================= 1. the Settings group */

.atl-group .atl-row > span:first-child { min-width: 0; }
.atl-group .atl-row .set-hint { max-width: 40ch; }
.atl-levels { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 24px; margin: 4px 0; }
@media (min-width: 700px) {
  .atl-levels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.atl-level { display: grid; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--line, rgba(0, 0, 0, .12)); min-width: 0; }
.atl-label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: .875rem; }
.atl-label > span { min-width: 0; }
.atl-out { font-variant-numeric: tabular-nums; min-width: 4ch; text-align: right; color: var(--ink-2, inherit); }
.atl-group input[type="range"].atl-range { width: 100%; min-height: 32px; margin: 0; accent-color: var(--brand); }
.atl-ends { display: flex; justify-content: space-between; font-size: .75rem; color: var(--ink-3, inherit); font-variant-numeric: tabular-nums; }
.atl-buttons { justify-content: flex-start; flex-wrap: wrap; }
.atl-others, .atl-only, .atl-note { margin: 0; }
.atl-extra { display: grid; gap: 10px; }

/* Dark: the same green as the desk's switches in dark (styles\desk.css), so the filled track reads on the dark sheet. */
:root[data-theme="dark"] .atl-group input[type="range"].atl-range { accent-color: #3F7A47; }
:root[data-theme="high_contrast"] .atl-level { border-bottom: 2px solid var(--ink, #000000); }
:root[data-theme="high_contrast"] .atl-group input[type="range"].atl-range { accent-color: var(--ink, #000000); }
:root[data-theme="high_contrast"] .atl-ends, :root[data-theme="high_contrast"] .atl-out { color: var(--ink, #000000); }
@media (forced-colors: active) {
  .atl-level { border-bottom: 1px solid CanvasText; }
  .atl-group input[type="range"].atl-range { accent-color: Highlight; forced-color-adjust: auto; }
  .atl-ends, .atl-out { color: CanvasText; }
}

/* ======================================================================= 2. All effects almost off: still */

/* styles\v21_colours_fx.css, the quiet state's still rules. */
html[data-atl-fx="still"] .v21-fx-l { display: none !important; }
html[data-atl-fx="still"] .v21-fxn::before, html[data-atl-fx="still"] .v21-fxn::after { display: none !important; }
html[data-atl-fx="still"] .av.v21-fxs-round { box-shadow: 0 0 0 2px var(--solid); }
/* styles\v21_colours_more.css: a pattern shows its plain colour too (the reduced motion rule that keeps a pattern
   is outranked here by an id's weight, as that file does for the places a pattern never shows). */
:root:not(#v21pt-never)[data-atl-fx="still"] .v21-fxf-pattern > .v21-fx-l1 { display: none !important; }
html[data-atl-fx="still"] .v21cs-orb.v21-fxf-pattern .v21cs-orb-in { background-image: none; }

/* ======================================================================= 3. colleagues' pointers plain; no trail */

/* A pointer that is not live in styles\v21_cursors.css: its plain colour, nothing moving, no glow or sheen. */
html[data-atl-others="off"] .v21cur-live .v21cur-body,
html[data-atl-fx="still"] .v21cur-live .v21cur-body,
html[data-atl-others="off"] .v21cur-live .v21cur-tag,
html[data-atl-fx="still"] .v21cur-live .v21cur-tag { animation: none !important; }
html[data-atl-others="off"] .v21cur-live .v21cur-halo,
html[data-atl-others="off"] .v21cur-live .v21cur-sheen,
html[data-atl-others="off"] .v21cur-live .v21cur-glow,
html[data-atl-others="off"] .v21cur-live .v21cur-tag::after,
html[data-atl-others="off"] .v21cur-live .v21cur-tagw::before,
html[data-atl-others="off"] .v21cur-live .v21cur-tagw::after,
html[data-atl-others="off"] .v21cur-live .v21cur-glow::before,
html[data-atl-fx="still"] .v21cur-live .v21cur-halo,
html[data-atl-fx="still"] .v21cur-live .v21cur-sheen,
html[data-atl-fx="still"] .v21cur-live .v21cur-glow,
html[data-atl-fx="still"] .v21cur-live .v21cur-tag::after,
html[data-atl-fx="still"] .v21cur-live .v21cur-tagw::before,
html[data-atl-fx="still"] .v21cur-live .v21cur-tagw::after,
html[data-atl-fx="still"] .v21cur-live .v21cur-glow::before { display: none !important; }
html[data-atl-others="off"] .v21cur-live .v21cur-fill,
html[data-atl-fx="still"] .v21cur-live .v21cur-fill { fill: var(--v21cur-c) !important; }
html[data-atl-others="off"] .v21cur-live .v21cur-svg,
html[data-atl-fx="still"] .v21cur-live .v21cur-svg { filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .32)) drop-shadow(0 3px 7px color-mix(in srgb, var(--v21cur-c) 40%, transparent)); }
html[data-atl-others="off"] .v21cur-live .v21cur-tag,
html[data-atl-fx="still"] .v21cur-live .v21cur-tag { background: var(--v21cur-c) !important; border-color: var(--v21cur-edge) !important; box-shadow: none !important; }
html[data-atl-others="off"] .v21cur-tp,
html[data-atl-fx="still"] .v21cur-tp,
html[data-atl-trails="off"] .v21cur-tp { display: none !important; }
/* J150: a colleague's pattern shows its plain colour (the arrow's pattern fill, the patterned click ring and tag), as
   High contrast does in styles\v21_colours_more.css. */
html[data-atl-fx="still"] .v21cur-pat .v21cur-pfill,
html[data-atl-others="off"] .v21cur-pat .v21cur-pfill { display: none !important; }
html[data-atl-fx="still"] .v21cur-pat .v21cur-pulse,
html[data-atl-others="off"] .v21cur-pat .v21cur-pulse,
html[data-atl-fx="still"] .v21cur-pat .v21cur-tag,
html[data-atl-others="off"] .v21cur-pat .v21cur-tag { background-image: none !important; }
/* J125 (it reads NS.motion.reduced, not these sliders): Collision particles at 0 or All effects almost off hide its
   spark burst, as reduced motion does in styles\v21_cursors.css; at almost off its ring holds still as reduced
   motion holds it. The ring stays at every level: it tells you your pointer was bumped. The J125 thud is its own
   (js\v21_cursors.js), left as it is. */
html[data-atl-fx="still"] .v21cur-burst,
html[data-atl-impacts-off] .v21cur-burst { display: none !important; }
html[data-atl-fx="still"] .v21cur-bumpmark::before { animation: none !important; opacity: .9; transform: none; }

/* ======================================================================= 4. a shape in a colleague's arrow */

/* The sheen's clip is the desk arrow, so a shape hides it for now; atl_looks is to give a shape its own sheen (a clip
   from the shape's path, or a sweep on .v21cur-fill), and then this rule goes (register J169: a bought shape keeps
   its sheen for colleagues). */

.v21cur-shape .v21cur-svg {
  left: var(--v21cur-tipx, -4px); top: var(--v21cur-tipy, -2px);
  width: var(--v21cur-sw, 24px); height: var(--v21cur-sh, 24px);
}
.v21cur-shape .v21cur-sheen { display: none !important; }
.v21cur-outline .v21cur-fill { fill-opacity: .1; }
.v21cur-outline .v21cur-pfill { fill-opacity: .1; }
.v21cur-inner { display: none; }
.v21cur-double .v21cur-inner { display: inline; fill: none; stroke: #23392D; stroke-width: 1.2px; stroke-linejoin: round; }
@media (forced-colors: active) {
  .v21cur-double .v21cur-inner { stroke: Canvas; }
}
