



.legacy {
  --be-brand-50:  #eff6fa;
  --be-brand-100: #dcecf4;
  --be-brand-200: #bbdaea;
  --be-brand-300: #8fbed6;
  --be-brand-400: #599dc0;
  --be-brand-500: #2e789e;
  --be-brand-600: #1c5c7d;
  --be-brand-700: #114966; 
  --be-brand-800: #0d384f;
  --be-brand-900: #0a2938;
  --be-brand-950: #071922;
}


.legacy {
  --be-accent-50:  #fef8ee;
  --be-accent-100: #feedd5;
  --be-accent-200: #fddcaa;
  --be-accent-300: #fbc574;
  --be-accent-400: #fab142;
  --be-accent-500: #f89d14; 
  --be-accent-600: #dc8604;
  --be-accent-700: #a06103; /* text-safe on white: 4.99:1 */
  --be-accent-800: #7f4f05;
  --be-accent-900: #5d3b06;
  --be-accent-950: #392405;
}

/* =============================================================================
   3. RAW SCALE — GREY (navy-tinted neutrals, hue 208)
   -----------------------------------------------------------------------------
   Deliberately tinted toward the brand hue so greys never read "dead web grey"
   beside the navy — the same trick the reference properties use (purple-tinted
   ink on aminitechsolutions.com, green-tinted grey on e-Reta / PesaBridge).

   Two half-stops exist purely for WCAG 1.4.11 (non-text contrast) on the
   RESTING border of interactive controls:
     --be-grey-450  3.28:1 on white            (light-mode control borders)
     --be-grey-550  3.25:1 on --be-grey-900    (dark-mode control borders)
   ========================================================================== */
.legacy {
  --be-grey-50:  #f7f9fb;
  --be-grey-100: #f0f3f6;
  --be-grey-200: #e2e7ec;
  --be-grey-300: #cdd4db;
  --be-grey-400: #9da9b4;
  --be-grey-450: #80909d; /* a11y half-stop — control borders (light) */
  --be-grey-500: #71808e;
  --be-grey-550: #5f6e7b; /* a11y half-stop — control borders (dark)  */
  --be-grey-600: #576470;
  --be-grey-700: #3e4b56;
  --be-grey-800: #232c34;
  --be-grey-900: #151d23;
  --be-grey-950: #0b1014;
}

/* =============================================================================
   4. SEMANTIC LAYER — LIGHT (default)
   -----------------------------------------------------------------------------
   Measured contrast (light):
     text  grey-900 on #fff .............. 17.05:1  AAA
     muted grey-600 on #fff ..............  6.07:1  AA / AAA large
     muted grey-600 on surface-2 .........  5.45:1  AA
     brand brand-700 on #fff .............  9.68:1  AAA
     brand-fg #fff on brand-700 ..........  9.68:1  AAA
     accent-fg grey-950 on accent-500 ....  8.94:1  AAA
     accent-ink accent-700 on #fff .......  4.99:1  AA
     border-strong grey-450 on #fff ......  3.28:1  AA (non-text 1.4.11)
   ========================================================================== */
.legacy {
  /* --- surfaces ---------------------------------------------------------- */
  --be-bg:          #ffffff;             /* page background                  */
  --be-surface:     #ffffff;             /* cards, panels — raised           */
  --be-surface-2:   var(--be-grey-50);   /* bands, inset wells — recessed    */

  /* --- ink --------------------------------------------------------------- */
  --be-text:        var(--be-grey-900);
  --be-muted:       var(--be-grey-600);

  /* --- lines ------------------------------------------------------------- */
  --be-border:        var(--be-grey-200); /* static hairlines / separators   */
  --be-border-strong: var(--be-grey-450); /* resting border of CONTROLS      */

  /* --- brand ------------------------------------------------------------- */
  --be-brand:       var(--be-brand-700);
  --be-brand-fg:    #ffffff;
  --be-brand-hover: var(--be-brand-800);
  --be-brand-tint:  var(--be-brand-50);   /* selected / checked fill         */
  --be-brand-ink:   var(--be-brand-700);  /* brand used as TEXT              */

  /* --- accent ------------------------------------------------------------ */
  --be-accent:      var(--be-accent-500);
  --be-accent-fg:   var(--be-grey-950);   /* orange needs a DARK foreground  */
  --be-accent-tint: var(--be-accent-50);
  --be-accent-ink:  var(--be-accent-700); /* accent used as TEXT             */

  /* --- gradients (brand couple 600 -> 800, the house 135deg) ------------- */
  --be-gradient-brand: linear-gradient(135deg, var(--be-brand-600), var(--be-brand-800));
  --be-gradient-hair:  linear-gradient(90deg, var(--be-brand-500), var(--be-accent-500));
  /* Foreground for anything painted ON the brand gradient. The gradient is a
     dark navy couple in light mode and a mid navy couple in dark mode, so pure
     white clears 7:1 in both — this token stays white on purpose. */
  --be-on-gradient: #ffffff;

  /* --- elevation (navy-tinted, the e-Reta e1..e4 ladder) ----------------- */
  --be-shadow-1: 0 1px 2px rgba(7, 25, 34, .05), 0 1px 1px rgba(7, 25, 34, .04);
  --be-shadow-2: 0 6px 18px -8px rgba(7, 25, 34, .16);
  --be-shadow-3: 0 14px 34px -14px rgba(7, 25, 34, .22);
  --be-shadow-4: 0 40px 80px -32px rgba(7, 25, 34, .34);

  /* --- radii ------------------------------------------------------------- */
  --be-radius-sm:   8px;
  --be-radius-md:  12px;
  --be-radius-lg:  14px;
  --be-radius-xl:  18px;   /* the .m-card radius */
  --be-radius-pill: 999px;

  /* --- type -------------------------------------------------------------- */
  --be-font-body: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI",
                  Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
                  "Apple Color Emoji", "Segoe UI Emoji";
  --be-font-display: var(--be-font-body);

  /* --- metrics ----------------------------------------------------------- */
  --be-container: 1200px;
  --be-gutter: 24px;
  --be-sticky-top: 88px;      /* clearance under the site header             */
  --be-tap: 44px;             /* minimum touch target                        */
  --be-ease: cubic-bezier(.22, 1, .36, 1);
  --be-dur: .22s;

  /* --- FAB geometry ------------------------------------------------------ */
  --be-fab-inset: 20px;
  --be-fab-bottom: 20px;      /* raised to 92px when the mobile bar is up    */

  /* --- stacking (kept BELOW Bootstrap offcanvas 1045 / modal 1055) ------- */
  --be-z-sticky: 5;
  --be-z-bar:  1030;
  --be-z-fab:  1035;
  --be-z-toast: 1050;
}

/* =============================================================================
   5. DARK MODE
   -----------------------------------------------------------------------------
   Re-maps ONLY the semantic layer. The raw scales are untouched, so a sub-brand
   accent (section 6) composes with dark mode for free — 2 themes x 5 brands
   = 10 skins from one component set.

   Key inversions:
     brand LIGHTENS to brand-300 (a dark navy on a near-black page is invisible)
     brand-fg flips to brand-950 (dark ink on the now-light brand fill)
     the checked / selected tint flips from brand-50 to brand-950
     shadows deepen to near-opaque black

   Measured contrast (dark, bg #0b1014 / surface #151d23):
     text  grey-50  on surface ......... 16.15:1  AAA
     muted grey-400 on surface .........  7.12:1  AAA
     brand brand-300 on surface ........  8.53:1  AAA
     brand-fg brand-950 on brand-300 ...  8.97:1  AAA
     accent accent-400 on bg ........... 11.32:1  AAA
     accent-fg grey-950 on accent-400 .. 10.41:1  AAA
     border-strong grey-550 on surface ..  3.25:1  AA (non-text 1.4.11)

   NB: the block below is DUPLICATED into the prefers-color-scheme query that
   follows, so "no explicit attribute" still follows the OS.
   ==> KEEP THE TWO BLOCKS IN SYNC. <==
   ========================================================================== */
:root[data-theme="dark"] .legacy {
  --be-bg:        var(--be-grey-950);
  --be-surface:   var(--be-grey-900);
  --be-surface-2: var(--be-grey-950);   /* recessed wells go DARKER in dark  */

  --be-text:  var(--be-grey-50);
  --be-muted: var(--be-grey-400);

  --be-border:        var(--be-grey-800);
  --be-border-strong: var(--be-grey-550);

  --be-brand:       var(--be-brand-300);
  --be-brand-fg:    var(--be-brand-950);
  --be-brand-hover: var(--be-brand-200);
  --be-brand-tint:  var(--be-brand-950);
  --be-brand-ink:   var(--be-brand-300);

  --be-accent:      var(--be-accent-400);
  --be-accent-fg:   var(--be-grey-950);
  --be-accent-tint: var(--be-accent-950);
  --be-accent-ink:  var(--be-accent-300);

  /* the gradient shifts up one couple so the FAB stays legible on near-black */
  --be-gradient-brand: linear-gradient(135deg, var(--be-brand-500), var(--be-brand-700));

  --be-shadow-1: 0 1px 2px rgba(0, 0, 0, .40), 0 1px 1px rgba(0, 0, 0, .32);
  --be-shadow-2: 0 6px 18px -8px rgba(0, 0, 0, .58);
  --be-shadow-3: 0 14px 34px -14px rgba(0, 0, 0, .66);
  --be-shadow-4: 0 40px 80px -32px rgba(0, 0, 0, .76);

  /* NB: `color-scheme: dark` is deliberately NOT set here. On :root it would
     repaint the UA canvas and every native form control across all 241 legacy
     pages, whose text colours are hardcoded dark hex — an instantly unreadable
     site. It is applied to `.be-scope` only, in section 7. */
}

/* --- OS preference, only when no explicit attribute has been stamped ------- */
@media (prefers-color-scheme: dark) {
  /* :root:not([data-theme="light"]) — an explicit light choice always wins. */
  :root:not([data-theme="light"]) .legacy {
    --be-bg:        var(--be-grey-950);
    --be-surface:   var(--be-grey-900);
    --be-surface-2: var(--be-grey-950);

    --be-text:  var(--be-grey-50);
    --be-muted: var(--be-grey-400);

    --be-border:        var(--be-grey-800);
    --be-border-strong: var(--be-grey-550);

    --be-brand:       var(--be-brand-300);
    --be-brand-fg:    var(--be-brand-950);
    --be-brand-hover: var(--be-brand-200);
    --be-brand-tint:  var(--be-brand-950);
    --be-brand-ink:   var(--be-brand-300);

    --be-accent:      var(--be-accent-400);
    --be-accent-fg:   var(--be-grey-950);
    --be-accent-tint: var(--be-accent-950);
    --be-accent-ink:  var(--be-accent-300);

    --be-gradient-brand: linear-gradient(135deg, var(--be-brand-500), var(--be-brand-700));

    --be-shadow-1: 0 1px 2px rgba(0, 0, 0, .40), 0 1px 1px rgba(0, 0, 0, .32);
    --be-shadow-2: 0 6px 18px -8px rgba(0, 0, 0, .58);
    --be-shadow-3: 0 14px 34px -14px rgba(0, 0, 0, .66);
    --be-shadow-4: 0 40px 80px -32px rgba(0, 0, 0, .76);
  }
}


.legacy .be-scope[data-suite="courier"],
.legacy [data-accent="courier"],
.legacy .be-scope[data-suite="insurance"],
.legacy [data-accent="insurance"],
.legacy .be-scope[data-suite="hms"],
.legacy [data-accent="hms"],
.legacy .be-scope[data-suite="mfi"],
.legacy [data-accent="mfi"],
.legacy .be-scope[data-suite="sacco"],
.legacy [data-accent="sacco"],
.legacy .be-scope[data-suite="eduprime"],
.legacy [data-accent="eduprime"],
.legacy .be-scope[data-suite="hotel"],
.legacy [data-accent="hotel"] {
  --be-product-theme: "bridgeerp";
}


/* ##########################################################################
   ##  EVERYTHING BELOW THIS LINE IS SCOPED TO .be-scope                    ##
   ##  Nothing here can touch a legacy page that has not opted in.          ##
   ########################################################################## */


/* =============================================================================
   7. SCOPE BASE + TYPOGRAPHY
   ========================================================================== */
.legacy .be-scope {
  background-color: var(--be-bg);
  color: var(--be-text);
  font-family: var(--be-font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* A scope that only hosts fixed overlays must not paint a background band. */
.legacy .be-scope.be-fab-layer { background-color: transparent; color: inherit; }

/* `color-scheme` is applied HERE, not on :root — see the note in section 5.
   Scoped like this it darkens native scrollbars, number spinners and date
   pickers inside our surfaces only, and leaves the legacy pages alone. */
:root[data-theme="dark"] .legacy .be-scope { color-scheme: dark; }
:root[data-theme="light"] .legacy .be-scope { color-scheme: light; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .legacy .be-scope { color-scheme: dark; }
}

.legacy .be-scope *,
.legacy .be-scope *::before,
.legacy .be-scope *::after { box-sizing: border-box; }

.legacy .be-scope a { color: var(--be-brand-ink); text-decoration: none; }
.legacy .be-scope a:hover { text-decoration: underline; }

.legacy .be-scope h1, .legacy .be-scope h2, .legacy .be-scope h3, .legacy .be-scope h4 {
  font-family: var(--be-font-display);
  color: var(--be-text);
  letter-spacing: -.015em;
  line-height: 1.12;
  margin: 0 0 .5em;
}
.legacy .be-scope h1 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.3rem); font-weight: 800; }
.legacy .be-scope h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.25rem); font-weight: 700; }
.legacy .be-scope h3 { font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem);   font-weight: 700; }

.legacy .be-scope p  { margin: 0 0 1rem; }
.legacy .be-scope ul, .legacy .be-scope ol { margin: 0 0 1rem; padding-inline-start: 1.25rem; }

.legacy .be-scope .be-lead  { font-size: 1.075rem; color: var(--be-muted); }
.legacy .be-scope .be-muted { color: var(--be-muted); }
.legacy .be-scope .be-num,
.legacy .be-scope [data-be="total"],
.legacy .be-scope [data-be="base"] { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------------------
   SELF-MATCH NOTE. `.be-scope .be-x` is a DESCENDANT selector: it does not
   match an element that carries both classes (<section class="be-scope be-hero">).
   Block-level components that can plausibly sit on the scope element itself
   therefore also list a `.be-scope.be-x` compound. Inline components
   (buttons, pills, cards…) are always descendants and need no compound.
   --------------------------------------------------------------------------- */
.legacy .be-scope .be-container,
.legacy .be-scope.be-container {
  width: 100%;
  max-width: var(--be-container);
  margin-inline: auto;
  padding-inline: var(--be-gutter);
}
.legacy .be-scope .be-section,
.legacy .be-scope.be-section { padding-block: clamp(48px, 5vw, 96px); }
.legacy .be-scope .be-section.is-banded,
.legacy .be-scope.be-section.is-banded {
  background-color: var(--be-surface-2);
  border-block: 1px solid var(--be-border);
}

.legacy .be-scope .be-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  border: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

/* =============================================================================
   8. .be-card · .be-eyebrow · .be-badge
   ========================================================================== */

/* --- .be-card — the .m-card spec: surface, 1px border, radius 18, e1 shadow,
       hover lift -4px with a brand-mixed border ------------------------------ */
.legacy .be-scope .be-card {
  background-color: var(--be-surface);
  border: 1px solid var(--be-border);
  border-radius: var(--be-radius-xl);   /* 18px */
  box-shadow: var(--be-shadow-1);
  padding: 22px;
  transition: transform var(--be-dur) var(--be-ease),
              box-shadow var(--be-dur) var(--be-ease),
              border-color var(--be-dur) var(--be-ease),
              background-color .3s var(--be-ease);
}
.legacy .be-scope .be-card.is-interactive { cursor: pointer; }
.legacy .be-scope .be-card.is-interactive:hover,
.legacy .be-scope a.be-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--be-shadow-3);
  border-color: var(--be-brand-300);
}
/* Progressive enhancement: MIX the brand into the border rather than replace
   it, so the hover ring stays a hairline instead of becoming a hard rule. */
