/* R25.7-45 — single fixed mobile dock (merge role icons + global nav) */
@media (max-width: 1023px) {
  nav.f24-global-mobile-nav,
  .f24-global-mobile-nav {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 120 !important;
    display: flex !important;
    align-items: stretch !important;
    justify-content: space-around !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    min-height: calc(3.75rem + env(safe-area-inset-bottom, 0px)) !important;
    padding: 0.2rem 0.15rem calc(0.25rem + env(safe-area-inset-bottom, 0px)) !important;
    margin: 0 !important;
    background: rgba(255, 255, 255, 0.98) !important;
    border-top: 1px solid #e2e8f0 !important;
    box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.1) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  nav.f24-global-mobile-nav a,
  .f24-global-mobile-nav a,
  nav.f24-global-mobile-nav button,
  .f24-global-mobile-nav button {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.1rem !important;
    padding: 0.25rem 0.1rem !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #475569 !important;
    text-decoration: none !important;
    font-size: 0.62rem !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    text-align: center !important;
    cursor: pointer !important;
  }
  .f24-global-mobile-nav .f45-ico {
    font-size: 1.15rem !important;
    line-height: 1 !important;
  }
  .f24-global-mobile-nav a.is-active,
  .f24-global-mobile-nav button.is-active {
    color: #4f46e5 !important;
  }
  /* space for fixed dock */
  body main.flex-1,
  #root main.flex-1 {
    padding-bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px)) !important;
  }
  /* hide duplicate in-flow horizontal role strip above footer when dock owns it */
  footer + nav.f24-global-mobile-nav { /* keep */ }
}
@media (min-width: 1024px) {
  nav.f24-global-mobile-nav,
  .f24-global-mobile-nav {
    display: none !important;
  }
  #f45-more-sheet { display: none !important; }
}
/* more sheet */
#f45-more-sheet {
  position: fixed;
  inset: 0;
  z-index: 130;
  background: rgba(15, 23, 42, 0.45);
  display: none;
  align-items: flex-end;
  justify-content: center;
}
#f45-more-sheet.open { display: flex !important; }
#f45-more-sheet .f45-panel {
  width: 100%;
  max-width: 28rem;
  background: #fff;
  border-radius: 1.25rem 1.25rem 0 0;
  padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 30px rgba(0,0,0,.15);
}
#f45-more-sheet .f45-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}
#f45-more-sheet a, #f45-more-sheet button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem 0.35rem;
  border-radius: 0.85rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
#f45-more-sheet .f45-close {
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.7rem;
  border-radius: 0.75rem;
  border: 0;
  background: #4f46e5;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
