/* /cable-labels: How it works scene (a tape printer feeds SW2-A P24, it flags a patch cord, port 24 lights up). */
.hub-anim.ha-cable-labels .ha-stage { min-height: 0; border: 1px solid #fde68a; background: repeating-linear-gradient(45deg, rgba(202, 138, 4, .06) 0 10px, transparent 10px 20px), #fffbeb; }
.hub-anim.ha-cable-labels .sc { display: flex; align-items: center; justify-content: center; gap: 1.4rem; min-height: 260px; }
.hub-anim.ha-cable-labels .sc-arrow { color: #1f2937; flex: 0 0 auto; } .hub-anim.ha-cable-labels .sc-arrow svg { width: 64px; height: 32px; display: block; }
.hub-anim.ha-cable-labels .cb-pt { position: relative; width: 170px; height: 200px; flex: 0 0 auto; }
.hub-anim.ha-cable-labels .cb-body { position: relative; width: 120px; height: 150px; margin: 0 auto; background: linear-gradient(180deg, #4b5563, #1f2937); border: 2.5px solid #111827; border-radius: 18px; box-sizing: border-box; }
.hub-anim.ha-cable-labels .cb-body span { position: absolute; left: 14px; top: 14px; padding: 3px 7px; background: #facc15; color: #111827; border-radius: 5px; font: 800 .68rem/1 Manrope, Inter, sans-serif; }
.hub-anim.ha-cable-labels .cb-body i { position: absolute; left: 14px; right: 14px; top: 40px; height: 54px; border-radius: 8px; background: repeating-linear-gradient(90deg, #374151 0 14px, #4b5563 14px 18px); box-shadow: inset 0 0 0 2px #111827; }
.hub-anim.ha-cable-labels .cb-slot { position: absolute; left: 0; right: 0; top: 112px; height: 40px; }
.hub-anim.ha-cable-labels .cb-tape { position: absolute; left: 70px; top: 6px; width: 120px; height: 26px; background: #fff; border: 1.5px solid #111827; border-radius: 3px; box-sizing: border-box; font: 800 .78rem/23px "Courier New", ui-monospace, monospace; color: #111827; text-align: center; }
.hub-anim.ha-cable-labels .cb-rack { position: relative; width: 280px; height: 230px; flex: 0 0 auto; }
.hub-anim.ha-cable-labels .cb-sw { position: relative; height: 62px; padding: 8px 12px; background: linear-gradient(180deg, #374151, #1f2937); border: 2.5px solid #111827; border-radius: 8px; box-sizing: border-box; }
.hub-anim.ha-cable-labels .cb-sw small { display: block; font: 800 .6rem/1 Manrope, Inter, sans-serif; letter-spacing: .1em; color: #fde68a; }
.hub-anim.ha-cable-labels .cb-ports { display: flex; justify-content: space-between; margin-top: 8px; }
.hub-anim.ha-cable-labels .cb-ports i { position: relative; width: 30px; height: 24px; background: #0b0f17; border: 2px solid #6b7280; border-radius: 3px; box-sizing: border-box; } .hub-anim.ha-cable-labels .cb-ports i::after { content: ""; position: absolute; right: 2px; top: 2px; width: 5px; height: 5px; border-radius: 50%; background: #f59e0b; }
.hub-anim.ha-cable-labels .cb-p24 em { position: absolute; left: 0; right: 0; top: -12px; font: 800 .5rem/1 Inter, sans-serif; font-style: normal; color: #fde68a; text-align: center; }
.hub-anim.ha-cable-labels .cb-ports i.cb-p24::after { background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.hub-anim.ha-cable-labels .cb-cords { display: flex; justify-content: space-between; padding: 0 12px; }
.hub-anim.ha-cable-labels .cb-cords i { position: relative; z-index: 1; width: 30px; display: flex; justify-content: center; } .hub-anim.ha-cable-labels .cb-cords i::before { content: ""; width: 9px; height: 160px; border-radius: 0 0 6px 6px; background: linear-gradient(90deg, #1d4ed8, #3b82f6 45%, #1e40af); }
.hub-anim.ha-cable-labels .cb-cords i.cb-c24 { z-index: 3; } .hub-anim.ha-cable-labels .cb-flag { position: absolute; top: 58px; left: 50%; width: 92px; height: 24px; margin-left: -6px; background: #fff; border: 1.5px solid #111827; border-left: 5px solid #fff; border-radius: 0 3px 3px 0; box-sizing: border-box; box-shadow: 0 6px 10px -6px rgba(0, 0, 0, .5); font: 800 .62rem/21px "Courier New", ui-monospace, monospace; color: #111827; text-align: center; }
@media (max-width: 640px) {
 .hub-anim.ha-cable-labels .sc { flex-direction: column; gap: .6rem; } .hub-anim.ha-cable-labels .sc-arrow { transform: rotate(90deg); } .hub-anim.ha-cable-labels .ha-stage { padding-bottom: 3.4rem; }
 .hub-anim.ha-cable-labels .cb-pt { height: 170px; } .hub-anim.ha-cable-labels .cb-tape { left: 25px; top: 50px; }
 .hub-anim.ha-cable-labels .cb-rack { width: 236px; } .hub-anim.ha-cable-labels .cb-ports i, .hub-anim.ha-cable-labels .cb-cords i { width: 26px; } .hub-anim.ha-cable-labels .cb-flag { width: 84px; }
}
@media (prefers-reduced-motion: no-preference) {
 .hub-anim.ha-cable-labels .cb-tape { animation: cb-tape 10s ease infinite both; } .hub-anim.ha-cable-labels .cb-flag { animation: cb-flag 10s ease infinite both; } .hub-anim.ha-cable-labels .cb-ports i.cb-p24::after { animation: cb-led 10s ease infinite both; } .hub-anim.ha-cable-labels .cb-c24::before { animation: cb-cord 10s ease infinite both; }
 @keyframes cb-tape { 0%, 6% { clip-path: inset(0 100% 0 0); transform: translateX(-50px); opacity: 1; } 34%, 44% { clip-path: inset(0 0 0 0); transform: none; opacity: 1; } 52%, 100% { clip-path: inset(0 0 0 0); transform: translateX(60px) scale(.7); opacity: 0; } }
 @keyframes cb-flag { 0%, 48% { opacity: 0; transform: scaleX(.2); transform-origin: left center; } 58% { opacity: 1; transform: scaleX(1.05); transform-origin: left center; } 62%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; } }
 @keyframes cb-led { 0%, 62% { background: #f59e0b; box-shadow: none; } 66%, 70% { background: #22c55e; box-shadow: 0 0 10px #22c55e; } 72% { background: #f59e0b; } 76%, 96% { background: #22c55e; box-shadow: 0 0 10px #22c55e; } 100% { background: #f59e0b; box-shadow: none; } }
 @keyframes cb-cord { 0%, 60% { filter: none; } 66%, 94% { filter: drop-shadow(0 0 5px #facc15); } 100% { filter: none; } }
}