@supports (color: color-mix(in srgb, red, red)) {
  .legacy .be-scope .be-card.is-interactive:hover,
  .legacy .be-scope a.be-card:hover {
    border-color: color-mix(in srgb, var(--be-brand) 35%, var(--be-border));
  }
}
.legacy .be-scope a.be-card { display: block; color: inherit; text-decoration: none; }
.legacy .be-scope a.be-card:hover { text-decoration: none; }
.legacy .be-scope .be-card-flat  { box-shadow: none; }
.legacy .be-scope .be-card-tight { padding: 16px; }
.legacy .be-scope .be-card > :last-child { margin-bottom: 0; }

/* --- .be-eyebrow — the house kicker (12px / 700 / .16em / gradient dash) --- */
.legacy .be-scope .be-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 .6rem;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--be-brand-ink);
}
.legacy .be-scope .be-eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--be-gradient-hair);
}
.legacy .be-scope .be-eyebrow.is-centered { justify-content: center; }

/* --- .be-badge ------------------------------------------------------------ */
.legacy .be-scope .be-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: var(--be-radius-pill);
  background-color: var(--be-brand-tint);
  color: var(--be-brand-ink);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* =============================================================================
   9. CALCULATOR SHELL
   -----------------------------------------------------------------------------
   Markup contract (as shipped in calculator.html):

     <div class="be-scope" data-suite="…">
       <section class="be-calc">
         <header class="be-calc__head"> …crumb, title, .be-toggle, .be-select… </header>
         <div class="be-grid">
           <aside class="be-rail">   ul.be-rail__list > li.be-rail__item > .be-pill
           <div   class="be-main">   .be-main__groups > .be-group > .be-group__grid
           <aside class="be-panel">  .be-card.be-panel__card
         </div>
         <div class="be-toasts"></div>
         <div class="be-bar" hidden></div>
       </section>
     </div>

   `.be-panel` is the sticky COLUMN; its chrome comes from the `.be-card` inside
   it, so the outer element must stay transparent (handled below).
   ========================================================================== */
.legacy .be-scope .be-calc,
.legacy .be-scope.be-calc { position: relative; display: block; }

/* --- header --------------------------------------------------------------- */
.legacy .be-scope .be-calc__head { margin-block-end: 28px; }
.legacy .be-scope .be-crumb { margin-block-end: 14px; }
.legacy .be-scope .be-crumb__back { min-height: 38px; padding-inline: 14px; font-size: 13.5px; }
.legacy .be-scope .be-calc__headmain {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 24px;
}
.legacy .be-scope .be-calc__headtext { flex: 1 1 380px; min-width: 0; }
.legacy .be-scope .be-calc__title { margin: 0 0 .35em; }
.legacy .be-scope .be-calc__lede  { margin: 0; max-width: 62ch; color: var(--be-muted); font-size: 1.05rem; }
.legacy .be-scope .be-calc__controls {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.legacy .be-scope .be-calc__currency { display: inline-flex; align-items: center; gap: 8px; }
.legacy .be-scope .be-calc__curlabel {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--be-muted);
}
.legacy .be-scope .be-calc__curnote {
  flex: 1 1 100%;
  margin: 0;
  font-size: 12.5px;
  color: var(--be-muted);
}

/* --- the three-column grid ------------------------------------------------ */
.legacy .be-scope .be-grid {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}
.legacy .be-scope .be-rail,
.legacy .be-scope .be-main,
.legacy .be-scope .be-panel { min-width: 0; }

/* --- left rail ------------------------------------------------------------ */
.legacy .be-scope .be-rail {
  position: sticky;
  top: var(--be-sticky-top);
  max-height: calc(100vh - var(--be-sticky-top) - 24px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.legacy .be-scope .be-rail__title {
  flex: 0 0 auto;
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--be-muted);
}
.legacy .be-scope .be-rail__list {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0 4px 0 0;
  list-style: none;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.legacy .be-scope .be-rail__item { display: block; }
.legacy .be-scope .be-rail__hint {
  flex: 0 0 auto;
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--be-muted);
}

/* --- middle column -------------------------------------------------------- */
.legacy .be-scope .be-main__status {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--be-muted);
}
.legacy .be-scope .be-main__error { border-color: var(--be-border-strong); }

.legacy .be-scope .be-group {
  margin-block-end: 32px;
  scroll-margin-top: calc(var(--be-sticky-top) + 12px);
}
.legacy .be-scope .be-group:last-child { margin-block-end: 0; }
.legacy .be-scope .be-group__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--be-muted);
}
.legacy .be-scope .be-group__title::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--be-border);
}
.legacy .be-scope .be-group__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(212px, 1fr));
  gap: 14px;
}

/* --- right column (sticky) ------------------------------------------------ */
.legacy .be-scope .be-panel {
  position: sticky;
  top: var(--be-sticky-top);
  z-index: var(--be-z-sticky);
  display: block;
  background-color: var(--be-surface);
  border: 1px solid var(--be-border);
  border-radius: var(--be-radius-xl);
  box-shadow: var(--be-shadow-2);
}
/* 18-10-2026: on a short window (a laptop's ~650 px) the panel was taller than the screen and, being sticky, kept
   "Buy now" below the fold until the end of the page; it now fits the window and scrolls inside itself */
@media (min-width: 992px) {
  .legacy .be-scope .be-panel {
    max-height: calc(100vh - var(--be-sticky-top) - 16px);
    max-height: calc(100dvh - var(--be-sticky-top) - 16px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
}
/* The shipped markup nests a .be-card inside .be-panel; the outer element must
   then be a bare positioning wrapper or we render a card inside a card. */
@supports selector(:has(*)) {
  .legacy .be-scope .be-panel:has(> .be-card),
  .legacy .be-scope .be-panel:has(> .be-panel__card) {
    background-color: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}
/* Same outcome for engines without :has() — flatten the inner card instead. */
@supports not selector(:has(*)) {
  .legacy .be-scope .be-panel > .be-panel__card {
    background-color: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 18px;
  }
}
.legacy .be-scope .be-panel--bare {
  background-color: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.legacy .be-scope .be-panel__card { padding: 18px; }

/* =============================================================================
   10. .be-pill — left-rail selector
   -----------------------------------------------------------------------------
   Rendered as <button class="be-pill"> (app mode) or <a class="be-pill">
   (category mode). Children: .be-pill__label + optional .be-pill__meta.
   `.is-active` is toggled by the JS; `.is-locked` marks the mandatory Core.
   ========================================================================== */
.legacy .be-scope .be-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--be-border-strong);
  border-radius: var(--be-radius-pill);
  background-color: var(--be-surface);
  color: var(--be-text);
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.2;
  text-align: start;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  appearance: none;
  transition: background-color .18s var(--be-ease),
              border-color .18s var(--be-ease),
              color .18s var(--be-ease);
}
.legacy .be-scope a.be-pill:hover { text-decoration: none; }
.legacy .be-scope .be-pill:hover {
  border-color: var(--be-brand);
  background-color: var(--be-brand-tint);
}
.legacy .be-scope .be-pill__label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.legacy .be-scope .be-pill__meta {
  flex: 0 0 auto;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--be-muted);
}
/* optional leading dot, for rails that want a status glyph */
.legacy .be-scope .be-pill__dot {
  flex: 0 0 auto;
  width: 8px; height: 8px;
  border-radius: 50%;
  background-color: var(--be-border-strong);
  transition: background-color .18s var(--be-ease);
}

.legacy .be-scope .be-pill.is-active {
  background-color: var(--be-brand);
  border-color: var(--be-brand);
  color: var(--be-brand-fg);
  font-weight: 600;
}
.legacy .be-scope .be-pill.is-active .be-pill__meta { color: var(--be-brand-fg); opacity: .8; }
.legacy .be-scope .be-pill.is-active .be-pill__dot  { background-color: var(--be-brand-fg); }

.legacy .be-scope .be-pill.is-locked,
.legacy .be-scope .be-pill:disabled {
  cursor: default;
  border-style: dashed;
  border-color: var(--be-border-strong);
  background-color: var(--be-surface-2);
  color: var(--be-muted);
  font-weight: 500;
}
.legacy .be-scope .be-pill.is-locked:hover,
.legacy .be-scope .be-pill:disabled:hover {
  background-color: var(--be-surface-2);
  border-color: var(--be-border-strong);
}

/* horizontal pill strip (the rail below 992px, and anywhere else it is handy) */
.legacy .be-scope .be-pillrow {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding-block: 4px;
  -webkit-overflow-scrolling: touch;
}
.legacy .be-scope .be-pillrow::-webkit-scrollbar { display: none; }
.legacy .be-scope .be-pillrow > .be-pill { width: auto; }

/* =============================================================================
   11. .be-appcard — hidden checkbox + full-card label
   -----------------------------------------------------------------------------
   Markup contract (as shipped):

     <div class="be-appcard" data-app-wrap="pos">
       <input type="checkbox" class="be-appcard__input" id="be-app-pos"
              data-app="pos" data-cost="0.35" data-app-depends="stock">
       <label class="be-appcard__label" for="be-app-pos">
         <span class="be-appcard__icon">…</span>
         <span class="be-appcard__body">
           <span class="be-appcard__name">Point of Sale</span>
           <span class="be-appcard__blurb">…</span>
         </span>
         <span class="be-appcard__price">
           <span class="be-appcard__amount">$0.35</span>
           <span class="be-appcard__unit">per user</span>
         </span>
       </label>
     </div>

   The CHECKED state is matched four ways so no single mechanism is load-bearing:
     a) .be-appcard.is-selected                   <- what the JS toggles
     b) .be-appcard.is-checked                    <- alias, same styling
     c) .be-appcard:has(.be-appcard__input:checked)
     d) .be-appcard__input:checked + .be-appcard__label
   (a) and (b) are plain class selectors, so the checked state survives on any
   engine, with or without :has().

   Checked is signalled by FOUR redundant channels, never colour alone:
   brand border + brand tint fill + a filled check badge + bolder name.

   `.be-appcard.is-bare` = the single-element variant, where the .be-appcard
   element IS the label and carries the padding itself.
   ========================================================================== */
.legacy .be-scope .be-appcard {
  position: relative;
  display: flex;
  border: 1px solid var(--be-border-strong);
  border-radius: var(--be-radius-lg);
  background-color: var(--be-surface);
  color: var(--be-text);
  transition: border-color .18s var(--be-ease),
              background-color .18s var(--be-ease),
              box-shadow .18s var(--be-ease),
              transform .18s var(--be-ease);
}
.legacy .be-scope .be-appcard:hover {
  border-color: var(--be-brand);
  
  
}

.legacy .be-scope .be-appcard__label,
.legacy .be-scope .be-appcard.is-bare {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 7px;
  min-height: 104px;
  /* logical padding — the badge lane follows the writing direction (RTL-safe) */
  padding-block: 15px 14px;
  padding-inline: 15px 44px;
  margin: 0;
  cursor: pointer;
  user-select: none;
}

/* the real control: visually hidden, still focusable and screen-reader-visible */
.legacy .be-scope .be-appcard__input {
  position: absolute;
  width: 1px; height: 1px;
  margin: 0; padding: 0; border: 0;
  opacity: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

.legacy .be-scope .be-appcard__icon {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background-color: var(--be-surface-2);
  color: var(--be-brand-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  transition: background-color .18s var(--be-ease), color .18s var(--be-ease);
}
.legacy .be-scope .be-appcard__icon img { width: 30px; height: 30px; object-fit: contain; }
/* real image icons sit directly on the card - no chip behind them */
.legacy .be-scope .be-appcard__icon:has(img) { background-color: transparent; }

.legacy .be-scope .be-appcard__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.legacy .be-scope .be-appcard__name { font-size: 14.5px; font-weight: 600; line-height: 1.25; }
.legacy .be-scope .be-appcard__blurb {
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--be-muted);
}
.legacy .be-scope .be-appcard__price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-block-start: auto;
  font-size: 13px;
  color: var(--be-muted);
  font-variant-numeric: tabular-nums;
}
.legacy .be-scope .be-appcard__amount { font-weight: 700; color: var(--be-text); }
.legacy .be-scope .be-appcard__unit,
.legacy .be-scope .be-appcard__price small { font-size: 11.5px; }
.legacy .be-scope .be-appcard__free {
  font-weight: 700;
  color: var(--be-brand-ink);
  text-transform: lowercase;
}
/* "always on" — kept in normal flow (an absolutely positioned label collides
   with the check badge and overflows the card at narrow widths). */
.legacy .be-scope .be-appcard__lock {
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: var(--be-radius-pill);
  background-color: var(--be-brand);
  color: var(--be-brand-fg);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* --- the check badge: ::after = disc, ::before = tick -------------------- */
.legacy .be-scope .be-appcard::after {
  content: "";
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--be-border-strong);
  background-color: var(--be-surface);
  opacity: .55;
  transform: scale(.85);
  transition: opacity .18s var(--be-ease),
              transform .18s var(--be-ease),
              background-color .18s var(--be-ease),
              border-color .18s var(--be-ease);
}
.legacy .be-scope .be-appcard::before {
  content: "";
  position: absolute;
  top: 19px;                     /* centred inside the 22px disc at top:12 */
  inset-inline-end: 18.5px;
  z-index: 1;
  width: 9px; height: 5px;
  border-inline-start: 2px solid var(--be-brand-fg);
  border-block-end: 2px solid var(--be-brand-fg);
  transform: rotate(-45deg) scale(.4);
  transform-origin: center;
  opacity: 0;
  transition: opacity .18s var(--be-ease), transform .18s var(--be-ease);
}

/* --- CHECKED (a + b): plain classes, universal support -------------------- */
.legacy .be-scope .be-appcard.is-selected,
.legacy .be-scope .be-appcard.is-checked {
  border-color: var(--be-brand);
  background-color: var(--be-brand-tint);
  box-shadow: var(--be-shadow-2);
}
.legacy .be-scope .be-appcard.is-selected .be-appcard__name,
.legacy .be-scope .be-appcard.is-checked  .be-appcard__name { font-weight: 700; }
/* selection must not paint the icon - the checkmark + border carry the state */
.legacy .be-scope .be-appcard.is-selected .be-appcard__icon,
.legacy .be-scope .be-appcard.is-checked  .be-appcard__icon {
  background-color: transparent;
}
.legacy .be-scope .be-appcard.is-selected::after,
.legacy .be-scope .be-appcard.is-checked::after {
  background-color: var(--be-brand);
  border-color: var(--be-brand);
  opacity: 1;
  transform: scale(1);
}
.legacy .be-scope .be-appcard.is-selected::before,
.legacy .be-scope .be-appcard.is-checked::before {
  opacity: 1;
  transform: rotate(-45deg) scale(1);
}

/* --- CHECKED (c): :has(). Isolated so an unsupported selector cannot take
       the class-based rules above down with it. ---------------------------- */
.legacy .be-scope .be-appcard:has(.be-appcard__input:checked) {
  border-color: var(--be-brand);
  background-color: var(--be-brand-tint);
  box-shadow: var(--be-shadow-2);
}
.legacy .be-scope .be-appcard:has(.be-appcard__input:checked) .be-appcard__name { font-weight: 700; }
/* selection must not paint the icon here either (the class-based rules above
   already say so — this :has() variant was the fill Dennis kept seeing) */
.legacy .be-scope .be-appcard:has(.be-appcard__input:checked) .be-appcard__icon {
  background-color: transparent;
}
.legacy .be-scope .be-appcard:has(.be-appcard__input:checked)::after {
  background-color: var(--be-brand);
  border-color: var(--be-brand);
  opacity: 1;
  transform: scale(1);
}
.legacy .be-scope .be-appcard:has(.be-appcard__input:checked)::before {
  opacity: 1;
  transform: rotate(-45deg) scale(1);
}

/* --- CHECKED (d): the label reacts even if the wrapper class is missing ---- */
.legacy .be-scope .be-appcard__input:checked + .be-appcard__label .be-appcard__name { font-weight: 700; }
/* selection must NOT paint the icon (Dennis strict rule) — the border and
   checkmark carry the state; this sibling variant was the last filler */
.legacy .be-scope .be-appcard__input:checked + .be-appcard__label .be-appcard__icon {
  background-color: transparent;
}

/* --- auto-added by a dependency: a dashed ring flags "not your click" ----- */
.legacy .be-scope .be-appcard.is-required { border-style: dashed; }

/* --- LOCKED (Core — mandatory, always on, not clickable) ------------------ */
.legacy .be-scope .be-appcard.is-locked {
  border-style: solid;
  border-color: var(--be-brand);
  background-color: var(--be-brand-tint);
  box-shadow: none;
}
.legacy .be-scope .be-appcard.is-locked:hover { transform: none; box-shadow: none; }
.legacy .be-scope .be-appcard.is-locked .be-appcard__label,
.legacy .be-scope .be-appcard.is-locked.is-bare { cursor: not-allowed; }
.legacy .be-scope .be-appcard.is-locked .be-appcard__input { pointer-events: none; }
.legacy .be-scope .be-appcard.is-locked .be-appcard__icon {
  background-color: var(--be-brand);
  color: var(--be-brand-fg);
}
.legacy .be-scope .be-appcard.is-locked .be-appcard__name { font-weight: 700; }
.legacy .be-scope .be-appcard.is-locked::after {
  background-color: var(--be-brand);
  border-color: var(--be-brand);
  opacity: 1;
  transform: scale(1);
}
.legacy .be-scope .be-appcard.is-locked::before {
  opacity: 1;
  transform: rotate(-45deg) scale(1);
}

/* =============================================================================
   12. .be-panel INTERNALS — receipt, base row, total
   ========================================================================== */
.legacy .be-scope .be-panel__summary {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--be-muted);
  font-variant-numeric: tabular-nums;
}

