/* Berza Utovara 7.9.79 — registracija, nalog, chat, board mobile, header */
html body.bu-auth-chrome .bu-reg-wiz [data-reg-pane] {
  display: none;
}
html body.bu-auth-chrome .bu-reg-wiz [data-reg-pane].is-on {
  display: block;
  animation: buRegIn .28s ease;
}
@keyframes buRegIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
html body.bu-auth-chrome .bu-reg-rail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 0 0 16px;
  padding: 10px 12px;
  background: #f4f8fb;
  border: 1px solid #d5e4ea;
  border-radius: 16px;
}
html body.bu-auth-chrome .bu-reg-progress {
  display: flex;
  flex: 1 1 auto;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
html body.bu-auth-chrome .bu-reg-progress li { flex: 1 1 0; min-width: 0; }
html body.bu-auth-chrome .bu-reg-jump {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #3d5a66;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
html body.bu-auth-chrome .bu-reg-jump i {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #dce8ee;
  color: #0e3340;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}
html body.bu-auth-chrome .bu-reg-jump.is-on {
  background: #fff;
  border-color: #0b6e86;
  color: #0b6e86;
  box-shadow: 0 0 0 3px rgba(11, 110, 134, .12);
}
html body.bu-auth-chrome .bu-reg-jump.is-on i { background: #0b6e86; color: #fff; }
html body.bu-auth-chrome .bu-reg-jump.is-ok i { background: #059669; color: #fff; }
html body.bu-auth-chrome .bu-reg-jump.is-bad i { background: #dc2626; color: #fff; }
html body.bu-auth-chrome .bu-reg-jump-back {
  flex: 0 0 auto;
  width: auto;
  color: #0b6e86;
  text-decoration: none;
  font-weight: 800;
}
html body.bu-auth-chrome .bu-intent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
html body.bu-auth-chrome .bu-intent-card {
  text-align: left;
  padding: 14px 14px 16px;
  border-radius: 16px;
  border: 1.5px solid #d5e4ea;
  background: #fff;
  color: #123a48;
  cursor: pointer;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
html body.bu-auth-chrome .bu-intent-card em {
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #5b7a86;
}
html body.bu-auth-chrome .bu-intent-card strong { font-size: 14px; line-height: 1.35; }
html body.bu-auth-chrome .bu-intent-card.is-on {
  border-color: #0b6e86;
  background: #f0fafc;
  box-shadow: 0 0 0 3px rgba(11, 110, 134, .14);
}
html body.bu-auth-chrome .bu-intent-extra {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}
html body.bu-auth-chrome .bu-reg-grid-login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
  align-items: start;
}
html body.bu-auth-chrome .bu-reg-grid-login .bu-span-2 { grid-column: 1 / -1; }
html body.bu-auth-chrome .bu-reg-grid-login .bu-pass {
  display: flex;
  width: 100%;
  align-items: stretch;
}
html body.bu-auth-chrome .bu-reg-grid-login .bu-pass input,
html body.bu-auth-chrome .bu-email-check input {
  flex: 1 1 auto;
  width: 100%;
  min-height: 46px;
}
html body.bu-auth-chrome .bu-pass-toggle {
  flex: 0 0 auto;
  min-width: 72px;
  border: 1px solid #d5e4ea;
  border-left: 0;
  border-radius: 0 12px 12px 0;
  background: #eef6f8;
  color: #0e3340;
  font-weight: 750;
}
html body.bu-auth-chrome .bu-pass input {
  border-radius: 12px 0 0 12px;
}
html body.bu-auth-chrome .bu-email-check {
  position: relative;
  display: block;
}
html body.bu-auth-chrome .bu-spin,
html body.bu-auth-chrome .bu-email-check .bu-spin {
  position: absolute;
  right: 12px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border: 2px solid #c5d6de;
  border-top-color: #0b6e86;
  border-radius: 50%;
  animation: buSpin .7s linear infinite;
}
@keyframes buSpin { to { transform: rotate(360deg); } }
html body.bu-auth-chrome input.is-checking { padding-right: 40px; }
html body.bu-auth-chrome .bu-pass-rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
html body.bu-auth-chrome .bu-pass-rules li {
  position: relative;
  padding-left: 18px;
  font-size: 12px;
  font-weight: 700;
  color: #5b7a86;
}
html body.bu-auth-chrome .bu-pass-rules li::before {
  content: "○";
  position: absolute;
  left: 0;
  top: 0;
}
html body.bu-auth-chrome .bu-pass-rules li.is-ok { color: #047857; }
html body.bu-auth-chrome .bu-pass-rules li.is-ok::before { content: "●"; }
html body.bu-auth-chrome .bu-pass-rules li.is-bad { color: #b91c1c; }
html body.bu-auth-chrome .bu-pass-rules li.is-bad::before { content: "●"; }
html body.bu-auth-chrome .bu-geo-wrap.is-picked input,
html body.bu-auth-chrome input.bu-input-ok,
html body.bu-auth-chrome .bu-price-card:has(input:checked),
html body.bu-auth-chrome .bu-pay-duo label:has(input:checked) {
  border-color: #0b6e86 !important;
  box-shadow: 0 0 0 3px rgba(11, 110, 134, .12);
}
html body.bu-auth-chrome .bu-reg-legal {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
}
html body.bu-auth-chrome .bu-reg-legal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1.5px solid #d5e4ea;
  border-radius: 14px;
  background: #fff;
}
html body.bu-auth-chrome .bu-reg-legal-row.is-on {
  border-color: #059669;
  background: #ecfdf5;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, .12);
}
html body.bu-auth-chrome .bu-reg-legal-row.is-opt.is-on {
  border-color: #0b6e86;
  background: #f0fafc;
  box-shadow: 0 0 0 3px rgba(11, 110, 134, .1);
}
html body.bu-auth-chrome .bu-reg-legal-row .bu-check { margin: 0; flex: 1 1 auto; }
html body.bu-auth-chrome .bu-reg-read {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  color: #0b6e86;
  text-decoration: none;
  white-space: nowrap;
}
html body.bu-auth-chrome .bu-reg-wiz-nav,
html body.bu-auth-chrome .bu-reg-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}
html body.bu-auth-chrome .bu-reg-wiz-nav .bu-btn,
html body.bu-auth-chrome .bu-reg-actions .bu-btn { min-height: 44px; }
html body.bu-auth-chrome .bu-inv-paper {
  background: #fff;
  border: 1px solid #d5e4ea;
  border-radius: 18px;
  padding: 18px 18px 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .08);
}
html body.bu-auth-chrome .bu-inv-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}
html body.bu-auth-chrome .bu-inv-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #5b7a86;
}
html body.bu-auth-chrome .bu-inv-paper dl {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px 12px;
  margin: 12px 0;
}
html body.bu-auth-chrome .bu-inv-paper dt {
  color: #5b7a86;
  font-size: 12px;
  font-weight: 750;
}
html body.bu-auth-chrome .bu-inv-paper dd {
  margin: 0;
  color: #0e3340;
  font-weight: 750;
  word-break: break-word;
}
html body.bu-auth-chrome .bu-inv-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px dashed #d5e4ea;
  font-size: 12px;
  color: #5b7a86;
}
@media (max-width: 899px) {
  html body.bu-auth-chrome .bu-reg-stage {
    display: flex !important;
    flex-direction: column;
    gap: 14px;
  }
  html body.bu-auth-chrome .bu-reg-doc { order: 8; }
  html body.bu-auth-chrome .bu-intent-grid,
  html body.bu-auth-chrome .bu-intent-extra,
  html body.bu-auth-chrome .bu-reg-grid-login,
  html body.bu-auth-chrome .bu-pass-rules,
  html body.bu-auth-chrome .bu-price-duo,
  html body.bu-auth-chrome .bu-pay-duo {
    grid-template-columns: 1fr !important;
  }
  html body.bu-auth-chrome .bu-reg-progress span { display: none; }
  html body.bu-auth-chrome .bu-reg-jump { justify-content: center; padding: 6px; }
  html body.bu-auth-chrome .bu-reg-legal-row { flex-wrap: wrap; }
  html body.bu-auth-chrome .bu-mshell-bar { background: #0e3340 !important; color: #f8fafc !important; }
}

/* Nalog alerts + tabs */
html body.bu-nalog-page .bu-nalog-alerts:not(:has(.bu-welcome-banner, .bu-mailwarn-card)) {
  display: none;
}
html body.bu-nalog-page .bu-welcome-banner,
html body.bu-nalog-page .bu-mailwarn-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #b7e4c7;
  background: linear-gradient(180deg, #ecfdf5, #fff);
  color: #0e3340 !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
}
html body.bu-nalog-page .bu-mailwarn-card {
  border-color: #f6d28a;
  background: linear-gradient(180deg, #fff7ed, #fff);
}
html body.bu-nalog-page .bu-welcome-banner strong,
html body.bu-nalog-page .bu-mailwarn-card strong {
  display: block;
  color: #0e3340 !important;
  font-size: 14px;
}
html body.bu-nalog-page .bu-welcome-banner p,
html body.bu-nalog-page .bu-mailwarn-card p {
  margin: 2px 0 0;
  color: #3d5a66 !important;
  font-size: 13px;
  font-weight: 650;
}
html body.bu-nalog-page .bu-alert-ico {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #059669;
  color: #fff;
  font-weight: 800;
}
html body.bu-nalog-page .bu-mailwarn-card .bu-alert-ico { background: #d97706; }
html body.bu-nalog-page .bu-nalog-tabs {
  position: sticky;
  top: 0;
  z-index: 30;
  margin: 0 !important;
  padding: 8px 0 10px !important;
  background: #e8eef5;
  border: 0 !important;
  overflow: visible;
}
html body.bu-nalog-page .bu-nalog-tabs-scroll {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  overflow: visible;
}
html body.bu-nalog-page .bu-header-nalog + .bu-nalog-tabs { top: 0; }
html body.bu-nalog-page .bu-nalog-flow { padding-top: 8px; }
html body.bu-nalog-page.bu-compose-on .bu-nalog-tabs {
  position: relative;
  z-index: 5;
}
html body.bu-nalog-page .bu-header-sound.is-on {
  background: #ecfdf5 !important;
  color: #047857 !important;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, .25), 0 0 12px rgba(16, 185, 129, .45);
}
html body.bu-nalog-page .bu-header-sound:not(.is-on),
html body.bu-board-page .bu-header-sound:not(.is-on) {
  opacity: .72;
  color: #64748b !important;
}

/* Apps nav contrast + icons */
html body .bu-apps-nav a,
html body .bu-neon-head .bu-apps-nav a,
html body .bu-board-sidebar-foot .bu-apps-nav a {
  background: #10232c !important;
  color: #f8fafc !important;
  border: 1px solid rgba(255,255,255,.14) !important;
}
html body .bu-apps-nav a strong,
html body .bu-apps-nav a span {
  color: #f8fafc !important;
}
html body .bu-apps-nav img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: cover;
  background: #fff;
}

html body .bu-app-banner {
  min-height: 0 !important;
  padding: 6px 10px calc(6px + env(safe-area-inset-top, 0px)) !important;
}
html body .bu-app-banner-copy span { display: none; }
html body .bu-app-banner-ico { width: 28px !important; height: 28px !important; }
html body .bu-app-banner-copy strong { font-size: 12px !important; }

/* Compose optional + contact */
html body .bu-opt {
  margin-left: 6px;
  font-size: 11px;
  font-weight: 800;
  color: #5b7a86;
  text-transform: uppercase;
  letter-spacing: .04em;
}
html body .bu-compose-more summary { cursor: pointer; font-weight: 800; color: #0e3340; }
html body .bu-compose-contact-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
html body .bu-compose-channels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
html body .bu-compose-ch {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1.5px solid #d5e4ea;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}
html body .bu-compose-ch.is-on {
  border-color: #0b6e86;
  background: #f0fafc;
  box-shadow: 0 0 0 3px rgba(11, 110, 134, .12);
}
html body .bu-place-live {
  font-size: 12.5px;
  font-weight: 700;
  color: #0e3340;
  line-height: 1.4;
}
html body .bu-place-coords {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: #0b6e86;
}

/* Post confirm */
html body .bu-post-confirm-sheet {
  max-width: 720px;
  border-radius: 20px;
  overflow: hidden;
}
html body .bu-post-confirm-preview.bu-board-preview {
  padding: 0;
  background: #e8eef5;
}
html body .bu-board-preview .bu-item {
  margin: 0 !important;
  border-radius: 0 !important;
}
html body .bu-post-ok {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 24000;
  max-width: 420px;
  margin: 0 auto;
  padding: 14px 16px;
  border-radius: 16px;
  background: #0e3340;
  color: #f8fafc;
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
}
html body .bu-post-ok ol {
  display: flex;
  gap: 8px;
  margin: 10px 0 12px;
  padding: 0;
  list-style: none;
}
html body .bu-post-ok li {
  flex: 1;
  font-size: 11px;
  font-weight: 750;
  color: #9fb4bd;
}
html body .bu-post-ok li.is-on { color: #7af0ff; }
html body .bu-post-ok a { color: #7af0ff; font-weight: 800; }

/* Chat */
html body .bu-chat-thread-tools {
  display: flex;
  gap: 8px;
  padding: 8px 12px 0;
}
html body .bu-chat-ad-card {
  margin: 8px 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f4f8fb;
  border: 1px solid #d5e4ea;
}
html body .bu-chat-ad-card a { display: none; }
html body .bu-bubble.me {
  background: #0b6e86;
  color: #fff;
  align-self: flex-end;
}
html body .bu-chat-log-inline {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 12px 16px;
  min-height: 180px;
}
html body .bu-chat-row.is-unread { background: #ecfdf5; }
html body .bu-chat-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 6px;
  border-radius: 50%;
  background: #059669;
}

/* 1920 density */
@media (min-width: 1400px) {
  html body.bu-board-page .bu-term,
  html body.bu-nalog-page .bu-dash-main {
    max-width: none;
  }
  html body.bu-board-page .bu-feed { padding-right: 8px; }
}

/* Mobile board cards */
@media (max-width: 899px) {
  html body.bu-board-page .bu-feed {
    padding: 8px 10px 88px !important;
  }
  html body.bu-board-page .bu-feed .bu-item.compact {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-areas:
      "from to"
      "ldate udate"
      "veh veh"
      "w price";
    gap: 6px 10px !important;
    margin: 0 0 10px !important;
    padding: 12px 40px 12px 12px !important;
  }
  html body.bu-board-page .bu-feed .bu-item.compact .bu-c-fav { grid-area: auto; }
  html body.bu-board-page .bu-feed .bu-item.compact .bu-c-from { grid-area: from; font-size: 15px !important; }
  html body.bu-board-page .bu-feed .bu-item.compact .bu-c-to { grid-area: to; font-size: 15px !important; }
  html body.bu-board-page .bu-feed .bu-item.compact .bu-c-ldate { grid-area: ldate; }
  html body.bu-board-page .bu-feed .bu-item.compact .bu-c-udate { grid-area: udate; }
  html body.bu-board-page .bu-feed .bu-item.compact .bu-c-veh { grid-area: veh; }
  html body.bu-board-page .bu-feed .bu-item.compact .bu-c-w { grid-area: w; }
  html body.bu-board-page .bu-feed .bu-item.compact .bu-c-price,
  html body.bu-board-page .bu-feed .bu-item.compact .bu-c-ldm { grid-area: price; }
  html body.bu-board-page .bu-feed .bu-item.compact .bu-c::before {
    flex: 0 0 auto !important;
    width: auto;
    display: block;
    margin-bottom: 2px;
  }
  html body.bu-board-page .bu-filter-bar,
  html body.bu-board-page .bu-alert-bar,
  html body.bu-board-page #bu-filter-fold.open {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    max-height: none !important;
  }
  html body.bu-board-page .bu-mshell-bar {
    background: #0e3340 !important;
    color: #f8fafc !important;
    border-bottom: 0;
  }
  html body.bu-board-page .bu-mshell-title,
  html body.bu-nalog-page .bu-mshell-title { color: #f8fafc !important; }
  html body.bu-board-page .bu-item.is-new {
    box-shadow: 0 0 0 2px #10b981, 0 12px 24px rgba(16, 185, 129, .2) !important;
  }
  html body.bu-filters-sheet-open #bu-filter-fold,
  html body.bu-board-page .bu-filter-sheet {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    max-height: calc(100dvh - 110px);
  }
  html body.bu-board-page .bu-feed .bu-item.compact small {
    display: block;
    font-size: 11px;
    font-weight: 650;
    color: #5b7a86;
  }
  html body.bu-nalog-page .bu-mshell-bar {
    background: #0e3340 !important;
    color: #f8fafc !important;
  }
}

html body .bu-dpro-act-mail { display: inline-flex !important; }
