.editor-button-help {
  display: block;
  color: var(--studio-muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.55;
  margin: 7px 0 0;
  text-align: left;
  overflow-wrap: anywhere;
}
/* Let the business picker grow with its help text instead of squeezing the list. */
.sidebar { max-height: none; min-width: 0; }
.sidebar > :not(.merchant-list) { flex-shrink: 0; }
.sidebar > .merchant-list {
  min-height: 140px;
  max-height: min(360px, 45vh);
  flex-shrink: 0;
  overflow-y: auto;
}
.editor-action-group { flex: 1 1 160px; min-width: 0; max-width: 260px; }
.editor-action-group > button { max-width: 100%; }
.editor-action-group > .primary { margin-top: 0; }
.editor-actions { align-items: flex-start; max-width: 650px; }
.editor-actions .editor-action-group { flex-basis: 170px; max-width: 205px; }
.actions,.bulk-actions,.dialog-actions { align-items: flex-start; flex-wrap: wrap; }
.editor-button-help-wide { grid-column: 1 / -1; max-width: 100%; margin-bottom: 12px; }
.studio-toolbar > .editor-button-help-wide { margin: 0; }
.media-field > .editor-button-help-wide { margin-bottom: 8px; }
.coupon-head[hidden] + .editor-button-help-wide { display: none; }
.preview-panel .editor-button-help { color: var(--studio-muted); }
.dialog-actions .editor-action-group { flex-basis: 100%; max-width: 100%; }
@media (max-width: 550px) {
  .editor-actions { display: grid; grid-template-columns: 1fr; max-width: none; }
  .editor-actions .editor-action-group,.actions .editor-action-group { max-width: 100%; }
  .editor-button-help { font-size: 12px; }
}

/* History lives below Businesses; editing uses the former preview column. */
.workspace{grid-template-columns:240px minmax(0,1fr)}
.sidebar-column{min-width:0;display:flex;flex-direction:column;gap:18px}
.sidebar-column .sidebar{position:static}
.sidebar-column .history-panel{margin:0;padding:20px;min-width:0}
.sidebar-column .history-heading{align-items:flex-start;gap:8px;flex-wrap:wrap;font-size:14px}
.sidebar-column .history-panel p,.sidebar-column #history-list{font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.sidebar-column .history-item{flex-wrap:wrap;gap:8px}
@media(max-width:850px){.workspace{grid-template-columns:1fr}}
