/* /tools/itf-14-barcode-generator: How it works scene (14 digits, a carton side with an ITF-14 in its bearer frame, a conveyor). */
.hub-anim.ha-itf-14-barcode-generator .ha-stage { min-height: 0; border: 1px solid #f1d1cc; background: radial-gradient(110% 90% at 30% 0%, #fff7f5 0%, #fbe9e6 60%, #f3d8d3 100%); }
.hub-anim.ha-itf-14-barcode-generator .sc { display: flex; align-items: center; justify-content: center; gap: 1.3rem; min-height: 260px; }
.hub-anim.ha-itf-14-barcode-generator .sc-arrow { color: #7f1d1d; flex: 0 0 auto; } .hub-anim.ha-itf-14-barcode-generator .sc-arrow svg { width: 64px; height: 32px; display: block; }
.hub-anim.ha-itf-14-barcode-generator .i14-num { width: 236px; padding: 12px 14px; background: #fff; border: 1.5px solid #b91c1c; border-radius: 12px; box-sizing: border-box; box-shadow: 0 10px 22px -14px rgba(185, 28, 28, .55); }
.hub-anim.ha-itf-14-barcode-generator .i14-num small { display: block; margin-bottom: 8px; font: 700 .62rem/1 Manrope, Inter, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #9a5b55; }
.hub-anim.ha-itf-14-barcode-generator .i14-num p { display: grid; grid-template-columns: repeat(14, 1fr); gap: 2px; margin: 0; }
.hub-anim.ha-itf-14-barcode-generator .i14-num b { display: block; padding: 6px 0; background: #fdf1ef; border-radius: 3px; font: 700 .74rem/1 ui-monospace, Menlo, Consolas, monospace; color: #3b0d0b; text-align: center; }
.hub-anim.ha-itf-14-barcode-generator .i14-num b.i14-cd { background: #b91c1c; color: #fff; }
.hub-anim.ha-itf-14-barcode-generator .i14-num span { display: block; margin-top: 8px; font: 600 .66rem/1 Inter, system-ui, sans-serif; color: #7f1d1d; }
.hub-anim.ha-itf-14-barcode-generator .i14-belt { position: relative; width: 250px; height: 210px; flex: 0 0 auto; overflow: hidden; }
.hub-anim.ha-itf-14-barcode-generator .i14-box { position: absolute; left: 30px; bottom: 26px; width: 190px; height: 150px; background: linear-gradient(180deg, #d6a774, #c58f58); border: 2px solid #8a5a2b; border-radius: 4px; box-sizing: border-box; }
.hub-anim.ha-itf-14-barcode-generator .i14-tape { position: absolute; left: 50%; top: 0; width: 26px; height: 28px; margin-left: -13px; background: rgba(255, 244, 214, .55); }
.hub-anim.ha-itf-14-barcode-generator .i14-lab { position: absolute; left: 16px; right: 16px; top: 40px; padding: 8px 8px 6px; background: #fff; border-radius: 3px; box-shadow: 0 3px 8px -3px rgba(0, 0, 0, .35); text-align: center; }
.hub-anim.ha-itf-14-barcode-generator .i14-frame { padding: 4px 7px; border: 5px solid #111; }
.hub-anim.ha-itf-14-barcode-generator .i14-bars { display: flex; height: 44px; transform-origin: left center; }
.hub-anim.ha-itf-14-barcode-generator .i14-bars i { background: #111; } .hub-anim.ha-itf-14-barcode-generator .i14-bars s { text-decoration: none; } .hub-anim.ha-itf-14-barcode-generator .i14-bars .n { flex: 1; } .hub-anim.ha-itf-14-barcode-generator .i14-bars .w { flex: 2.5; }
.hub-anim.ha-itf-14-barcode-generator .i14-lab span { display: block; margin-top: 4px; font: 700 .56rem/1 ui-monospace, Menlo, Consolas, monospace; color: #111; letter-spacing: .04em; }
.hub-anim.ha-itf-14-barcode-generator .i14-rollers { position: absolute; left: 0; right: 0; bottom: 6px; display: flex; justify-content: space-around; height: 20px; border-top: 3px solid #6b7280; }
.hub-anim.ha-itf-14-barcode-generator .i14-rollers i { width: 16px; height: 16px; margin-top: 1px; border-radius: 50%; background: radial-gradient(circle, #e5e7eb 0 3px, #9ca3af 3.5px); }
@media (max-width: 640px) {
 .hub-anim.ha-itf-14-barcode-generator .sc { flex-direction: column; gap: 1rem; } .hub-anim.ha-itf-14-barcode-generator .sc-arrow { transform: rotate(90deg); } .hub-anim.ha-itf-14-barcode-generator .ha-stage { padding-bottom: 3.4rem; }
}
/* Reduced motion: the finished scene (all digits in, bars and frame printed, box on the belt). */
@media (prefers-reduced-motion: no-preference) {
 .hub-anim.ha-itf-14-barcode-generator .i14-num b { animation: i14-d 10s steps(1, end) infinite both; }
 .hub-anim.ha-itf-14-barcode-generator .i14-num b:nth-child(1) { animation-delay: 0.00s; }
 .hub-anim.ha-itf-14-barcode-generator .i14-num b:nth-child(2) { animation-delay: 0.18s; }
 .hub-anim.ha-itf-14-barcode-generator .i14-num b:nth-child(3) { animation-delay: 0.36s; }
 .hub-anim.ha-itf-14-barcode-generator .i14-num b:nth-child(4) { animation-delay: 0.54s; }
 .hub-anim.ha-itf-14-barcode-generator .i14-num b:nth-child(5) { animation-delay: 0.72s; }
 .hub-anim.ha-itf-14-barcode-generator .i14-num b:nth-child(6) { animation-delay: 0.90s; }
 .hub-anim.ha-itf-14-barcode-generator .i14-num b:nth-child(7) { animation-delay: 1.08s; }
 .hub-anim.ha-itf-14-barcode-generator .i14-num b:nth-child(8) { animation-delay: 1.26s; }
 .hub-anim.ha-itf-14-barcode-generator .i14-num b:nth-child(9) { animation-delay: 1.44s; }
 .hub-anim.ha-itf-14-barcode-generator .i14-num b:nth-child(10) { animation-delay: 1.62s; }
 .hub-anim.ha-itf-14-barcode-generator .i14-num b:nth-child(11) { animation-delay: 1.80s; }
 .hub-anim.ha-itf-14-barcode-generator .i14-num b:nth-child(12) { animation-delay: 1.98s; }
 .hub-anim.ha-itf-14-barcode-generator .i14-num b:nth-child(13) { animation-delay: 2.16s; }
 .hub-anim.ha-itf-14-barcode-generator .i14-num b:nth-child(14) { animation-delay: 2.34s; }
 .hub-anim.ha-itf-14-barcode-generator .i14-bars { animation: i14-bars 10s ease infinite both; } .hub-anim.ha-itf-14-barcode-generator .i14-frame { animation: i14-frame 10s ease infinite both; }
 .hub-anim.ha-itf-14-barcode-generator .i14-box { animation: i14-box 10s ease-in-out infinite both; } .hub-anim.ha-itf-14-barcode-generator .i14-rollers i { animation: i14-roll 10s linear infinite both; }
 @keyframes i14-d { 0% { opacity: .15; } 6%, 82% { opacity: 1; } 100% { opacity: .15; } }
 @keyframes i14-bars { 0%, 30% { transform: scaleX(0); } 46%, 92% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
 @keyframes i14-frame { 0%, 46% { border-color: transparent; } 54%, 92% { border-color: #111; } 100% { border-color: transparent; } }
 @keyframes i14-box { 0%, 72% { transform: none; opacity: 1; } 86% { transform: translateX(260px); opacity: 1; } 87% { transform: translateX(260px); opacity: 0; } 88% { transform: translateX(-260px); opacity: 0; } 89% { transform: translateX(-260px); opacity: 1; } 100% { transform: none; opacity: 1; } }
 @keyframes i14-roll { 0%, 72% { transform: none; } 86%, 100% { transform: rotate(720deg); } }
}
