/* XYLO 76E — language/RTL layout safety. Local production CSS. */
:root{--xv-i18n-font:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
html[lang="ar"] body,html[lang="th"] body,html[lang="zh"] body{font-family:var(--xv-i18n-font)}
html[dir="rtl"] body{text-align:right}
html[dir="rtl"] .drawer-scroll>*,html[dir="rtl"] .xv-drawerCopy,html[dir="rtl"] .xv-roleBrandCopy{direction:rtl;text-align:right}
html[dir="rtl"] .xv-drawerChevron,html[dir="rtl"] .bi-chevron-right{transform:scaleX(-1)}
html[dir="rtl"] .xv-centerNav,html[dir="rtl"] .xv-publicGuestActions{direction:rtl}
html[dir="rtl"] input[type="email"],html[dir="rtl"] input[type="tel"],html[dir="rtl"] input[type="url"],html[dir="rtl"] input[type="number"],html[dir="rtl"] code,html[dir="rtl"] pre,html[dir="rtl"] .font-mono,html[dir="rtl"] .break-all,html[dir="rtl"] [data-xv-ltr]{direction:ltr;text-align:left;unicode-bidi:isolate}
html[dir="rtl"] .xv-i18n-ltr{direction:ltr;unicode-bidi:isolate}
html[dir="rtl"] .xv-i18n-card{text-align:right}
.xv-i18n-wrap-safe,.xv-i18n-wrap-safe button,.xv-i18n-wrap-safe a{overflow-wrap:anywhere;word-break:normal}
.xv-language-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.xv-language-card{min-height:78px;display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;padding:16px 18px;border-radius:15px;text-align:left;background:#151219;border:1px solid rgba(160,80,236,.28);color:#fff;transition:transform .16s ease,border-color .16s ease,background .16s ease,box-shadow .16s ease}
.xv-language-card:hover{border-color:rgba(160,80,236,.55);background:#1a1420}.xv-language-card:active{transform:scale(.992)}
.xv-language-card.is-selected{background:linear-gradient(135deg,rgba(112,64,216,.96),rgba(160,80,236,.96));border-color:rgba(216,180,254,.62);box-shadow:0 12px 34px rgba(112,64,216,.25)}
.xv-language-native{display:block;font-size:1rem;font-weight:900;line-height:1.15}.xv-language-english{display:block;margin-top:5px;color:rgba(255,255,255,.62);font-size:.82rem}.xv-language-card.is-selected .xv-language-english{color:rgba(255,255,255,.78)}
.xv-language-check{flex:0 0 auto;width:26px;height:26px;border-radius:999px;display:grid;place-items:center;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.18)}
html[dir="rtl"] .xv-language-card{text-align:right;direction:rtl}
@media(max-width:640px){.xv-language-grid{grid-template-columns:1fr}.xv-language-card{min-height:70px;padding:14px 15px}.xv-language-native{font-size:.96rem}}

.xv-language-trigger{position:fixed;z-index:120;top:max(14px,env(safe-area-inset-top));right:14px;display:inline-flex;align-items:center;gap:7px;min-height:38px;padding:8px 12px;border-radius:12px;background:#0d0b11;border:1px solid rgba(160,80,236,.34);color:#eee7ff;font-size:.78rem;font-weight:850;box-shadow:0 10px 30px rgba(0,0,0,.25)}
.xv-language-trigger:hover{border-color:rgba(160,80,236,.62);background:#15101b}
html[dir="rtl"] .xv-language-trigger{right:auto;left:14px}
