

.right-panel {
  border: 1px solid #d9d9d9;
  border-radius: 18px;
  background: #fff;
  overflow: hidden;

  height: 100%;
  display: flex;
  flex-direction: column;
}

.right-plot {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

#mechanism-graph {
  flex: 1 1 auto;
  min-height: 0;
  height: 100% !important;
}

.integration-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  gap: 12px;
  margin-top: 8px;
  transform: none;
  padding-left: 30px;
}

.integration-action-wrap .btn {
  margin: 0;
}

.integration-status {
  min-height: 24px;
  text-align: center;
  font-size: 0.95rem;
  color: #9fb3c8;
  padding-top: 2px;
}

.integration-status--visible {
  visibility: visible;
}

.integration-status--hidden {
  visibility: hidden;
}

@media (max-width: 900px), (max-height: 700px), (orientation: portrait), (pointer: coarse) and (hover: none) {
  .right-panel {
    height: auto;
    min-height: 0;
  }

  .right-panel > .tabs-parent,
  .right-panel > .tabs-parent > .tab-content,
  .right-plot {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  #mechanism-graph {
    flex: 0 0 auto;
    min-height: 320px;
    max-height: 440px;
    height: clamp(320px, 56vh, 440px) !important;
    height: clamp(320px, 56dvh, 440px) !important;
  }

  #mechanism-graph .js-plotly-plot,
  #mechanism-graph .plot-container,
  #mechanism-graph .svg-container {
    height: 100% !important;
  }
}
