/**
 * Board chrome — parity with Next.js BoardAppShell / Board / Lista
 */

body.bu-board-page {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100dvh;
  width: 100%;
  max-width: none;
  background: #fff;
}

/* Nikad ne koristiti CSS zoom — suzi desktop u “tablet” izgled */
body.bu-board-page,
body.bu-nalog-page,
html {
  zoom: normal;
}

body.bu-board-page .bu-foot,
body.bu-board-page .bu-dock,
body.bu-board-page .bu-support,
body.bu-board-page #bu-agent,
body.bu-board-page .bu-free {
  display: none !important;
}

body.bu-board-mode {
  font-size: 13px;
  letter-spacing: -0.008em;
  line-height: 1.45;
}

/* Shell — sidebar + main column */
.bu-board-shell-wrap {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  width: 100%;
}

.bu-board-main-col {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

/* Dark sidebar — desktop */
.bu-board-sidebar {
  display: none;
  flex-direction: column;
  flex-shrink: 0;
  width: 2.5rem;
  background: linear-gradient(180deg, #05101f 0%, #0a1a32 50%, #05101f 100%);
  color: #fff;
  box-shadow: 4px 0 24px rgba(15, 23, 42, 0.12);
}

@media (min-width: 900px) {
  .bu-board-sidebar {
    display: flex;
  }
}

@media (min-width: 1280px) {
  .bu-board-sidebar {
    width: 9rem;
  }
}

.bu-board-sidebar-brand {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 4px;
}

@media (min-width: 1280px) {
  .bu-board-sidebar-brand {
    padding: 8px;
  }
}

.bu-logo-sidebar {
  height: 32px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.bu-board-sidebar-nav {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bu-board-sidebar-link {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  padding: 8px;
  color: #94a3b8;
  text-decoration: none;
  font-weight: 700;
  font-size: 11px;
  transition: background 0.15s, color 0.15s;
  border: 0;
  background: transparent;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.bu-board-sidebar-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.bu-board-sidebar-link.is-on {
  background: #1d6fd8;
  color: #fff;
  box-shadow: 0 0 20px rgba(29, 111, 216, 0.45);
}

.bu-board-sidebar-ico {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0 auto;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

@media (min-width: 1280px) {
  .bu-board-sidebar-ico {
    margin: 0;
  }
}

.bu-board-sidebar-lab {
  display: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 1280px) {
  .bu-board-sidebar-lab {
    display: inline;
  }
}

.bu-board-sidebar-vip {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px;
}

@media (min-width: 1280px) {
  .bu-board-sidebar-vip {
    display: block;
  }
}

.bu-board-sidebar-vip-k {
  margin: 0;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7dd3fc;
}

.bu-board-sidebar-vip-t {
  margin: 4px 0 0;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.85);
}

.bu-board-sidebar-vip-go {
  display: inline-flex;
  margin-top: 8px;
  border-radius: 6px;
  background: #1d6fd8;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  padding: 4px 8px;
  text-decoration: none;
}

/* Hero header */
.bu-board-header {
  position: relative;
  z-index: 80;
  flex-shrink: 0;
  isolation: isolate;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.12);
}

.bu-board-header-bg {
  position: relative;
  overflow: visible;
}

.bu-board-header-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.bu-board-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.65) 0%, rgba(15, 23, 42, 0.45) 50%, rgba(2, 6, 23, 0.55) 100%);
}

.bu-board-header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 1920px;
  margin: 0 auto;
  padding: 4px 8px;
  min-height: 44px;
}

@media (min-width: 900px) {
  .bu-board-header-inner {
    gap: 12px;
    padding: 6px 12px;
    min-height: 48px;
  }
}

.bu-board-header-logo {
  flex-shrink: 0;
}

.bu-logo-board {
  height: 36px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

.bu-board-header-nav {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
  gap: 4px;
}

@media (min-width: 900px) {
  .bu-board-header-nav {
    gap: 6px;
  }
}

.bu-board-nav-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 40px;
  max-width: 11rem;
  padding: 0 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  backdrop-filter: blur(4px);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

@media (min-width: 900px) {
  .bu-board-nav-tab {
    min-height: 36px;
    max-width: none;
    padding: 0 12px;
  }
}

.bu-board-nav-tab:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.12);
}

.bu-board-nav-tab.is-on {
  border-color: #fff;
  background: #fff;
  color: #1d6fd8;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.35);
}

