/* ASHE v34.9.55 · Public language selector
   Desktop: preserve v34.9.53 appearance.
   Phone: compact icon pill physically docked inside Ask ASHE, so it always sits directly above the red AI button. */
.ashe-language-control--native[data-ashe-scope="public"]{
  position:fixed!important;
  left:auto!important;
  right:18px!important;
  top:auto!important;
  bottom:80px!important;
  z-index:3500!important;
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
  min-height:48px!important;
  max-width:min(220px,calc(100vw - 36px))!important;
  padding:6px 9px!important;
  border:1px solid rgba(164,195,220,.38)!important;
  border-radius:16px!important;
  background:#071c31!important;
  color:#fff!important;
  box-shadow:0 10px 30px rgba(0,0,0,.24)!important;
  white-space:normal!important;
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
  pointer-events:auto!important;
  font-family:Manrope,Inter,system-ui,-apple-system,"Segoe UI",sans-serif!important
}
.ashe-language-control--native[data-ashe-scope="public"] .ashe-language-native-globe{
  font-size:16px!important;line-height:1!important;flex:0 0 auto!important
}
.ashe-language-control--native[data-ashe-scope="public"] .ashe-language-native-flag{
  display:grid!important;place-items:center!important;width:27px!important;height:27px!important;
  flex:0 0 27px!important;border-radius:9px!important;background:#fff!important;font-size:18px!important;
  line-height:1!important;box-shadow:inset 0 0 0 1px rgba(4,24,50,.08)!important
}
.ashe-language-control--native[data-ashe-scope="public"] .ashe-language-native-label{
  display:flex!important;flex-direction:column!important;min-width:0!important;flex:1!important;gap:1px!important;
  color:#fff!important;cursor:pointer!important;margin:0!important
}
.ashe-language-control--native[data-ashe-scope="public"] .ashe-language-native-label small{
  display:block;font:800 8px/1.1 system-ui,-apple-system,"Segoe UI",sans-serif!important;
  letter-spacing:.1em!important;text-transform:uppercase!important;color:#8fb1ca!important
}
.ashe-language-control--native[data-ashe-scope="public"] .ashe-language-native-picker{
  display:block!important;width:100%!important;min-width:108px!important;max-width:155px!important;height:25px!important;
  margin:0!important;padding:0 20px 0 0!important;border:0!important;outline:0!important;border-radius:0!important;
  background:transparent!important;color:#fff!important;opacity:1!important;pointer-events:auto!important;
  clip:auto!important;overflow:visible!important;position:static!important;
  font:800 11px/1.2 system-ui,-apple-system,"Segoe UI",sans-serif!important;cursor:pointer!important;
  -webkit-appearance:menulist!important;appearance:auto!important;touch-action:manipulation!important
}
.ashe-language-control--native[data-ashe-scope="public"] .ashe-language-native-picker option{
  color:#111!important;background:#fff!important;font-size:14px!important
}
.ashe-language-control--native[data-ashe-scope="public"] .ashe-language-native-chevron{
  font-size:15px!important;color:#a7c0d4!important;line-height:1!important;pointer-events:none!important;flex:0 0 auto!important
}
.ashe-language-control--native[data-ashe-scope="public"][aria-busy="true"]{opacity:.82!important}

@media(max-width:980px) and (min-width:521px){
  .ashe-language-control--native[data-ashe-scope="public"]{
    right:18px!important;bottom:80px!important;min-height:46px!important;max-width:184px!important;
    padding:5px 8px!important;gap:6px!important
  }
  .ashe-language-control--native[data-ashe-scope="public"] .ashe-language-native-globe{display:none!important}
  .ashe-language-control--native[data-ashe-scope="public"] .ashe-language-native-flag{
    width:25px!important;height:25px!important;flex-basis:25px!important;font-size:17px!important
  }
  .ashe-language-control--native[data-ashe-scope="public"] .ashe-language-native-label small{display:none!important}
  .ashe-language-control--native[data-ashe-scope="public"] .ashe-language-native-picker{
    min-width:100px!important;max-width:128px!important;height:28px!important;font-size:11px!important
  }
}

