/* MEH V18 — Mobile only. Lordicons are loaded on demand per visible page.
 * Desktop/tablet layout is protected by the mount visibility guard.
 */
/* Desktop/tablet: never display, even if nested custom elements get sitewide styles. */
.meh-os-mount{display:none!important}
.meh-os-button,.meh-os-overlay,.meh-os-close-button,.meh-os-svg-sprite{display:none!important}
.meh-os-svg-sprite{width:0!important;height:0!important;position:absolute!important;overflow:hidden!important}
@media(max-width:767px){
 .meh-os-mount{display:contents!important}
 #hubNavbar,#hubMobileMenu,#hubMenuOverlay{display:none!important}
 html.meh-os-open,html.meh-os-open body{overflow:hidden!important;overscroll-behavior:none!important}
 .meh-os-button,.meh-os-overlay,.meh-os-overlay *{box-sizing:border-box}
 .meh-os-button{display:grid!important;position:fixed;right:calc(18px + env(safe-area-inset-right));bottom:calc(18px + env(safe-area-inset-bottom));z-index:2147483011;width:60px;height:60px;padding:0;place-items:center;border:1px solid rgba(246,183,232,.42);border-radius:19px;background:linear-gradient(150deg,#3c1648,#190923);color:#fff0fb;box-shadow:0 6px 18px rgba(0,0,0,.32);cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation;transition:background-color .14s linear,border-color .14s linear}
 .meh-os-button svg{width:28px;height:28px;display:block;pointer-events:none}
 .meh-os-button .meh-os-line{transform-box:fill-box;transform-origin:center;transition:transform .17s ease,opacity .11s ease}
 .meh-os-button[aria-expanded="true"] .meh-os-line--first{transform:translateY(5px) rotate(45deg)}
 .meh-os-button[aria-expanded="true"] .meh-os-line--middle{opacity:0}
 .meh-os-button[aria-expanded="true"] .meh-os-line--last{transform:translateY(-5px) rotate(-45deg)}
 .meh-os-button[aria-expanded="true"]{background:#56225e;border-color:rgba(251,196,240,.7)}
 /* Fully opaque solid dark background; no overlay blending or backdrop blur. */
 .meh-os-overlay{display:flex!important;position:fixed;inset:0;z-index:2147483010;width:100%;height:100vh;height:100dvh;padding:0;color:#fff8ff;background:#09000f;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;opacity:0;visibility:hidden;pointer-events:none;overflow:hidden;overscroll-behavior:contain;font-family:Inter,'Montserrat','Poppins',Arial,sans-serif;transition:opacity .13s linear,visibility 0s linear .13s}
 .meh-os-overlay.is-open{opacity:1;visibility:visible;pointer-events:auto;transition:opacity .13s linear,visibility 0s}
 .meh-os-shell{display:flex;flex-direction:column;align-items:stretch;min-height:0;width:100%;max-width:560px;margin:0 auto;height:100%;max-height:100%;padding:calc(18px + env(safe-area-inset-top)) 13px calc(88px + env(safe-area-inset-bottom));overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none;opacity:1;transform:none;filter:none;transition:none}
 .meh-os-shell::-webkit-scrollbar,.meh-os-pages::-webkit-scrollbar{display:none}
 .meh-os-overlay a,.meh-os-overlay button{text-decoration:none!important;-webkit-tap-highlight-color:transparent}
 .meh-os-head{display:flex;justify-content:center;align-items:center;min-height:42px;text-align:center;flex:0 0 auto;margin:0 0 clamp(12px,2dvh,18px)}
 .meh-os-brand-image{display:block;width:auto;max-width:min(210px,64vw);height:auto;max-height:51px;object-fit:contain;filter:none}
 .meh-os-brand-image[hidden],.meh-os-brand-text[hidden]{display:none!important}
 .meh-os-brand-text{font:850 12px/1.4 Inter,'Montserrat',Arial,sans-serif;letter-spacing:.22em;color:#f4b2dd}
 .meh-os-search{width:min(100%,410px);margin:0 auto clamp(16px,3.2dvh,30px);display:flex;align-items:center;flex:0 0 46px;gap:12px;min-height:46px;padding:0 15px;background:rgba(255,255,255,.055);border:1px solid rgba(246,184,229,.18);border-radius:13px;color:#f6aade}
 .meh-os-search:focus-within{border-color:rgba(248,149,222,.55)}
 .meh-os-search svg{flex:0 0 20px}
 .meh-os-search input{width:100%;min-width:0;padding:0;border:0!important;outline:0!important;background:transparent!important;color:#fff!important;font:500 13px/1.4 Inter,Arial,sans-serif!important;-webkit-appearance:none;appearance:none}
 .meh-os-search input::placeholder{color:#aca0ae;opacity:1}
 .meh-os-search kbd{padding:3px 6px;border-radius:5px;background:rgba(255,255,255,.07);color:#bcafc7;font:800 10px/1.2 Inter,Arial,sans-serif}
 /* Real OS scrolling. No JS drag calculations, no transform/transition on page slides. */
 .meh-os-pages{display:flex;flex:1 0 auto;width:100%;max-width:100%;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-behavior:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;touch-action:pan-x;overscroll-behavior-x:contain}
 .meh-os-page{display:flex;flex:0 0 100%;min-width:100%;justify-content:center;align-items:center;scroll-snap-align:start;padding:0 4px;transition:none!important;animation:none!important}
 .meh-os-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,auto));column-gap:clamp(2px,1.8vw,12px);row-gap:clamp(11px,2.2dvh,26px);width:100%;max-width:430px;justify-items:center;align-items:start;margin:0 auto;padding:0}
 .meh-os-app{position:relative;display:flex!important;flex-direction:column;justify-content:flex-start;align-items:center;gap:clamp(6px,1dvh,11px);min-width:0;width:100%;min-height:90px;margin:0!important;padding:3px 2px 5px!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;filter:none!important;outline-offset:3px;color:#f7eafa!important;cursor:pointer;font:680 11.5px/1.25 Inter,'Montserrat',Arial,sans-serif!important;text-align:center!important;transform:none!important;-webkit-appearance:none;appearance:none;overflow:visible!important;opacity:1!important;transition:none!important}
 .meh-os-app::before,.meh-os-app::after{display:none!important;content:none!important}
 .meh-os-app[hidden]{display:none!important}
 .meh-os-last{grid-column:2}
 .meh-os-icon{display:grid;place-items:center;position:relative;flex:0 0 auto;width:var(--meh-os-icon-size,64px);height:var(--meh-os-icon-size,64px);background:none;border:0;box-shadow:none;filter:none;transform:none}
 .meh-os-lord,.meh-os-png{display:block!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-width:100%!important;max-height:100%!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;pointer-events:none}
 .meh-os-lord{position:absolute!important;inset:0!important;visibility:hidden;overflow:hidden!important}
 .meh-os-lord.is-ready{visibility:visible}
 .meh-os-png{object-fit:contain;filter:none}
 .meh-os-png[hidden]{display:none!important}
 .meh-os-name{display:block!important;max-width:122px;min-height:28px;padding:0 1px;color:rgba(254,241,251,.94)!important;font:700 clamp(10px,2.9vw,12px)/1.28 Inter,'Montserrat',Arial,sans-serif!important;white-space:normal!important;text-wrap:balance;overflow-wrap:break-word;text-shadow:0 2px 9px rgba(0,0,0,.5)}
 .meh-os-active-marker{position:absolute;bottom:-4px;width:4px;height:4px;border-radius:100%;background:#f9b0dd}
 .meh-os-no-results{margin:6px 0!important;padding:10px!important;text-align:center!important;color:#ffb9e6!important;font:600 12px/1.5 Inter,Arial,sans-serif!important}
 .meh-os-no-results[hidden]{display:none!important}
 .meh-os-footer{display:flex;flex-direction:column;align-items:center;margin-top:clamp(12px,2.3dvh,22px);flex:0 0 auto}
 .meh-os-dots{display:flex;justify-content:center;align-items:center;gap:9px}
 .meh-os-dots button{display:block;width:7px;height:7px;min-width:7px;margin:0;padding:0;border:0!important;border-radius:100px;background:rgba(235,195,229,.34);cursor:pointer;transition:width .12s ease,background-color .12s linear}
 .meh-os-dots button.is-active{width:24px;background:#f995dc}
 .meh-os-footnote{display:none!important}
 .meh-os-button:focus-visible,.meh-os-overlay :focus-visible{outline:2px solid #ffb8ec!important;outline-offset:4px!important}
 .meh-os-page.is-filter-empty .meh-os-grid{min-height:120px}
 /* One compositor-friendly transform on the whole grid, only AFTER changing pages. */
 .meh-os-page.is-settled .meh-os-app--trans .meh-os-png{animation:mehOsTransMicro .22s ease-out 1}
 @keyframes mehOsTransMicro{0%,100%{transform:rotate(0)}40%{transform:rotate(-3deg)}70%{transform:rotate(2deg)}}
}
@media(max-width:767px) and (min-height:751px){.meh-os-overlay{--meh-os-icon-size:clamp(58px,min(7.8dvh,18vw),72px)}}
@media(max-width:767px) and (max-height:750px){
  #mehOsMount #mehOsMenu .meh-os-footer {transform:translate3d(0,-16px,0)!important}

 .meh-os-overlay{--meh-os-icon-size:clamp(46px,min(7.6dvh,17vw),60px)}
 .meh-os-shell{padding-top:calc(10px + env(safe-area-inset-top));padding-bottom:calc(76px + env(safe-area-inset-bottom))}
 .meh-os-head{min-height:34px;margin-bottom:9px}.meh-os-brand-image{max-height:38px}
 .meh-os-search{margin-bottom:clamp(13px,2.4dvh,22px);flex-basis:42px;min-height:42px}
 .meh-os-grid{row-gap:clamp(4px,1dvh,10px)}.meh-os-app{min-height:74px;gap:4px}.meh-os-name{min-height:25px}.meh-os-footer{margin-top:9px}
}
@media(max-width:767px) and (max-height:585px){
  #mehOsMount #mehOsMenu .meh-os-footer {transform:translate3d(0,-10px,0)!important}

 .meh-os-overlay{--meh-os-icon-size:clamp(40px,min(7.5dvh,16vw),48px)}.meh-os-head{min-height:28px;margin-bottom:6px}.meh-os-brand-image{max-height:32px}
 .meh-os-search{flex-basis:39px;min-height:39px}.meh-os-grid{row-gap:2px}.meh-os-app{min-height:66px}.meh-os-name{font-size:10px!important}
}
@media(prefers-reduced-motion:reduce){.meh-os-overlay,.meh-os-button,.meh-os-line,.meh-os-dots button,.meh-os-grid,.meh-os-png{transition:none!important;animation:none!important}.meh-os-pages{scroll-behavior:auto!important}}

@media(max-width:767px){
 html.meh-os-open .meh-outline-hero__btn,
 html.meh-os-open .meh-outline-hero__btn::before,
 html.meh-os-open .meh-outline-hero__btn::after,
 html.meh-os-open .sa-model-badge,
 html.meh-os-open .sa-model-badge::before,
 html.meh-os-open .sa-model-badge::after{animation-play-state:paused!important}
}

/* MEH V17: The main page is not painted or interactive while the opaque drawer
   is visible. Geometry remains unchanged, avoiding layout shifts on close.
   CSS animations under main are paused (not cancelled) and resume in place. */
@media(max-width:767px){
 html.meh-os-open #main-content{visibility:hidden!important;pointer-events:none!important}
 html.meh-os-open #main-content,
 html.meh-os-open #main-content *,
 html.meh-os-open #main-content *::before,
 html.meh-os-open #main-content *::after{animation-play-state:paused!important}
}

/* MEH V30 CUSTOMIZER — variables originate from server-validated admin JSON. */
@media(max-width:767px){
 #mehOsMount .meh-os-overlay{background:var(--meh-custom-bg,#09000f)!important}
 #mehOsMount .meh-os-search{background:var(--meh-custom-search-bg,#211127)!important;border-color:var(--meh-custom-search-border,#754178)!important}
 #mehOsMount .meh-os-search input{color:var(--meh-custom-text,#fef1fb)!important}
 #mehOsMount .meh-os-app .meh-os-name{color:var(--meh-app-label,var(--meh-custom-text,#fef1fb))!important}
 #mehOsMount .meh-os-icon{width:var(--meh-app-icon-size,var(--meh-os-icon-size,64px));height:var(--meh-app-icon-size,var(--meh-os-icon-size,64px));background:var(--meh-app-icon-bg,transparent)!important;border-radius:16px}
 #mehOsMount .meh-os-dots button.is-active{background:var(--meh-custom-accent,#f995dc)!important}
 #mehOsMount .meh-os-button{background:var(--meh-custom-button-bg,#351344)!important}
}




/* =============================================================
   V37 MOBILE LAUNCHER / SQUARE ICONS + STRONG RIGHT VIGNETTE
   Old AssistiveTouch coordinates, dock and center overrides removed.
   GPU-only drawer transform, no input-delay timers.
   ============================================================= */
@media (max-width:767px) {
  #mehOsMount.meh-os-mount {
    display:contents!important;
    position:static!important;
    width:auto!important;height:auto!important;
    transform:none!important;filter:none!important;
  }
  #mehOsMount .meh-os-dock, #mehOsDock {display:none!important}
  /* Localized bottom-right black vignette behind the closed menu only. */
  #mehOsMount #mehOsCornerShade {
    display:block!important;position:fixed!important;
    right:0!important;bottom:0!important;left:auto!important;
    width:min(350px,82vw)!important;height:min(325px,40dvh)!important;
    z-index:2147483008!important;pointer-events:none!important;
    background:radial-gradient(ellipse 98% 96% at 100% 100%,rgba(0,0,0,.99) 0%,rgba(0,0,0,.86) 30%,rgba(0,0,0,.52) 56%,rgba(0,0,0,0) 90%)!important;
    opacity:1;transition:opacity .12s ease;
  }
  html.meh-os-open #mehOsMount #mehOsCornerShade {opacity:0!important}
  /* Use viewport-relative right/bottom rather than transform or stored positions. */
  #mehOsMount #mehOsButton.meh-os-button {
    display:grid!important;position:fixed!important;
    top:auto!important;left:auto!important;
    right:calc(16px + env(safe-area-inset-right))!important;
    bottom:calc(16px + env(safe-area-inset-bottom))!important;
    inset-inline-start:auto!important;
    inset-inline-end:calc(16px + env(safe-area-inset-right))!important;
    translate:none!important;transform:none!important;scale:1!important;
    margin:0!important;padding:0!important;
    width:54px!important;height:54px!important;min-width:54px!important;min-height:54px!important;
    border:1px solid rgba(255,191,240,.55)!important;border-radius:17px!important;
    background:var(--meh-custom-button-bg,#4a1955)!important;
    color:#fff6ff!important;
    box-shadow:0 5px 18px rgba(0,0,0,.3)!important;
    opacity:1!important;visibility:visible!important;pointer-events:auto!important;
    z-index:2147483011!important;
    touch-action:manipulation!important;animation:none;
    transition:background-color .12s ease,border-color .12s ease!important;
  }
  #mehOsMount #mehOsButton.meh-os-button svg{width:25px!important;height:25px!important}
  #mehOsMount #mehOsButton.meh-os-button.is-pressed {
    animation:mehOsQuickBounceV36 190ms cubic-bezier(.2,.8,.2,1) both!important;
  }
  @keyframes mehOsQuickBounceV36 {0%{scale:1}38%{scale:.91}75%{scale:1.055}100%{scale:1}}
  html.meh-os-open #mehOsMount #mehOsButton.meh-os-button {
    display:none!important;visibility:hidden!important;pointer-events:none!important;
  }
  #mehOsMount #mehOsMenu.meh-os-overlay {
    display:flex!important;position:fixed!important;
    inset:0!important;top:0!important;right:0!important;bottom:0!important;left:0!important;
    width:100vw!important;max-width:100vw!important;
    height:100dvh!important;max-height:100dvh!important;
    margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
    background:var(--meh-custom-bg,#09000f)!important;
    opacity:1!important;visibility:hidden!important;pointer-events:none!important;
    transform:translate3d(0,101%,0)!important;
    transition:transform 215ms cubic-bezier(.22,.82,.28,1),visibility 0s linear 215ms!important;
    overscroll-behavior:contain!important;overflow:hidden!important;
    -webkit-backdrop-filter:none!important;backdrop-filter:none!important;
    z-index:2147483010!important;
  }
  #mehOsMount #mehOsMenu.meh-os-overlay.is-open {
    transform:translate3d(0,var(--meh-drag-y,0px),0)!important;
    transition:transform 215ms cubic-bezier(.22,.82,.28,1),visibility 0s!important;
    visibility:visible!important;pointer-events:auto!important;
  }
  #mehOsMount #mehOsMenu.meh-os-overlay.is-dragging {
    transition:none!important;will-change:transform!important;
  }
  /* Bottom-right vignette on the open drawer, localized behind the X. */
  #mehOsMount #mehOsMenu.meh-os-overlay::after {
    content:""!important;display:block!important;position:absolute!important;
    right:0!important;bottom:0!important;
    width:min(350px,82vw)!important;height:min(325px,40dvh)!important;
    pointer-events:none!important;z-index:3!important;
    background:radial-gradient(ellipse 98% 96% at 100% 100%,rgba(0,0,0,.99) 0%,rgba(0,0,0,.86) 30%,rgba(0,0,0,.52) 56%,rgba(0,0,0,0) 90%)!important;
  }
  #mehOsMount #mehOsMenu .meh-os-shell {
    display:flex!important;position:relative!important;
    width:100%!important;max-width:560px!important;
    height:100%!important;max-height:100%!important;
    margin:0 auto!important;
    padding-top:calc(24px + env(safe-area-inset-top))!important;
    padding-bottom:calc(145px + env(safe-area-inset-bottom))!important;
    overflow-x:hidden!important;overflow-y:auto!important;resize:none!important;
  }
  /* Move just the paginator upward without repositioning or distorting the icons. */
  #mehOsMount #mehOsMenu .meh-os-footer {
    position:relative!important;flex:0 0 auto!important;
    margin-top:8px!important;
    transform:translate3d(0,calc(-1 * clamp(22px,3.4dvh,33px)),0)!important;
    z-index:4!important;pointer-events:none!important;
  }
  #mehOsMount #mehOsMenu .meh-os-dots {pointer-events:auto!important}
  #mehOsMount #mehOsMenu .meh-os-pages {
    max-width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;
    touch-action:pan-x!important;
  }
  #mehOsMount #mehOsMenu .meh-os-pull-handle {
    display:grid!important;place-items:center!important;
    position:absolute!important;top:env(safe-area-inset-top)!important;left:50%!important;
    transform:translateX(-50%)!important;width:90px!important;height:28px!important;
    z-index:5!important;touch-action:none!important;pointer-events:auto!important;
  }
  #mehOsMount #mehOsMenu .meh-os-pull-handle span {
    width:36px!important;height:4px!important;border-radius:999px!important;
    background:#bf91bd!important;pointer-events:none!important;
  }
  #mehOsMount #mehOsMenu #mehOsCloseButton.meh-os-close-button {
    display:grid!important;position:absolute!important;
    top:auto!important;left:auto!important;
    bottom:calc(16px + env(safe-area-inset-bottom))!important;
    right:calc(16px + env(safe-area-inset-right))!important;
    inset-inline-start:auto!important;
    inset-inline-end:calc(16px + env(safe-area-inset-right))!important;
    transform:none!important;translate:none!important;scale:1!important;
    width:54px!important;height:54px!important;min-width:54px!important;min-height:54px!important;
    margin:0!important;padding:0!important;place-items:center!important;
    color:#fff5ff!important;background:var(--meh-custom-button-bg,#4a1955)!important;
    border:1px solid rgba(255,191,240,.55)!important;border-radius:17px!important;
    box-shadow:0 5px 18px rgba(0,0,0,.3)!important;
    z-index:6!important;cursor:pointer!important;touch-action:manipulation!important;
  }
  #mehOsMount #mehOsMenu #mehOsCloseButton svg {width:24px!important;height:24px!important}
  #mehOsMount #mehOsMenu:not(.is-open) #mehOsCloseButton{display:none!important}
  /* Every icon occupies a perfectly square 1:1 box; never stretch icons. */
  #mehOsMount .meh-os-icon {
    width:min(var(--meh-app-icon-size,var(--meh-os-icon-size,64px)),100%)!important;
    height:auto!important;
    aspect-ratio:1/1!important;
    flex:0 0 auto!important;
    display:grid!important;place-items:center!important;
    overflow:hidden!important;
  }
  #mehOsMount .meh-os-icon > lord-icon,
  #mehOsMount .meh-os-icon > img {
    display:block!important;
    box-sizing:border-box!important;
    width:100%!important;height:100%!important;
    max-width:100%!important;max-height:100%!important;
    aspect-ratio:1/1!important;object-fit:contain!important;
  }
  #mehOsMount #mehOsButton.meh-os-button,
  #mehOsMount #mehOsMenu #mehOsCloseButton.meh-os-close-button {
    aspect-ratio:1/1!important;
  }
  /* Keep original 20 Lordicons and custom image assets; no fallback artwork. */
  #mehOsMount .meh-os-lord{display:block!important;visibility:visible!important}
  #mehOsMount .meh-os-lord:not(:defined){visibility:hidden!important}
  html.meh-os-open,html.meh-os-open body{overflow:hidden!important;overscroll-behavior:none!important}
}
@media(max-width:767px) and (max-height:750px){
  #mehOsMount #mehOsMenu .meh-os-footer {transform:translate3d(0,-16px,0)!important}

  #mehOsMount #mehOsMenu .meh-os-shell {padding-bottom:calc(113px + env(safe-area-inset-bottom))!important}
}
@media(max-width:767px) and (max-height:585px){
  #mehOsMount #mehOsMenu .meh-os-footer {transform:translate3d(0,-10px,0)!important}

  #mehOsMount #mehOsMenu .meh-os-shell {padding-bottom:calc(92px + env(safe-area-inset-bottom))!important}
}
@media(min-width:768px){#mehOsMount,#mehOsMount *{display:none!important}}
@media(max-width:767px) and (prefers-reduced-motion:reduce){
  #mehOsMount #mehOsMenu.meh-os-overlay,#mehOsMount #mehOsMenu.meh-os-overlay.is-open{transition:none!important}
  #mehOsMount #mehOsButton.meh-os-button.is-pressed{animation:none!important}
}


/* MEH V40 — user-editable X/Y/Scale, shared by static PNG/WebP and Lordicons.
   Do not crop the icon within its square; the content is sized with contain.
   No layout/animation changes for menu controls, search or desktop nav. */
@media(max-width:767px){
 #mehOsMount .meh-os-app .meh-os-icon{overflow:visible!important}
 #mehOsMount .meh-os-app .meh-os-icon > img.meh-os-png,
 #mehOsMount .meh-os-app .meh-os-icon > img.meh-os-static-frame,
 #mehOsMount .meh-os-app .meh-os-icon > lord-icon.meh-os-lord{
   object-fit:contain!important;
   object-position:center!important;
   overflow:visible!important;
   transform:translate3d(var(--meh-img-x,0px),var(--meh-img-y,0px),0) scale(var(--meh-img-scale,1))!important;
   transform-origin:50% 50%;
 }
 /* The old micro-shake overwrote transforms on the PNG icon; respect saved positioning. */
 #mehOsMount .meh-os-page.is-settled .meh-os-app--trans .meh-os-png{animation:none!important}
}

