.plc-point-dot { display:inline-block; width:.65em; height:.65em; border:1px solid #111; border-radius:50%; background:var(--plc-source); margin-right:.2em; }
.plc-smart-photo { display: flex; flex-direction: column; height: 100%; margin: 0; min-height: 0; }
.plc-smart-photo img { width: 100%; flex: 1; min-height: 0; }
.plc-smart-photo figcaption { flex: 0 0 auto; overflow-wrap: anywhere; }
/* LOTOIQ placards + placard editor. Namespaces: .plc-* (renderer), .ple-* (editor). */
.plc-page {
  --plc-red: #c1121f;
  --plc-red-deep: #8f0d17;
  --plc-ink: #161514;
  --plc-paper: #fffdf8;
  --plc-mute: #4a4744;
  --plc-unit: calc(100cqw / 1100);
  container-type: inline-size;
  position: relative;
  width: 100%;
  aspect-ratio: 1100 / 850;
  background: var(--plc-paper);
  color: var(--plc-ink);
  font-family: var(--plc-font, var(--isolate-font-family, 'Segoe UI', system-ui, sans-serif));
  border: 0.45cqw solid var(--plc-border, var(--plc-ink));
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  text-align: left;
}
.plc-page.plc-tag {
  --plc-unit: calc(100cqw / 400);
  aspect-ratio: 400 / 600;
  border-color: var(--plc-source, var(--plc-border, var(--plc-ink)));
}
.plc-page.plc-tag::before {
  content: '';
  position: absolute;
  left: 50%;
  top: calc(var(--plc-unit) * 10);
  width: calc(var(--plc-unit) * 18);
  height: calc(var(--plc-unit) * 18);
  margin-left: calc(var(--plc-unit) * -9);
  border: 2px solid var(--plc-ink);
  border-radius: 50%;
  z-index: 3;
  background: var(--plc-paper);
  display: none;
}
.plc-sheet {
  position: absolute;
  inset: 0;
}
.plc-empty-sheet {
  padding: 8%;
  display: flex;
  flex-direction: column;
  gap: 1em;
  font-size: calc(var(--plc-unit) * 14);
}
.plc-block {
  position: absolute;
  font-size: calc(var(--plc-unit) * var(--plc-fs, 10));
  line-height: 1.28;
}
.plc-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.35em;
  overflow: visible;
  overflow-wrap: anywhere;
}
.plc-block h3,
.plc-block p,
.plc-block dl,
.plc-block dd,
.plc-block figure,
.plc-block ul {
  margin: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: 0;
}
.plc-btitle {
  font-size: 0.95em !important;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em !important;
  border-bottom: 0.18em solid var(--plc-brand, var(--plc-ink));
  padding-bottom: 0.2em !important;
}
.plc-missing {
  display: inline-block;
  background: #fff1a8;
  color: var(--plc-ink);
  border: 1px dashed var(--plc-ink);
  font-weight: 800;
  padding: 0 0.3em;
  font-size: 0.92em;
  text-transform: uppercase;
}
.plc-dim {
  color: var(--plc-mute);
}
.plc-text {
  white-space: normal;
}

/* Header */
.plc-b-header .plc-content {
  flex-direction: row;
  gap: 0;
  border: 0.16em solid var(--plc-ink);
  background: var(--plc-ink);
}
.plc-danger {
  background: var(--plc-red);
  color: #fffdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  padding: 0 0.7em;
  border: 0.18em solid #fffdf8;
  border-radius: 999px;
  margin: 0.25em;
}
.plc-danger-mark {
  width: 1.3em;
  height: 1.3em;
  display: grid;
  place-items: center;
  background: #fffdf8;
  color: var(--plc-red);
  font-weight: 900;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  font-size: 1.15em;
  padding-top: 0.25em;
}
.plc-danger-word {
  font-size: 1.9em;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
}
.plc-empty-sheet .plc-danger-word {
  color: var(--plc-red);
}
.plc-header-text {
  flex: 1;
  min-width: 0;
  color: #fffdf8;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.2em 0.7em;
}
.plc-header-text strong {
  font-size: 1.35em;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.plc-header-text span {
  font-size: 0.6em;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffd7d3;
}
.plc-tag .plc-b-header .plc-content {
  flex-direction: row;
}
.plc-tag .plc-danger {
  flex: 0 0 auto;
  padding-inline: .35em;
  gap: .2em;
}
.plc-tag .plc-header-text {
  text-align: center;
  align-items: center;
  padding-inline: .3em;
}

/* Identity */
.plc-id-name {
  font-size: 1.45em;
  font-weight: 850;
  line-height: 1.12;
}
.plc-id-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.25em 0.9em;
}
.plc-block dt {
  font-size: 0.7em;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--plc-mute);
}
.plc-strong {
  font-weight: 900;
}
.plc-tagid {
  display: flex;
  gap: 0.6em;
  align-items: stretch;
  height: 100%;
}
.plc-bigcode {
  flex: 0 0 auto;
  min-width: 2.4em;
  display: grid;
  place-items: center;
  background: var(--plc-source, var(--plc-ink));
  color: var(--plc-source-ink, #fffdf8);
  font-size: 4.2em;
  font-weight: 900;
  line-height: 1;
  padding: 0 0.12em;
  letter-spacing: -0.02em;
  border-left: 0.12em solid var(--plc-red);
}
.plc-tagid-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15em;
  min-width: 0;
}
.plc-energy {
  font-weight: 900;
  font-size: 1.15em;
  text-transform: uppercase;
  color: var(--plc-red-deep);
  letter-spacing: 0.04em;
}
.plc-tagid-text strong {
  font-size: 1.2em;
  line-height: 1.15;
}

