/* Berza 14.14 — single ownership layer for market and account workspaces. */
@layer bu-workspace {

/* Desktop market workspace: fit the chrome, four complete results and fleet rail
   inside the visible window. The board script owns --bu-card-h. */
@media (min-width: 900px) {
  html:has(body.bu-workspace.bu-board-page:not(.bu-nalog-page)) {
    height: 100%;
    overflow: hidden !important;
  }
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) {
    --bu-card-h: inherit !important;
    height: 100dvh !important;
    min-height: 540px !important;
    overflow: hidden !important;
  }
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) .bu-board-shell-wrap,
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) .bu-board-main-col,
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) .bu-board,
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) .bu-shell {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) .bu-board-main-col,
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) .bu-board,
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) .bu-shell {
    flex: 1 1 0 !important;
    height: auto !important;
  }

  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) .bu-board-bar {
    flex: 0 0 auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: 114px !important;
    padding: 5px 12px 7px !important;
    overflow: visible !important;
  }
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) .ut-search-tabs {
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 0 4px !important;
  }
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) .ut-target-filters,
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) .ut-truck-filter-layout {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 7px !important;
    height: 58px !important;
    min-height: 58px !important;
    max-height: 58px !important;
    overflow: visible !important;
  }
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) .ut-truck-filter-layout {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) .ut-filter-card,
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) .ut-truck-filter-card {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-direction: row !important;
    gap: 8px !important;
    width: 100% !important;
    height: 58px !important;
    min-height: 58px !important;
    max-height: 58px !important;
    padding: 7px 9px !important;
    overflow: hidden !important;
    pointer-events: auto !important;
    cursor: pointer !important;
  }
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) .ut-filter-card small,
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) .ut-truck-filter-card small {
    display: block !important;
    margin: 0 0 2px !important;
    font-size: 8px !important;
    line-height: 1.05 !important;
    white-space: nowrap !important;
  }
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) .ut-filter-card strong,
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) .ut-truck-filter-card strong {
    display: block !important;
    font-size: 12px !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) .ut-filter-card em,
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) .ut-truck-filter-card em {
    display: block !important;
    margin-top: 2px !important;
    font-size: 8px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) .ut-truck-hero {
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    padding: 3px 10px !important;
    margin: 0 0 5px !important;
    overflow: hidden !important;
  }
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) .ut-truck-hero-icon {
    width: 28px !important;
    height: 28px !important;
    font-size: 16px !important;
  }
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) .ut-truck-hero strong { font-size: 14px !important; }
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) .ut-truck-hero > div > small { display: none !important; }
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) .ut-driver-app-link { min-height: 28px !important; padding: 4px 9px !important; }

  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) .bu-board-body,
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) .bu-board-stage {
    flex: 1 1 0 !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 7px 10px !important;
    gap: 9px !important;
  }
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) .bu-board-map,
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) .bu-board-list,
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) .ut-right-rail {
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) .bu-board-list {
    display: flex !important;
    flex-direction: column !important;
  }
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) .bu-active-filters {
    flex: 0 0 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    padding: 3px 8px !important;
    overflow: hidden !important;
  }
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) .bu-list-head {
    flex: 0 0 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    padding: 4px 8px !important;
    overflow: hidden !important;
  }
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) .bu-board-list-scroll {
    flex: 1 1 0 !important;
    height: auto !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    container-type: normal !important;
    scrollbar-gutter: stable !important;
  }
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) #bu-feed#bu-feed {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    width: 100% !important;
    height: auto !important;
    min-height: 100% !important;
    padding: 3px 4px 6px !important;
    overflow: visible !important;
  }
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) #bu-feed#bu-feed > .bu-item.bu-row.compact,
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) #bu-feed#bu-feed > .bu-item {
    flex: 0 0 var(--bu-card-h, 78px) !important;
    display: block !important;
    height: var(--bu-card-h, 78px) !important;
    min-height: var(--bu-card-h, 78px) !important;
    max-height: var(--bu-card-h, 78px) !important;
    margin: 0 !important;
    overflow: hidden !important;
  }
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) #bu-feed#bu-feed .ut-load-card-modern,
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) #bu-feed#bu-feed .ut-truck-card-modern {
    display: grid !important;
    grid-template-rows: 17px minmax(0, 1fr) 14px !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
    border-radius: 12px !important;
  }
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) #bu-feed .ut-load-head,
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) #bu-feed .ut-load-foot {
    min-height: 0 !important;
    height: auto !important;
    padding: 1px 7px !important;
    font-size: 7px !important;
    line-height: 1.1 !important;
    overflow: hidden !important;
  }
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) #bu-feed .ut-load-body {
    min-height: 0 !important;
    padding: 3px 5px !important;
    grid-template-columns: minmax(0, 1.55fr) minmax(120px, .72fr) minmax(86px, .36fr) !important;
    gap: 5px !important;
    overflow: hidden !important;
  }
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) #bu-feed .ut-stop,
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) #bu-feed .ut-load-details > *,
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) #bu-feed .ut-load-price {
    min-height: 0 !important;
    padding: 3px 5px !important;
  }
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) #bu-feed .ut-stop-main strong { font-size: 12px !important; line-height: 1.05 !important; }
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) #bu-feed .ut-stop-country,
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) #bu-feed .ut-stop-date,
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) #bu-feed .ut-load-details small { font-size: 7px !important; line-height: 1.05 !important; }
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) #bu-feed .ut-load-price strong { font-size: 14px !important; line-height: 1 !important; }
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) #bu-feed .ut-load-price .bu-btn { min-height: 25px !important; padding: 4px 8px !important; font-size: 9px !important; }
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) #bu-feed .ut-truck-card-body {
    min-height: 0 !important;
    padding: 3px 5px !important;
    gap: 5px !important;
    overflow: hidden !important;
  }
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) .bu-fleet-strip {
    flex: 0 0 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    overflow: hidden !important;
  }
}

