.language-switcher {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding-inline-start: 8px;
  border: 1px solid #344b55;
  border-radius: 6px;
  background: #0e1a23;
  color: #dce9ed;
}

.language-switcher svg { width: 15px; height: 15px; color: #a5f4d1; flex: none; }
.language-switcher select {
  width: auto;
  max-width: 145px;
  min-height: 32px;
  padding: 4px 0;
  padding-inline-end: 5px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.language-switcher option { background: #0e1a23; color: #dce9ed; }
.site-policy-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; }
.site-policy-links a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.language-error {
  position: absolute;
  z-index: 30;
  inset-block-start: calc(100% + 6px);
  inset-inline-end: 0;
  width: max-content;
  max-width: min(220px, 65vw);
  padding: 6px 9px;
  border: 1px solid #925e67;
  border-radius: 6px;
  background: #3a232c;
  color: #ffe1e6;
  font-size: 12px;
}

html[dir="rtl"] .sidebar {
  inset-inline-start: 0;
  inset-inline-end: auto;
  border-right: 0;
  border-left: 1px solid #1c2630;
}
html[dir="rtl"] .workspace { margin-left: 0; margin-right: 222px; }
html[dir="rtl"] .nav-item { text-align: start; }
html[dir="rtl"] .nav-item.selected::before { left: auto; right: -19px; }
html[dir="rtl"] .profile { margin-left: 0; margin-right: -18px; text-align: start; }
html[dir="rtl"] .profile > .icon { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .home-hero .hero-art { right: auto; left: 0; }
html[dir="rtl"] .hero-index { right: auto; left: 22px; }
html[dir="rtl"] #toasts { left: calc(50% - 111px); }
html[dir="rtl"] .chat-list { border-right: 0; border-left: 1px solid #2a3a45; }
html[dir="rtl"] .remote-website,
html[dir="rtl"] .mono,
html[dir="rtl"] .date-range-trigger span:not(.date-range-divider),
html[dir="rtl"] .copy-value code { direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] .date-range-toolbar button { transform: scaleX(-1); }

@media (max-width: 1200px) {
  html[dir="rtl"] .workspace { margin-right: 190px; }
  html[dir="rtl"] .nav-item.selected::before { right: -14px; }
  html[dir="rtl"] .profile { margin-right: -13px; }
  html[dir="rtl"] #toasts { left: calc(50% - 95px); }
}

@media (max-width: 980px) {
  html[dir="rtl"] .workspace { margin-right: 74px; }
  html[dir="rtl"] .nav-item.selected::before { right: -12px; }
  html[dir="rtl"] .profile { margin-right: -11px; }
  html[dir="rtl"] #toasts { left: calc(50% - 37px); }
}

@media (max-width: 700px) {
  html[dir="rtl"] .sidebar { inset-inline: 0; border-left: 0; }
  html[dir="rtl"] .workspace { margin-right: 0; }
  html[dir="rtl"] .home-hero .hero-art { left: -108px; }
  html[dir="rtl"] .chat-list { border-left: 0; }
  html[dir="rtl"] #toasts { left: 50%; }
  html .sidebar .nav-item > .nav-text::before {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 9px;
    line-height: 1.15;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 480px) {
  .language-switcher { min-height: 31px; padding-inline-start: 5px; gap: 3px; }
  .language-switcher svg { width: 13px; height: 13px; }
  .language-switcher select { min-height: 29px; font-size: 11px; }
}
