/* Dailies · The Assembly (signature moment). Owner: Moment agent. Disabled with ?moment=off.
   Reuses the tokens, the player chrome, the beat bar and the Director's marks; adds the loupe,
   the verdict label, the strip the cut lands on and the quiet stage line. */

.amx{position:absolute;inset:0;display:flex;flex-direction:column;background:var(--field);touch-action:pan-y;overflow:hidden}
.amx-pl{height:calc(var(--top) + 254px);will-change:transform;transform-origin:50% 0}
.amx-pl::after{background:linear-gradient(180deg,rgba(0,0,0,.5) 0%,rgba(0,0,0,0) 26%),linear-gradient(0deg,rgba(0,0,0,.72) 0%,rgba(0,0,0,0) 44%)}
.amx-pl .p-top{position:absolute}
.amx-pl .pl-cap,.amx-pl .pl-title{display:none}
.amx-skip{height:44px;padding:0 18px;border-radius:999px;font-size:15px;line-height:20px;font-weight:600;letter-spacing:-.23px;color:#fff}
.amx-post{position:absolute;right:0;top:0;visibility:hidden;opacity:0}
.amx button:focus-visible,.amx-replay:focus-visible{outline:none;box-shadow:0 0 0 2px var(--picture),0 0 0 4px #fff}
.amx-row{align-items:center}
.amx-row .count b{display:inline-block;min-width:1.3ch;text-align:right}

/* the quiet honest line: four stages, one at a time */
.amx-stage{display:flex;align-items:center;gap:8px;font-size:13px;line-height:16px;color:var(--ink2);white-space:nowrap}
.amx-dots{display:flex;gap:3px}
.amx-dots i{display:block;width:8px;height:2px;border-radius:1px;background:var(--ink);opacity:.18}

/* the beat bar: 80 ticks over six segments; ticks draw behind a wipe, segments light as their chapter fills */
.amx-beats{position:relative;margin:12px 18px 0;height:16px;color:var(--ink);overflow:hidden;flex:none}
.amx-tk{position:absolute;inset:0}
.amx-wipe{position:absolute;left:-1px;right:-1px;top:0;bottom:0;background:var(--field);will-change:transform}
.amx-segs i{position:absolute;top:12px;height:4px;border-radius:1px;background:currentColor;opacity:0}
.amx-fl i{position:absolute;left:0;top:0;width:2px;height:10px;border-radius:1px;background:var(--tally);opacity:0}

/* the strip the cut lands on, frame right edges on ticks */
.amx-strip{position:relative;margin:7px 18px 0;height:30px;flex:none;border-radius:4px;background:var(--fill)}
.amx-strip>i{position:absolute;top:0;height:100%;border-radius:2px;background-size:cover;background-repeat:no-repeat;background-color:var(--inset);opacity:0;will-change:transform,opacity;filter:saturate(1.04) sepia(.05)}
.amx-smk{position:absolute;left:0;top:0;overflow:visible;pointer-events:none}
.amx-smk path{fill:none;stroke:var(--tally);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;opacity:0}

/* the day's 71 items, shot order: grey base, colour for the used frames, colour for the rest (which goes) */
.amx-sheet{position:relative;will-change:transform;margin:16px 12px 0;flex:none}
.amx-grid{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));column-gap:1px;row-gap:7px}
.amx-grid i{display:block;aspect-ratio:1;background-repeat:no-repeat;background-size:cover}
.amx-l{position:absolute;inset:0}
.amx-base{position:relative;filter:grayscale(1);opacity:.34}
.amx-base i{background-color:var(--inset)}
.amx-out{will-change:opacity}
.amx-out i{opacity:.36}
.amx-used i{opacity:.36}
.amx-x{position:absolute;overflow:visible;pointer-events:none;opacity:0;will-change:opacity}
.amx-x path{fill:none;stroke:var(--tally);stroke-width:1.5;stroke-linecap:round}

/* the Director's hand: loupe, mark, verdict, pencil leader */
.amx-ov{position:absolute;inset:0;pointer-events:none;z-index:5}
.amx-lead{position:absolute;left:0;top:0;overflow:visible;will-change:transform}
.amx-lead path{fill:none;stroke:var(--tally);stroke-width:1.5;stroke-linecap:round;opacity:0}
.amx-slot{position:absolute;left:0;top:0;will-change:transform,opacity;background:var(--field);box-shadow:inset 0 0 0 1px var(--tally);opacity:0}
.amx-lp{position:absolute;left:0;top:0;width:64px;height:64px;border-radius:6px;opacity:0;will-change:transform,opacity;
  box-shadow:0 14px 30px rgba(0,0,0,.45),0 0 0 1px rgba(255,255,255,.1)}
.amx-lp>i{position:absolute;inset:0;border-radius:inherit;background-size:cover;background-repeat:no-repeat;filter:saturate(1.04) contrast(1.04) sepia(.05)}
.amx-lp>i.b2{clip-path:polygon(100% 0,100% 100%,0 100%);opacity:0}
.amx-lp svg{position:absolute;left:-7.27px;top:-7.27px;width:78.55px;height:78.55px;overflow:visible;fill:none;stroke:var(--tally);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.amx-lp svg .bk{fill:var(--field);stroke:none}
.amx-lb{position:absolute;left:0;top:0;opacity:0;white-space:nowrap;pointer-events:none;
  text-shadow:0 0 8px var(--field),0 0 3px var(--field),0 0 1px var(--field)}
.amx-lb b{display:block;font-size:11px;line-height:13px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;font-stretch:expanded;color:var(--tally)}
.amx-lb small{display:block;margin-top:3px;font-size:13px;line-height:17px;font-weight:600;letter-spacing:-.08px;color:var(--ink)}

/* reduced motion: the landing frame fades in */
.amx-fade{animation:amx-fade 320ms ease both}
@keyframes amx-fade{from{opacity:0}to{opacity:1}}

/* #cut: a quiet way to see it again */
.amx-replay{display:inline-flex;align-items:center;gap:6px;min-height:44px;font-size:13px;line-height:16px;font-weight:500;color:var(--ink2);letter-spacing:-.08px}
.amx-replay svg.i{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.amx-replay.inline{margin:-6px 0 -10px}
.amx-replay.float{position:absolute;left:50%;top:calc(var(--top) + 4px);z-index:6;transform:translateX(-50%);height:44px;padding:0 14px;border-radius:999px;color:#fff;
  background:rgba(28,28,30,.55);-webkit-backdrop-filter:blur(20px) saturate(1.8);backdrop-filter:blur(20px) saturate(1.8);box-shadow:inset 0 1px 0 rgba(255,255,255,.34),inset 0 0 0 .5px rgba(255,255,255,.2)}
.amx-replay:hover{color:var(--ink)}
.amx-replay.float:hover{color:#fff}

@media (prefers-reduced-motion:reduce){
  .amx-replay{transition:none}
}

/* containment: a text or style change in one band never re-lays out the others */
.amx{contain:strict}
.amx-row,.amx-pl .p-bot{contain:layout style}
.amx-beats,.amx-strip{contain:strict}
.amx-sheet{contain:layout style}
.amx-ov{contain:layout style size}
.amx-lb{contain:layout style}
