.cs-reply-rewrite-controls {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  min-width: 0;
  font-size: 12px;
}
.cs-reply-rewrite-controls select {
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--horizon-border, #e5e7eb);
  border-radius: 5px;
  background: var(--horizon-surface, #fff);
  color: inherit;
  font: inherit;
  padding: 4px;
}
.cs-reply-rewrite-controls button {
  border: 0;
  background: transparent;
  color: var(--horizon-accent, #6d3fd8);
  font: inherit;
  cursor: pointer;
}
.cs-reply-rewrite-controls small {
  flex-basis: 100%;
  max-height: 4.5em;
  overflow: auto;
  line-height: 1.45;
  color: var(--horizon-muted, #64748b);
}
.cs-reply-polish-notice {
  flex: 0 0 auto;
  max-height: 6em;
  overflow: auto;
  padding: 8px 10px;
  border: 1px solid #d9cbf4;
  border-radius: 6px;
  color: #5b30be;
  background: #f7f3ff;
  font-size: 12px;
  line-height: 1.5;
}
.cs-expanded-reply-ai-pane:has(> .cs-reply-rewrite-controls) {
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.cs-expanded-reply-ai-pane:has(> .cs-reply-polish-notice) {
  grid-template-rows: auto minmax(0, 1fr) auto auto;
}
.cs-codex-unified-reply .cs-rewrite-pane .cs-reply-primary-row:has(> .cs-reply-rewrite-controls) {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}
.cs-reply-primary-row:has(> .cs-reply-rewrite-controls) > .cs-rewrite-instruction-input {
  grid-row: 3;
}
.cs-reply-primary-row:has(> .cs-reply-rewrite-controls) > .cs-draft-rewrite-actions {
  grid-row: 4;
}
