/* Embedding chrome only. Native graph nodes, edges, tools and theme are intact. */
.landing-viewer-return,
.graph-viewer-header {
  display: none !important;
}
.graph-file-viewer,
.graph-viewer-workspace,
.graph-viewer-canvas {
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden;
}
.graph-viewer-workspace {
  flex-direction: row !important;
  flex: 1 !important;
}
.graph-viewer-canvas {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  width: auto !important;
}
.graph-focus-overlay {
  top: auto !important;
  bottom: 12px !important;
  left: 12px !important;
  max-width: calc(100% - 28px) !important;
  pointer-events: none !important;
}
.graph-focus-overlay > :not(.graph-viewer-tools) {
  display: none !important;
}
.graph-focus-overlay > .graph-viewer-tools {
  pointer-events: auto;
}
.graph-viewer-tools {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  width: auto;
  background: transparent;
  border: 0;
  padding: 0;
}
.graph-viewer-controls {
  flex: none;
}
.graph-viewer-tools input {
  width: 200px;
  min-width: 0;
}
/* The floating viewer inspector is not part of the shipped product demo. */
.graph-viewer-details {
  display: none !important;
}
.canvas-minimap {
  top: auto !important;
  right: 14px !important;
  bottom: 12px !important;
  left: auto !important;
}
@media (max-width: 899px) {
  .canvas-minimap {
    top: 14px !important;
    bottom: auto !important;
  }
  .graph-focus-overlay {
    top: auto !important;
    bottom: 12px !important;
  }
  .graph-viewer-tools {
    flex-direction: column;
    width: 310px;
  }
  .graph-viewer-tools input {
    width: 100%;
  }
}

/* Let the opened module introduce the product before navigation tools appear. */
html:not(.is-exploring) .graph-focus-overlay,
html:not(.is-exploring) .canvas-minimap {
  visibility: hidden !important;
  pointer-events: none !important;
}

/* The small embed needs only framing and zoom. Fullscreen exposes all tools. */
html:not(.is-fullscreen) .graph-viewer-tools input,
html:not(.is-fullscreen) .graph-viewer-controls button:nth-child(n + 4),
html:not(.is-fullscreen) .canvas-minimap {
  display: none !important;
}
html:not(.is-fullscreen) .graph-viewer-tools {
  width: auto;
}

/* Keep the module name legible in the compact introduction. */
html:not(.is-fullscreen)
  .module-container[data-node-id="block"][data-error="false"]
  .module-container-header
  .module-pill.status,
html:not(.is-fullscreen)
  .module-container-header
  .canvas-tooltip-anchor:has([aria-label="Reset module layout"]) {
  display: none;
}
