:root {
  --bz-bg: #f4f7fb;
  --bz-ink: #1a2b3c;
  --bz-muted: #64748b;
  --bz-accent: #2563eb;
  --bz-accent-soft: #dbeafe;
  --bz-orange: #fdb813;
  --bz-orange-soft: #fdf5d7;
  --bz-card: #ffffff;
  --bz-line: #e2e8f0;
  --bz-radius: 8px;
  --bz-shadow: 0 1px 2px rgba(26, 43, 60, 0.06);
  --font: "Segoe UI", system-ui, sans-serif;
  --display: "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--bz-ink);
  background: var(--bz-bg);
  min-height: 100vh;
  padding-bottom: 72px;
  line-height: 1.45;
}
.muted { color: var(--bz-muted); }
.hidden { display: none !important; }

.bz-shell {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
  min-width: 0;
}

.bz-top {
  position: sticky; top: 0; z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--bz-line);
  box-shadow: var(--bz-shadow);
}
.bz-top > .bz-shell {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 10px; padding-bottom: 10px;
  min-width: 0;
}
.bz-top-left {
  display: flex; align-items: center; gap: 10px;
  flex: 0 0 auto; min-width: 0;
}
.bz-brand {
  display: flex; align-items: center;
  color: inherit; text-decoration: none; flex: none;
}
.bz-brand img { border-radius: 6px; flex: none; display: block; }
.bz-top-left .bz-erp-cta {
  flex: none; white-space: nowrap;
}
.bz-top-actions {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  justify-content: flex-end; min-width: 0; flex: 1 1 auto;
}
.bz-link {
  color: #336699; text-decoration: none; font-weight: 600; font-size: 0.9rem;
  padding: 0.4rem 0.2rem;
}
.bz-link:hover { text-decoration: underline; }

.bz-btn {
  border: 1px solid var(--bz-line); background: #fff; color: var(--bz-ink);
  border-radius: 6px; padding: 0.5rem 0.9rem; font: inherit; cursor: pointer;
  min-height: 40px; transition: background .15s, border-color .15s, transform .12s;
}
.bz-btn:hover { background: #f8fafc; border-color: #cbd5e1; }
.bz-btn:active { transform: scale(0.98); }
.bz-btn.primary { background: var(--bz-orange); color: #1a2b3c; border-color: transparent; font-weight: 600; }
.bz-btn.primary:hover { background: #f0ae00; }
.bz-btn.ghost { background: transparent; }
.bz-btn.cart {
  background: var(--bz-accent); color: #fff; border-color: transparent; font-weight: 600;
  position: relative;
}
.bz-btn.cart.is-bump { animation: bz-cart-bump 0.45s ease; }
.bz-btn.added {
  background: #16a34a; color: #fff; border-color: transparent;
}

@keyframes bz-cart-bump {
  0% { transform: scale(1); }
  35% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

.bz-hub {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 16px 40px;
  box-sizing: border-box;
}
.bz-hub h1 {
  font-family: var(--display);
  font-size: clamp(1.45rem, 3.5vw, 1.9rem);
  margin: 0 0 0.45rem;
  font-weight: 650;
}
.bz-hub [data-bz-hub-lead] {
  margin: 0 0 1.25rem;
  max-width: 40rem;
}
.bz-hub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 640px) {
  .bz-hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}
.bz-hub-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.1rem 1.15rem;
  background: var(--bz-card);
  border: 1px solid var(--bz-line);
  border-radius: var(--bz-radius);
  box-shadow: var(--bz-shadow);
  text-decoration: none;
  color: inherit;
  min-height: 8.5rem;
  transition: border-color .15s, box-shadow .15s, transform .12s;
}
.bz-hub-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.1);
  transform: translateY(-1px);
}
.bz-hub-card strong {
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--bz-ink);
  line-height: 1.3;
}
.bz-hub-card span {
  color: var(--bz-muted);
  font-size: 0.92rem;
  line-height: 1.45;
  flex: 1;
}
.bz-hub-card .bz-hub-card-cta {
  color: #336699;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 0.35rem;
}
.bz-back-hub {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
}
.bz-back-hub a {
  color: #336699;
  text-decoration: none;
  font-weight: 600;
}
.bz-back-hub a:hover { text-decoration: underline; }
body.bz-mode-hub {
  padding-bottom: 24px;
}
body.bz-mode-hub .bz-btn.cart {
  display: none !important;
}
/* На десктопе нижняя панель скрыта; на мобиле хаб тоже использует её. */
@media (min-width: 900px) {
  body.bz-mode-hub [data-bz-bottom-nav] {
    display: none !important;
  }
}
@media (max-width: 899px) {
  body.bz-mode-hub {
    padding-bottom: 72px;
  }
  body.bz-mode-hub .bz-bottom-catalog-only {
    display: none !important;
  }
  body:not(.bz-mode-hub) .bz-bottom-hub-only {
    display: none !important;
  }
}

