:is(#prototypePrintModal, #prototypeDwgModal) {
  width: min(760px, 96vw);
  max-width: 96vw;
  max-height: 94dvh;
  padding: 0;
  border: 1px solid var(--app-border, #56727a);
  border-radius: 14px;
  background: var(--app-panel, #253139);
  color: var(--app-text, #f5f8f9);
}
:is(#prototypePrintModal, #prototypeDwgModal)::backdrop { background: #081d2cb5; }
:is(#prototypePrintModal, #prototypeDwgModal) * { box-sizing: border-box; }
:is(#prototypePrintModal, #prototypeDwgModal) .print-shell { display: flex; flex-direction: column; max-height: 93dvh; }
:is(#prototypePrintModal, #prototypeDwgModal) header, :is(#prototypePrintModal, #prototypeDwgModal) footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-shrink: 0;
  height: auto;
  min-height: 0;
  padding: 15px 20px;
  background: var(--app-panel, #253139);
}
:is(#prototypePrintModal, #prototypeDwgModal) header { border-bottom: 1px solid var(--app-border, #56727a); }
:is(#prototypePrintModal, #prototypeDwgModal) footer { border-top: 1px solid var(--app-border, #56727a); flex-wrap: wrap; }
:is(#prototypePrintModal, #prototypeDwgModal) .print-content { overflow: auto; padding: 17px 20px; min-height: 0; }
:is(#prototypePrintModal, #prototypeDwgModal) h2, :is(#prototypePrintModal, #prototypeDwgModal) h3 { margin: 0; color: inherit; }
:is(#prototypePrintModal, #prototypeDwgModal) h2 { font-size: 21px; }
:is(#prototypePrintModal, #prototypeDwgModal) h3 { font-size: 16px; }
:is(#prototypePrintModal, #prototypeDwgModal) p { margin: 7px 0; line-height: 1.5; }
:is(#prototypePrintModal, #prototypeDwgModal) .print-fit {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px 20px;
  margin-block: 16px;
  padding: 12px 14px;
  border: 1px solid var(--app-border, #56727a);
  border-radius: 9px;
  background: #04839114;
}
:is(#prototypePrintModal, #prototypeDwgModal) label { display: grid; gap: 5px; }
:is(#prototypePrintModal, #prototypeDwgModal) input { width: 105px; min-height: 36px; }
:is(#prototypePrintModal, #prototypeDwgModal) .print-parts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
:is(#prototypePrintModal, #prototypeDwgModal) .print-parts article {
  padding: 14px;
  border: 1px solid var(--app-border, #56727a);
  border-radius: 9px;
}
:is(#prototypePrintModal, #prototypeDwgModal) .print-actions { display: flex; flex-wrap: wrap; gap: 8px; }
:is(#prototypePrintModal, #prototypeDwgModal) button { min-height: 36px; padding: 7px 12px; white-space: normal; }
:is(#prototypePrintModal, #prototypeDwgModal) .print-primary { background: #087984; border-color: #087984; color: #fff; }
:is(#prototypePrintModal, #prototypeDwgModal) .print-error {
  margin-block: 14px;
  padding: 10px 13px;
  background: #bb464c20;
  border-left: 3px solid #c94d58;
}
:is(#prototypePrintModal, #prototypeDwgModal) .print-note, #prototypePrintStatus { font-size: 13px; }
:is(#prototypePrintModal, #prototypeDwgModal) .print-note { margin-top: 15px; }
:is(#prototypePrintModal, #prototypeDwgModal) [hidden] { display: none !important; }
:is(#prototypePrintOpenBtn, #prototypeDwgOpenBtn) { width: 100%; text-align: left; }
@media (max-width: 530px) {
  :is(#prototypePrintModal, #prototypeDwgModal) header, :is(#prototypePrintModal, #prototypeDwgModal) footer, :is(#prototypePrintModal, #prototypeDwgModal) .print-content { padding: 12px; }
  :is(#prototypePrintModal, #prototypeDwgModal) .print-fit, :is(#prototypePrintModal, #prototypeDwgModal) .print-parts { grid-template-columns: 1fr; }
  :is(#prototypePrintModal, #prototypeDwgModal) footer button { width: 100%; }
}

:is(#prototypePrintModal, #prototypeDwgModal) .print-section-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 15px;
}
:is(#prototypePrintModal, #prototypeDwgModal) .print-section-bar span { font-size: 13px; }
#prototypePrintSection {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--app-border, #56727a);
  border-radius: 9px;
}
#prototypePrintSection .print-section-grid,
#prototypePrintSection .print-section-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 13px;
}
#prototypePrintSection figure { margin: 0; min-width: 0; }
#prototypePrintSection figcaption { margin-bottom: 5px; font-size: 13px; font-weight: 700; }
#prototypePrintSection svg {
  display: block;
  width: 100%;
  height: 174px;
  border: 1px solid #cbdbe0;
  border-radius: 6px;
  background: #f7fafb;
}
#prototypePrintSection svg path { vector-effect: non-scaling-stroke; stroke-width: 1; }
#prototypePrintSection .print-cut-jar { fill: #b8e3df; stroke: #277475; }
#prototypePrintSection .print-cut-lid { fill: #f4d69c; stroke: #936329; }
#prototypePrintSection .print-cut-axis,
#prototypePrintSection .print-cut-guide { stroke: #4b646a; stroke-dasharray: 4 3; fill: none; }
#prototypePrintSection .print-cut-gap { stroke: #a83458; fill: none; }
#prototypePrintSection .print-cut-legend { display: flex; gap: 15px; flex-wrap: wrap; font-size: 12px; }
#prototypePrintSection .print-cut-legend span::before {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 5px;
  border: 1px solid #49696d;
  border-radius: 2px;
  content: '';
}
#prototypePrintSection .print-key-jar::before { background: #b8e3df; }
#prototypePrintSection .print-key-lid::before { background: #f4d69c; }
#prototypePrintSection .print-section-metrics { margin: 7px 0 0; font-size: 13px; }
#prototypePrintSection .print-section-metrics dd { margin: 0; font-weight: 700; }
@media (max-width: 530px) {
  #prototypePrintSection svg { height: 140px; }
}
