.mutyi-explorer {
  --mx-bg: #090c0e;
  --mx-panel: #0e1316;
  --mx-line: #d6b643;
  --mx-gold: #f0c94e;
  --mx-text: #e7e8e5;
  --mx-muted: #92a0a2;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 440px;
  overflow: hidden;
  color: var(--mx-text);
  background: radial-gradient(ellipse at 52% 48%, #111719 0, var(--mx-bg) 68%);
  border: 1px solid #252f32;
  border-radius: 12px;
  font-family: inherit;
}
.mx-toolbar { z-index: 2; display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-bottom: 1px solid #1e292c; background: #090d0fe8; }
.mutyi-explorer .mx-toolbar .mx-search { display: block; flex: 1 1 250px; min-width: 110px; }
.mutyi-explorer .mx-toolbar .mx-mode { display: inline-flex; }
.mx-search input { width: 100%; box-sizing: border-box; padding: 10px 13px; color: var(--mx-text); background: #101719; border: 1px solid #2a373a; border-radius: 6px; font: inherit; font-size: 13px; }
.mx-search input::placeholder { color: #7f8d90; }
.mx-mode, .mx-zoom { display: inline-flex; flex: 0 0 auto; gap: 3px; padding: 3px; border: 1px solid #273337; border-radius: 7px; background: #0d1214; }
.mx-toolbar button { min-width: 36px; min-height: 34px; padding: 6px 10px; color: #aeb8b9; background: transparent; border: 0; border-radius: 4px; font: inherit; font-size: 12px; cursor: pointer; }
.mx-toolbar button:hover, .mx-toolbar button:focus-visible { color: #fff; background: #20292b; outline: 1px solid #81702f; }
.mx-toolbar button[aria-pressed="true"] { color: #18160e; background: var(--mx-gold); font-weight: 700; }
.mx-zoom button { min-width: 31px; padding: 5px; font-size: 17px; }
.mutyi-explorer > svg { display: block; flex: 1 1 auto; width: 100%; min-height: 370px; touch-action: none; cursor: grab; }
.mutyi-explorer > svg:active { cursor: grabbing; }
.mx-edge { stroke: var(--mx-line); stroke-width: 1.15; opacity: .24; cursor: pointer; vector-effect: non-scaling-stroke; transition: opacity .2s, stroke-width .2s; }
.mx-edge:hover, .mx-edge:focus-visible { stroke-width: 2.3; opacity: .95; outline: none; }
.mx-edge-focus { opacity: .64; }
.mx-membership-edge { stroke: #9a8852; stroke-dasharray: 2.5 5; opacity: .28; }
.mx-edge-context { opacity: .075; }
.mx-membership-edge.mx-edge-context { opacity: .025; }
.mx-node { cursor: pointer; text-anchor: middle; outline: none; transition: opacity .22s; }
.mx-hit { fill: transparent; stroke: transparent; pointer-events: all; }
.mx-node:focus-visible .mx-image-ring, .mx-node:focus-visible .mx-core { stroke: #fff5c7; stroke-width: 3; }
.mx-halo { fill: transparent; stroke: transparent; pointer-events: none; }
.mx-case .mx-halo { fill: #f0c94e12; stroke: #e8c34442; stroke-width: 1; }
.mx-node.is-selected .mx-halo { fill: #f3cc4e40; stroke: #ffe27a; stroke-width: 2; }
.mx-core { fill: #111719; stroke: #b49a43; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.mx-case .mx-core { fill: #29230e; stroke: var(--mx-gold); stroke-width: 1.8; }
.mx-image { pointer-events: none; }
.mx-image-ring { fill: none; stroke: #bca64f; stroke-width: 1.3; vector-effect: non-scaling-stroke; pointer-events: none; }
.mx-glyph { fill: #e9cd72; font-size: 15px; font-weight: 700; pointer-events: none; }
.mx-label { fill: var(--mx-text); font-size: 12px; font-weight: 650; paint-order: stroke; stroke: #090c0e; stroke-width: 3px; stroke-linejoin: round; pointer-events: none; }
.mx-label-suppressed { opacity: 0 !important; }
.mx-label-priority { opacity: 1 !important; }
.mx-case .mx-label { fill: #fff2ba; font-size: 13px; }
.mx-sub-label { fill: #d5bd70; font-size: 10px; font-weight: 500; paint-order: stroke; stroke: #090c0e; stroke-width: 3px; pointer-events: none; }
.mx-node.is-dimmed { opacity: .23; }
.mx-node.is-selected { opacity: 1; }
.mx-node.is-selected .mx-label { fill: #fff; font-size: 15px; }
.mx-node.mx-person:not(:hover):not(:focus-visible):not(.is-selected) .mx-label,
.mx-node.mx-company:not(:hover):not(:focus-visible):not(.is-selected) .mx-label,
.mx-node.mx-organisation:not(:hover):not(:focus-visible):not(.is-selected) .mx-label,
.mx-node.mx-organization:not(:hover):not(:focus-visible):not(.is-selected) .mx-label { opacity: 0; }
.mx-node.mx-person:hover .mx-label, .mx-node.mx-person:focus-visible .mx-label,
.mx-node.mx-company:hover .mx-label, .mx-node.mx-company:focus-visible .mx-label,
.mx-node.mx-organisation:hover .mx-label, .mx-node.mx-organisation:focus-visible .mx-label,
.mx-node.mx-organization:hover .mx-label, .mx-node.mx-organization:focus-visible .mx-label { opacity: 1; }
.mx-legend { display: flex; flex-wrap: wrap; gap: 8px 17px; padding: 8px 14px 10px; color: var(--mx-muted); border-top: 1px solid #1e292c; font-size: 10px; }
.mx-legend span { display: inline-flex; align-items: center; gap: 7px; }
.mx-line { display: inline-block; width: 20px; border-top: 1px solid var(--mx-gold); }
.mx-line.mx-membership { border-top-style: dashed; border-color: #9a8852; }
.mx-dot { width: 8px; height: 8px; border: 1px solid var(--mx-gold); border-radius: 50%; background: #bca64f33; }
.mx-status { position: absolute; z-index: 1; right: 13px; bottom: 42px; max-width: 45%; padding: 6px 9px; color: #c3cccb; background: #090d0dd9; border: 1px solid #253033; border-radius: 5px; font-size: 11px; pointer-events: none; }
.mx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
@media (max-width: 680px) {
  .mutyi-explorer { min-height: 380px; border-radius: 8px; }
  .mx-toolbar { flex-wrap: wrap; gap: 7px; padding: 8px; }
  .mx-search { flex-basis: 100%; }
  .mx-mode { margin-right: auto; }
  .mutyi-explorer > svg { min-height: 300px; }
  .mx-case .mx-label { font-size: 11px; }
  .mx-label { font-size: 10px; }
  .mx-status { bottom: 45px; max-width: 55%; font-size: 10px; }
  .mx-legend { gap: 6px 12px; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) { .mx-node, .mx-edge, .mx-label { transition: none; } }

.mx-bubble-name { fill: #fff2ba; font-weight: 700; pointer-events: none; }
.mx-bubble-amount { fill: #d5bd70; font-weight: 500; pointer-events: none; }
