.pm-stage-dialog {
  box-sizing: border-box;
  width: min(380px, calc(100% - 24px));
  inset: 12px 12px 12px auto;
  margin: auto 0 auto auto;
  max-height: calc(100dvh - 24px);
  overflow: auto;
  padding: 20px;
  color: #f4f7fb;
  background: #0c1420;
  border: 1px solid #467370;
  border-radius: 18px;
  font: 14px/1.45 system-ui, sans-serif;
}

.pm-stage-dialog::backdrop { background: rgb(4 9 18 / 24%); }
.pm-stage-dialog header, .pm-stage-dialog label, .pm-stage-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.pm-stage-dialog h2 { margin: 0; color: inherit; font: 650 20px system-ui, sans-serif; }
.pm-stage-dialog p { margin: 10px 0; color: #c9d6e3; }
.pm-stage-dialog output { color: #6cebdd; font-variant-numeric: tabular-nums; }
.pm-stage-dialog button, .pm-stage-dialog textarea {
  color: inherit;
  background: #13263a;
  border: 1px solid #548781;
  border-radius: 8px;
  font: inherit;
}
.pm-stage-dialog button { min-height: 36px; padding: 4px 10px; cursor: pointer; }
.pm-stage-dialog :focus-visible { outline: 2px solid #6cebdd; outline-offset: 2px; }
.pm-stage-dialog input[type="range"] { width: 100%; margin: 4px 0 12px; accent-color: #6cebdd; }
.pm-stage-dialog details { margin-top: 12px; }
.pm-stage-dialog textarea { box-sizing: border-box; width: 100%; margin-top: 8px; padding: 8px; }

@media (max-width: 600px) {
  .pm-stage-dialog {
    inset: auto 12px 12px;
    margin: 0 auto;
    max-height: min(590px, 60dvh);
  }
}
