/* Keep the authenticated company selector visible when navigation is collapsed.
   Skeleton markup has no data-tv-command=scope and stays unchanged. */
@media screen and (max-width: 900px) {
  body #tv-app > .app-shell[data-design-version="workspace-catalog-v1"]
  .tv-command-header .tv-command-header__center:has(> [data-tv-command="scope"]) {
    display: grid;
    grid-template-columns: minmax(140px, 240px) minmax(60px, 1fr);
  }
  body #tv-app > .app-shell[data-design-version="workspace-catalog-v1"]
  .tv-command-header .tv-command-header__center > .tv-command-scope[data-tv-command="scope"] {
    display: grid;
  }
  body #tv-app > .app-shell[data-design-version="workspace-catalog-v1"]
  .tv-command-header .tv-command-scope__copy strong {
    font-size: 12px;
  }
  body #tv-app > .app-shell[data-design-version="workspace-catalog-v1"]
  .tv-command-header .tv-command-scope__copy small {
    font-size: 11px;
  }
}
@media screen and (min-width: 521px) and (max-width: 900px) {
  body #tv-app > .app-shell[data-design-version="workspace-catalog-v1"]
  .tv-command-header .tv-command-search > .tv-command-search__label {
    display: grid;
  }
}
@media screen and (max-width: 520px) {
  body #tv-app > .app-shell[data-design-version="workspace-catalog-v1"]
  .tv-command-header .tv-command-header__center:has(> [data-tv-command="scope"]) {
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 6px;
  }
  body #tv-app > .app-shell[data-design-version="workspace-catalog-v1"]
  .tv-command-header .tv-command-search {
    width: 44px;
    min-width: 44px;
  }
}
/* A confirmed selector supplies real context. Remove only the empty default
   route badge; custom context labels and refreshed timestamps remain visible. */
body #tv-app > .app-shell[data-design-version="workspace-catalog-v1"]:has(.tv-command-scope[data-organization-code][data-branch-code])
.tv-route-context[aria-label="Company and branch context"]:not(:has(time)) {
  display: none;
}