.legacy .be-scope .be-panel__lines {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  max-height: min(38vh, 320px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.legacy .be-scope .be-panel__line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-block: 7px;
  font-size: 14px;
}
.legacy .be-scope .be-panel__line + .be-panel__line { border-block-start: 1px dashed var(--be-border); }
.legacy .be-scope .be-panel__linename  { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.legacy .be-scope .be-panel__lineprice {
  flex: 0 0 auto;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--be-muted);
}
.legacy .be-scope .be-panel__line.is-locked .be-panel__linename { font-weight: 600; }
.legacy .be-scope .be-panel__line.is-locked .be-panel__lineprice { color: var(--be-brand-ink); }
.legacy .be-scope .be-panel__line--empty { color: var(--be-muted); font-style: italic; }

.legacy .be-scope .be-panel__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-block: 10px;
  border-block-start: 1px solid var(--be-border);
  font-size: 14px;
}
.legacy .be-scope .be-panel__rowlabel { font-weight: 600; }
.legacy .be-scope .be-panel__rowvalue { font-weight: 700; font-variant-numeric: tabular-nums; }
.legacy .be-scope .be-panel__basenote {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--be-muted);
}

.legacy .be-scope .be-panel__total {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin-block-start: 14px;
  padding-block-start: 14px;
  border-block-start: 1px solid var(--be-border);
}
.legacy .be-scope .be-panel__totallabel {
  flex: 1 1 100%;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--be-muted);
}
.legacy .be-scope .be-panel__totalvalue {
  font-family: var(--be-font-display);
  font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--be-text);
  font-variant-numeric: tabular-nums;
}
.legacy .be-scope .be-panel__totalunit { font-size: 13px; font-weight: 600; color: var(--be-muted); }
.legacy .be-scope .be-panel__annual {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--be-muted);
}
.legacy .be-scope .be-panel__cta { display: grid; gap: 10px; margin-block-start: 16px; }
.legacy .be-scope .be-panel__ctanote {
  margin: 10px 0 0;
  font-size: 12px;
  text-align: center;
  color: var(--be-muted);
}

/* =============================================================================
   13. .be-stepper · .be-toggle · .be-select · .be-savings
   ========================================================================== */

/* --- .be-stepper — the user-count control -------------------------------- */
.legacy .be-scope .be-stepper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-block-start: 14px;
  padding-block-start: 14px;
  border-block-start: 1px solid var(--be-border);
}
.legacy .be-scope .be-stepper__label {
  /* P14: basis 0, not auto - a long unit ("Shipments a month") used to claim a full
     row's width and push the + button onto a line of its own; now the label wraps
     inside the space the three controls leave. */
  flex: 1 1 0;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--be-muted);
}
.legacy .be-scope .be-stepper__btn {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: var(--be-tap);
  height: var(--be-tap);
  padding: 0;
  border: 1px solid var(--be-border-strong);
  border-radius: var(--be-radius-md);
  background-color: var(--be-surface-2);
  color: var(--be-text);
  font: inherit;
  font-size: 19px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color .15s var(--be-ease),
              color .15s var(--be-ease),
              border-color .15s var(--be-ease);
}
.legacy .be-scope .be-stepper__btn:hover:not(:disabled) {
  background-color: var(--be-brand);
  border-color: var(--be-brand);
  color: var(--be-brand-fg);
}
.legacy .be-scope .be-stepper__btn:disabled { opacity: .4; cursor: not-allowed; }
.legacy .be-scope .be-stepper__input {
  flex: 0 0 auto;
  width: 5.5ch;
  min-width: 62px;
  height: var(--be-tap);
  padding: 0 8px;
  border: 1px solid var(--be-border-strong);
  border-radius: var(--be-radius-md);
  background-color: var(--be-surface);
  color: var(--be-text);
  font: inherit;
  font-size: 16px;      /* 16px stops iOS Safari zooming on focus */
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
  appearance: textfield;
  -moz-appearance: textfield;
}
.legacy .be-scope .be-stepper__input::-webkit-outer-spin-button,
.legacy .be-scope .be-stepper__input::-webkit-inner-spin-button { appearance: none; margin: 0; }
.legacy .be-scope .be-stepper__help {
  flex: 1 1 100%;
  margin: 0;
  font-size: 12px;
  color: var(--be-muted);
}
.legacy .be-scope .be-stepper.is-invalid .be-stepper__input { border-color: var(--be-accent-ink); }
.legacy .be-scope .be-stepper.is-invalid .be-stepper__help  { color: var(--be-accent-ink); font-weight: 600; }

/* --- .be-toggle — Monthly / Annual segmented control ---------------------- */
/*  Shipped shape: <div class="be-toggle"><button class="be-toggle__opt is-active">
    A radio-input shape (`.be-toggle__input:checked + .be-toggle__opt`) is also
    honoured, so a no-JS variant needs no CSS change.                          */
.legacy .be-scope .be-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--be-border-strong);
  border-radius: var(--be-radius-pill);
  background-color: var(--be-surface-2);
}
.legacy .be-scope .be-toggle__input {
  position: absolute;
  width: 1px; height: 1px;
  margin: 0; padding: 0; border: 0;
  opacity: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}
.legacy .be-scope .be-toggle__opt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--be-radius-pill);
  background-color: transparent;
  color: var(--be-muted);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  appearance: none;
  transition: background-color .18s var(--be-ease), color .18s var(--be-ease);
}
.legacy .be-scope .be-toggle__opt:hover { color: var(--be-text); }
.legacy .be-scope .be-toggle__opt.is-active,
.legacy .be-scope .be-toggle__input:checked + .be-toggle__opt {
  background-color: var(--be-brand);
  color: var(--be-brand-fg);
  box-shadow: var(--be-shadow-1);
}
.legacy .be-scope .be-toggle__badge {
  padding: 2px 7px;
  border-radius: var(--be-radius-pill);
  background-color: var(--be-accent);
  color: var(--be-accent-fg);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
}

/* --- .be-select — currency dropdown --------------------------------------- */
.legacy .be-scope .be-select {
  min-height: 40px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--be-border-strong);
  border-radius: var(--be-radius-md);
  background-color: var(--be-surface);
  color: var(--be-text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  /* chevron drawn with gradients — no icon font, no external asset */
  background-image:
    linear-gradient(45deg,  transparent 50%, currentColor 50%, currentColor 58%, transparent 58%),
    linear-gradient(-45deg, transparent 50%, currentColor 50%, currentColor 58%, transparent 58%);
  background-position: right 17px center, right 12px center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.legacy [dir="rtl"] .be-scope .be-select {
  padding: 0 12px 0 34px;
  background-position: left 12px center, left 17px center;
}

/* --- .be-savings — the honest, live-computed comparison ------------------- */
/*  Shipped shape: a block callout with __compare / __headline / __note, plus
    .is-positive (we are cheaper) or .is-neutral (we are not — say so plainly).
    `.be-savings.is-pill` gives the compact inline badge form.                */
.legacy .be-scope .be-savings {
  margin-block-start: 14px;
  padding: 12px 14px;
  border: 1px solid var(--be-accent-300);
  border-radius: var(--be-radius-md);
  background-color: var(--be-accent-tint);
  color: var(--be-text);
  font-size: 13px;
  line-height: 1.45;
}
.legacy .be-scope .be-savings > :last-child { margin-bottom: 0; }
.legacy .be-scope .be-savings__compare {
  margin: 0 0 4px;
  font-size: 12.5px;
  color: var(--be-muted);
}
.legacy .be-scope .be-savings__headline {
  margin: 0 0 4px;
  font-family: var(--be-font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--be-accent-ink);
  font-variant-numeric: tabular-nums;
}
.legacy .be-scope .be-savings__note {
  margin: 0;
  font-size: 12px;
  color: var(--be-muted);
}
/* Not cheaper at this basket / seat count — same shape, neutral colour, no
   celebration. The claim has to be able to read "we are not cheaper here". */
.legacy .be-scope .be-savings.is-neutral {
  border-color: var(--be-border-strong);
  background-color: var(--be-surface-2);
}
.legacy .be-scope .be-savings.is-neutral .be-savings__headline { color: var(--be-text); font-weight: 700; }

.legacy .be-scope .be-savings.is-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-block-start: 0;
  padding: 7px 12px;
  border-radius: var(--be-radius-pill);
  font-weight: 600;
}
.legacy .be-scope .be-savings__x {
  font-family: var(--be-font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
  color: var(--be-accent-ink);
}
:root[data-theme="dark"] .legacy .be-scope .be-savings { border-color: var(--be-accent-800); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .legacy .be-scope .be-savings { border-color: var(--be-accent-800); }
}

/* =============================================================================
   14. BUTTONS
   ========================================================================== */
.legacy .be-scope .be-btn-primary,
.legacy .be-scope .be-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: var(--be-tap);
  padding: 0 22px;
  border-radius: var(--be-radius-md);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  appearance: none;
  transition: background-color .18s var(--be-ease),
              border-color .18s var(--be-ease),
              color .18s var(--be-ease),
              box-shadow .18s var(--be-ease),
              transform .18s var(--be-ease);
}
.legacy .be-scope .be-btn-primary:hover,
.legacy .be-scope .be-btn-ghost:hover { text-decoration: none; }

.legacy .be-scope .be-btn-primary {
  border: 1px solid var(--be-brand);
  background-color: var(--be-brand);
  color: var(--be-brand-fg);
  box-shadow: var(--be-shadow-2);
}
.legacy .be-scope .be-btn-primary:hover {
  background-color: var(--be-brand-hover);
  border-color: var(--be-brand-hover);
  transform: translateY(-2px);
  box-shadow: var(--be-shadow-3);
}
.legacy .be-scope .be-btn-primary:active { transform: translateY(0); box-shadow: var(--be-shadow-1); }

.legacy .be-scope .be-btn-ghost {
  border: 1px solid var(--be-border-strong);
  background-color: transparent;
  color: var(--be-text);
}
.legacy .be-scope .be-btn-ghost:hover {
  border-color: var(--be-brand);
  background-color: var(--be-brand-tint);
  color: var(--be-brand-ink);
  transform: translateY(-2px);
}
.legacy .be-scope .be-btn-ghost:active { transform: translateY(0); }

.legacy .be-scope .be-btn-primary:disabled,
.legacy .be-scope .be-btn-ghost:disabled,
.legacy .be-scope .be-btn-primary[aria-disabled="true"],
.legacy .be-scope .be-btn-ghost[aria-disabled="true"] {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.legacy .be-scope .be-btn-block { width: 100%; }
.legacy .be-scope .be-btn-sm { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
/* the .be-panel__cta stack: full-width buttons */
.legacy .be-scope .be-panel__cta .be-btn-primary,
.legacy .be-scope .be-panel__cta .be-btn-ghost { width: 100%; }

/* =============================================================================
   15. .be-toast · .be-noscript · .be-skeleton
   ========================================================================== */
.legacy .be-scope .be-toasts {
  position: fixed;
  inset-block-end: calc(var(--be-fab-bottom) + 4px + env(safe-area-inset-bottom, 0px));
  inset-inline: 0;
  z-index: var(--be-z-toast);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-inline: var(--be-gutter);
  pointer-events: none;
}
.legacy .be-scope .be-toast {
  max-width: min(420px, 100%);
  padding: 10px 14px;
  border: 1px solid var(--be-border);
  border-inline-start: 3px solid var(--be-brand);
  border-radius: var(--be-radius-md);
  background-color: var(--be-surface);
  box-shadow: var(--be-shadow-3);
  color: var(--be-text);
  font-size: 13.5px;
  line-height: 1.4;
  pointer-events: auto;
  animation: be-popin .2s var(--be-ease);
}
.legacy .be-scope .be-toast--dep    { border-inline-start-color: var(--be-brand); }
.legacy .be-scope .be-toast--locked { border-inline-start-color: var(--be-accent); }
@keyframes be-popin {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.legacy .be-scope .be-noscript { margin-block-start: 24px; }
.legacy .be-scope .be-noscript__formula {
  padding: 12px 14px;
  border-inline-start: 3px solid var(--be-brand);
  border-radius: var(--be-radius-sm);
  background-color: var(--be-surface-2);
  font-weight: 600;
}
.legacy .be-scope .be-noscript__bands { color: var(--be-muted); font-size: 14px; }
.legacy .be-scope .be-noscript__bands li { margin-block-end: 4px; }

.legacy .be-scope .be-skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background-color: var(--be-surface-2);
}
.legacy .be-scope .be-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, var(--be-border), transparent);
  animation: be-shimmer 1.4s infinite;
}
@keyframes be-shimmer { to { transform: translateX(100%); } }

/* =============================================================================
   16. FAB KIT
   -----------------------------------------------------------------------------
   Host them in a bare scope so they inherit tokens without painting a band:
     <div class="be-scope be-fab-layer"> … </div>

   Positions use LOGICAL properties, so bottom-left / bottom-right mirror
   correctly in RTL locales (the family already ships RTL on e-Reta).
   z-index 1035: above a sticky header (1030), below Bootstrap offcanvas (1045)
   and modal (1055), so a platform dialog is never covered by a FAB.
   ========================================================================== */
.legacy .be-scope .be-fab {
  position: fixed;
  z-index: var(--be-z-fab);
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--be-gradient-brand);
  color: var(--be-on-gradient);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--be-shadow-4);
  transition: transform .18s var(--be-ease),
              box-shadow .18s var(--be-ease),
              filter .18s var(--be-ease);
}
.legacy .be-scope .be-fab:hover  { transform: scale(1.05); }
.legacy .be-scope .be-fab:active { transform: scale(.98); }
.legacy .be-scope .be-fab > svg  { width: 1.15em; height: 1.15em; }

/* bottom-LEFT, 48px — appearance (theme + suite accent) */
.legacy .be-scope .be-fab-appearance {
  width: 48px; height: 48px;
  inset-block-end: calc(var(--be-fab-bottom) + env(safe-area-inset-bottom, 0px));
  inset-inline-start: var(--be-fab-inset);
}
/* bottom-RIGHT, 56px — Bria assistant (deliberately the larger of the two) */
.legacy .be-scope .be-fab-assist {
  width: 56px; height: 56px;
  font-size: 20px;
  inset-block-end: calc(var(--be-fab-bottom) + 4px + env(safe-area-inset-bottom, 0px));
  inset-inline-end: var(--be-fab-inset);
}
/* optional third slot, stacked above the appearance FAB (language, a11y, …) */
.legacy .be-scope .be-fab-stacked {
  width: 48px; height: 48px;
  inset-block-end: calc(var(--be-fab-bottom) + 60px + env(safe-area-inset-bottom, 0px));
  inset-inline-start: var(--be-fab-inset);
}

