.ac-ch-rating { padding:20px 12px; margin:16px 0; border-block:1px solid var(--r-border,var(--ac-border,#444)); text-align:center; color:var(--r-text,var(--ac-text)); }
.ac-ch-rating fieldset { border:0; padding:0; margin:0; min-width:0; }
.ac-ch-rating legend { float:none; width:100%; font-weight:600; font-size:14px; line-height:1.5; }
.ac-ch-rating-stars { display:flex; justify-content:center; gap:2px; margin:6px 0; direction:ltr; }
.ac-ch-rating-star { position:relative; width:48px; height:44px; display:grid; place-items:center; }
.ac-ch-rating-glyph { position:relative; display:block; width:30px; height:30px; color:var(--r-muted,var(--ac-text-muted,#999)); }
.ac-ch-rating-glyph svg { position:absolute; inset:0; width:100%; height:100%; fill:none; stroke:currentColor; stroke-width:1.5; pointer-events:none; }
.ac-ch-rating-glyph .ac-ch-rating-fill { fill:var(--r-accent,#dfaf5d); stroke:var(--r-accent,#dfaf5d); clip-path:inset(0 calc(100% - var(--star-fill,0%)) 0 0); transition:clip-path 120ms ease-out; }
.ac-ch-rating-stars label { position:absolute; top:0; bottom:0; width:50%; cursor:pointer; border-radius:4px; }
.ac-ch-rating-stars .ac-ch-rating-half--start { left:0; }
.ac-ch-rating-stars .ac-ch-rating-half--end { right:0; }
.ac-ch-rating-stars .ac-ch-rating-whole { inset-inline:0; width:100%; }
.ac-ch-rating-stars input { position:absolute; inset:0; opacity:0; width:100%; height:100%; margin:0; cursor:inherit; }
.ac-ch-rating-stars label:focus-within { outline:2px solid var(--r-accent,#dfaf5d); outline-offset:1px; }
.ac-ch-rating fieldset:disabled label { cursor:default; }
.ac-ch-rating-summary { margin:4px 0 8px; font-size:13px; color:var(--r-muted,var(--ac-text-soft,#aaa)); font-variant-numeric:tabular-nums; }
.ac-ch-rating-summary strong { font-size:24px; line-height:1.3; font-weight:700; color:var(--r-text,var(--ac-text)); }
.ac-ch-rating-denominator { font-size:12px; }
.ac-ch-rating p,.ac-ch-rating>a { margin:8px 0; font-size:12px; line-height:1.5; }
.ac-ch-rating .ac-ch-rating-choice { color:var(--r-muted,var(--ac-text-soft,#aaa)); }
.ac-ch-rating button { min-height:44px; margin:4px; font-size:12px; }
.ac-ch-rating [hidden],.ac-ch-rating [data-rating-status]:empty { display:none; }
.ac-ch-rating.is-rating-entering { animation:ac-rating-enter 420ms ease-out both; }
.ac-ch-rating.is-rating-entering .ac-ch-rating-glyph { animation:ac-rating-star 360ms cubic-bezier(.16,1,.3,1) both; animation-delay:calc(100ms + var(--star-order) * 70ms); }
@keyframes ac-rating-enter { from { opacity:.6; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
@keyframes ac-rating-star { from { opacity:.4; transform:scale(.65); } to { opacity:1; transform:scale(1); } }
@media(prefers-reduced-motion:reduce) { .ac-ch-rating,.ac-ch-rating .ac-ch-rating-glyph { animation:none!important; } .ac-ch-rating-glyph .ac-ch-rating-fill { transition:none; } }
.ac-feedback-panel { padding:16px; border:1px solid var(--border,#ddd); border-radius:8px; margin-block:16px; overflow-wrap:anywhere; }
.ac-feedback-panel blockquote { margin:8px 0 16px; padding:12px; background:var(--bg-secondary,rgba(128,128,128,.08)); white-space:pre-wrap; }
.ac-feedback-panel textarea { width:100%; box-sizing:border-box; min-height:88px; font:inherit; }
.ac-feedback-panel button { min-height:44px; margin:6px 6px 6px 0; }

.ac-feedback-panel [data-correction-current] { max-height:360px; overflow:auto; padding:12px; border:1px solid var(--border,#ddd); white-space:normal; }
.ac-feedback-panel [data-correction-current]:empty { display:none; }
