.launch-readiness-dialog {
  width: min(1080px, calc(100vw - 32px));
}

.launch-readiness-page {
  max-height: min(820px, calc(100vh - 32px));
  overflow: auto;
  background: #f7fafc;
}

.launch-readiness-page > header small,
.launch-readiness-card header small,
.launch-readiness-page footer small {
  display: block;
  margin-top: 4px;
  color: #66778a;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.launch-summary,
.launch-readiness-grid,
.launch-readiness-card,
.launch-blocker-list,
.launch-owner-list,
.launch-check-list,
.launch-command-list {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.launch-summary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.launch-summary article,
.launch-readiness-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(31, 45, 61, .06);
}

.launch-summary article {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 14px;
}

.launch-summary span,
.launch-owner-list span,
.launch-check-list span,
.launch-blocker-list small {
  color: #66778a;
  font-size: 12px;
  font-weight: 900;
}

.launch-summary strong,
.launch-owner-list strong,
.launch-check-list strong,
.launch-blocker-list strong,
.launch-command-list code {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.launch-status.is-pass,
.launch-check-list em.is-pass {
  color: #177a53;
}

.launch-status.is-danger,
.launch-check-list em.is-danger {
  color: #a12d2d;
}

.launch-check-list em.is-warning {
  color: #946200;
}

.launch-readiness-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
}

.launch-readiness-card {
  padding: 14px;
}

.launch-readiness-card > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.launch-command-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.launch-blocker-list article,
.launch-owner-list article,
.launch-check-list article {
  min-width: 0;
  border-radius: 8px;
  padding: 10px;
  background: #f5f8fb;
}

.launch-blocker-list article {
  display: grid;
  gap: 7px;
}

.launch-blocker-list strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.launch-blocker-list em,
.launch-check-list em {
  border-radius: 999px;
  padding: 3px 7px;
  background: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.launch-blocker-list p {
  margin: 0;
  color: #405368;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.launch-owner-list article,
.launch-check-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.launch-check-list article {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.launch-command-list code {
  display: block;
  border: 1px solid #d9e5ef;
  border-radius: 8px;
  padding: 10px;
  background: #f5f8fb;
  overflow-wrap: anywhere;
  white-space: normal;
}

.launch-copy-fallback {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  border: 1px solid #b9cce0;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  color: var(--ink);
  font: 800 12px/1.5 var(--font);
  overflow-wrap: anywhere;
}

.launch-copy-fallback[hidden] {
  display: none;
}

@media (max-width: 820px) {
  .launch-summary,
  .launch-readiness-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .launch-readiness-dialog {
    width: calc(100vw - 12px);
  }

  .launch-readiness-page {
    max-height: calc(100vh - 12px);
    padding: 14px;
  }

  .launch-readiness-card > header,
  .launch-owner-list article,
  .launch-check-list article {
    grid-template-columns: 1fr;
  }

  .launch-command-actions {
    justify-content: flex-start;
  }
}
