/* Workbench masthead only. No changes to entry/admin pages or module geometry. */
html.tql-brand.scout-workspace .compact-header {
  position: static;
  margin: 0;
  padding: 0;
  background: var(--tql-paper);
  border-bottom: 1px solid var(--tql-line);
}
html.tql-brand.scout-workspace .compact-header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  max-width: 1304px;
  min-height: 64px;
  margin: 0 auto;
  padding: 8px 32px;
}
html.tql-brand.scout-workspace .compact-header .tql-wordmark img { width: 190px; height: 40px; }
html.tql-brand.scout-workspace .compact-league {
  min-width: 0;
  padding-left: 24px;
  border-left: 1px solid var(--tql-line);
}
html.tql-brand.scout-workspace .compact-league h1 {
  overflow: hidden;
  color: var(--tql-forest);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -.2px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html.tql-brand.scout-workspace .compact-league-meta { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
html.tql-brand.scout-workspace .compact-header .badge {
  padding: 0 5px;
  border-color: var(--tql-line);
  background: var(--tql-canvas);
  color: var(--tql-muted);
  font-size: 10px;
  line-height: 1.6;
}
html.tql-brand.scout-workspace .compact-header .badge-live { background: #edf3e8; color: #286a4b; border-color: #c8d8c0; }
html.tql-brand.scout-workspace .compact-actions { display: flex; align-items: center; gap: 8px; }
html.tql-brand.scout-workspace .compact-updated { max-width: 190px; color: var(--tql-muted); font-size: 10px; line-height: 1.5; }
html.tql-brand.scout-workspace .compact-header .btn {
  min-height: 36px;
  padding: 6px 12px;
  border-color: var(--tql-line);
  background: white;
  color: var(--tql-forest);
  font-size: 11px;
  white-space: nowrap;
}
html.tql-brand.scout-workspace .compact-header .btn:hover { color: var(--tql-forest); background: var(--tql-canvas); border-color: #9cb38f; }
html.tql-brand.scout-workspace .compact-header .compact-search-submit { background: var(--tql-forest); border-color: var(--tql-forest); color: white; }
html.tql-brand.scout-workspace .compact-header .compact-search-submit:hover { background: #286a4b; border-color: #286a4b; }
html.tql-brand.scout-workspace .compact-league-search { display: flex; align-items: center; gap: 6px; margin: 0; }
html.tql-brand.scout-workspace .compact-league-search input { width: 128px; height: 36px; min-width: 0; padding: 6px 10px; border: 1px solid var(--tql-line); border-radius: 6px; background: var(--tql-canvas); color: var(--tql-forest); font-size: 13px; }
html.tql-brand.scout-workspace .compact-league-search input::placeholder { color: var(--tql-muted); }
html.tql-brand.scout-workspace #btnRefresh { gap: 4px; }
html.tql-brand.scout-workspace .compact-header + .tabs-shell .tabs { height: 44px; }
html.tql-brand.scout-workspace .compact-header + .tabs-shell .tab { height: 44px; }

@media (max-width: 1000px) {
  /* Keep update failures readable by assistive technology without widening the masthead. */
  html.tql-brand.scout-workspace .compact-updated { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  html.tql-brand.scout-workspace .compact-header-inner { gap: 16px; }
  html.tql-brand.scout-workspace .compact-league { padding-left: 16px; }
}
@media (max-width: 780px) {
  html.tql-brand.scout-workspace .compact-header-inner { padding-inline: 16px; gap: 12px; }
  html.tql-brand.scout-workspace .compact-header .tql-wordmark img { width: 156px; height: 34px; }
  html.tql-brand.scout-workspace .compact-league { padding-left: 12px; }
  html.tql-brand.scout-workspace .compact-league h1 { font-size: 14px; }
}
@media (max-width: 640px) {
  html.tql-brand.scout-workspace .compact-header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 0 8px; min-height: 0; padding: 0 12px; }
  html.tql-brand.scout-workspace .compact-header .tql-wordmark { min-height: 54px; }
  html.tql-brand.scout-workspace .compact-header .tql-wordmark img { --compact-logo-width: clamp(92px, calc(100vw - 236px), 152px); width: var(--compact-logo-width); height: calc(var(--compact-logo-width) / 4.6); }
  html.tql-brand.scout-workspace .compact-actions { grid-column: 2; grid-row: 1; gap: 6px; }
  html.tql-brand.scout-workspace .compact-header .btn { min-height: 36px; padding-inline: 9px; }
  html.tql-brand.scout-workspace .compact-league-search input { width: 88px; padding-inline: 6px; font-size: 16px; }
  html.tql-brand.scout-workspace .compact-header .compact-search-submit { width: 60px; padding-inline: 4px; }
  html.tql-brand.scout-workspace #btnRefresh { width: 36px; padding: 0; font-size: 17px; }
  html.tql-brand.scout-workspace .compact-refresh-label { display: none; }
  html.tql-brand.scout-workspace .compact-league { grid-column: 1 / -1; grid-row: 2; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 34px; padding: 5px 0; border-left: 0; border-top: 1px solid var(--tql-line); }
  html.tql-brand.scout-workspace .compact-league h1 { min-width: 0; font-size: 12px; }
  html.tql-brand.scout-workspace .compact-league-meta { flex-shrink: 0; gap: 4px; margin: 0; }
  html.tql-brand.scout-workspace .compact-header .badge-season { display: none; }
  html.tql-brand.scout-workspace .compact-header .badge { padding-inline: 4px; font-size: 9px; }
}
