*{box-sizing:border-box}body{font-family:Segoe UI,system-ui,sans-serif;color:#17304a;background:#f2f5f8;margin:0;padding:24px}header{max-width:900px;margin:auto auto 24px}h1{font-size:28px}header p{line-height:1.5}a{color:#176cdb}.toolbar{display:flex;flex-wrap:wrap;gap:10px}button{font:inherit;min-height:48px;padding:10px 16px;border:0;border-radius:8px;background:#176cdb;color:white;cursor:pointer}button:disabled{opacity:.5;cursor:default}button:focus-visible,input:focus-visible,a:focus-visible{outline:3px solid #eaa12c;outline-offset:3px}main{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),340px));gap:20px;justify-content:center}.label-card{min-width:0}.label-select{display:flex;align-items:center;gap:8px;min-height:48px;overflow-wrap:anywhere}.label-select input{width:22px;height:22px;flex-shrink:0}.sticker{border:1px dashed #8e9caa;background:white;color:black;padding:10px;text-align:center;min-height:189px;display:flex;flex-direction:column;justify-content:center}.sticker small{font-size:10px;letter-spacing:1px}.sticker h2{font-size:28px;line-height:1.1;margin:6px 0 0;overflow-wrap:anywhere}.sticker.long-name h2{font-size:20px}.sticker.very-long-name h2{font-size:16px}.sticker svg{display:block;width:100%;height:auto;max-height:100px}.label-code{font:14px ui-monospace,monospace;margin:0}.omit-label .sticker{opacity:.35}
/* Three 100 x 50 mm labels on each 100 x 150 mm thermal sheet. */
@page{size:100mm 150mm;margin:0}
@media print{
 html,body{width:100mm;padding:0;margin:0;background:white;color:black}
 header,.label-select,.omit-label{display:none!important}
 main{display:block;width:100mm;margin:0;padding:0}
 .label-card{display:block;break-inside:avoid;page-break-inside:avoid;width:100mm;height:50mm;margin:0;padding:0}
 .sticker{display:grid;grid-template-rows:4mm minmax(0,1fr) 20mm 4mm;align-items:center;width:100mm;height:50mm;min-height:0;padding:3mm;border:0;overflow:hidden}
 .sticker h2{font-size:28pt;line-height:1.08;margin:0;max-height:100%}
 .sticker.long-name h2{font-size:17pt}.sticker.very-long-name h2{font-size:12pt}
 .sticker svg{width:100%;height:20mm;max-height:20mm}
 .sticker small{font-size:7pt}.label-code{font-size:10pt}
}