/* /tools/zpl-designer: How it works scene (an editor label where a title, a barcode and a QR code drop in, a Zebra 203 dpi chip, the label turning into printer dots, and a label.zpl file with one ^GFA line). */
.hub-anim.ha-zpl-designer .ha-stage { min-height: 0; border: 1px solid #b7e1da; background: linear-gradient(180deg, #f3fbf9 0%, #dcf1ec 100%); }
.hub-anim.ha-zpl-designer .sc { display: flex; align-items: center; justify-content: center; gap: 1.2rem; min-height: 280px; }
.hub-anim.ha-zpl-designer .sc-arrow { color: #115e59; flex: 0 0 auto; } .hub-anim.ha-zpl-designer .sc-arrow svg { width: 54px; height: 28px; display: block; }
.hub-anim.ha-zpl-designer .zd-ed { width: 280px; flex: 0 0 auto; padding: 10px; background: #fff; border: 1px solid #cfe7e2; border-radius: 14px; box-sizing: border-box; box-shadow: 0 16px 28px -18px rgba(17, 94, 89, .5); }
.hub-anim.ha-zpl-designer .zd-bar { display: flex; align-items: center; gap: 5px; margin: 0 0 10px; }
.hub-anim.ha-zpl-designer .zd-tool { display: grid; place-items: center; min-width: 26px; height: 24px; padding: 0 5px; box-sizing: border-box; border: 1px solid #d4dedc; border-radius: 7px; font: 800 .6rem/1 Inter, system-ui, sans-serif; letter-spacing: .02em; color: #134e4a; }
.hub-anim.ha-zpl-designer .zd-chip { margin-left: auto; padding: 5px 8px; border-radius: 999px; background: #e6f4f1; font: 800 .58rem/1 Manrope, Inter, sans-serif; font-style: normal; letter-spacing: .04em; color: #0f766e; }
.hub-anim.ha-zpl-designer .zd-lab { position: relative; height: 130px; background: #fff; border: 2px solid #0f172a; border-radius: 6px; overflow: hidden; }
.hub-anim.ha-zpl-designer .zd-e { position: absolute; display: block; }
.hub-anim.ha-zpl-designer .zd-e1 { left: 12px; top: 10px; font: 900 1.15rem/1 Manrope, Inter, sans-serif; letter-spacing: -.01em; color: #0f172a; }
.hub-anim.ha-zpl-designer .zd-e2 { left: 12px; top: 46px; width: 150px; height: 64px; background: repeating-linear-gradient(90deg, #0f172a 0 2px, transparent 2px 4px, #0f172a 4px 7px, transparent 7px 9px, #0f172a 9px 10px, transparent 10px 13px); }
.hub-anim.ha-zpl-designer .zd-e3 { right: 12px; top: 40px; width: 70px; height: 70px; background:
 linear-gradient(#0f172a, #0f172a) 0 0 / 22px 22px no-repeat, linear-gradient(#0f172a, #0f172a) 100% 0 / 22px 22px no-repeat, linear-gradient(#0f172a, #0f172a) 0 100% / 22px 22px no-repeat,
 repeating-conic-gradient(#0f172a 0 25%, #fff 0 50%) 0 0 / 10px 10px; }
.hub-anim.ha-zpl-designer .zd-dots { position: absolute; inset: 0; background: radial-gradient(circle, rgba(15, 118, 110, .55) 0 1px, transparent 1.4px) 0 0 / 6px 6px; opacity: 0; }
.hub-anim.ha-zpl-designer .zd-file { display: flex; flex-direction: column; gap: 4px; width: 210px; flex: 0 0 auto; padding: 34px 12px 14px; position: relative; background: #0b2f2c; border-radius: 6px 22px 6px 6px; box-sizing: border-box; box-shadow: 0 16px 28px -18px rgba(11, 47, 44, .7); }
.hub-anim.ha-zpl-designer .zd-name { position: absolute; left: 12px; top: 10px; padding: 3px 7px; background: #14b8a6; border-radius: 5px; font: 800 .6rem/1 Inter, system-ui, sans-serif; color: #042f2e; }
.hub-anim.ha-zpl-designer .zd-file b { display: block; overflow: hidden; white-space: nowrap; font: 600 .7rem/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #ccfbf1; }
.hub-anim.ha-zpl-designer .zd-file .zd-gf { color: #5eead4; }
@media (max-width: 640px) {
 .hub-anim.ha-zpl-designer .sc { flex-direction: column; gap: .8rem; } .hub-anim.ha-zpl-designer .sc-arrow { transform: rotate(90deg); } .hub-anim.ha-zpl-designer .ha-stage { padding-bottom: 3.4rem; }
 .hub-anim.ha-zpl-designer .zd-ed { width: 236px; } .hub-anim.ha-zpl-designer .zd-e2 { width: 112px; } .hub-anim.ha-zpl-designer .zd-e3 { width: 60px; height: 60px; top: 46px; }
}
/* Reduced motion: the finished scene (all three elements placed, the dots over the label, the file written). */
.hub-anim.ha-zpl-designer .zd-dots { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
 .hub-anim.ha-zpl-designer .zd-e1, .hub-anim.ha-zpl-designer .zd-t1 { animation: zd-a1 10s ease infinite both; }
 .hub-anim.ha-zpl-designer .zd-e2, .hub-anim.ha-zpl-designer .zd-t2 { animation: zd-a2 10s ease infinite both; }
 .hub-anim.ha-zpl-designer .zd-e3, .hub-anim.ha-zpl-designer .zd-t3 { animation: zd-a3 10s ease infinite both; }
 .hub-anim.ha-zpl-designer .zd-tool { animation-name: zd-tl1; } .hub-anim.ha-zpl-designer .zd-t2 { animation-name: zd-tl2; } .hub-anim.ha-zpl-designer .zd-t3 { animation-name: zd-tl3; }
 .hub-anim.ha-zpl-designer .zd-chip { animation: zd-chip 10s ease infinite both; }
 .hub-anim.ha-zpl-designer .zd-dots { animation: zd-dots 10s ease infinite both; }
 .hub-anim.ha-zpl-designer .zd-file { animation: zd-file 10s ease infinite both; }
 @keyframes zd-a1 { 0%, 4% { opacity: 0; transform: translateY(-14px); } 10%, 94% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; } }
 @keyframes zd-a2 { 0%, 14% { opacity: 0; transform: translateY(-14px); } 20%, 94% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; } }
 @keyframes zd-a3 { 0%, 24% { opacity: 0; transform: translateY(-14px) scale(.9); } 30%, 94% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; } }
 @keyframes zd-tl1 { 0%, 3% { background: transparent; color: #134e4a; } 5%, 9% { background: #0f766e; color: #fff; } 12%, 100% { background: transparent; color: #134e4a; } }
 @keyframes zd-tl2 { 0%, 13% { background: transparent; color: #134e4a; } 15%, 19% { background: #0f766e; color: #fff; } 22%, 100% { background: transparent; color: #134e4a; } }
 @keyframes zd-tl3 { 0%, 23% { background: transparent; color: #134e4a; } 25%, 29% { background: #0f766e; color: #fff; } 32%, 100% { background: transparent; color: #134e4a; } }
 @keyframes zd-chip { 0%, 36% { background: #e6f4f1; color: #0f766e; } 40%, 94% { background: #0f766e; color: #fff; } 99%, 100% { background: #e6f4f1; color: #0f766e; } }
 @keyframes zd-dots { 0%, 44% { opacity: 0; } 52%, 94% { opacity: 1; } 99%, 100% { opacity: 0; } }
 @keyframes zd-file { 0%, 58% { opacity: 0; transform: translateX(-16px); } 66%, 94% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; transform: none; } }
}
/* Tool card: a teal stage with one button and the four Zebra template cards. */
body.article-page.bk-chapters.bk-chapters article.blog-content > .zpl-app { --tool-tint: #effaf8; --tool-accent: #0f766e; }
body.article-page.bk-chapters.bk-chapters article.blog-content > .zpl-app .zpl-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
body.article-page.bk-chapters.bk-chapters article.blog-content > .zpl-app .zpl-actions .buy-button { display: inline-flex; align-items: center; justify-content: center; padding: 13px 22px; background: #0f766e; border: 1px solid #0f766e; border-radius: 12px; font-size: 15px; color: #fff; text-decoration: none; }
body.article-page.bk-chapters.bk-chapters article.blog-content > .zpl-app .zpl-actions .buy-button:hover { background: #115e59; border-color: #115e59; color: #fff; }
body.article-page.bk-chapters.bk-chapters article.blog-content > .zpl-app .example-grid { margin: 0; padding: 16px; background: var(--tool-tint); border: 1px solid color-mix(in srgb, var(--tool-accent) 22%, #e7e9ee); border-radius: 18px; }
@media (max-width: 640px) { body.article-page.bk-chapters.bk-chapters article.blog-content > .zpl-app .example-grid { padding: 10px; border-radius: 14px; } }
/* The four template cards sit in one row on a desktop, two by two on a phone. */
body.article-page.bk-chapters.bk-chapters article.blog-content > .zpl-app .example-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 860px) { body.article-page.bk-chapters.bk-chapters article.blog-content > .zpl-app .example-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
/* "What the ZPL looks like": the sample in a monospace card. */
body.article-page.bk-chapters article.blog-content pre.zpl-sample { margin: 12px 0 16px; padding: 14px 16px; overflow-x: auto; background: #eef8f6; border: 1px solid #c9e7e1; border-radius: 12px; font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre; text-align: left; }
body.article-page.bk-chapters article.blog-content pre.zpl-sample code { background: none; border: 0; padding: 0; font: inherit; }
