.system-switcher {
  padding: 0 16px;
  margin-bottom: 8px;
}
.system-switcher--collapsed {
  padding: 0;
  display: flex;
  justify-content: center;
}
.system-switcher--collapsed .system-switcher__trigger {
  width: var(--nav-system-switcher-height, 32px);
  height: var(--nav-system-switcher-height, 32px);
  padding: 0;
  justify-content: center;
}
.system-switcher__trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: var(--nav-system-switcher-height, 32px);
  padding: 5px 12px;
  border-radius: var(--nav-system-switcher-border-radius, 4px);
  cursor: pointer;
  background-color: var(--nav-system-switcher-bg-color, rgba(255, 255, 255, 0.08));
  border: 1px solid var(--nav-system-switcher-border-color, rgba(255, 255, 255, 0.04));
  box-sizing: border-box;
  transition: background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
}
.system-switcher__trigger:hover, .system-switcher__trigger--active {
  background-color: var(--nav-system-switcher-active-bg-color, rgba(255, 255, 255, 0.16));
  border-color: var(--nav-system-switcher-active-border-color, rgba(255, 255, 255, 0.1));
}
.system-switcher__trigger:hover .system-switcher__name, .system-switcher__trigger--active .system-switcher__name {
  color: var(--nav-system-switcher-active-text-color, #ffffff);
}
.system-switcher__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.system-switcher__icon-svg {
  width: 18px;
  height: 18px;
}
.system-switcher__icon-default {
  display: block;
  width: var(--nav-system-switcher-icon-size, 18px);
  height: var(--nav-system-switcher-icon-size, 18px);
  background-image: var(--nav-system-switcher-icon);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: background-image 0.3s ease-in-out;
}
.system-switcher__trigger:hover .system-switcher__icon-default, .system-switcher__trigger--active .system-switcher__icon-default {
  background-image: var(--nav-system-switcher-active-icon);
}
.system-switcher__name {
  font-size: var(--nav-system-switcher-font-size, 14px);
  color: var(--nav-system-switcher-text-color, #ffffff);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.3s ease-in-out;
}

.system-switcher__popup {
  position: fixed;
  z-index: 2000;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.1);
  padding: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 330px;
  border: 1px solid #eaedf6;
}

.system-switcher__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 4px 0;
  width: 96px;
  border-radius: 4px;
  cursor: pointer;
  background-color: #fff;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}
.system-switcher__item:hover {
  background: linear-gradient(180deg, #f1f8ff 0%, #e5f2fe 100%);
}
.system-switcher__item--active {
  background: linear-gradient(180deg, #f1f8ff 0%, #e5f2fe 100%);
  border: 1px solid #007af5;
}
.system-switcher__item--active .system-switcher__item-name {
  color: #007af5;
  font-weight: 600;
}

.system-switcher__item-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.system-switcher__item-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.system-switcher__item-name {
  font-size: 12px;
  color: #111;
  text-align: center;
  line-height: 18px;
  font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  word-break: break-all;
}

.system-popup-enter-active,
.system-popup-leave-active {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.system-popup-enter-from,
.system-popup-leave-to {
  opacity: 0;
  transform: scale(0.95);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  min-width: 0;
}
.nav-logo--collapsed {
  justify-content: center;
}
.nav-logo--vertical {
  gap: 8px;
}
.nav-logo__icon {
  width: var(--nav-logo-icon-size, 24px);
  height: var(--nav-logo-icon-size, 24px);
  object-fit: contain;
  flex-shrink: 0;
}
.nav-logo__large {
  object-fit: contain;
  flex-shrink: 0;
}
.nav-logo__title {
  font-size: var(--nav-logo-font-size, 14px);
  font-weight: 600;
  color: var(--nav-logo-text-color);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}