.feedback {
  margin: 2rem 0;
  padding: 1.25rem;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 5px 22px rgba(201, 162, 39, .08);
}
.feedback-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--border);
}
.feedback-heading .section-title { margin-bottom: 0; }
.feedback-eyebrow {
  color: var(--gold-dark);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  margin: 0 0 .25rem;
}
.feedback-summary { display: flex; align-items: center; gap: .6rem; }
.feedback-average { color: var(--gold-dark); font-size: 1.65rem; font-weight: 900; line-height: 1; }
.feedback-summary-copy { display: flex; flex-direction: column; gap: .1rem; color: var(--text-muted); font-size: .72rem; }
.feedback-stars { color: #c9c3b4; direction: ltr; letter-spacing: .04em; }
.feedback-stars .is-filled { color: #d49e18; }
.feedback-shared, .feedback-flash, .feedback-owned-note {
  margin: .8rem 0 0;
  padding: .65rem .8rem;
  border-radius: var(--radius-sm);
  font-size: .82rem;
  line-height: 1.65;
}
.feedback-shared { color: var(--gold-dark); background: var(--gold-subtle); border-right: 3px solid var(--gold); }
.feedback-flashes { display: grid; gap: .4rem; }
.feedback-flash { margin-top: .65rem; }
.feedback-flash--error { color: #8d3028; background: #fff1ee; border: 1px solid #e8c4bd; }
.feedback-flash--success { color: #386238; background: #eff6e9; border: 1px solid #cadaba; }
.feedback-grid { display: grid; grid-template-columns: 1fr; gap: .8rem; margin-top: 1rem; }
.feedback-panel { min-width: 0; padding: .95rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: rgba(250, 248, 242, .75); }
.feedback-panel h3, .feedback-comments-title { margin: 0 0 .35rem; color: var(--text); font-size: .95rem; font-weight: 800; }
.feedback-hint, .feedback-current { margin: 0 0 .65rem; color: var(--text-muted); font-size: .79rem; line-height: 1.6; }
.feedback-current strong { color: var(--gold-dark); }
.feedback-form { display: flex; flex-direction: column; align-items: stretch; gap: .45rem; }
.feedback-form label { color: var(--text); font-size: .8rem; font-weight: 700; }
.feedback-form input[type="text"], .feedback-form textarea {
  width: 100%;
  padding: .65rem .75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: .88rem;
  line-height: 1.6;
}
.feedback-form textarea { resize: vertical; min-height: 6rem; }
.feedback-form input:focus, .feedback-form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.star-choice { display: flex; flex-direction: row-reverse; justify-content: flex-end; border: 0; padding: 0; margin: 0 0 .35rem; }
.star-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-choice label { padding: 0 .13rem; color: #c9c3b4; font-size: 1.85rem; line-height: 1.2; cursor: pointer; }
.star-choice label:hover, .star-choice label:hover ~ label, .star-choice input:checked ~ label { color: #d49e18; }
.star-choice input:focus-visible + label { outline: 2px solid var(--gold-dark); outline-offset: 2px; border-radius: 3px; }
.feedback-submit { align-self: flex-start; margin-top: .2rem; font-size: .82rem; padding: .52rem 1.05rem; }
.feedback-owned-note { color: var(--gold-dark); background: var(--gold-subtle); margin: .45rem 0 .65rem; }
.feedback-comments { margin-top: 1.2rem; }
.feedback-comments-title { display: flex; align-items: center; gap: .5rem; padding-bottom: .55rem; border-bottom: 1px solid var(--border); }
.feedback-comments-title span { display: inline-flex; align-items: center; justify-content: center; min-width: 1.45rem; height: 1.45rem; padding: 0 .35rem; border-radius: 1rem; background: var(--gold-subtle); color: var(--gold-dark); font-size: .72rem; }
.feedback-list { display: grid; gap: .6rem; list-style: none; padding: 0; margin: .75rem 0 0; }
.feedback-comment { padding: .85rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.feedback-comment-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.feedback-name { display: block; color: var(--text); font-size: .86rem; }
.feedback-date { display: block; margin-top: .1rem; color: var(--text-muted); font-size: .72rem; }
.feedback-comment-text { margin: .55rem 0; color: var(--text); font-size: .88rem; line-height: 1.8; overflow-wrap: anywhere; white-space: pre-wrap; }
.feedback-reactions { display: flex; gap: .8rem; color: var(--text-muted); font-size: .72rem; }
.feedback-delete { color: #8d3028; border: 1px solid #e8c4bd; border-radius: 1rem; padding: .3rem .65rem; font-size: .73rem; font-weight: 700; }
.feedback-delete:hover { background: #fff1ee; }
.feedback-empty { padding: .9rem; margin: .75rem 0 0; border: 1px dashed var(--gold-border); border-radius: var(--radius-sm); color: var(--text-muted); font-size: .85rem; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (min-width: 640px) {
  .feedback { padding: 1.5rem; }
  .feedback-grid { grid-template-columns: .85fr 1.15fr; }
}
@media (max-width: 420px) {
  .feedback { padding: .9rem; }
  .feedback-heading { align-items: flex-start; }
  .feedback-average { font-size: 1.35rem; }
  .feedback-stars { font-size: .85rem; }
}