/* Page-level navigation replaces redundant headings. Nested filters, chart
   periods and card tabs retain their own hierarchy and are not promoted. */
.main .r25-tab-header {
  display: flex; align-items: center; gap: 20px;
  min-height: var(--workspace-header-height, 56px);
  margin: 0 0 24px; padding: 0;
  border-bottom: 1px solid #e9e4ee;
  min-width: 0;
  box-sizing: border-box;
}
.main .r25-tab-header > :is(.mc-tabs,.ss-tabs,.as-tabs,.fm-subnav,.ha-tabs,.nf-tabs,.tp-mode-row) {
  flex: 1 1 auto; display: flex; align-items: stretch;
  min-width: 0; width: auto; gap: 24px;
  margin: 0; padding: 0; border: 0;
  min-height: calc(var(--workspace-header-height, 56px) - 1px);
  overflow-x: auto; scrollbar-width: thin;
}
.main .r25-tab-header > :is(.mc-tabs,.ss-tabs,.as-tabs,.fm-subnav,.ha-tabs,.nf-tabs,.tp-mode-row) > button {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto; white-space: nowrap; min-height: calc(var(--workspace-header-height, 56px) - 1px);
  padding: 0; margin: 0; border-radius: 0; background: transparent;
  border: 0; border-bottom: 2px solid transparent;
  font-size: var(--type-body-size) !important;
  line-height: var(--type-body-line) !important;
  font-weight: 500; color: var(--type-muted);
}
.main .r25-tab-header > :is(.mc-tabs,.ss-tabs,.as-tabs,.fm-subnav,.ha-tabs,.nf-tabs,.tp-mode-row) > button:is([aria-selected="true"],[aria-current="page"],.active,.is-active,.mb-active) {
  color: #8054b1; border-bottom-color: #9668c4; font-weight: 600;
}
.main .r25-tab-header > :is(.fm-btn,.fm-head-actions,.ha-offline) { flex: 0 0 auto; margin: 0; }
.main .r25-tab-header .mb-subtab::after { display: none; }
.main .r25-tab-meta { display: flex; justify-content: flex-end; margin: -10px 0 18px; }
.main .r25-tab-meta .mb-page-time { font-size: var(--type-caption-size); line-height: var(--type-caption-line); padding: 0; background: none; border: 0; color: var(--type-muted); white-space: normal; }
.main .r25-object-context { margin: 0 0 20px; min-width: 0; }
.main .r25-object-identity { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.main .r25-object-context h1 { font-size: var(--type-section-size); line-height: var(--type-section-line); font-weight: 600; margin: 0; }
.main .r25-object-context p { font-size: var(--type-caption-size); line-height: var(--type-caption-line); color: var(--type-muted); margin: 5px 0 0; }
.main .r25-tab-header + .fm-breadcrumb { min-height: 28px; margin: -10px 0 12px; }
@media (max-width: 1100px) {
  .main .r25-tab-header { gap: 12px; }
  .main .r25-tab-header > :is(.mc-tabs,.ss-tabs,.as-tabs,.fm-subnav,.ha-tabs,.nf-tabs,.tp-mode-row) { gap: 20px; }
}
