/* ============================================================
   Admin topbar — APP LAYER of the design system (from console.css).
   52px bar: breadcrumbs (left) + global search + account avatar.
   Flat surfaces, 1px borders, no shadows; brand orange only for
   focus ring. Desktop only — mobile keeps its hamburger bar.
   ============================================================ */

.topbar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 40;
  height: 52px;
  flex: none;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  background: #fff;
  border-bottom: 1px solid #e6e7ec;
}
@media (min-width: 1024px) {
  .topbar { display: flex; }
}

/* — breadcrumbs — */
.crumbs {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #9498a6;
  min-width: 0;
}
.crumbs a { color: #6b6f7e; font-weight: 500; text-decoration: none; }
.crumbs a:hover { color: #20222b; }
.crumbs .cur {
  color: #20222b;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.crumbs svg { flex: none; color: #c6c7ce; }

/* — global search — */
.topbar-search {
  margin-left: auto;
  position: relative;
  width: 260px;
}
.topbar-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  border: 1px solid #e6e7ec;
  border-radius: 8px;
  background: #f6f7f9;
  padding: 0 10px;
  color: #9498a6;
  font-size: 12.5px;
  transition: border-color .12s, box-shadow .12s;
}
.topbar-search-box:focus-within {
  border-color: #e75800;
  box-shadow: 0 0 0 3px rgba(231, 88, 0, .12);
  background: #fff;
}
.topbar-search-box svg { flex: none; }
.topbar-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 12.5px;
  color: #20222b;
}
.topbar-search-input::placeholder { color: #9498a6; }
.topbar-search-box kbd {
  margin-left: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  border: 1px solid #e6e7ec;
  border-radius: 4px;
  background: #fff;
  padding: 1px 5px;
  color: #9498a6;
}

/* — search results popover — */
.topbar-search-pop {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 420px;
  max-height: min(70vh, 560px);
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e6e7ec;
  border-radius: 10px;
  box-shadow: 0 12px 32px -12px rgba(32, 34, 43, .35);
  padding: 14px;
}
.topbar-search-pop.hidden { display: none; }

/* — account avatar — */
.topbar .avatar {
  height: 30px;
  width: 30px;
  flex: none;
  border-radius: 99px;
  background: linear-gradient(135deg, #454956, #20222b);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .12s;
}
.topbar .avatar:hover { opacity: .85; }
