.launch-workbench, .launch-batch-detail { min-width: 0; }
.launch-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.launch-download { text-decoration: none; }
.launch-delete-button { color: #a43d3b; }
.launch-toolbar [data-launch-connection] { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.launch-toolbar .search { flex: 0 1 275px; }
.launch-toolbar .search input { min-width: 0; }
.launch-alert:empty { display: none; }
.launch-alert { margin: 0 0 8px; }
.launch-batch-table { min-width: 670px; }
.launch-item-table { min-width: 720px; }
.launch-selected td { background: #f3f7fd; }
.launch-item-table td:first-child { max-width: 260px; white-space: normal; overflow-wrap: anywhere; }
.launch-item-table td:nth-child(2) { max-width: 260px; white-space: normal; overflow-wrap: anywhere; }
.launch-item-error { display: block; color: #a43d3b; margin-top: 3px; max-width: 245px; white-space: normal; overflow-wrap: anywhere; }
.launch-batch-detail { margin-top: 16px; }
.launch-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 14px;
  padding: 8px 10px;
  margin: 0 0 8px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 12px;
}
.launch-summary dt { color: var(--muted); }
.launch-summary dd { margin: 1px 0 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.dialog:has(.launch-draft, .launch-preview) { width: 780px; }
.launch-draft {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: start;
  gap: 12px 16px;
}
.launch-draft-section { min-width: 0; }
.launch-draft-section h3 { margin: 0 0 8px; font-size: 13px; }
.launch-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.launch-field-full { grid-column: 1 / -1; }
.launch-field-heading { display: flex; justify-content: space-between; align-items: baseline; }
.launch-option { display: flex; align-items: start; gap: 7px; min-width: 0; color: var(--text); }
.launch-option input { flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--accent); }
.launch-option span { min-width: 0; overflow-wrap: anywhere; }
.launch-pick { display: grid; gap: 6px; padding: 8px; border: 1px solid var(--line); max-height: 157px; overflow: auto; }
.launch-ads { display: grid; gap: 8px; margin-top: 8px; }
.launch-ads .field-title { overflow-wrap: anywhere; }
.launch-preview-item { display: grid; grid-template-columns: minmax(140px, .8fr) minmax(0, 1.2fr); align-items: start; gap: 12px; }
.launch-preview-fields { grid-template-columns: minmax(78px, auto) minmax(0, 1fr); }
.launch-preview-fields dd { white-space: pre-wrap; }
.launch-media { display: block; width: 100%; height: min(320px, 45vh); background: #171e29; object-fit: contain; }
.launch-media-download { margin-top: 7px; }
.launch-video-error { margin-top: 5px; }
.launch-preview .launch-summary { margin-bottom: 0; }
#launch-preview-error:empty, #launch-draft-error:empty, #launch-delete-error:empty { display: none; }

@media (max-width: 610px) {
  .launch-draft, .launch-preview-item { grid-template-columns: minmax(0, 1fr); }
  .launch-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .launch-toolbar .search { flex: 1 1 190px; }
  .launch-media { height: min(205px, 35vh); }
}

@media (max-width: 390px) {
  .launch-toolbar .search { flex-basis: 100%; }
  .launch-preview-fields { grid-template-columns: 76px minmax(0, 1fr); }
}
