/* GENERATED FILE - DO NOT EDIT.
   Source: shared/motion.css - run `npm run sync:shared` after editing. */

/* The welcome screen opening from a card: its photo is already there, no slow fade. */
.welcome.is-grow { animation: none !important; }
.welcome.is-grow .welcome-cover img { opacity: 1; animation: welcome-kenburns 22s ease-in-out infinite alternate; }
/* …and with no card to open from (a link, a push, the start-up screen): there in its first frame, nothing drawn under it shows */
.welcome.is-cut { animation: none !important; }

/* Paper: the header sizes and the page's rounded top are for screens. */
@media print {
  html.wb-new .mast { min-height: 0 !important; }
  html.wb-new .sheet::before { display: none; }
}

/* A photo on its way: a skeleton, never an empty box. Still colour for "Reduce motion" and old phones. */
img.lb-img-wait {
  background: #ece6da;
  color: transparent;
}

/* A total that rolls (shared/roll-number.js) has even-width figures, as in the mock: the counting frames keep the final
   figure's width, so they never run into the words beside it. */
[data-roll],
.bal-sum > b,
.bal-net li.is-total > b,
.bal-who > .bal-left {
  font-variant-numeric: tabular-nums;
}

/* One set of speeds for windows, menus and content, web + app (owner 2026-11-04; shared/motion.js). Transform and opacity
   only. Fill is "backwards": a kept transform would clip date pickers and menus inside a window. */
:root {
  /* the one curve (ease-out) and the three speeds everything uses (motion pass 2026-11-12): a press, a small change
     (a tab's content, its line, a photo), a sheet / window / page. Nothing runs longer than 300 ms. */
  --lb-mo-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --lb-mo-press: 120ms;
  --lb-mo-small: 200ms;
  --lb-mo-page: 260ms;
  --lb-mo-in: 240ms;
  --lb-mo-out: 170ms;
  --lb-mo-fast: 140ms;
}

