.pa-lang-switch {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  pointer-events: auto;
  position: relative;
  width: 100%;
  z-index: 5;
}

.pa-lang-switch__header {
  color: #f7f7f7;
  font-family: Inter, sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  margin: 15px 0 5px;
  white-space: nowrap;
}

.pa-lang-switch__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.pa-lang-switch__btn {
  align-items: center;
  background: #262729;
  border: 1px solid #313338;
  border-radius: 8px;
  box-sizing: border-box;
  color: #9ca3af;
  cursor: pointer;
  display: flex;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 500;
  gap: 8px;
  height: 52px;
  line-height: 1.2;
  min-height: 52px;
  padding: 8px 12px;
  text-decoration: none;
  transition: none;
  width: 100%;
}

.pa-lang-switch__btn:hover {
  border-color: #4d5159;
  color: #e8eaed;
}

.pa-lang-switch__btn.is-active {
  color: #f7f7f7;
}

.pa-lang-switch__check {
  flex-shrink: 0;
  height: 16px;
  opacity: 0;
  width: 16px;
}

.pa-lang-switch__btn.is-active .pa-lang-switch__check {
  opacity: 1;
}

#pa-lang-mount {
  pointer-events: auto;
  position: relative;
  width: 100%;
  z-index: 5;
}

/* Заголовки секций в настройках — в одну строку, компактнее под ширину 340px. */
.style_sidebarContentWrapper__UvPw6 .style_text__Qb0MJ[style*="font-size: 20px"] {
  font-size: 17px !important;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-left: 0 !important;
  margin-right: 0 !important;
  white-space: nowrap;
}

/* Подзаголовки и подписи полей — аккуратный перенос. */
.style_sidebarContentWrapper__UvPw6 .style_text__Qb0MJ[style*="font-size: 12px"],
.style_sidebarContentWrapper__UvPw6 .style_text__Qb0MJ[style*="font-size: 16px"] {
  line-height: 1.3;
  white-space: normal;
}

/* Длинные подписи кнопок в боковой панели не должны обрезаться. */
.style_sidebarContentWrapper__UvPw6 .ant-btn {
  height: auto;
  min-height: 52px;
  white-space: normal;
  text-align: left;
  line-height: 1.25;
  padding-top: 6px;
  padding-bottom: 6px;
}

.style_sidebarContentWrapper__UvPw6 .ant-btn > span {
  white-space: normal;
}

/* Списки ресурсов и мобов (и текст справки) можно выделять и копировать. */
.style_sidebarContentWrapper__UvPw6 .ant-collapse,
.style_sidebarContentWrapper__UvPw6 .ant-collapse *,
.style_sidebarContentWrapper__UvPw6 .ant-collapse-content-box .style_text__Qb0MJ {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  user-select: text !important;
  cursor: text;
}

/* Раскрытие/сворачивание списков без анимации высоты — иначе контент «прыгает». */
.style_sidebarContentWrapper__UvPw6 .ant-collapse-content,
.style_sidebarContentWrapper__UvPw6 .ant-motion-collapse {
  transition: none !important;
  animation: none !important;
}