/* Filters are an independent dialog. They can never be clipped by the board. */
html body .bu-filter-scrim:not([hidden]) {
  display: block !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 29980 !important;
  background: rgba(2, 24, 39, .55) !important;
  backdrop-filter: blur(3px) !important;
}
html body #bu-filter-fold:not(.open) { display: none !important; }
html body.bu-workspace.bu-board-page #bu-filter-fold.open,
html body #bu-filter-fold.open {
  display: flex !important;
  flex-direction: column !important;
  position: fixed !important;
  z-index: 30000 !important;
  left: max(228px, calc(var(--bu-sidebar-w, 214px) + 14px)) !important;
  right: 14px !important;
  top: 112px !important;
  bottom: 14px !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 12px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  border: 1px solid rgba(105, 190, 221, .58) !important;
  border-radius: 20px !important;
  background: rgba(248, 253, 255, .98) !important;
  box-shadow: 0 28px 90px rgba(1, 25, 42, .35) !important;
}
html body.bu-workspace.bu-board-page #bu-filter-fold.open .bu-filter-sheet-head,
html body #bu-filter-fold.open .bu-filter-sheet-head {
  position: sticky !important;
  top: -12px !important;
  z-index: 4 !important;
  background: rgba(248, 253, 255, .97) !important;
}
html body.bu-workspace.bu-board-page #bu-filter-fold.open .bu-search-row,
html body #bu-filter-fold.open .bu-search-row {
  position: sticky !important;
  bottom: -12px !important;
  z-index: 4 !important;
  margin-top: 10px !important;
  padding: 10px 0 0 !important;
  background: rgba(248, 253, 255, .97) !important;
}