/* Chips & energy accents (black/white/red only, with a small type tick) */
.plc-chip {
  display: inline-grid;
  place-items: center;
  min-width: 2.2em;
  padding: 0.05em 0.35em;
  background: var(--plc-source, var(--plc-ink));
  color: var(--plc-source-ink, #fffdf8);
  font-weight: 900;
  margin-right: 0.4em;
}
.plc-chip-lg {
  font-size: 1.5em;
  min-width: 2em;
  margin: 0;
}
.plc-t-electrical {
  border-bottom: 0.18em solid var(--plc-red);
}

/* Overview */
.plc-frame {
  position: relative;
  background: #efece5;
  border: 1px solid var(--plc-ink);
  text-align: center;
  line-height: 0;
}
.plc-overview-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(48%, 1fr));
  gap: 0.45em;
  min-height: 0;
}
.plc-overview-view {
  min-width: 0;
  align-self: start;
  border: 1px solid var(--plc-border, var(--plc-ink));
  break-inside: avoid;
}
.plc-overview-view figcaption {
  display: flex;
  gap: 0.45em;
  align-items: baseline;
  padding: 0.2em 0.35em;
  font-size: 0.8em;
  line-height: 1.2;
  background: #f3efe6;
}
.plc-overview-view figcaption strong {
  flex: 0 0 auto;
  text-transform: uppercase;
}
.plc-overview-view figcaption span {
  min-width: 0;
  overflow-wrap: anywhere;
}
/* Wrapper takes the image's natural aspect ratio exactly: pins share the same box. */
.plc-pinwrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
  width: 100%;
  vertical-align: top;
  line-height: 1.28;
}
.plc-overview-img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 3em;
}
.plc-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  background: var(--plc-source, var(--plc-red));
  color: var(--plc-source-ink, #fffdf8);
  border: 0.14em solid #fffdf8;
  outline: 1px solid var(--plc-ink);
  font-weight: 900;
  font-size: 0.95em;
  padding: 0.05em 0.35em;
  border-radius: 0.3em;
  white-space: nowrap;
}
.plc-pin-plain {
  background: var(--plc-ink);
  color: #fffdf8;
}
.plc-pin .plc-callout-label {
  display:block; max-width:16em; white-space:normal; overflow-wrap:anywhere;
  font-size:.85em; font-weight:600;
}
.plc-pin-missing {
  background: var(--plc-red);
  color: #fffdf8;
  min-width: 4.5em;
  text-align: center;
  font-size: 0.72em;
}
.ecp-section-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 12px 0;
  padding: 16px;
  border: 1px solid var(--isolate-line, #d8ded4);
  border-radius: 8px;
}
.ecp-section-options legend { font-weight: 700; padding: 0 6px; }
.ecp-section-options .check-card { min-height: 44px; margin: 0; }
.ecp-section-options p { flex-basis: 100%; margin: 0; font-size: 13px; line-height: 1.5; }
.plc-section-legend { list-style: none; padding: 0; margin: 0; }
.plc-section-legend li { display: flex; align-items: center; gap: .6em; margin-bottom: .5em; }
.plc-procedure-steps { padding-left: 1.8em; margin: .4em 0 0; }
.plc-procedure-steps li { margin-bottom: .6em; line-height: 1.3; }
.plc-procedure-status { margin: 0 0 .4em; font-weight: 700; font-size: .9em; }
.plc-legend {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.2em 0.6em;
}
.plc-legend li {
  display: flex;
  align-items: baseline;
}
.plc-photo-missing {
  flex: 1 1 0;
  min-height: 2.5em;
  display: grid;
  place-items: center;
  border: 0.12em dashed var(--plc-ink);
  padding: 0.4em;
  text-align: center;
}
.plc-tagphotos {
  flex: 1 1 0;
  min-height: 4em;
  display: grid;
  gap: 0.4em;
  grid-template-columns: repeat(var(--n, 1), minmax(0, 1fr));
}
.plc-tagphotos.plc-n2 {
  --n: 2;
}
.plc-tagphotos.plc-n3 {
  --n: 3;
}
.plc-tagphotos figure {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid var(--plc-ink);
}
.plc-tagphotos img {
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  object-fit: cover;
  background: #efece5;
}
.plc-tagphotos figcaption {
  font-size: 0.8em;
  padding: 0.1em 0.3em;
  background: var(--plc-ink);
  color: #fffdf8;
}
.plc-more {
  font-weight: 700;
  font-size: 0.85em;
}

