.app-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.app-switcher__trigger {
  width: 32px;
  height: 32px;
  padding: 4px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.1s ease;
}

.app-switcher__trigger:hover {
  border-color: rgba(0, 0, 0, 0.2);
}

.app-switcher__trigger:active {
  transform: translateY(1px);
}

.app-switcher__trigger:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.app-switcher__trigger svg {
  width: 24px;
  height: 24px;
}

.app-switcher__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 1200;
}

.app-switcher__menu.is-open {
  display: flex;
}

.app-switcher__menu::before {
  content: '';
  position: absolute;
  inset: -8px 0 0 0;
  z-index: -1;
}

.app-switcher__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
  transition: background-color 0.15s ease;
}

.app-switcher__item:hover,
.app-switcher__item:focus {
  background: #f1f5f9;
}

.app-switcher__item.is-active {
  background: #e0ecff;
  color: #1d4ed8;
  font-weight: 600;
  pointer-events: none;
  cursor: default;
}

.app-switcher__emoji {
  font-size: 16px;
  line-height: 1;
}

.app-switcher__divider {
  border: 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  margin: 6px 4px;
}

.app-switcher__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