@media (prefers-reduced-motion: no-preference) {
  /* ——— windows ——— */
  .lb-mo-in {
    animation: lb-mo-rise var(--lb-mo-in) var(--lb-mo-ease) backwards;
  }
  dialog.lb-mo-in::backdrop {
    animation: lb-mo-fade var(--lb-mo-in) ease-out backwards;
  }
  dialog.lb-mo-ghost {
    position: fixed !important;
    z-index: 2147482000;
    display: block;
    box-sizing: border-box;
    inset: auto;
    margin: 0 !important;
    overflow: hidden;
    pointer-events: none;
    animation: lb-mo-sink var(--lb-mo-out) ease-in forwards;
  }
  .lb-mo-shade {
    position: fixed;
    z-index: 2147481999;
    inset: 0;
    background: rgba(20, 30, 25, 0.45);
    pointer-events: none;
    animation: lb-mo-unfade var(--lb-mo-out) ease-in forwards;
  }

  /* ——— menus: they open from their button ——— */
  [role="menu"]:not([hidden]),
  [data-day-menu]:not([hidden]) {
    transform-origin: top center;
    animation: lb-mo-menu var(--lb-mo-fast) var(--lb-mo-ease) backwards;
  }

  html:not(.lb-mo-lite) img.lb-img-wait {
    background: linear-gradient(100deg, #ece6da 30%, #f7f2e8 50%, #ece6da 70%) 0 0 / 220% 100%;
    animation: lb-img-shimmer 1.3s linear infinite;
  }

  /* ——— a window opening from the card you tapped ——— */
  .lb-mo-grow.lb-mo-in {
    animation-name: lb-mo-grow;
    animation-duration: var(--lb-mo-page);
  }

  /* ——— a day: from the side you're going ——— */
  .lb-mo-slide {
    animation: lb-mo-slide var(--lb-mo-in) var(--lb-mo-ease) backwards;
  }

  /* ——— a photo arriving, a row you just changed ——— */
  .lb-mo-photo {
    animation: lb-mo-fade var(--lb-mo-small) var(--lb-mo-ease) backwards;
  }
  /* the Day Tour's "Tracing your day…" shows only when the day's map is slow (shared/day-recap.js, after 150 ms): it eases
     into the box the page already holds for it, never popping in (bug hunt 2026-11-12 High 1). Only LakBi and the words
     fade: the box's paper is there at full strength from its first frame, or the map's grey shows through for a frame
     (re-check 2026-11-12) — the mascot keeps its bob */
  .dr-box.dr-wait > .dr-prep > :not(img) {
    animation: lb-mo-fade var(--lb-mo-small) var(--lb-mo-ease) backwards;
  }
  .dr-box.dr-wait > .dr-prep > img {
    animation: lb-mo-fade var(--lb-mo-small) var(--lb-mo-ease) backwards, dr-bob 1s ease-in-out infinite;
  }
  /* a total that changed rolls to its new figure (shared/roll-number.js, owner-approved controls mock 2026-11-12): the
     final figure keeps its room, unseen, and the counting frames are drawn over it, from the side it grows from */
  .lb-roll.lb-roll {
    color: transparent !important;
    -webkit-text-fill-color: transparent;
  }
  .lb-roll::after {
    content: attr(data-roll-frame);
    content: attr(data-roll-frame) / "";
    position: absolute;
    top: var(--lb-roll-t, 0);
    left: var(--lb-roll-l, 0);
    right: var(--lb-roll-r, 0);
    display: flex;
    justify-content: var(--lb-roll-j, flex-start);
    white-space: nowrap;
    color: var(--lb-roll-c);
    -webkit-text-fill-color: var(--lb-roll-c);
    pointer-events: none;
  }
  .lb-mo-saved {
    animation: lb-mo-saved 900ms ease-out backwards;
  }

  /* ——— between pages of the website: a soft fade, where the browser can ——— */
  @view-transition {
    navigation: auto;
  }
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 180ms;
  }

  /* ——— a tab's content ——— */
  .lb-mo-swap {
    animation: lb-mo-swap var(--lb-mo-small) var(--lb-mo-ease) backwards;
  }

  /* ——— the active tab's line slides to the tab you picked (shared/motion.js tabLine): the tab's own line is off
     while its stand-in travels, transform only ——— */
  .lb-mo-tab-moving.lb-mo-tab-moving {
    position: relative;
    border-bottom-color: transparent !important;
    box-shadow: none !important;
  }
  .lb-mo-tabline {
    position: absolute;
    left: 0;
    right: 0;
    pointer-events: none;
    transform-origin: 0 50%;
    animation: lb-mo-tabline var(--lb-mo-small) var(--lb-mo-ease) backwards;
  }

  /* ——— press: the main buttons answer the finger ——— */
  .nu-btn:not(:disabled):active,
  .exp-empty-add:not(:disabled):active,
  .btn-solid:not(:disabled):active,
  .btn-primary:not(:disabled):active,
  .btn-ghost:not(:disabled):active {
    transform: scale(0.98);
  }
  /* …and so do the controls of shared/controls.css (2026-11-11): footer and picker buttons, chips, small pills.
     Not drag rows or handles, map controls or tabs: a scale there fights the gesture. */
  .lbc-btn:not(:disabled):active,
  .lbr-btn:not(:disabled):active,
  .lbr-chip:not(:disabled):active,
  .pnd-btn:not(:disabled):active,
  .pnd-camera:not(:disabled):active,
  .wbx-done:not(:disabled):active,
  .wbx-soft:not(:disabled):active,
  .wbx-cancel:not(:disabled):active,
  .lmp-card-swap:not(:disabled):active,
  .nu-he-done:not(:disabled):active,
  .nu-he-cancel:not(:disabled):active,
  .plan-btn-quiet:not(:disabled):active,
  .hotel-action-btn:not(:disabled):active,
  .lb-plan-opt-btn:not(:disabled):active,
  .exp-chip:not(:disabled):active,
  .wbx-chip:not(:disabled):active,
  .lb-fold-btn:not(:disabled):active,
  .lbt-fold:not(:disabled):active {
    transform: scale(0.98);
  }
  /* …and every card, row and round button you can tap (motion pass 2026-11-12). Only whole-card buttons: a card with
     its own buttons inside would dip when one of them is pressed. :where() keeps the ease at no weight, so a control
     that already has its own transition keeps it. */
  :where(.agenda-item, .nu-td-stop, .nu-td-head, .nu-td-open, .nu-day, .lbpc-row.is-action, .lbpc-btn, .lbpc-c-btn, .wbx-free, .wbx-addbtn,
    .nu-dayfoot-btn, .nu-dayhead-title, .dv-review-go, .lb-mw-open, .dr-btn, .lbp-chip, .lmp-day, button.lpd-card, a.lpd-card,
    a.tc-card, button.tc-card, button.cost-card, button.lib-tile, .lbpc-tool, .mw-mast-btn, .icon-btn, .wbx-plus, .nu-dayhead-step) {
    transition: transform var(--lb-mo-press) var(--lb-mo-ease);
  }
  .agenda-item:not(:disabled):active,
  .nu-td-stop:not(:disabled):active,
  .nu-td-head:not(:disabled):active,
  .nu-td-open:not(:disabled):active,
  .nu-day:not(:disabled):active,
  .lbpc-row.is-action:not(:disabled):active,
  .lbpc-btn:not(:disabled):active,
  .lbpc-c-btn:not(:disabled):active,
  .wbx-free:not(:disabled):active,
  .wbx-addbtn:not(:disabled):active,
  .nu-dayfoot-btn:not(:disabled):active,
  .nu-dayhead-title:not(:disabled):active,
  .dv-review-go:not(:disabled):active,
  .lb-mw-open:not(:disabled):active,
  .dr-btn:not(:disabled):active,
  .lbp-chip:not(:disabled):active,
  .lmp-day:not(:disabled):active,
  button.lpd-card:not(:disabled):active,
  a.lpd-card:active,
  a.tc-card:active,
  button.tc-card:not(:disabled):active,
  button.cost-card:not(:disabled):active,
  button.lib-tile:not(:disabled):active {
    transform: scale(0.98);
  }
  /* small round buttons: 2% of 40 px cannot be seen */
  .lbpc-tool:not(:disabled):active,
  .mw-mast-btn:not(:disabled):active,
  .icon-btn:not(:disabled):active,
  .wbx-plus:not(:disabled):active,
  .nu-dayhead-step:not(:disabled):active {
    transform: scale(0.92);
  }

  /* ——— the website's slim bar and its tabs ——— */
  html.wb-new .sheet-nav {
    transition: background-color 160ms ease;
  }
  html.wb-new .sheet-tabs [role="tab"] {
    transition: color 160ms ease; /* the line itself slides (tabLine), it does not fade */
  }
}