/* Narrow laptop: preserve the list and open the assistant as an overlay. */
@media (min-width: 900px) and (max-width: 1180px) {
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) .bu-board-body,
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) .bu-board-body.bu-board-stage.bu-term-grid {
    grid-template-columns: minmax(210px, .72fr) minmax(0, 1.65fr) !important;
    grid-template-areas: "map results" !important;
  }
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) .ut-right-rail { display: none !important; }
  html body.bu-workspace.bu-board-page.bu-ai-open:not(.bu-nalog-page) .ut-right-rail {
    display: flex !important;
    position: fixed !important;
    z-index: 22000 !important;
    top: 112px !important;
    right: 10px !important;
    bottom: 58px !important;
    width: min(380px, calc(100vw - 230px)) !important;
    height: auto !important;
  }
}

/* Phone and tablet: one readable column, real scroll and a full filter sheet. */
@media (max-width: 899px) {
  html:has(body.bu-workspace.bu-board-page:not(.bu-nalog-page)),
  html body.bu-workspace.bu-board-page { width: 100% !important; max-width: 100% !important; height: auto !important; max-height: none !important; overflow-x: hidden !important; overflow-y: auto !important; }
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) { height: auto !important; max-height: none !important; min-height: 100dvh !important; overflow-y: auto !important; }
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) .bu-board-shell-wrap,
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) .bu-board-main-col,
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) .bu-board,
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) .bu-shell { height: auto !important; max-height: none !important; min-height: 0 !important; overflow: visible !important; }
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) .bu-board-bar { height: auto !important; max-height: none !important; padding: 8px !important; overflow: visible !important; }
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) .ut-search-tabs { display: flex !important; height: 42px !important; overflow-x: auto !important; }
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) .ut-target-filters { display: none !important; }
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) .ut-truck-hero { min-height: 54px !important; height: auto !important; padding: 8px !important; }
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) .ut-driver-app-link { display: none !important; }
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) .bu-board-body,
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) .bu-board-stage { display: block !important; height: auto !important; max-height: none !important; min-height: 0 !important; padding: 8px !important; overflow: visible !important; }
  html body.bu-workspace.bu-board-page.bu-term-view-list:not(.bu-nalog-page) #bu-map-pane.bu-board-map { display: none !important; }
  html body.bu-workspace.bu-board-page.bu-term-view-map:not(.bu-nalog-page) .bu-board-list { display: none !important; }
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) .bu-board-list { display: flex !important; flex-direction: column !important; height: auto !important; min-height: 0 !important; overflow: visible !important; }
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) .bu-board-list-scroll { height: auto !important; min-height: 0 !important; max-height: none !important; overflow: visible !important; container-type: normal !important; }
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) #bu-feed#bu-feed { display: grid !important; gap: 9px !important; height: auto !important; min-height: 0 !important; padding: 6px 0 92px !important; overflow: visible !important; }
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) #bu-feed#bu-feed > .bu-item { height: auto !important; min-height: 142px !important; max-height: none !important; overflow: visible !important; }
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) #bu-feed#bu-feed .ut-load-card-modern,
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) #bu-feed#bu-feed .ut-truck-card-modern { height: auto !important; min-height: 142px !important; max-height: none !important; overflow: hidden !important; }
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) .bu-fleet-strip {
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    margin: 0 8px !important;
    padding: 3px 6px !important;
    overflow: hidden !important;
  }
  html body #bu-filter-fold.open {
    left: 7px !important;
    right: 7px !important;
    top: max(66px, calc(env(safe-area-inset-top) + 58px)) !important;
    bottom: max(7px, env(safe-area-inset-bottom)) !important;
    padding: 10px !important;
    border-radius: 18px !important;
  }
  html body #bu-filter-fold.open .bu-lanes,
  html body #bu-filter-fold.open .bu-lower-deck { display: grid !important; grid-template-columns: 1fr !important; }
}

/* Account pages must always scroll and must never acquire board clipping rules. */
html:has(body.bu-nalog-page),
html body.bu-nalog-page {
  min-height: 100% !important;
  height: auto !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}
