.label-tool { margin: 16px 0; padding: 16px; background: var(--paper); border: 4px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.label-tool label { display: block; margin: 0 0 6px; font-family: var(--display); font-weight: 800; font-size: 16px; color: var(--ink); }
.label-tool input {
  box-sizing: border-box; width: 100%; min-height: 44px; padding: 8px 10px;
  background: #fff; color: var(--ink); border: 3px solid var(--ink); font: 600 17px var(--body);
}
.label-tool input:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.label-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0; }
.label-actions button {
  min-height: 48px; padding: 0 18px; cursor: pointer;
  border: 4px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--display); font-weight: 800; font-size: 16px;
}
.label-actions .primary { background: var(--red); color: var(--paper); }
.label-actions .secondary { background: #fff; color: var(--ink); }
.label-actions button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.label { box-sizing: border-box; max-width: 360px; padding: 12px 14px; background: #fff; border: 2px dashed var(--ink); color: #000; }
.panel .label p { margin: 0; color: #000; }
.panel .label .label-name { font-family: var(--display); font-weight: 800; font-size: 18px; margin-bottom: 8px; }
.label-bars svg { display: block; width: 100%; height: 70px; }
.panel .label .label-caption { margin-top: 6px; font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.label-sheet { display: none; }

@media print {
  body::before, header, footer, .skip, .panel > :not(.label-tool), .label-tool > :not(.label-sheet) { display: none !important; }
  .shell { padding: 0; }
  .panel, .label-tool { border: 0; box-shadow: none; padding: 0; margin: 0; background: #fff; animation: none; }
  .label-sheet { display: grid; grid-template-columns: 1fr 1fr; gap: 10mm; }
  .label { max-width: none; break-inside: avoid; }
  .label-bars svg { height: 22mm; }
}
