/* QR code editor — form-driven, no canvas selection. The Properties panel holds the whole editor
   (type, its fields, colours, size), so give it a comfortable width; the Visual/Source panes just
   show the generated code. Keep the modules crisp (no smoothing) and let it centre in the pane. */
.dia-qr .flow-props .flow-panel-body { width: 320px; max-width: 84vw; }

.dia-qr .flow-props textarea {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  min-height: 44px;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 6px 8px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--fg);
}
.dia-qr .flow-props input[type="color"] {
  width: 100%;
  height: 30px;
  padding: 2px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--surface);
  cursor: pointer;
}

/* a thin rule between the payload fields and the render settings */
.dia-qr .qr-sep {
  height: 1px;
  background: var(--border);
  margin: 12px 0 10px;
}

/* the generated QR: crisp square modules, sensibly sized, centred in the pane */
.qr-svg { image-rendering: pixelated; image-rendering: crisp-edges; shape-rendering: crispEdges; }
.dia-qr .flow-canvas .qr-svg,
.dia-qr .flow-preview .qr-svg { max-width: min(100%, 360px); height: auto; }
.flow-eg-out .qr-svg { max-width: min(100%, 220px); height: auto; }
