@media (max-width: 900px) {
  .app-shell-body {
    --sidebar-gap: 0;
    --sidebar-top: 0;
    --sidebar-rail: 0;
  }

  .app-shell__main-rail {
    margin-left: 0;
  }

  .app-shell__topbar {
    min-height: 58px;
    padding: 0 12px;
  }

  .app-shell__search {
    display: none;
  }

  .app-shell__logo-text {
    display: none;
  }

  .app-shell__user-name,
  .app-shell__user-chevron {
    display: none;
  }

  .app-shell__topbar-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 0 12px 10px;
    min-height: auto;
  }

  .app-shell__breadcrumbs-list {
    justify-content: flex-start;
  }

  .app-shell__strip-welcome {
    text-align: left;
  }

  .app-shell__body {
    flex-direction: column;
  }

  .app-shell__sidebar,
  .app-shell__sidebar--icon {
    position: relative;
    top: auto;
    left: auto;
    bottom: auto;
    width: auto;
    height: auto;
    max-height: none;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid var(--theme-sidebar-border);
    padding: 8px 0 10px;
    overflow: visible;
    z-index: 60;
  }

  /* overflow-x: auto recorta el flyout (overflow-y pasa a auto). */
  .app-shell__icon-nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    padding: 0 10px;
    overflow: visible;
  }

  .app-shell__nav-icon-link,
  .app-shell__nav-trigger {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
  }

  .app-shell__nav-group.is-open {
    z-index: 70;
  }

  .app-shell__flyout {
    left: 50%;
    right: auto;
    top: calc(100% + 6px);
    transform: translate(-50%, -4px);
    min-width: min(220px, calc(100vw - 24px));
  }

  /* Puente hover/tap: en desktop está a la izquierda; acá el menú cae abajo. */
  .app-shell__flyout::before {
    right: auto;
    left: 0;
    top: auto;
    bottom: 100%;
    width: 100%;
    height: 14px;
  }

  .app-shell__nav-group.is-open .app-shell__flyout {
    transform: translate(-50%, 0);
  }

  .app-shell__content {
    padding: 16px 14px 12px;
  }

  .app-shell__footer {
    padding: 10px 14px 14px;
  }
}