.bz-search-bar {
  position: sticky; top: 53px; z-index: 15;
  background: var(--bz-bg);
  border-bottom: 1px solid transparent;
}
.bz-search-bar > .bz-shell {
  padding-top: 12px; padding-bottom: 12px;
}
.bz-search-box {
  display: flex; align-items: stretch; min-width: 0; width: 100%;
  border: 1px solid var(--bz-line); border-radius: 6px;
  background: #fff; overflow: hidden;
  box-shadow: var(--bz-shadow);
}
.bz-search-box:focus-within {
  border-color: #93c5fd; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.bz-search-box input {
  flex: 1 1 0; min-width: 0; width: auto;
  min-height: 40px; border: 0; border-radius: 0;
  padding: 0 12px; font: inherit; background: transparent;
}
.bz-search-box input:focus { outline: none; }
.bz-search-btn {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  margin: 0; border: 0; border-left: 1px solid var(--bz-line);
  padding: 0 14px; min-height: 40px; cursor: pointer;
  background: var(--bz-orange); color: #1a2b3c; font: inherit; font-weight: 600;
  white-space: nowrap;
}
.bz-search-btn:hover { background: #f0ae00; }
.bz-search-btn img {
  display: block; width: 18px; height: 18px; object-fit: contain;
}

.bz-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 16px 28px;
  box-sizing: border-box;
  min-width: 0;
}
@media (min-width: 900px) {
  .bz-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
  }
}

.bz-main { min-width: 0; }
.bz-main h1 {
  font-family: var(--display); font-size: clamp(1.25rem, 3vw, 1.6rem);
  margin: 0.2rem 0 0.45rem; font-weight: 650; color: var(--bz-ink);
}
.bz-main [data-bz-seo-text],
.bz-main .bz-seo {
  margin: 1.5rem 0 0;
  max-width: 52rem;
  color: var(--bz-muted, #64748b);
  font-size: 0.95rem;
  line-height: 1.5;
}
.bz-main .bz-seo .seo-content { margin: 0; }
.bz-main .bz-seo > .seo-content > h2:first-child,
.bz-main .bz-seo > h2:first-child {
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  margin: 0 0 0.55rem;
  font-weight: 650;
  color: var(--bz-ink);
  line-height: 1.25;
}
.bz-main .bz-seo h2 {
  font-size: 1.05rem;
  margin: 1rem 0 0.4rem;
  font-weight: 650;
  color: var(--bz-ink);
}
.bz-main .bz-seo p { margin: 0 0 0.65rem; }
.bz-main .bz-seo ul,
.bz-main .bz-seo ol {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
}
.bz-main .bz-seo li { margin: 0.25rem 0; }
.bz-main .bz-seo strong { color: var(--bz-ink); font-weight: 650; }
.bz-main [data-bz-meta] { margin: 0 0 0.85rem; font-size: 0.9rem; }

.bz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 12px;
}
@media (min-width: 720px) {
  .bz-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
}

.bz-card {
  background: var(--bz-card);
  border: 1px solid var(--bz-line);
  border-radius: var(--bz-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--bz-shadow);
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.bz-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(26, 43, 60, 0.08);
  transform: translateY(-1px);
}
.bz-card:focus-visible {
  outline: 2px solid var(--bz-accent);
  outline-offset: 2px;
}
.bz-card-media {
  position: relative;
  background: #eef2f7;
}
.bz-card img {
  width: 100%; aspect-ratio: 1; object-fit: cover; display: block;
  background: #e8edf2;
}
.bz-card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.bz-card-name { font-weight: 600; line-height: 1.3; font-size: 0.92rem; }
.bz-card-meta { font-size: 0.78rem; color: var(--bz-muted); }
.bz-card-price { font-weight: 700; font-size: 1.05rem; color: var(--bz-ink); }
.bz-card .bz-btn { width: 100%; margin-top: auto; }

