/* Scoped feedback controls, using the shared Predictions/Reports tokens.
   Specificity overrides legacy rules that hide feedback on older answers. */
html body .msg-bubble.msg-assistant > .gl-msg-feedback.answer-feedback[role="group"] {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto;
  max-width: 100%;
  margin: 8px 0 0;
  padding: 0;
  order: 3 !important;
  font-family: inherit;
  font-style: normal;
}

html body .answer-feedback .pred-tool.answer-feedback-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 8px;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary, #666);
  cursor: pointer;
  touch-action: manipulation;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

html body .answer-feedback .answer-feedback-button svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

html body .answer-feedback .answer-feedback-button:hover:not(:disabled),
html body .answer-feedback .answer-feedback-button[aria-pressed="true"] {
  color: #2196F3;
  border-color: var(--border, #e5e7eb);
  background: rgba(33, 150, 243, .10);
}

html body .answer-feedback .answer-feedback-button:focus-visible {
  outline: 2px solid #2196F3;
  outline-offset: 2px;
}

html body .answer-feedback .answer-feedback-button:disabled {
  cursor: default;
  opacity: .65;
}

html body .answer-feedback .answer-feedback-button[aria-pressed="true"]:disabled {
  opacity: 1;
}

html body .answer-feedback .answer-feedback-status {
  flex: 0 1 auto;
  min-width: 0;
  padding-left: 4px;
  color: var(--text-secondary, #666);
  font-size: 12px;
  line-height: 1.5;
  font-style: normal;
  overflow-wrap: anywhere;
}

html body .answer-feedback[data-state="error"] .answer-feedback-status {
  color: var(--text-primary, #1a1a1a);
}

@media (prefers-reduced-motion: reduce) {
  html body .answer-feedback .answer-feedback-button { transition: none; }
}