html body.bu-nalog-page .bu-nalog-flow,
html body.bu-nalog-page .bu-dash-main,
html body.bu-nalog-page .bu-cc,
html body.bu-nalog-page .bu-nalog-win,
html body.bu-nalog-page .bu-account-panel {
  min-width: 0 !important;
  height: auto !important;
  max-height: none !important;
  overflow-x: hidden !important;
  overflow-y: visible !important;
}
@media (max-width: 640px) {
  html body.bu-nalog-page .bu-nalog-flow { padding: 8px 8px 84px !important; }
  html body.bu-nalog-page .bu-dash-main,
  html body.bu-nalog-page .bu-cc { width: 100% !important; max-width: 100% !important; padding: 0 !important; }
  html body.bu-nalog-page .bu-cc-hero,
  html body.bu-nalog-page .bu-nalog-win,
  html body.bu-nalog-page .bu-account-panel { width: 100% !important; padding: 15px !important; border-radius: 16px !important; }
  html body.bu-nalog-page .bu-cc-metrics,
  html body.bu-nalog-page .bu-cc-sys,
  html body.bu-nalog-page .bu-cc-ops,
  html body.bu-nalog-page .bu-form-grid { grid-template-columns: 1fr !important; }
  html body.bu-nalog-page .bu-settings-nav { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 6px !important; }
  html body.bu-nalog-page .bu-settings-nav-a { min-width: 0 !important; width: 100% !important; }
  html body.bu-nalog-page input,
  html body.bu-nalog-page select,
  html body.bu-nalog-page textarea,
  html body.bu-nalog-page button { max-width: 100% !important; }
}
}

/* 14.15 — filter, result card and fleet dialog correction layer. */
@layer bu-workspace {
@media (min-width:900px){
  html body #bu-filter-fold.open{
    bottom:auto!important;height:auto!important;max-height:calc(100dvh - 126px)!important;
    padding:10px!important;overflow-x:hidden!important;overflow-y:auto!important
  }
  html body #bu-filter-fold.open .bu-filter-sheet-head{
    position:static!important;flex:0 0 auto!important;min-height:38px!important;margin:0 0 8px!important;
    padding:7px 9px!important;border:1px solid #d6e8ee!important;border-radius:11px!important;background:#f7fcfe!important
  }
  html body #bu-filter-fold.open .bu-lanes{
    flex:0 0 auto!important;display:grid!important;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr) minmax(0,1.1fr)!important;
    gap:7px!important;min-height:0!important
  }
  html body #bu-filter-fold.open .bu-lower-deck{
    flex:0 0 auto!important;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:7px!important;min-height:0!important;margin-top:7px!important
  }
  html body #bu-filter-fold.open .bu-search-row{
    position:static!important;flex:0 0 auto!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;
    gap:8px!important;width:100%!important;min-height:50px!important;margin:7px 0 0!important;padding:7px 8px!important;
    border:1px solid #d2e7ed!important;border-radius:12px!important;background:linear-gradient(135deg,#f3fbfd,#eaf8f5)!important
  }
  html body #bu-filter-fold.open .bu-search-row .bu-btn{
    position:static!important;width:auto!important;min-width:150px!important;min-height:36px!important;margin:0!important;transform:none!important
  }
  html body #bu-filter-fold.open :is(.bu-lane,.bu-cargo-adv,.bu-filter-vehicle-panel,.bu-truck-adv){
    min-height:0!important;height:auto!important;padding:8px!important;border-radius:12px!important;overflow:visible!important
  }
  html body #bu-filter-fold.open :is(input,select,.bu-date-field){min-height:31px!important;height:31px!important}
  html body #bu-filter-fold.open .bu-lane-row{gap:7px!important;margin-top:6px!important}
  html body #bu-filter-fold.open .bu-filter-vehicle-chips{gap:6px!important}
  html body #bu-filter-fold.open .bu-filter-vehicle-chip span{min-height:28px!important;padding:5px 8px!important}
}

