/* /tools/msi-barcode-generator: How it works (plain MSI is rejected by the shelf gun, MSI10 adds check digit 1, the tag is accepted). */
.hub-anim.ha-msi-barcode-generator .ha-stage { min-height: 0; border: 1px solid #d4d4d8; background: linear-gradient(180deg, #fafafa 0%, #f0f0f2 70%, #e4e4e7 100%); }
.hub-anim.ha-msi-barcode-generator .sc { display: flex; align-items: center; justify-content: center; gap: 1.4rem; min-height: 240px; }
.hub-anim.ha-msi-barcode-generator .sc-arrow { color: #52525b; flex: 0 0 auto; } .hub-anim.ha-msi-barcode-generator .sc-arrow svg { width: 64px; height: 32px; display: block; }
.hub-anim.ha-msi-barcode-generator .ms-pick { width: 210px; padding: 14px; background: #fff; border: 1px solid #d4d4d8; border-radius: 12px; box-sizing: border-box; box-shadow: 0 10px 20px -14px rgba(24, 24, 27, .45); }
.hub-anim.ha-msi-barcode-generator .ms-pick small { display: block; margin-bottom: 8px; font: 700 .62rem/1 Inter, system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #71717a; }
.hub-anim.ha-msi-barcode-generator .ms-pick p { position: relative; display: flex; margin: 0; padding: 4px; background: #f4f4f5; border-radius: 9px; }
.hub-anim.ha-msi-barcode-generator .ms-pick p span { position: relative; z-index: 1; flex: 1; padding: 8px 0; font: 800 .74rem/1 Manrope, Inter, sans-serif; color: #52525b; text-align: center; }
.hub-anim.ha-msi-barcode-generator .ms-pick p span.ms-p1 { color: #fff; }
.hub-anim.ha-msi-barcode-generator .ms-hi { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); background: #3f3f46; border-radius: 6px; transform: translateX(100%); }
.hub-anim.ha-msi-barcode-generator .ms-shelf { position: relative; width: 270px; padding: 14px 14px 22px; background: linear-gradient(180deg, #a1a1aa 0 8px, #d4d4d8 8px 100%); border-radius: 4px; box-sizing: border-box; box-shadow: 0 12px 20px -14px rgba(24, 24, 27, .6); }
.hub-anim.ha-msi-barcode-generator .ms-tag { position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto auto; column-gap: 10px; padding: 9px 11px 8px; background: #fffbeb; border-left: 5px solid #f59e0b; border-radius: 3px; }
.hub-anim.ha-msi-barcode-generator .ms-price { grid-column: 2; grid-row: 1 / 3; align-self: center; font: 800 1.3rem/1 Manrope, Inter, sans-serif; color: #18181b; }
.hub-anim.ha-msi-barcode-generator .ms-name { grid-column: 1; grid-row: 1; font: 700 .74rem/1.2 Inter, system-ui, sans-serif; color: #3f3f46; }
.hub-anim.ha-msi-barcode-generator .ms-b { grid-column: 1; grid-row: 2; display: block; width: 100%; height: 40px; margin-top: 6px; fill: #18181b; }
.hub-anim.ha-msi-barcode-generator .ms-b1 { opacity: 0; }
.hub-anim.ha-msi-barcode-generator .ms-num { grid-column: 1; grid-row: 3; margin: 3px 0 0; font: 700 .78rem/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .12em; color: #18181b; }
.hub-anim.ha-msi-barcode-generator .ms-num em { font-style: normal; color: #b45309; background: #fde68a; border-radius: 3px; padding: 0 2px; }
.hub-anim.ha-msi-barcode-generator .ms-beam { position: absolute; left: 6px; right: 6px; top: 58px; height: 2px; background: #ef4444; box-shadow: 0 0 8px 2px rgba(239, 68, 68, .5); opacity: 0; }
.hub-anim.ha-msi-barcode-generator .ms-no, .hub-anim.ha-msi-barcode-generator .ms-ok { position: absolute; right: 10px; bottom: -13px; margin: 0; padding: 6px 11px; border-radius: 999px; font: 800 .7rem/1 Manrope, Inter, sans-serif; color: #fff; }
.hub-anim.ha-msi-barcode-generator .ms-no { background: #dc2626; opacity: 0; } .hub-anim.ha-msi-barcode-generator .ms-ok { background: #16a34a; }
@media (max-width: 640px) {
 .hub-anim.ha-msi-barcode-generator .sc { flex-direction: column; gap: .9rem; } .hub-anim.ha-msi-barcode-generator .sc-arrow { transform: rotate(90deg); } .hub-anim.ha-msi-barcode-generator .ha-stage { padding-bottom: 3.4rem; }
 .hub-anim.ha-msi-barcode-generator .ms-shelf { width: 250px; }
}
/* Reduced motion: the finished scene (MSI10 picked, check digit shown, accepted). */
@media (prefers-reduced-motion: no-preference) {
 .hub-anim.ha-msi-barcode-generator .ms-b1 { animation: ms-b1 10s steps(1, end) infinite both; } .hub-anim.ha-msi-barcode-generator .ms-b2 { animation: ms-b2 10s steps(1, end) infinite both; }
 .hub-anim.ha-msi-barcode-generator .ms-num em { animation: ms-em 10s ease infinite both; } .hub-anim.ha-msi-barcode-generator .ms-hi { animation: ms-hi 10s cubic-bezier(.3, .7, .3, 1) infinite both; }
 .hub-anim.ha-msi-barcode-generator .ms-p0 { animation: ms-p0 10s steps(1, end) infinite both; } .hub-anim.ha-msi-barcode-generator .ms-pick p span.ms-p1 { animation: ms-p1 10s steps(1, end) infinite both; }
 .hub-anim.ha-msi-barcode-generator .ms-beam { animation: ms-beam 10s ease-in-out infinite both; } .hub-anim.ha-msi-barcode-generator .ms-no { animation: ms-no 10s ease infinite both; } .hub-anim.ha-msi-barcode-generator .ms-ok { animation: ms-ok 10s ease infinite both; }
 @keyframes ms-b1 { 0%, 52% { opacity: 1; } 53%, 100% { opacity: 0; } }
 @keyframes ms-b2 { 0%, 52% { opacity: 0; } 53%, 100% { opacity: 1; } }
 @keyframes ms-em { 0%, 50% { opacity: 0; } 56%, 100% { opacity: 1; } }
 @keyframes ms-hi { 0%, 42% { transform: none; } 50%, 100% { transform: translateX(100%); } }
 @keyframes ms-p0 { 0%, 45% { color: #fff; } 46%, 100% { color: #52525b; } }
 @keyframes ms-p1 { 0%, 45% { color: #52525b; } 46%, 100% { color: #fff; } }
 @keyframes ms-beam { 0%, 8% { opacity: 0; } 10%, 22% { opacity: 1; transform: translateY(0); } 16% { transform: translateY(12px); } 24%, 60% { opacity: 0; } 62%, 74% { opacity: 1; transform: translateY(0); } 68% { transform: translateY(12px); } 76%, 100% { opacity: 0; } }
 @keyframes ms-no { 0%, 22% { opacity: 0; transform: scale(.6); } 25%, 38% { opacity: 1; transform: none; } 42%, 100% { opacity: 0; } }
 @keyframes ms-ok { 0%, 74% { opacity: 0; transform: scale(.6); } 78%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; } }
}