.bz-filters {
  position: fixed; inset: 0; z-index: 40; background: rgba(26, 43, 60, 0.35);
  display: flex; align-items: flex-end; justify-content: center;
}
.bz-filters[hidden] { display: none !important; }
.bz-filters-inner {
  width: min(480px, 100%); max-height: 85vh; overflow: auto;
  background: var(--bz-card); border-radius: 12px 12px 0 0; padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 -8px 24px rgba(26, 43, 60, 0.12);
}
.bz-filters-inner header { display: flex; justify-content: space-between; align-items: center; }
.bz-filters-inner label { display: flex; flex-direction: column; gap: 4px; font-size: 0.9rem; }
.bz-filters-inner input:not([type="checkbox"]):not([type="radio"]),
.bz-filters-inner select {
  min-height: 40px; width: 100%; box-sizing: border-box;
  border-radius: 6px; border: 1px solid var(--bz-line); padding: 0 10px; font: inherit;
}
.bz-filters-inner label.bz-check {
  flex-direction: row; align-items: center; gap: 8px;
  min-height: 40px; cursor: pointer;
}
.bz-filters-inner input[type="checkbox"] {
  width: 1.05rem; height: 1.05rem; min-width: 1.05rem; min-height: 1.05rem;
  margin: 0; padding: 0; flex: none; align-self: center;
  accent-color: var(--bz-accent);
}
@media (min-width: 900px) {
  .bz-filters {
    position: sticky; top: 112px; background: none; display: block;
    inset: auto; z-index: 5; align-self: start;
  }
  .bz-filters[hidden] { display: block !important; }
  .bz-filters-inner {
    border-radius: var(--bz-radius); max-height: none;
    border: 1px solid var(--bz-line); box-shadow: var(--bz-shadow); width: auto;
  }
  .bz-filters-inner [data-bz-filters-close] { display: none; }
}

.bz-sheet {
  position: fixed; inset: 0; z-index: 50; background: rgba(26, 43, 60, 0.4);
  display: flex; align-items: flex-end; justify-content: center;
}
@media (min-width: 720px) {
  .bz-sheet { align-items: center; padding: 24px; }
}
.bz-sheet-inner {
  width: min(560px, 100%); max-height: 92vh; overflow: auto;
  background: var(--bz-card); border-radius: 12px 12px 0 0; padding: 16px 16px 20px;
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 12px 40px rgba(26, 43, 60, 0.2);
  animation: bz-sheet-in 0.22s ease;
}
@media (min-width: 720px) {
  .bz-sheet-inner { border-radius: 10px; }
}
@keyframes bz-sheet-in {
  from { transform: translateY(18px); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}
.bz-sheet-inner header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.bz-sheet-inner label { display: flex; flex-direction: column; gap: 4px; }
.bz-sheet-inner input, .bz-sheet-inner select, .bz-sheet-inner textarea {
  min-height: 40px; border-radius: 6px; border: 1px solid var(--bz-line); padding: 0 10px; font: inherit;
}

.bz-card-placeholder {
  width: 100%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  background: #eef2f7; color: #94a3b8; font-size: 0.8rem;
}
.bz-carousel {
  position: relative; border-radius: 8px; border: 1px solid var(--bz-line);
  background: #eef2f7; overflow: hidden; min-height: 200px; width: 100%;
}
.bz-carousel-track {
  display: flex; width: 100%; transition: transform 0.28s ease; will-change: transform;
}
.bz-carousel-track img {
  flex: 0 0 100%; width: 100%; min-width: 100%; max-width: 100%;
  max-height: 280px; object-fit: contain;
  background: #eef2f7; display: block; box-sizing: border-box;
}
.bz-carousel-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--bz-line);
  background: rgba(255,255,255,0.92); color: var(--bz-ink); font-size: 1.4rem;
  line-height: 1; cursor: pointer; z-index: 2;
}
.bz-carousel-prev { left: 8px; }
.bz-carousel-next { right: 8px; }
.bz-carousel-nav[hidden], .bz-carousel-dots:empty { display: none !important; }
.bz-carousel-dots {
  position: absolute; left: 0; right: 0; bottom: 8px;
  display: flex; justify-content: center; gap: 6px; z-index: 2;
}
.bz-carousel-dots button {
  width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0;
  background: rgba(26,43,60,0.28); cursor: pointer;
}
.bz-carousel-dots button.is-on { background: var(--bz-accent); }
.bz-carousel-empty {
  min-height: 160px; display: flex; align-items: center; justify-content: center;
  color: var(--bz-muted); font-size: 0.9rem;
}
.bz-detail-price { font-size: 1.35rem; font-weight: 700; }
.bz-detail-block {
  padding: 10px 12px; border: 1px solid var(--bz-line); border-radius: 8px; background: #f8fafc;
}
.bz-detail-block h3 {
  margin: 0 0 0.35rem; font-size: 0.85rem; text-transform: uppercase;
  letter-spacing: 0.03em; color: var(--bz-muted); font-weight: 650;
}
.bz-detail-block p { margin: 0; white-space: pre-wrap; }

