.plb-output-controls { border-top: 1px solid var(--plb-border); margin-top: 24px; padding-top: 20px; }
.plb-output-controls input { font: inherit; padding: 9px; color: var(--plb-text); background: var(--plb-bg); border: 1px solid var(--plb-border); border-radius: 4px; min-width: 0; }
.plb-output-controls label { display: grid; gap: 7px; max-width: 460px; margin-bottom: 14px; }
.plb-bench-toolbar { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; align-items: center; }
.plb-bench-toolbar p { flex-basis: 100%; margin: 0; }
.plb-bench-pages { color: #111; color-scheme: light; font: 11pt Arial, sans-serif; overflow-x: auto; }
.plb-bench-page, .plb-bench-legend { background: #fff; color: #111; box-sizing: border-box; }
.plb-bench-page { width: 277mm; min-height: 180mm; padding: 7mm; margin: 0 auto 20px; }
.plb-bench-page header h1 { font: bold 17pt Arial, sans-serif; color: #111; margin: 0 0 2mm; overflow-wrap: anywhere; }
.plb-bench-page p, .plb-bench-legend p { font-size: 9pt; margin: 1.5mm 0 3mm; line-height: 1.3; }
.plb-bench-map { width: 100%; table-layout: fixed; border-collapse: collapse; }
.plb-bench-map th { color: #111; font: bold 10pt Arial, sans-serif; text-align: center; height: 6mm; }
.plb-bench-map th:first-child { width: 8mm; }
.plb-bench-map td { border: 1px solid #555; text-align: center; padding: 1mm 0; height: 19mm; box-sizing: border-box; vertical-align: middle; color: #111; font: 10pt Arial, sans-serif; }
.plb-bench-map td > * { display: block; line-height: 1.2; }
.plb-bench-map td strong { font-size: 12pt; }
.plb-bench-coordinate { font-size: 8pt; }
.plb-bench-replicate { overflow-wrap: anywhere; }
.plb-bench-map td[data-role="blank"] { border: 1px dashed #111; }
.plb-bench-map td[data-role="control"] { border: 3px double #111; }
.plb-bench-map td[data-role="unused"] { background: repeating-linear-gradient(135deg,#fff 0,#fff 4px,#ddd 4px,#ddd 5px); }
.plb-bench-page[data-size="48"] .plb-bench-map td { height: 16mm; }
.plb-bench-page[data-size="96"] .plb-bench-map td { height: 12mm; font-size: 9pt; }
.plb-bench-page[data-size="96"] .plb-bench-map td strong { font-size: 10pt; }
.plb-bench-page[data-size="96"] .plb-bench-coordinate { font-size: 7pt; }
.plb-bench-page[data-size="384"] .plb-bench-map td { height: 12mm; font-size: 8pt; }
.plb-bench-page[data-size="384"] .plb-bench-map td strong { font-size: 9pt; }
.plb-bench-page[data-size="384"] .plb-bench-coordinate { font-size: 7pt; }
.plb-bench-role-key { border-bottom: 1px solid #777; padding-bottom: 2mm; }
.plb-bench-legend { width: 277mm; padding: 7mm; margin: 0 auto 20px; }
.plb-bench-legend h2 { color: #111; font: bold 12pt Arial, sans-serif; margin: 0 0 3mm; overflow-wrap: anywhere; }
.plb-bench-legend table { table-layout: fixed; border-collapse: collapse; width: 100%; font-size: 9pt; }
.plb-bench-legend th, .plb-bench-legend td { border: 1px solid #777; padding: 2mm; text-align: left; overflow-wrap: anywhere; white-space: pre-wrap; vertical-align: top; color: #111; }
.plb-bench-legend th { background: #eee; font-weight: bold; }
.plb-bench-legend th:first-child { width: 16mm; }
.plb-bench-legend th:nth-child(3) { width: 20mm; }
.plb-bench-legend th:last-child { width: 16mm; }
.plb-bench-page .plb-bench-legend { width: auto; padding: 0; margin: 3mm 0 0; }
.plb-print-help { display: none; }
@page { size: A4 landscape; margin: 10mm; }
@media print {
  html, body.plb-app { background: #fff !important; color: #111; margin: 0; padding: 0; overflow: visible; }
  body.plb-app { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .plb-masthead, .plb-skip-link, #workspace-content, .plb-bench-toolbar, #status, dialog { display: none !important; }
  body.plb-app main#main { width: auto; max-width: none; margin: 0; padding: 0; }
  .plb-show-bench #bench-view { display: block !important; }
  .plb-bench-pages { overflow: visible; }
  .plb-bench-page { width: 100%; min-height: 0; padding: 0; margin: 0; break-after: page; break-inside: avoid; }
  .plb-bench-page:last-child { break-after: auto; }
  .plb-bench-legend { width: 100%; margin: 0; padding: 0; }
  .plb-bench-legend thead { display: table-header-group; }
  .plb-bench-legend tr { break-inside: avoid; }
  .plb-bench-legend h2 { break-after: avoid; }
  body:not(.plb-show-bench) .plb-print-help { display: block; }
}
