.active_scene_header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.9rem;
  border: 1px solid var(--color_border);
  border-radius: var(--radius_lg);
  background: rgba(8, 12, 24, 0.82);
  backdrop-filter: blur(10px);
  padding: 0.7rem 0.9rem;
}

.active_scene_header__left,
.active_scene_header__center,
.active_scene_header__right {
  display: flex;
  align-items: center;
  min-width: 0;
}

.active_scene_header__center {
  justify-content: center;
  gap: 0.45rem;
}

.active_scene_header__right {
  justify-content: flex-end;
  gap: 0.65rem;
}

.active_scene_header__section_button {
  border: 1px solid rgba(147, 181, 235, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--color_text_secondary);
  font: inherit;
  font-size: var(--text_sm);
  font-weight: 600;
  padding: 0.58rem 1rem;
  cursor: pointer;
}

.active_scene_header__section_button.is_active {
  border-color: rgba(251, 180, 102, 0.58);
  background: rgba(255, 255, 255, 0.06);
  color: var(--color_text_primary);
}

@media (max-width: 980px) {
  .active_scene_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0.35rem;
    padding: 0.55rem 0.6rem;
    overflow: hidden;
  }

  .active_scene_header__left {
    flex: 0 0 auto;
  }

  .active_scene_header__center {
    flex: 0 1 auto;
    min-width: 0;
    justify-content: center;
    gap: 0.28rem;
  }

  .active_scene_header__right {
    flex: 0 1 auto;
    min-width: 0;
    justify-content: flex-end;
    gap: 0.3rem;
  }

  .active_scene_header__section_button {
    padding: 0.42rem 0.58rem;
    font-size: 0.68rem;
    line-height: 1.1;
  }
}