.bu-board-nav-ico {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background: currentColor;
  opacity: 0.9;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

.bu-board-nav-ico-cargo {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5'%3E%3Cpath d='M16 16h6v6H16zM8 16H2v6h6zM12 2v20'/%3E%3C/svg%3E");
}

.bu-board-nav-ico-truck {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5'%3E%3Cpath d='M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2M14 18H4M14 18h2M18 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14'/%3E%3C/svg%3E");
}

.bu-board-nav-ico-list {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5'%3E%3Cpath d='M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01'/%3E%3C/svg%3E");
}

.bu-board-nav-txt strong {
  display: block;
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 900px) {
  .bu-board-nav-txt strong {
    font-size: 11px;
  }
}

@media (min-width: 1200px) {
  .bu-board-nav-txt strong {
    font-size: 12px;
  }
}

.show-sm { display: inline; }
.show-md, .show-lg { display: none; }

@media (min-width: 900px) {
  .show-sm { display: none; }
  .show-md { display: inline; }
}

@media (min-width: 1200px) {
  .show-md { display: none; }
  .show-lg { display: inline; }
}

.bu-board-header-right {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 4px;
}

@media (min-width: 900px) {
  .bu-board-header-right {
    gap: 6px;
  }
}

.bu-bell-board {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 8px;
  width: 40px;
  height: 40px;
}

.bu-board-userchip {
  display: none;
  align-items: center;
  gap: 6px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 4px 10px 4px 4px;
  text-decoration: none;
  font-weight: 800;
  font-size: 11px;
}

@media (min-width: 640px) {
  .bu-board-userchip {
    display: inline-flex;
  }
}

.bu-board-publish,
.bu-board-login {
  display: none;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 900;
  padding: 8px 12px;
}

@media (min-width: 640px) {
  .bu-board-publish,
  .bu-board-login {
    display: inline-flex;
  }
}

.bu-board-publish {
  background: #1d6fd8;
  color: #fff;
  border: 0;
}

.bu-board-login {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
}

.bu-lang-pick-board .bu-lang-btn {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  height: 40px;
}

/* Board content area */
body.bu-board-page .bu-board,
body.bu-board-page .bu-lista-main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.bu-shell {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(1200px 420px at 12% -10%, rgba(16, 185, 129, 0.06), transparent 55%),
    radial-gradient(900px 380px at 88% 0%, rgba(14, 165, 233, 0.05), transparent 50%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

body.bu-board-page .bu-board {
  height: auto;
  max-height: none;
}

body.bu-board-page .bu-board-stage,
body.bu-board-page .bu-term-grid {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
}

body.bu-board-page .bu-board-list-scroll {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.bu-board-page .bu-board-list#bu-list-pane,
body.bu-board-page .bu-board-list {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

body.bu-board-page .bu-list-head,
body.bu-board-page .bu-cols-head {
  flex: 0 0 auto;
}

body.bu-board-page .bu-board-list-scroll .bu-feed {
  flex: 1 1 auto;
  overflow: auto;
  min-height: 0;
}

.bu-mobile-only {
  display: flex;
}

@media (min-width: 900px) {
  .bu-mobile-only {
    display: none;
  }
}

.bu-filter-chrome {
  flex-shrink: 0;
}

/* Lista page */
.bu-lista-main {
  overflow: auto;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 50%, #f8fafc 100%);
}

.bu-lista-wrap {
  max-width: 56rem;
  margin: 0 auto;
  padding: 16px 12px 32px;
}

@media (min-width: 900px) {
  .bu-lista-wrap {
    padding: 20px 20px 40px;
  }
}

.bu-lista-hero {
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-top: 3px solid rgba(29, 111, 216, 0.35);
  background: #fff;
  padding: 16px;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
}

@media (min-width: 900px) {
  .bu-lista-hero {
    padding: 20px;
  }
}

.bu-lista-kicker {
  margin: 0;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #1d6fd8;
}

.bu-lista-hero h1 {
  margin: 2px 0 0;
  font-size: 1.75rem;
  font-weight: 900;
  color: #0f172a;
}

@media (min-width: 900px) {
  .bu-lista-hero h1 {
    font-size: 1.875rem;
  }
}

.bu-lista-lead {
  margin: 6px 0 0;
  max-width: 36rem;
  font-size: 13px;
  line-height: 1.5;
  color: #475569;
}

.bu-lista-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 16px;
}

@media (min-width: 600px) {
  .bu-lista-tabs {
    grid-template-columns: repeat(4, 1fr);
  }
}

.bu-lista-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  padding: 10px 12px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s, background 0.15s;
}

.bu-lista-tab:hover {
  transform: translateY(-1px);
  border-color: #cbd5e1;
  background: #fff;
}

.bu-lista-tab.is-on {
  border-color: #1d6fd8;
  background: #1d6fd8;
  color: #fff;
  box-shadow: 0 6px 20px rgba(29, 111, 216, 0.3);
}

.bu-lista-tab strong {
  font-size: 12px;
  font-weight: 900;
}

.bu-lista-tab span {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.3;
  opacity: 0.85;
}

.bu-lista-meta {
  margin: 12px 0 0;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
}

.bu-lista-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.bu-lista-search {
  flex: 1 1 160px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  background: #f8fafc;
  padding: 0 12px;
  border: 1px solid #e2e8f0;
}

.bu-lista-search input {
  flex: 1;
  border: 0;
  background: transparent;
  height: 40px;
  font-size: 14px;
  font-weight: 600;
  outline: none;
}

.bu-lista-filters select {
  height: 40px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 700;
}

.bu-lista-count {
  margin: 12px 0 0;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}

.bu-lista-cards {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.bu-firm-card {
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.15s;
}

.bu-firm-card:hover {
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.08);
}

.bu-firm-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.bu-firm-card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
  color: #0f172a;
}

.bu-firm-card h3 a {
  color: inherit;
  text-decoration: none;
}

.bu-firm-card-meta {
  margin: 2px 0 0;
  font-size: 12px;
  color: #64748b;
}

.bu-firm-badge {
  display: inline-flex;
  border-radius: 999px;
  background: #f1f5f9;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  color: #475569;
}

.bu-firm-pres {
  display: inline-flex;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 800;
}

.bu-firm-pres.aktivan,
.bu-firm-pres.slobodan {
  background: #dcfce7;
  color: #166534;
}

.bu-firm-pres.away,
.bu-firm-pres.zauzet,
.bu-firm-pres.offline {
  background: #fef9c3;
  color: #854d0e;
}

.bu-dpro-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.bu-dpro-head-row h2 {
  flex: 1;
  min-width: 0;
  margin: 0;
}

.bu-fav-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: #94a3b8;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.bu-fav-btn.is-on {
  color: #ca8a04;
  border-color: #fde68a;
  background: #fffbeb;
}

.bu-firm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.bu-firm-actions .bu-btn {
  height: 36px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 900;
  padding: 0 12px;
}

.bu-sale-card,
.bu-job-card {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
}

.bu-sale-head,
.bu-job-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid #f1f5f9;
  background: rgba(248, 250, 252, 0.8);
  padding: 12px 16px;
}

