/* Siam2Dev-UML 2.2.3.5.3.9 — Fix transparent 18px SVG hit targets revealed by the dark theme.
 * The renderer intentionally creates TWO .connector paths per relationship:
 * visible stroke (~2.3px) plus a transparent 18px hit path for accessible selection.
 * Theme selectors must never recolor the transparent hit path.
 */
#canvas #edges path.connector[stroke="transparent"],
html[data-ui-theme="flow"] #canvas #edges path.connector[stroke="transparent"],
html[data-ui-theme="flow"] #canvas #edges path.connector.selected[stroke="transparent"] {
  stroke: transparent !important;
  stroke-opacity: 0 !important;
  stroke-width: 18 !important;
  fill: none !important;
  pointer-events: stroke;
  marker-end: none !important;
}
/* Visually thin connection lines even on dark backgrounds. Do not alter the hit targets. */
html[data-ui-theme="flow"]:not([data-canvas-scheme="white"]):not([data-canvas-scheme="soft"]) #canvas #edges path.connector:not([stroke="transparent"]) {
  stroke: #d9edf8 !important;
  stroke-opacity: 1 !important;
  stroke-width: 2 !important;
  fill: none !important;
}
html[data-ui-theme="flow"]:not([data-canvas-scheme="white"]):not([data-canvas-scheme="soft"]) #canvas #edges path.connector.selected:not([stroke="transparent"]) {
  stroke: #ffd166 !important;
  stroke-width: 2.4 !important;
}
html[data-ui-theme="flow"]:is([data-canvas-scheme="white"],[data-canvas-scheme="soft"]) #canvas #edges path.connector:not([stroke="transparent"]) {
  stroke: #465a72 !important;
  stroke-width: 2 !important;
  fill: none !important;
}
html[data-ui-theme="flow"]:is([data-canvas-scheme="white"],[data-canvas-scheme="soft"]) #canvas #edges path.connector.selected:not([stroke="transparent"]) {
  stroke: #c17719 !important;
  stroke-width: 2.4 !important;
}
/* Keep the path labels readable; do not recolor the text inside light class nodes. */
html[data-ui-theme="flow"]:not([data-canvas-scheme="white"]):not([data-canvas-scheme="soft"]) #canvas #edges > text {
  fill: #f3f8ff !important;
  paint-order: stroke;
  stroke: #071d30;
  stroke-width: 3px;
  stroke-linejoin: round;
}
html[data-ui-theme="flow"]:is([data-canvas-scheme="white"],[data-canvas-scheme="soft"]) #canvas #edges > text {
  fill: #173554 !important;
  stroke: none !important;
}
/* Preserve class node contrast on pale blue fills. */
html[data-ui-theme="flow"] #canvas #nodes .node text { fill: #183249; }
/* Marker heads must remain legible, never touch invisible paths. */
html[data-ui-theme="flow"]:not([data-canvas-scheme="white"]):not([data-canvas-scheme="soft"]) #canvas :is(#openArrow,#triangle,#diamond) path {
  stroke: #d9edf8 !important;
}
html[data-ui-theme="flow"]:not([data-canvas-scheme="white"]):not([data-canvas-scheme="soft"]) #canvas :is(#arrow,#diamondSolid) path {
  fill: #d9edf8 !important;
  stroke: #d9edf8 !important;
}
