/* One text-language control in toolbars, sheets and the isolated account UI. */
.screen-text-choice.screen-text-choice{display:flex;align-items:center;flex:0 0 auto;gap:0;padding:0;margin:0;border:0;border-radius:999px;white-space:nowrap;background:#f5faffc9;box-shadow:inset 0 1px 1px #fff,0 0 5px #ffffffc9,0 0 14px 3px #91caff45,0 0 24px 5px #91caff18;font:750 15px/1.55 system-ui}
.screen-text-choice.screen-text-choice>button{box-sizing:border-box;display:grid;place-items:center;flex:0 0 auto;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border:0;border-radius:999px;background:#edf5ff;color:#466184;font:inherit;box-shadow:none;touch-action:manipulation;cursor:pointer}
.screen-text-choice.screen-text-choice>button:is([data-value=ne],[data-language=ne]){width:44px;min-width:44px;font-size:17px}
.screen-text-choice.screen-text-choice>button[aria-pressed=true]{background:#a0e6bc;color:#145c37;box-shadow:0 0 10px 2px #54d69b55}
.screen-text-choice.screen-text-choice .screen-text-label{font:inherit}
.screen-text-choice.screen-text-choice>button:focus-visible{outline:2px solid #0867ed;outline-offset:2px}
@media(forced-colors:active){.screen-text-choice.screen-text-choice{border:1px solid ButtonText;box-shadow:none}.screen-text-choice.screen-text-choice>button[aria-pressed=true]{background:Highlight;color:HighlightText;outline:2px solid Highlight;outline-offset:-3px;box-shadow:none}}
/* One keyboard stop and one full-width hit target; the two labels are visual. */
button.screen-text-choice[data-screen-text-toggle]{appearance:none;min-width:88px;min-height:44px;text-align:center;text-transform:none;letter-spacing:normal;cursor:pointer;touch-action:manipulation}
button.screen-text-choice[data-screen-text-toggle]>.screen-text-option{box-sizing:border-box;display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;padding:0;border:0;border-radius:999px;background:#edf5ff;color:#466184;font:inherit;pointer-events:none}
.screen-text-choice.screen-text-choice .screen-text-flag{display:grid;place-items:center;width:23px;height:25px;line-height:0}
.screen-text-choice.screen-text-choice .screen-text-flag[lang=ne]{height:28px}
.screen-text-choice.screen-text-choice .screen-text-flag>svg{display:block;width:100%;height:100%;overflow:visible}
button.screen-text-choice[data-screen-text-toggle]>.screen-text-option[data-selected=true]{background:#a0e6bc;color:#145c37;box-shadow:0 0 10px 2px #54d69b55}
button.screen-text-choice[data-screen-text-toggle]:focus-visible{outline:3px solid #0867ed;outline-offset:3px}
@media(forced-colors:active){button.screen-text-choice[data-screen-text-toggle]>.screen-text-option[data-selected=true]{background:Highlight;color:HighlightText;outline:2px solid Highlight;outline-offset:-3px;box-shadow:none}}


/* One visual surface inside a 44px hit target. Match the shared selector's
   specificity so its old outer background/halo cannot form a second rim. */
body button.screen-text-choice.screen-text-choice[data-screen-text-toggle]{position:relative;isolation:isolate;box-sizing:border-box;justify-content:center;width:88px;height:44px;padding:0;border:0!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
button.screen-text-choice[data-screen-text-toggle]::before{content:"";position:absolute;inset:4px 2px;border:0;border-radius:999px;background:#f5faffc9;box-shadow:0 0 13px 2px #91caff3d;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);pointer-events:none}
button.screen-text-choice[data-screen-text-toggle]>.screen-text-option{position:relative;z-index:1;flex-basis:40px;width:40px;height:36px;background:transparent}
button.screen-text-choice[data-screen-text-toggle]>.screen-text-option[data-selected=true]{background:#a0e6bc;box-shadow:0 0 6px #54d69b44}
@media(forced-colors:active){
 button.screen-text-choice[data-screen-text-toggle]::before{border:1px solid ButtonText;background:Canvas;box-shadow:none}
 button.screen-text-choice[data-screen-text-toggle]>.screen-text-option[data-selected=true]{background:Highlight;color:HighlightText;box-shadow:none}
}

/* The UK flag catches a gentle breeze, anchored at its hoist. Animate only the
   artwork, keeping the language switch and its active marker steady. */
.screen-text-choice.screen-text-choice .screen-text-flag[lang=en]>svg {
 transform-origin:0 50%;animation:sano-uk-flag-breeze 4.05s ease-in-out infinite;
 filter:drop-shadow(1px 2px 1px #14265324);
}
@keyframes sano-uk-flag-breeze {
 0%,100% {transform:perspective(180px) rotateY(-7deg) skewY(-2deg)}
 50% {transform:perspective(180px) rotateY(7deg) skewY(2deg)}
}
body:is([data-motion=reduce],[data-reduced-motion=true]) .screen-text-choice .screen-text-flag[lang=en]>svg {animation:none;transform:none}
body[data-page-hidden=true] .screen-text-choice .screen-text-flag[lang=en]>svg {animation-play-state:paused}
@media(prefers-reduced-motion:reduce),(forced-colors:active) {
 .screen-text-choice.screen-text-choice .screen-text-flag[lang=en]>svg {animation:none;transform:none}
}
