/* Общая шапка модулей biteAI */
.bite-shell-tagline {
  display: none !important;
}

/* На портале название модуля в шапке не показываем — шапка одинаковая на OSMINOG/AKULA */
html.bite-on-portal .bite-shell-app-title {
  display: none !important;
}

.bite-shell-module-select-wrap {
  display: none !important;
}

.bite-shell-module-menu {
  display: none;
  position: relative;
  flex-shrink: 0;
}

.bite-shell-module-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 0;
  padding: 5px 9px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #1d1d1f;
  font: 500 12px/1 -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  letter-spacing: -0.01em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.bite-shell-module-menu-btn:focus {
  outline: 2px solid rgba(10, 132, 255, 0.45);
  outline-offset: 1px;
}

.bite-shell-module-menu-chevron {
  flex-shrink: 0;
  opacity: 0.65;
  transition: transform 0.18s ease;
}

.bite-shell-module-menu-btn[aria-expanded="true"] .bite-shell-module-menu-chevron {
  transform: rotate(180deg);
}

.bite-shell-module-menu-popover {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 60;
  min-width: 168px;
  padding: 6px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.bite-shell-module-menu-popover.hidden {
  display: none !important;
}

.bite-shell-module-menu-popover a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: #1d1d1f;
  font: 500 14px/1.25 -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  text-decoration: none;
  white-space: nowrap;
}

.bite-shell-module-menu-popover a:hover {
  background: rgba(0, 0, 0, 0.05);
  text-decoration: none;
}

.bite-shell-module-menu-popover a[aria-current="page"] {
  font-weight: 600;
  background: rgba(10, 132, 255, 0.12);
  color: #0071e3;
}

html:not(.bite-on-portal) .bite-shell-module-menu-btn {
  background: rgba(58, 58, 60, 0.88);
  border-color: rgba(255, 255, 255, 0.14);
  color: #f5f5f7;
}

html:not(.bite-on-portal) .bite-shell-module-menu-popover {
  background: rgba(44, 44, 46, 0.98);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.42);
}

html:not(.bite-on-portal) .bite-shell-module-menu-popover a {
  color: #f5f5f7;
}

html:not(.bite-on-portal) .bite-shell-module-menu-popover a:hover {
  background: rgba(255, 255, 255, 0.08);
}

html:not(.bite-on-portal) .bite-shell-module-menu-popover a[aria-current="page"] {
  background: rgba(10, 132, 255, 0.22);
  color: #64b5ff;
}

.bite-shell-help-link {
  display: none;
  flex-shrink: 0;
  font: 400 12px/1 -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  letter-spacing: -0.01em;
  color: #1d1d1f;
  opacity: 0.88;
  text-decoration: none;
  white-space: nowrap;
}

.bite-shell-help-link:hover {
  opacity: 1;
  text-decoration: none;
}

html:not(.bite-on-portal) .bite-shell-help-link {
  color: var(--text, #cccccc);
}

@media (max-width: 1024px), (pointer: coarse) {
  .bite-shell-links--desktop {
    display: none !important;
  }

  .bite-shell-module-menu:not(.hidden) {
    display: block;
  }

  .bite-shell-inner {
    flex-wrap: nowrap;
    gap: 10px;
  }

  .bite-shell-brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .bite-shell-app-title {
    font-size: 18px;
  }

  .bite-shell-module-menu-btn {
    padding: 4px 9px;
    font-size: 11px;
  }

  .bite-shell-module-menu-chevron {
    width: 10px;
    height: 7px;
  }

  .bite-shell-help-link:not(.hidden) {
    display: inline;
    font-size: 11px;
    margin-left: 2px;
  }
}

@media (min-width: 1025px) {
  .bite-shell-module-menu {
    display: none !important;
  }
}