.bz-pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 18px; }

.bz-bottom {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; background: #1a2b3c; color: #f8fafc;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255,255,255,0.08);
}
.bz-bottom button, .bz-bottom a {
  flex: 1; background: none; border: 0; color: inherit; font: inherit;
  min-height: 48px; text-decoration: none; text-align: center; cursor: pointer; font-size: 0.85rem;
}
@media (min-width: 900px) {
  .bz-bottom { display: none; }
  body { padding-bottom: 0; }
}

/* Fly-to-cart ghost */
.bz-fly {
  position: fixed; z-index: 80; width: 44px; height: 44px; border-radius: 50%;
  background: var(--bz-accent); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 700; pointer-events: none;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
  transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.55s ease;
  opacity: 1;
}
.bz-fly.is-out { opacity: 0.15; }
.bz-toast {
  position: fixed; left: 50%; bottom: 84px; z-index: 70;
  transform: translateX(-50%) translateY(8px);
  background: #1a2b3c; color: #fff; padding: 0.55rem 0.95rem; border-radius: 999px;
  font-size: 0.88rem; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
  box-shadow: 0 8px 24px rgba(26, 43, 60, 0.25);
}
@media (min-width: 900px) {
  .bz-toast { bottom: 24px; }
}
.bz-toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

.bz-card-link {
  display: block; color: inherit; text-decoration: none;
}
.bz-card-link:hover .bz-card-name { color: var(--bz-accent); }
.bz-card-actions { padding: 0 12px 12px; }

