/*
 * Test v530: keep the compact automation headers inside their panel bounds.
 * Loaded after the v528 rebrand so these structural measurements win without
 * changing the expanded panel styling or any statistical data.
 */
.auto-helper-panel.client-open.collapsed,
.hunt-analyzer-panel.client-open.collapsed {
  box-sizing: border-box !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  overflow: hidden !important;
}

.auto-helper-panel.collapsed .auto-helper-head,
.hunt-analyzer-panel.collapsed .hunt-analyzer-head {
  box-sizing: border-box !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
}

.auto-helper-panel.collapsed .auto-helper-head {
  padding-block: 0 !important;
}

.auto-helper-panel.collapsed .auto-helper-brand::before {
  display: none !important;
}

.auto-helper-brand b,
.hunt-analyzer-head b,
.hunt-analyzer-head small {
  line-height: 1.15 !important;
  white-space: nowrap !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

/* The decorative brand rail occupies both title rows instead of displacing
   "SESSÃO ATUAL" into the narrow first grid column. */
.hunt-analyzer-head > span:first-child {
  grid-template-columns: 4px minmax(0, auto) !important;
  grid-template-rows: auto auto !important;
  column-gap: 7px !important;
}

.hunt-analyzer-head > span:first-child::before {
  grid-column: 1 !important;
  grid-row: 1 / 3 !important;
  align-self: center !important;
  margin-right: 0 !important;
}

.hunt-analyzer-head > span:first-child > b {
  grid-column: 2 !important;
  grid-row: 1 !important;
}

.hunt-analyzer-head > span:first-child > small {
  grid-column: 2 !important;
  grid-row: 2 !important;
}

@media (max-width: 390px) {
  .hunt-analyzer-head > span:first-child {
    min-width: 0 !important;
  }
}
