.footer-left-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.sidebar-ui-theme-panel {
  display: block;
  width: 100%;
  margin-top: 4px;
  color: var(--text, #111827);
}

.site-theme-switcher {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--text, #111827);
  font-size: 12px;
  font-weight: 900;
}

.sidebar-ui-theme-panel .site-theme-switcher {
  width: 100%;
  min-height: 38px;
  padding: 0;
  gap: 8px;
  justify-content: flex-start;
}

.site-theme-switcher-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent, #2563eb) 14%, var(--card, #fff));
  box-shadow: 0 8px 18px rgba(15, 23, 42, .10);
  font-size: 0;
}

.site-theme-switcher-icon::before {
  content: "\1F3A8";
  font-size: 14px;
  font-weight: 950;
}

.wallpaper-floating-icon,
.global-scroll-top-icon {
  font-size: 0 !important;
}

.wallpaper-floating-icon::before {
  content: "\1F3A8";
  font-size: 16px;
}

.global-scroll-top-icon::before {
  content: "Top";
  font-size: 11px;
}

.site-theme-switcher select {
  width: 142px;
  min-height: 34px;
  border: 1px solid color-mix(in srgb, var(--line, #d9e2ec) 80%, transparent);
  border-radius: 999px;
  padding: 0 34px 0 12px;
  background: var(--bg, #f8fafc);
  color: var(--text, #111827);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.sidebar-ui-theme-panel .site-theme-switcher select {
  flex: 1 1 150px;
  width: 100%;
  min-width: 124px;
  max-width: 100%;
  background: color-mix(in srgb, var(--card, #fff) 84%, var(--bg, #f8fafc));
}

.site-theme-switcher small {
  min-width: 36px;
  color: var(--muted, #64748b);
  font-size: 11px;
  font-weight: 900;
}

.site-theme-switcher small.is-error {
  color: #dc2626;
}

.mobile-theme-nav-separator {
  display: none;
}

.pro-mobile-bottom-nav .pro-mobile-bottom-theme {
  display: none;
}

@media (min-width: 981px) {
  .site-theme-switcher.is-mobile {
    display: none;
  }

  body.sidebar-theme-ui {
    padding-bottom: 18px !important;
  }
}

@media (max-width: 980px) {
  .site-theme-switcher.is-desktop {
    display: none;
  }

  .mobile-drawer-theme-row {
    width: 100% !important;
  }

  .mobile-drawer-theme-switcher {
    width: 100% !important;
    min-height: 58px !important;
    display: grid !important;
    grid-template-columns: auto auto minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 12px !important;
    border: 1px solid rgba(255, 255, 255, .14) !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, .12) !important;
    color: #fff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12) !important;
  }

  .mobile-drawer-theme-switcher .site-theme-switcher-icon {
    width: 34px !important;
    height: 34px !important;
    flex: 0 0 34px !important;
    background: rgba(255, 255, 255, .16) !important;
    box-shadow: none !important;
  }

  .mobile-drawer-theme-switcher .site-theme-switcher-icon::before {
    font-size: 16px !important;
  }

  .mobile-drawer-theme-switcher .site-theme-switcher-label {
    color: rgba(255, 255, 255, .92) !important;
    font-size: 14px !important;
    font-weight: 950 !important;
    white-space: nowrap !important;
  }

  .mobile-drawer-theme-switcher select {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 44px !important;
    border-color: rgba(255, 255, 255, .18) !important;
    background: rgba(2, 6, 23, .58) !important;
    color: #fff !important;
  }

  .mobile-drawer-theme-switcher small {
    min-width: 0 !important;
    max-width: 54px !important;
    color: rgba(255, 255, 255, .76) !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.sidebar-theme-ui {
    padding-bottom: calc(82px + env(safe-area-inset-bottom)) !important;
  }

  body.sidebar-theme-ui .app-shell,
  body.sidebar-theme-ui .layout-grid {
    padding-bottom: calc(82px + env(safe-area-inset-bottom)) !important;
  }
}
