.dispatch, .collect {
  max-width: 768px;
  margin: clamp(26px, 6vw, 64px) auto;
  padding: clamp(20px, 5vw, 38px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.dispatch-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 18px; }
.dispatch h1, .collect h1 { font-size: clamp(1.4rem, 4.6vw, 1.8rem); }
.dispatch-nodes { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.dispatch-help { color: var(--muted); font-size: .95rem; line-height: 1.65; }
.dispatch-columns { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 22px; }
.dispatch-columns:has(.dispatch-task:not([hidden])) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(244px, .75fr);
  gap: 26px;
}
.dispatch form { max-width: 470px; margin-top: 0; }
.dispatch form > label:first-child { margin-top: 0; }
.dispatch-secondary { background: var(--paper); color: var(--accent); border-color: #c0ccde; }
.dispatch-secondary:not(:disabled):hover { background: #edf3ff; }
#dispatch-create, #collect-submit { margin-top: 10px; }
.dispatch-task { min-width: 0; padding-left: 24px; border-left: 1px solid var(--line); }
.dispatch-task h2 { font-size: 1.08rem; }
.dispatch-qr { width: min(234px, 100%); margin-top: 14px; padding: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.dispatch-qr img { display: block; width: 100%; height: auto; }
.dispatch-stage { font-size: .95rem; font-weight: 650; }
.dispatch-stage[data-error="true"] { color: var(--error); }
.collect { max-width: 520px; }
.collect form { margin-top: 20px; }
@media (max-width: 680px) {
  .dispatch-columns:has(.dispatch-task:not([hidden])) { grid-template-columns: 1fr; }
  .dispatch form { max-width: none; }
  .dispatch-task { padding: 22px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  #dispatch-create, #collect-submit { width: 100%; }
}