/* V41 — no second icon pack, no DOM snapshots, regardless of stale CSS. */
@media(max-width:767px){
 #mehOsMount .meh-os-svg-sprite,
 #mehOsMount .meh-os-fallback,
 #mehOsMount .meh-os-png-fallback,
 #mehOsMount .meh-os-static-frame{display:none!important;visibility:hidden!important}
 #mehOsMount .meh-os-icon > lord-icon.meh-os-lord{
   display:block!important;visibility:visible!important;opacity:1!important;
   width:100%!important;height:100%!important;position:relative!important;inset:auto!important;
   aspect-ratio:1!important;pointer-events:none!important;
 }
 #mehOsMount .meh-os-icon > lord-icon.meh-os-lord:not(:defined){visibility:hidden!important}
 #mehOsMount .meh-os-icon > img.meh-os-png{
   display:block!important;visibility:visible!important;object-fit:contain!important;opacity:1!important;
 }
 #mehOsMount .meh-os-icon > img.meh-os-png[hidden]{display:none!important}
 #mehOsMount .meh-os-icon{overflow:visible!important}
}


/* V42 — center-origin icon rendering with overflow visible. */
@media(max-width:767px){
 #mehOsMount .meh-os-app,
 #mehOsMount .meh-os-page,
 #mehOsMount .meh-os-grid{overflow:visible!important}
 #mehOsMount .meh-os-app .meh-os-icon{position:relative!important;display:grid!important;place-items:center!important;overflow:visible!important;isolation:isolate!important;border-radius:0!important}
 #mehOsMount .meh-os-app .meh-os-icon > img.meh-os-png,
 #mehOsMount .meh-os-app .meh-os-icon > img.meh-os-static-frame,
 #mehOsMount .meh-os-app .meh-os-icon > lord-icon.meh-os-lord{
   position:absolute!important;top:50%!important;left:50%!important;inset:auto!important;
   display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;
   object-fit:contain!important;object-position:center!important;overflow:visible!important;
   transform:translate3d(calc(-50% + var(--meh-img-x,0px)),calc(-50% + var(--meh-img-y,0px)),0) scale(var(--meh-img-scale,1))!important;
   transform-origin:50% 50%!important;pointer-events:none!important;
 }
 #mehOsMount .meh-os-icon > lord-icon.meh-os-lord:not(:defined){visibility:hidden!important}
}

