/* /tools/ean-13-barcode-generator: How it works (digits typed, check digit, bars printed onto a soap box). */
.hub-anim.ha-ean-13-barcode-generator .ha-stage { min-height: 0; border: 1px solid #cfe5d6; background: radial-gradient(120% 90% at 30% 0%, #ffffff 0%, #eef8f1 60%, #e0f1e6 100%); }
.hub-anim.ha-ean-13-barcode-generator .sc { display: flex; align-items: center; justify-content: center; gap: 1.6rem; min-height: 250px; }
.hub-anim.ha-ean-13-barcode-generator .sc-arrow { color: #166534; flex: 0 0 auto; } .hub-anim.ha-ean-13-barcode-generator .sc-arrow svg { width: 64px; height: 32px; display: block; }
.hub-anim.ha-ean-13-barcode-generator .e13-in { width: 250px; flex: 0 0 auto; padding: 16px 16px 14px; background: #fff; border: 1px solid #cfe5d6; border-radius: 14px; box-sizing: border-box; box-shadow: 0 14px 26px -18px rgba(22, 101, 52, .55); }
.hub-anim.ha-ean-13-barcode-generator .e13-in small { display: block; margin-bottom: 6px; font: 700 .66rem/1 Inter, system-ui, sans-serif; color: #3f3f46; }
.hub-anim.ha-ean-13-barcode-generator .e13-field { display: flex; align-items: center; height: 36px; margin: 0; padding: 0 10px; border: 1.5px solid #16a34a; border-radius: 8px; font: 600 1rem/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .02em; color: #14532d; }
.hub-anim.ha-ean-13-barcode-generator .e13-field i { font-style: normal; }
.hub-anim.ha-ean-13-barcode-generator .e13-chk { margin-left: 2px; padding: 2px 4px; background: #16a34a; color: #fff; border-radius: 4px; font-weight: 800; }
.hub-anim.ha-ean-13-barcode-generator .e13-ok { display: flex; justify-content: space-between; margin: 8px 0 10px; font: 600 .66rem/1.2 Inter, system-ui, sans-serif; color: #52525b; } .hub-anim.ha-ean-13-barcode-generator .e13-ok em { font-style: normal; color: #15803d; font-weight: 800; }
.hub-anim.ha-ean-13-barcode-generator .e13-btn { display: block; padding: 8px 0; background: #14532d; color: #fff; border-radius: 999px; text-align: center; font: 800 .74rem/1 Manrope, Inter, sans-serif; }
.hub-anim.ha-ean-13-barcode-generator .e13-box { position: relative; width: 230px; flex: 0 0 auto; }
.hub-anim.ha-ean-13-barcode-generator .e13-lid { height: 18px; margin: 0 10px; background: linear-gradient(180deg, #bfe3c9, #9fd3af); border-radius: 6px 6px 0 0; }
.hub-anim.ha-ean-13-barcode-generator .e13-face { padding: 14px 16px 16px; background: linear-gradient(180deg, #e9f6ed, #d4ecdb); border: 1px solid #9fd3af; border-radius: 4px 4px 12px 12px; text-align: center; box-shadow: 0 18px 28px -18px rgba(22, 101, 52, .6); }
.hub-anim.ha-ean-13-barcode-generator .e13-brand { display: block; font: 800 1.05rem/1.1 Manrope, Inter, sans-serif; color: #14532d; } .hub-anim.ha-ean-13-barcode-generator .e13-sub { display: block; margin: 2px 0 12px; font: 600 .66rem/1 Inter, system-ui, sans-serif; color: #3f6b4c; }
.hub-anim.ha-ean-13-barcode-generator .e13-lab { position: relative; display: grid; grid-template-columns: 12px 1fr; align-items: start; padding: 10px 12px 6px 6px; background: #fff; border-radius: 6px; }
.hub-anim.ha-ean-13-barcode-generator .e13-lead { padding-top: 52px; font: 600 .7rem/1 ui-monospace, Menlo, Consolas, monospace; color: #18181b; }
.hub-anim.ha-ean-13-barcode-generator .e13-bars { height: 67px; overflow: hidden; color: #0f0f12; } .hub-anim.ha-ean-13-barcode-generator .e13-svg { display: block; width: 100%; height: 67px; }
.hub-anim.ha-ean-13-barcode-generator .e13-num { grid-column: 2; display: flex; justify-content: space-around; margin: -9px 0 0; padding: 0 6%; font: 600 .7rem/1 ui-monospace, Menlo, Consolas, monospace; color: #18181b; } .hub-anim.ha-ean-13-barcode-generator .e13-num span { background: #fff; padding: 0 3px; }
@media (max-width: 640px) {
 .hub-anim.ha-ean-13-barcode-generator .sc { flex-direction: column; gap: .9rem; } .hub-anim.ha-ean-13-barcode-generator .sc-arrow { transform: rotate(90deg); } .hub-anim.ha-ean-13-barcode-generator .e13-in { width: 236px; } .hub-anim.ha-ean-13-barcode-generator .e13-box { width: 220px; }
}
/* Reduced motion: the finished scene (13 digits in, check digit shown, bars printed). */
@media (prefers-reduced-motion: no-preference) {
 .hub-anim.ha-ean-13-barcode-generator .e13-d0 { animation: e13-d0 10s steps(1, end) infinite both; } @keyframes e13-d0 { 0%, 2.0% { opacity: 0; } 2.1%, 100% { opacity: 1; } }
 .hub-anim.ha-ean-13-barcode-generator .e13-d1 { animation: e13-d1 10s steps(1, end) infinite both; } @keyframes e13-d1 { 0%, 3.6% { opacity: 0; } 3.7%, 100% { opacity: 1; } }
 .hub-anim.ha-ean-13-barcode-generator .e13-d2 { animation: e13-d2 10s steps(1, end) infinite both; } @keyframes e13-d2 { 0%, 5.2% { opacity: 0; } 5.3%, 100% { opacity: 1; } }
 .hub-anim.ha-ean-13-barcode-generator .e13-d3 { animation: e13-d3 10s steps(1, end) infinite both; } @keyframes e13-d3 { 0%, 6.8% { opacity: 0; } 6.9%, 100% { opacity: 1; } }
 .hub-anim.ha-ean-13-barcode-generator .e13-d4 { animation: e13-d4 10s steps(1, end) infinite both; } @keyframes e13-d4 { 0%, 8.4% { opacity: 0; } 8.5%, 100% { opacity: 1; } }
 .hub-anim.ha-ean-13-barcode-generator .e13-d5 { animation: e13-d5 10s steps(1, end) infinite both; } @keyframes e13-d5 { 0%, 10.0% { opacity: 0; } 10.1%, 100% { opacity: 1; } }
 .hub-anim.ha-ean-13-barcode-generator .e13-d6 { animation: e13-d6 10s steps(1, end) infinite both; } @keyframes e13-d6 { 0%, 11.6% { opacity: 0; } 11.7%, 100% { opacity: 1; } }
 .hub-anim.ha-ean-13-barcode-generator .e13-d7 { animation: e13-d7 10s steps(1, end) infinite both; } @keyframes e13-d7 { 0%, 13.2% { opacity: 0; } 13.3%, 100% { opacity: 1; } }
 .hub-anim.ha-ean-13-barcode-generator .e13-d8 { animation: e13-d8 10s steps(1, end) infinite both; } @keyframes e13-d8 { 0%, 14.8% { opacity: 0; } 14.9%, 100% { opacity: 1; } }
 .hub-anim.ha-ean-13-barcode-generator .e13-d9 { animation: e13-d9 10s steps(1, end) infinite both; } @keyframes e13-d9 { 0%, 16.4% { opacity: 0; } 16.5%, 100% { opacity: 1; } }
 .hub-anim.ha-ean-13-barcode-generator .e13-d10 { animation: e13-d10 10s steps(1, end) infinite both; } @keyframes e13-d10 { 0%, 18.0% { opacity: 0; } 18.1%, 100% { opacity: 1; } }
 .hub-anim.ha-ean-13-barcode-generator .e13-d11 { animation: e13-d11 10s steps(1, end) infinite both; } @keyframes e13-d11 { 0%, 19.6% { opacity: 0; } 19.7%, 100% { opacity: 1; } }
 .hub-anim.ha-ean-13-barcode-generator .e13-chk { animation: e13-chk 10s ease infinite both; } .hub-anim.ha-ean-13-barcode-generator .e13-ok { animation: e13-ok 10s ease infinite both; } .hub-anim.ha-ean-13-barcode-generator .e13-btn { animation: e13-btn 10s ease infinite both; }
 .hub-anim.ha-ean-13-barcode-generator .e13-bars { animation: e13-bars 10s ease infinite both; } .hub-anim.ha-ean-13-barcode-generator .e13-lead, .hub-anim.ha-ean-13-barcode-generator .e13-num { animation: e13-num 10s ease infinite both; }
 @keyframes e13-chk { 0%, 22% { opacity: 0; transform: scale(.4); } 26% { opacity: 1; transform: scale(1.25); } 29%, 100% { opacity: 1; transform: none; } }
 @keyframes e13-ok { 0%, 27% { opacity: 0; } 31%, 100% { opacity: 1; } }
 @keyframes e13-btn { 0%, 36% { transform: none; background: #14532d; } 39% { transform: scale(.94); background: #16a34a; } 42%, 100% { transform: none; background: #14532d; } }
 @keyframes e13-bars { 0%, 42% { clip-path: inset(0 100% 0 0); } 66%, 94% { clip-path: inset(0 0 0 0); opacity: 1; } 99%, 100% { clip-path: inset(0 0 0 0); opacity: 0; } }
 @keyframes e13-num { 0%, 64% { opacity: 0; } 70%, 94% { opacity: 1; } 99%, 100% { opacity: 0; } }
}
