/* The feedback form and Ron's inbox (plan phase 9). Uses the site's colours from site.css. */
[hidden] { display: none !important; }
.fb-form { display: grid; gap: 22px; margin-top: 8px; }
.fb-field { display: grid; gap: 6px; }
.fb-field label { font-weight: 700; }
.fb-help { color: var(--muted); font-size: 0.95rem; margin: 0; }
.fb-form textarea, .fb-form input[type=email], .fb-form select,
.fb-inbox select, .fb-inbox input[type=text], .fb-inbox textarea {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 2px solid var(--rule); border-radius: 10px; padding: 10px 12px; width: 100%; box-sizing: border-box;
}
.fb-form textarea { min-height: 220px; resize: vertical; }
.fb-form textarea:focus, .fb-form input:focus, .fb-form select:focus,
.fb-inbox select:focus, .fb-inbox input:focus, .fb-inbox textarea:focus { outline: 3px solid var(--link); outline-offset: 1px; border-color: var(--link); }
.fb-count { color: var(--muted); font-size: 0.9rem; text-align: right; margin: 0; }
.fb-from { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 12px 16px; margin: 0; }
.fb-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fb-actions button { cursor: pointer; font: inherit; }
.fb-actions button[disabled] { opacity: 0.6; cursor: wait; }
.fb-error { color: #a4161a; font-weight: 700; margin: 0; }
.fb-error:empty { display: none; }
:root[data-theme="dark"] .fb-error { color: #ff8a8a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fb-error { color: #ff8a8a; } }
.fb-thanks { border-left: 6px solid var(--c); background: var(--surface); padding: 18px 20px; border-radius: 10px; }
.fb-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Inbox */
.fb-inbox .wrap { max-width: 1100px; }
.fb-bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; margin: 8px 0 18px; }
.fb-bar .fb-field { min-width: 200px; }
.fb-counts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.fb-counts button { font: inherit; cursor: pointer; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 6px 12px; min-height: 36px; }
.fb-counts button[aria-pressed="true"] { border-color: var(--ink); font-weight: 700; }
.fb-item { background: var(--surface); border: 1px solid var(--rule); border-left: 6px solid var(--rule); border-radius: 10px; padding: 16px 18px; margin: 0 0 14px; }
.fb-item[data-status="new"] { border-left-color: #1f5fa8; }
.fb-item[data-status="implement"] { border-left-color: #1b7f3b; }
.fb-item[data-status="discard"] { border-left-color: #8a8f98; opacity: 0.8; }
.fb-item[data-status="inplan"] { border-left-color: #6b3fa0; }
.fb-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 0.92rem; margin: 0 0 8px; }
.fb-meta strong { color: var(--ink); }
.fb-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 12px; font-size: 1.02rem; }
.fb-badge { display: inline-block; font-size: 0.82rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--paper); border: 1px solid var(--rule); color: var(--ink); }
.fb-item .fb-actions button { min-height: 40px; padding: 6px 14px; border-radius: 8px; border: 2px solid var(--ink); background: transparent; color: var(--ink); font-weight: 700; }
.fb-item .fb-actions button.on { background: var(--ink); color: var(--paper); }
.fb-note { margin-top: 10px; display: grid; gap: 6px; }
.fb-note textarea { min-height: 54px; }
.fb-status-line { min-height: 1.4em; color: var(--muted); font-size: 0.92rem; margin: 6px 0 0; }
.fb-empty { color: var(--muted); padding: 24px 0; }
.fb-link { font: inherit; background: none; border: 0; padding: 0 0 0 10px; color: var(--link); text-decoration: underline; cursor: pointer; min-height: 32px; }
.fb-undo { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fb-undo button { font: inherit; font-weight: 700; cursor: pointer; border: 2px solid var(--ink); background: transparent; color: var(--ink); border-radius: 8px; min-height: 40px; padding: 4px 14px; }
.fb-counts button { min-height: 44px; }
.fb-item .fb-actions button { min-height: 44px; }
