.mwx-binding-panel {
  --mwx-ink: #20344e;
  --mwx-muted: #52677f;
  --mwx-border: #d5dfec;
  --mwx-blue: #24579e;
  --mwx-hint: #edf4ff;
  box-sizing: border-box;
  width: min(960px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100% - 24px);
  padding: 0;
  background: #fff;
  color: var(--mwx-ink);
  border: 1px solid var(--mwx-border);
  border-radius: 8px;
  font: 14px/1.45 system-ui, sans-serif;
}
.mwx-binding-panel[open] { display: flex; flex-direction: column; }
.mwx-binding-panel::backdrop { background: rgb(24 38 59 / 44%); }
.mwx-binding-panel button, .mwx-binding-panel select { color: inherit; font: inherit; }
.mwx-binding-panel button { cursor: pointer; }
.mwx-binding-panel button:focus-visible, .mwx-binding-panel select:focus-visible {
  outline: 2px solid var(--mwx-blue);
  outline-offset: 2px;
}
.mwx-bind-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: #204982;
  color: white;
}
.mwx-bind-head button, .mwx-bind-history button {
  border: 1px solid var(--mwx-border);
  border-radius: 4px;
  padding: 4px 10px;
  background: transparent;
}
.mwx-bind-head button:focus-visible { outline-color: white; }
.mwx-bind-status { margin: 0; padding: 9px 16px; min-height: 40px; color: var(--mwx-muted); }
.mwx-bind-scroll { min-height: 0; overflow: auto; }
.mwx-bind-board {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1.12fr);
  gap: clamp(24px, 10vw, 110px);
  padding: 14px 20px 20px;
  background: #f6f8fb radial-gradient(#dae4ef 1px,transparent 1px) 0 0 / 15px 15px;
}
.mwx-bind-side { min-width: 0; position: relative; z-index: 1; }
.mwx-binding-panel h2, .mwx-binding-panel h3 { font-size: 14px; margin: 0 0 8px; }
.mwx-bind-input-heading { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 8px; }
.mwx-bind-input-heading h2 { margin: 0; }
.mwx-bind-input-filter {
  min-width: 0; max-width: 53%; padding: 3px 6px;
  background: #fff; border: 1px solid var(--mwx-border); border-radius: 4px;
}
.mwx-bind-input-group:not([hidden]) ~ .mwx-bind-input-group:not([hidden]) { margin-top: 14px; }
.mwx-bind-input-group [hidden] { display: none; }
.mwx-bind-input-empty { margin: 8px 0; color: var(--mwx-muted); }
.mwx-binding-panel .mwx-bind-input-group h3 {
  margin: 0 0 6px; color: var(--mwx-muted); font-size: 12px; font-weight: 600;
}
.mwx-bind-source {
  margin-bottom: 8px; width: 100%; border: 1px solid var(--mwx-border); padding: 5px 6px;
  background: white; border-radius: 4px;
}
.mwx-bind-card {
  margin: 0 0 9px;
  background: white;
  border: 1px solid var(--mwx-border);
  border-radius: 6px;
}
.mwx-bind-card:last-child { margin-bottom: 0; }
.mwx-bind-card-head {
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: 0;
  border-radius: 5px 5px 0 0;
  background: #f4f7fb;
  overflow-wrap: anywhere;
}
.mwx-bind-card-head strong, .mwx-bind-card-head small, .mwx-bind-history-item small { display: block; }
.mwx-bind-card-head small, .mwx-bind-port code, .mwx-bind-history-item small { color: var(--mwx-muted); }
.mwx-bind-card.mwx-bind-highlight { border-color: var(--mwx-blue); }
.mwx-bind-highlight .mwx-bind-card-head { background: var(--mwx-hint); }
.mwx-bind-port {
  position: relative;
  width: 100%;
  min-height: 44px;
  padding: 6px 10px;
  border: 0;
  border-top: 1px solid var(--mwx-border);
  text-align: left;
  background: transparent;
  overflow-wrap: anywhere;
}
.mwx-bind-port[data-output] { touch-action: none; }
.mwx-bind-port[aria-pressed="true"], .mwx-bind-port.mwx-bind-eligible { background: var(--mwx-hint); }
.mwx-bind-port-label { display: flex; align-items: baseline; gap: 4px 8px; flex-wrap: wrap; }
.mwx-bind-port-label small { font-size: 12px; color: var(--mwx-blue); }
.mwx-bind-port code { display: block; white-space: normal; font-size: 12px; }
.mwx-bind-dot {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border: 2px solid var(--mwx-blue);
  border-radius: 50%;
  background: white;
  transform: translateY(-50%);
}
.mwx-bind-port[data-output] .mwx-bind-dot { right: -7px; }
.mwx-bind-port[data-input] .mwx-bind-dot { left: -7px; }
.mwx-bind-dot::after {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
}
.mwx-bind-connected .mwx-bind-dot { background: var(--mwx-blue); }
.mwx-bind-extra summary, .mwx-bind-empty { padding: 7px 10px; margin: 0; }
.mwx-bind-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  color: var(--mwx-blue);
}
.mwx-bind-lines path { stroke: currentColor; fill: none; stroke-width: 2; }
.mwx-bind-lines.mwx-bind-has-highlight path[data-connection]:not(.mwx-bind-wire-active) { opacity: .3; }
.mwx-bind-lines path.mwx-bind-wire-active { stroke-width: 4; stroke: #175abd; }
.mwx-bind-lines path.mwx-bind-wire-hit { stroke: transparent; stroke-width: 18; pointer-events: stroke; cursor: pointer; }
.mwx-binding-panel .mwx-bind-wire-remove {
  position: absolute; z-index: 2; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 24px; height: 24px;
  padding: 0; border-radius: 50%; border: 1px solid #9caec4; background: #fff;
  color: #284a73; font-size: 18px; line-height: 1;
}
.mwx-bind-wire-remove[hidden] { display: none; }
.mwx-binding-panel .mwx-bind-wire-remove:hover,.mwx-binding-panel .mwx-bind-wire-remove:focus-visible {
  border-color: #a33339; color: #a33339; background: #fff1f2;
}
.mwx-bind-port.mwx-bind-route-endpoint,.mwx-bind-history-item[aria-current="true"] { background: #e7f0ff; }
.mwx-bind-route-tools {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px;
  padding: 6px 16px 10px; border-bottom: 1px solid var(--mwx-border);
}
.mwx-bind-route-tools[hidden] { display: none; }
.mwx-bind-route-tools button,.mwx-bind-route-tools select {
  max-width: 100%; background: #fff; border: 1px solid var(--mwx-border);
  border-radius: 4px; padding: 4px 6px;
}
.mwx-bind-route-tools button:disabled { color: var(--mwx-muted); cursor: default; }
.mwx-bind-route-caption {
  background: transparent; border: 0; text-align: left; padding: 4px; overflow-wrap: anywhere;
}
.mwx-bind-port:disabled { cursor: default; }
.mwx-bind-history { padding: 12px 16px 16px; border-top: 1px solid var(--mwx-border); }
.mwx-bind-history-list { margin: 0; padding: 0; list-style: none; }
.mwx-bind-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 0;
  overflow-wrap: anywhere;
}
.mwx-sidebar-connections {
  min-width: 0;
  padding: 7px 9px 4px;
  color: #20344e;
  font: 12px/1.45 system-ui, sans-serif;
}
.mwx-sidebar-connections-head { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; }
.mwx-sidebar-connections-head > span:first-child { display: flex; color: #24579e; }
.mwx-sidebar-connections h3 { margin: 0; font-size: 13px; font-weight: 600; }
.mwx-sidebar-connections-count { padding: 0 6px; border-radius: 9px; background: #e7effa; color: #24579e; }
.mwx-sidebar-connections p { margin: 0; color: #52677f; }
.mwx-sidebar-connections ul { margin: 0; padding: 0; list-style: none; }
.mwx-sidebar-connections li + li { margin-top: 6px; }
.mwx-sidebar-route { position: relative; background: #fff; border: 1px solid #d5dfec; border-radius: 6px; }
.mwx-sidebar-route-link {
  display: block;
  width: calc(100% - 44px);
  min-height: 44px;
  padding: 8px 10px;
  background: transparent;
  border: 0;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.mwx-sidebar-route summary {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  list-style: none;
  border-radius: 0 5px 0 0;
  cursor: pointer;
}
.mwx-sidebar-route summary::-webkit-details-marker { display: none; }
.mwx-sidebar-route summary:hover,.mwx-sidebar-route-link:hover { background: #f4f7fb; }
.mwx-sidebar-route summary:focus-visible,.mwx-sidebar-route-link:focus-visible { outline: 2px solid #24579e; outline-offset: -2px; }
.mwx-sidebar-flow {
  position: relative;
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 8px 6px;
  isolation: isolate;
}
.mwx-sidebar-flow::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 28px;
  width: 2px;
  background: #5b7cab;
  z-index: -1;
}
.mwx-sidebar-flow-start {
  width: 7px; height: 7px; margin-top: 5px; place-self: start center;
  background: #24579e; border-radius: 50%;
}
.mwx-sidebar-flow-end {
  width: 7px; height: 7px; margin-top: 4px; place-self: start center;
  border: solid #24579e; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.mwx-sidebar-endpoint strong,.mwx-sidebar-endpoint span { display: block; overflow-wrap: anywhere; }
.mwx-sidebar-endpoint span { color: #52677f; }
.mwx-sidebar-chevron {
  width: 7px; height: 7px; border: solid #52677f; border-width: 0 2px 2px 0; transform: rotate(-45deg);
}
.mwx-sidebar-route-disclosure[open] .mwx-sidebar-chevron { transform: rotate(45deg); }
.mwx-sidebar-route-body { border-top: 1px solid #d5dfec; padding: 7px 10px; }
.mwx-sidebar-route-body dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 8px; margin: 0 0 7px; }
.mwx-sidebar-route-body dt { color: #52677f; }
.mwx-sidebar-route-body dd { margin: 0; }
.mwx-sidebar-route-body code { display: block; overflow-wrap: anywhere; }
@media (max-width: 520px) {
  .mwx-bind-board { gap: 22px; padding-inline: 10px; }
  .mwx-bind-card-head, .mwx-bind-port { padding-inline: 7px; }
}
