/* /tools/interleaved-2-of-5-barcode-generator: How it works scene (digit pairs woven into bars and spaces, an odd count refused). */
.hub-anim.ha-interleaved-2-of-5-barcode-generator .ha-stage { min-height: 0; border: 1px solid #f2cfe0; background: linear-gradient(160deg, #fff6fa 0%, #fbe7f0 55%, #f5d6e5 100%); }
.hub-anim.ha-interleaved-2-of-5-barcode-generator .i25-sc { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem; min-height: 260px; }
.hub-anim.ha-interleaved-2-of-5-barcode-generator .i25-pairs { display: flex; gap: 10px; }
.hub-anim.ha-interleaved-2-of-5-barcode-generator .i25-p { display: flex; gap: 2px; padding: 4px; background: #fff; border: 1.5px solid #be185d; border-radius: 9px; box-shadow: 0 6px 14px -10px rgba(190, 24, 93, .6); }
.hub-anim.ha-interleaved-2-of-5-barcode-generator .i25-p em { display: block; width: 24px; padding: 6px 0; border-radius: 5px; font: 800 .95rem/1 ui-monospace, Menlo, Consolas, monospace; font-style: normal; text-align: center; }
.hub-anim.ha-interleaved-2-of-5-barcode-generator .i25-p em:first-child { background: #1f1f23; color: #fff; } .hub-anim.ha-interleaved-2-of-5-barcode-generator .i25-p em + em { background: #fff; color: #1f1f23; box-shadow: inset 0 0 0 1.5px #1f1f23; }
.hub-anim.ha-interleaved-2-of-5-barcode-generator .i25-key { display: flex; gap: 14px; font: 600 .68rem/1 Inter, system-ui, sans-serif; color: #6b2143; }
.hub-anim.ha-interleaved-2-of-5-barcode-generator .i25-key span { display: flex; align-items: center; gap: 5px; } .hub-anim.ha-interleaved-2-of-5-barcode-generator .i25-key i, .hub-anim.ha-interleaved-2-of-5-barcode-generator .i25-key s { width: 10px; height: 10px; border-radius: 2px; background: #1f1f23; } .hub-anim.ha-interleaved-2-of-5-barcode-generator .i25-key s { background: #fff; box-shadow: inset 0 0 0 1.5px #1f1f23; }
.hub-anim.ha-interleaved-2-of-5-barcode-generator .i25-lab { width: 300px; padding: 12px 16px 8px; background: #fff; border-radius: 8px; box-sizing: border-box; box-shadow: 0 12px 24px -16px rgba(0, 0, 0, .45); text-align: center; }
.hub-anim.ha-interleaved-2-of-5-barcode-generator .i25-bars { display: flex; height: 70px; }
.hub-anim.ha-interleaved-2-of-5-barcode-generator .i25-bars i, .hub-anim.ha-interleaved-2-of-5-barcode-generator .i25-bars s { display: block; text-decoration: none; } .hub-anim.ha-interleaved-2-of-5-barcode-generator .i25-bars i { background: #111; }
.hub-anim.ha-interleaved-2-of-5-barcode-generator .i25-bars .n, .hub-anim.ha-interleaved-2-of-5-barcode-generator .i25-st { flex: 1; } .hub-anim.ha-interleaved-2-of-5-barcode-generator .i25-bars .w { flex: 2.5; }
.hub-anim.ha-interleaved-2-of-5-barcode-generator .i25-g { display: flex; flex: 16; }
.hub-anim.ha-interleaved-2-of-5-barcode-generator .i25-g s.n, .hub-anim.ha-interleaved-2-of-5-barcode-generator .i25-g s.w { background: transparent; }
.hub-anim.ha-interleaved-2-of-5-barcode-generator .i25-lab p { margin: 5px 0 0; font: 700 .72rem/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .3em; color: #111; }
.hub-anim.ha-interleaved-2-of-5-barcode-generator .i25-odd { display: flex; align-items: center; gap: 8px; margin: 0; font: 600 .7rem/1 Inter, system-ui, sans-serif; color: #9f1239; }
.hub-anim.ha-interleaved-2-of-5-barcode-generator .i25-odd b { padding: 4px 8px; background: #fff; border: 1.5px dashed #e11d48; border-radius: 6px; font: 700 .72rem/1 ui-monospace, Menlo, Consolas, monospace; color: #9f1239; text-decoration: line-through; }
@media (max-width: 640px) {
 .hub-anim.ha-interleaved-2-of-5-barcode-generator .i25-lab { width: 250px; } .hub-anim.ha-interleaved-2-of-5-barcode-generator .i25-pairs { gap: 5px; } .hub-anim.ha-interleaved-2-of-5-barcode-generator .i25-p em { width: 18px; padding: 5px 0; font-size: .8rem; } .hub-anim.ha-interleaved-2-of-5-barcode-generator .i25-key { flex-direction: column; align-items: center; gap: 6px; } .hub-anim.ha-interleaved-2-of-5-barcode-generator .ha-stage { padding-bottom: 3.4rem; }
}
/* Reduced motion: the finished scene (every pair woven in, the odd count shown). */
@media (prefers-reduced-motion: no-preference) {
 .hub-anim.ha-interleaved-2-of-5-barcode-generator .i25-p1 { animation: i25-p1 10s ease infinite both; } .hub-anim.ha-interleaved-2-of-5-barcode-generator .i25-g1 { animation: i25-g1 10s ease infinite both; }
 @keyframes i25-p1 { 0%, 19% { transform: none; border-color: #be185d; } 22%, 29% { transform: translateY(6px); border-color: #111; } 32%, 100% { transform: none; border-color: #be185d; opacity: .55; } }
 @keyframes i25-g1 { 0%, 22% { opacity: 0; transform: translateY(-12px); } 29%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
 .hub-anim.ha-interleaved-2-of-5-barcode-generator .i25-p2 { animation: i25-p2 10s ease infinite both; } .hub-anim.ha-interleaved-2-of-5-barcode-generator .i25-g2 { animation: i25-g2 10s ease infinite both; }
 @keyframes i25-p2 { 0%, 32% { transform: none; border-color: #be185d; } 35%, 42% { transform: translateY(6px); border-color: #111; } 45%, 100% { transform: none; border-color: #be185d; opacity: .55; } }
 @keyframes i25-g2 { 0%, 35% { opacity: 0; transform: translateY(-12px); } 42%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
 .hub-anim.ha-interleaved-2-of-5-barcode-generator .i25-p3 { animation: i25-p3 10s ease infinite both; } .hub-anim.ha-interleaved-2-of-5-barcode-generator .i25-g3 { animation: i25-g3 10s ease infinite both; }
 @keyframes i25-p3 { 0%, 45% { transform: none; border-color: #be185d; } 48%, 55% { transform: translateY(6px); border-color: #111; } 58%, 100% { transform: none; border-color: #be185d; opacity: .55; } }
 @keyframes i25-g3 { 0%, 48% { opacity: 0; transform: translateY(-12px); } 55%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
 .hub-anim.ha-interleaved-2-of-5-barcode-generator .i25-p4 { animation: i25-p4 10s ease infinite both; } .hub-anim.ha-interleaved-2-of-5-barcode-generator .i25-g4 { animation: i25-g4 10s ease infinite both; }
 @keyframes i25-p4 { 0%, 58% { transform: none; border-color: #be185d; } 61%, 68% { transform: translateY(6px); border-color: #111; } 71%, 100% { transform: none; border-color: #be185d; opacity: .55; } }
 @keyframes i25-g4 { 0%, 61% { opacity: 0; transform: translateY(-12px); } 68%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
 .hub-anim.ha-interleaved-2-of-5-barcode-generator .i25-odd { animation: i25-odd 10s ease infinite both; }
 @keyframes i25-odd { 0%, 72% { opacity: 0; transform: translateY(6px); } 78%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
}
