/* /tools/batch-barcode-generator: How it works scene (a CSV with a sku column, the {{sku}} barcode steps through rows 1 to 4). */
.hub-anim.ha-batch-barcode-generator .ha-stage { min-height: 0; border: 1px solid #bbf7d0; background: linear-gradient(180deg, #f7fdf9 0%, #ecfdf3 100%); }
.hub-anim.ha-batch-barcode-generator .sc { display: flex; align-items: center; justify-content: center; gap: 1.2rem; min-height: 250px; }
.hub-anim.ha-batch-barcode-generator .sc-arrow { color: #166534; flex: 0 0 auto; } .hub-anim.ha-batch-barcode-generator .sc-arrow svg { width: 60px; height: 30px; display: block; }
.hub-anim.ha-batch-barcode-generator .bb-sheet { width: 250px; flex: 0 0 auto; background: #fff; border: 1px solid #86efac; border-radius: 10px; overflow: hidden; box-shadow: 0 14px 24px -18px rgba(22, 101, 52, .55); }
.hub-anim.ha-batch-barcode-generator .bb-file { margin: 0; padding: 7px 10px; background: #166534; color: #fff; font: 700 .66rem/1 ui-monospace, Menlo, monospace; }
.hub-anim.ha-batch-barcode-generator table { width: 100%; border-collapse: collapse; font: 600 .66rem/1.2 Inter, system-ui, sans-serif; color: #14532d; }
.hub-anim.ha-batch-barcode-generator th, .hub-anim.ha-batch-barcode-generator td { padding: 7px 9px; border-bottom: 1px solid #dcfce7; text-align: left; white-space: nowrap; }
.hub-anim.ha-batch-barcode-generator th { background: #f0fdf4; font-weight: 800; color: #166534; } .hub-anim.ha-batch-barcode-generator th:first-child { background: #bbf7d0; }
.hub-anim.ha-batch-barcode-generator td:first-child { font-family: ui-monospace, Menlo, monospace; }
.hub-anim.ha-batch-barcode-generator .bb-right { width: 230px; flex: 0 0 auto; text-align: center; }
.hub-anim.ha-batch-barcode-generator .bb-label { position: relative; height: 115px; background: #fff; border: 1.5px solid #14532d; border-radius: 8px; box-shadow: 0 16px 26px -18px rgba(20, 83, 45, .6); }
.hub-anim.ha-batch-barcode-generator .bb-slot { position: absolute; z-index: 2; top: -11px; left: 50%; transform: translateX(-50%); padding: 3px 8px; background: #dcfce7; border: 1px dashed #16a34a; border-radius: 6px; font: 700 .62rem/1 ui-monospace, Menlo, monospace; font-style: normal; color: #166534; }
.hub-anim.ha-batch-barcode-generator .bb-l { position: absolute; inset: 0; padding: 14px 14px 6px; display: flex; flex-direction: column; align-items: center; opacity: 0; }
.hub-anim.ha-batch-barcode-generator .bb-l b { font: 800 .68rem/1.2 Manrope, Inter, sans-serif; color: #14532d; margin-bottom: 6px; }
.hub-anim.ha-batch-barcode-generator .bb-bars { display: block; width: 176px; height: 52px; fill: #0f172a; }
.hub-anim.ha-batch-barcode-generator .bb-l span { margin-top: 4px; font: 600 .62rem/1 ui-monospace, Menlo, monospace; color: #0f172a; }
.hub-anim.ha-batch-barcode-generator .bb-pager { position: relative; height: 16px; margin: 10px 0 0; font: 700 .64rem/16px Inter, system-ui, sans-serif; color: #166534; }
.hub-anim.ha-batch-barcode-generator .bb-pager span { position: absolute; inset: 0; opacity: 0; }
.hub-anim.ha-batch-barcode-generator .bb-done { display: inline-block; margin: 8px 0 0; padding: 5px 10px; border-radius: 999px; background: #16a34a; color: #fff; font: 800 .66rem/1 Manrope, Inter, sans-serif; }
@media (max-width: 640px) {
 .hub-anim.ha-batch-barcode-generator .sc { flex-direction: column; gap: .9rem; } .hub-anim.ha-batch-barcode-generator .sc-arrow { transform: rotate(90deg); } .hub-anim.ha-batch-barcode-generator .ha-stage { padding-bottom: 3.4rem; }
 .hub-anim.ha-batch-barcode-generator .bb-sheet { width: 230px; } .hub-anim.ha-batch-barcode-generator .bb-right { width: 220px; margin-top: 10px; }
}
/* Reduced motion: the finished scene (last row on the label, all four done). */
.hub-anim.ha-batch-barcode-generator .bb-l4, .hub-anim.ha-batch-barcode-generator .bb-p4 { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
 .hub-anim.ha-batch-barcode-generator .bb-l, .hub-anim.ha-batch-barcode-generator .bb-pager span { animation: bb-show 10s ease infinite both; }
 .hub-anim.ha-batch-barcode-generator .bb-l1, .hub-anim.ha-batch-barcode-generator .bb-p1 { animation-name: bb-s1; } .hub-anim.ha-batch-barcode-generator .bb-l2, .hub-anim.ha-batch-barcode-generator .bb-p2 { animation-name: bb-s2; }
 .hub-anim.ha-batch-barcode-generator .bb-l3, .hub-anim.ha-batch-barcode-generator .bb-p3 { animation-name: bb-s3; } .hub-anim.ha-batch-barcode-generator .bb-l4, .hub-anim.ha-batch-barcode-generator .bb-p4 { animation-name: bb-s4; }
 .hub-anim.ha-batch-barcode-generator .bb-r1 { animation: bb-h1 10s ease infinite both; } .hub-anim.ha-batch-barcode-generator .bb-r2 { animation: bb-h2 10s ease infinite both; }
 .hub-anim.ha-batch-barcode-generator .bb-r3 { animation: bb-h3 10s ease infinite both; } .hub-anim.ha-batch-barcode-generator .bb-r4 { animation: bb-h4 10s ease infinite both; }
 .hub-anim.ha-batch-barcode-generator .bb-done { animation: bb-done 10s ease infinite both; }
 @keyframes bb-s1 { 0%, 4% { opacity: 0; } 7%, 22% { opacity: 1; } 25%, 100% { opacity: 0; } }
 @keyframes bb-s2 { 0%, 22% { opacity: 0; } 25%, 40% { opacity: 1; } 43%, 100% { opacity: 0; } }
 @keyframes bb-s3 { 0%, 40% { opacity: 0; } 43%, 58% { opacity: 1; } 61%, 100% { opacity: 0; } }
 @keyframes bb-s4 { 0%, 58% { opacity: 0; } 61%, 96% { opacity: 1; } 100% { opacity: 0; } }
 @keyframes bb-h1 { 0%, 4% { background: transparent; } 7%, 22% { background: #bbf7d0; } 25%, 100% { background: transparent; } }
 @keyframes bb-h2 { 0%, 22% { background: transparent; } 25%, 40% { background: #bbf7d0; } 43%, 100% { background: transparent; } }
 @keyframes bb-h3 { 0%, 40% { background: transparent; } 43%, 58% { background: #bbf7d0; } 61%, 100% { background: transparent; } }
 @keyframes bb-h4 { 0%, 58% { background: transparent; } 61%, 76% { background: #bbf7d0; } 79%, 100% { background: transparent; } }
 @keyframes bb-done { 0%, 76% { opacity: 0; transform: translateY(6px); } 80%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; } }
}
