/* lt-motion.css: the motion layer of the laptop screens (motion batch, 19 Nov 2026). Only motion is added here, plus the
   few parts that exist only to move (the message pile, rolling digits, the ask control, the moving status mark, the drag
   ghost, the empty places). Moves are driven from lt-motion.js through Element.animate, so no CSS transition here fights a
   spring. Every element made only to move carries data-mo (crm-watch.js fence). */
@media (min-width: 761px) {

  /* ---- the message pile: the kit's dark pills, bottom right, above the question box (#m-ask 2100) ---- */
  :where(body.lt-on) .lmo-host { z-index: 2200; }
  :where(body.lt-on) .lmo-pile { transition: none; touch-action: pan-y; }
  :where(body.lt-on) .lmo-pile > .m-toast { transition: none; will-change: transform; user-select: none; -webkit-user-select: none; cursor: grab; touch-action: pan-y; border-radius: 24px; }
  /* the app's notes can be long: they wrap inside the pill (one line still sits exactly in the kit's 48px pill) */
  :where(body.lt-on) .lmo-pile > .m-toast > .m-t { padding: 13px 0; line-height: 22px; white-space: normal; overflow-wrap: anywhere; }
  :where(body.lt-on) .lmo-pile > .m-toast.lis-drag { cursor: grabbing; }
  :where(body.lt-on) .lmo-pile .m-clock .m-left { transition: none; }
  /* a button a screen adds to its note itself (the job page's "Update report") looks like the note's own button */
  :where(body.lt-on) .lmo-pile > .m-toast > button:not(.m-act) { flex: none; min-height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: none; color: var(--sp-bg); font: inherit; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
  :where(body.lt-on) .lmo-pile > .m-toast > button:not(.m-act):focus-visible { outline: 2px solid var(--sp-red); outline-offset: 1px; }

  /* ---- the old pop-ups (.ov > .modal) rise 8px from .96 on the spring (--lmo-move, set by lt-motion.js); closing stays as
     it is (closeModal hides at once). Never for a technician or a driver. ---- */
  :where(body.lt-on) .ov:not(.hidden) > .modal:not(:where(body.role-tech *, body.role-driver *)) { animation: lmoRise var(--lmo-move, .24s cubic-bezier(.16,1,.3,1)) both; }
  @keyframes lmoRise { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }

  /* ---- tabs: the piece is moved by the spring from script ---- */
  :where(body.lt-on) .tb-piece.lmo-piece { transition: none; }

  /* ---- rolling numbers: the new digit is the real text, the old one is drawn above it and leaves; the line never grows ---- */
  :where(body.lt-on) .lmo-d { position: relative; display: inline-block; height: 1lh; overflow: hidden; vertical-align: top; }
  :where(body.lt-on) .lmo-d > i { display: inline-block; font-style: inherit; }
  :where(body.lt-on) .lmo-d::before { content: attr(data-o); position: absolute; left: 50%; top: 0; transform-origin: 50% 50%; translate: -50% 0; white-space: nowrap; }

  /* ---- delete that asks first: only the width moves; the face sits against the right edge. Outside the parts kit (the
     right-click menu, the record's menus) the kit's colours fall back to the app's own ---- */
  :where(body.lt-on) .lmo-gone { display: none !important; }
  :where(body.lt-on) .lmo-ask { position: relative; display: inline-flex; flex: none; box-sizing: border-box; border-radius: 999px; background: var(--sp-bg, var(--surface, #fff)); box-shadow: inset 0 0 0 1.5px var(--tg-red-t, #b3121c); overflow: hidden; vertical-align: middle; }
  :where(body.lt-on) .lmo-ask-face { position: absolute; right: 0; top: 0; bottom: 0; display: flex; align-items: center; gap: 4px; padding: 0 3px; white-space: nowrap; }
  :where(body.lt-on) .lmo-ask-face > * { flex: none; }
  :where(body.lt-on) .lmo-ask-q { padding: 0 6px 0 12px; font-size: 15px; font-weight: 600; color: var(--sp-ink, var(--ink, #272725)); }
  :where(body.lt-on) .lmo-ask button { min-height: 0; height: calc(100% - 6px); margin: 0; padding: 0 14px; border: 0; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
  :where(body.lt-on) .lmo-ask .lmo-no { background: var(--sp-wash, rgba(127, 127, 127, .16)); color: var(--sp-ink, var(--ink, #272725)); }
  :where(body.lt-on) .lmo-ask .lmo-yes { background: var(--sp-red-fill, #d9252e); color: var(--sp-on-red, #fff); }
  :where(body.lt-on) .lmo-ask button:active { scale: .97; }
  :where(body.lt-on) .lmo-ask button:focus-visible { outline: 2px solid var(--sp-ink, var(--ink, #272725)); outline-offset: 1px; }
  :where(body.lt-on) #rcMenu .lmo-ask, :where(body.lt-on) .cg-pop .lmo-ask { display: flex; min-height: 40px; margin: 2px 4px; }

  /* ---- status shape change: the moving mark sits exactly over the kit's ring mark ---- */
  :where(body.lt-on) .tg.lmo-morphing { position: relative; }
  :where(body.lt-on) .lmo-shape { position: absolute; left: 0; top: 50%; width: 16px; height: 16px; margin-top: -8px; color: var(--m, currentColor); pointer-events: none; overflow: visible; will-change: transform; }
  :where(body.lt-on) .lmo-shape path { fill: currentColor; }

  /* ---- drag to move on the Plan: the card under the pointer; the one left behind waits faintly ---- */
  :where(body.lt-on) .lmo-ghost { position: fixed; z-index: 40; margin: 0; pointer-events: none; will-change: transform; box-shadow: 0 14px 34px var(--sp-shadow, rgba(0, 0, 0, .18)), 0 0 0 1px var(--sp-line, rgba(0, 0, 0, .12)); cursor: grabbing; }
  :where(body.lt-on) .lmo-left { opacity: .35; }

  /* ---- empty places: why it is empty, and one button when that login may do it ---- */
  :where(body.lt-on) .lmo-empty { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0; padding: 18px 4px; }
  :where(body.lt-on) .lmo-empty > p { margin: 0; font-size: 15px; color: var(--sp-grey, var(--ink-soft, #62615c)); }
  :where(body.lt-on) .lmo-empty > .k-btn { flex: none; }

  /* ---- the zoom chart on Visit summary (lt-zoom.js). Its FINAL height from the first frame, so nothing below it moves when
     the bars arrive. Two kinds kept apart: sales visits in the info blue, service visits in near-ink; booked days after today
     are outlined; the legend says it in words. Text 14px and up. ---- */
  :where(body.lt-on) .lzc-card { --lzc-s: var(--sp-info); --lzc-r: color-mix(in srgb, var(--sp-ink) 78%, var(--sp-bg)); height: 336px; box-sizing: border-box; margin: 0 0 22px; padding: 16px 18px 14px; border: 1px solid var(--sp-line); border-radius: 16px; background: var(--sp-bg); overflow: hidden; contain: layout paint style; }
  :where(body.lt-on) .lzc-card[hidden] { display: none; }
  :where(body.lt-on) .lzc { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 20px; height: 100%; }
  :where(body.lt-on) .lzc-main { min-width: 0; }
  :where(body.lt-on) .lzc-bar { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 8px 16px; height: 44px; margin-bottom: 6px; }
  :where(body.lt-on) .lzc-title { position: relative; height: 30px; min-width: 0; flex: 1 1 auto; overflow: hidden; }
  :where(body.lt-on) .lzc-title-t, :where(body.lt-on) .lzc-title .lzc-old { position: absolute; left: 0; top: 0; white-space: nowrap; font-size: 20px; font-weight: 700; line-height: 30px; color: var(--sp-ink); }
  :where(body.lt-on) .lzc-level.tb { width: auto; flex: none; }
  :where(body.lt-on) .lzc-plot { position: relative; height: 180px; border-radius: 12px; touch-action: none; cursor: grab; outline: none; overscroll-behavior: contain; user-select: none; -webkit-user-select: none; }
  :where(body.lt-on) .lzc-plot.lis-drag { cursor: grabbing; }
  :where(body.lt-on) .lzc-plot:focus-visible { box-shadow: 0 0 0 2px var(--sp-ink); }
  :where(body.lt-on) .lzc-svg { display: block; width: 100%; height: 100%; overflow: hidden; }
  :where(body.lt-on) .lzc-svg .lzc-bs { fill: var(--lzc-s); }
  :where(body.lt-on) .lzc-svg .lzc-br { fill: var(--lzc-r); }
  :where(body.lt-on) .lzc-svg .lzc-bp { fill: var(--sp-bg); stroke-width: 1.5; stroke-dasharray: 4 3; }
  :where(body.lt-on) .lzc-svg .lzc-bps { stroke: var(--lzc-s); }
  :where(body.lt-on) .lzc-svg .lzc-bpr { stroke: var(--lzc-r); }
  :where(body.lt-on) .lzc-svg .lis-hot { opacity: .78; }
  :where(body.lt-on) .lzc-svg .lis-sel { stroke: var(--sp-ink); stroke-width: 2; }
  :where(body.lt-on) .lzc-svg .lzc-n { fill: var(--sp-ink); font: 600 14px var(--sp-font); font-variant-numeric: tabular-nums; text-anchor: middle; }
  :where(body.lt-on) .lzc-svg .lzc-x { fill: var(--sp-grey); font: 400 14px var(--sp-font); text-anchor: middle; }
  :where(body.lt-on) .lzc-svg .lzc-base { stroke: var(--sp-line); stroke-width: 1; }
  :where(body.lt-on) .lzc-svg .lzc-wk { fill: var(--sp-wash); }
  :where(body.lt-on) .lzc-svg .lzc-tl { stroke: var(--sp-red); stroke-width: 1.5; }
  :where(body.lt-on) .lzc-svg .lzc-tt { fill: var(--sp-red); font: 600 14px var(--sp-font); }
  :where(body.lt-on) .lzc-nil { position: absolute; left: 0; right: 0; top: 50%; margin: -12px 0 0; text-align: center; font-size: 15px; line-height: 24px; color: var(--sp-grey); pointer-events: none; }
  :where(body.lt-on) .lzc-nil[hidden] { display: none; }
  :where(body.lt-on) .lzc-tip { position: absolute; z-index: 2; top: 2px; left: 0; padding: 4px 12px; border-radius: 999px; background: var(--sp-ink); color: var(--sp-bg); font-size: 14px; font-weight: 500; white-space: nowrap; pointer-events: none; }
  :where(body.lt-on) .lzc-tip[hidden] { display: none; }
  :where(body.lt-on) .lzc-mini { position: relative; height: 32px; margin-top: 8px; border-radius: 10px; background: var(--sp-wash); touch-action: none; cursor: pointer; overflow: hidden; }
  :where(body.lt-on) .lzc-mini-svg { display: block; width: 100%; height: 100%; }
  :where(body.lt-on) .lzc-mini-svg path { fill: color-mix(in srgb, var(--sp-ink) 30%, var(--sp-bg)); }
  :where(body.lt-on) .lzc-win { position: absolute; top: 0; bottom: 0; left: 0; width: 100%; border-radius: 8px; box-shadow: inset 0 0 0 2px var(--sp-red-fill); background: color-mix(in srgb, var(--sp-red-fill) 12%, transparent); cursor: grab; }
  :where(body.lt-on) .lzc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 22px; margin-top: 10px; font-size: 14px; line-height: 22px; color: var(--sp-grey); white-space: nowrap; }
  :where(body.lt-on) .lzc-legend { display: flex; align-items: center; gap: 16px; min-width: 0; overflow: hidden; }
  :where(body.lt-on) .lzc-key { display: inline-flex; align-items: center; gap: 6px; color: var(--sp-ink); }
  :where(body.lt-on) .lzc-key[hidden] { display: none; }
  :where(body.lt-on) .lzc-pk { color: var(--sp-grey); }
  :where(body.lt-on) .lzc-only { overflow: hidden; text-overflow: ellipsis; }
  :where(body.lt-on) .lzc-sw { flex: none; display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
  :where(body.lt-on) .lzc-sw.lzc-s { background: var(--lzc-s); }
  :where(body.lt-on) .lzc-sw.lzc-r { background: var(--lzc-r); }
  :where(body.lt-on) .lzc-sw.lzc-p { box-sizing: border-box; border: 1.5px dashed var(--sp-grey); }
  :where(body.lt-on) .lzc-und { flex: none; }
  :where(body.lt-on) .lzc-side { display: grid; align-content: start; gap: 14px; min-width: 0; padding: 2px 0 0 18px; border-left: 1px solid var(--sp-rule); }
  :where(body.lt-on) .lzc-stat { display: grid; gap: 2px; min-width: 0; }
  :where(body.lt-on) .lzc-stat[hidden] { display: none; }
  :where(body.lt-on) .lzc-k { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--sp-grey); }
  :where(body.lt-on) .lzc-v { font-size: 15px; font-weight: 600; color: var(--sp-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  :where(body.lt-on) .lzc-big { font-size: 28px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; color: var(--sp-ink); font-variant-numeric: tabular-nums; }
  :where(body.lt-on) .lzc-sub { min-height: 20px; font-size: 14px; line-height: 20px; color: var(--sp-grey); }
  :where(body.lt-on) .lzc-zoom { display: flex; align-items: center; gap: 4px; }
  :where(body.lt-on) .lzc-zoom .k-btn { margin-left: 4px; }

  /* ---- less motion asked for: nothing here moves ---- */
  @media (prefers-reduced-motion: reduce) {
    :where(body.lt-on) .ov:not(.hidden) > .modal { animation: none; }
  }
}
