/* La Collection, Maison mockup.
   maison.css holds the design-system screens as they are drawn on the boards: fixed frames,
   clipped content. This file turns them into a working app: regions that scroll, real links
   and buttons, the layers (sheet, dialog, menu, aircraft list, toast), the progress line and
   the widths in between the three the boards specify. */

#statuspanel {
  display: none !important;
}

html, body { height: 100%; }
body { overflow: hidden; }
.lc-app { height: 100vh; height: 100dvh; }

/* ---------- scrollbars ----------
   A 4px square bar in line-strong on a clear track, gold under the pointer. The space is kept
   even when nothing scrolls, so pages and tabs never shift sideways. */
.lc ::-webkit-scrollbar { width: 10px; height: 10px; }
.lc ::-webkit-scrollbar-track, .lc ::-webkit-scrollbar-corner { background: transparent; }
.lc ::-webkit-scrollbar-thumb { min-height: 48px; background: var(--line-strong) padding-box; border: 3px solid transparent; border-radius: 0; }
.lc ::-webkit-scrollbar-thumb:hover, .lc ::-webkit-scrollbar-thumb:active { background-color: var(--gold); }
@supports not selector(::-webkit-scrollbar) {
  .lc, .lc * { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
}
.d-maison :is(.pk, .pd-body, .ct-stage, .mf-body, .lg, .od-info), .mn { scrollbar-gutter: stable; }
/* not on dialogs: they rarely scroll, and a kept gutter would stop their gold top line short of the edge */

/* links and buttons take the look of what they sit in */
:where(.lc) button { font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; text-align: inherit; background: none; border: 0; border-radius: 0; margin: 0; padding: 0; cursor: pointer; }
.lc-btn, .lc-link, .lc-back { -webkit-tap-highlight-color: transparent; }
button.lc-link { padding: 4px 0 8px; }
.lc-opt-name a, .mf-name { transition: color .3s ease; }
.lc-back { transition: color .3s ease; }
.lc-back:hover { color: var(--ink) !important; }
.lc-round { transition: border-color .3s ease, box-shadow .3s ease; }
.lc-round:hover { border-color: var(--accent); box-shadow: inset 0 calc(-1 * var(--gilded)) 0 var(--gold); }
/* package tags that link to the packages page */
.lc a.lc-tag { position: relative; color: var(--ink); transition: border-color .3s ease, box-shadow .3s ease; }
.lc a.lc-tag--mine { color: var(--on-accent); }
a.lc-tag::after { content: ""; position: absolute; inset: -10px -3px; }
a.lc-tag:hover { border-color: var(--accent); }
a.lc-tag--mine:hover { box-shadow: inset 0 calc(-1 * var(--gilded)) 0 var(--gold); }
.lc-opt[data-go] { cursor: pointer; }
.lc-inline { transition: text-decoration-color .3s ease; }
.lc-inline:hover { text-decoration-color: var(--ink) !important; }
.lg-forgot:hover { color: var(--ink) !important; }
.lc-under { display: contents; }

/* ---------- motion ----------
   Pages cross-fade (show() in app.js); the bar, the navbar and the progress line are kept out of
   the cross-fade so their lines can move on their own. Layers fade in. Only the sheet's picture
   slides, following a finger. */
@keyframes lc-in { from { opacity: 0; } }
.is-new, .lc-pop, .lc-toasts .lc-toast { animation: lc-in .3s ease; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; animation-timing-function: ease; }
.vt-hold .lc-bar { view-transition-name: lc-bar; }
.vt-hold .lc-nav { view-transition-name: lc-nav; }
.vt-parts .ct-parts { view-transition-name: lc-parts; }
.lc-progress { view-transition-name: lc-progress; }
::view-transition-old(lc-bar):not(:only-child), ::view-transition-old(lc-nav):not(:only-child), ::view-transition-old(lc-parts), ::view-transition-old(lc-progress) { display: none; }
::view-transition-new(lc-bar):not(:only-child), ::view-transition-new(lc-nav):not(:only-child), ::view-transition-new(lc-parts), ::view-transition-new(lc-progress) { animation: none; }
::view-transition-group(lc-bar), ::view-transition-group(lc-nav), ::view-transition-group(lc-parts), ::view-transition-group(lc-progress) { animation-duration: .3s; }
@keyframes lc-grow { from { background-size: 40% var(--gilded); } }
@keyframes lc-spread { from { transform: scaleX(0); } }
@keyframes lc-border-in { from { border-color: var(--line); } }
@keyframes lc-border-out { from { border-color: var(--line-strong); } }
.lc-nav .lc-nav-a.is-grow, .ct-parts a.is-grow, .lc-bar-mine.is-grow { animation: lc-grow .45s ease; }
@media (prefers-reduced-motion: reduce) {
  .lc *, .lc *::before, .lc *::after, .lc-progress i { animation: none !important; transition: none !important; }
}

/* ---------- progress line: the bottom edge of the screen, entryway 0%, My Falcon 100% ---------- */
.lc-progress { position: fixed; z-index: 5; left: var(--edge-l, 0px); right: var(--edge-r, 0px); bottom: 0; height: 3px; background: var(--line); pointer-events: none; opacity: 0; transition: opacity .3s ease; }
.lc-progress.is-on { opacity: 1; }
.lc-progress i { display: block; width: 0; height: 100%; background: var(--gild); transition: width .6s ease; }

/* ---------- the desktop column ----------
   From 1024px every page keeps to the catalogue's column: at most 1200px, centred, 32px from the
   edges when the window is narrower. The scrolling pages keep a 10px scrollbar gutter on the right,
   so the bars, the action bar and the progress line take 10px more on that side to line up. */
@media (min-width: 1024px) {
  .lc-app, .lc-progress { --edge-l: max(32px, calc((100% - 1210px) / 2)); --edge-r: calc(var(--edge-l) + 10px); }
  .lc-bar, .lc-nav { padding-left: var(--edge-l); padding-right: var(--edge-r); }
}

/* ---------- top bar ---------- */
.lc-bar .lc-bar-logo { font-size: 21px; }
.lc-bar-right { white-space: nowrap; }
/* the aircraft's logo is the aircraft picker: it runs the bar's height, its list opens below */
.lc-bar-left { align-self: stretch; }
.lc-bar-left .lc-pick { height: 100%; }
.lc-bar-ac { display: inline-flex; align-items: center; gap: 10px; height: 100%; color: var(--on-bar-muted); transition: color .3s ease; }
.lc-bar-ac > * { flex: none; }
/* The aircraft logos are drawn on a 128.25-unit-high canvas, the letters from 4.57 to 125.55.
   At bar size those edges would land between two pixels and leave a half-lit row along the top
   and bottom of every letter, which reads as ragged. The height is picked so the letters are a
   whole number of pixels tall (15px: 128.25 / 120.98 x 15), the picture starts on a whole pixel
   (top of the bar + 19px, which centres the letters on the bar), and a fraction of a pixel's shift puts the letters' top on the next
   pixel line: 1 - 4.57 / 128.25 x 15.902 = 0.433px. */
.lc-bar-ac img { align-self: flex-start; height: 15.902px; width: auto; margin-top: 19px; transform: translateY(.433px); }
.lc-bar-ac:hover, .lc-bar-ac[aria-expanded="true"] { color: var(--on-bar); }
.lc-bar-left .lc-pop { top: calc(100% + 1px); left: -20px; right: auto; }
/* small tablets: the wordmark gives up a little size and centres in the room between the
   aircraft logo and My Falcon / Logout, rather than on the screen, so they never touch */
@media (min-width: 600px) and (max-width: 759px) {
  .lc-bar { grid-template-columns: auto minmax(0, 1fr) auto; }
  .lc-bar .lc-bar-logo { font-size: 17px; justify-self: center; }
  .lc-bar-right { gap: 22px; }
  /* letters 13px tall: 128.25 / 120.98 x 13, shifted by 1 - 4.57 / 128.25 x 13.781 */
  .lc-bar-ac img { height: 13.781px; margin-top: 20px; transform: translateY(.509px); }
}
@media (max-width: 599px) {
  .lc-bar { grid-template-columns: minmax(0, 1fr) auto; }
  .lc-bar .lc-bar-left { display: none; }
  .lc-bar .lc-bar-logo { justify-self: start; font-size: 15px; }
}
.lc-bar-right button { color: var(--on-bar-muted); transition: color .3s ease; }
.lc-bar-right button:hover { color: var(--on-bar); }
/* My Falcon, left of Logout: runs the bar's height, its gold line on the bar's bottom edge when open */
.lc-bar-right { align-self: stretch; }
.lc-bar-mine { display: inline-flex; align-items: center; gap: 8px; height: 100%; color: var(--on-bar-muted); background: var(--gild) center bottom / 0 var(--gilded) no-repeat; transition: color .3s ease, background-size .3s ease; }
.lc-bar-mine:hover, .lc-bar-mine.is-active { color: var(--on-bar); }
.lc-bar-mine.is-active { background-size: 100% var(--gilded); }
.lc-bar-mine .lc-count { color: var(--gold-sheen); }
.lc-pick { position: relative; display: flex; }
.lc-pop { position: absolute; z-index: 6; top: calc(100% + 19px); right: -16px; width: 264px; padding: 4px 20px 6px; background: var(--surface); border: 1px solid var(--line); border-top: 0; }
.lc-pop::before { content: ""; position: absolute; left: -1px; right: -1px; top: 0; height: var(--gilded); background: var(--gild); }
.lc-pop .mn-a:last-child { border-bottom: 0; }
button.mn-a { width: 100%; }
.mn-a { transition: color .3s ease; }
.mn-a:hover { color: var(--ink) !important; }

/* ---------- navbar: the five zones, My Falcon on the right ---------- */
.lc-nav { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 24px; }
.lc-nav .lc-zones { grid-column: 2; grid-row: 1; }
/* Tabs run the bar's full height and their gold line lies on its bottom border: the border is
   drawn as an inset shadow, under the links, so the 2px line covers it. */
.lc-nav, .d-maison .ct-parts { border-bottom: 0; box-shadow: inset 0 -1px 0 var(--line); }
.lc-nav .lc-zones { align-self: stretch; align-items: stretch; }
.lc-nav .lc-nav-a, .d-maison .ct-parts a { padding-top: 0; padding-bottom: 0; background-position: 50% 100%; }
.d-maison .ct-parts { align-items: stretch; }
.lc-zones { scrollbar-width: none; }
.lc-zones::-webkit-scrollbar, .ct-parts::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) and (max-width: 1279px) {
  .lc-zones { gap: 24px; }
  .lc-nav-a { font-size: 13px; letter-spacing: .1em; }
}
@media (max-width: 1023px) {
  .lc-nav { grid-template-columns: minmax(0, 1fr); height: 64px; }
  .lc-nav .lc-zones { grid-column: 1; justify-content: flex-start; gap: 24px; padding: 0; border-top: 0; overflow-x: auto; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); }
  .lc-nav-a { font-size: 13px; letter-spacing: .1em; }
}
@media (max-width: 599px) {
  /* My Falcon lives in the menu on phones */
  .lc-nav { height: 52px; padding-right: 0; }
  .lc-nav .lc-zones { margin-right: 0; padding-right: 16px; }
}

