.p21-sync {
  margin: 0 auto 10px;
  padding: 8px 12px;
  max-width: 1016px;
  border: 1px solid #b7c7d0;
  border-radius: 9px;
  background: #fff;
  color: #13384c;
}
.p21-sync p { margin: 0; font-size: 14px; }
.p21-sync-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.p21-sync button,
.p21-sync-dialog button {
  margin-top: 6px;
  min-height: 44px;
  padding: 7px 12px;
  color: #13384c;
  background: #f5f7f8;
  border: 1px solid #8ba7b8;
  border-radius: 8px;
}
.p21-sync [hidden] { display: none !important; }
.p21-sync-dialog {
  width: min(calc(100% - 2rem), 38rem);
  max-height: 82vh;
  max-height: 82dvh;
  padding: 1rem;
  overflow: auto;
  border: 1px solid #8ba7b8;
  border-radius: 12px;
  color: #13384c;
}
.p21-sync-dialog::backdrop { background: rgb(19 56 76 / 55%); }
.p21-sync-dialog h2 { margin: 0; }
.p21-sync-dialog section { margin: 10px 0; }
.p21-sync-dialog pre {
  max-height: 12rem;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 8px;
  background: #f5f7f8;
}
.p21-sync-dialog img { display: block; max-width: 100%; max-height: 14rem; }
.p21-sync-confirm { display: block; margin: 10px 0 3px; }
@media print { .p21-sync, .p21-sync-dialog { display: none !important; } }
