.lp-open { overflow: hidden; }
.lp-paper { display: none; }
dialog.lp-preview {
  box-sizing: border-box;
  position: fixed; inset: 0; width: min(850px, calc(100% - 32px)); max-width: none;
  max-height: calc(100dvh - 32px); margin: auto; padding: 0; overflow: auto;
  overscroll-behavior: contain; background: #fff; border: 0; border-radius: 12px;
  color: #20282c; box-shadow: 0 16px 75px #1420293d;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
.lp-preview::backdrop { background: #14202982; }
.lp-toolbar {
  display: flex; position: sticky; top: 0; z-index: 1;
  align-items: center; justify-content: space-between; gap: 12px;
  background: #fafaf8; border-bottom: 1px solid #d7dcde; padding: 8px clamp(16px,4vw,34px);
}
.lp-toolbar button { min-height: 44px; padding: 8px 16px; font: 600 15px/1.25 system-ui,sans-serif; border: 0; cursor: pointer; }
.lp-toolbar .lp-back { background: transparent; color: #1b566e; padding-left: 0; }
.lp-toolbar .lp-action { color: #fff; background: #155979; border-radius: 7px; }
.lp-sheet {
  --pp-datum: #3e6c73; --sans: -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  box-sizing: border-box; padding: clamp(19px,4.5vw,40px); margin: 0; width: 100%;
  color: #20282c; background: #fff; font: 400 15px/1.35 var(--sans);
}
.lp-sheet *, .lp-sheet *::before, .lp-sheet *::after { box-sizing: border-box; }
.lp-sheet :is(h2,h3,p,figure,dl,dt,dd) { margin: 0; }
.lp-brandline, .lp-diagram-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lp-brandline img { display: block; width: 103px; height: auto; }
.lp-brandline span, .lp-diagram-heading span { color: #54636b; font-size: .86em; }
.lp-sheet h2 { margin: .55em 0 .23em; color: #20282c; font-size: 2.3em; font-weight: 640; letter-spacing: -.055em; line-height: 1.08; }
.lp-sheet h3 { line-height: 1.2; font-size: 1.11em; font-weight: 660; letter-spacing: -.02em; }
.lp-contact,.lp-reference { overflow-wrap: anywhere; color: #43525a; font-size: .9em; }
.lp-contact + .lp-reference { margin-top: .2em; }
.lp-metrics { display: flex; gap: 0; margin: 14px 0 16px; border-block: 1px solid #bdcdd2; background: #f3f7f8; }
.lp-metrics > div { flex: 1; padding: 8px 14px; }
.lp-metrics > div + div { border-left: 1px solid #d6dfe1; }
.lp-metrics span, .lp-metrics strong { display: block; }
.lp-metrics span { color: #465963; font-size: .8em; }
.lp-metrics strong { margin-top: 2px; font-size: 1.44em; font-weight: 630; line-height: 1.14; letter-spacing: -.035em; }
.lp-sheet .pp-sheet { display: block; width: 100%; height: auto; max-height: 340px; margin: 5px auto 0; }
.lp-sheet .pp-key { cursor: default; pointer-events: none; }
.lp-sheet .pp-legend { gap: 3px 15px; color: #465963; font: 500 .76em/1.35 var(--sans); padding: 3px 0 8px; }
.lp-sheet .pp-index { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,174px),1fr)); gap: 12px; padding: 9px 0 0; color: #293a43; }
.lp-sheet .pp-section h3 { margin: 0 0 4px; color: #2b404c; font: 650 .85em/1.3 var(--sans); }
.lp-sheet .pp-row { min-height: 21px; padding: 2px 0; border-color: #e2e7e8; }
.lp-sheet .pp-row :is(.pp-id,.pp-name,.pp-value) { font-size: .8em; line-height: 1.24; }
.lp-sheet .pp-row .pp-id { width: auto; flex-basis: 14px; aspect-ratio: auto; color: #34596a; background: transparent; }
.lp-sheet .pp-row .pp-name { color: #37454b; }
.lp-sheet .pp-row .pp-value { padding: 0; }
.lp-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px; margin: 16px 0 0; }
.lp-details h3 { padding-bottom: 5px; border-bottom: 1px solid #97abb3; }
.lp-details dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; border-bottom: 1px solid #e2e7e8; padding: 3px 0; font-size: .84em; }
.lp-details dd { font-weight: 590; text-align: right; overflow-wrap: anywhere; }
.lp-sheet .lp-foot { margin-top: 14px; padding-top: 7px; border-top: 1px solid #bdcdd2; color: #52616a; font-size: .78em; }
@media screen and (max-width: 580px) {
  dialog.lp-preview { width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .lp-sheet .pp-index, .lp-summary { grid-template-columns: 1fr; }
  .lp-sheet .pp-index { gap: 12px; }
  .lp-sheet .pp-row, .lp-details dl > div { padding: 5px 0; }
  .lp-sheet .pp-sheet { min-height: 180px; }
  .lp-summary { gap: 15px; }
  .lp-diagram-heading span { text-align: right; }
}
@media print {
  @page layout-sheet { size: letter portrait; margin: .43in .48in; }
  html.lp-open, html.lp-open body { margin: 0 !important; padding: 0 !important; height: auto !important; overflow: visible !important; background: #fff !important; }
  html.lp-open body > :not(.lp-paper) { display: none !important; }
  html.lp-open dialog::backdrop { display: none !important; }
  .lp-paper { display: block !important; page: layout-sheet; width: 100%; padding: 0; font-size: 11pt; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .lp-paper .lp-brandline img { width: .96in; }
  .lp-paper h2 { font-size: 25pt; margin: .16in 0 .05in; }
  .lp-paper .lp-metrics { margin: .10in 0 .12in; }
  .lp-paper .lp-metrics > div { padding: .06in .12in; }
  .lp-paper .lp-geometry { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(0,1fr); gap: 0 .17in; align-items: start; }
  .lp-paper .lp-diagram-heading { grid-column: 1 / -1; padding-bottom: .06in; }
  .lp-paper .pp-sheet { grid-column: 1; grid-row: 2; align-self: center; height: 3.57in; max-height: none; margin: 0; }
  .lp-paper .pp-legend { grid-column: 1; grid-row: 3; padding: 0; align-self: end; }
  .lp-paper .pp-index { grid-column: 2; grid-row: 2 / 4; grid-template-columns: 1fr; padding: 0; border: 0; gap: .07in; }
  .lp-paper .pp-section h3 { margin-bottom: .02in; }
  .lp-paper .pp-row { min-height: 0; padding-block: .012in; }
  .lp-paper .lp-summary { grid-template-columns: 1fr 1fr; margin-top: .11in; gap: .23in; }
  .lp-paper .lp-details dl > div { padding-block: .024in; }
  .lp-paper .lp-foot { margin-top: .10in; }
  .lp-paper :is(.lp-metrics,.lp-diagram-heading,.pp-legend,.pp-section,.lp-details,.lp-foot) { break-inside: avoid; }
}
