.publish-dialog {
  width: min(980px, calc(100% - 30px));
  max-height: 92vh;
  overflow: auto;
}

.publish-dialog-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .9fr);
  gap: 24px;
}

.dialog-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-top: 19px;
}

.dialog-section-head b,
.dialog-section-head small,
.panel-option-choice b,
.panel-option-choice small {
  display: block;
}

.dialog-section-head b { font-size: 11px; }
.dialog-section-head small { color: var(--muted); font-size: 9px; margin-top: 4px; }

.panel-option-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 9px;
  max-height: 220px;
  overflow: auto;
}

.panel-option-choice {
  display: grid !important;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #202331;
  cursor: pointer;
}

.panel-option-choice:has(input:checked) { border-color: #6266f1; background: #6266f114; }
.panel-option-choice input { width: auto !important; margin: 0 !important; }
.panel-option-choice > span { font-size: 15px; }
.panel-option-choice b { color: var(--text); font-size: 10px; }
.panel-option-choice small { color: var(--muted); font-size: 8px; margin-top: 3px; }
.dialog-preview-label { color: #8f92ff; font-size: 8px; font-weight: 800; letter-spacing: .12em; margin: 16px 0 9px; }
.publish-live-preview { min-height: 310px; align-items: flex-start; }
.publish-live-preview .discord-embed-preview { max-width: none; }

.publish-preview-picker {
  position: relative;
  margin-top: 10px;
  border: 1px solid #3a4051;
  background: #292d3a;
  border-radius: 4px;
  color: #ddd;
  padding: 9px 11px;
  font-size: 10px;
}

.publish-preview-picker > i { float: right; font-style: normal; }
.publish-preview-picker > div { display: grid; gap: 5px; margin-top: 9px; padding-top: 8px; border-top: 1px solid #3a4051; }
.publish-preview-picker small { font-size: 9px; color: #afb5c6; }
.panel-row-actions .primary-action { border-color: #6266f1; background: #6266f1; color: #fff; }
.managed-status { white-space: nowrap; }

@media (max-width: 820px) {
  .publish-dialog-grid { grid-template-columns: 1fr; }
  .panel-option-choices { grid-template-columns: 1fr; }
  .publish-live-preview { min-height: auto; }
}
