/* UI77: one unclipped, icon-only mobile dock for every dashboard role. */
@media (max-width: 760px) {
  html body.dash-body.has-mobile-nav {
    padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)) !important;
  }

  html body.dash-body.has-mobile-nav > #mobile-nav.mobile-nav {
    position: fixed !important;
    z-index: 1200 !important;
    inset: auto 0 0 0 !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 5px 12px calc(5px + env(safe-area-inset-bottom, 0px)) !important;
    overflow: visible !important;
    background: rgba(255, 255, 255, .97) !important;
    border: 0 !important;
    border-top: 1px solid rgba(148, 163, 184, .22) !important;
    border-radius: 16px 16px 0 0 !important;
    box-shadow: 0 -8px 26px rgba(15, 23, 42, .11) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
  }

  html body.dash-body.has-mobile-nav > #mobile-nav.mobile-nav::after {
    display: none !important;
  }

  html body.dash-body.has-mobile-nav > #mobile-nav .mobile-nav-inner {
    display: grid !important;
    grid-auto-flow: column !important;
    grid-auto-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    height: 56px !important;
    min-height: 56px !important;
    align-items: center !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  html body.dash-body.has-mobile-nav > #mobile-nav .mob-nav-btn {
    position: relative !important;
    display: grid !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 54px !important;
    place-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    color: #64748b !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  html body.has-mobile-nav > #mobile-nav .mob-nav-btn > span:last-child {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  html body.dash-body.has-mobile-nav > #mobile-nav .mob-nav-ic-wrap,
  html body.has-mobile-nav > #mobile-nav .mob-nav-btn.active .mob-nav-ic-wrap {
    position: relative !important;
    display: grid !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    place-items: center !important;
    margin: 0 auto !important;
    padding: 0 !important;
    overflow: visible !important;
    color: inherit !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  html body.has-mobile-nav > #mobile-nav .mob-nav-btn .ic {
    display: grid !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    place-items: center !important;
    overflow: visible !important;
    color: inherit !important;
    font-size: 21px !important;
    line-height: 1 !important;
    background: transparent !important;
    box-shadow: none !important;
    filter: none !important;
    transform: none !important;
  }

  html body.has-mobile-nav > #mobile-nav .mob-nav-btn .ic i {
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    overflow: visible !important;
    color: inherit !important;
    font-size: 21px !important;
    line-height: 1 !important;
    background: transparent !important;
    box-shadow: none !important;
    filter: none !important;
    transform: none !important;
  }

  html body.has-mobile-nav > #mobile-nav .mob-nav-btn .ic i::before {
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    overflow: visible !important;
    color: inherit !important;
    font-size: inherit !important;
    line-height: 1 !important;
    background: transparent !important;
    box-shadow: none !important;
    filter: none !important;
    transform: none !important;
  }

  html body.has-mobile-nav > #mobile-nav .mob-nav-btn::after {
    content: "" !important;
    position: absolute !important;
    right: 50% !important;
    bottom: 0 !important;
    width: 0 !important;
    height: 3px !important;
    border-radius: 999px !important;
    background: #168cf2 !important;
    box-shadow: 0 2px 7px rgba(22, 140, 242, .28) !important;
    transform: translateX(50%) !important;
    transition: width .18s ease !important;
  }

  html body.has-mobile-nav > #mobile-nav .mob-nav-btn.active {
    color: #168cf2 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  html body.has-mobile-nav > #mobile-nav .mob-nav-btn.active::after {
    width: 20px !important;
  }

  html body.has-mobile-nav > #mobile-nav .mob-badge {
    position: absolute !important;
    z-index: 2 !important;
    top: 1px !important;
    right: -5px !important;
    min-width: 16px !important;
    height: 16px !important;
    padding: 0 4px !important;
    font-size: 9px !important;
    line-height: 16px !important;
  }

  html body.dash-body.has-mobile-nav .notif-fab {
    bottom: calc(78px + env(safe-area-inset-bottom, 0px)) !important;
  }

  [data-theme="dark"] body.dash-body.has-mobile-nav > #mobile-nav.mobile-nav {
    background: rgba(17, 24, 39, .96) !important;
    border-top-color: rgba(255, 255, 255, .1) !important;
  }

  [data-theme="dark"] body.has-mobile-nav > #mobile-nav .mob-nav-btn {
    color: #94a3b8 !important;
  }

  [data-theme="dark"] body.has-mobile-nav > #mobile-nav .mob-nav-btn.active {
    color: #38bdf8 !important;
  }

  /* Keep the owner's "More" menu attached to the bottom dock. */
  html body.owner-panel.has-mobile-nav > #mobile-more-sheet .mobile-more-card,
  html body.dash-body.has-mobile-nav > #mobile-more-sheet .mobile-more-card {
    position: fixed !important;
    top: auto !important;
    right: 10px !important;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
    left: 10px !important;
    width: auto !important;
    max-height: min(62dvh, 430px) !important;
    margin: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    border-radius: 18px 18px 14px 14px !important;
    transform: none !important;
    transform-origin: bottom center !important;
    animation: drawer-up .2s var(--ease) !important;
  }

  html body.has-mobile-nav > #mobile-more-sheet .mobile-more-backdrop {
    background: rgba(15, 23, 42, .28) !important;
    backdrop-filter: blur(2px) !important;
    -webkit-backdrop-filter: blur(2px) !important;
  }
}

/* UI99: compact native-safe dock without a second white strip below it. */
@media (max-width: 760px) {
  html body.dash-body.has-mobile-nav {
    padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px)) !important;
  }

  html body.dash-body.has-mobile-nav > #mobile-nav.mobile-nav {
    padding: 0 10px env(safe-area-inset-bottom, 0px) !important;
    border-radius: 14px 14px 0 0 !important;
  }

  html body.dash-body.has-mobile-nav > #mobile-nav.mobile-nav::after {
    content: none !important;
    display: none !important;
    height: 0 !important;
  }

  html body.dash-body.has-mobile-nav > #mobile-nav .mobile-nav-inner {
    height: 48px !important;
    min-height: 48px !important;
  }

  html body.dash-body.has-mobile-nav > #mobile-nav .mob-nav-btn {
    min-height: 46px !important;
  }

  html body.dash-body.has-mobile-nav > #mobile-nav .mob-nav-ic-wrap,
  html body.has-mobile-nav > #mobile-nav .mob-nav-btn.active .mob-nav-ic-wrap {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
  }

  html body.dash-body.has-mobile-nav .notif-fab {
    bottom: calc(56px + env(safe-area-inset-bottom, 0px)) !important;
  }
}
