.app-switcher-nav {
  position: relative;
  margin-left: 16px;

  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 180px;
  padding: 2px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: max-width 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  z-index: 3;
}

.app-switcher-nav:hover,
.app-switcher-nav:focus-within {
  max-width: 500px;
  background: rgba(19, 96, 197, 0.16);
  border-color: rgba(100, 181, 246, 0.42);
}

.app-switcher-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  min-width: 32px;
  padding: 0 10px;
  border-radius: 6px;
  background-color: transparent;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
  gap: 4px;
  transition: background-color 0.16s ease, transform 0.16s ease, min-width 0.2s ease, gap 0.2s ease;
}

.app-switcher-nav a:hover,
.app-switcher-nav a:focus-visible {
  background: #1360c5;
  transform: translateY(-1px);
  outline: none;
}

.app-switcher-nav img {
  width: 14px;
  height: 14px;
  filter: brightness(0) invert(1);
  flex: 0 0 auto;
}

.app-switcher-nav span {
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  margin-left: 0;
  transition: max-width 0.2s ease, opacity 0.16s ease, margin-left 0.2s ease;
}

.app-switcher-nav:hover span,
.app-switcher-nav:focus-within span {
  max-width: 72px;
  opacity: 1;
  margin-left: 6px;
}

.elsie-toolbar-with-nav .toolbar-current-path {
  left: 290px;
  transition: opacity 0.15s ease;
}

.app-switcher-nav:hover + .toolbar-current-path,
.app-switcher-nav:focus-within + .toolbar-current-path {
  opacity: 0;
  pointer-events: none;
}

.app-switcher-nav .current-app-active {
  background: rgba(100, 181, 246, 0.25) !important;
  box-shadow: inset 0 0 0 1px rgba(100, 181, 246, 0.5) !important;
}

/* Landing-page-only guardrails. The desktop card treatment stays intact while
   small touch screens receive predictable hit areas and wrapping text. */
.home-page .base .inside-base p {
  overflow-wrap: anywhere;
}

.home-page .outline-cards .project {
  display: block;
  touch-action: manipulation;
}

.home-page .outline-cards .project:focus-visible {
  outline: 3px solid #9ed0ff;
  outline-offset: 8px;
  border-radius: 50%;
}

@media only screen and (max-width: 600px) {
  .home-page .base .inside-base {
    width: min(90%, 620px);
  }

  .home-page .cooltxt > .magic {
    max-width: 100%;
  }

  .home-page .cooltxt > .magic > .magic-text {
    white-space: normal;
  }
}

@media only screen and (max-width: 360px) {
  .home-page .base .inside-base {
    width: calc(100% - 18px);
  }

  .home-page .outline-cards {
    gap: 14px;
  }
}
