/* Vrazvitii CTPA · 2026-11-05 · Mobile header hygiene.
   Desktop (>980px) remains unchanged. Topbar contains logo + one menu button.
   Extra controls keep their original JS handlers, with account/tariffs/admin
   in the existing service-menu and sync retry/conflict mirrored there. */
@media screen and (max-width: 980px) {
  .app-shell .main-column > .topbar {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    overflow: visible;
  }
  .app-shell .main-column > .topbar .desktop-breadcrumb {
    display: none !important;
  }
  .app-shell .main-column > .topbar .mobile-brand {
    display: flex !important;
    flex: 1 1 0%;
    min-width: 0;
    max-width: calc(100% - 56px);
    margin: 0;
    align-items: center;
    gap: 10px;
  }
  .app-shell .main-column > .topbar .mobile-brand > div:last-child {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .app-shell .main-column > .topbar .top-actions {
    display: contents !important;
  }
  /* These remain mounted: they are needed for current role, sync and account logic. */
  .app-shell .main-column > .topbar .top-actions > :not([data-go="service-menu"]) {
    display: none !important;
  }
  .app-shell .main-column > .topbar .top-actions > button[data-go="service-menu"] {
    display: grid !important;
    place-items: center;
    flex: 0 0 44px;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px;
    min-height: 44px;
    margin-left: auto !important;
    border-radius: 14px;
    z-index: 1;
  }
}
/* Sync status and diagnostic actions are available after opening Menu. */
.vraz-menu-sync {
  margin-top: 16px;
  padding: 13px 15px;
  border-radius: 13px;
  border: 1px solid var(--line, #dce6e9);
  background: var(--card, #fff);
  color: inherit;
  display: grid;
  gap: 10px;
  font-size: 13px;
}
.vraz-menu-sync > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.vraz-menu-sync strong { font-weight: 600; color: var(--muted, #657e84); }
.vraz-menu-sync .vraz-sync-menu-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.vraz-menu-sync [data-sync-menu-action] {
  min-height: 40px;
  border: 1px solid var(--line, #dce6e9);
  border-radius: 10px;
  background: var(--surface, #fff);
  color: inherit;
  padding: 7px 12px;
}
.vraz-menu-sync [hidden] { display:none !important; }
