.board-print-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(860px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 22px 85px #08132170;
}

.board-print-dialog::backdrop { background: #091523a8; }
#printOptions { width: min(440px, calc(100vw - 24px)); }
.print-choices { display: grid; gap: 10px; padding: 16px 20px 20px; }
.print-choices button {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: left;
  background: var(--panel2);
  cursor: pointer;
}
.print-choices button:hover { border-color: var(--accent2); }
.print-choices span { font-size: 14px; color: var(--muted); }
.poster-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.poster-heading h2 { font-size: 21px; }
.print-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel2);
  cursor: pointer;
}
.poster-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; }
.poster-stage {
  min-width: 0;
  min-height: 300px;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--panel2);
}
#posterPreview {
  max-width: 100%;
  max-height: min(57dvh, 510px);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 8px 28px #08132160;
}
.poster-options { display: grid; align-content: start; gap: 12px; padding: 20px; font-size: 14px; }
.poster-options label { display: grid; gap: 5px; font-weight: 650; }
.poster-options :is(select, input) {
  width: 100%;
  min-height: 37px;
  padding: 5px 8px;
  background: var(--panel2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 7px;
}
#posterCustom:not([hidden]) { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#posterResolution { font-weight: 750; font-variant-numeric: tabular-nums; }
#posterDownload {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: #c2410c;
  color: #fff;
  font-weight: 750;
  cursor: pointer;
}
#posterDialog button:disabled { opacity: .6; cursor: default; }
.poster-options a { color: var(--text); text-underline-offset: .2em; }
.poster-help, #posterStatus { color: var(--muted); line-height: 1.4; }
#posterStatus:empty { display: none; }

@media (max-width: 660px) {
  .poster-layout { grid-template-columns: minmax(0, 1fr); }
  .poster-stage { min-height: 180px; padding: 16px; }
  #posterPreview { max-height: 32dvh; }
  .poster-options { padding: 16px; }
}

@media print {
  .board-print-dialog { display: none !important; }
}
