[data-wd-demo="flexible-graph-modeller"] .gm-role {
  width: 148px;
}

[data-wd-demo="flexible-graph-modeller"] .gm-tree,
[data-wd-demo="flexible-graph-modeller"] .gm-tree ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

[data-wd-demo="flexible-graph-modeller"] .gm-tree ul {
  margin-left: 12px;
  padding-left: 10px;
  border-left: 1px solid #373b3e;
}

[data-wd-demo="flexible-graph-modeller"] .gm-node {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
}

[data-wd-demo="flexible-graph-modeller"] .gm-node:hover {
  background: rgba(255, 255, 255, 0.06);
}

[data-wd-demo="flexible-graph-modeller"] .gm-node.is-on {
  background: #0d6efd;
  color: #fff;
}

[data-wd-demo="flexible-graph-modeller"] .gm-type {
  font-size: 11px;
  color: #8f979e;
  text-transform: lowercase;
}

[data-wd-demo="flexible-graph-modeller"] .gm-node.is-on .gm-type {
  color: rgba(255, 255, 255, 0.8);
}

[data-wd-demo="flexible-graph-modeller"] .gm-prop {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #373b3e;
  font-size: 13px;
}

[data-wd-demo="flexible-graph-modeller"] .gm-prop:last-child {
  border-bottom: 0;
}

[data-wd-demo="flexible-graph-modeller"] .gm-fill {
  height: 100%;
  width: 60%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffc107, #ffd666);
  transition: width 0.6s ease, background 0.6s ease;
}

[data-wd-demo="flexible-graph-modeller"] .gm-fill.is-full,
[data-wd-demo="flexible-graph-modeller"] .gm-fill.w100 {
  width: 100%;
  background: linear-gradient(90deg, #198754, #4ade80);
}

[data-wd-demo="flexible-graph-modeller"] .gm-fill.w40 { width: 40%; }
[data-wd-demo="flexible-graph-modeller"] .gm-fill.w80 { width: 80%; }

[data-wd-demo="flexible-graph-modeller"] .gm-mini {
  width: 88px;
}

[data-wd-demo="flexible-graph-modeller"] .gm-json {
  background: #111316;
  border: 1px solid #373b3e;
  border-radius: 6px;
  padding: 10px 12px;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #d7dde3;
  margin: 0;
}

[data-wd-demo="flexible-graph-modeller"] .gm-filter {
  width: 180px;
}

[data-wd-demo="flexible-graph-modeller"] .gm-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid #373b3e;
  font-size: 13px;
}

[data-wd-demo="flexible-graph-modeller"] .gm-line:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

[data-wd-demo="flexible-graph-modeller"] .gm-cut {
  text-decoration: line-through;
  opacity: 0.55;
}

[data-wd-demo="flexible-graph-modeller"] .gm-score {
  margin-top: 12px;
}

[data-wd-demo="flexible-graph-modeller"] .gm-track {
  margin-top: 8px;
}
