/* Shared app-shell mobile bottom navigation */
.app-shell-bottom-nav {
  display: none;
}

:root {
  --app-shell-bottom-nav-item-min-height: 56px;
  --app-shell-bottom-nav-padding-y: 8px;
  --app-shell-bottom-nav-base-height: calc(var(--app-shell-bottom-nav-item-min-height) + (var(--app-shell-bottom-nav-padding-y) * 2));
}

@media (max-width: 767px) {
  html[data-shell='app'] .k12-bottom-nav,
  body[data-shell='app'] .k12-bottom-nav,
  .app-shell .k12-bottom-nav,
  html[data-shell='app'] .legacy-mobile-bottom-nav,
  body[data-shell='app'] .legacy-mobile-bottom-nav,
  .app-shell .legacy-mobile-bottom-nav {
    display: none !important;
  }

  html[data-shell='app'] .app-shell-bottom-nav,
  body[data-shell='app'] .app-shell-bottom-nav,
  .app-shell .app-shell-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding: var(--app-shell-bottom-nav-padding-y) 8px max(var(--app-shell-bottom-nav-padding-y), env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid #e6e8eb;
    box-shadow: 0 -2px 12px rgba(18, 21, 27, 0.08);
  }

  body.k12-bottom-nav-hidden .app-shell-bottom-nav,
  body.k12-sheet-near-bottom .app-shell-bottom-nav,
  body.k12-map-mode .app-shell-bottom-nav {
    opacity: 0;
    transform: translateY(120%);
    pointer-events: none;
  }

  html[data-shell='app'] .app-shell-bottom-nav__item,
  body[data-shell='app'] .app-shell-bottom-nav__item,
  .app-shell .app-shell-bottom-nav__item {
    flex: 1 1 20%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #6b7280;
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.1;
    min-height: var(--app-shell-bottom-nav-item-min-height);
  }

  html[data-shell='app'] .app-shell-bottom-nav__item.is-active,
  body[data-shell='app'] .app-shell-bottom-nav__item.is-active,
  .app-shell .app-shell-bottom-nav__item.is-active {
    color: #e23c64;
  }

  .app-shell-bottom-nav__icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .app-shell-bottom-nav__icon svg {
    width: 22px;
    height: 22px;
    stroke: currentcolor;
    stroke-width: 1.9;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .app-shell-bottom-nav__icon--logo {
    width: 28px;
    height: 28px;
  }

  .app-shell-bottom-nav__logo-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 6px;
  }

  .app-shell-bottom-nav__label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  html[data-shell='app'] .app-shell-bottom-nav__item--center,
  body[data-shell='app'] .app-shell-bottom-nav__item--center,
  .app-shell .app-shell-bottom-nav__item--center {
    padding-top: 0;
  }

  body.app-shell {
    padding-bottom: calc(var(--app-shell-bottom-nav-base-height) + env(safe-area-inset-bottom));
  }
}
