/* 7.9.73 — logos, header contrast, pinned chat, mobile cards, filters sheet, auth, app banner */

/* —— Edition picker: logos, dark-on-light, no white-on-white —— */
html body .bu-ed-btn,
html body .bu-neon-side-foot .bu-ed-btn,
html body .bu-pub-foot .bu-ed-btn {
  display: flex !important;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 6px 10px !important;
  border: 1px solid #c5d5dc !important;
  border-radius: 12px;
  background: #fff !important;
  color: #0e3340 !important;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}
html body .bu-ed-btn .bu-ed-lab,
html body .bu-neon-side-foot .bu-ed-btn .bu-ed-lab,
html body .bu-ed-btn span {
  color: #0e3340 !important;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
}
html body .bu-ed-btn .bu-ed-logo,
html body .bu-ed-card .bu-ed-card-logo,
html body .bu-ed-card .bu-ed-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex: 0 0 auto;
  background: #fff;
  border-radius: 8px;
}
html body .bu-ed-card {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 10px 12px !important;
  background: #fff !important;
  color: #0e3340 !important;
  border: 1px solid #d5e4ea !important;
  border-radius: 14px;
  text-decoration: none !important;
}
html body .bu-ed-card.is-on {
  border-color: #0b6e86 !important;
  box-shadow: 0 0 0 2px rgba(11, 110, 134, 0.18);
}
html body .bu-ed-card .bu-ed-copy strong,
html body .bu-ed-card .bu-ed-copy span,
html body .bu-neon-side-foot .bu-ed-card .bu-ed-copy strong,
html body .bu-neon-side-foot .bu-ed-card .bu-ed-copy span {
  color: #0e3340 !important;
  display: block;
}
html body .bu-ed-card .bu-ed-copy span {
  color: #3d6572 !important;
  font-size: 12px;
  font-weight: 650;
}
html body .bu-ed-pop,
html body .bu-ed-pop-float {
  background: #fff !important;
  color: #123a48 !important;
}
html body .bu-edition-markets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
html body .bu-edition-markets a,
html body .bu-edition-markets button {
  width: 36px;
  height: 28px;
  padding: 0 !important;
  border-radius: 8px;
  border: 1px solid #d5e4ea;
  background: #fff !important;
  display: grid;
  place-items: center;
}
html body .bu-edition-markets .bu-flag-disc,
html body .bu-edition-markets img {
  width: 22px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
}

/* —— Board header logo + contrast —— */
html body .bu-board-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #0e3340 !important;
  text-decoration: none;
}
html body .bu-board-brand-img,
html body .bu-board-brand-img-wrap img,
html body .bu-board-header .bu-logo-img {
  height: 32px !important;
  width: auto !important;
  max-width: 120px;
  object-fit: contain;
}
html body .bu-board-brand-lab {
  color: inherit !important;
  font-weight: 800;
  white-space: nowrap;
}
html body .bu-board-header {
  background: #fff !important;
  color: #0e3340 !important;
  border-bottom: 1px solid #d5e4ea;
  z-index: 40;
}
html body .bu-board-tab,
html body .bu-board-header-right,
html body .bu-board-header a,
html body .bu-board-header button:not(.bu-btn) {
  color: #0e3340 !important;
}
html body .bu-board-presence { display: none !important; }

html body .bu-mshell-brand-mini {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}
html body .bu-mshell-brand-mini .bu-mshell-brand-img,
html body .bu-mshell-brand-img {
  height: 26px !important;
  width: auto !important;
  max-width: 92px;
  object-fit: contain;
}

/* —— Dispo AI + chat FAB stay on the floor —— */
html body.bu-board-page #bu-dispo,
html body.bu-board-page .bu-board-ai {
  display: flex !important;
  flex-direction: column;
  min-height: 0;
  position: relative;
}
html body.bu-board-page #bu-dispo .bu-dispo-log {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding-bottom: 8px;
}
html body.bu-board-page #bu-dispo .bu-dispo-form,
html body.bu-board-page .bu-board-ai .bu-dispo-form,
html body.bu-filters-open #bu-dispo .bu-dispo-form,
html body.bu-filters-open .bu-board-ai .bu-dispo-form,
html body.bu-filters-closed #bu-dispo .bu-dispo-form,
html body.bu-filters-sheet-open #bu-dispo .bu-dispo-form {
  position: sticky !important;
  bottom: 0 !important;
  left: auto;
  right: auto;
  z-index: 8;
  flex-shrink: 0;
  margin-top: auto;
  margin-bottom: 0 !important;
  transform: none !important;
  filter: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  background: #fff !important;
  border-top: 1px solid #d5e4ea;
  padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px));
}
html body.bu-board-page .bu-mobile-fab-stack,
html body.bu-filters-open .bu-mobile-fab-stack,
html body.bu-filters-closed .bu-mobile-fab-stack,
html body.bu-filters-sheet-open .bu-mobile-fab-stack {
  bottom: var(--bu-fab-bottom, calc(64px + env(safe-area-inset-bottom, 0px))) !important;
  transform: none !important;
}