/* Sources */
.plc-source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(24em, 1fr));
  gap: 0.5em;
}
.plc-source {
  border: 0.14em solid var(--plc-ink);
  border-left: 0.55em solid var(--plc-source, var(--plc-ink));
  break-inside: avoid;
}
.plc-source header {
  display: flex;
  align-items: center;
  gap: 0.5em;
  background: #f3efe6;
  border-bottom: 0.14em solid var(--plc-ink);
}
.plc-source-head {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.plc-source-head strong {
  text-transform: uppercase;
  font-weight: 900;
  color: var(--plc-red-deep);
}
.plc-thumb {
  position: relative;
  width: 6.5em;
  aspect-ratio: 4 / 3;
  flex: 0 0 auto;
  background: #e5e1d8;
}
.plc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.plc-thumb em {
  position: absolute;
  right: 0;
  bottom: 0;
  background: var(--plc-ink);
  color: #fffdf8;
  font-style: normal;
  font-weight: 800;
  padding: 0 0.3em;
  font-size: 0.85em;
}
.plc-thumb-missing {
  display: grid;
  place-items: center;
  font-size: 0.7em;
  font-weight: 900;
  border-left: 1px dashed var(--plc-ink);
  background: #fff1a8;
}
.plc-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.2em 0.6em;
  padding: 0.3em 0.45em;
}
.plc-fields .plc-wide {
  grid-column: 1 / -1;
}
.plc-confirm {
  font-size: 0.8em !important;
  font-weight: 800;
  padding: 0.15em 0.45em !important;
  border-top: 1px solid var(--plc-ink);
}
.plc-confirm.is-no {
  background: var(--plc-red);
  color: #fffdf8;
}
.plc-tag .plc-b-sources .plc-fields {
  padding: 0;
}
.plc-tag .plc-b-sources .plc-confirm {
  border: 1px solid var(--plc-ink);
}

/* Duplicate codes & QR */
.plc-dup {
  display: block;
  font-size: 0.32em;
  background: #fff1a8;
  color: var(--plc-ink);
  padding: 0 0.2em;
  letter-spacing: 0;
}
.plc-chip .plc-dup,
.plc-pin .plc-dup {
  font-size: 0.55em;
}
.plc-qr {
  display: flex;
  gap: 0.6em;
  align-items: center;
}
.plc-qr-img {
  width: 6.5em;
  height: 6.5em;
  flex: 0 0 auto;
  display: block;
  image-rendering: pixelated;
  background: #fffdf8;
}
.plc-qr-missing {
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px dashed var(--plc-ink);
}
.plc-measure-host {
  position: absolute;
  left: -30000px;
  top: 0;
  visibility: hidden;
  pointer-events: none;
  display: block !important;
}
.plc-measure-host .plc-main {
  width: 1100px;
}
.plc-measure-host .plc-tag {
  width: 400px;
}

/* Notes / reference / safety */
.plc-b-notes .plc-content,
.plc-b-qr .plc-content,
.plc-b-text .plc-content {
  border: 0.12em solid var(--plc-ink);
  padding: 0.4em 0.5em;
}
.plc-ref {
  font-size: 1.15em;
}
.plc-b-safety .plc-content {
  background: var(--plc-ink);
  color: #fffdf8;
  justify-content: center;
  padding: 0.2em 0.6em;
  gap: 0.1em;
  border-left: 0.6em solid var(--plc-red);
}
.plc-safety-main {
  font-weight: 900;
  letter-spacing: 0.08em !important;
  font-size: 1.1em !important;
}
.plc-empty-sheet .plc-safety-main {
  background: var(--plc-ink);
  color: #fffdf8;
  padding: 0.4em;
}
.plc-safety-sub {
  font-size: 0.75em !important;
  color: #e9e3d8 !important;
}

