.delivery-screen {
  display: grid;
  /* One explicit flexible column: an implicit auto track grows to its widest content and
     pushed the cards past the workspace (1280 px, 20/10/2026). */
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-4);
}

.delivery-hub {
  gap: var(--s-5);
}

.delivery-hub-head {
  align-items: start;
}

.delivery-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: var(--s-2);
  min-width: min(420px, 100%);
}

.delivery-summary-item {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  background: var(--bg-2);
}

.delivery-summary-item span {
  color: var(--text-3);
  font-size: var(--t-caption);
}

.delivery-summary-item strong {
  color: var(--text-1);
  font-size: var(--t-body-strong);
  font-weight: 700;
}

.delivery-group {
  display: grid;
  gap: var(--s-3);
}

.delivery-group-head .section-title {
  margin: 0;
}

.delivery-group-head .screen-lead {
  margin-top: 4px;
}

.delivery-group-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.delivery-card {
  grid-template-rows: auto auto 1fr auto auto;
  gap: var(--s-3);
  min-height: 100%;
}

.delivery-card-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--brand-a) 10%, var(--bg-1));
  color: var(--accent);
}

.delivery-card-mark .icon {
  width: 18px;
  height: 18px;
}

.delivery-card-desc,
.delivery-card-preview,
.delivery-status {
  margin: 0;
}

.delivery-card-desc {
  color: var(--text-2);
  font-size: var(--t-sm);
  line-height: 1.45;
}

.delivery-card-preview {
  color: var(--text-1);
  font-size: var(--t-body);
  font-weight: 700;
}

.delivery-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-2);
  color: var(--text-3);
  font-size: var(--t-caption);
}

.delivery-status-badge[data-status="ready"] {
  background: var(--ok-bg);
  color: var(--ok);
}

.delivery-card .row-actions {
  margin-top: auto;
}

.delivery-preview-details {
  display: grid;
  gap: var(--s-3);
}

.delivery-report-frame {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  background: var(--bg-2);
}

.delivery-preview-card .report {
  display: grid;
  gap: var(--s-3);
  font-size: var(--t-sm);
}

.delivery-preview-card .panel-section {
  padding-top: 0;
}

.delivery-preview-card .section-title {
  margin-top: 0;
  font-size: var(--t-body-strong);
}

.delivery-preview-card .panel-note,
.delivery-preview-card .plain-list,
.delivery-preview-card .kv-row {
  font-size: var(--t-sm);
}

@media (max-width: 1120px) {
  .delivery-summary {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 760px) {
  .delivery-summary {
    grid-template-columns: 1fr;
  }
}

/* « Puis-je remettre ce modèle ? » : the verdict first, in the tone of the Gate. */
.delivery-answer { gap: var(--s-2); border-left: 4px solid var(--line); }
.delivery-answer[data-tone="blocking"] { border-left-color: var(--sev-blocking); background: color-mix(in srgb, var(--sev-blocking-bg) 55%, var(--bg-1)); }
.delivery-answer[data-tone="review"] { border-left-color: var(--sev-review); background: color-mix(in srgb, var(--sev-review-bg) 55%, var(--bg-1)); }
.delivery-answer[data-tone="ok"] { border-left-color: var(--ok); }
.delivery-answer-word { margin: 0; }
.delivery-answer-counts { margin: 0; font-weight: 600; }
.delivery-answer-reasons { margin: 0; padding-left: var(--s-4); list-style: disc; }