/* —— Mobile: hide table head, card listings, sheet filters —— */
html body .bu-filter-sheet-head {
  display: none;
}
@media (max-width: 899px) {
  html body.bu-board-page .bu-cols-head,
  html body.bu-lista-chrome .bu-cols-head {
    display: none !important;
  }
  html body.bu-board-page #bu-filter-fold:not(.open),
  html body.bu-board-page #bu-filter-fold.bu-fold-compact:not(.open) {
    display: none !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    visibility: hidden !important;
  }
  html body .bu-filter-sheet-head {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
  }
  html body .bu-filter-sheet-head strong {
    color: #0e3340;
    font-size: 16px;
  }
  html body .bu-filter-sheet-x {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    background: #eef6f8;
    color: #0e3340;
    font-size: 20px;
    cursor: pointer;
  }
  html body.bu-board-page .bu-twin-bars {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px 10px 4px;
  }
  html body.bu-board-page .bu-minibar {
    display: none !important;
  }
  html body.bu-board-page .bu-alert-bar,
  html body.bu-board-page .bu-filter-bar {
    min-height: 48px;
    border-radius: 14px;
  }
  html body.bu-board-page .bu-feed .bu-item.bu-row.compact,
  html body.bu-board-page .bu-feed .bu-item.compact,
  html body.bu-lista-chrome .bu-item.compact {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    position: relative;
    margin: 10px 10px !important;
    padding: 14px 44px 14px 14px !important;
    border-radius: 16px !important;
    background: #fff !important;
    color: #123a48 !important;
    border: 1px solid #d5e4ea !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    grid-template-columns: none !important;
    min-height: 0 !important;
  }
  html body.bu-board-page .bu-feed .bu-item.compact .bu-c,
  html body.bu-lista-chrome .bu-item.compact .bu-c {
    display: flex !important;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 10px;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    overflow: visible !important;
    white-space: normal !important;
    text-overflow: unset !important;
    padding: 0 !important;
    color: #123a48 !important;
    font-size: 14px !important;
    line-height: 1.35;
  }
  html body.bu-board-page .bu-feed .bu-item.compact .bu-c::before {
    content: attr(data-lab);
    flex: 0 0 5.2rem;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #5b7a86 !important;
  }
  html body.bu-board-page .bu-feed .bu-item.compact .bu-c-fav {
    position: absolute;
    top: 10px;
    right: 10px;
    width: auto !important;
    padding: 0 !important;
  }
  html body.bu-board-page .bu-feed .bu-item.compact .bu-c-fav::before {
    content: none !important;
  }
  html body.bu-board-page .bu-feed .bu-item.compact .bu-c-from,
  html body.bu-board-page .bu-feed .bu-item.compact .bu-c-to {
    font-weight: 800;
    font-size: 15px !important;
  }
  html body.bu-board-page .bu-feed .bu-item.compact .bu-driver-card-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
  }
  html body.bu-auth-chrome .bu-join-wrap,
  html body.bu-auth-chrome .bu-join-reg {
    padding: 12px 12px calc(24px + env(safe-area-inset-bottom, 0px)) !important;
  }
  html body.bu-auth-chrome .bu-join-card,
  html body.bu-auth-chrome .bu-form-card {
    padding: 16px !important;
    border-radius: 18px;
  }
  html body.bu-auth-chrome .bu-reg-stage {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
  }
  html body.bu-auth-chrome .bu-reg-rail {
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 6px;
    padding-bottom: 4px;
  }
  html body.bu-auth-chrome .bu-reg-doc {
    order: 8;
    margin-top: 8px;
  }
  html body.bu-auth-chrome input,
  html body.bu-auth-chrome select,
  html body.bu-auth-chrome .bu-pass input {
    min-height: 44px;
    font-size: 16px !important;
  }
  html body.bu-auth-chrome .bu-auth-submit,
  html body.bu-auth-chrome .bu-reg-submit {
    width: 100%;
    min-height: 48px;
  }
  html body.bu-nalog-page .bu-account-panel,
  html body.bu-nalog-page .bu-nalog-win {
    padding: 14px !important;
    border-radius: 16px;
    margin: 10px !important;
  }
  html body.bu-nalog-page .bu-bill-pack-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  html body.bu-nalog-page .bu-inv-paper dl {
    grid-template-columns: 1fr;
  }
}

/* —— App smart banner —— */
html body .bu-app-banner {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 10px calc(8px + env(safe-area-inset-top, 0px));
  background: #0e3340;
  color: #f8fafc !important;
  z-index: 80;
  position: sticky;
  top: 0;
}
html body .bu-app-banner.is-on {
  display: flex;
}
html body .bu-app-banner-ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
  flex: 0 0 auto;
}
html body .bu-app-banner-copy {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
html body .bu-app-banner-copy strong,
html body .bu-app-banner-copy span {
  color: #f8fafc !important;
}
html body .bu-app-banner-copy strong {
  font-size: 13px;
  line-height: 1.25;
}
html body .bu-app-banner-copy span {
  font-size: 11px;
  opacity: 0.85;
}
html body .bu-app-banner-cta {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: #7af0ff;
  color: #0e3340 !important;
  font-weight: 800;
  font-size: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
html body .bu-app-banner-x {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #f8fafc;
  font-size: 22px;
  cursor: pointer;
}
@media (min-width: 900px) {
  html body .bu-app-banner { display: none !important; }
}

html body.bu-auth-chrome .bu-auth-remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
html body.bu-auth-chrome .bu-auth-remember-row .bu-check {
  color: #123a48 !important;
}
html body.bu-reg-legal-row {
  align-items: flex-start;
}
html body.bu-reg-legal-row .bu-check span {
  color: #123a48 !important;
}
