/* Smooth UI parts: lists and counts. Office screens only; see js/su-lists.js. */

/* A digit on its way: the new digit is the real text, the old one is drawn by ::before. Clipped to
   the digit's own box, so nothing around it moves. */
.su-rd{display:inline-block;position:relative;overflow-x:visible;overflow-y:clip;vertical-align:baseline}
.su-rd > i{display:inline-block;font:inherit;font-style:normal}
/* wider than the digit's box on both sides, so a longer old number (10 to 9) stays whole and centred */
.su-rd::before{content:attr(data-o);position:absolute;left:-2em;right:-2em;top:0;text-align:center;white-space:nowrap}

/* A typed quantity's digits while they roll: over the box, which keeps the value and takes presses */
.su-stephost{position:relative}
.su-stepov{position:absolute;display:flex;align-items:center;justify-content:center;pointer-events:none;font-variant-numeric:tabular-nums;white-space:pre}
/* ⚠ The stepper gives every span inside it a minimum width (popups.css .mp-step span), and a rolling
   digit is a span: 9 to 10 stood 30 px apart while it rolled, then snapped together. */
:is(.mp-step,.tp-stp) .su-rd{min-width:0}

/* Rows that left, at the place they left from, while the rows that stayed glide */
.su-ghosts{position:absolute;overflow:hidden;pointer-events:none;z-index:2}
.su-ghost{position:absolute!important;margin:0!important;box-sizing:border-box;overflow:hidden;content-visibility:visible!important;transition:none!important}

/* The starred row passes over the others on its way */
.su-fly{position:relative;z-index:1}
.su-fly:not(.sel){background:var(--surface)}

/* The star's own press and hover had an overshoot; here they do not */
@media (prefers-reduced-motion:no-preference){
  :where(body:not(.role-tech):not(.role-driver)) :is(.cg,.cg-rec) .star{transition:transform .14s var(--ease-out),color .16s ease}
}