@keyframes lb-img-shimmer {
  to { background-position: -220% 0; }
}
@keyframes lb-mo-grow {
  from { opacity: 0; transform: scale(0.9); }
}
@keyframes lb-mo-slide {
  from { opacity: 0; transform: translate3d(var(--lb-mo-x, 22px), 0, 0); }
}
@keyframes lb-mo-saved {
  0% { opacity: 0; transform: translate3d(0, 8px, 0); box-shadow: 0 0 0 0 rgba(230, 189, 87, 0); }
  30% { opacity: 1; transform: none; box-shadow: 0 0 0 3px rgba(230, 189, 87, 0.65); }
  100% { box-shadow: 0 0 0 0 rgba(230, 189, 87, 0); }
}
@keyframes lb-mo-rise {
  from { opacity: 0; transform: translate3d(0, 14px, 0) scale(0.985); }
}
@keyframes lb-mo-sink {
  to { opacity: 0; transform: translate3d(0, 10px, 0) scale(0.985); }
}
@keyframes lb-mo-fade {
  from { opacity: 0; }
}
@keyframes lb-mo-tabline {
  from { transform: translate3d(var(--lb-mo-tab-x, 0px), 0, 0) scaleX(var(--lb-mo-tab-s, 1)); }
}
@keyframes lb-mo-unfade {
  to { opacity: 0; }
}
@keyframes lb-mo-menu {
  from { opacity: 0; transform: translate3d(0, -4px, 0) scale(0.98); }
}
@keyframes lb-mo-swap {
  from { opacity: 0; } /* no transform: it would make the panel the frame for its fixed buttons, and they'd jump */
}

/* ——— the photo viewer's ‹ › and count (js/photos.js) ——— */
.lb-pv-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-top: -1.375rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(10, 20, 16, 0.62);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.lb-pv-nav.is-prev { left: 1rem; }
.lb-pv-nav.is-next { right: 1rem; }
.lb-pv-count { color: rgba(255, 255, 255, 0.8); font-size: 0.8rem; font-weight: 700; }
@media (hover: none) {
  .lb-pv-nav { display: none; } /* a swipe does it */
}
