/* /tools/ean-8-barcode-generator: How it works (lip balm tube, quiet-zone brackets, EAN-8 stamped on). */
.hub-anim.ha-ean-8-barcode-generator .ha-stage { min-height: 0; border: 1px solid #d9e8b8; background: linear-gradient(160deg, #fbfff2 0%, #f1f9dc 55%, #e5f2c4 100%); }
.hub-anim.ha-ean-8-barcode-generator .sc { display: flex; align-items: center; justify-content: center; min-height: 250px; }
.hub-anim.ha-ean-8-barcode-generator .e8-scene { width: 460px; max-width: 100%; }
.hub-anim.ha-ean-8-barcode-generator .e8-tube { display: flex; align-items: center; height: 104px; filter: drop-shadow(0 16px 18px rgba(77, 124, 15, .25)); }
.hub-anim.ha-ean-8-barcode-generator .e8-cap { width: 76px; height: 92px; flex: 0 0 auto; background: linear-gradient(180deg, #65a30d, #3f6212 70%, #365314); border-radius: 14px 4px 4px 14px; }
.hub-anim.ha-ean-8-barcode-generator .e8-body { position: relative; flex: 1; height: 104px; display: flex; align-items: center; gap: 14px; padding: 0 18px; background: linear-gradient(180deg, #ffffff 0%, #f3f8e6 60%, #dfeac2 100%); border-radius: 4px 18px 18px 4px; }
.hub-anim.ha-ean-8-barcode-generator .e8-name { font: 800 1.3rem/1 Manrope, Inter, sans-serif; color: #3f6212; writing-mode: vertical-rl; transform: rotate(180deg); }
.hub-anim.ha-ean-8-barcode-generator .e8-lab { position: relative; display: flex; align-items: stretch; gap: 0; padding: 8px 0 4px; background: #fff; border: 1px dashed #a3c76a; border-radius: 6px; }
.hub-anim.ha-ean-8-barcode-generator .e8-q { width: 18px; flex: 0 0 auto; border: 2px solid #ea580c; border-radius: 3px; margin: 2px 4px; } .hub-anim.ha-ean-8-barcode-generator .e8-ql { border-right: 0; } .hub-anim.ha-ean-8-barcode-generator .e8-qr { border-left: 0; }
.hub-anim.ha-ean-8-barcode-generator .e8-bars { position: relative; width: 120px; color: #111; } .hub-anim.ha-ean-8-barcode-generator .e8-svg { display: block; width: 120px; height: 58px; }
.hub-anim.ha-ean-8-barcode-generator .e8-num { display: flex; justify-content: space-around; margin: -8px 0 0; padding: 0 8px; font: 600 .68rem/1 ui-monospace, Menlo, Consolas, monospace; color: #111; } .hub-anim.ha-ean-8-barcode-generator .e8-num span { background: #fff; padding: 0 2px; }
.hub-anim.ha-ean-8-barcode-generator .e8-ruler { position: relative; width: 196px; margin: 16px 0 0 186px; height: 22px; border-top: 2px solid #3f6212; background: repeating-linear-gradient(90deg, #3f6212 0 1px, transparent 1px 12.25px) top / 100% 7px no-repeat; }
.hub-anim.ha-ean-8-barcode-generator .e8-ruler span { position: absolute; left: 0; right: 0; top: 10px; text-align: center; font: 700 .66rem/1 Inter, system-ui, sans-serif; color: #3f6212; }
.hub-anim.ha-ean-8-barcode-generator .e8-tag { margin: 12px 0 0; text-align: center; font: 600 .74rem/1.3 Inter, system-ui, sans-serif; color: #3f3f46; } .hub-anim.ha-ean-8-barcode-generator .e8-tag b { margin-right: 4px; padding: 3px 7px; background: #3f6212; color: #fff; border-radius: 999px; font: 800 .66rem/1 Manrope, Inter, sans-serif; }
@media (max-width: 640px) {
 .hub-anim.ha-ean-8-barcode-generator .e8-cap { width: 40px; } .hub-anim.ha-ean-8-barcode-generator .e8-body { padding: 0 10px; gap: 8px; } .hub-anim.ha-ean-8-barcode-generator .e8-name { font-size: 1rem; } .hub-anim.ha-ean-8-barcode-generator .e8-bars, .hub-anim.ha-ean-8-barcode-generator .e8-svg { width: 104px; } .hub-anim.ha-ean-8-barcode-generator .e8-q { width: 12px; margin: 2px 3px; }
 .hub-anim.ha-ean-8-barcode-generator .e8-ruler { margin-left: auto; margin-right: 8px; width: 150px; }
}
/* Reduced motion: the finished scene (brackets and bars shown). */
@media (prefers-reduced-motion: no-preference) {
 .hub-anim.ha-ean-8-barcode-generator .e8-q { animation: e8-q 10s ease infinite both; } .hub-anim.ha-ean-8-barcode-generator .e8-bars { animation: e8-bars 10s ease infinite both; } .hub-anim.ha-ean-8-barcode-generator .e8-ruler { animation: e8-ruler 10s ease infinite both; } .hub-anim.ha-ean-8-barcode-generator .e8-tag b { animation: e8-tag 10s ease infinite both; }
 @keyframes e8-q { 0%, 6% { opacity: 0; transform: scaleY(.3); } 12%, 18% { opacity: 1; transform: none; } 22% { opacity: .35; } 26% { opacity: 1; } 30% { opacity: .35; } 34%, 94% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; } }
 @keyframes e8-bars { 0%, 38% { opacity: 0; transform: translateY(-26px) scale(1.15); } 46% { opacity: 1; transform: translateY(2px) scale(.98); } 50%, 94% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; } }
 @keyframes e8-ruler { 0%, 56% { clip-path: inset(0 100% 0 0); } 70%, 94% { clip-path: inset(0 0 0 0); opacity: 1; } 99%, 100% { opacity: 0; } }
 @keyframes e8-tag { 0%, 70% { transform: none; } 74% { transform: scale(1.15); } 78%, 100% { transform: none; } }
}