/* ---------- toast, dialog, menu ---------- */
.lc-toasts { position: fixed; z-index: 30; bottom: 32px; left: 0; right: 0; display: grid; justify-items: center; padding: 0 16px; pointer-events: none; }
@media (max-width: 1023px) { .lc-toasts { bottom: auto; top: 64px; } }
.lc-toasts .lc-toast { pointer-events: auto; max-width: 560px; border-color: var(--line-strong); }
.lc-toast .lc-inline { margin-left: 8px; font-size: inherit; }
.dg { max-width: calc(100% - 32px); max-height: calc(100% - 32px); overflow-y: auto; }
.dg .lc-field { align-self: stretch; }
.dg .lc-error { margin-top: -4px !important; }
.mn { overflow-y: auto; }
.dg-veil { -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.mn-foot { padding-top: 24px; }

.d-maison {
  /* ---------- package choice ---------- */
  .pk { overflow-y: auto; }
  .pk-grid { flex: 1 0 auto; }
  .pk-card { cursor: pointer; transition: border-color .3s ease; }
  .pk-card:hover { border-color: var(--line-strong); }
  .pk-card:hover .lc-link .lc-ico { transform: translateX(5px); }
  .pk-img { min-height: 220px; overflow: hidden; }
  .pk-img img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
  .pk-num, .pk-cur { z-index: 1; }
  /* the current package carries its gold line on the bottom edge, as a chosen option card does */
  .pk-card.is-current::before { top: auto; bottom: -1px; }
  .dg { top: 50%; }

  /* ---------- package detail ---------- */
  /* rows take their content's height: with the boards' min-height: 0 they stop at the window's
     height, the content spills past them and the bottom padding is lost */
  .pd-body { overflow-y: auto; touch-action: pan-y pinch-zoom; grid-auto-rows: max-content; padding-bottom: 80px; }
  .pd-hero { height: clamp(230px, 36vh, 400px); }
  /* included finishes: the 3:4 cuts made for the option cards, already filtered to size */
  .pd-ph { position: relative; overflow: hidden; }
  .pd-ph img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
  /* the three packages as tabs under the bar, like the parts bar of the catalogue; a check marks
     the confirmed one. They do not scroll with the page. */
  .pd-tabs { position: relative; flex: none; background: var(--surface); }
  .pd-tab-mine { display: inline-flex; color: var(--gold-text); }
  /* with the back link gone, the eyebrow starts the column, level with the picture */
  .pd-intro .pd-eyebrow { margin-top: 0; }
  .pd-tab-mine .lc-ico { width: 14px; height: 14px; }
  @keyframes lc-pk-from-next { from { transform: translateX(40%); opacity: 0; } }
  @keyframes lc-pk-from-prev { from { transform: translateX(-40%); opacity: 0; } }
  :is(.pd-body, .ct-phead, .ct-list, .ct-next).is-from-next { animation: lc-pk-from-next .25s ease; }
  :is(.pd-body, .ct-phead, .ct-list, .ct-next).is-from-prev { animation: lc-pk-from-prev .25s ease; }
  /* the page keeps sideways touches for the swipe between tabs */
  :is(.ct-phead, .ct-list, .ct-next) { touch-action: pan-y pinch-zoom; }
  /* without a note, the action bar's buttons still sit on the right */
  .pd-actions > .lc-btn:first-child { margin-left: auto; }
  /* two facts on the package page: additional weight and price */
  .pd-facts div:last-child { display: flex; }

  /* ---------- catalogue: one column at every width ----------
     zone picture, then the parts bar (sticks to the top), the options, and previous / next
     (sticks to the bottom). On desktop the column stops at 1200px. */
  .ct-stage { --pic: 300px; display: block; overflow-y: auto; }
  .ct-view { height: var(--pic); }
  .ct-panel { min-height: calc(100% - var(--pic)); }
  .ct-parts { position: sticky; top: 0; z-index: 2; background: var(--surface); overflow-x: auto; scrollbar-width: none; justify-content: flex-start; padding: 0 24px; }
  .ct-parts a:first-child { margin-left: auto; }
  .ct-parts a:last-child { margin-right: auto; }
  .ct-list { flex: none; overflow: visible; padding-bottom: 32px; }
  .lc-opt-img { display: block; overflow: hidden; }
  .lc-opt-img img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
  .lc-opt-name a:hover, .mf-name:hover { color: var(--gold-text); }
  /* a chosen card carries its gold line on the bottom edge */
  .lc-opt.is-in::before { top: auto; bottom: -1px; transform-origin: 50% 50%; }
  /* bookmarked: the gold line spreads from the centre to both sides */
  .lc-opt.is-just-in::before { animation: lc-spread .45s ease; }
  /* touch screens have no hover to bring the border first: it fades in, and back out */
  @media (hover: none) {
    .lc-opt.is-just-in { animation: lc-border-in .3s ease; }
    .lc-opt.is-just-out { animation: lc-border-out .3s ease; }
  }
  /* with a pointer, the card is still under it: keep the hover border, so taking a finish out
     does not replay the hover fade */
  @media (hover: hover) {
    .lc-opt.is-just-out { border-color: var(--line-strong); }
  }
  .ct-next { position: sticky; bottom: 0; z-index: 2; flex: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: auto; padding: 10px 40px calc(9px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
  .ct-next > * { min-width: 0; }
  .ct-next span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ct-next .lc-link { background: none; }
  .ct-phead { padding-bottom: 4px; }

  /* ---------- option sheet: over its page, which stays in place under a blur ---------- */
  .od { position: absolute; z-index: 6; inset: 0; grid-template: minmax(0, 1fr) / minmax(0, 1fr); }
  .od-back { background: var(--scrim); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
  /* it fades in when the sheet opens, not each time the sheet is redrawn */
  .od-back.is-opening { animation: lc-in .3s ease; }
  /* the picture frame clips a track of three slides: previous, current, next */
  .od-img { overflow: hidden; touch-action: pan-y; }
  .od-track { position: absolute; inset: 0; will-change: transform; }
  .od-slide { position: absolute; inset: 0; background: var(--surface-sunk) center / cover no-repeat; }
  .od-slide--prev { transform: translateX(-100%); }
  .od-slide--next { transform: translateX(100%); }
  .od-info { overflow-y: auto; }
  .od-tags:empty { display: none; }
  /* previous / next: round controls over the picture, vertically centred on its edges */
  .od-nav { position: absolute; z-index: 1; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; background: var(--surface); border-color: var(--surface); color: var(--ink); }
  .od-nav--prev { left: 16px; }
  .od-nav--next { right: 16px; }
  .od-nav:hover { border-color: var(--accent); }

  /* ---------- My Falcon ---------- */
  .mf-body { overflow-y: auto; grid-template-rows: max-content max-content; grid-auto-rows: max-content; align-content: start; padding-bottom: 64px; }
  .mf-list { overflow: visible; }
  /* the row's picture: a square thumbnail, or the portrait cut on mobile where it runs the row's height */
  .mf-th { display: block; position: relative; overflow: hidden; }
  .mf-th img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
  .mf-send::before { display: none; }
  .mf-x { transition: color .3s ease; }
  .mf-x:hover { color: var(--ink); }
  .mf-mail .lc-error { font-size: 13px; }
  .em-zone .lc-label { transition: color .3s ease; }
  /* zone tiles: 4:3 cuts of the cabin views, filtered to size */
  .em-ph { position: relative; overflow: hidden; }
  .em-ph img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }

  /* ---------- sign-in ---------- */
  .lg { overflow-y: auto; }
  .lg-tag { text-wrap: balance; }
  .lg-note { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
  .lg-help b { font-weight: inherit; color: var(--ink); }
  button.lg-forgot { font-family: var(--f-text); }

  @media (min-width: 1024px) {
    .pk-grid { flex-basis: 440px; }
    .pd-intro { position: sticky; top: 0; align-self: start; }
    .ct-stage { --pic: clamp(300px, 44vh, 480px); padding: 0 var(--edge-l); }
    .ct-view, .ct-panel { max-width: 1200px; margin-inline: auto; }
    .pk { padding: 0 var(--edge-l); }
    .pd-body { padding: 40px var(--edge-l) 80px; }
    .pd-actions { padding-inline: var(--edge-l) var(--edge-r); }
    .mf-body { padding: 36px var(--edge-l) 64px; }
    /* price before weight in My Falcon's rows */
    .mf-item { grid-template-columns: 64px minmax(0, 1.2fr) minmax(0, 1.3fr) 96px 76px 32px; }
    .ct-view { margin-top: 32px; }
    .ct-panel { min-height: calc(100% - var(--pic) - 32px); }
    .ct-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .od-sheet { width: 100%; max-width: 1080px; height: 640px; max-height: 100%; }
    /* the Send card spans a last, flexible row: its height no longer stretches the header's row */
    .mf-body { grid-template-rows: max-content max-content 1fr; }
    .mf-send { position: sticky; top: 36px; grid-row: 1 / 4; }
  }
  @media (min-width: 1024px) and (max-width: 1279px) {
    .pd-body { grid-template-columns: 340px minmax(0, 1fr); gap: 40px; }
    .pd-grid { grid-template-columns: repeat(4, 1fr); }
    .mf-body { grid-template-columns: minmax(0, 1fr) 340px; gap: 28px 40px; }
    .mf-item { grid-template-columns: 56px minmax(140px, 1fr) minmax(min-content, max-content) 88px 68px 28px; gap: 12px; }
  }
  /* My Falcon rows: the name keeps at least 140px; the package tags take what they need and
     stack when they do not fit side by side, instead of running over the name */
  @media (min-width: 600px) and (max-width: 1023px) {
    .mf-item { grid-template-columns: 56px minmax(140px, 1fr) minmax(min-content, max-content) 88px 68px 28px; }
  }
  @media (min-width: 600px) and (max-width: 1279px) {
    .mf-tags .lc-tags { justify-content: flex-end; }
  }
  @media (max-width: 1023px) {
    .pk-grid { grid-auto-rows: minmax(200px, 1fr); }
    .pk-img { min-height: 0; }
    .dg { top: 50%; bottom: auto; transform: translate(-50%, -50%); }
    .pd-body { padding-bottom: 56px; }
    .pd-facts { grid-template-columns: repeat(2, 1fr); }
    .ct-next { padding-left: 32px; padding-right: 32px; }
    /* below desktop the sheet covers the whole page under the bar, as on phones */
    /* below desktop the sheet covers the whole screen, the bar included: a blurred strip of bar
       above it would be the only blurred thing in sight */
    .od { padding-top: env(safe-area-inset-top); }
    .pd-body { padding-top: 32px; }
    .od-sheet { height: 100%; grid-template-rows: min(400px, 44%) minmax(0, 1fr); }
    /* the Send bar is the last row of the page and sticks to the bottom while the list scrolls
       under it, so the end of the list always comes out from behind it */
    .mf-body { padding-bottom: 0; grid-template-rows: max-content minmax(max-content, 1fr) max-content; }
    .mf-send { position: sticky; z-index: 4; left: auto; right: auto; bottom: 0; margin: 0 -32px; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
    .mf--empty .mf-body { padding-bottom: 48px; }
  }
  @media (max-width: 599px) {
    .pk-grid { grid-auto-rows: minmax(128px, 1fr); }
    .dg { top: auto; bottom: 0; transform: none; max-width: none; }
    .ct-stage { --pic: 150px; }
    .ct-parts { padding: 0 16px; }
    .ct-list { padding-bottom: 24px; }
    .ct-next { padding-left: 16px; padding-right: 16px; }
    .od-sheet { height: 100%; grid-template-rows: min(250px, 34%) minmax(0, 1fr); }
    .od-cta { padding-top: 8px; }
    .mf-send { margin: 0 -16px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
    .mf--empty .mf-body { padding-bottom: 32px; }
    /* the weight sits under the price; "In package" twice reads as once */
    .mf-tags { grid-column: 2; }
    .mf-w { display: block; grid-column: 3; grid-row: 2; font-size: 13px; }
    .mf-item.is-ip .mf-w { display: none; }
    .mf-item.is-ip .mf-tags { grid-column: 2 / -1; }
    /* swipe left to remove: the row slides by --sw while the Remove button grows into the gap
       on its right; touch-action leaves vertical scrolling to the page */
    .mf-item { overflow: hidden; touch-action: pan-y; --sw: 0px; }
    .mf-item > :not(.mf-x) { transform: translateX(calc(-1 * var(--sw))); }
    .mf-x { display: grid; position: absolute; top: 0; right: 0; bottom: 0; width: max(0px, var(--sw) - 16px); height: auto; overflow: hidden; background: var(--danger); color: var(--on-accent); }
    .mf-x:hover { color: var(--on-accent); }
    .mf-item.is-settling > :not(.mf-x), .mf-item.is-settling .mf-x { transition: transform .22s ease, width .22s ease; }
    .lg { grid-template-rows: 300px auto; }
  }
}

/* the code's six boxes share the form's width on narrow phones, at most their full 46px each */
.lc-otp { gap: clamp(6px, 2.5vw, 10px); max-width: 100%; }
.lc-otp input { flex: 1 1 46px; width: 0; min-width: 0; max-width: 46px; }