.bu-sale-price {
  border-radius: 8px;
  background: #e0f2fe;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 900;
  color: #0c4a6e;
}

.bu-job-kind {
  display: inline-flex;
  border-radius: 999px;
  background: #fef3c7;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  color: #92400e;
}

.bu-sale-body,
.bu-job-body {
  padding: 12px 16px;
}

.bu-lista-note {
  margin-top: 12px;
  border-radius: 12px;
  border: 1px solid #bae6fd;
  background: #f0f9ff;
  padding: 10px 12px;
  font-size: 12px;
  color: #0c4a6e;
}

.bu-lista-tools {
  margin-top: 12px;
  border-radius: 16px;
  border: 1px solid #86efac;
  background: linear-gradient(135deg, #ecfdf5, #fff);
  padding: 16px;
}

.bu-lista-tools h3 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 900;
  color: #065f46;
}

.bu-lista-tools a {
  display: inline-flex;
  margin: 4px 8px 0 0;
  border-radius: 10px;
  background: #059669;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  padding: 8px 12px;
  text-decoration: none;
}

.bu-news-card {
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 16px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.bu-news-card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
}

.bu-news-card p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: #475569;
}

@media (min-width: 900px) {
  body.bu-board-page .bu-appbar {
    display: none !important;
  }
}

@media (max-width: 899px) {
  body.bu-board-page .bu-board-sidebar {
    display: none;
  }
}

.bu-lane-status {
  margin: 6px 0 0;
  padding: 0 2px;
  font-size: 11px;
  line-height: 1.4;
  color: #64748b;
  min-height: 1.2em;
}

.bu-lane-status:empty {
  display: none;
}

