/* The Feedback widget (public/feedback.js). Classes only: the CSP forbids inline style.
   Colours come from site.css tokens (--accent, --panel, --ink, --muted, --line, --bg). */
.fb-root { position: fixed; right: 16px; bottom: 16px; z-index: 60; font: 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink, #101512); }
.fb-open { cursor: pointer; border: 0; border-radius: 999px; padding: 10px 16px; font: inherit; font-weight: 600; background: var(--accent, #0f9d58); color: var(--accent-ink, #fff); box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.fb-open:focus-visible, .fb-send:focus-visible, .fb-close:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.fb-panel { position: absolute; right: 0; bottom: 52px; width: min(340px, calc(100vw - 32px)); background: var(--panel, #fff); color: inherit; border: 1px solid var(--line, #dfe5df); border-radius: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, .28); padding: 14px; }
.fb-panel[hidden] { display: none; }
.fb-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.fb-close { cursor: pointer; border: 0; background: none; color: var(--muted, #5b665f); font: inherit; text-decoration: underline; }
.fb-field { margin-bottom: 8px; }
.fb-label { display: block; font-size: 12px; color: var(--muted, #5b665f); margin-bottom: 2px; }
.fb-input { box-sizing: border-box; width: 100%; font: inherit; padding: 8px; border: 1px solid var(--line, #dfe5df); border-radius: 8px; background: var(--bg, #fff); color: inherit; }
textarea.fb-input { resize: vertical; min-height: 90px; }
.fb-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.fb-status { min-height: 1.2em; margin: 4px 0; font-size: 13px; }
.fb-status.is-bad { color: #b4232a; }
.fb-status.is-ok { color: #15803d; }
.fb-send { cursor: pointer; width: 100%; border: 0; border-radius: 8px; padding: 9px; font: inherit; font-weight: 600; background: var(--accent, #0f9d58); color: var(--accent-ink, #fff); }
.fb-send:disabled { opacity: .6; cursor: default; }
@media (prefers-color-scheme: dark) { .fb-status.is-bad { color: #f87171; } .fb-status.is-ok { color: #34d399; } }
/* The console's phone layout has a bottom tab bar: sit above it. */
@media (max-width: 860px) { .console-body .fb-root { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); } }
@media (prefers-reduced-motion: no-preference) { .fb-open { transition: transform 120ms; } .fb-open:hover { transform: translateY(-1px); } }
