.formatted-response {
  color: #24324a;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.formatted-response strong {
  color: #172033;
  font-weight: 750;
}

.formatted-response em {
  font-style: italic;
}

.response-format-size-large {
  font-size: 1.18em;
  line-height: 1.55;
}

.response-format-color-blue {
  color: #1d4ed8;
}

.response-format-color-red {
  color: #b42318;
}

.response-editor {
  display: grid;
  gap: 10px;
}

.response-editor__toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 8px;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  background: #f8fafc;
}

.response-editor__group {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.response-editor__group + .response-editor__group {
  padding-left: 7px;
  border-left: 1px solid #dbe3ee;
}

.response-editor__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 7px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: #fff;
  color: #26364d;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.response-editor__button:hover {
  border-color: #93a4bb;
  background: #f1f5f9;
}

.response-editor__button:disabled {
  border-color: #dbe3ee;
  background: #f8fafc;
  color: #94a3b8;
  cursor: not-allowed;
}

.response-editor__button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.25);
  outline-offset: 2px;
}

.response-editor__button--blue {
  color: #1d4ed8;
}

.response-editor__button--red {
  color: #b42318;
}

.response-editor__button--signature {
  margin-left: auto;
  color: #0f766e;
  border-color: #99d5ce;
  background: #f0fdfa;
}

.response-editor__button--signature:disabled {
  color: #94a3b8;
  border-color: #dbe3ee;
  background: #f8fafc;
}

.response-editor__help a {
  color: #0f766e;
  font-weight: 700;
}

.response-editor__help {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.response-editor__preview {
  padding: 12px 14px;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  background: #fff;
}

.response-editor__preview-label {
  display: block;
  margin-bottom: 7px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .response-editor__toolbar {
    align-items: stretch;
  }

  .response-editor__group {
    flex: 1 1 auto;
  }

  .response-editor__button {
    flex: 1 1 auto;
  }

  .response-editor__button--signature {
    width: 100%;
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .response-editor__button {
    transition: none;
  }
}