/* Phone: hide the text entirely. The transparent native SELECT covers the whole compact pill. */
@media(max-width:520px){
  .ashe-language-control--native[data-ashe-scope="public"]{
    visibility:hidden!important;
    width:78px!important;min-width:78px!important;max-width:78px!important;
    height:44px!important;min-height:44px!important;max-height:44px!important;
    padding:5px 8px!important;gap:6px!important;border-radius:15px!important;
    white-space:nowrap!important;overflow:hidden!important
  }

  /* Definitive placement: child of .ashe-ai-chat, whose own mobile offset already clears the bottom navigation. */
  .ashe-ai-chat > .ashe-language-control--native[data-ashe-scope="public"][data-ashe-ai-docked="1"]{
    visibility:visible!important;
    position:absolute!important;
    right:0!important;left:auto!important;
    bottom:64px!important;top:auto!important;
    z-index:4!important;
    margin:0!important;
    transform:none!important
  }

  /* Safe fallback if Ask ASHE is unavailable for any reason. */
  .ashe-language-control--native[data-ashe-scope="public"][data-ashe-mobile-fallback="1"]{
    visibility:visible!important;
    position:fixed!important;
    right:10px!important;left:auto!important;
    bottom:calc(150px + env(safe-area-inset-bottom,0px))!important;
    top:auto!important
  }

  .ashe-language-control--native[data-ashe-scope="public"] .ashe-language-native-globe{
    display:block!important;font-size:15px!important;flex:0 0 auto!important;pointer-events:none!important
  }
  .ashe-language-control--native[data-ashe-scope="public"] .ashe-language-native-flag{
    width:22px!important;height:22px!important;flex:0 0 22px!important;
    border-radius:7px!important;font-size:15px!important;pointer-events:none!important
  }
  .ashe-language-control--native[data-ashe-scope="public"] .ashe-language-native-chevron{
    display:block!important;font-size:11px!important;flex:0 0 auto!important;pointer-events:none!important
  }

  /* The real native selector remains fully tappable, but its long selected text cannot widen the pill. */
  .ashe-language-control--native[data-ashe-scope="public"] .ashe-language-native-label{
    position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;
    margin:0!important;padding:0!important;opacity:1!important;z-index:5!important
  }
  .ashe-language-control--native[data-ashe-scope="public"] .ashe-language-native-label small{display:none!important}
  .ashe-language-control--native[data-ashe-scope="public"] .ashe-language-native-picker{
    position:absolute!important;inset:0!important;width:100%!important;min-width:0!important;max-width:none!important;
    height:100%!important;margin:0!important;padding:0!important;border:0!important;border-radius:15px!important;
    opacity:0!important;cursor:pointer!important;pointer-events:auto!important;
    -webkit-appearance:none!important;appearance:none!important
  }

  .ashe-ai-chat:has(.ashe-ai-chat__panel[aria-hidden="false"]) > .ashe-language-control--native[data-ashe-scope="public"]{
    visibility:hidden!important;pointer-events:none!important
  }
}

@media(max-width:380px){
  .ashe-language-control--native[data-ashe-scope="public"]{
    width:74px!important;min-width:74px!important;max-width:74px!important
  }
}

@media(prefers-reduced-motion:reduce){
  .ashe-language-control--native[data-ashe-scope="public"]{scroll-behavior:auto!important}
}