.bz-offer-page {
  padding: 20px 16px 48px;
  max-width: 720px;
}
.bz-offer-crumb { margin: 0 0 12px; font-size: 0.9rem; }
.bz-offer-crumb a { color: #336699; }
.bz-offer-article h1 {
  margin: 0 0 8px; font-size: 1.45rem; line-height: 1.25;
}
.bz-offer-photos {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px; margin: 14px 0 18px;
}
.bz-offer-photos img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--bz-radius); border: 1px solid var(--bz-line); background: #fff;
}
.bz-offer-actions {
  display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 10px;
}
.bz-offer-llm { font-size: 0.85rem; }
.bz-offer-llm a { color: #336699; }

/* Вход по email (auth.js) поверх корзины */
.auth-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(26, 43, 60, 0.45);
}
.auth-overlay.hidden { display: none !important; }
.auth-panel {
  width: min(360px, calc(100% - 32px));
  background: #fff; border: 1px solid var(--bz-line); border-radius: 10px;
  padding: 1rem 1.25rem; color: var(--bz-ink);
  box-shadow: 0 12px 40px rgba(26, 43, 60, 0.2);
}
.auth-panel h2 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.auth-panel label {
  display: block; margin: 0.75rem 0; font-size: 0.875rem;
}
.auth-panel input {
  width: 100%; margin-top: 0.25rem; padding: 0.55rem 0.65rem;
  border: 1px solid var(--bz-line); border-radius: 6px; font: inherit;
  min-height: 40px; box-sizing: border-box;
}
.auth-panel .muted,
.auth-panel .auth-hint,
.auth-panel .auth-spam-hint { color: var(--bz-muted); }
.auth-panel-actions {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem;
}
.auth-panel .btn {
  border: 1px solid var(--bz-line); background: #fff; color: var(--bz-ink);
  border-radius: 6px; padding: 0.5rem 0.9rem; font: inherit; cursor: pointer;
  min-height: 40px;
}
.auth-panel .btn.primary {
  background: var(--bz-orange); color: #1a2b3c; border-color: transparent; font-weight: 600;
}
.auth-error { color: #b91c1c; font-size: 0.875rem; }
.auth-hint { margin: 0 0 0.75rem; }
.auth-spam-hint { margin-top: -0.35rem; font-size: 0.875rem; }

/* Seller onboarding */
.bz-sell-cta { white-space: nowrap; }
.bz-erp-cta {
  white-space: nowrap;
  background: var(--bz-accent-soft);
  border-color: #93c5fd;
  color: #1e40af;
  font-weight: 600;
}
.bz-erp-cta:hover { background: #bfdbfe; border-color: #60a5fa; }
.bz-nudge {
  background: #fff7e6;
  border-bottom: 1px solid #f0d9a0;
}
.bz-nudge-inner {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  justify-content: space-between; padding-top: 10px; padding-bottom: 10px;
}
.bz-nudge-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 14rem; }
.bz-nudge-text strong { font-size: 0.92rem; }
.bz-nudge-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.bz-mig-bar {
  height: 8px; border-radius: 999px; background: #e2e8f0; overflow: hidden; margin: 1rem 0;
}
.bz-mig-bar-fill {
  height: 100%; background: var(--bz-orange); transition: width .35s ease;
}
.bz-seller-sheet-inner,
.bz-listing-sheet-inner {
  max-height: min(92vh, 44rem);
  display: flex; flex-direction: column;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
}
.bz-seller-list {
  flex: 1 1 auto; overflow: auto; margin: 0.5rem 0 1rem;
  display: flex; flex-direction: column; gap: 8px;
}
.bz-seller-item {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--bz-line); border-radius: 8px; padding: 0.75rem 0.85rem;
  background: #fff;
}
.bz-seller-thumb {
  flex: none; width: 72px; height: 72px; border-radius: 8px;
  object-fit: cover; background: #eef2f7; border: 1px solid var(--bz-line);
}
.bz-seller-thumb--empty {
  background:
    linear-gradient(135deg, #eef2f7 25%, #e2e8f0 25%, #e2e8f0 50%, #eef2f7 50%, #eef2f7 75%, #e2e8f0 75%);
  background-size: 12px 12px;
}
.bz-seller-item-body {
  flex: 1 1 auto; min-width: 0;
  display: flex; flex-direction: column; gap: 0.35rem; align-items: flex-start;
}
.bz-seller-item-body strong {
  display: block; line-height: 1.3;
}
.bz-seller-item-actions {
  display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.15rem;
}
.bz-seller-item-actions .bz-btn { margin-top: 0; }
.bz-seller-sticky {
  position: static;
  width: 100%;
  flex-shrink: 0;
  margin-top: 1.25rem;
  min-height: 48px;
  font-size: 1rem;
}
.bz-listing-sheet-inner .bz-listing-row {
  margin-bottom: 0.35rem;
}
.bz-listing-sheet-inner [data-ls-error] {
  margin: 0.35rem 0 0;
}
.bz-listing-sheet-inner .bz-seller-sticky {
  margin-top: 1.5rem;
}
.bz-listing-field {
  display: block; margin: 0.65rem 0; font-size: 0.88rem; font-weight: 600;
  position: relative;
}
.bz-listing-field input,
.bz-listing-field textarea {
  display: block; width: 100%; margin-top: 0.3rem; box-sizing: border-box;
  border: 1px solid var(--bz-line); border-radius: 8px; padding: 0.65rem 0.75rem;
  font: inherit; font-weight: 400; min-height: 44px; background: #fff;
}
.bz-listing-field textarea { min-height: 5rem; resize: vertical; }
.bz-listing-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.bz-listing-photos {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0.75rem 0;
}
.bz-photo-slot {
  position: relative; aspect-ratio: 1; border: 1px dashed #94a3b8;
  border-radius: 10px; background: #f8fafc; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: var(--bz-muted); font-size: 1.25rem; font-weight: 600; cursor: pointer;
}
.bz-photo-slot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.bz-photo-slot.has-preview {
  border-style: solid; border-color: #93c5fd; background-size: cover; background-position: center;
  color: transparent;
}
.bz-suggest {
  position: absolute; left: 0; right: 0; top: calc(100% - 2px); z-index: 5;
  background: #fff; border: 1px solid var(--bz-line); border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12); max-height: 12rem; overflow: auto;
}
.bz-suggest button {
  display: block; width: 100%; text-align: left; border: 0; background: transparent;
  padding: 0.65rem 0.75rem; font: inherit; cursor: pointer; border-bottom: 1px solid #f1f5f9;
}
.bz-suggest button:hover { background: #f8fafc; }
.bz-suggest .muted { font-size: 0.8rem; }
@media (max-width: 899px) {
  /* Мобиле сверху: логотип + «В учёт»; остальное — в нижней панели. */
  .bz-top-actions { display: none; }
  .bz-top-left .bz-erp-cta {
    padding: 0.4rem 0.7rem; font-size: 0.85rem; min-height: 36px;
  }
  .bz-bottom button { font-size: 0.78rem; padding: 0 2px; }
}
