/* Ratings on answers (static/kilby-feedback.js; GitHub #350). Approved mockup: docs/feedback-mockups/. */
.kilby-rate[aria-pressed="true"] svg { fill: currentColor; }
.kilby-rate[aria-pressed="true"] { color: var(--kilby-white); }
/* The rating's result shows beside the thumbs, where the person just clicked. */
.kilby-rate-status { align-self: center; margin-left: 6px; font-size: 12px; color: var(--kilby-secondary); }
.kilby-rate-status.error { color: var(--kilby-red); }
.kilby-rate-status:empty { display: none; }
/* On a phone the message gets its own line under the buttons instead of squeezing beside them. */
@media (max-width: 520px) {
  .bot-actions-row:has(.kilby-rate-status:not(:empty)),
  .card-actions:has(.kilby-rate-status:not(:empty)) { flex-wrap: wrap; }
  .kilby-rate-status:not(:empty) { flex-basis: 100%; margin: 2px 0 0 8px; }
}

/* Thumbs down: "Tell us what went wrong", built on the Share dialog's styles. */
.feedback-dialog { width: min(520px, calc(100vw - 24px)); }
.feedback-dialog .share-dialog-inner { padding: 22px 22px 20px; }
.feedback-dialog .share-dialog-head { margin-bottom: 14px; }
.feedback-dialog h2 { font-size: 20px; }
.feedback-reasons { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; border: 0; }
.feedback-reasons legend { font-size: 14px; color: var(--kilby-secondary); margin-bottom: 10px; padding: 0; }
.share-dialog button.feedback-reason { padding: 7px 12px; border-radius: 999px; font-size: 14px; background: transparent; }
.share-dialog button.feedback-reason[aria-pressed="true"] { background: var(--kilby-white); color: var(--kilby-black); border-color: var(--kilby-white); }
.feedback-dialog label { display: block; margin: 0 0 6px; font-size: 14px; color: var(--kilby-secondary); }
.feedback-dialog textarea { box-sizing: border-box; width: 100%; min-height: 96px; resize: vertical; font: inherit; font-size: 15px;
  padding: 12px; border: 1px solid var(--kilby-border); border-radius: 8px; background: var(--kilby-panel); color: var(--kilby-white); }
.feedback-notice { font-size: 13px; line-height: 1.5; color: var(--kilby-secondary); margin: 12px 0 0; }
.feedback-dialog .share-actions { justify-content: flex-end; margin-top: 18px; }

/* Settings → Feedback: its two choices are setup's rows, like every choice list in Settings, and Send feedback is a
   white button like the rest (owner-approved mockup docs/settings-refresh-mockup/customize-rows.html, 2026-11-10). */
.feedback-choice strong { min-width: 120px; }
.feedback-count { text-align: right; color: var(--kilby-faint); font-size: 12.5px; margin-top: 6px; }
.feedback-attach { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
#settingsPanel.settings-workspace .feedback-attach .settings-note { margin: 0; overflow-wrap: anywhere; }
.feedback-attach svg { width: 16px; height: 16px; }
.feedback-preview { display: flex; align-items: center; gap: 14px; }
.feedback-preview[hidden] { display: none; }
.feedback-preview img { display: block; height: 160px; max-width: min(320px, 100%); object-fit: contain;
  border: 1px solid var(--kilby-border); border-radius: 8px; background: var(--kilby-black); }
#settingsPanel.settings-workspace #feedbackFileError { margin-top: 10px; }
/* The message box grows as you type (owner, 2026-10-14, docs/feedback-mockups/settings-fit.html), and the result
   shows beside the button. */
#settingsPanel.settings-workspace #feedbackMessage { field-sizing: content; min-height: 129px; max-height: 18em; }
.feedback-send-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; padding-top: 24px; }
#settingsPanel.settings-workspace #feedbackStatus { margin: 0; min-height: 0; }
#settingsPanel.settings-workspace .feedback-anon-note { margin-top: 10px; }