/* 7.7.0 � filter flash + commands dialog + tab + flush */
@keyframes bu-filter-flash-kf {
  0% { box-shadow: 0 0 0 0 rgba(29, 111, 216, 0.55); background-color: #dbeafe; }
  100% { box-shadow: 0 0 0 10px rgba(29, 111, 216, 0); background-color: transparent; }
}
.bu-filter-flash {
  animation: bu-filter-flash-kf 0.85s ease-out;
  border-radius: 10px;
}
.bu-dispo-howto,
.bu-dispo-inline-cmd {
  font-weight: 800;
  cursor: pointer;
}
.bu-dispo-inline-cmd {
  display: inline;
  border: 0;
  background: none;
  color: #1d6fd8;
  padding: 0;
  text-decoration: underline;
  font: inherit;
  font-weight: 800;
}
.bu-cmd-dialog {
  border: 0;
  border-radius: 18px;
  padding: 0;
  max-width: min(440px, 94vw);
  width: 100%;
  background: transparent;
}
.bu-cmd-dialog::backdrop { background: rgba(15, 23, 42, 0.55); }
.bu-cmd-card {
  margin: 0;
  background: #fff;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 24px 64px rgba(15,23,42,.25);
  padding: 16px;
  display: grid;
  gap: 12px;
}
.bu-cmd-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.bu-cmd-head h2 { margin: 4px 0 0; font-size: 1.2rem; }
.bu-cmd-search {
  height: 42px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  padding: 0 12px;
  font: inherit;
  width: 100%;
}
.bu-cmd-list {
  max-height: min(52dvh, 420px);
  overflow: auto;
  display: grid;
  gap: 6px;
}
.bu-cmd-cat {
  margin: 10px 0 2px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}
.bu-cmd-item {
  text-align: left;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  display: grid;
  gap: 2px;
}
.bu-cmd-item:hover { border-color: #93c5fd; background: #eff6ff; }
.bu-cmd-item strong { font-size: 13px; }
.bu-cmd-item span { font-size: 12px; color: #64748b; }
.bu-tabs-chrome .bu-tab-add,
.bu-tabs-chrome #bu-stab-add {
  margin-left: 0 !important;
}
body.bu-board-page .bu-board-shell-wrap,
body.bu-board-page .bu-board-main-col {
  flex: 1 1 auto;
  min-height: 0;
  background: #f1f5f9;
}
/* 7.7.1 command catalog + mobile tighten */
.bu-dispo-cmd-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6rem;
  height: 1.25rem;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.2);
  font-size: 10px;
  font-weight: 900;
}
.bu-cmd-dialog {
  border: 0;
  border-radius: 18px;
  padding: 0;
  max-width: min(520px, 96vw);
  width: 100%;
  background: transparent;
  max-height: min(88dvh, 720px);
}
.bu-cmd-dialog::backdrop { background: rgba(15, 23, 42, 0.55); }
.bu-cmd-card {
  margin: 0;
  background: #fff;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 24px 64px rgba(15,23,42,.25);
  padding: 14px 14px 12px;
  display: grid;
  gap: 10px;
  max-height: min(88dvh, 720px);
}
.bu-cmd-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.bu-cmd-head h2 { margin: 2px 0 0; font-size: 1.15rem; letter-spacing: -0.02em; }
.bu-cmd-sub { margin: 4px 0 0; font-size: 12px; color: #64748b; }
.bu-cmd-search {
  height: 44px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  padding: 0 12px;
  font: inherit;
  font-size: 16px;
  width: 100%;
}
.bu-cmd-cats {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}
.bu-cmd-cat-btn {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 11px;
  font-weight: 800;
  color: #475569;
  cursor: pointer;
}
.bu-cmd-cat-btn.is-on {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}
.bu-cmd-meta {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
}
.bu-cmd-list {
  max-height: min(48dvh, 380px);
  overflow: auto;
  display: grid;
  gap: 6px;
  padding-right: 2px;
}
.bu-cmd-cat {
  margin: 8px 0 2px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  position: sticky;
  top: 0;
  background: #fff;
  padding: 4px 0;
  z-index: 1;
}
.bu-cmd-item {
  text-align: left;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  display: grid;
  gap: 2px;
}
.bu-cmd-item:hover, .bu-cmd-item:focus-visible {
  border-color: #93c5fd;
  background: #eff6ff;
  outline: none;
}
.bu-cmd-item strong { font-size: 13px; }
.bu-cmd-item span { font-size: 12px; color: #64748b; word-break: break-word; }
.bu-cmd-empty { margin: 12px 0; color: #64748b; text-align: center; }

@media (max-width: 900px) {
  .bu-cmd-dialog {
    max-width: 100vw;
    width: 100vw;
    max-height: 100dvh;
    border-radius: 0;
    margin: 0;
  }
  .bu-cmd-card {
    border-radius: 0;
    max-height: 100dvh;
    min-height: 100dvh;
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
  }
  .bu-cmd-list { max-height: none; flex: 1; min-height: 40dvh; }
  .bu-mobile-fab {
    bottom: calc(14px + env(safe-area-inset-bottom));
  }
  .bu-board .bu-geo,
  .bu-board input[type="search"],
  .bu-board input[type="number"],
  .bu-board .bu-dispo-form input {
    font-size: 16px !important;
  }
  body.bu-board-page .bu-switch [data-view="dispo"] {
    display: none;
  }
  .bu-fab-ai.is-on,
  #bu-fab-ai.is-on {
    box-shadow: 0 0 0 3px rgba(29, 111, 216, 0.35);
  }
  .landing-page .landing-intro-body {
    padding-top: 28px;
  }
  .landing-chrome-sticky {
    overscroll-behavior: contain;
  }
}