/* --- .be-fab-panel — 256px card, hidden until .is-open ------------------- */
.legacy .be-scope .be-fab-panel {
  position: fixed;
  z-index: var(--be-z-fab);
  inset-block-end: calc(var(--be-fab-bottom) + 60px + env(safe-area-inset-bottom, 0px));
  inset-inline-start: var(--be-fab-inset);
  width: 256px;
  max-width: calc(100vw - (2 * var(--be-fab-inset)));
  padding: 16px;
  background-color: var(--be-surface);
  border: 1px solid var(--be-border);
  border-radius: var(--be-radius-xl);
  box-shadow: var(--be-shadow-4);
  color: var(--be-text);

  /* hidden by default — not display:none, so the open transition can run */
  visibility: hidden;
  opacity: 0;
  transform: translateY(8px) scale(.98);
  pointer-events: none;
  transition: opacity .2s var(--be-ease),
              transform .2s var(--be-ease),
              visibility 0s linear .2s;
}
.legacy .be-scope .be-fab-panel.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  transition: opacity .2s var(--be-ease),
              transform .2s var(--be-ease),
              visibility 0s linear 0s;
}
/* anchor a panel to the right-hand FAB instead */
.legacy .be-scope .be-fab-panel.is-end {
  inset-inline-start: auto;
  inset-inline-end: var(--be-fab-inset);
  inset-block-end: calc(var(--be-fab-bottom) + 70px + env(safe-area-inset-bottom, 0px));
}
/* if the panel is nested inside a position:fixed dock, pin it to the dock */
.legacy .be-scope .be-fab-dock { position: fixed; z-index: var(--be-z-fab); }
.legacy .be-scope .be-fab-dock .be-fab-panel {
  position: absolute;
  inset-block-end: 60px;
  inset-inline-start: 0;
}

.legacy .be-scope .be-fab-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-block-end: 12px;
}
.legacy .be-scope .be-fab-panel-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--be-muted);
}
.legacy .be-scope .be-fab-panel-close {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border: 0;
  border-radius: var(--be-radius-sm);
  background-color: transparent;
  color: var(--be-muted);
  font: inherit;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.legacy .be-scope .be-fab-panel-close:hover { background-color: var(--be-surface-2); color: var(--be-text); }
.legacy .be-scope .be-fab-panel-label {
  display: block;
  margin: 14px 0 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--be-muted);
}
/* the Light / Dark pair inside the panel reuses .be-toggle, full width */
.legacy .be-scope .be-fab-panel .be-toggle { display: flex; width: 100%; }
.legacy .be-scope .be-fab-panel .be-toggle__opt { flex: 1 1 0; padding-inline: 8px; }

/* --- .be-swatch — accent chooser grid ------------------------------------ */
.legacy .be-scope .be-swatch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.legacy .be-scope .be-swatch {
  position: relative;
  display: block;
  width: 100%;
  height: 48px;                       /* >= 44px touch target */
  padding: 0;
  border: 2px solid var(--be-border);
  border-radius: var(--be-radius-md);
  background-image: linear-gradient(135deg,
                      var(--be-swatch-from, var(--be-brand-600)),
                      var(--be-swatch-to,   var(--be-brand-800)));
  cursor: pointer;
  overflow: hidden;
  transition: border-color .18s var(--be-ease), transform .18s var(--be-ease);
}
.legacy .be-scope .be-swatch:hover { transform: translateY(-2px); }
.legacy .be-scope .be-swatch.is-active { border-color: var(--be-text); }
/* white tick, drawn — no icon-font dependency */
.legacy .be-scope .be-swatch.is-active::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 11px; height: 6px;
  border-inline-start: 2.5px solid var(--be-on-gradient);
  border-block-end: 2.5px solid var(--be-on-gradient);
  transform: translate(-50%, -70%) rotate(-45deg);
}
.legacy .be-scope .be-swatch-name {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  color: var(--be-muted);
}

/* =============================================================================
   17. DECOR — aurora + grid-bg hero backdrop
   ========================================================================== */
/* self-match compound included — see the SELF-MATCH NOTE in section 7. Without
   it the aurora / grid backdrop escapes and paints over the whole viewport. */
.legacy .be-scope .be-hero,
.legacy .be-scope.be-hero { position: relative; overflow: hidden; isolation: isolate; }
.legacy .be-scope .be-hero > *,
.legacy .be-scope.be-hero > * { position: relative; z-index: 1; }
.legacy .be-scope .be-hero > .be-aurora,
.legacy .be-scope .be-hero > .be-gridbg,
.legacy .be-scope.be-hero > .be-aurora,
.legacy .be-scope.be-hero > .be-gridbg { position: absolute; z-index: 0; }

.legacy .be-scope .be-aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.legacy .be-scope .be-aurora::before,
.legacy .be-scope .be-aurora::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(90px);
  opacity: .45;
}
.legacy .be-scope .be-aurora::before {
  width: 620px; height: 620px; top: -240px; left: -140px;
  background: radial-gradient(circle, var(--be-brand-400), transparent 70%);
}
.legacy .be-scope .be-aurora::after {
  width: 520px; height: 520px; top: -180px; right: -120px;
  background: radial-gradient(circle, var(--be-accent-400), transparent 70%);
}
@supports (color: color-mix(in srgb, red, red)) {
  .legacy .be-scope .be-aurora::before {
    background: radial-gradient(circle,
      color-mix(in srgb, var(--be-brand-500) 55%, transparent), transparent 70%);
  }
  .legacy .be-scope .be-aurora::after {
    background: radial-gradient(circle,
      color-mix(in srgb, var(--be-accent-500) 50%, transparent), transparent 70%);
  }
}
:root[data-theme="dark"] .legacy .be-scope .be-aurora::before,
:root[data-theme="dark"] .legacy .be-scope .be-aurora::after { opacity: .30; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .legacy .be-scope .be-aurora::before,
  :root:not([data-theme="light"]) .legacy .be-scope .be-aurora::after { opacity: .30; }
}

.legacy .be-scope .be-gridbg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .6;
  background-image:
    linear-gradient(to right,  var(--be-border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--be-border) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(75% 65% at 50% 0, #000 42%, transparent 100%);
          mask-image: radial-gradient(75% 65% at 50% 0, #000 42%, transparent 100%);
}

/* =============================================================================
   18. RESPONSIVE
   -----------------------------------------------------------------------------
   >= 1200px  three columns (rail / apps / sticky panel)
   992-1199   three columns, narrower
   <  992px   SINGLE column; the rail becomes a horizontal pill strip and the
              summary moves into a fixed bottom bar.

   Two bottom-bar patterns are supported:
     .be-bar                    — the separate lightweight bar in the shipped
                                  markup (JS un-hides it; CSS decides whether
                                  it may show at all)
     .be-panel.is-mobile-bar    — the single-element variant, where the whole
                                  panel reflows into the bar
   ========================================================================== */
@media (max-width: 1199.98px) {
  .legacy .be-scope .be-grid { grid-template-columns: 200px minmax(0, 1fr) 304px; gap: 20px; }
  .legacy .be-scope .be-group__grid { grid-template-columns: repeat(auto-fill, minmax(186px, 1fr)); }
}

/* the bar never exists above the breakpoint */
.legacy .be-scope .be-bar { display: none; }

@media (max-width: 991.98px) {
  .legacy { --be-gutter: 16px; --be-sticky-top: 68px; }

  .legacy .be-scope .be-grid { display: block; }

  /* rail -> horizontal, sticky, scrollable pill strip */
  .legacy .be-scope .be-rail {
    position: sticky;
    top: var(--be-sticky-top);
    z-index: calc(var(--be-z-sticky) + 1);
    max-height: none;
    margin-block-end: 20px;
    padding-block: 8px;
    background-color: var(--be-bg);
    border-block-end: 1px solid var(--be-border);
  }
  .legacy .be-scope .be-rail__title { margin-block-end: 8px; }
  .legacy .be-scope .be-rail__list {
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    padding: 0 0 2px;
    -webkit-overflow-scrolling: touch;
  }
  .legacy .be-scope .be-rail__list::-webkit-scrollbar { display: none; }
  .legacy .be-scope .be-rail__item { flex: 0 0 auto; }
  .legacy .be-scope .be-rail__hint { display: none; }

  /* the toast stack clears the FAB row (they share the bottom edge on phones) */
  .legacy .be-scope .be-toasts {
    inset-block-end: calc(var(--be-fab-bottom) + 76px + env(safe-area-inset-bottom, 0px));
  }

  /* panel returns to normal flow, plus room for the fixed bar */
  .legacy .be-scope .be-panel {
    position: static;
    margin-block-start: 24px;
    margin-block-end: 84px;
  }

  /* --- pattern A: the standalone .be-bar -------------------------------- */
  .legacy .be-scope .be-bar:not([hidden]) {
    position: fixed;
    inset-inline: 0;
    inset-block-end: 0;
    z-index: var(--be-z-bar);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px var(--be-gutter) calc(10px + env(safe-area-inset-bottom, 0px));
    background-color: var(--be-surface);
    border-block-start: 1px solid var(--be-border);
    border-radius: var(--be-radius-xl) var(--be-radius-xl) 0 0;
    box-shadow: var(--be-shadow-4);
  }
  .legacy .be-scope .be-bar__summary {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
  }
  .legacy .be-scope .be-bar__cta { flex: 0 0 auto; }

  /* --- pattern B: .be-panel.is-mobile-bar -------------------------------- */
  .legacy .be-scope .be-panel.is-mobile-bar {
    position: fixed;
    inset-inline: 0;
    inset-block-end: 0;
    top: auto;
    z-index: var(--be-z-bar);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 10px var(--be-gutter) calc(10px + env(safe-area-inset-bottom, 0px));
    background-color: var(--be-surface);
    border: 0;
    border-block-start: 1px solid var(--be-border);
    border-radius: var(--be-radius-xl) var(--be-radius-xl) 0 0;
    box-shadow: var(--be-shadow-4);
  }
  .legacy .be-scope .be-panel.is-mobile-bar .be-panel__summary,
  .legacy .be-scope .be-panel.is-mobile-bar .be-panel__lines,
  .legacy .be-scope .be-panel.is-mobile-bar .be-panel__row,
  .legacy .be-scope .be-panel.is-mobile-bar .be-panel__basenote,
  .legacy .be-scope .be-panel.is-mobile-bar .be-stepper,
  .legacy .be-scope .be-panel.is-mobile-bar .be-savings,
  .legacy .be-scope .be-panel.is-mobile-bar .be-panel__ctanote { display: none; }
  .legacy .be-scope .be-panel.is-mobile-bar .be-panel__card {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0;
    border: 0;
    background-color: transparent;
    box-shadow: none;
  }
  .legacy .be-scope .be-panel.is-mobile-bar .be-panel__total {
    flex: 1 1 auto;
    margin: 0;
    padding: 0;
    border: 0;
  }
  .legacy .be-scope .be-panel.is-mobile-bar .be-panel__totalvalue { font-size: 1.3rem; }
  .legacy .be-scope .be-panel.is-mobile-bar .be-panel__cta { display: flex; gap: 8px; margin: 0; }
  .legacy .be-scope .be-panel.is-mobile-bar .be-panel__cta .be-btn-ghost { display: none; }
  .legacy .be-scope .be-panel.is-mobile-bar .be-panel__cta .be-btn-primary { width: auto; }

  /* expanded sheet — the whole receipt, dragged up from the bar */
  .legacy .be-scope .be-panel.is-mobile-bar.is-expanded {
    flex-direction: column;
    align-items: stretch;
    max-height: 78vh;
    overflow-y: auto;
    padding-block-start: 16px;
  }
  .legacy .be-scope .be-panel.is-mobile-bar.is-expanded .be-panel__summary,
  .legacy .be-scope .be-panel.is-mobile-bar.is-expanded .be-panel__lines,
  .legacy .be-scope .be-panel.is-mobile-bar.is-expanded .be-panel__row,
  .legacy .be-scope .be-panel.is-mobile-bar.is-expanded .be-panel__basenote,
  .legacy .be-scope .be-panel.is-mobile-bar.is-expanded .be-stepper,
  .legacy .be-scope .be-panel.is-mobile-bar.is-expanded .be-savings,
  .legacy .be-scope .be-panel.is-mobile-bar.is-expanded .be-panel__ctanote { display: block; }
  .legacy .be-scope .be-panel.is-mobile-bar.is-expanded .be-stepper { display: flex; }
  .legacy .be-scope .be-panel.is-mobile-bar.is-expanded .be-panel__card {
    flex-direction: column;
    align-items: stretch;
  }
  .legacy .be-scope .be-panel.is-mobile-bar.is-expanded .be-panel__cta { display: grid; }
  .legacy .be-scope .be-panel.is-mobile-bar.is-expanded .be-panel__cta .be-btn-ghost { display: inline-flex; }

  /* grab handle for either bar */
  .legacy .be-scope .be-bar .be-bar__grip,
  .legacy .be-scope .be-panel.is-mobile-bar .be-panel__grip {
    position: absolute;
    top: 5px; left: 50%;
    transform: translateX(-50%);
    width: 38px; height: 4px;
    border-radius: 999px;
    background-color: var(--be-border-strong);
  }

  /* Lift the FABs and the toast stack clear of the bar.
     Automatic wherever :has() exists — no JS hook required. `--be-fab-bottom`
     is a TOKEN, so overriding it on <body> is inert until a FAB reads it. */
  .legacy:has(.be-bar:not([hidden])),
  .legacy:has(.be-panel.is-mobile-bar) { --be-fab-bottom: 96px; }
  /* Explicit fallback for engines without :has(): add `.be-has-mobile-bar`
     to <html> or <body> when the bar is mounted. */
  .legacy .be-has-mobile-bar { --be-fab-bottom: 96px; }
}

@media (max-width: 575.98px) {
  .legacy .be-scope .be-group__grid { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 10px; }
  .legacy .be-scope .be-appcard__label,
  .legacy .be-scope .be-appcard.is-bare {
    min-height: 96px;
    padding-block: 13px 12px;
    padding-inline: 13px 40px;
  }
  .legacy .be-scope .be-appcard__blurb { display: none; }
  .legacy .be-scope .be-fab-panel { width: min(288px, calc(100vw - 32px)); }
  .legacy .be-scope .be-btn-primary,
  .legacy .be-scope .be-btn-ghost { padding: 0 16px; font-size: 14.5px; }
  .legacy .be-scope .be-calc__controls { width: 100%; }
}

/* Every interactive surface reaches the 44px target on touch. Applied on BOTH
   triggers because neither alone is sufficient: `pointer: coarse` misses
   touch-capable laptops, and the width query misses large tablets. */
@media (pointer: coarse), (max-width: 991.98px) {
  .legacy .be-scope .be-pill          { min-height: var(--be-tap); }
  .legacy .be-scope .be-toggle__opt   { min-height: var(--be-tap); padding-inline: 18px; }
  .legacy .be-scope .be-select        { min-height: var(--be-tap); }
  .legacy .be-scope .be-crumb__back   { min-height: var(--be-tap); }
  .legacy .be-scope .be-fab-panel-close { width: var(--be-tap); height: var(--be-tap); }
  .legacy .be-scope .be-swatch        { height: 52px; }
}

/* =============================================================================
   19. ACCESSIBILITY
   ========================================================================== */

/* --- focus: always visible, always a brand ring --------------------------- */
.legacy .be-scope :focus-visible {
  outline: 2px solid var(--be-brand);
  outline-offset: 2px;
  border-radius: var(--be-radius-sm);
}
/* the real checkbox is visually hidden, so the ring must land on the card */
.legacy .be-scope .be-appcard:has(.be-appcard__input:focus-visible),
.legacy .be-scope .be-appcard__input:focus-visible + .be-appcard__label {
  outline: 2px solid var(--be-brand);
  outline-offset: 2px;
  border-radius: var(--be-radius-lg);
}
.legacy .be-scope .be-toggle__input:focus-visible + .be-toggle__opt {
  outline: 2px solid var(--be-brand);
  outline-offset: 2px;
}
/* on a brand-filled control the ring needs a gap in the page colour to read */
.legacy .be-scope .be-btn-primary:focus-visible,
.legacy .be-scope .be-pill.is-active:focus-visible,
.legacy .be-scope .be-toggle__opt.is-active:focus-visible,
.legacy .be-scope .be-fab:focus-visible {
  outline: 2px solid var(--be-brand);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--be-bg), var(--be-shadow-2);
}

/* --- reduced motion: keep the state change, drop the movement ------------- */
@media (prefers-reduced-motion: reduce) {
  .legacy .be-scope *,
  .legacy .be-scope *::before,
  .legacy .be-scope *::after {
    animation-duration: .001ms;
    animation-iteration-count: 1;
    transition-duration: .001ms;
    scroll-behavior: auto;
  }
  .legacy .be-scope .be-card.is-interactive:hover,
  .legacy .be-scope a.be-card:hover,
  .legacy .be-scope .be-appcard:hover,
  .legacy .be-scope .be-btn-primary:hover,
  .legacy .be-scope .be-btn-ghost:hover,
  .legacy .be-scope .be-swatch:hover { transform: none; }
  .legacy .be-scope .be-fab:hover { transform: none; filter: brightness(1.12); }
  .legacy .be-scope .be-skeleton::after { animation: none; }
  .legacy .be-scope .be-fab-panel,
  .legacy .be-scope .be-fab-panel.is-open { transform: none; }
}

/* --- Windows / forced-colours: hand back to the system palette ------------ */
@media (forced-colors: active) {
  .legacy .be-scope .be-card,
  .legacy .be-scope .be-appcard,
  .legacy .be-scope .be-panel,
  .legacy .be-scope .be-pill,
  .legacy .be-scope .be-toggle,
  .legacy .be-scope .be-select,
  .legacy .be-scope .be-stepper__btn,
  .legacy .be-scope .be-stepper__input { border-color: CanvasText; }
  .legacy .be-scope .be-appcard.is-selected,
  .legacy .be-scope .be-appcard.is-checked,
  .legacy .be-scope .be-appcard.is-locked { border-width: 3px; }
  .legacy .be-scope .be-pill.is-active,
  .legacy .be-scope .be-toggle__opt.is-active,
  .legacy .be-scope .be-fab { forced-color-adjust: none; }
}

/* --- print: drop the furniture, keep the receipt -------------------------- */
@media print {
  .legacy .be-scope .be-fab,
  .legacy .be-scope .be-fab-panel,
  .legacy .be-scope .be-fab-layer,
  .legacy .be-scope .be-toasts,
  .legacy .be-scope .be-bar,
  .legacy .be-scope .be-rail { display: none; }
  .legacy .be-scope .be-grid { display: block; }
  .legacy .be-scope .be-panel,
  .legacy .be-scope .be-panel.is-mobile-bar {
    position: static;
    margin: 0;
    box-shadow: none;
  }
  .legacy .be-scope .be-card { box-shadow: none; break-inside: avoid; }
  .legacy .be-scope { background-color: #ffffff; color: #000000; }  /* ink on paper */
}

/* ============================ end bridge-theme.css ======================== */

/* ============================================================================
   AIRIER PICKER LAYER  (added 2026-08-09 on Dennis's design note)
   The picker was built with tall, description-heavy cards. The reference we
   are matching — the comparable picker's "Choose your Apps" — is far airier: a compact pill
   (small icon + bold name, nothing else), three across, generous gutters, and
   plain LARGE category headings instead of decorated ones. This section
   overrides the earlier component rules rather than editing them in place, so
   it is easy to lift out if the denser layout is preferred.
   ========================================================================= */

/* --- the pill itself: one row, ~72px tall, quiet border, soft lift -------- */
.legacy .be-scope .be-appcard__label,
.legacy .be-scope .be-appcard.is-bare {
  flex-direction: row;          /* was column */
  align-items: center;
  gap: 14px;
  min-height: 0;                /* was 104px */
  padding-block: 14px;
  padding-inline: 16px 40px;
}
.legacy .be-scope .be-appcard {
  border-color: var(--be-border);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(11, 16, 20, .06);
}
.legacy .be-scope .be-appcard:hover {
                /* the comparable picker's cards do not jump */
  
  border-color: var(--be-border-strong);
}

/* the comparable picker shows icon + name only. The blurb is kept in the DOM for screen
   readers and for the selected-list in the panel, but hidden on the card. */
.legacy .be-scope .be-appcard__blurb { display: none; }

/* bigger, brand-tinted icon tile, closer to the comparable picker's 32px app icons */
.legacy .be-scope .be-appcard__icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  flex: 0 0 40px;
}
.legacy .be-scope .be-appcard__icon img { width: 26px; height: 26px; }

.legacy .be-scope .be-appcard__body { flex: 1 1 auto; gap: 2px; }
.legacy .be-scope .be-appcard__name { font-size: 15px; font-weight: 700; }

/* price sits quietly under the name instead of competing with it */
.legacy .be-scope .be-appcard__price {
  position: static;
  font-size: 12px;
  font-weight: 500;
  opacity: .75;
}

/* --- category headings: large and plain, like the comparable picker's display-5 ----------- */
.legacy .be-scope .be-group__title {
  font-size: clamp(1.5rem, 1.15rem + 1.1vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--be-text);
  opacity: 1;
}
.legacy .be-scope .be-group__title::after { display: none; }   /* drop the rule/dash */
.legacy .be-scope .be-group { margin-block-end: 44px; }

/* --- more air between pills --------------------------------------------- */
.legacy .be-scope .be-group__grid { gap: 16px; }
@media (min-width: 1200px) {
  .legacy .be-scope .be-group__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* --- row-layout containment fix ------------------------------------------
   Making the label a row put four children (icon, body, lock badge, price)
   on one line; the label grew to 325px inside a 227px card and the badge and
   price spilled over the name. Constrain the label, let the body shrink, and
   push the price to the end. The "ALWAYS ON" badge is redundant next to the
   check mark and the "included" price, so it is dropped on the card. */
.legacy .be-scope .be-appcard__label,
.legacy .be-scope .be-appcard.is-bare {
  width: 100%;
  box-sizing: border-box;
  padding-inline: 16px 38px;   /* right lane kept clear for the check mark */
  overflow: hidden;
}
.legacy .be-scope .be-appcard__body { flex: 1 1 auto; min-width: 0; }
.legacy .be-scope .be-appcard__name { white-space: normal; overflow-wrap: anywhere; }
.legacy .be-scope .be-appcard__lock { display: none; }
.legacy .be-scope .be-appcard__price {
  margin-inline-start: auto;
  flex: 0 0 auto;
  white-space: nowrap;
  align-self: center;
}


.legacy .be-scope .be-appcard__name { overflow-wrap: normal; word-break: normal; hyphens: none; }
.legacy .be-scope .be-group__grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 680px) {
  .legacy .be-scope .be-group__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .legacy .be-scope .be-group__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* P14 (17-09): beside the plan panel (340px track + 36px gap, i.e. once something is picked) three columns fit only
   from 1280px. At 1024-1279 the cards were 169-233px with a 45-110px name box: single words ("Manufacturing",
   "Interoperability", "Bancassurance") ran into the check-mark lane and out of the card, and the Core card's name ran
   under its "included" note. Two columns there; without a pick the cards keep the full width and three columns. */
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .legacy .be-scope.has-selection .be-group__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --- rail removed (Dennis, 2026-08-09) -----------------------------------
   Matching the comparable picker's picker exactly: no left category rail, just a single wide
   column of grouped pills with the price panel on the right. Gives the cards
   ~200px more width, which is what made the comparable picker's layout feel airy. */
.legacy .be-scope .be-rail { display: none; }
.legacy .be-scope .be-grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 992px) {
  .legacy .be-scope .be-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; }
}
@media (min-width: 1400px) {
  .legacy .be-scope .be-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; }
}

