/* Scoped to the two public feedback entry points. */
.fb-card,.fb-dialog { color:var(--ink); background:var(--paper); border:1px solid var(--line); }
.fb-card { margin:24px 0; border-radius:12px; padding:24px; }
.fb-dialog { position:fixed; width:min(680px,calc(100% - 32px)); max-width:100%; max-height:calc(100dvh - 32px); padding:0; border-radius:16px; overflow:hidden; }
.fb-dialog::backdrop { background:rgba(37,45,54,.48); }
.fb-dialog-scroll { padding:28px; max-height:calc(100dvh - 34px); overflow:auto; overscroll-behavior:contain; }
.fb-dialog .fb-close { display:grid; place-content:center; position:absolute; right:12px; top:12px; z-index:1; width:44px; height:44px; border:1px solid transparent; border-radius:8px; background:var(--paper); color:var(--ink); font-size:28px; font-weight:400; line-height:1; }
.fb-close:hover { border-color:var(--line); }
[data-feedback-form] { margin:0; min-width:0; }
[data-feedback-form] [hidden] { display:none !important; }
[data-feedback-form] h2, [data-feedback-form] h3 { margin:0; color:var(--ink); line-height:1.2; }
[data-feedback-form] h2 { font-size:clamp(23px,2.25vw,32px); }
.fb-dialog [data-feedback-form] h2 { margin-right:40px; }
[data-feedback-description] { font-size:16px; color:var(--muted); margin:8px 0 20px; }
[data-feedback-editor] { border:0; padding:0; margin:0; min-width:0; }
.fb-choices { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.fb-choices label { cursor:pointer; min-height:48px; display:flex; gap:9px; align-items:center; padding:10px 14px; background:var(--paper); border:1px solid #8a919b; border-radius:8px; font-weight:500; line-height:1.3; }
.fb-choices label:has(:checked) { background:#fff2f5; border-color:var(--accent); }
.fb-choices input { width:18px; height:18px; margin:0; accent-color:var(--accent); flex:none; }
.fb-choices label:has(:focus-visible) { outline:2px solid var(--focus); outline-offset:2px; }
.fb-field { display:flex; flex-direction:column; align-items:stretch; gap:6px; min-width:0; margin-top:18px; }
.fb-field label { font-weight:500; font-size:16px; }
.fb-field textarea,.fb-field input { box-sizing:border-box; width:100%; min-width:0; color:var(--ink); background:#fff; border:1px solid #8a919b; border-radius:7px; padding:10px 12px; font:inherit; font-size:16px; }
.fb-field input { min-height:46px; }
.fb-field textarea { min-height:96px; resize:vertical; }
.fb-field input::placeholder,.fb-field textarea::placeholder { color:#616b76; opacity:1; }
.fb-count { text-align:right; color:var(--muted); font-size:13px; }
.fb-pair { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.fb-meta { margin-top:16px; }
.fb-meta summary { width:fit-content; cursor:pointer; }
.fb-meta p,.fb-privacy,.fb-policy,.fb-response .fb-reply { color:var(--muted); font-size:14px; margin:8px 0 0; }
.fb-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px 16px; }
.fb-actions:has(>button:not([hidden])) { margin-top:18px; }
.fb-actions button { min-height:44px; font-size:16px; }
.fb-actions .btn { min-height:48px; }
.fb-actions .fb-privacy { margin:0; }
.fb-dialog .fb-privacy { order:-1; width:100%; margin:0 0 4px; }
.fb-response { margin:14px 0 0; }
.fb-response p { margin:0; }
[data-state=rejected] .fb-response { color:var(--error-ink); }
[data-feedback-form]:is([data-state=sending],[data-state=pending],[data-state=sent],[data-state=unknown]) { text-align:center; padding:20px 0; }
.fb-dialog [data-feedback-form]:is([data-state=sending],[data-state=pending],[data-state=sent],[data-state=unknown]) { padding:24px 14px 6px; }
[data-feedback-form]:is([data-state=pending],[data-state=sent],[data-state=unknown]) .fb-actions { justify-content:center; }
.fb-response h3 { font-size:26px; margin-bottom:8px; }
.fb-state-icon { display:block; border:3px solid #f8cbd5; border-top-color:var(--accent); width:30px; height:30px; border-radius:50%; margin:0 auto 18px; animation:fb-turn 1.2s linear infinite; }
[data-state=sent] .fb-state-icon { border:0; background:#ebf5ec; width:48px; height:48px; color:#297343; animation:none; }
[data-state=sent] .fb-state-icon::before { content:'✓'; font-size:32px; line-height:48px; }
@keyframes fb-turn { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion:reduce) { .fb-state-icon { animation:none; } }
@media (max-width:640px) {
 .fb-card,.fb-dialog-scroll { padding:16px; }
 .fb-dialog { width:calc(100% - 20px); max-height:calc(100dvh - 20px); }
 .fb-dialog-scroll { max-height:calc(100dvh - 22px); }
 .fb-choices { grid-template-columns:1fr; gap:6px; }
 .fb-choices label { min-height:44px; }
 .fb-pair { grid-template-columns:1fr; gap:0; }
 .fb-actions .btn { width:100%; }
}
