/* /tools/upc-e-barcode-generator: How it works (zeros drop out of a UPC-A, the short UPC-E goes on a tea sachet). */
.hub-anim.ha-upc-e-barcode-generator .ha-stage { min-height: 0; border: 1px solid #f5cfae; background: radial-gradient(110% 100% at 80% 10%, #fffaf5 0%, #fff0e3 55%, #fde2cb 100%); }
.hub-anim.ha-upc-e-barcode-generator .sc { display: flex; align-items: center; justify-content: center; gap: 1.4rem; min-height: 250px; }
.hub-anim.ha-upc-e-barcode-generator .sc-arrow { color: #9a3412; flex: 0 0 auto; } .hub-anim.ha-upc-e-barcode-generator .sc-arrow svg { width: 64px; height: 32px; display: block; }
.hub-anim.ha-upc-e-barcode-generator .ue-rows { width: 330px; flex: 0 0 auto; }
.hub-anim.ha-upc-e-barcode-generator .ue-rows small { display: block; margin: 0 0 6px; font: 800 .62rem/1 Manrope, Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #9a3412; } .hub-anim.ha-upc-e-barcode-generator .ue-to { margin-top: 16px !important; }
.hub-anim.ha-upc-e-barcode-generator .ue-full, .hub-anim.ha-upc-e-barcode-generator .ue-short { display: flex; gap: 3px; margin: 0; }
.hub-anim.ha-upc-e-barcode-generator .ue-full i, .hub-anim.ha-upc-e-barcode-generator .ue-short i { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 32px; flex: 0 0 auto; background: #fff; border: 1.5px solid #fdba74; border-radius: 6px; font: 700 .95rem/1 ui-monospace, Menlo, Consolas, monospace; font-style: normal; color: #431407; overflow: hidden; }
.hub-anim.ha-upc-e-barcode-generator .ue-full .ue-z { background: #ffedd5; border-color: #fb923c; border-style: dashed; color: #c2410c; }
.hub-anim.ha-upc-e-barcode-generator .ue-full i:first-child, .hub-anim.ha-upc-e-barcode-generator .ue-full i:last-child, .hub-anim.ha-upc-e-barcode-generator .ue-short i:first-child, .hub-anim.ha-upc-e-barcode-generator .ue-short i:last-child { background: #9a3412; border-color: #9a3412; color: #fff; }
.hub-anim.ha-upc-e-barcode-generator .ue-note { margin: 8px 0 0; font: 600 .7rem/1.3 Inter, system-ui, sans-serif; color: #7c2d12; }
.hub-anim.ha-upc-e-barcode-generator .ue-sachet { position: relative; width: 170px; flex: 0 0 auto; padding: 22px 14px 14px; background: linear-gradient(180deg, #fff7ed, #fed7aa); border: 1px solid #fdba74; border-radius: 6px; text-align: center; box-shadow: 0 18px 26px -16px rgba(154, 52, 18, .5); }
.hub-anim.ha-upc-e-barcode-generator .ue-tear { position: absolute; left: 0; right: 0; top: 0; height: 10px; background: repeating-linear-gradient(90deg, #fdba74 0 6px, transparent 6px 12px); border-radius: 6px 6px 0 0; }
.hub-anim.ha-upc-e-barcode-generator .ue-sachet > b { display: block; font: 800 1.05rem/1.1 Manrope, Inter, sans-serif; color: #7c2d12; } .hub-anim.ha-upc-e-barcode-generator .ue-sub { display: block; margin: 3px 0 12px; font: 600 .66rem/1 Inter, system-ui, sans-serif; color: #9a3412; }
.hub-anim.ha-upc-e-barcode-generator .ue-lab { display: inline-grid; grid-template-columns: 9px 72px 9px; align-items: end; padding: 7px 6px 4px; background: #fff; border-radius: 5px; font: 600 .6rem/1 ui-monospace, Menlo, Consolas, monospace; color: #111; }
.hub-anim.ha-upc-e-barcode-generator .ue-lab > span { padding-bottom: 2px; } .hub-anim.ha-upc-e-barcode-generator .ue-bars { color: #111; } .hub-anim.ha-upc-e-barcode-generator .ue-svg { display: block; width: 72px; height: 53px; }
.hub-anim.ha-upc-e-barcode-generator .ue-num { display: inline-block; margin: -7px 0 0; padding: 0 2px; background: #fff; font: 600 .6rem/1 ui-monospace, Menlo, Consolas, monospace; color: #111; }
@media (max-width: 640px) {
 .hub-anim.ha-upc-e-barcode-generator .sc { flex-direction: column; gap: .9rem; } .hub-anim.ha-upc-e-barcode-generator .sc-arrow { transform: rotate(90deg); } .hub-anim.ha-upc-e-barcode-generator .ue-rows { width: 228px; } .hub-anim.ha-upc-e-barcode-generator .ue-full, .hub-anim.ha-upc-e-barcode-generator .ue-short { gap: 2px; }
 .hub-anim.ha-upc-e-barcode-generator .ue-full i, .hub-anim.ha-upc-e-barcode-generator .ue-short i { width: 17px; height: 26px; border-radius: 4px; font-size: .78rem; }
}
/* Reduced motion: the finished scene (zeros marked, short form and sachet shown). */
@media (prefers-reduced-motion: no-preference) {
 .hub-anim.ha-upc-e-barcode-generator .ue-z { animation: ue-z 10s ease infinite both; } .hub-anim.ha-upc-e-barcode-generator .ue-short i { animation: ue-s 10s ease infinite both; } .hub-anim.ha-upc-e-barcode-generator .ue-to, .hub-anim.ha-upc-e-barcode-generator .ue-note { animation: ue-to 10s ease infinite both; }
 .hub-anim.ha-upc-e-barcode-generator .ue-sachet { animation: ue-sachet 10s ease infinite both; } .hub-anim.ha-upc-e-barcode-generator .ue-bars { animation: ue-bars 10s ease infinite both; }
 @keyframes ue-z { 0%, 10% { opacity: 1; transform: none; } 16% { opacity: 1; transform: translateY(-5px); } 26%, 92% { opacity: .22; transform: translateY(4px) scale(.82); } 98%, 100% { opacity: 1; transform: none; } }
 @keyframes ue-s { 0%, 30% { opacity: 0; transform: translateY(-8px); } 36%, 94% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; } }
 @keyframes ue-to { 0%, 30% { opacity: 0; } 36%, 94% { opacity: 1; } 99%, 100% { opacity: 0; } }
 @keyframes ue-sachet { 0%, 44% { opacity: 0; transform: translateY(16px) rotate(-4deg); } 52%, 94% { opacity: 1; transform: rotate(-2deg); } 99%, 100% { opacity: 0; transform: rotate(-2deg); } }
 @keyframes ue-bars { 0%, 54% { clip-path: inset(0 100% 0 0); } 68%, 100% { clip-path: inset(0 0 0 0); } }
}