/* Dates are protected content. Country is secondary on dense desktop cards. */
@media (min-width:900px){
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) #bu-feed .ut-stop{
    display:grid!important;grid-template-rows:auto auto auto!important;align-content:center!important;row-gap:1px!important;
    min-height:0!important;height:100%!important;padding:3px 6px!important;overflow:hidden!important
  }
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) #bu-feed .ut-stop-country{display:none!important}
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) #bu-feed .ut-stop-date{
    display:flex!important;align-items:center!important;gap:3px!important;min-height:11px!important;margin:0!important;
    font-size:8px!important;line-height:1.15!important;white-space:nowrap!important;overflow:visible!important;color:#38586a!important
  }
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) #bu-feed .ut-stop-main{min-height:14px!important;line-height:1!important}
  html body.bu-workspace.bu-board-page:not(.bu-nalog-page) #bu-feed .ut-stop-kicker{line-height:1!important}
}

/* AI results: route first, useful attributes second, a real action target. */
html body.bu-workspace .bu-ai-results{display:grid!important;gap:7px!important;width:100%!important;margin:1px 0 4px!important}
html body.bu-workspace .bu-ai-results-head{display:flex!important;align-items:center!important;justify-content:space-between!important;padding:0 2px!important}
html body.bu-workspace .bu-ai-results-head span{color:#648493!important;font-size:8px!important;font-weight:900!important;letter-spacing:.13em!important}
html body.bu-workspace .bu-ai-results-head strong{padding:4px 7px!important;border-radius:999px!important;background:#dcf8ef!important;color:#08765b!important;font-size:9px!important}
html body.bu-workspace .bu-ai-results .bu-ai-card{
  display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:9px!important;
  width:100%!important;min-height:68px!important;padding:9px 10px!important;border:1px solid #b9dfe9!important;border-radius:15px!important;
  background:radial-gradient(circle at 100% 0,rgba(37,208,191,.15),transparent 38%),linear-gradient(145deg,#fff,#eef9fc)!important;
  color:#0a3349!important;text-align:left!important;box-shadow:0 8px 20px rgba(5,54,77,.09)!important
}
html body.bu-workspace .bu-ai-results .bu-ai-card:hover{border-color:#1ebbc7!important;transform:translateY(-1px)!important;box-shadow:0 12px 25px rgba(5,84,108,.14)!important}
html body.bu-workspace .bu-v12-ai-card-txt{display:grid!important;gap:7px!important;min-width:0!important}
html body.bu-workspace .bu-v12-ai-card-txt>strong{display:flex!important;align-items:center!important;gap:6px!important;min-width:0!important;color:#07364f!important;font-size:12px!important;line-height:1.15!important}
html body.bu-workspace .bu-v12-ai-card-txt>strong span{min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:#07364f!important;font-size:12px!important;font-weight:900!important}
html body.bu-workspace .bu-v12-ai-card-txt>strong i{color:#0db39e!important;font-style:normal!important;font-weight:900!important}
html body.bu-workspace .bu-ai-card-meta{display:flex!important;flex-wrap:wrap!important;gap:5px!important}
html body.bu-workspace .bu-ai-card-meta b{padding:4px 6px!important;border:1px solid #d1e6ec!important;border-radius:7px!important;background:#fff!important;color:#55717f!important;font-size:8px!important;line-height:1!important}
html body.bu-workspace .bu-ai-card-meta b.is-price{border-color:#a9e9d5!important;background:#e8fbf4!important;color:#07845f!important}
html body.bu-workspace .bu-v12-ai-go{display:inline-flex!important;align-items:center!important;gap:5px!important;min-height:34px!important;padding:0 9px!important;border-radius:10px!important;background:linear-gradient(135deg,#14b7ae,#2379e8)!important;color:#fff!important;font-size:9px!important;font-weight:900!important;white-space:nowrap!important;box-shadow:0 7px 15px rgba(25,119,190,.2)!important}

/* One fleet modal, independent from either board grid. */
html body .bu-fleet-modal{position:fixed!important;inset:0!important;z-index:32000!important;display:grid!important;place-items:center!important;padding:18px!important;overflow:hidden!important}
html body .bu-fleet-modal[hidden]{display:none!important}
html body .bu-fleet-modal-backdrop{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;border:0!important;background:rgba(2,25,42,.67)!important;backdrop-filter:blur(7px)!important}
html body .bu-fleet-modal-sheet{
  position:relative!important;z-index:1!important;display:grid!important;grid-template-rows:auto auto minmax(0,1fr) auto!important;
  width:min(1240px,calc(100vw - 36px))!important;height:min(790px,calc(100dvh - 36px))!important;max-height:calc(100dvh - 36px)!important;
  overflow:hidden!important;border:1px solid rgba(137,213,229,.78)!important;border-radius:23px!important;
  background:#f7fcfd!important;box-shadow:0 34px 100px rgba(0,23,39,.42),inset 0 1px #fff!important
}
html body .bu-fleet-modal-head{
  display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;align-items:center!important;gap:9px!important;
  min-height:86px!important;padding:14px 17px!important;border:0!important;
  background:radial-gradient(circle at 85% 0,rgba(71,118,255,.42),transparent 38%),linear-gradient(125deg,#052d46,#07687a 58%,#0b9b8f)!important;color:#fff!important
}
html body .bu-fleet-modal-kicker{margin:0 0 4px!important;color:#7cf6df!important;font-size:9px!important;font-weight:900!important;letter-spacing:.16em!important}
html body .bu-fleet-modal-head h2{margin:0!important;color:#fff!important;font-size:clamp(19px,2vw,27px)!important;line-height:1.05!important;letter-spacing:-.035em!important}
html body .bu-fleet-modal-sub{margin:5px 0 0!important;color:#cfeef3!important;font-size:11px!important}
html body :is(.bu-fleet-expand,.bu-fleet-modal-x){display:grid!important;place-items:center!important;width:39px!important;height:39px!important;padding:0!important;border:1px solid rgba(255,255,255,.25)!important;border-radius:11px!important;background:rgba(3,31,50,.27)!important;color:#fff!important;font-size:19px!important;cursor:pointer!important}
html body .bu-fleet-modal-toolbar{display:grid!important;grid-template-columns:minmax(230px,1fr) auto auto!important;align-items:center!important;gap:9px!important;padding:9px 13px!important;border-bottom:1px solid #d4e7ed!important;background:#fff!important}
html body .bu-fleet-modal-search input{width:100%!important;height:42px!important;padding:0 13px!important;border:1px solid #bfd9e3!important;border-radius:11px!important;background:#f9fcfd!important}
html body .bu-fleet-view-tabs{display:flex!important;gap:3px!important;padding:3px!important;border:1px solid #c8dfe7!important;border-radius:11px!important;background:#edf6f8!important}
html body .bu-fleet-view-tabs button{min-height:34px!important;padding:0 12px!important;border:0!important;border-radius:8px!important;background:transparent!important;color:#54717f!important;font-size:10px!important;font-weight:850!important}
html body .bu-fleet-view-tabs button.is-on{background:#fff!important;color:#087a71!important;box-shadow:0 4px 12px rgba(4,62,82,.1)!important}
html body .bu-fleet-modal-add{display:inline-flex!important;align-items:center!important;justify-content:center!important;height:42px!important;padding:0 17px!important;border-radius:11px!important;background:linear-gradient(135deg,#16b696,#245be7)!important;color:#fff!important;text-decoration:none!important}
html body .bu-fleet-modal-body{display:grid!important;grid-template-columns:minmax(330px,.78fr) minmax(0,1.22fr)!important;min-height:0!important;overflow:hidden!important}
html body .bu-fleet-modal-list{display:grid!important;align-content:start!important;gap:7px!important;min-height:0!important;padding:10px!important;overflow:auto!important;border-right:1px solid #d4e5ea!important;background:linear-gradient(180deg,#f8fcfd,#eef7f9)!important}
html body .bu-fleet-card{min-height:59px!important;padding:9px 10px!important;border:1px solid #cde1e7!important;border-radius:13px!important;background:#fff!important;box-shadow:0 5px 14px rgba(6,55,74,.05)!important}
html body .bu-fleet-card-main{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;align-items:center!important;gap:9px!important}
html body .bu-fleet-card-dot{width:10px!important;height:10px!important;border-radius:50%!important;background:#bac8ce!important;box-shadow:0 0 0 5px #eef4f6!important}
html body .bu-fleet-card-dot.is-free{background:#17c793!important;box-shadow:0 0 0 5px #e2faf2!important}
html body .bu-fleet-card-txt{min-width:0!important}
html body .bu-fleet-card-plate{font-size:13px!important;font-weight:900!important;color:#0a3a52!important}
html body .bu-fleet-card-meta{display:grid!important;gap:2px!important;margin-top:2px!important}
html body .bu-fleet-card-meta strong{font-size:10px!important;color:#3e6575!important}
html body .bu-fleet-card-meta span{font-size:9px!important;color:#8197a0!important}
html body .bu-fleet-card-st{padding:5px 7px!important;border-radius:999px!important;font-size:8px!important;font-weight:900!important;text-transform:uppercase!important}
html body .bu-fleet-mini-map-wrap{position:relative!important;min-width:0!important;min-height:0!important;padding:10px!important;background:#e8f4f5!important}
html body .bu-fleet-mini-map{width:100%!important;height:100%!important;min-height:320px!important;overflow:hidden!important;border:1px solid #bcd7df!important;border-radius:16px!important;background:#dcecef!important}
html body .bu-fleet-map-filters{position:absolute!important;z-index:600!important;top:20px!important;left:20px!important;display:flex!important;gap:4px!important;padding:4px!important;border:1px solid rgba(175,210,220,.82)!important;border-radius:12px!important;background:rgba(255,255,255,.92)!important;box-shadow:0 9px 24px rgba(4,42,60,.13)!important;backdrop-filter:blur(10px)!important}
html body .bu-fleet-map-filters button{min-height:30px!important;padding:0 9px!important;border:0!important;border-radius:8px!important;background:transparent!important;color:#53717f!important;font-size:9px!important;font-weight:850!important}
html body .bu-fleet-map-filters button.is-on{background:#10aa98!important;color:#fff!important}
html body .bu-fleet-mini-map-wrap>.bu-hint{position:absolute!important;right:20px!important;bottom:20px!important;left:20px!important;z-index:600!important;margin:0!important;padding:8px 10px!important;border:1px solid rgba(177,211,220,.9)!important;border-radius:10px!important;background:rgba(255,255,255,.93)!important;color:#4d6a78!important;font-size:9px!important;box-shadow:0 8px 20px rgba(5,46,66,.12)!important}
html body .bu-fleet-modal-foot{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;min-height:48px!important;padding:8px 14px!important;border-top:1px solid #d4e6eb!important;background:#fff!important}
html body .bu-fleet-radius{display:flex!important;align-items:center!important;gap:8px!important;color:#244e61!important;font-size:10px!important;font-weight:850!important}
html body .bu-fleet-radius input{width:140px!important}
html body .bu-fleet-foot-togs{display:flex!important;align-items:center!important;gap:12px!important}
html body .bu-fleet-foot-togs a{color:#087d68!important;font-weight:900!important;text-decoration:none!important}
html body .bu-fleet-modal-body[data-view="list"]{grid-template-columns:1fr!important}
html body .bu-fleet-modal-body[data-view="list"] .bu-fleet-mini-map-wrap{display:none!important}
html body .bu-fleet-modal-body[data-view="map"]{grid-template-columns:1fr!important}
html body .bu-fleet-modal-body[data-view="map"] .bu-fleet-modal-list{display:none!important}

@media(max-width:899px){
  html body .bu-fleet-modal{padding:0!important;place-items:stretch!important}
  html body .bu-fleet-modal-sheet{width:100%!important;height:100dvh!important;max-height:100dvh!important;border:0!important;border-radius:0!important}
  html body .bu-fleet-modal-head{min-height:76px!important;padding:11px 12px!important}
  html body .bu-fleet-modal-head h2{font-size:18px!important}
  html body .bu-fleet-modal-sub{font-size:9px!important}
  html body .bu-fleet-modal-toolbar{grid-template-columns:minmax(0,1fr) auto!important;padding:8px!important}
  html body .bu-fleet-view-tabs{grid-column:1/-1!important;display:grid!important;grid-template-columns:repeat(3,1fr)!important;order:3!important}
  html body .bu-fleet-modal-add{padding:0 11px!important}
  html body .bu-fleet-modal-body{grid-template-columns:1fr!important;grid-template-rows:minmax(205px,1fr) minmax(210px,.85fr)!important}
  html body .bu-fleet-modal-list{padding:8px!important;border-right:0!important;border-bottom:1px solid #d4e5ea!important}
  html body .bu-fleet-mini-map-wrap{padding:7px!important}
  html body .bu-fleet-mini-map{min-height:210px!important}
  html body .bu-fleet-modal-foot{display:grid!important;grid-template-columns:1fr!important;gap:5px!important;padding:7px 9px calc(7px + env(safe-area-inset-bottom,0px))!important}
  html body .bu-fleet-radius{justify-content:space-between!important}
  html body .bu-fleet-foot-togs{justify-content:space-between!important}
}
}
@layer bu-workspace{
@media (min-width:900px){
  html body.bu-workspace.bu-board-page #bu-filter-fold.open #bu-search-row{
    position:static!important;inset:auto!important;right:auto!important;bottom:auto!important;left:auto!important;
    z-index:4!important;width:100%!important;max-width:none!important;margin:7px 0 0!important;
    padding:7px 8px!important;border-radius:12px!important;box-shadow:none!important;transform:none!important
  }
}
}
@layer bu-workspace{
@media (min-width:900px){
  html body.bu-workspace.bu-board-truck #bu-filter-fold.open .bu-lanes{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
  html body.bu-workspace.bu-board-truck #bu-filter-fold.open .bu-lower-deck{grid-template-columns:1fr!important}
  html body.bu-workspace.bu-board-truck #bu-filter-fold.open .bu-advanced-wide{grid-column:1/-1!important;width:100%!important}
  html body.bu-workspace.bu-board-truck #bu-filter-fold.open .bu-truck-adv{width:100%!important}
  html body.bu-workspace.bu-board-truck #bu-filter-fold.open .bu-veh-chips{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:7px!important}
}
}
@layer bu-workspace{
@media (min-width:900px){
  html body.bu-workspace.bu-board-truck #bu-filter-fold.open .bu-lower-deck{max-height:235px!important;overflow:hidden!important}
  html body.bu-workspace.bu-board-truck #bu-filter-fold.open :is(.bu-advanced-wide,.bu-truck-adv,.bu-truck-adv-body){min-height:0!important;height:auto!important;max-height:225px!important;margin:0!important;overflow:hidden!important}
  html body.bu-workspace.bu-board-truck #bu-filter-fold.open .bu-truck-adv-body{padding:9px 12px!important}
  html body.bu-workspace.bu-board-truck #bu-filter-fold.open .bu-veh-chip span{min-height:31px!important;padding:6px 8px!important}
  html body.bu-workspace.bu-board-truck #bu-filter-fold.open .bu-hint{margin:7px 0 0!important}
}
}