/* ============================================================================
   CARD GEOMETRY (2026-08-09)
   the comparable picker card = 70px, padding 16px, radius 4px, shadow 0 2px 4px rgba(0,0,0,.075),
   border 2px solid transparent (brand on hover/select), icon 32px, name 16/600.
   ========================================================================= */
.legacy .be-scope .be-appcard {
  border: 2px solid transparent;
  border-radius: 6px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .075);
}
:root[data-theme="dark"] .legacy .be-scope .be-appcard,
.legacy .be-scope[data-theme] .be-appcard { background-color: var(--be-surface); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .legacy .be-scope .be-appcard { background-color: var(--be-surface); }
}
.legacy .be-scope .be-appcard:hover {
  border-color: var(--be-brand);
  
}
.legacy .be-scope .be-appcard.is-selected,
.legacy .be-scope .be-appcard:has(.be-appcard__input:checked) {
  border-color: var(--be-brand);
  background-color: var(--be-brand-tint);
}
.legacy .be-scope .be-appcard__label,
.legacy .be-scope .be-appcard.is-bare {
  gap: 12px;
  padding: 16px;
  padding-inline-end: 40px;
  min-height: 70px;
}
.legacy .be-scope .be-appcard__icon { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 8px; }
.legacy .be-scope .be-appcard__icon img { width: 24px; height: 24px; }
.legacy .be-scope .be-appcard__name { font-size: 16px; font-weight: 600; }

/* ============================================================================
   PICKER COMPOSITION (2026-08-09)
     hero  : white, CENTRED, h1 55.5px/700 + one 16px/600 line, pb 48px
     band  : full-bleed grey #f3f4f6 holding every group
     group : heading 27.6px/700 left-aligned, mb 16px, 48px between groups
     card  : icon 32px + name 16px/600 ONLY — no price, no description
   Prices are not on the comparable picker's cards and are not on ours either; the right-hand
   panel already itemises every selected app, so the grid stays clean.
   ========================================================================= */

/* hero ------------------------------------------------------------------- */
.legacy .be-scope .be-calc__head { text-align: center; padding-block: 8px 40px; }
.legacy .be-scope .be-calc__headmain { display: block; }
.legacy .be-scope .be-calc__headtext { max-width: 720px; margin-inline: auto; }
.legacy .be-scope .be-calc__title {
  font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.45rem);
  font-weight: 700; line-height: 1.05; letter-spacing: -0.02em;
  margin-block: 0 14px;
}
.legacy .be-scope .be-calc__lede {
  font-size: 16px; font-weight: 600; color: var(--be-muted);
  margin-block: 0; max-width: none;
}
.legacy .be-scope .be-crumb { display: none; }        /* the comparable picker has no breadcrumb here */
.legacy .be-scope .be-calc__controls {
  display: flex; justify-content: center; align-items: center;
  flex-wrap: wrap; gap: 14px; margin-block-start: 26px;
}

/* full-bleed grey band --------------------------------------------------- */
.legacy .be-scope .be-band {
  background: #f3f4f6;
  margin-inline: calc(50% - 50vw);
  padding-block: 44px;
  padding-inline: max(24px, calc(50vw - 50%));
}
:root[data-theme="dark"] .legacy .be-scope .be-band { background: var(--be-surface-2, #162028); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .legacy .be-scope .be-band { background: var(--be-surface-2, #162028); }
}
/* the snapshot wrapper is painted white by frontend.css (the old site body) */
:root[data-theme="dark"] .legacy:has(.be-scope) { background: var(--be-bg); color: var(--be-text); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .legacy:has(.be-scope) { background: var(--be-bg); color: var(--be-text); }
}

/* groups ----------------------------------------------------------------- */
.legacy .be-scope .be-group { margin-block-end: 48px; }
.legacy .be-scope .be-group__title {
  font-size: 27.6px; font-weight: 700; text-align: start;
  margin-block: 0 16px; letter-spacing: -0.01em;
}
.legacy .be-scope .be-group__grid { gap: 16px; }

/* card: icon + name only ------------------------------------------------- */
.legacy .be-scope .be-appcard__price { display: none; }
.legacy .be-scope .be-appcard__label,
.legacy .be-scope .be-appcard.is-bare { min-height: 70px; padding-inline-end: 44px; }
/* the Core card keeps its "included" note, since that is real information */
.legacy .be-scope .be-appcard.is-locked .be-appcard__price { display: inline; opacity: .7; }

/* the comparable picker shows no pricing small-print in the hero — keep the heading and one
   line only. The currency selector stays; its explanatory note does not. */
.legacy .be-scope .be-calc__curnote { display: none; }


/* (font-face of the reference display face removed for OptiraPOS) */

.legacy .be-scope .be-calc__title,
.legacy .be-scope .be-group__title {
  font-family: "BridgeERP Display", "Source Sans Pro", system-ui, sans-serif;
  letter-spacing: 0;
}
.legacy .be-scope .be-calc__title { font-size: clamp(2.8rem, 2rem + 3.4vw, 4.4rem); line-height: 1; }
.legacy .be-scope .be-group__title { font-size: 34px; line-height: 1.15; }

/* --- panel appears only after the first pick ----------------------------- */
.legacy .be-scope .be-panel { display: none; }
.legacy .be-scope.has-selection .be-panel { display: block; }
.legacy .be-scope .be-grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 992px) {
  .legacy .be-scope .be-grid { grid-template-columns: minmax(0, 1fr); }
  .legacy .be-scope.has-selection .be-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; }
}

/* --- roomier cards: the grid was cramped next to the reference ----------- */
.legacy .be-scope .be-group__grid { gap: 20px; }
.legacy .be-scope .be-appcard__label,
.legacy .be-scope .be-appcard.is-bare { min-height: 84px; padding: 20px; padding-inline-end: 48px; gap: 16px; }
.legacy .be-scope .be-appcard__icon { width: 36px; height: 36px; flex: 0 0 36px; }
.legacy .be-scope .be-group { margin-block-end: 56px; }

/* --- panel: essentials only (no per-app price column, no cap row) -------- */
.legacy .be-scope .be-panel__lineprice,
.legacy .be-scope .be-panel__row--base,
.legacy .be-scope .be-panel__basenote,
.legacy .be-scope .be-savings { display: none; }
.legacy .be-scope .be-panel__card { padding: 26px; }

/* ============================================================================
   LAYOUT CORRECTIONS (Dennis, 2026-08-09)
   1. Real page gutters — content was running edge-to-edge; the reference
      keeps ~100px of air each side on a wide screen.
   2. The panel COLUMN is reserved from the start, so revealing the panel no
      longer re-flows and squeezes the cards. Only the panel's visibility
      changes; the card column keeps its width throughout.
   3. Per-app prices restored on the cards.
   ========================================================================= */

/* 1. gutters + a sane maximum measure, applied to hero and band alike */
.legacy .be-scope .be-calc__head,
.legacy .be-scope .be-band > .be-grid {
  max-width: 1800px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 100px);
}
.legacy .be-scope .be-band { padding-inline: 0; }

/* 2. the panel track always exists: cards never resize when it appears */
@media (min-width: 992px) {
  .legacy .be-scope .be-grid,
  .legacy .be-scope.has-selection .be-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 36px;
    align-items: start;
  }
}
/* below the breakpoint the panel stacks underneath, so no reserved track */
@media (max-width: 991.98px) {
  .legacy .be-scope .be-grid,
  .legacy .be-scope.has-selection .be-grid { grid-template-columns: minmax(0, 1fr); }
}

/* 3. prices back on the cards */
.legacy .be-scope .be-appcard__price { display: flex; align-items: baseline; gap: 5px; }
.legacy .be-scope .be-appcard__amount { font-weight: 700; font-size: 14px; }
.legacy .be-scope .be-appcard__unit { font-size: 12px; opacity: .7; }

/* Brand app icons: the site's own artwork, shown as-is. No tinted plate —
   these are the apps' identities and must read exactly as they do elsewhere. */
.legacy .be-scope .be-appcard__icon:has(img) { background: transparent; border-radius: 0; }
.legacy .be-scope .be-appcard__icon img { width: 34px; height: 34px; object-fit: contain; }

/* Prices belong in the cart, not on the cards (Dennis, 2026-08-09).
   The card stays a clean pill — brand icon + name — exactly like the
   reference; every selected app shows its rate in the plan panel. */
.legacy .be-scope .be-appcard__price { display: none; }
.legacy .be-scope .be-appcard.is-locked .be-appcard__price { display: inline; opacity: .7; }
.legacy .be-scope .be-panel__lineprice {
  display: inline; margin-inline-start: auto;
  font-size: 13px; font-weight: 600; white-space: nowrap; opacity: .85;
}
.legacy .be-scope .be-panel__line { display: flex; align-items: baseline; gap: 10px; }
.legacy .be-scope .be-panel__linename { flex: 1 1 auto; min-width: 0; }

/* ---- entry animation: pills rise in once everything is ready ------------
   The reference reveals the whole page at once, then the cards animate up.
   Stagger is per-position within each group (cheap, no JS bookkeeping). */
