/* 8.5.0 — desktop chat back in grid; phone chat only when open; filter split; hero. */

html body .bu-apps-nav a span {
  display: none !important;
}

@media (max-width: 899px) {
  /* Chat must NOT cover Utovari until Dispo is opened */
  html body.bu-board-page #bu-dispo:not(.bu-ai-portal),
  html body.bu-board-page #bu-dispo.hidden-m {
    display: none !important;
    pointer-events: none !important;
    position: absolute !important;
    inset: auto !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    z-index: 0 !important;
    transform: none !important;
    opacity: 0 !important;
  }
  html body.bu-ai-open #bu-dispo,
  html body #bu-dispo.bu-ai-portal,
  html body.bu-board-page.bu-ai-open #bu-dispo {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    z-index: 2147483000 !important;
    transform: none !important;
    pointer-events: auto !important;
    opacity: 1 !important;
    background: #070d14 !important;
    color: #e2e8f0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }

  /* One filter control on phone: icon in strip, not the desktop Filteri bar */
  html body.bu-board-page .bu-twin-bars,
  html body.bu-board-page .bu-filter-bar,
  html body.bu-board-page .bu-alert-bar,
  html body.bu-board-page .bu-mobile-only {
    display: none !important;
    pointer-events: none !important;
    height: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }
  html body.bu-board-page .bu-mfilter-strip {
    display: flex !important;
    position: relative !important;
    z-index: 40 !important;
  }
  html body.bu-board-page .bu-mfilter-go {
    display: inline-flex !important;
    position: relative !important;
    z-index: 41 !important;
  }
  html body.bu-board-page #bu-filter-fold.open,
  html body.bu-filters-sheet-open #bu-filter-fold {
    z-index: 11000 !important;
  }
  html body.bu-ai-open .bu-mfilter-strip,
  html body.bu-ai-open .bu-mfilter-go,
  html body.bu-ai-open #bu-filter-fold {
    display: none !important;
  }

  /* Hero: kill white wash, keep the truck photo readable */
  html body.bu-landing-page .bu-neon-hero-bloom.is-white {
    display: none !important;
  }
  html body.bu-landing-page .bu-hero-preview .bu-neon-hero-veil,
  html body.bu-landing-page .bu-neon-hero-veil {
    background:
      linear-gradient(180deg, rgba(7, 13, 20, .72) 0%, rgba(7, 13, 20, .42) 42%, rgba(7, 13, 20, .78) 100%) !important;
    mix-blend-mode: normal !important;
    opacity: 1 !important;
  }
  html body.bu-landing-page .bu-hero-preview.bu-neon-hero {
    min-height: 72dvh !important;
    background: #070d14 !important;
  }
  html body.bu-landing-page .bu-hero-preview .bu-neon-hero-media {
    min-height: 72dvh !important;
  }
  html body.bu-landing-page .bu-hero-preview .bu-neon-hero-bg {
    object-fit: cover !important;
    object-position: center 40% !important;
    filter: none !important;
    opacity: 1 !important;
  }
  html body.bu-landing-page .bu-hero-preview .bu-neon-phones-img {
    max-height: 240px !important;
    width: auto !important;
    max-width: 88% !important;
    margin: 0 auto !important;
    object-fit: contain !important;
    display: block !important;
  }
  html body.bu-landing-page .bu-apps-nav a span {
    display: none !important;
  }
  html body.bu-landing-page .bu-neon-head {
    overflow: hidden !important;
    max-height: calc(56px + env(safe-area-inset-top, 0px)) !important;
  }
}

@media (min-width: 900px) {
  /* Put Dispo AI back into the 3-column board */
  html body.bu-board-page #bu-dispo,
  html body.bu-board-page #bu-dispo.hidden-m,
  html body.bu-board-page #bu-dispo.bu-ai-portal,
  html body.bu-board-page .bu-board-ai,
  html body.bu-ai-open #bu-dispo {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    z-index: 2 !important;
    transform: none !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #0f172a !important;
    pointer-events: auto !important;
    opacity: 1 !important;
    overflow: hidden !important;
  }
  html body.bu-board-page #bu-dispo .bu-ai-close {
    display: none !important;
  }
  html body.bu-board-page #bu-dispo .bu-dispo-head,
  html body.bu-board-page #bu-dispo .bu-dispo-form {
    background: #fff !important;
    color: #0f172a !important;
    border-color: #e2e8f0 !important;
  }
  html body.bu-board-page #bu-dispo .bu-kicker,
  html body.bu-board-page #bu-dispo .bu-dispo-brand p {
    color: #0f172a !important;
  }
  html body.bu-board-page #bu-dispo .bu-bubble:not(.me) {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-color: #e2e8f0 !important;
  }
  html body.bu-board-page #bu-dispo .bu-dispo-log,
  html body.bu-board-page #bu-dispo .bu-chat-body {
    background: #fff !important;
  }
  html body.bu-board-page #bu-dispo .bu-dispo-form input {
    background: #fff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
  }
  html body.bu-board-page .bu-term-grid {
    display: grid !important;
    grid-template-columns: minmax(260px, 28%) minmax(340px, 48%) minmax(240px, 24%) !important;
    min-height: 0 !important;
  }

  /* Desktop: Filteri bar only — hide the phone funnel icon */
  html body .bu-mfilter-go,
  html body.bu-board-page .bu-mfilter-go {
    display: none !important;
  }
  html body.bu-board-page .bu-twin-bars {
    display: flex !important;
    height: auto !important;
    min-height: 44px !important;
    overflow: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  html body.bu-board-page .bu-mfilter-strip {
    display: block !important;
    padding: 0 4px !important;
    background: transparent !important;
    border: 0 !important;
  }

  /* Sidebar apps: icon + short name, no novel */
  html body .bu-apps-nav a span,
  html body .bu-board-sidebar-foot > .bu-board-sidebar-hint,
  html body .bu-neon-side-foot .bu-board-sidebar-hint {
    display: none !important;
  }
  html body .bu-apps-nav a {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 10px !important;
    min-height: 40px;
  }
  html body .bu-apps-nav a strong {
    font-size: 13px !important;
    font-weight: 800 !important;
    white-space: nowrap;
  }
}
