/* /tools/zpl-viewer: How it works scene (a .zpl file dropped into the box, pins at each ^FO on a 4 x 6 preview, a Zebra feeding the label out). */
.hub-anim.ha-zpl-viewer .ha-stage { min-height: 0; border: 1px solid #cbd5e1; background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%); }
.hub-anim.ha-zpl-viewer .sc { display: flex; align-items: center; justify-content: center; gap: 1.1rem; min-height: 280px; }
.hub-anim.ha-zpl-viewer .sc-arrow { color: #334155; flex: 0 0 auto; } .hub-anim.ha-zpl-viewer .sc-arrow svg { width: 54px; height: 28px; display: block; }
.hub-anim.ha-zpl-viewer .zv-drop { position: relative; width: 236px; height: 190px; flex: 0 0 auto; padding: 34px 12px 12px; background: #0f172a; border: 2px dashed #64748b; border-radius: 12px; box-sizing: border-box; box-shadow: 0 16px 28px -18px rgba(15, 23, 42, .6); }
.hub-anim.ha-zpl-viewer .zv-file { position: absolute; left: 50%; top: 8px; display: flex; align-items: center; gap: 6px; margin-left: -50px; width: 100px; padding: 4px 8px; background: #fff; border-radius: 6px; box-sizing: border-box; font: 700 .64rem/1.2 Inter, system-ui, sans-serif; color: #0f172a; box-shadow: 0 6px 12px -6px rgba(0, 0, 0, .5); }
.hub-anim.ha-zpl-viewer .zv-file i { width: 10px; height: 13px; border: 1.5px solid #475569; border-radius: 2px; box-sizing: border-box; flex: 0 0 auto; }
.hub-anim.ha-zpl-viewer .zv-code { display: flex; flex-direction: column; gap: 5px; }
.hub-anim.ha-zpl-viewer .zv-l { display: block; overflow: hidden; white-space: nowrap; max-width: 100%; font: 600 .7rem/1.25 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #e2e8f0; }
.hub-anim.ha-zpl-viewer .zv-l2, .hub-anim.ha-zpl-viewer .zv-l4, .hub-anim.ha-zpl-viewer .zv-l5 { color: #fdba74; }
.hub-anim.ha-zpl-viewer .zv-dpi { position: absolute; right: 10px; bottom: 9px; padding: 3px 7px; background: #334155; border-radius: 999px; font: 800 .58rem/1 Manrope, Inter, sans-serif; letter-spacing: .06em; color: #f8fafc; }
.hub-anim.ha-zpl-viewer .zv-lab { position: relative; width: 150px; height: 225px; flex: 0 0 auto; background: #fff; border: 2px solid #0f172a; border-radius: 6px; box-sizing: border-box; box-shadow: 0 14px 24px -16px rgba(15, 23, 42, .55); }
.hub-anim.ha-zpl-viewer .zv-pin { position: absolute; left: -2px; padding: 2px 5px; background: #ea580c; color: #fff; border-radius: 4px 4px 4px 0; font: 700 .52rem/1 ui-monospace, Menlo, Consolas, monospace; transform: translate(-100%, -50%); }
.hub-anim.ha-zpl-viewer .zv-pin::after { content: ""; position: absolute; right: -6px; top: 50%; width: 6px; height: 1.5px; background: #ea580c; }
.hub-anim.ha-zpl-viewer .zv-p1 { top: 22px; } .hub-anim.ha-zpl-viewer .zv-p2 { top: 58px; } .hub-anim.ha-zpl-viewer .zv-p3 { top: 112px; }
.hub-anim.ha-zpl-viewer .zv-f { position: absolute; left: 12px; display: block; }
.hub-anim.ha-zpl-viewer .zv-f1 { top: 12px; font: 800 .9rem/1.2 Manrope, Inter, sans-serif; color: #0f172a; }
.hub-anim.ha-zpl-viewer .zv-f2 { top: 50px; font: 600 .74rem/1.2 Inter, system-ui, sans-serif; color: #0f172a; }
.hub-anim.ha-zpl-viewer .zv-f3 { top: 104px; width: 118px; height: 46px; 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-viewer .zv-size { position: absolute; left: 0; right: 0; bottom: -22px; font: 700 .62rem/1 Inter, system-ui, sans-serif; font-style: normal; color: #475569; text-align: center; }
.hub-anim.ha-zpl-viewer .zv-pr { position: relative; width: 128px; height: 230px; flex: 0 0 auto; }
.hub-anim.ha-zpl-viewer .zv-body { position: absolute; z-index: 2; left: 0; right: 0; top: 0; height: 78px; background: linear-gradient(180deg, #475569, #1e293b); border-radius: 28px 28px 8px 8px; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .18), 0 12px 20px -14px rgba(0, 0, 0, .6); }
.hub-anim.ha-zpl-viewer .zv-led { position: absolute; right: 16px; top: 18px; width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 6px #22c55e; }
.hub-anim.ha-zpl-viewer .zv-slot { position: absolute; left: 14px; right: 14px; bottom: 9px; height: 6px; border-radius: 3px; background: #0b1220; }
.hub-anim.ha-zpl-viewer .zv-feed { position: absolute; left: 20px; right: 20px; top: 70px; height: 150px; overflow: hidden; }
.hub-anim.ha-zpl-viewer .zv-out { height: 140px; padding: 16px 9px 0; background: #fff; border: 2px solid #0f172a; border-top: 0; border-radius: 0 0 6px 6px; box-sizing: border-box; }
.hub-anim.ha-zpl-viewer .zv-out b { display: block; font: 800 .72rem/1.2 Manrope, Inter, sans-serif; color: #0f172a; } .hub-anim.ha-zpl-viewer .zv-out span { display: block; margin: 5px 0 12px; font: 600 .6rem/1.2 Inter, system-ui, sans-serif; color: #0f172a; }
.hub-anim.ha-zpl-viewer .zv-out i { display: block; height: 34px; background: repeating-linear-gradient(90deg, #0f172a 0 2px, transparent 2px 4px, #0f172a 4px 6px, transparent 6px 8px); }
@media (max-width: 640px) {
 .hub-anim.ha-zpl-viewer .sc { flex-direction: column; gap: .8rem; } .hub-anim.ha-zpl-viewer .sc-arrow { transform: rotate(90deg); } .hub-anim.ha-zpl-viewer .ha-stage { padding-bottom: 3.4rem; }
 .hub-anim.ha-zpl-viewer .zv-drop { width: 230px; } .hub-anim.ha-zpl-viewer .zv-lab { margin-left: 34px; margin-bottom: 30px; } .hub-anim.ha-zpl-viewer .zv-pr { height: 210px; }
}
/* Reduced motion: the finished scene (code in the box, every field placed, the label out of the printer). */
.hub-anim.ha-zpl-viewer .zv-file { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
 .hub-anim.ha-zpl-viewer .zv-file { animation: zv-file 10s ease infinite both; } .hub-anim.ha-zpl-viewer .zv-drop { animation: zv-drop 10s ease infinite both; }
 .hub-anim.ha-zpl-viewer .zv-l1 { animation: zv-l1 10s steps(16, end) infinite both; } .hub-anim.ha-zpl-viewer .zv-l2 { animation: zv-l2 10s steps(18, end) infinite both; } .hub-anim.ha-zpl-viewer .zv-l3 { animation: zv-l3 10s steps(12, end) infinite both; }
 .hub-anim.ha-zpl-viewer .zv-l4 { animation: zv-l4 10s steps(22, end) infinite both; } .hub-anim.ha-zpl-viewer .zv-l5 { animation: zv-l5 10s steps(16, end) infinite both; } .hub-anim.ha-zpl-viewer .zv-l6 { animation: zv-l6 10s steps(3, end) infinite both; }
 .hub-anim.ha-zpl-viewer .zv-p1, .hub-anim.ha-zpl-viewer .zv-f1 { animation: zv-s1 10s ease infinite both; } .hub-anim.ha-zpl-viewer .zv-p2, .hub-anim.ha-zpl-viewer .zv-f2 { animation: zv-s2 10s ease infinite both; } .hub-anim.ha-zpl-viewer .zv-p3, .hub-anim.ha-zpl-viewer .zv-f3 { animation: zv-s3 10s ease infinite both; }
 .hub-anim.ha-zpl-viewer .zv-out { animation: zv-out 10s ease infinite both; } .hub-anim.ha-zpl-viewer .zv-led { animation: zv-led 10s linear infinite both; }
 @keyframes zv-file { 0% { opacity: 0; transform: translateY(-34px) rotate(-6deg); } 6% { opacity: 1; transform: translateY(-34px) rotate(-6deg); } 12% { opacity: 1; transform: none; } 16%, 100% { opacity: 0; transform: none; } }
 @keyframes zv-drop { 0%, 9% { border-color: #64748b; } 12%, 16% { border-color: #fb923c; } 20%, 100% { border-color: #64748b; } }
 @keyframes zv-l1 { 0%, 14% { max-width: 0; } 20%, 100% { max-width: 100%; } }
 @keyframes zv-l2 { 0%, 20% { max-width: 0; } 26%, 100% { max-width: 100%; } }
 @keyframes zv-l3 { 0%, 26% { max-width: 0; } 30%, 100% { max-width: 100%; } }
 @keyframes zv-l4 { 0%, 30% { max-width: 0; } 36%, 100% { max-width: 100%; } }
 @keyframes zv-l5 { 0%, 36% { max-width: 0; } 41%, 100% { max-width: 100%; } }
 @keyframes zv-l6 { 0%, 41% { max-width: 0; } 43%, 100% { max-width: 100%; } }
 @keyframes zv-s1 { 0%, 45% { opacity: 0; } 49%, 94% { opacity: 1; } 99%, 100% { opacity: 0; } }
 @keyframes zv-s2 { 0%, 50% { opacity: 0; } 54%, 94% { opacity: 1; } 99%, 100% { opacity: 0; } }
 @keyframes zv-s3 { 0%, 55% { opacity: 0; } 59%, 94% { opacity: 1; } 99%, 100% { opacity: 0; } }
 @keyframes zv-out { 0%, 64% { transform: translateY(-100%); } 82%, 94% { transform: none; opacity: 1; } 99%, 100% { transform: none; opacity: 0; } }
 @keyframes zv-led { 0%, 64% { background: #22c55e; } 66%, 80% { background: #f59e0b; box-shadow: 0 0 6px #f59e0b; } 82%, 100% { background: #22c55e; } }
}
/* This page only: the commands card shows ZPL in a monospace font, so ^A0 doesn't read as "^Ao" in Georgia's old-style numerals. */
body.article-page.bk-chapters.bk-chapters article.blog-content .bk-paper.bk-k-cardlist td:first-child { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-variant-numeric: lining-nums; }
/* mylabelmaker ZPL viewer vs Labelary card: fit three columns on a phone. */
@media (max-width: 640px) {
 body.article-page.bk-chapters article.blog-content .bk-paper.bk-k-receipt table { table-layout: fixed; width: 100%; }
 body.article-page.bk-chapters article.blog-content .bk-paper.bk-k-receipt th,
 body.article-page.bk-chapters article.blog-content .bk-paper.bk-k-receipt td { padding: 8px 6px; font-size: 12.5px; line-height: 1.4; overflow-wrap: anywhere; hyphens: auto; }
 body.article-page.bk-chapters article.blog-content .bk-paper.bk-k-receipt th { letter-spacing: .04em; font-size: 10.5px; }
 body.article-page.bk-chapters article.blog-content .bk-paper.bk-k-receipt th:first-child,
 body.article-page.bk-chapters article.blog-content .bk-paper.bk-k-receipt td:first-child { width: 28%; }
}
@media (max-width: 640px) {
 body.article-page.bk-chapters article.blog-content .bk-paper.bk-k-receipt th { overflow-wrap: normal; hyphens: manual; letter-spacing: 0; font-size: 9.5px; }
 body.article-page.bk-chapters article.blog-content .bk-paper.bk-k-receipt th:first-child, body.article-page.bk-chapters article.blog-content .bk-paper.bk-k-receipt td:first-child { width: 27%; }
 body.article-page.bk-chapters article.blog-content .bk-paper.bk-k-receipt th:nth-child(2), body.article-page.bk-chapters article.blog-content .bk-paper.bk-k-receipt td:nth-child(2) { width: 40%; }
 body.article-page.bk-chapters article.blog-content .bk-paper.bk-k-receipt td { hyphens: manual; overflow-wrap: break-word; }
}
/* Viewer controls: DPI, width and height as one row of matching fields, and a real drop zone for .zpl files. */
body.article-page.bk-chapters article.blog-content .zpl-app .zpl-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 4px 0 14px; }
body.article-page.bk-chapters article.blog-content .zpl-app .zpl-row label { display: flex; flex-direction: column; gap: 6px; margin: 0; font: 600 11.5px/1.2 Inter, system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #71717a; }
body.article-page.bk-chapters article.blog-content .zpl-app .zpl-row input,
body.article-page.bk-chapters article.blog-content .zpl-app .zpl-row select { box-sizing: border-box; width: 100%; height: 46px; margin: 0; padding: 0 14px; background: #fff; border: 1px solid #dfe3ea; border-radius: 12px; box-shadow: 0 1px 2px rgba(15, 15, 18, .05); font: 700 16px/1 Inter, system-ui, sans-serif; letter-spacing: 0; text-transform: none; color: #0f0f12; transition: border-color .15s, box-shadow .15s; }
body.article-page.bk-chapters article.blog-content .zpl-app .zpl-row select { -webkit-appearance: none; appearance: none; padding-right: 36px; cursor: pointer; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center / 16px 16px no-repeat; }
body.article-page.bk-chapters article.blog-content .zpl-app .zpl-row input:hover,
body.article-page.bk-chapters article.blog-content .zpl-app .zpl-row select:hover { border-color: #c4cad4; }
body.article-page.bk-chapters article.blog-content .zpl-app .zpl-row input:focus,
body.article-page.bk-chapters article.blog-content .zpl-app .zpl-row select:focus { outline: none; border-color: #475569; box-shadow: 0 0 0 3px rgba(71, 85, 105, .18); }
body.article-page.bk-chapters article.blog-content .zpl-app .zpl-drop { position: relative; display: flex; align-items: center; gap: 14px; margin: 0 0 16px; padding: 16px 18px; background: #fff; border: 1.5px dashed #c4cad4; border-radius: 14px; cursor: pointer; transition: border-color .15s, background .15s; }
body.article-page.bk-chapters article.blog-content .zpl-app .zpl-drop:hover,
body.article-page.bk-chapters article.blog-content .zpl-app .zpl-drop.is-over { border-color: #475569; background: #f8fafc; }
body.article-page.bk-chapters article.blog-content .zpl-app .zpl-drop:focus-within { border-color: #475569; box-shadow: 0 0 0 3px rgba(71, 85, 105, .18); }
body.article-page.bk-chapters article.blog-content .zpl-app .zpl-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
body.article-page.bk-chapters article.blog-content .zpl-app .zpl-drop-icon { flex: 0 0 42px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #0f0f12; color: #fff; }
body.article-page.bk-chapters article.blog-content .zpl-app .zpl-drop-icon svg { width: 20px; height: 20px; }
body.article-page.bk-chapters article.blog-content .zpl-app .zpl-drop-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
body.article-page.bk-chapters article.blog-content .zpl-app .zpl-drop-text b { font: 700 15px/1.3 Inter, system-ui, sans-serif; color: #0f0f12; }
body.article-page.bk-chapters article.blog-content .zpl-app .zpl-drop-text span { font: 400 13.5px/1.4 Inter, system-ui, sans-serif; color: #71717a; }
@media (max-width: 640px) {
 body.article-page.bk-chapters article.blog-content .zpl-app .zpl-row { gap: 8px; }
 body.article-page.bk-chapters article.blog-content .zpl-app .zpl-row label { font-size: 10.5px; letter-spacing: .05em; }
 body.article-page.bk-chapters article.blog-content .zpl-app .zpl-row input, body.article-page.bk-chapters article.blog-content .zpl-app .zpl-row select { padding: 0 10px; }
 body.article-page.bk-chapters article.blog-content .zpl-app .zpl-row select { padding-right: 28px; background-position: right 8px center; }
}
body.article-page.bk-chapters article.blog-content .zpl-app .zpl-drop { flex-direction: row; text-align: left; }
/* DPI, width, height and the in / cm / mm switch share one row (two by two on a phone). */
body.article-page.bk-chapters article.blog-content .zpl-app .zpl-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; }
body.article-page.bk-chapters article.blog-content .zpl-app .zpl-dim { position: relative; display: block; }
body.article-page.bk-chapters article.blog-content .zpl-app .zpl-row .zpl-dim input { padding-right: 44px; }
body.article-page.bk-chapters article.blog-content .zpl-app .zpl-suffix { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font: 600 13px/1 Inter, system-ui, sans-serif; letter-spacing: 0; text-transform: none; color: #71717a; pointer-events: none; }
body.article-page.bk-chapters article.blog-content .zpl-app .zpl-units { margin: 0; padding: 0; border: 0; min-width: 0; }
body.article-page.bk-chapters article.blog-content .zpl-app .zpl-units legend { padding: 0; margin: 0 0 6px; font: 600 11.5px/1.2 Inter, system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #71717a; }
body.article-page.bk-chapters article.blog-content .zpl-app .zpl-units-seg { display: inline-flex; height: 46px; padding: 4px; box-sizing: border-box; background: #fff; border: 1px solid #dfe3ea; border-radius: 12px; box-shadow: 0 1px 2px rgba(15, 15, 18, .05); }
body.article-page.bk-chapters article.blog-content .zpl-app .zpl-units-seg label { position: relative; display: block; margin: 0; cursor: pointer; }
body.article-page.bk-chapters article.blog-content .zpl-app .zpl-units-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
body.article-page.bk-chapters article.blog-content .zpl-app .zpl-units-seg span { display: grid; place-items: center; min-width: 44px; height: 100%; padding: 0 10px; box-sizing: border-box; border-radius: 9px; font: 700 14px/1 Inter, system-ui, sans-serif; letter-spacing: 0; text-transform: none; color: #3f3f46; transition: background .15s, color .15s; }
body.article-page.bk-chapters article.blog-content .zpl-app .zpl-units-seg label:hover span { background: #f1f5f9; }
body.article-page.bk-chapters article.blog-content .zpl-app .zpl-units-seg input:checked + span { background: #0f0f12; color: #fff; }
body.article-page.bk-chapters article.blog-content .zpl-app .zpl-units-seg input:focus-visible + span { box-shadow: 0 0 0 3px rgba(59, 110, 165, .35); }
@media (max-width: 640px) {
 body.article-page.bk-chapters article.blog-content .zpl-app .zpl-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
 body.article-page.bk-chapters article.blog-content .zpl-app .zpl-units-seg { display: flex; width: 100%; }
 body.article-page.bk-chapters article.blog-content .zpl-app .zpl-units-seg label { flex: 1; }
 body.article-page.bk-chapters article.blog-content .zpl-app .zpl-units-seg span { min-width: 0; }
}
@media (max-width: 640px) {
 body.article-page.bk-chapters article.blog-content .zpl-app .zpl-units { width: 100%; }
 body.article-page.bk-chapters article.blog-content .zpl-app .zpl-units-seg { width: 100%; }
 body.article-page.bk-chapters article.blog-content .zpl-app .zpl-units-seg label { flex: 1 1 0; min-width: 0; }
 body.article-page.bk-chapters article.blog-content .zpl-app .zpl-units-seg span { padding: 0; font-size: 13px; }
}
/* Copyable ZPL examples: one card, one row per example. */
body.article-page.bk-chapters article.blog-content .zpl-examples { margin: 18px 0 4px; background: #fff; border: 1px solid #e7e9ee; border-radius: 20px; box-shadow: 0 1px 0 rgba(15, 15, 18, .04), 0 18px 36px -26px rgba(15, 15, 18, .28); overflow: hidden; }
body.article-page.bk-chapters article.blog-content .zpl-examples .zpl-ex { padding: 18px 22px 16px; border-top: 1px solid #eef0f3; }
body.article-page.bk-chapters article.blog-content .zpl-examples .zpl-ex:first-child { border-top: 0; }
body.article-page.bk-chapters article.blog-content .zpl-examples .zpl-ex h3 { margin: 0 0 8px; font: 700 15.5px/1.3 Inter, system-ui, sans-serif; color: #0f0f12; text-align: left; }
body.article-page.bk-chapters article.blog-content .zpl-examples pre.zpl-sample { margin: 0 0 8px; padding: 10px 12px; background: #eaf2fb; border: 1px solid #d3e1f1; border-radius: 10px; font-size: 12.5px; line-height: 1.5; white-space: pre-wrap; word-break: break-all; }
body.article-page.bk-chapters article.blog-content .zpl-examples pre.zpl-sample code { background: none; border: 0; padding: 0; font-size: inherit; }
body.article-page.bk-chapters article.blog-content .zpl-examples .zpl-ex p { margin: 0; font-size: 14.5px; line-height: 1.55; color: #52525b; }
@media (max-width: 640px) { body.article-page.bk-chapters article.blog-content .zpl-examples .zpl-ex { padding: 14px 14px 12px; } }
body.article-page.bk-chapters article.blog-content .zpl-examples pre.zpl-sample, body.article-page.bk-chapters article.blog-content .zpl-examples pre.zpl-sample code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