/* ASHE v34.9.71 · Desktop-only custom language list with OS-independent local SVG flags. */
.ashe-language-desktop-ui{display:none}
@media(min-width:521px){
  .ashe-language-control--native[data-ashe-scope="public"]{
    overflow:visible!important;
    padding:0!important;
    min-height:48px!important;
    width:218px!important;
    max-width:min(218px,calc(100vw - 36px))!important;
  }
  .ashe-language-control--native[data-ashe-scope="public"] > .ashe-language-native-globe,
  .ashe-language-control--native[data-ashe-scope="public"] > .ashe-language-native-flag,
  .ashe-language-control--native[data-ashe-scope="public"] > .ashe-language-native-label,
  .ashe-language-control--native[data-ashe-scope="public"] > .ashe-language-native-chevron{display:none!important}
  .ashe-language-desktop-ui{display:block!important;position:relative!important;width:100%!important;min-width:0!important}
  .ashe-language-desktop-trigger{
    width:100%!important;min-height:48px!important;margin:0!important;padding:6px 9px!important;border:0!important;
    border-radius:15px!important;background:transparent!important;color:#fff!important;display:flex!important;align-items:center!important;
    gap:9px!important;text-align:left!important;cursor:pointer!important;font-family:Manrope,Inter,system-ui,-apple-system,"Segoe UI",sans-serif!important;
    -webkit-tap-highlight-color:transparent!important
  }
  .ashe-language-desktop-trigger:focus-visible{outline:2px solid #65b9ff!important;outline-offset:2px!important}
  .ashe-language-desktop-flag,.ashe-language-desktop-option-flag{
    display:grid!important;place-items:center!important;flex:0 0 auto!important;border-radius:6px!important;overflow:hidden!important;
    background:#fff!important;box-shadow:0 0 0 1px rgba(255,255,255,.26),0 2px 7px rgba(0,0,0,.18)!important
  }
  .ashe-language-desktop-flag{width:30px!important;height:20px!important}
  .ashe-language-desktop-option-flag{width:28px!important;height:19px!important}
  .ashe-flag-svg{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important}
  .ashe-language-desktop-copy{display:flex!important;min-width:0!important;flex:1!important;flex-direction:column!important;gap:1px!important}
  .ashe-language-desktop-copy small{font:800 8px/1.1 system-ui,-apple-system,"Segoe UI",sans-serif!important;letter-spacing:.1em!important;text-transform:uppercase!important;color:#8fb1ca!important}
  .ashe-language-desktop-copy strong{display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font:800 12px/1.25 system-ui,-apple-system,"Segoe UI",sans-serif!important;color:#fff!important}
  .ashe-language-desktop-caret{flex:0 0 auto!important;color:#a7c0d4!important;font-size:15px!important;line-height:1!important;transition:transform .16s ease!important}
  .ashe-language-desktop-ui[data-open="1"] .ashe-language-desktop-caret{transform:rotate(180deg)!important}
  .ashe-language-desktop-menu{
    display:none!important;position:absolute!important;right:0!important;bottom:calc(100% + 9px)!important;z-index:20!important;
    width:286px!important;max-width:calc(100vw - 36px)!important;max-height:min(62vh,500px)!important;overflow:auto!important;
    overscroll-behavior:contain!important;padding:7px!important;border:1px solid rgba(151,184,210,.36)!important;border-radius:16px!important;
    background:#071c31!important;box-shadow:0 18px 48px rgba(0,0,0,.34)!important;scrollbar-width:thin!important
  }
  .ashe-language-desktop-ui[data-open="1"] .ashe-language-desktop-menu{display:block!important}
  .ashe-language-desktop-option{
    width:100%!important;min-height:39px!important;margin:0!important;padding:6px 8px!important;border:0!important;border-radius:10px!important;
    display:grid!important;grid-template-columns:28px minmax(0,1fr) 18px!important;align-items:center!important;gap:10px!important;
    background:transparent!important;color:#f7fbff!important;text-align:left!important;cursor:pointer!important;
    font:700 12px/1.2 system-ui,-apple-system,"Segoe UI",sans-serif!important
  }
  .ashe-language-desktop-option:hover,.ashe-language-desktop-option:focus-visible{background:#123653!important;outline:none!important}
  .ashe-language-desktop-option.is-selected{background:#174a70!important;color:#fff!important}
  .ashe-language-desktop-option > span:nth-child(2){overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  .ashe-language-desktop-check{opacity:0!important;text-align:center!important;color:#7ce1b6!important;font-size:14px!important;font-weight:900!important}
  .ashe-language-desktop-option.is-selected .ashe-language-desktop-check{opacity:1!important}
}
@media(max-width:980px) and (min-width:521px){
  .ashe-language-control--native[data-ashe-scope="public"]{width:190px!important;max-width:min(190px,calc(100vw - 36px))!important}
  .ashe-language-desktop-copy strong{font-size:11px!important}
  .ashe-language-desktop-menu{width:270px!important}
}
@media(max-width:520px){.ashe-language-desktop-ui{display:none!important}}