@keyframes be-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.legacy .be-scope[data-be-ready] .be-appcard { animation: be-rise .42s cubic-bezier(.22,.7,.3,1) both; }
.legacy .be-scope[data-be-ready] .be-group__title { animation: be-rise .38s cubic-bezier(.22,.7,.3,1) both; }
.legacy .be-scope[data-be-ready] .be-appcard:nth-child(1) { animation-delay: .02s }
.legacy .be-scope[data-be-ready] .be-appcard:nth-child(2) { animation-delay: .05s }
.legacy .be-scope[data-be-ready] .be-appcard:nth-child(3) { animation-delay: .08s }
.legacy .be-scope[data-be-ready] .be-appcard:nth-child(4) { animation-delay: .11s }
.legacy .be-scope[data-be-ready] .be-appcard:nth-child(5) { animation-delay: .14s }
.legacy .be-scope[data-be-ready] .be-appcard:nth-child(6) { animation-delay: .17s }
.legacy .be-scope[data-be-ready] .be-appcard:nth-child(n+7) { animation-delay: .2s }
/* the panel slides in the same way when it first appears */
.legacy .be-scope.has-selection .be-panel { animation: be-rise .34s cubic-bezier(.22,.7,.3,1) both; }
/* never animate for people who asked not to */
@media (prefers-reduced-motion: reduce) {
  .legacy .be-scope[data-be-ready] .be-appcard,
  .legacy .be-scope[data-be-ready] .be-group__title,
  .legacy .be-scope.has-selection .be-panel { animation: none; }
}
/* the loading line contributed to the flicker; the reveal covers it now */
.legacy .be-scope .be-main__status { display: none; }

/* ============================================================================
   FINAL PASS (Dennis, 2026-08-09)
   - full width until something is picked, then a smooth glide to the split
   - currency sits inline with the billing toggle, same pill language
   - default state is Core only
   ========================================================================= */

/* --- smooth full-width -> split ------------------------------------------
   grid-template-columns is animatable, so the columns genuinely glide rather
   than snapping. The panel fades and slides in on the same curve. */
@media (min-width: 992px) {
  .legacy .be-scope .be-grid {
    grid-template-columns: minmax(0, 1fr) 0px;
    gap: 0px;
    transition: grid-template-columns .55s cubic-bezier(.22,.7,.26,1),
                gap .55s cubic-bezier(.22,.7,.26,1);
  }
  .legacy .be-scope.has-selection .be-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 36px;
  }
  /* the panel is always in the DOM so the column can animate; it is just
     invisible and non-interactive until there is something to show */
  .legacy .be-scope .be-panel {
    display: block;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    overflow: hidden;
    transition: opacity .4s ease .12s, transform .45s cubic-bezier(.22,.7,.26,1) .12s;
  }
  .legacy .be-scope.has-selection .be-panel {
    opacity: 1; transform: none; pointer-events: auto; animation: none;
  }
}
/* cards reflow smoothly as the column narrows */
.legacy .be-scope .be-appcard { transition: border-color .18s, box-shadow .18s, background-color .18s; }
@media (prefers-reduced-motion: reduce) {
  .legacy .be-scope .be-grid, .legacy .be-scope .be-panel { transition: none; }
}

/* --- currency inline with the billing toggle ----------------------------- */
.legacy .be-scope .be-calc__controls { gap: 12px; }
.legacy .be-scope .be-calc__currency { display: inline-flex; align-items: center; }
.legacy .be-scope .be-calc__currency .be-select {
  appearance: none; -webkit-appearance: none;
  height: 44px; padding: 0 38px 0 16px; cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--be-text);
  background-color: var(--be-surface);
  border: 1px solid var(--be-border-strong); border-radius: 999px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) 19px, calc(100% - 14px) 19px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.legacy .be-scope .be-calc__currency .be-select:hover { border-color: var(--be-brand); }
.legacy .be-scope .be-calc__currency .be-select:focus-visible { outline: 3px solid var(--be-brand); outline-offset: 2px; }
.legacy .be-scope .be-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.legacy .be-scope .be-appcard.is-locked .be-appcard__icon { background: transparent; }

