/* Pixel cords are square-stepped geometry, with real per-cable plug handles. */
#shell .cable-layer { shape-rendering: crispEdges; }
#shell .patch-cable { cursor: pointer; pointer-events: none; }
#shell :is(.patch-cable,.patch-preview) path { stroke-linecap: square; stroke-linejoin: miter; fill: none; }
#shell .patch-cable .cable-hit { stroke: transparent; stroke-width: 18px; pointer-events: stroke; cursor: pointer; }
#shell :is(.patch-cable,.patch-preview) .cable-shadow { stroke: #08080f; stroke-width: 10px; transform: translate(2px,3px); }
#shell :is(.patch-cable,.patch-preview) .cable-core { stroke: var(--cable-color); stroke-width: 6px; }
#shell :is(.patch-cable,.patch-preview) .cable-sheen { stroke: #fff5e966; stroke-width: 2px; transform: translate(-1px,-2px); stroke-dasharray: none; animation: none; }
#shell .patch-cable:is(:hover,:focus-within,.is-selected) .cable-core { stroke-width: 8px; }
#shell .patch-cable:is(:hover,:focus-within,.is-selected) .cable-shadow { stroke-width: 12px; }
#shell .patch-cable:focus-visible { outline: none; }
#shell .patch-cable.is-lifted { opacity: .18; }
#shell .patch-cable.is-lifted * { pointer-events: none; }
#shell .cable-plug { cursor: grab; pointer-events: all; touch-action: none; outline: none; }
#shell .cable-plug:active { cursor: grabbing; }
#shell .plug-hit { fill: transparent; stroke: none; }
#shell :is(.cable-plug,.loose-plug) path { stroke: none; fill: var(--cable-color); }
#shell :is(.cable-plug,.loose-plug) .plug-shadow { fill: #090911; transform: translate(2px,2px); }
#shell :is(.cable-plug,.loose-plug) .plug-shell { fill: var(--cable-color); }
#shell :is(.cable-plug,.loose-plug) .plug-cap { fill: #fff0d7; }
#shell :is(.cable-plug,.loose-plug) .plug-grip { fill: #251d36; }
#shell .cable-plug:is(:hover,:focus-visible) .plug-shell { fill: #fff1cc; }
#shell .cable-plug:focus-visible .plug-hit { stroke: #ffe5a5; stroke-width: 2px; stroke-dasharray: 4 4; }
#shell .patch-preview { pointer-events: none; }
#shell .patch-preview .cable-core { stroke-dasharray: 12 4; animation: patch-travel 400ms steps(4,end) infinite; }
#shell .patch-preview.is-valid { --cable-color: #b7efb0 !important; }
#shell .patch-preview.is-invalid { --cable-color: #ff93af !important; }
#shell .patch-preview.is-invalid .cable-core { animation: none; stroke-dasharray: 4 4; }
#shell .patch-preview .loose-plug { animation: plug-pickup 140ms steps(3,end) both; transform-box: fill-box; transform-origin: center; }
#shell .patch-effects,#shell .patch-effects * { pointer-events: none; }
#shell .patch-burst rect { fill: #fff2bc; animation: patch-spark 320ms steps(4,end) var(--spark-delay) both; }
#shell .patch-burst-reject rect { fill: #ff93af; }
#shell .patch-burst-disconnect rect { fill: #c39be5; }
#shell .patch-unplug { transform-box: fill-box; transform-origin: center top; animation: patch-unplug 220ms steps(4,end) both; }
#shell .patch-unplug .patch-cable { opacity: .8; }
#shell .rack-device .jack.patch-snap::before { animation: jack-snap 220ms steps(3,end); }
#shell .rack-device .jack.patch-reject::before { animation: jack-reject 220ms steps(4,end); }
#shell .rack-device .jack { touch-action: none; }
@keyframes patch-travel { to { stroke-dashoffset: -16; } }
@keyframes plug-pickup { from { opacity: .5; scale: .75; } to { opacity: 1; scale: 1; } }
@keyframes patch-spark { from { transform: translate(0,0); opacity: 1; } to { transform: translate(var(--spark-x),var(--spark-y)); opacity: 0; } }
@keyframes patch-unplug { to { opacity: 0; transform: translateY(12px) scaleY(.94); } }
@keyframes jack-snap { 33% { scale: 1.15; } 66% { scale: .94; } }
@keyframes jack-reject { 25%,75% { translate: -3px 0; } 50% { translate: 3px 0; } }
@media(prefers-reduced-motion:reduce) { #shell .patch-preview .cable-core,#shell .patch-preview .loose-plug,#shell .patch-unplug,#shell .rack-device .jack::before { animation: none; } #shell .patch-burst { display: none; } }
@media(forced-colors:active) { #shell .cable-core { stroke: LinkText !important; } #shell .plug-shell { fill: ButtonText !important; } #shell .plug-cap { fill: Canvas !important; } #shell .cable-sheen { display:none; } }
