/* FASMA PATCH20.2 REV6 — Mobile/PWA + AriadneS reliability */
:root{--fasma-mobile-nav-h:74px}

/* Launcher must always be touchable above the mobile navigation. */
.ariadne-shell{z-index:5000!important}
.ariadne-launch,.ariadne-panel{pointer-events:auto!important}
.ariadne-launch>*{pointer-events:none!important}
.ariadne-shell.is-open .ariadne-launch{visibility:hidden!important;pointer-events:none!important}
html.ariadne-is-open,html.ariadne-is-open body{overflow:hidden!important}

@media(max-width:700px){
  .ariadne-shell{
    position:fixed!important;
    right:14px!important;
    bottom:calc(var(--fasma-mobile-nav-h) + 10px + env(safe-area-inset-bottom))!important;
    width:58px!important;height:58px!important;
    z-index:5000!important;
    pointer-events:none!important;
  }
  .ariadne-launch{
    position:relative!important;right:auto!important;bottom:auto!important;
    width:58px!important;height:58px!important;min-width:58px!important;max-width:58px!important;min-height:58px!important;
    padding:0!important;border-radius:50%!important;
    display:grid!important;place-items:center!important;
    background:linear-gradient(145deg,#9B0D18,#6F0810)!important;
    border:2px solid #C6A15B!important;
    box-shadow:0 12px 30px rgba(29,10,13,.34)!important;
    touch-action:manipulation!important;-webkit-tap-highlight-color:transparent!important;
    pointer-events:auto!important;
  }
  .ariadne-launch .ariadne-avatar{width:42px!important;height:42px!important;border:0!important;background:transparent!important;box-shadow:none!important;font-size:21px!important}
  .ariadne-launch-copy,.ariadne-online{display:none!important}
  .ariadne-panel{
    position:fixed!important;
    inset:max(8px,env(safe-area-inset-top)) 8px calc(var(--fasma-mobile-nav-h) + 6px + env(safe-area-inset-bottom)) 8px!important;
    width:auto!important;height:auto!important;max-width:none!important;max-height:none!important;
    border-radius:16px!important;z-index:5100!important;
    overflow:hidden!important;background:#fff!important;
    box-shadow:0 24px 70px rgba(8,16,24,.38)!important;
    pointer-events:auto!important;
  }
  .ariadne-panel.open{display:grid!important}
  .ariadne-head{min-height:68px!important;padding:10px 12px!important}
  .ariadne-messages{min-height:0!important;overflow:auto!important;-webkit-overflow-scrolling:touch!important}
  .ariadne-quick{max-height:126px!important;overflow:auto!important;-webkit-overflow-scrolling:touch!important}
  .ariadne-compose textarea{font-size:16px!important} /* prevents iOS zoom */
  .ariadne-close{touch-action:manipulation!important}
}

@media(display-mode:standalone) and (max-width:700px){
  .ariadne-shell{bottom:calc(var(--fasma-mobile-nav-h) + 12px + env(safe-area-inset-bottom))!important}
  .ariadne-panel{top:max(8px,env(safe-area-inset-top))!important}
}
