/* ═══ MOTION ══════════════════════════════════════════════════════════════════
   Item 9. He said the app has too little and asked for a list; he never picked
   from it, so this is the restrained half — the ones that tell you something.

   WHAT IS HERE
     · rows arrive one after another when a screen opens
     · a button presses in (the phone has no hover, so this is its only reply)
     · a count counts up  → js/motion.js

   WHAT IS DELIBERATELY NOT
     · a row sliding to its new place — it needs every list to keep identities
       across a redraw, and this app rebuilds lists with innerHTML.
     · a tick that draws itself — there are four ticks in the whole app.
     · grey shapes instead of "Looking…" — that is a rebuild of every loading
       state, not an animation, and it should be its own decision.

   ⚠ ONE CURVE, THE APP'S OWN: --ease-out for things arriving. Nothing here
   invents a second timing language.
   ⚠ NOTHING MOVES MORE THAN 6px AND NOTHING LASTS LONGER THAN 320ms. Past that
   it stops being feedback and becomes something you wait for — and he opens
   these screens forty times a day.
   ═════════════════════════════════════════════════════════════════════════════ */

/* ── a screen arrives piece by piece ──────────────────────────────────────
   6 Oct 2026, his "build it" after the motion prototype. js/reveal.js brings in
   the title, the boxes and the cards one after another, and while it does the
   screen itself must not ALSO rise as one sheet — that would move everything twice.
   reveal.js puts .rv-on on the screen only where it runs (not phones, not the
   technician / driver / wall screens), so everywhere else the old fade stays. */
.fade-in.rv-on{animation:none}

/* ── rows arrive ──────────────────────────────────────────────────────────
   ⚠ NO JAVASCRIPT AND NO CHANGES TO ANY LIST. showView already puts .fade-in on
   the screen it is opening, so the rows of that screen can be staggered off the
   same class. Nothing has to remember to ask for this, and nothing can forget.
   ⚠ THE FIRST TEN ONLY. A stagger down 577 customers is a wave that takes four
   seconds; past the tenth row the delay is the same and the eye cannot tell. */
@media (prefers-reduced-motion:no-preference){
  @keyframes rowIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

  /* ⚠ .dirrow, NOT .custrow. custrow is the old SIDEBAR row and the sidebar is a
     56px rail now — the customer list draws dirrow, and a rule naming the wrong
     class is a rule that quietly does nothing. Files draws fl-cell. Both were
     found by asking the rendered page, not by reading the code. */
  .fade-in .dirrow,
  .fade-in .mtrow,
  .fade-in .mlrow,
  .fade-in .ov-frow,
  .fade-in .ov-sumrow,
  .fade-in .fl-cell,
  .fade-in .home-app,
  .fade-in .bd-card{animation:rowIn .26s var(--ease-out) both}
  .fade-in .dirrow:nth-child(1),.fade-in .mtrow:nth-child(1),.fade-in .mlrow:nth-child(1),
  .fade-in .fl-cell:nth-child(1),.fade-in .home-app:nth-child(1){animation-delay:0ms}
  .fade-in .dirrow:nth-child(2),.fade-in .mtrow:nth-child(2),.fade-in .mlrow:nth-child(2),
  .fade-in .fl-cell:nth-child(2),.fade-in .home-app:nth-child(2){animation-delay:18ms}
  .fade-in .dirrow:nth-child(3),.fade-in .mtrow:nth-child(3),.fade-in .mlrow:nth-child(3),
  .fade-in .fl-cell:nth-child(3),.fade-in .home-app:nth-child(3){animation-delay:36ms}
  .fade-in .dirrow:nth-child(4),.fade-in .mtrow:nth-child(4),.fade-in .mlrow:nth-child(4),
  .fade-in .fl-cell:nth-child(4),.fade-in .home-app:nth-child(4){animation-delay:54ms}
  .fade-in .dirrow:nth-child(5),.fade-in .mtrow:nth-child(5),.fade-in .mlrow:nth-child(5),
  .fade-in .fl-cell:nth-child(5),.fade-in .home-app:nth-child(5){animation-delay:72ms}
  .fade-in .dirrow:nth-child(6),.fade-in .mtrow:nth-child(6),.fade-in .mlrow:nth-child(6),
  .fade-in .fl-cell:nth-child(6),.fade-in .home-app:nth-child(6){animation-delay:90ms}
  .fade-in .dirrow:nth-child(7),.fade-in .mtrow:nth-child(7),.fade-in .mlrow:nth-child(7),
  .fade-in .fl-cell:nth-child(7),.fade-in .home-app:nth-child(7){animation-delay:105ms}
  .fade-in .dirrow:nth-child(8),.fade-in .mtrow:nth-child(8),.fade-in .mlrow:nth-child(8),
  .fade-in .fl-cell:nth-child(8),.fade-in .home-app:nth-child(8){animation-delay:118ms}
  .fade-in .dirrow:nth-child(9),.fade-in .mtrow:nth-child(9),.fade-in .mlrow:nth-child(9),
  .fade-in .fl-cell:nth-child(9),.fade-in .home-app:nth-child(9){animation-delay:129ms}
  /* the tenth and everything after it arrive together */
  .fade-in .dirrow:nth-child(n+10),.fade-in .mtrow:nth-child(n+10),
  .fade-in .mlrow:nth-child(n+10),.fade-in .fl-cell:nth-child(n+10),
  .fade-in .home-app:nth-child(n+10){animation-delay:138ms}
}

/* ── a button presses in ──────────────────────────────────────────────────
   ⚠ THIS IS THE PHONE'S ONLY REPLY. There is no hover on a touch screen, so
   without it a tap on a technician's screen looks like nothing happened until
   the next screen arrives. A few controls already had it; every one has it now.
   ⚠ NOT on a row in a list — a row already lights up, and a row that also sinks
   reads as a drag starting. */
.btn-primary,.btn-line,.foot-link,.nav,.seglink,.chip,.dtab,.mcatchip,
.tb-me,.tb-br,.st-side button,.cp-hit,.as-tabs .dtab,.as-tabs .tab,
.fl-kind,.mm-mini,.mm-link,.tl-b,.r2-tab{
  transition:transform .08s var(--ease-out)}
.btn-primary:active,.btn-line:active,.foot-link:active,.nav:active,.seglink:active,
.chip:active,.dtab:active,.mcatchip:active,.tb-me:active,.tb-br:active,
.st-side button:active,.cp-hit:active,.as-tabs .dtab:active,.as-tabs .tab:active,
.fl-kind:active,.mm-mini:active,.mm-link:active,.tl-b:active,.r2-tab:active{
  transform:scale(.972)}
@media (prefers-reduced-motion:reduce){
  .btn-primary,.btn-line,.foot-link,.nav,.seglink,.chip,.dtab,.mcatchip,
  .tb-me,.tb-br,.st-side button,.cp-hit,.fl-kind,.tl-b,.r2-tab{transition:none}
  .btn-primary:active,.btn-line:active,.foot-link:active,.nav:active{transform:none}
}

/* ── a count counts up ────────────────────────────────────────────────────
   The number itself is written by js/motion.js. This only stops the width
   jittering while it runs: tabular figures are all the same width, so 0 → 577
   does not shuffle everything beside it. */
.figure,.ov-stat .n,.stat .n{font-variant-numeric:tabular-nums}