/* ---- implementation packs (engine-rendered; see calculator.js) ---- */
.legacy .be-impl { margin: 16px 0 4px; padding: 14px; border: 1px solid var(--be-border, #e4e9ed); border-radius: 12px; background: var(--be-surface-2, #f4f6f8); }
.legacy .be-impl__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.legacy .be-impl__label { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--be-muted, #5b6b76); }
.legacy .be-impl__tag { font-size: 11px; font-weight: 600; color: var(--be-brand-ink, #0f4c5c); background: var(--be-brand-tint, #e8f1f4); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.legacy .be-impl__row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.legacy .be-impl__name { font-size: 14px; font-weight: 600; color: var(--be-text, #14222c); }
.legacy .be-impl__price { font-size: 14px; font-weight: 700; color: var(--be-text, #14222c); white-space: nowrap; }
.legacy .be-impl__blurb { font-size: 12.5px; color: var(--be-muted, #5b6b76); line-height: 1.45; margin: 6px 0 10px; }
.legacy .be-impl__actions { display: flex; gap: 8px; margin-top: 10px; }
.legacy .be-impl__add { flex: 1; font-size: 13.5px; padding: 9px 12px; }
.legacy .be-impl__more { font-size: 13.5px; padding: 9px 12px; }
.legacy .be-impl__note { font-size: 12px; color: var(--be-muted, #5b6b76); margin: 8px 0 0; }
.legacy .be-panel__line--impl .be-panel__lineprice { font-weight: 700; }

.legacy .be-implmodal { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: 24px; background: rgba(13, 27, 38, .55); }
.legacy .be-implmodal__card { width: min(980px, 100%); max-height: 90vh; overflow: auto; background: var(--be-bg, #fff); border-radius: 18px; padding: 26px 28px 24px; box-shadow: 0 30px 70px rgba(13, 27, 38, .35); }
.legacy .be-implmodal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.legacy .be-implmodal__title { font-size: 22px; font-weight: 700; margin: 0; color: var(--be-text, #14222c); }
.legacy .be-implmodal__close { border: 0; background: transparent; font-size: 28px; line-height: 1; cursor: pointer; color: var(--be-muted, #5b6b76); padding: 4px 8px; }
.legacy .be-implmodal__close:hover { color: var(--be-text, #14222c); }
.legacy .be-implmodal__lede { font-size: 14px; color: var(--be-muted, #5b6b76); margin: 6px 0 18px; }
.legacy .be-implmodal__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.legacy .be-implmodal__pack { position: relative; border: 1px solid var(--be-border, #e4e9ed); border-radius: 14px; padding: 40px 18px 18px; display: flex; flex-direction: column; background: var(--be-bg, #fff); }
.legacy .be-implmodal__pack.is-recommended { border-color: var(--be-brand, #114966); box-shadow: 0 8px 26px color-mix(in srgb, var(--be-brand, #114966) 12%, transparent); }
.legacy .be-implmodal__pack.is-chosen { background: var(--be-brand-tint, #e8f1f4); }
.legacy .be-implmodal__flag { position: absolute; top: 12px; left: 18px; font-size: 11px; font-weight: 700; color: var(--be-brand-ink, #0f4c5c); background: var(--be-brand-tint, #e8f1f4); padding: 3px 10px; border-radius: 999px; }
.legacy .be-implmodal__packname { font-size: 17px; font-weight: 700; margin: 0 0 2px; color: var(--be-text, #14222c); }
.legacy .be-implmodal__hours { font-size: 13px; color: var(--be-muted, #5b6b76); margin: 0 0 10px; }
.legacy .be-implmodal__price { font-size: 26px; font-weight: 800; margin: 0; color: var(--be-text, #14222c); }
.legacy .be-implmodal__unit { font-size: 12px; color: var(--be-muted, #5b6b76); margin: 0 0 12px; }
.legacy .be-implmodal__list { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.legacy .be-implmodal__list li { font-size: 13px; color: var(--be-text, #14222c); padding-left: 20px; position: relative; }
.legacy .be-implmodal__list li::before { content: "✓"; position: absolute; left: 0; color: var(--be-brand-ink, #0f4c5c); font-weight: 700; }
.legacy .be-implmodal__pick { margin-top: auto; font-size: 14px; }
.legacy .be-implmodal__note { font-size: 12.5px; color: var(--be-muted, #5b6b76); margin: 16px 0 0; }

/* ---- implementation area v2: configure-first, below the plan price ---- */
.legacy .be-impl { margin: 14px 0 16px; }
.legacy .be-impl__configure { width: 100%; font-size: 13.5px; padding: 10px 12px; }
.legacy .be-impl__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.legacy .be-impl__change, .legacy .be-impl__remove { width: 100%; font-size: 13px; padding: 8px 10px; }
.legacy .be-implmodal__pack { padding: 34px 16px 16px; }
.legacy .be-implmodal__price { font-size: 22px; }
.legacy .be-implmodal__link { color: var(--be-brand-ink, #0f4c5c); font-weight: 600; text-decoration: none; }
.legacy .be-implmodal__link:hover { text-decoration: underline; }
.legacy .be-impl__row { flex-wrap: wrap; }
.legacy .be-impl__name { flex: 1 1 55%; min-width: 0; }

/* ---- estimator view (Configure) ---- */
.legacy .be-implmodal__members { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--be-text, #14222c); margin: 4px 0 18px; }
.legacy .be-implmodal__sizeinput { width: 110px; padding: 8px 10px; border: 1px solid var(--be-border, #e4e9ed); border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--be-text, #14222c); background: var(--be-bg, #fff); }
.legacy .be-implmodal__scope { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 28px; margin-bottom: 20px; }
.legacy .be-implmodal__scopeitem { display: flex; align-items: flex-start; gap: 12px; padding: 9px 10px; border-radius: 10px; cursor: pointer; }
.legacy .be-implmodal__scopeitem:hover { background: var(--be-brand-tint, #e8f1f4); }
.legacy .be-implmodal__scopeitem.is-locked { cursor: default; }
.legacy .be-implmodal__scopeitem.is-locked:hover { background: transparent; }
.legacy .be-implmodal__scopeitem input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--be-brand, #114966); flex: 0 0 auto; }
.legacy .be-implmodal__scopetext { min-width: 0; }
.legacy .be-implmodal__scopename { display: block; font-size: 15px; font-weight: 700; color: var(--be-text, #14222c); }
.legacy .be-implmodal__scopeblurb { display: block; font-size: 13px; color: var(--be-muted, #5b6b76); line-height: 1.4; margin-top: 1px; }
.legacy .be-implmodal__result { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; border-top: 1px solid var(--be-border, #e4e9ed); padding-top: 18px; }
.legacy .be-implmodal__resultlabel { font-size: 13px; color: var(--be-muted, #5b6b76); margin: 0 0 3px; }
.legacy .be-implmodal__resultpack { font-size: 16px; font-weight: 700; color: var(--be-text, #14222c); margin: 0 0 4px; }
.legacy .be-implmodal__resultprice { font-size: 30px; font-weight: 800; color: var(--be-brand-ink, #0f4c5c); margin: 0; line-height: 1.1; }
.legacy .be-implmodal__resultnote { font-size: 12.5px; color: var(--be-muted, #5b6b76); margin: 2px 0 0; }
.legacy .be-implmodal__actions { display: flex; gap: 10px; }
.legacy .be-implmodal__continue { font-size: 14.5px; padding: 11px 26px; }
.legacy .be-implmodal__readmore { font-size: 14.5px; padding: 11px 18px; }
.legacy .be-implmodal__back { border: 0; background: transparent; cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--be-brand-ink, #0f4c5c); padding: 0 0 12px; }
.legacy .be-implmodal__back:hover { text-decoration: underline; }
@media (max-width: 640px) { .legacy .be-implmodal__scope { grid-template-columns: 1fr; } }
.legacy .be-implmodal__appsline { font-size: 13.5px; color: var(--be-muted, #5b6b76); margin: -6px 0 16px; }

/* breathing room between the deck nav and the pricing hero (all products) */
.legacy .be-scope .be-calc__head { padding-top: 84px; }
@media (max-width: 767px) { .legacy .be-scope .be-calc__head { padding-top: 48px; } }

/* ---- send / print the quotation (corporate approval path) ---- */
.legacy .be-scope .be-quote__open { display: block; width: 100%; margin-top: 10px; padding: 11px 16px; border: 1px solid var(--be-border, #e4e9ed); border-radius: 10px; background: var(--be-surface-2, #f4f6f9); color: var(--be-text, #14222c); font-size: 14px; font-weight: 600; cursor: pointer; text-align: center; }
.legacy .be-scope .be-quote__open:hover { border-color: var(--be-border-strong, #b9c4cc); background: var(--be-surface, #fff); }
.legacy .be-quotemodal__card { width: min(640px, 100%); }
/* .legacy .be-scope h3 (0,2,1) zeroes heading margins - these must outrank it */
.legacy .be-scope .be-qm__section { font-size: 16px; font-weight: 700; color: var(--be-text, #14222c); margin: 30px 0 10px; padding-top: 18px; border-top: 1px solid var(--be-border, #e4e9ed); }
.legacy .be-scope .be-qm__section:first-of-type { margin-top: 14px; padding-top: 0; border-top: 0; }
.legacy .be-qm__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.legacy .be-qm__label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--be-text, #14222c); margin-top: 8px; }
.legacy .be-qm__input { width: 100%; padding: 10px 12px; border: 1px solid var(--be-border, #e4e9ed); border-radius: 10px; font-size: 14px; font-weight: 400; color: var(--be-text, #14222c); background: var(--be-bg, #fff); }
.legacy .be-qm__input:focus { outline: 2px solid var(--be-brand, #114966); outline-offset: 1px; }
.legacy .be-qm__help { font-size: 12.5px; color: var(--be-muted, #5b6b76); margin: 6px 0 0; }
.legacy .be-qm__growth { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 14px; margin-top: 4px; }
.legacy .be-qm__glabel { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--be-text, #14222c); }
.legacy .be-qm__error { font-size: 13.5px; font-weight: 600; color: #b3261e; margin: 14px 0 0; }
.legacy .be-qm__actions { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.legacy .be-qm__done { text-align: center; padding: 26px 10px 8px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.legacy .be-qm__donemark { width: 52px; height: 52px; border-radius: 50%; background: var(--be-brand-tint, #e8f1f4); color: var(--be-brand-ink, #0f4c5c); font-size: 26px; font-weight: 800; display: grid; place-items: center; margin: 0; }
.legacy .be-qm__donetitle { font-size: 19px; font-weight: 700; color: var(--be-text, #14222c); margin: 4px 0 0; }
.legacy .be-qm__donetext { font-size: 14px; color: var(--be-muted, #5b6b76); margin: 0 0 10px; }
.legacy .be-qm__view { margin-bottom: 4px; }
@media (max-width: 560px) {
  .legacy .be-qm__grid, .legacy .be-qm__growth { grid-template-columns: 1fr; }
  .legacy .be-qm__actions { flex-direction: column; align-items: stretch; }
}

/* ---- new-customer discount on implementation packs ---- */
.legacy .be-implmodal__was { text-decoration: line-through; color: var(--be-muted, #5b6b76); font-weight: 600; font-size: 0.7em; margin-right: 4px; }

/* ---- staged quote progress (professional, animated) ---- */
.legacy .be-qp { text-align: center; padding: 26px 8px 10px; display: flex; flex-direction: column; align-items: center; }
.legacy .be-qp__ring { width: 54px; height: 54px; border-radius: 50%; border: 4px solid var(--be-brand-tint, #e8f1f4); border-top-color: var(--be-brand, #114966); animation: be-qp-spin 0.9s linear infinite; margin-bottom: 16px; }
@keyframes be-qp-spin { to { transform: rotate(360deg); } }
.legacy .be-qp__title { font-size: 20px; font-weight: 800; color: var(--be-text, #14222c); margin: 0 0 4px; }
.legacy .be-qp__sub { font-size: 13.5px; color: var(--be-muted, #5b6b76); margin: 0 0 20px; }
.legacy .be-qp__steps { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-direction: column; gap: 10px; text-align: left; width: min(420px, 100%); }
.legacy .be-qp__step { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--be-muted, #5b6b76); opacity: 0.55; transition: opacity 0.3s ease, color 0.3s ease; }
.legacy .be-qp__mark { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--be-border-strong, #b9c4cc); position: relative; transition: border-color 0.3s ease, background 0.3s ease; }
.legacy .be-qp__step.is-active { opacity: 1; color: var(--be-text, #14222c); font-weight: 600; }
.legacy .be-qp__step.is-active .be-qp__mark { border-color: var(--be-brand, #114966); border-top-color: transparent; animation: be-qp-spin 0.8s linear infinite; }
.legacy .be-qp__step.is-done { opacity: 1; color: var(--be-text, #14222c); }
.legacy .be-qp__step.is-done .be-qp__mark { border-color: var(--be-brand, #114966); background: var(--be-brand, #114966); animation: none; }
.legacy .be-qp__step.is-done .be-qp__mark::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* ---- impl discount line in the plan panel (own row, wraps cleanly) ---- */
.legacy .be-impl__disc { font-size: 12px; color: var(--be-muted, #5b6b76); margin: 2px 0 6px; line-height: 1.4; }
.legacy .be-impl__disc .be-impl__was { text-decoration: line-through; font-weight: 600; margin-right: 6px; }

/* ---- product theme swap: no transitions while calculator.js applies a product's brand scale (see applyBrandHex) ---- */
.legacy .be-scope[data-be-theming],
.legacy .be-scope[data-be-theming] *,
.legacy .be-scope[data-be-theming] *::before,
.legacy .be-scope[data-be-theming] *::after { transition: none !important; }

/* ---- P14 (17-09): the plan panel sticks again ----
   .be-panel is the sticky column (top: --be-sticky-top), but frontend.css gives the page wrapper `.legacy`
   overflow-x: hidden, which makes the wrapper a scroll container that never scrolls: the panel scrolled away with the
   app list and the plan and its total went out of view. `clip` still cuts sideways overflow without making a scroll
   container, and flow-root keeps the block formatting context `hidden` gave (page heights measured identical on all six
   pricing pages at 390, 1024 and 1440). Engines without `clip` or `:has()` keep today's behaviour. */
.legacy:has(.be-scope) { overflow-x: clip; display: flow-root; }

/* ---- P15 (20-09): the pricing pages read like the rest of the site ------
   Same move as app/p15.css makes on every other page: the display face, one
   weight lighter as the size grows, and copy a step darker. The plan panel,
   the cards and the colours are untouched. */
.legacy .be-scope h1,
.legacy .be-scope .be-calc__title {
  font-family: var(--font-display, inherit);
  font-weight: 300;
  letter-spacing: -0.025em;
}
.legacy .be-scope h2,
.legacy .be-scope .be-group__title {
  font-family: var(--font-display, inherit);
  font-weight: 400;
  letter-spacing: -0.015em;
}
.legacy .be-scope .be-group__title { font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.1rem); }
/* --p15-body follows the theme (app/p15.css); the fixed grey stays as the
   fallback for anything that loads this sheet without the bundle */
.legacy .be-scope p,
.legacy .be-scope li { color: var(--p15-body, var(--be-grey-700, #3e4b56)); }


.legacy .be-scope .be-appcard__name { overflow-wrap: break-word; }

/* ...but it still broke "BridgeE / RP Core" at 1280 beside the plan panel: the
   core card's "included" price left the name 59px. A name never breaks inside a
   word now (the body is at least its longest word wide); when the price no longer
   fits beside the name it moves to its own line, and on the always-on core card it
   sits under the name, lined up with it (icon 36px + 16px gap). */
.legacy .be-scope .be-appcard__label { flex-wrap: wrap; row-gap: 2px; }
.legacy .be-scope .be-appcard__body { min-width: min-content; }
.legacy .be-scope .be-appcard.is-locked .be-appcard__body { flex-basis: calc(100% - 52px); }
.legacy .be-scope .be-appcard.is-locked .be-appcard__price {
  flex-basis: 100%;
  margin-inline-start: 0;
  padding-inline-start: 52px;
  align-self: auto;
}

/* ---- 30-10-2026: the plan panel scrolls again, and its lines stay readable at 0 users ----
   1. The slide-in block above ("smooth full-width -> split") sets `.be-panel { overflow: hidden }` for the
      entrance animation, which overrode the 18-10 fit-the-window rule: on a laptop-height window the total,
      implementation and "Buy now" sat below the panel's cut and could never be reached. Once the panel is
      shown it scrolls inside itself again; when it reaches either end the wheel carries on to the page
      (overscroll auto) instead of feeling stuck.
   2. On desktop the panel is now the ONE scroll area: the app list no longer has its own capped scroller
      inside it (a scroller inside a scroller trapped the wheel). The tablet/phone bar keeps its own rules.
   3. With 0 users each app shows its rule ("$0.45 per user, at least $1.50 a month") instead of a price,
      which squeezed the names to "Account..." and "Subscri...". A line now wraps: the name keeps its full
      width and a price that does not fit beside it drops under it, right-aligned. */
@media (min-width: 992px) {
  .legacy .be-scope.has-selection .be-panel {
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: auto;
    scrollbar-width: thin;
  }
  .legacy .be-scope .be-panel .be-panel__lines {
    max-height: none;
    overflow: visible;
  }
}
.legacy .be-scope .be-panel__line { flex-wrap: wrap; row-gap: 2px; }
.legacy .be-scope .be-panel__linename { flex: 1 0 auto; max-width: 100%; }
.legacy .be-scope .be-panel__lineprice { margin-inline-start: auto; text-align: end; }
/* ...and while the users box is invalid (0 or empty: the stepper carries .is-invalid) every line stacks the same
   way, the rule under the name, so the list reads as one even column instead of a mix of one- and two-line rows */
@supports selector(:has(*)) {
  .legacy .be-scope .be-panel__card:has(.be-stepper.is-invalid) .be-panel__lineprice {
    flex-basis: 100%;
    margin-inline-start: 0;
    text-align: start;
    font-size: 12.5px;
  }
}

/* ---- 30-10-2026 (b): only the app list scrolls; the size box, total and buttons stay in view ----
   On a desktop window tall enough for it, the panel is a column: the list of lines takes the room that is
   left and scrolls on its own, while the users / rooms
   box, the total, implementation and the buttons stay under it, so changing the size shows the new total at
   once. To keep that pinned part short the two main buttons sit side by side and the implementation and
   hotel-integrations blurbs (both repeated in their dialogs) are hidden. The pinned part grows when an
   implementation pack is chosen or on the hotel page, so each case switches on only from the window height
   where it still leaves room for the list (measured 30-10); below that, and in browsers without :has(), the
   whole panel scrolls as one, as before - never a scroll box inside a scroll box. */
@supports selector(:has(*)) {
  @media (min-width: 992px) and (min-height: 790px) {
    .legacy .be-scope.has-selection .be-panel:not(.is-mobile-bar):not(:has(.be-impl__row)):not(:has(.hx-int)) {
      display: flex;
      flex-direction: column;
      overflow-x: hidden;
      overflow-y: auto;
    }
    .legacy .be-scope.has-selection .be-panel:not(.is-mobile-bar):not(:has(.be-impl__row)):not(:has(.hx-int)) > .be-panel__card {
      flex: 1 1 auto;
      min-height: 0;
      display: flex;
      flex-direction: column;
      padding: 20px 22px;
    }
    .legacy .be-scope.has-selection .be-panel:not(.is-mobile-bar):not(:has(.be-impl__row)):not(:has(.hx-int)) > .be-panel__card > * {
      flex: none;
    }
    .legacy .be-scope.has-selection .be-panel:not(.is-mobile-bar):not(:has(.be-impl__row)):not(:has(.hx-int)) .be-panel__lines {
      flex: 0 1 auto;
      min-height: 120px;
      overflow-y: auto;
      overscroll-behavior: auto;
      scrollbar-width: thin;
      margin-inline-end: -10px;
      padding-inline-end: 10px;
      margin-bottom: 0;
      background: var(--be-surface);
    }
    .legacy .be-scope.has-selection .be-panel:not(.is-mobile-bar):not(:has(.be-impl__row)):not(:has(.hx-int)) .be-panel__cta {
      grid-template-columns: 1fr 1fr;
      margin-block-start: 12px;
    }
    .legacy .be-scope.has-selection .be-panel:not(.is-mobile-bar):not(:has(.be-impl__row)):not(:has(.hx-int)) .be-impl {
      margin: 12px 0 0;
      padding: 10px 12px;
    }
    .legacy .be-scope.has-selection .be-panel:not(.is-mobile-bar):not(:has(.be-impl__row)):not(:has(.hx-int)) .be-impl__blurb {
      display: none;
    }
    .legacy .be-scope.has-selection .be-panel:not(.is-mobile-bar):not(:has(.be-impl__row)):not(:has(.hx-int)) .be-impl__configure {
      padding: 8px 12px;
    }
    .legacy .be-scope.has-selection .be-panel:not(.is-mobile-bar):not(:has(.be-impl__row)):not(:has(.hx-int)) .be-quote__open {
      margin-top: 8px;
    }
    .legacy .be-scope.has-selection .be-panel:not(.is-mobile-bar):not(:has(.be-impl__row)):not(:has(.hx-int)) .hx-int {
      margin: 12px 0 0;
      padding: 10px 12px;
    }
    .legacy .be-scope.has-selection .be-panel:not(.is-mobile-bar):not(:has(.be-impl__row)):not(:has(.hx-int)) .hx-int__d {
      display: none;
    }
    .legacy .be-scope.has-selection .be-panel:not(.is-mobile-bar):not(:has(.be-impl__row)):not(:has(.hx-int)) .hx-int .be-btn-ghost {
      margin-top: 8px;
    }
  }
  @media (min-width: 992px) and (min-height: 880px) {
    .legacy .be-scope.has-selection .be-panel:not(.is-mobile-bar):has(.be-impl__row):not(:has(.hx-int)),
    .legacy .be-scope.has-selection .be-panel:not(.is-mobile-bar):has(.hx-int):not(:has(.be-impl__row)) {
      display: flex;
      flex-direction: column;
      overflow-x: hidden;
      overflow-y: auto;
    }
    .legacy .be-scope.has-selection .be-panel:not(.is-mobile-bar):has(.be-impl__row):not(:has(.hx-int)) > .be-panel__card,
    .legacy .be-scope.has-selection .be-panel:not(.is-mobile-bar):has(.hx-int):not(:has(.be-impl__row)) > .be-panel__card {
      flex: 1 1 auto;
      min-height: 0;
      display: flex;
      flex-direction: column;
      padding: 20px 22px;
    }
    .legacy .be-scope.has-selection .be-panel:not(.is-mobile-bar):has(.be-impl__row):not(:has(.hx-int)) > .be-panel__card > *,
    .legacy .be-scope.has-selection .be-panel:not(.is-mobile-bar):has(.hx-int):not(:has(.be-impl__row)) > .be-panel__card > * {
      flex: none;
    }
    .legacy .be-scope.has-selection .be-panel:not(.is-mobile-bar):has(.be-impl__row):not(:has(.hx-int)) .be-panel__lines,
    .legacy .be-scope.has-selection .be-panel:not(.is-mobile-bar):has(.hx-int):not(:has(.be-impl__row)) .be-panel__lines {
      flex: 0 1 auto;
      min-height: 120px;
      overflow-y: auto;
      overscroll-behavior: auto;
      scrollbar-width: thin;
      margin-inline-end: -10px;
      padding-inline-end: 10px;
      margin-bottom: 0;
      background: var(--be-surface);
    }
    .legacy .be-scope.has-selection .be-panel:not(.is-mobile-bar):has(.be-impl__row):not(:has(.hx-int)) .be-panel__cta,
    .legacy .be-scope.has-selection .be-panel:not(.is-mobile-bar):has(.hx-int):not(:has(.be-impl__row)) .be-panel__cta {
      grid-template-columns: 1fr 1fr;
      margin-block-start: 12px;
    }
    .legacy .be-scope.has-selection .be-panel:not(.is-mobile-bar):has(.be-impl__row):not(:has(.hx-int)) .be-impl,
    .legacy .be-scope.has-selection .be-panel:not(.is-mobile-bar):has(.hx-int):not(:has(.be-impl__row)) .be-impl {
      margin: 12px 0 0;
      padding: 10px 12px;
    }
    .legacy .be-scope.has-selection .be-panel:not(.is-mobile-bar):has(.be-impl__row):not(:has(.hx-int)) .be-impl__blurb,
    .legacy .be-scope.has-selection .be-panel:not(.is-mobile-bar):has(.hx-int):not(:has(.be-impl__row)) .be-impl__blurb {
      display: none;
    }
    .legacy .be-scope.has-selection .be-panel:not(.is-mobile-bar):has(.be-impl__row):not(:has(.hx-int)) .be-impl__configure,
    .legacy .be-scope.has-selection .be-panel:not(.is-mobile-bar):has(.hx-int):not(:has(.be-impl__row)) .be-impl__configure {
      padding: 8px 12px;
    }
    .legacy .be-scope.has-selection .be-panel:not(.is-mobile-bar):has(.be-impl__row):not(:has(.hx-int)) .be-quote__open,
    .legacy .be-scope.has-selection .be-panel:not(.is-mobile-bar):has(.hx-int):not(:has(.be-impl__row)) .be-quote__open {
      margin-top: 8px;
    }
    .legacy .be-scope.has-selection .be-panel:not(.is-mobile-bar):has(.be-impl__row):not(:has(.hx-int)) .hx-int,
    .legacy .be-scope.has-selection .be-panel:not(.is-mobile-bar):has(.hx-int):not(:has(.be-impl__row)) .hx-int {
      margin: 12px 0 0;
      padding: 10px 12px;
    }
    .legacy .be-scope.has-selection .be-panel:not(.is-mobile-bar):has(.be-impl__row):not(:has(.hx-int)) .hx-int__d,
    .legacy .be-scope.has-selection .be-panel:not(.is-mobile-bar):has(.hx-int):not(:has(.be-impl__row)) .hx-int__d {
      display: none;
    }
    .legacy .be-scope.has-selection .be-panel:not(.is-mobile-bar):has(.be-impl__row):not(:has(.hx-int)) .hx-int .be-btn-ghost,
    .legacy .be-scope.has-selection .be-panel:not(.is-mobile-bar):has(.hx-int):not(:has(.be-impl__row)) .hx-int .be-btn-ghost {
      margin-top: 8px;
    }
  }
  @media (min-width: 992px) and (min-height: 970px) {
    .legacy .be-scope.has-selection .be-panel:not(.is-mobile-bar):has(.hx-int):has(.be-impl__row) {
      display: flex;
      flex-direction: column;
      overflow-x: hidden;
      overflow-y: auto;
    }
    .legacy .be-scope.has-selection .be-panel:not(.is-mobile-bar):has(.hx-int):has(.be-impl__row) > .be-panel__card {
      flex: 1 1 auto;
      min-height: 0;
      display: flex;
      flex-direction: column;
      padding: 20px 22px;
    }
    .legacy .be-scope.has-selection .be-panel:not(.is-mobile-bar):has(.hx-int):has(.be-impl__row) > .be-panel__card > * {
      flex: none;
    }
    .legacy .be-scope.has-selection .be-panel:not(.is-mobile-bar):has(.hx-int):has(.be-impl__row) .be-panel__lines {
      flex: 0 1 auto;
      min-height: 120px;
      overflow-y: auto;
      overscroll-behavior: auto;
      scrollbar-width: thin;
      margin-inline-end: -10px;
      padding-inline-end: 10px;
      margin-bottom: 0;
      background: var(--be-surface);
    }
    .legacy .be-scope.has-selection .be-panel:not(.is-mobile-bar):has(.hx-int):has(.be-impl__row) .be-panel__cta {
      grid-template-columns: 1fr 1fr;
      margin-block-start: 12px;
    }
    .legacy .be-scope.has-selection .be-panel:not(.is-mobile-bar):has(.hx-int):has(.be-impl__row) .be-impl {
      margin: 12px 0 0;
      padding: 10px 12px;
    }
    .legacy .be-scope.has-selection .be-panel:not(.is-mobile-bar):has(.hx-int):has(.be-impl__row) .be-impl__blurb {
      display: none;
    }
    .legacy .be-scope.has-selection .be-panel:not(.is-mobile-bar):has(.hx-int):has(.be-impl__row) .be-impl__configure {
      padding: 8px 12px;
    }
    .legacy .be-scope.has-selection .be-panel:not(.is-mobile-bar):has(.hx-int):has(.be-impl__row) .be-quote__open {
      margin-top: 8px;
    }
    .legacy .be-scope.has-selection .be-panel:not(.is-mobile-bar):has(.hx-int):has(.be-impl__row) .hx-int {
      margin: 12px 0 0;
      padding: 10px 12px;
    }
    .legacy .be-scope.has-selection .be-panel:not(.is-mobile-bar):has(.hx-int):has(.be-impl__row) .hx-int__d {
      display: none;
    }
    .legacy .be-scope.has-selection .be-panel:not(.is-mobile-bar):has(.hx-int):has(.be-impl__row) .hx-int .be-btn-ghost {
      margin-top: 8px;
    }
  }
}

/* ---- 30-10-2026 (c): two scroll areas on every desktop height ----
   (b) only pins the size box and buttons on tall windows; on a laptop the panel still scrolled as one and the
   app list pushed the users / rooms box out of sight. Now the app list always has its own scroll area at the
   top of the panel (at most about 40 percent of the window) and stays in place, while the part from users /
   rooms through implementation to the buttons scrolls under it in the panel. Wheel over the list scrolls the
   list, then the panel, then the page. */
@media (min-width: 992px) {
  .legacy .be-scope.has-selection .be-panel:not(.is-mobile-bar) .be-panel__lines {
    position: sticky;
    top: 0;
    z-index: 2;
    max-height: max(120px, calc((100dvh - var(--be-sticky-top) - 16px) * 0.4));
    overflow-y: auto;
    overscroll-behavior: auto;
    scrollbar-width: thin;
    margin-inline-end: -10px;
    padding-inline-end: 10px;
    border-bottom: 1px solid var(--be-border);
    background: var(--be-surface);
  }
}


.legacy {
  --be-font-body: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --be-font-display: var(--be-font-body);
  --font-display: "Inter", system-ui, sans-serif;
  --p15-body: #3e4b56;              /* measured on the reference: lines and copy, light */
  --be-sticky-top: 88px;
}
:root[data-theme="dark"] .legacy { --p15-body: #cdd4db; }   /* measured, dark */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .legacy { --p15-body: #cdd4db; } }
html[lang="ar"] .legacy {
  --be-font-body: "Noto Arabic", "Inter", system-ui, sans-serif;
  --font-display: "Noto Arabic", "Inter", system-ui, sans-serif;
}
/* the site's own page chrome sits around the scope; the scope paints its own band like the reference */
.legacy.zpb { display: block; }
.legacy .be-scope .be-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* OptiraPOS-only: the "all inclusive" card under the core (Dennis 16-11 / 17-11), built from kit tokens only */
.legacy .be-scope .zpb-inc { margin-top: 20px; padding: 22px 24px; display: grid; gap: 12px; }
.legacy .be-scope .zpb-inc .be-eyebrow { margin: 0; }
.legacy .be-scope .zpb-inc__d { margin: 0; font-size: 14px; color: var(--be-muted); }
.legacy .be-scope .zpb-inc__d a { color: var(--be-brand-ink); font-weight: 600; }
.legacy .be-scope .zpb-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.legacy .be-scope .zpb-chips a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 12px 4px 6px; border: 1px solid var(--be-border); border-radius: var(--be-radius-pill); background: var(--be-surface); color: var(--be-text); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.legacy .be-scope .zpb-chips a:hover { border-color: var(--be-border-strong); text-decoration: none; }
.legacy .be-scope .zpb-chips img, .legacy .be-scope .zpb-chips svg, .legacy .be-scope .zpb-chips .tile { width: 24px; height: 24px; flex: none; }
.legacy .be-scope .zpb-gnote { margin: 14px 0 0; font-size: 14px; color: var(--be-muted); }
/* our app marks are inline SVG where the reference has <img>: give them the kit's :has(img) treatment (measured 17-11) */
.legacy .be-scope .be-appcard__icon:has(svg) { background: transparent; border-radius: 0; }
.legacy .be-scope .be-appcard__icon svg { width: 34px; height: 34px; }
/* launch label: the kit's badge, honest wording only (no countdown, no struck price) */
.legacy .be-scope .zpb-la { margin-top: 8px; font-weight: 500; }
.legacy .be-scope .zpb-la .be-toggle__badge { vertical-align: 2px; }
.legacy .be-scope .zpb-launch { margin: 0 0 4px; }
.legacy .be-scope .zpb-launch span { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: var(--be-radius-pill); background: var(--be-accent); color: var(--be-accent-fg); }
.legacy .be-scope .zpb-note { margin: 8px 0 0; font-size: 13px; color: var(--be-muted); }
.legacy .be-scope .zpb-bund { width: 100%; margin-top: 10px; }
.legacy .be-scope .be-panel__ctanote a { color: var(--be-brand-ink); }
.legacy .be-scope .be-panel__line.is-off .be-panel__lineprice { color: var(--be-accent-ink); }

/* 17-11 diff pass: the site's global label/heading rules leak into the scope; the reference has none of them */
.legacy .be-scope label { font-size: inherit; font-weight: inherit; color: inherit; }
/* store.css paints every h1/h2 var(--ink) with !important; inside the scope the kit's text colour wins, as on the reference */
.legacy .be-scope h1, .legacy .be-scope h2, .legacy .be-scope h3, .legacy .be-scope .be-appcard__name { color: var(--be-text) !important; }
.legacy .be-scope .be-toggle__badge { line-height: 1; }
.legacy .be-scope .be-calc__head, .legacy .be-scope .be-band, .legacy .be-scope .be-group__title, .legacy .be-scope .be-group__grid { position: relative; }

/* partner wordmarks are wide: a 24 px square shrank them past reading (measured 17-11, 1440 light + dark). Logo size, as the site's own logo rows */
.legacy .be-scope .zpb-chips img.bl { width: 56px; height: 22px; object-fit: contain; }
.legacy .be-scope .be-appcard__icon:has(img.bl) { width: auto; flex: 0 0 auto; }
.legacy .be-scope .be-appcard__icon img.bl { width: 56px; height: 24px; object-fit: contain; }

/* our panel carries the launch terms under the buttons, so the column flex squeezed the plan lines to the kit's 120 px floor
   (measured 17-11, /ar/pricing 1440 with 5 apps: 3 of 6 lines showing). The lines keep their own 40% scroll area, as the kit
   intends, and the part under them scrolls in the panel */
@media (min-width: 992px) {
  .legacy .be-scope.has-selection .be-panel:not(.is-mobile-bar) .be-panel__lines { flex: none !important; }
}

/* coordinator 17-11: at 390 the Bria float sat under the bar's Continue button (measured 328-376 x 782-830 against 277-374 x 790-834).
   The kit lifts its own floats to 96 px while the bar shows; Bria lives outside the scope, so it gets the same lift here */
@media (max-width: 991.98px) {
  body:has(.legacy .be-bar.is-ready:not([hidden])) .bria-b { inset-block-end: 96px !important; }
}

/* coordinator 17-11: the billing toggle was 385 px on a 390 phone (2 px air) and ran 13 px past both edges at 360.
   On phones it fills the controls row inside the page gutter; the options share the width, the names stay whole,
   and the "save" pill drops under its label when a language needs the room */
@media (max-width: 575.98px) {
  .legacy .be-scope .be-calc__controls { width: 100%; }
  .legacy .be-scope .be-calc__controls .be-toggle { display: flex; width: 100%; max-width: 100%; box-sizing: border-box; }
  .legacy .be-scope .be-calc__controls .be-toggle__opt {
    flex: 1 1 auto; min-width: auto; padding-inline: 10px; gap: 4px;
    flex-wrap: wrap; row-gap: 4px; white-space: normal; text-align: center; line-height: 1.2;
    overflow-wrap: normal; word-break: normal; hyphens: manual;
  }
  .legacy .be-scope .be-calc__controls .be-toggle__badge { white-space: nowrap; }
}

/* optira-web 17-11 (Dennis): "Included in core" apps and integrations as an even grid of equal rectangles, logos and names in columns */
.legacy .be-scope .zpb-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 8px; }
.legacy .be-scope .zpb-chips li { min-width: 0; }
.legacy .be-scope .zpb-chips a { display: flex; align-items: center; gap: 10px; width: 100%; height: 52px; min-height: 0; padding: 6px 12px; border-radius: var(--be-radius-sm); }
.legacy .be-scope .zpb-chips a span { min-width: 0; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.legacy .be-scope .zpb-chips img.bl { width: 56px; height: 24px; object-fit: contain; object-position: center; }
@media (max-width: 600px) {
  .legacy .be-scope .zpb-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .legacy .be-scope .zpb-chips a { gap: 8px; padding: 6px 8px; font-size: 14px; }
  .legacy .be-scope .zpb-chips img.bl { width: 44px; height: 20px; }
}

/* optira-web 18-11 (Dennis): every "Included in core" tile carries a tick that is on and cannot be taken off (it is part of Core).
   A real checkbox, checked + disabled (screen readers say "checked, unavailable"); it sits beside the link, never inside it.
   Sizes: every row as tall as the tallest tile (grid-auto-rows 1fr), so all tiles stay one size and a name is never cut:
   no line clamp; Arabic (Noto Arabic, tall line box) on its natural line height (measured 18-11: 1.35 overflowed 4-6px). */
.legacy .be-scope .zpb-chips { grid-auto-rows: 1fr; }
.legacy .be-scope .zpb-chips li.zpb-ci { position: relative; display: flex; }
.legacy .be-scope .zpb-chips li.zpb-ci a { flex: 1 1 auto; height: auto; min-height: 52px; padding-inline-start: 40px; border-color: var(--be-brand); background-color: var(--be-brand-tint); }
/* the tick takes 28px of the tile: brand logos a little narrower so "WooCommerce" fits on one line at 4 columns */
.legacy .be-scope .zpb-chips li.zpb-ci img.bl { width: 46px; }
/* names never break inside a word and are never clamped */
.legacy .be-scope .zpb-chips li.zpb-ci a span { display: block; overflow: visible; -webkit-line-clamp: none; line-height: 1.35; overflow-wrap: normal; word-break: normal; hyphens: manual; }
[dir=rtl] .legacy .be-scope .zpb-chips li.zpb-ci a span, .legacy[dir=rtl] .be-scope .zpb-chips li.zpb-ci a span, .legacy .be-scope[dir=rtl] .zpb-chips li.zpb-ci a span { line-height: normal; }
.legacy .be-scope .zpb-chips .zpb-ck { -webkit-appearance: none; appearance: none; position: absolute; inset-inline-start: 12px; top: 50%; width: 18px; height: 18px; margin: -9px 0 0; border: 0; border-radius: 4px; cursor: not-allowed; opacity: 1; z-index: 1;
  background: var(--be-brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat; }
/* phone: two equal tiles a row, logo above the name (the whole width for the name), the tick a badge in the top corner */
@media (max-width: 600px) {
  .legacy .be-scope .zpb-chips li.zpb-ci a { flex-direction: column; justify-content: center; gap: 4px; min-height: 76px; padding: 6px 8px; text-align: center; font-size: 13px; }
  .legacy .be-scope .zpb-chips li.zpb-ci a span { max-width: 100%; }
  /* the two lists are separate grids: one floor for both so every tile on the page is one size (measured 18-11: 76/77, ar 76/98) */
  .legacy .be-scope .zpb-chips li.zpb-ci a { min-height: 78px; }
  [dir=rtl] .legacy .be-scope .zpb-chips li.zpb-ci a, .legacy[dir=rtl] .be-scope .zpb-chips li.zpb-ci a, .legacy .be-scope[dir=rtl] .zpb-chips li.zpb-ci a { min-height: 98px; }
  .legacy .be-scope .zpb-chips .zpb-ck { top: 6px; inset-inline-start: 6px; width: 16px; height: 16px; margin: 0; background-size: 12px 12px; }
}

/* fab zone (18-11) */
/* the summary card stays out of the floating chat button's corner (fab 56px + 24px inset + 16px gap = 96px at the inline end)
   and its two CTA buttons fit their columns instead of running past the card ("Go to checkout" ran 53px out at 1280) */
/* fab zone v2 (18-11) */
/* only the summary panel gives way (the tile column keeps its width: release-qa stg_s4 saw Core tiles 206px at 1440) */
@media (min-width: 992px) {
  .legacy .be-scope .be-band > .be-grid > .be-panel { margin-inline-end: max(0px, calc(96px - clamp(20px, 5vw, 100px))); }
}
/* Core chip labels never clip a word ("WooCommerce" ran 5px out): the label is at least its longest word, the logo shrinks first */
.legacy .be-scope .zpb-chips li.zpb-ci a span { min-width: min-content; }
.legacy .be-scope .zpb-chips li.zpb-ci img.bl { flex: 0 1 46px; min-width: 24px; }
/* the theme button rises with the chat button while the plan bar shows (768: it covered the bar's summary) */
@media (max-width: 991.98px) {
  body:has(.legacy .be-bar.is-ready:not([hidden])) .zf-th { inset-block-end: 100px !important; }
}
.legacy .be-scope .be-panel__cta > .be-btn-primary,
.legacy .be-scope .be-panel__cta > .be-btn-ghost { min-width: 0; white-space: normal; text-align: center; height: auto; }
/* optira-design 24-11 (coord 9 nits on the plan card): Buy now full width with the free trial under it, nothing wraps;
   the plan lines take only their own height, no empty band before the total */
.be-panel:not(.is-mobile-bar) .be-panel__cta{display:grid!important;grid-template-columns:1fr!important;gap:10px}
.be-panel:not(.is-mobile-bar) .be-panel__cta>*{width:100%;white-space:nowrap}
.be-panel:not(.is-mobile-bar) #zpbLines{flex:none!important;min-height:0!important;height:auto!important}

/* optira-web 01-12 (Dennis via coord13): /pricing hero is CENTRED (the exception to the start-aligned hero rule) */
.legacy .be-scope .be-calc__head .be-calc__headtext,.legacy .be-scope .be-calc__head .be-calc__headtext :is(h1,p,.be-calc__title,.be-calc__lede){text-align:center!important}

/* optira-web 05-12 (coord15, same pattern as the checkout): on the phone /pricing builder the floating chat + theme buttons never
   cover a price, a card or a button. They shrink to 44px and stack in a reserved 52px inline-end gutter (the left in rtl), above
   the plan bar (.be-bar) when it shows. :not(#pr-fab) lifts these over the older dz.css / plan.css .zf-th and .bria-b offsets. */
@media (max-width:900px){
  body:has(#pricing.be-scope):not(#pr-fab) .legacy .be-scope .be-calc__head,body:has(#pricing.be-scope):not(#pr-fab) .legacy .be-scope .be-band>.be-grid{padding-inline-end:calc(clamp(20px,5vw,100px) + 52px)!important}
  body:has(#pricing.be-scope):not(#pr-fab) main .wrap{padding-inline-end:calc(16px + 52px)!important}
  html body:has(#pricing.be-scope):not(#pr-fab) .bria-b,html body:has(#pricing.be-scope):not(#pr-fab) .zf-th{width:44px!important;height:44px!important;inset-inline-end:8px!important;inset-inline-start:auto!important;inset-block-start:auto!important;transform:none!important}
  html body:has(#pricing.be-scope):not(#pr-fab) .bria-b{inset-block-end:12px!important}
  html body:has(#pricing.be-scope):not(#pr-fab) .zf-th{inset-block-end:64px!important}
  html body:has(#pricing.be-scope .be-bar.is-ready:not([hidden])):not(#pr-fab) .bria-b{inset-block-end:calc(var(--be-bar-h,65px) + 12px)!important}
  html body:has(#pricing.be-scope .be-bar.is-ready:not([hidden])):not(#pr-fab) .zf-th{inset-block-end:calc(var(--be-bar-h,65px) + 64px)!important}
  html body:has(#pricing.be-scope):not(#pr-fab) .bria-b:hover,html body:has(#pricing.be-scope):not(#pr-fab) .zf-th:hover{transform:scale(1.06)!important}
  html body:has(#pricing.be-scope):not(#pr-fab) .bria-b svg,html body:has(#pricing.be-scope):not(#pr-fab) .zf-th svg{width:20px;height:20px}
}

/* optira-web 05-12 (coord15, nw44): an eyebrow count ("Integrations included · 44") never breaks between its digits on a phone */
.legacy .be-scope .be-eyebrow [data-n-total]{white-space:nowrap;flex:none}

/* optira-web 05-12 (coord15, tickeb): a tick is not mirrored in rtl. The drawn ticks used border-inline-start, which rtl moved to
   the right and turned into a chevron; the physical left border keeps the same tick in every direction. */
.legacy .be-scope .be-appcard::before{border-inline-start:0;border-left:2px solid var(--be-brand-fg)}
.legacy .be-scope .be-swatch.is-active::after{border-inline-start:0;border-left:2.5px solid var(--be-on-gradient)}
/* eyebrow with a count: "TEXT · N" is one run after the dash; "· N" stays together and follows the text */
.legacy .be-scope .be-eyebrow__t{line-height:1.35}
.legacy .be-scope .be-eyebrow__n{white-space:nowrap}