/* =============================================================
   MEH V44 — mobile layout parity + low-obstruction idle launcher
   Equal-height rows, but icon + caption remain one cohesive unit.
   All icon paths, per-icon transforms, Lordicons and gestures unchanged.
   ============================================================= */
@media (max-width:767px){
  /* Closed state: discreet launcher without losing its touch target. */
  #mehOsMount #mehOsButton.meh-os-button{
    opacity:.55!important;
    filter:saturate(.70)!important;
    transition:opacity .18s ease, filter .18s ease, background-color .12s ease, border-color .12s ease!important;
  }
  #mehOsMount #mehOsButton.meh-os-button:hover,
  #mehOsMount #mehOsButton.meh-os-button:active,
  #mehOsMount #mehOsButton.meh-os-button:focus-visible,
  #mehOsMount #mehOsButton.meh-os-button.is-pressed{
    opacity:1!important;
    filter:none!important;
  }
  /* V47: Feathered, edge-safe corner vignette.
     A small fixed gradient rectangle used to have visible top/left cutoffs:
     its radial fade was not yet transparent at the rectangle boundaries.
     The transparent drawing surface now spans the viewport, while only a
     small bottom-right ellipse paints dark pixels. Nothing is clipped. */
  #mehOsMount #mehOsCornerShade{
    top:0!important;right:0!important;bottom:0!important;left:0!important;
    width:100vw!important;height:100vh!important;height:100dvh!important;
    max-width:none!important;max-height:none!important;
    background:radial-gradient(
      ellipse min(340px,82vw) min(280px,42dvh) at 100% 100%,
      rgba(8,2,16,.42) 0%,
      rgba(8,2,16,.26) 30%,
      rgba(8,2,16,.11) 56%,
      rgba(8,2,16,.025) 77%,
      rgba(8,2,16,0) 100%
    )!important;
    opacity:1!important;
    overflow:visible!important;pointer-events:none!important;
  }
  html.meh-os-open #mehOsMount #mehOsCornerShade{opacity:0!important;}
  /* One clean close affordance. Keep full contrast while the drawer is open. */
  #mehOsMount #mehOsMenu #mehOsCloseButton.meh-os-close-button{
    opacity:1!important;filter:none!important;
    box-shadow:0 5px 16px rgba(0,0,0,.20)!important;
  }
  /* Same seamless feather behind the open drawer's bottom-right close button. */
  #mehOsMount #mehOsMenu.meh-os-overlay::after{
    top:0!important;right:0!important;bottom:0!important;left:0!important;
    width:100%!important;height:100%!important;
    background:radial-gradient(
      ellipse min(320px,76vw) min(265px,39dvh) at 100% 100%,
      rgba(0,0,0,.37) 0%,
      rgba(0,0,0,.22) 35%,
      rgba(0,0,0,.09) 60%,
      rgba(0,0,0,.02) 79%,
      rgba(0,0,0,0) 100%
    )!important;
    pointer-events:none!important;
  }
  #mehOsMount #mehOsMenu{
    --meh-nav-slot:clamp(50px,min(7.8dvh,18vw),70px);
    --meh-nav-caption-gap:7px;
  }
  #mehOsMount #mehOsMenu .meh-os-shell{
    height:100%!important;
    padding-top:calc(23px + env(safe-area-inset-top))!important;
    padding-bottom:calc(clamp(84px,11dvh,110px) + env(safe-area-inset-bottom))!important;
    display:flex!important;flex-direction:column!important;
  }
  #mehOsMount #mehOsMenu .meh-os-search{margin-bottom:0!important;}
  #mehOsMount #mehOsMenu .meh-os-pages{
    flex:1 1 auto!important;
    min-height:0!important;height:auto!important;
    margin-top:clamp(12px,2dvh,25px)!important;
    overflow-x:auto!important;overflow-y:hidden!important;
  }
  #mehOsMount #mehOsMenu .meh-os-page{
    height:100%!important;align-items:stretch!important;
    padding:0 4px!important;
  }
  html body #mehOsMount #mehOsMenu .meh-os-page .meh-os-grid{
    width:100%!important;max-width:430px!important;
    height:100%!important;min-height:0!important;
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    grid-template-rows:repeat(4,minmax(0,1fr))!important;
    column-gap:clamp(4px,1.8vw,12px)!important;
    row-gap:0!important;
    margin:0 auto!important;padding:0!important;
    justify-items:stretch!important;align-items:stretch!important;
    overflow:visible!important;
  }
  /* THE FIX: image and name are one centered vertical stack, never split
     between separate grid tracks with extra alignment padding. */
  html body #mehOsMount #mehOsMenu .meh-os-page .meh-os-app{
    display:flex!important;flex-direction:column!important;
    justify-content:center!important;align-items:center!important;
    align-self:stretch!important;
    gap:var(--meh-nav-caption-gap)!important;
    width:100%!important;height:100%!important;min-height:0!important;
    padding:0 2px!important;margin:0!important;
    overflow:visible!important;
  }
  html body #mehOsMount #mehOsMenu .meh-os-page .meh-os-app > .meh-os-icon{
    flex:0 0 auto!important;align-self:center!important;
    position:relative!important;display:grid!important;place-items:center!important;
    width:min(var(--meh-app-icon-size,var(--meh-os-icon-size,64px)),var(--meh-nav-slot),100%)!important;
    height:min(var(--meh-app-icon-size,var(--meh-os-icon-size,64px)),var(--meh-nav-slot),100%)!important;
    aspect-ratio:1/1!important;
    min-width:0!important;min-height:0!important;
    margin:0!important;padding:0!important;overflow:visible!important;
  }
  html body #mehOsMount #mehOsMenu .meh-os-page .meh-os-app > .meh-os-name{
    flex:0 0 auto!important;
    display:block!important;
    max-width:100%!important;
    width:100%!important;
    height:auto!important;min-height:0!important;
    margin:0!important;padding:0 1px!important;
    line-height:1.28!important;
    text-align:center!important;
    white-space:normal!important;text-wrap:balance!important;
  }
  html body #mehOsMount #mehOsMenu .meh-os-page .meh-os-app.meh-os-last{grid-column:2!important;}
  /* Paginator sits below row four and comfortably above the X. */
  html body #mehOsMount #mehOsMenu .meh-os-shell .meh-os-footer{
    position:relative!important;
    margin:clamp(9px,1.8dvh,18px) 0 0!important;
    padding:0!important;
    flex:0 0 auto!important;
    transform:none!important;
    pointer-events:none!important;
  }
  #mehOsMount #mehOsMenu .meh-os-dots{pointer-events:auto!important;}
  /* The close button receives :focus-visible from keyboard use only.
     Avoid the confusing double ring after JS focuses it on touchscreen. */
  #mehOsMount #mehOsMenu #mehOsCloseButton:focus:not(:focus-visible){outline:none!important;}
  #mehOsMount #mehOsMenu #mehOsCloseButton:focus-visible{
    outline:none!important;
    border:2px solid #ffb8ec!important;
    box-shadow:0 5px 16px rgba(0,0,0,.20)!important;
  }
}
/* Short landscape/tiny phones need scrolling rather than compressed icons. */
/* V46: Fluid 4-row distribution on portrait phones >=600px tall.
   Short screens alone fall back to internal scrolling. */
@media(max-width:767px) and (max-height:599px){
  #mehOsMount #mehOsMenu{--meh-nav-slot:clamp(39px,7.7dvh,55px);--meh-nav-caption-gap:4px;}
  #mehOsMount #mehOsMenu .meh-os-shell{
    overflow-y:auto!important;
    padding-bottom:calc(85px + env(safe-area-inset-bottom))!important;
  }
  #mehOsMount #mehOsMenu .meh-os-pages{flex:0 0 auto!important;min-height:354px!important;}
  #mehOsMount #mehOsMenu .meh-os-page{height:auto!important;min-height:354px!important;}
  html body #mehOsMount #mehOsMenu .meh-os-page .meh-os-grid{
    height:auto!important;min-height:354px!important;
    grid-template-rows:repeat(4,minmax(82px,auto))!important;
  }
}
@media(max-width:767px) and (max-height:520px){
  #mehOsMount #mehOsMenu{--meh-nav-slot:40px;--meh-nav-caption-gap:3px;}
}
@media(max-width:767px) and (prefers-reduced-motion:reduce){
  #mehOsMount #mehOsButton.meh-os-button{transition:none!important;}
}
