/* Per-message feedback controls. The rating buttons mirror the shared message
   IconActions chrome so the strip reads as one row; the note editor is an
   inline expansion anchored to the same row. */

.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 6px;
  border: none;
  border-radius: 28px;
  background: transparent;
  color: var(--dsw-alias-label-tertiary);
  cursor: pointer;
}

.action:hover {
  background: var(--dsw-alias-interactive-bg-hover);
  color: var(--dsw-alias-label-secondary);
}

.action:disabled {
  cursor: default;
  opacity: 0.4;
}

/* A recorded rating stays legible without hover, so the signal survives a
   pointer leaving the row. */
.action[data-active] {
  color: var(--dsw-alias-label-primary);
}

.noteOpen {
  max-width: 220px;
  overflow: hidden;
  padding: 0 8px;
  border: none;
  border-radius: 14px;
  background: transparent;
  color: var(--dsw-alias-label-tertiary);
  font-size: 13px;
  line-height: 28px;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: pointer;
}

.noteOpen:hover {
  background: var(--dsw-alias-interactive-bg-hover);
  color: var(--dsw-alias-label-secondary);
}

.noteEditor {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
}

.noteInput {
  width: 260px;
  padding: 6px 8px;
  border: 1px solid var(--dsw-alias-border-secondary);
  border-radius: 8px;
  background: var(--dsw-alias-bg-primary);
  color: var(--dsw-alias-label-primary);
  font: inherit;
  font-size: 13px;
  resize: vertical;
}

.noteSave,
.noteCancel {
  height: 28px;
  padding: 0 10px;
  border: none;
  border-radius: 14px;
  font-size: 13px;
  cursor: pointer;
}

.noteSave {
  background: var(--dsw-alias-interactive-bg-primary);
  color: var(--dsw-alias-label-inverse);
}

.noteSave:disabled {
  cursor: default;
  opacity: 0.4;
}

.noteCancel {
  background: transparent;
  color: var(--dsw-alias-label-tertiary);
}

.noteCancel:hover {
  background: var(--dsw-alias-interactive-bg-hover);
  color: var(--dsw-alias-label-secondary);
}

.failure {
  padding-left: 4px;
  color: var(--dsw-alias-label-tertiary);
  font-size: 13px;
  line-height: 28px;
}
