/* A non-modal glass inspector floats above the full colour stage. */
body.jarvis-softform .graph-shell {
  --inspector-width: 300px;
  --inspector-reserve: 332px;
  display: block;
  position: relative;
  grid-template-columns: none;
}
body.jarvis-softform .graph-shell .graph-main { position: relative; min-width: 0; }
body.jarvis-softform .graph-shell #graph-content { width: 100%; min-width: 0; }
@media (min-width: 961px) {
  body.jarvis-softform .graph-shell.inspector-open #graph-content { width: calc(100% - var(--inspector-reserve)); }
}
body.jarvis-softform .graph-shell .details-panel.sf-inspector {
  --sf-ink: #303733;
  --sf-muted: #68746c;
  --sf-faint: #859087;
  --sf-fg: #303733;
  --sf-text-muted: #68746c;
  --sf-well-fill: #e6ece566;
  --sf-well-shadow: #738a7f20;
  --sf-well-light: #ffffffd9;
  --sf-selected-fill: #ffffffd9;
  --sf-button-fill: linear-gradient(145deg, #fffffff0, #ffffffb8);
  --sf-lens-fill: linear-gradient(155deg, #ffffffad, #ffffff73);
  --sf-rule: #7a8d8020;
  --sf-track: #c9d5cd66;
  --sf-focus: var(--j-primary-ink, #9465b8);
  --text: #303733;
  --muted: #68746c;
  --muted2: #859087;
  --line: #7a8d8020;
  --input: #e6ece566;
  --panel: #ffffff80;
  --panel-solid: #f8faf6;
  --j-round-fill: linear-gradient(145deg, #fffffff7, #f2f5f2e6);
  --j-round-light: #ffffffdb;
  --j-round-shade: #4254481c;
  --j-round-rim: #ffffffeb;
  --j-round-inset: #71817812;
  display: flex;
  flex-direction: column;
  position: absolute;
  z-index: 4000;
  top: 62px;
  right: 16px;
  bottom: auto;
  left: auto;
  width: var(--inspector-width);
  max-width: calc(100% - 32px);
  height: auto;
  min-height: 0;
  max-height: calc(100% - 82px);
  box-sizing: border-box;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--sf-radius-md);
  color: var(--sf-fg);
  background: linear-gradient(145deg, #ffffffbf, #fffaf2a6);
  box-shadow: 0 12px 34px #283b3a12, inset 1px 1px 0 #ffffff80;
  backdrop-filter: blur(24px) saturate(1.08);
  -webkit-backdrop-filter: blur(24px) saturate(1.08);
  isolation: isolate;
  font-family: var(--sf-font);
  animation: jarvis-inspector-in 220ms var(--sf-ease);
}
body.jarvis-softform .graph-shell .details-panel.sf-inspector[hidden] { display: none !important; }
body.jarvis-softform .sf-inspector .inspector-content {
  flex: 1 1 auto;
  min-height: 0;
  padding: 25px 22px 22px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #87988c55 transparent;
}
body.jarvis-softform .sf-inspector .detail-label { margin-right: 44px; min-height: 20px; margin-bottom: 18px; color: var(--sf-text-muted); font-size: 10px; line-height: 1.4; letter-spacing: .8px; }
body.jarvis-softform .sf-inspector .detail-name { font-size: 21px; line-height: 1.3; color: var(--sf-fg); }
body.jarvis-softform .sf-inspector .detail-role { color: var(--sf-text-muted); font-size: 12px; line-height: 1.5; }
body.jarvis-softform .sf-inspector .detail-section { margin-top: 22px; }
body.jarvis-softform .sf-inspector .detail-section-title { color: var(--sf-text-muted); font-size: 10px; line-height: 1.5; letter-spacing: .65px; }
body.jarvis-softform .sf-inspector .detail-channel { color: var(--sf-fg); font-size: 13px; line-height: 1.5; }
body.jarvis-softform .sf-inspector .detail-relation { color: var(--sf-fg); background: var(--sf-well-fill); border: 0; box-shadow: none; }
body.jarvis-softform .sf-inspector .detail-relation small { color: var(--sf-text-muted); }
body.jarvis-softform .sf-inspector .source-chip { color: var(--sf-text-muted); background: #ffffff61; }
body.sf-system.jarvis-softform .sf-inspector .inspector-close.sf-button {
  position: absolute;
  z-index: 2;
  top: 13px;
  right: 13px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  max-width: 44px;
  max-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #3f4b43;
  background: var(--j-round-fill);
  box-shadow: -2px -2px 6px var(--j-round-light), 3px 4px 8px var(--j-round-shade), inset 1px 1px 1px var(--j-round-rim);
  transform: none;
  translate: none;
}
body.jarvis-softform .sf-inspector .inspector-close > svg { width: 20px; height: 20px; stroke-width: 1.5; transform-origin: center; transition: transform var(--j-motion-control, 220ms) var(--j-motion-ease, var(--sf-ease)); }
body.jarvis-softform .sf-inspector .inspector-close:focus-visible > svg { transform: rotate(90deg); }
body.jarvis-softform .sf-inspector .inspector-close:active { box-shadow: inset 2px 3px 5px var(--j-round-shade), inset -2px -2px 4px var(--j-round-light); }
@media (hover: hover) and (pointer: fine) {
  body.jarvis-softform .sf-inspector .inspector-close:hover > svg { transform: rotate(90deg); }
}
body.jarvis-softform .cluster-workbench.expanded .graph-shell { display: block; }
body.jarvis-softform .cluster-workbench.expanded .graph-main { height: 100%; }
body.jarvis-softform .cluster-workbench.expanded .details-panel.sf-inspector { height: auto; max-height: calc(100% - 82px); }
@media (max-width: 960px) {
  body.jarvis-softform .graph-shell .details-panel.sf-inspector { width: 290px; }
}
@media (max-width: 700px) {
  body.jarvis-softform .graph-shell .details-panel.sf-inspector,
  body.jarvis-softform .cluster-workbench.expanded .details-panel.sf-inspector {
    top: auto;
    right: 12px;
    bottom: 44px;
    left: 12px;
    width: auto;
    max-width: none;
    max-height: 56%;
  }
  body.jarvis-softform .sf-inspector .inspector-content { padding: 24px 21px 21px; }
}
@keyframes jarvis-inspector-in { from { opacity: 0; translate: 0 5px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) {
  body.jarvis-softform .graph-shell .details-panel.sf-inspector { animation: none; }
  body.jarvis-softform .sf-inspector .inspector-close > svg { transform: none !important; transition: none; }
}
