.topbar .atlas-brand-full {
  color: inherit;
  font: inherit;
}

.topbar .atlas-brand-short,
.topbar .atlas-shell-label-short {
  display: none;
}

.topbar .mobile-topbar-actions .mobile-shell-btn {
  display: inline-flex !important;
  justify-content: center;
  gap: 7px;
  width: auto;
  min-width: 44px;
  min-height: 44px;
  padding-inline: 11px;
  white-space: nowrap;
}

.topbar .atlas-shell-icon {
  color: #d9b7f2;
  font-size: .95rem;
  line-height: 1;
}

.topbar .atlas-shell-label,
.topbar .atlas-shell-label-short {
  color: inherit;
  font-weight: 650;
  font-size: .78rem;
  line-height: 1;
}

.topbar #topbarFinderBtn {
  min-width: 44px;
  min-height: 44px;
  font-size: 1.35rem;
  line-height: 1;
}

.topbar .mobile-shell-btn[aria-expanded="true"] {
  color: #f4e5fc;
  border-color: #d09cf5;
  background: #2b153c;
}

.topbar button:focus-visible {
  outline: 2px solid #d09cf5;
  outline-offset: 2px;
}

.atlas-navigation .department-tabs button {
  min-height: 44px;
}

@media (max-width: 620px) {
  .topbar {
    column-gap: 5px;
  }

  .topbar > .atlas-brand {
    display: block !important;
    flex: 1 1 0;
    min-width: 0;
  }

  .topbar .atlas-brand-full,
  .topbar .atlas-shell-label-wide,
  .topbar .atlas-shell-icon {
    display: none;
  }

  .topbar .atlas-brand-short,
  .topbar .atlas-shell-label-short {
    display: inline;
    color: inherit;
  }

  .topbar .mobile-topbar-actions .mobile-shell-btn {
    padding-inline: 8px;
  }

  .topbar #topbarCodeLibraryBtn {
    display: none;
  }
}

@media (max-height: 440px) {
  .atlas-navigation,
  .floating-tools {
    bottom: max(8px, env(safe-area-inset-bottom)) !important;
  }
}

.quick-library-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.quick-library-actions #quickFinderBtn { grid-column: 1 / -1; }
.quick-library-actions .btn,
.quick-map-filter-status .btn { min-height: 44px; }

.quick-map-search {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.quick-map-filter-status {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
  justify-content: space-between;
  color: #d0c4d8;
  font-size: .8rem;
}

.quick-map-filter-status:has(.btn[hidden]) { display: none; }
.quick-map-filter-status .btn[hidden],
#quickTaxonomyCount[hidden] { display: none; }

#atlasNavigation :is(.atlas-primary-tab, .department-tab),
#toolPanel .tool-collapse > summary { min-height: 44px; }

#atlasNavigation :is(button, summary):focus-visible,
#toolPanel :is(button, summary, input, select):focus-visible {
  outline: 2px solid #d49aff;
  outline-offset: 2px;
}

@media (pointer: coarse) {
  .quick-map-search input { font-size: 16px; }
  #toolPanel .taxonomy-chip { min-height: 44px; }
}
