.language-switch { display:inline-flex; align-items:center; gap:5px; flex:none; min-height:40px; padding:3px 6px; border:1px solid rgba(154,149,225,.35); border-radius:12px; background:linear-gradient(135deg,rgba(36,52,84,.9),rgba(42,33,68,.9)); color:#e5eaff; font-size:12px; line-height:1; white-space:nowrap; direction:ltr; }
.language-switch a { display:inline-flex; align-items:center; justify-content:center; min-height:36px; padding:5px 6px; border-radius:8px; text-decoration:none; transition:background .16s ease,transform .12s ease; }
.language-switch a[aria-current=true] { background:rgba(131,144,236,.23); color:#fff; }
.language-switch a:hover { background:rgba(131,144,236,.18); }
.language-switch a:active { transform:scale(.97); }
.language-short { display:none; }
.site-header .wrap { flex-wrap:wrap; min-width:0; }
.site-header .header-search { flex:1 1 190px; min-width:160px; }
.translation-note { color:#b7c4dd; font-size:12px; line-height:1.7; margin:0 0 12px; }
#resignDialog > div { max-height:90vh; max-height:90dvh; overflow-y:auto; direction:inherit !important; }
#resignStatus { min-width:0; max-width:100%; overflow-wrap:anywhere; white-space:normal; }
.sign-error-title { display:block; }
.sign-error-message { margin:8px 0 0; }
html[dir=ltr] .latest-navigation { direction:ltr; }
html[dir=ltr] .latest-all { direction:ltr; }
html[dir=ltr] .catalog-actions { margin-inline-start:auto; margin-inline-end:0; }
html[dir=rtl] .banner-item { text-align:start; }
html[dir=rtl] .hero-eyebrow { letter-spacing:normal; }
.banner-features { direction:inherit !important; }
.banner-item { text-align:start; }
.details-top { gap:12px; flex-wrap:wrap; }
.local-card-name,.app-title,.detail-title h1 { overflow-wrap:anywhere; }
@media (max-width:900px) {
  .site-header .main-nav { gap:14px; }
  .language-short { display:inline; }
  .language-long { display:none; }
}
@media (max-width:600px) {
  .language-switch { gap:2px; padding:2px 4px; }
  .language-switch a { padding-inline:4px; }
  .site-header .wrap { gap:10px; padding-inline:6px; }
  .site-header .header-search { flex-basis:100%; min-width:0; }
  .site-header .brand { font-size:17px; }
  .site-header .brand-logo { width:34px; height:34px; }
  .site-header .language-switch { margin-inline-start:auto; }
  .site-header .support-btn { margin-inline-start:auto; }
}
@media (prefers-reduced-motion:reduce) { .language-switch a { transition:none; } .language-switch a:active { transform:none; } }
