.vesta-topbar {
  position: sticky;
  top: 0;
  z-index: 300;
  flex: 0 0 auto;
  min-height: var(--vesta-topbar-h);
  background:#fff;
  border-bottom:1px solid var(--vesta-border);
  display:flex;
  flex-direction:column;
  padding:0 var(--vesta-page-padding);
}
.vesta-topbar__row--main {
  min-height: var(--vesta-topbar-h);
  display:grid;
  grid-template-columns:auto minmax(280px, 1fr) auto;
  gap:18px;
  align-items:center;
}
.vesta-topbar__row--mobile-search {
  display:none;
  padding:0 0 14px;
}
.vesta-topbar__row--mobile-search.is-open {
  display:block;
}
.vesta-topbar__left, .vesta-topbar__right {
  display:flex;
  align-items:center;
  gap:12px;
}
.vesta-topbar__title-wrap { min-width: 0; }
.vesta-topbar__title { font-size:15px; font-weight:600; }
.vesta-search {
  display:flex;
  align-items:center;
  gap:10px;
  height:44px;
  background:var(--vesta-surface);
  border:1px solid var(--vesta-border);
  border-radius:999px;
  padding:0 14px;
}
.vesta-search input { border:none; outline:none; background:transparent; padding:0; width:100%; }
.vesta-topbar__mobile-search-toggle { display:none; }

@media (max-width: 900px) {
  .vesta-topbar { padding: 0 16px; }
  .vesta-topbar__row--main {
    grid-template-columns:minmax(0, 1fr) auto;
    gap: 12px;
  }
  .vesta-topbar__center { display:none; }
  .vesta-topbar__mobile-search-toggle { display:grid; }
  .vesta-topbar__right { gap: 8px; }
  .vesta-user-chip__label { display:none; }
  .vesta-user-chip { padding-right: 6px; }
}

@media (max-width: 767px) {
  .vesta-topbar { padding: 0 12px; }
  .vesta-topbar__row--main { min-height: 60px; gap: 10px; }
  .vesta-topbar__left { min-width: 0; gap: 10px; }
  .vesta-topbar__title-wrap { overflow: hidden; }
  .vesta-breadcrumb {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
  }
  .vesta-topbar__title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
  }
  .vesta-topbar__create {
    padding: 0 12px;
    min-width: auto;
    gap: 6px;
  }
  .vesta-topbar__create span { display:none; }
}


@media (max-width: 767px) {
  .vesta-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1200;
    padding: var(--vesta-mobile-safe-top) 12px 0;
    min-height: var(--vesta-topbar-mobile-total);
    box-shadow: 0 1px 0 rgba(0,0,0,.04);
  }
  .vesta-topbar__row--main {
    min-height: var(--vesta-topbar-mobile-row-h);
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .vesta-topbar__row--mobile-search {
    padding-bottom: 12px;
  }
  .vesta-topbar__row--mobile-search.is-open {
    display:block;
  }
}