/* Text companions use final-size measured pages, independent of placard geometry. */
.ecp-continuation-measure {
  position:absolute; left:-100000px; top:0; visibility:hidden; pointer-events:none;
  width:7.5in;
}
.ecp-continuation-page {
  box-sizing:border-box; width:7.5in; height:9.98in; padding:.12in;
  display:grid; grid-template-rows:auto minmax(0, 1fr) 0.5in; gap:.1in;
  font:11pt/1.4 Arial,sans-serif; color:#111; background:white;
  overflow-wrap:anywhere; white-space:normal; text-align:left;
}
/* Same half-inch margins and rounding reserve as Letter; never scale the text. */
.ecp-continuation-measure[data-paper="a4"],
.ecp-continuation-page[data-paper="a4"] { width:calc(210mm - 1in); }
.ecp-continuation-page[data-paper="a4"] { height:calc(297mm - 1.02in); }
.ecp-continuation-page > header {
  border-bottom:1pt solid #111; padding-bottom:6pt; font:10pt/1.35 Arial,sans-serif;
}
.ecp-continuation-page > header strong { display:block; color:#111; }
.ecp-continuation-page > footer {
  border-top:1pt solid #111; padding-top:5pt; font:9pt/1.3 Arial,sans-serif;
}
.ecp-continuation-body { min-height:0; margin:0; padding:0; }
.ecp-continuation-body section { margin:0 0 9pt; padding:0; }
.ecp-continuation-body h3 { margin:0 0 3pt; font:bold 11pt/1.4 Arial,sans-serif; color:#111; }
.ecp-continuation-body p { margin:0; font:11pt/1.4 Arial,sans-serif; white-space:pre-wrap; }
#document-preview:has(.ecp-continuation-page) { overflow-x:auto; }
@media print {
  @page ecp-continuation { size:letter portrait; margin:.5in; }
  @page ecp-continuation-a4 { size:A4 portrait; margin:.5in; }
  .ecp-continuation-page { page:ecp-continuation; break-inside:avoid; break-after:page; margin:0; }
  .ecp-continuation-page[data-paper="a4"] { page:ecp-continuation-a4; }
  .ecp-continuation-page:last-child { break-after:auto; }
  .ecp-continuation-measure { display:none !important; }
}

/* Print: placards own pages. #print-root is the parent's print host. */
@media print {
  @page plc-landscape {
    size: 11in 8.5in;
    margin: 0.25in;
  }
  @page plc-portrait {
    size: 8.5in 11in;
    margin: 0.4in;
  }
  #print-root .plc-page,
  .plc-page {
    display: block !important;
    visibility: visible !important;
  }
  .plc-measure-host {
    display: none !important;
  }
  .plc-page {
    break-inside: avoid;
    break-after: page;
    margin: 0 auto;
    box-shadow: none;
  }
  .plc-page:last-child {
    break-after: auto;
  }
  .plc-page.plc-main {
    page: plc-landscape;
    width: 10.3in;
  }
  .plc-page.plc-tag {
    page: plc-portrait;
    width: 6.4in;
  }
  .ple-root {
    display: none !important;
  }
}

/* ---------------- Editor ---------------- */
.plc-stock-fields { display:flex; flex-wrap:wrap; gap:12px; margin:12px 0; }
.plc-stock-fields label { display:flex; flex-direction:column; gap:4px; font-size:13px; }
.plc-stock-fields input[type="number"] { width:120px; }
.plc-print-controls { padding:16px; border:1px solid #ccc; background:#fff; color:#161514; }
.plc-print-controls summary { cursor:pointer; font-weight:bold; }
.plc-print-controls > p { margin:12px 0; }
.plc-stock-preview { overflow:auto; max-height:700px; background:#ddd; }
.plc-stock-sheet { box-sizing:border-box; display:grid; align-content:start; justify-content:start; background:white; flex:none; margin:0 0 12px; }
.plc-physical-tag { box-sizing:border-box; min-width:0; min-height:0; position:relative; }
.plc-physical-tag::before, .plc-physical-tag::after { content:""; position:absolute; inset:0; background:var(--plc-source,#161514); print-color-adjust:exact; -webkit-print-color-adjust:exact; }
.plc-physical-tag::after { inset:.4mm; background:white; }
.plc-shape-rounded::before, .plc-shape-rounded::after { border-radius:var(--plc-radius,3mm); }
.plc-shape-circle::before, .plc-shape-circle::after,
.plc-shape-oval::before, .plc-shape-oval::after { border-radius:50%; }
.plc-shape-octagon::before, .plc-shape-octagon::after { clip-path:polygon(29.289% 0,70.711% 0,100% 29.289%,100% 70.711%,70.711% 100%,29.289% 100%,0 70.711%,0 29.289%); }
.plc-shape-content { position:absolute; z-index:1; box-sizing:border-box; }
.plc-point-tag { width:100%; height:100%; box-sizing:border-box; padding:1.5mm; display:flex; flex-direction:column; justify-content:space-between; gap:1mm; text-align:center; font-family:Arial,sans-serif; color:#161514; overflow:visible; }
.plc-point-tag > * { flex-shrink:0; margin:0; overflow-wrap:anywhere; line-height:1.15; }
.plc-point-energy { font-size:7pt; }
.plc-point-code { font-size:24pt; color:var(--plc-source-ink,#fff); background:var(--plc-source,#161514); font-weight:900; print-color-adjust:exact; -webkit-print-color-adjust:exact; border-radius:1mm; }
.plc-point-machine, .plc-point-safety { font-size:6pt; }
.plc-point-safety { color:#161514; font-weight:900; }
.plc-stock-fields label, .plc-stock-fields select { max-width:100%; }
.plc-stock-fields select, .plc-stock-fields input { min-height:44px; }
.print-proof-dialog {
  width:min(640px,calc(100vw - 32px));
  max-height:calc(100dvh - 32px);
  box-sizing:border-box;
  overflow:auto;
  margin:auto;
  padding:24px;
  border:1px solid #b9c6b9;
  border-radius:12px;
  color:#161514;
  background:#fffef9;
  font-family:inherit;
}
.print-proof-dialog::backdrop { background:rgba(0,0,0,.55); }
.print-proof-dialog h2 { margin:0 0 16px; font-size:24px; }
.print-proof-dialog p, .print-proof-issues { line-height:1.5; }
.print-proof-issues { padding-left:24px; overflow-wrap:anywhere; }
.print-proof-dialog footer { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:12px; margin-top:20px; }
.print-proof-dialog button { min-height:44px; }
.print-proof-stamp {
  position:absolute;
  z-index:20;
  bottom:1mm;
  left:1mm;
  right:1mm;
  padding:.5mm;
  box-sizing:border-box;
  border:.3mm solid #9d1616;
  background:white;
  color:#9d1616;
  font:700 6pt/1.15 Arial,sans-serif;
  text-align:center;
  white-space:pre-line;
  overflow-wrap:anywhere;
  pointer-events:none;
  print-color-adjust:exact;
  -webkit-print-color-adjust:exact;
}
.plc-sheet > .print-proof-stamp { font-size:9pt; white-space:normal; }
/* A failed-fit proof may clip content, but must not spill onto unmarked stock. */
#print-root[data-draft-proof] .plc-physical-tag,
#print-root[data-draft-proof] .plc-stock-sheet { overflow:hidden; }
.plc-mono .plc-physical-tag, .plc-mono .plc-point-tag { --plc-source:#161514 !important; --plc-source-ink:#fff !important; }
.plc-physical-tag .plc-page.plc-tag { box-sizing:border-box; width:100%; height:100%; aspect-ratio:auto; border:0.4mm solid var(--plc-source); margin:0; }
/* Keep tiny captions and safety copy readable; a tight layout must fail rather than shrink. */
.plc-physical-tag .plc-block .plc-content,
.plc-physical-tag .plc-block .plc-content * { font-size:max(6pt, 1em); }
.plc-physical-tag .plc-block .plc-bigcode { font-size:max(18pt, 4.2em); }
.plc-physical-tag .plc-block .plc-danger-word { font-size:max(12pt, 1.9em); }
.plc-physical-tag .plc-block .plc-energy { font-size:max(8pt, 1.15em); }
.plc-physical-tag .plc-btitle,
.plc-physical-tag .plc-confirm { font-size:max(6pt, 1em) !important; }
.plc-physical-tag .plc-safety-main { font-size:max(6pt, 1.1em) !important; }
.plc-physical-tag .plc-safety-sub { font-size:6pt !important; }
.plc-mono .plc-page { --plc-source:#161514 !important; --plc-source-ink:#fff !important; --plc-brand:#161514 !important; --plc-border:#161514 !important; --plc-red:#161514; --plc-red-deep:#161514; }
.plc-mono img { filter:grayscale(1); }
.plc-mono .plc-b-safety .plc-content,
.plc-mono .plc-danger,
.plc-mono .plc-confirm { color:#161514; background:white; border:0.3mm solid #161514; }
.plc-mono .plc-safety-sub { color:#161514 !important; }
/* The outlined code and energy name identify the source even with backgrounds disabled. */
.plc-physical-tag .plc-chip { border:0.3mm solid #161514; color:#161514; background:white; }
.plc-physical-tag .plc-bigcode { border:0.3mm solid #161514; background:white; color:#161514; border-left:1mm solid var(--plc-source); }
.plc-physical-check { position:absolute; left:-100000px; top:0; width:max-content; visibility:hidden; pointer-events:none; }
.plc-calibration { display:block; padding:5mm; font:10pt Arial,sans-serif; color:black; }
.plc-calibration > div { box-sizing:border-box; width:50mm; height:50mm; border:.2mm solid black; }
@media print {
  .plc-stock-sheet { page:plc-stock; break-after:page; break-inside:avoid; margin:0; }
  .plc-stock-sheet:last-child { break-after:auto; }
  .plc-stock-sheet .plc-page.plc-tag { page:auto; width:100%; height:100%; break-after:auto; break-inside:avoid; }
  .plc-print-controls, .plc-physical-check { display:none !important; }
}

.ple-root {
  --ple-green: var(--isolate-green, #2f5a35);
  --ple-line: var(--isolate-line, #dfe5d7);
  --ple-ink: var(--isolate-ink, #22301f);
  --ple-muted: var(--isolate-muted, #6f7a68);
  --ple-red: #b3261e;
  color: var(--ple-ink);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.ple-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: #fbfcf8;
  border: 1px solid var(--ple-line);
  border-radius: 12px;
}
.ple-seg {
  display: inline-flex;
  border: 1px solid var(--ple-line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.ple-seg button {
  border: 0;
  background: transparent;
  padding: 9px 14px;
  min-height: 40px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ple-muted);
}
.ple-seg button[aria-pressed='true'] {
  background: var(--ple-green);
  color: #f5f9ee;
}
.ple-btn {
  border: 1px solid var(--ple-line);
  background: #fff;
  color: var(--ple-ink);
  border-radius: 7px;
  padding: 8px 12px;
  min-height: 40px;
  font-size: 12px;
  font-weight: 600;
}
.ple-btn:hover:not(:disabled) {
  background: #f1f5e9;
}
[data-ple-action='add-text'],
[data-ple-action='add-bound'],
[data-ple-action='add-photo'],
[data-ple-action='add-logo'],
[data-ple-action='add-overview'] {
  cursor: grab;
  touch-action: none;
}
.ple-btn.primary {
  background: var(--ple-green);
  color: #f5f9ee;
  border-color: var(--ple-green);
}
.ple-btn.danger {
  color: var(--ple-red);
}
.ple-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.ple-select,
.ple-input {
  border: 1px solid var(--ple-line);
  border-radius: 6px;
  background: #fff;
  padding: 8px 10px;
  min-height: 40px;
  font-size: 12px;
  color: var(--ple-ink);
  width: 100%;
  min-width: 0;
}
.ple-bar .ple-select {
  width: auto;
  max-width: 260px;
}
textarea.ple-input {
  min-height: 80px;
  resize: vertical;
  line-height: 1.5;
}
.ple-spacer {
  flex: 1;
}
.ple-status {
  font-size: 11px;
  color: var(--ple-muted);
  min-height: 1em;
}
.ple-status.ok {
  color: var(--ple-green);
  font-weight: 600;
}
.ple-status.err {
  color: var(--ple-red);
  font-weight: 600;
}
.ple-issues {
  border: 1px solid #e7b9b2;
  background: #fcefec;
  color: #7c2a20;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.5;
}
.ple-issues[hidden] {
  display: none;
}
.ple-issues ul {
  margin: 6px 0 0;
  padding-left: 18px;
}
.ple-layout-note {
  margin: -6px 2px 0;
  padding: 9px 12px;
  border-left: 3px solid var(--ple-green);
  background: #f1f5e9;
  color: var(--ple-ink);
  font-size: 12px;
  line-height: 1.5;
}
.ple-dock-controls {
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--ple-line);
  background: #f7f8f2;
}
.ple-drag-ghost {
  position: fixed;
  z-index: 10000;
  pointer-events: none;
  max-width: min(220px, 65vw);
  padding: 8px 11px;
  border: 1px solid var(--ple-green);
  background: #f7f8f2;
  color: var(--ple-ink);
  box-shadow: 0 5px 18px #22301f33;
  font-size: 12px;
  font-weight: 700;
  transform: translate(0, 0);
}
.ple-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}
@media (min-width: 1024px) {
  .ple-body {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}
.ple-stage-wrap {
  background: #e9ece3;
  background-image: radial-gradient(#d3d9c8 1px, transparent 1px);
  background-size: 14px 14px;
  border: 1px solid var(--ple-line);
  border-radius: 12px;
  padding: clamp(10px, 3vw, 28px);
  min-width: 0;
}
.ple-stage {
  position: relative;
  margin: 0 auto;
  max-width: 1100px;
  box-shadow: 0 10px 30px -18px #1d2a1a80;
}
.ple-stage.is-tag {
  max-width: 440px;
}
/* Change actual screen dimensions, not transforms: pointer percentages and the
   overlay continue to use the same bounding rectangle as the rendered page. */
@media screen {
  .ple-demo-fit .ple-stage-wrap { align-self: start; }
  .ple-demo-fit .ple-stage.is-tag {
    width: min(100%, 440px, calc((100svh - 240px) * 2 / 3));
  }
  .ple-demo-fit .ple-stage.is-tag > .plc-tag {
    /* The overlay uses the full stage; an inset outline keeps the page border
       from shifting the sheet's percentage coordinate origin underneath it. */
    border: 0;
    outline: 2px solid var(--plc-source, var(--plc-border, #161514));
    outline-offset: -2px;
  }
  .presentation-tags { margin-top: 20px; }
  .presentation-tags > p { margin: 8px 0 16px; }
  .presentation-tag-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 18px;
  }
  .presentation-tag-card { min-width: 0; padding: 10px; border: 1px solid #c8d2c2; border-radius: 8px; }
  .presentation-tag-card h3 { font-size: 16px; margin: 0 0 6px; }
  .presentation-tag-card summary { cursor: pointer; padding: 10px 0; min-height: 44px; font-size: 14px; }
  .presentation-tag-card summary:focus-visible { outline: 3px solid #315b37; outline-offset: 2px; }
  .presentation-tag-card .plc-tag {
    width: min(100%, 320px, calc((100svh - 220px) * 2 / 3));
    margin: 8px auto 0;
  }
  .presentation-tag-card:has(details[open]) { grid-column: 1 / -1; }
  .presentation-tag-card:has(details[open]) .plc-tag { width: min(100%, 680px); }
}
.ple-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
}
.ple-box {
  position: absolute;
  border: 1.5px dashed #2f5a3599;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: move;
  touch-action: none;
  border-radius: 0;
  -webkit-user-select: none;
  user-select: none;
}
.ple-box:hover {
  border-color: var(--ple-green);
  background: #2f5a350d;
}
.ple-box.is-selected {
  border: 2px solid var(--ple-green);
  outline: 2px solid var(--ple-green);
  outline-offset: 2px;
  background: #2f5a3512;
  z-index: 2;
}
.ple-box.is-selected.is-independent {
  border:2px dashed #174e74;
  outline-color:#174e74;
  background:#174e7412;
}
.ple-independent-toggle { min-height:44px; white-space:normal; }
.ple-independent-toggle[aria-pressed="true"] { color:white; background:#174e74; border-color:#174e74; }
.ple-box.is-over {
  border: 2px solid var(--ple-red);
  background: repeating-linear-gradient(135deg, #b3261e14 0 8px, transparent 8px 16px);
}
.ple-box:focus-visible {
  outline: 3px solid #8eaf54;
  outline-offset: 1px;
}
.ple-box-label {
  position: absolute;
  left: -1px;
  top: -20px;
  font-size: 10px;
  font-weight: 700;
  background: var(--ple-green);
  color: #f5f9ee;
  padding: 2px 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
}
.ple-box.is-selected .ple-box-label,
.ple-box.is-over .ple-box-label {
  opacity: 1;
}
.ple-box.is-over .ple-box-label {
  background: var(--ple-red);
}
.ple-box.is-drop-target {
  outline: 3px solid #2f5a35;
  outline-offset: -3px;
}
.ple-drop-preview {
  position: absolute;
  z-index: 1;
  display: block;
  pointer-events: none;
  border: 2px solid var(--ple-green);
  background: #7d9a5d55;
  box-shadow: inset 0 0 0 1px #fffdf8;
}
.ple-drop-preview.side-left { left: 0; top: 0; width: 50%; height: 100%; }
.ple-drop-preview.side-right { right: 0; top: 0; width: 50%; height: 100%; }
.ple-drop-preview.side-top { left: 0; top: 0; width: 100%; height: 50%; }
.ple-drop-preview.side-bottom { left: 0; bottom: 0; width: 100%; height: 50%; }
.ple-handle {
  position: absolute;
  z-index: 4;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  touch-action: none;
  cursor: grab;
  display: none;
}
.ple-handle::after {
  content: '';
  position: absolute;
  inset: 7px;
  background: #fffdf8;
  border: 2px solid var(--ple-green);
  border-radius: 50%;
  box-shadow: 0 0 0 1px #fffdf8;
}
.ple-box.is-selected .ple-handle {
  display: block;
}
.ple-handle-n { left: 50%; top: 0; transform: translate(-50%, -50%); cursor: ns-resize; }
.ple-handle-s { left: 50%; bottom: 0; transform: translate(-50%, 50%); cursor: ns-resize; }
.ple-handle-e { right: 0; top: 50%; transform: translate(50%, -50%); cursor: ew-resize; }
.ple-handle-w { left: 0; top: 50%; transform: translate(-50%, -50%); cursor: ew-resize; }
.ple-handle-ne { right: 0; top: 0; transform: translate(50%, -50%); cursor: nesw-resize; }
.ple-handle-nw { left: 0; top: 0; transform: translate(-50%, -50%); cursor: nwse-resize; }
.ple-handle-se { right: 0; bottom: 0; transform: translate(50%, 50%); cursor: nwse-resize; }
.ple-handle-sw { left: 0; bottom: 0; transform: translate(-50%, 50%); cursor: nesw-resize; }
.ple-handle:focus-visible { outline: 3px solid #8eaf54; outline-offset: 1px; border-radius: 50%; }
.ple-inspector {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--ple-line);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-self: start;
}
.ple-root { min-width: 0; max-width: 100%; }
.ple-bar > * { max-width: 100%; }
.ple-inspector h3 {
  font-size: 14px;
  margin: 0;
}
.ple-inspector .ple-sub {
  font-size: 11px;
  color: var(--ple-muted);
  line-height: 1.5;
  margin: 4px 0 0;
}
.ple-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ple-muted);
}
.ple-grid4 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.ple-section {
  border-top: 1px solid var(--ple-line);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ple-lock {
  font-size: 11px;
  background: #f3f6ec;
  border: 1px solid #e3eace;
  border-radius: 6px;
  padding: 6px 8px;
  color: #4c603d;
  line-height: 1.5;
}
.ple-hint {
  font-size: 11px;
  color: var(--ple-muted);
  line-height: 1.5;
}
.ple-measure {
  position: fixed;
  left: -30000px;
  top: 0;
  visibility: hidden;
  pointer-events: none;
}
.ple-measure .plc-main {
  width: 1100px;
}
.ple-measure .plc-tag {
  width: 400px;
}
@media (prefers-reduced-motion: no-preference) {
  .ple-box {
    transition: background-color 0.15s, border-color 0.15s;
  }
}

/* Branding: brand color = accents only; DANGER and safety strip keep conventional red/black. */
.plc-page .plc-source,
.plc-page .plc-b-notes .plc-content,
.plc-page .plc-b-qr .plc-content,
.plc-page .plc-b-text .plc-content {
  border-color: var(--plc-border, var(--plc-ink));
}
.plc-source header {
  box-shadow: inset 0.3em 0 0 var(--plc-source, transparent);
}
.plc-legend-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}
.plc-legend-copy small {
  font-size: 0.75em;
  color: var(--plc-mute);
  font-weight: 700;
}
.plc-source-coverage {
  border: 0.14em solid var(--plc-ink);
  padding: 0.25em 0.35em;
  background: #fffdf8;
}
.plc-source-coverage > strong,
.plc-note-pin-legend > strong {
  display: block;
  font-size: 0.8em;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.25;
}
.plc-source-coverage ul,
.plc-note-pin-legend ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.16em;
  margin: 0.2em 0 0;
}
.plc-source-coverage li {
  display: flex;
  gap: 0.3em;
  align-items: center;
  min-width: 0;
  line-height: 1.2;
}
.plc-source-coverage li > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.plc-source-coverage li > strong {
  flex: 0 0 auto;
  font-size: 0.76em;
  text-align: right;
}
.plc-source-coverage .is-unmarked {
  color: #8f0d17;
  background: #fff1a8;
  outline: 1px solid #8f0d17;
}
.plc-source-coverage .is-unmarked > strong {
  max-width: 36%;
}
.plc-note-pin-legend {
  border-top: 1px dashed var(--plc-ink);
  padding-top: 0.25em;
}
.plc-note-pin-legend ul {
  font-size: 0.78em;
}
.plc-note-pin-legend li {
  display: flex;
  gap: 0.35em;
  align-items: baseline;
}
.plc-note-key {
  font-weight: 900;
  white-space: nowrap;
}
.plc-b-logo .plc-content {
  justify-content: center;
}
.plc-logo {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.plc-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.plc-logo-missing {
  height: 100%;
  display: grid;
  place-items: center;
  border: 1px dashed var(--plc-border, var(--plc-ink));
  text-align: center;
}
.ple-color {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ple-color input[type='color'] {
  width: 44px;
  height: 40px;
  padding: 2px;
  border: 1px solid var(--ple-line);
  border-radius: 6px;
  background: #fff;
}
.ple-preview { border: 1px dashed currentColor; padding: .5rem; margin: .5rem 0; font-size: .85rem; }
.ple-preview-text { white-space: pre-wrap; margin: .25rem 0; }
.ple-preview-miss { color: #b3261e; font-weight: 600; margin: .25rem 0; }

/* Printable, blank manual installation reconciliation; no automatic installed status. */
.pc-install-sheet {
  box-sizing:border-box; width:7.6in; min-height:10in; margin:0 auto 12px; padding:0;
  display:flex; flex-direction:column; gap:12px; background:white; color:#172a20;
  font: 11pt/1.35 Arial, sans-serif;
}
.pc-install-heading { display:flex; justify-content:space-between; gap:16px; border-bottom:3px solid #1b4932; padding:8px 0 11px; }
.pc-install-heading > div:first-child > strong { color:#194b34; font-size:10pt; letter-spacing:.05em; }
.pc-install-heading h2 { font-size:18pt; margin:6px 0; }
.pc-install-heading p { font-size:9pt; margin:3px 0; }
.pc-install-meta { display:grid; align-content:start; gap:7px; text-align:right; white-space:nowrap; }
.pc-install-meta strong { font-size:14pt; }
.pc-install-meta span { font-size:10pt; }
.pc-install-safety { padding:10px; margin:0; border:1px solid #bc7b50; background:#fff5eb; color:#733c26; font-size:9pt; line-height:1.5; }
.pc-install-equipment { display:flex; flex-wrap:wrap; gap:5px 12px; }
.pc-install-equipment strong { font-size:12pt; }
.pc-install-equipment span { font-size:10pt; }
.pc-install-table { width:100%; border-collapse:collapse; table-layout:fixed; }
.pc-install-table th,.pc-install-table td { border:1px solid #aab8aa; padding:9px 6px; vertical-align:middle; overflow-wrap:anywhere; }
.pc-install-table th { font-size:9pt; text-align:left; background:#e9f0e9; }
.pc-install-table th:nth-child(1) { width:13%; }
.pc-install-table th:nth-child(2) { width:38%; }
.pc-install-table th:nth-child(n+3) { width:16%; }
.pc-install-table td:nth-child(2) strong,.pc-install-table td:nth-child(2) span { display:block; font-size:9pt; }
.pc-install-table td:nth-child(2) span { font-size:8pt; margin-top:3px; }
.pc-install-code { display:inline-block; min-width:38px; padding:5px; border-radius:3px; font-size:12pt; font-weight:800; text-align:center; print-color-adjust:exact; -webkit-print-color-adjust:exact; }
.pc-install-check { font-size:19pt; text-align:center; color:#253529; }
.pc-install-signoff { margin-top:auto; border-top:1px solid #ced8cf; padding-top:12px; }
.pc-install-signoff p { margin:5px 0; font-size:9pt; }
.pc-install-footer { padding:8px 0 0; border-top:1px solid #9aab9b; font-size:8pt; color:#556957; }
@media print {
  @page pc-install-paper { size:letter portrait; margin:.4in; }
  #print-root .pc-install-sheet { page:pc-install-paper; break-inside:avoid; break-after:page; margin:0; box-shadow:none; }
  #print-root .pc-install-sheet:last-child { break-after:auto; }
}

/* English/Spanish companion sheets use reviewed translations only. */
.bilingual-ecp-page {
  box-sizing:border-box; width:7.6in; max-width:100%; min-height:9.7in; padding:0;
  margin:0 auto 16px; display:flex; flex-direction:column; gap:11px;
  font:10pt/1.43 Arial,sans-serif; background:#fff; color:#1b2920;
}
.bilingual-ecp-head { display:flex; justify-content:space-between; align-items:flex-start; gap:14px; padding:7px 0 11px; border-bottom:3px solid #1b4e36; }
.bilingual-ecp-head small { color:#36644b; font-size:7.6pt; font-weight:700; letter-spacing:.02em; }
.bilingual-ecp-head h2 { margin:6px 0; font-size:15pt; line-height:1.2; color:#243e2b; }
.bilingual-ecp-head p { margin:0; font-size:9pt; color:#526353; }
.bilingual-ecp-id { display:grid; gap:4px; flex:none; text-align:right; }
.bilingual-ecp-id strong { font-size:14pt; }
.bilingual-ecp-id span { font-size:9pt; }
.bilingual-ecp-warning { padding:9px; margin:0; border:1px solid #ba7b39; background:#fff7ed; font-size:8.2pt; line-height:1.4; color:#573b24; }
.bilingual-ecp-source { display:flex; align-items:center; gap:12px; }
.bilingual-ecp-source > div { display:grid; gap:4px; }
.bilingual-ecp-source strong { font-size:11pt; }
.bilingual-ecp-source span:not(.bilingual-ecp-code) { font-size:9pt; }
.bilingual-ecp-code { display:inline-block; padding:7px 12px; min-width:38px; border-radius:5px; text-align:center; font-size:16pt; font-weight:800; print-color-adjust:exact; -webkit-print-color-adjust:exact; }
.bilingual-ecp-fields { width:100%; table-layout:fixed; border-collapse:collapse; }
.bilingual-ecp-fields th, .bilingual-ecp-fields td { border:1px solid #b9c5b8; padding:7px 8px; overflow-wrap:anywhere; white-space:pre-wrap; vertical-align:top; font-size:8.9pt; }
.bilingual-ecp-fields thead th { background:#eaf2ec; color:#274c35; text-align:left; font-size:9pt; }
.bilingual-ecp-fields thead th:first-child { width:22%; }
.bilingual-ecp-fields thead th:nth-child(2), .bilingual-ecp-fields thead th:nth-child(3) { width:39%; }
.bilingual-ecp-fields tbody th { font-size:8.3pt; text-align:left; background:#f5f8f5; }
.bilingual-ecp-review { margin-top:auto; border-top:1px solid #b7c7b9; padding:8px 0; font-size:8pt; }
.bilingual-ecp-review strong { margin-right:8px; }
.bilingual-ecp-review p { margin:5px 0 0; }
.bilingual-ecp-page footer { border-top:1px solid #b8c8b8; padding-top:7px; font-size:7.2pt; text-align:center; color:#546a59; }
@media print {
  @page bilingual-ecp-stock { size:letter portrait; margin:.42in; }
  #print-root .bilingual-ecp-page { page:bilingual-ecp-stock; break-inside:avoid; break-after:page; margin:0; box-shadow:none; }
  #print-root .bilingual-ecp-page:last-child { break-after:auto; }
  .bilingual-ecp-measure { display:none!important; }
}
