/* Feedback-Box (feedback.js) + Admin-Feedback (admin-feedback.html). Farben/Schriften aus styles.css */
.fb-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 900;
  background: var(--ink); color: var(--salt); border: 0; border-radius: 999px;
  font: 700 15px var(--f-display); padding: 0 18px; min-height: 44px; cursor: pointer;
  box-shadow: 0 4px 14px rgba(23, 38, 43, .25); display: inline-flex; align-items: center; gap: 8px;
}
.fb-fab:hover { background: var(--deep-water); }
.fb-badge {
  background: var(--kite); color: var(--ink); border-radius: 999px; min-width: 20px; height: 20px; padding: 0 6px;
  font: 700 12px/20px var(--f-mono); text-align: center; margin-left: 6px;
}
.fb-badge[hidden] { display: none; }

.fb-dialog {
  width: min(640px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 6px;
  background: var(--paper) var(--paper-grain); color: var(--ink); box-shadow: 0 20px 60px rgba(23, 38, 43, .35);
}
.fb-dialog::backdrop { background: rgba(23, 38, 43, .55); }
.fb-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 20px 20px 8px; }
.fb-head h2 { margin: 4px 0 0; font-size: 24px; line-height: 1.1; font-weight: 850; font-stretch: 115%; }
.fb-xp { margin-top: 6px; font: 13px var(--f-mono); color: var(--deep-water); }
.fb-close { border: 0; background: none; font-size: 20px; cursor: pointer; min-width: 44px; min-height: 44px; color: var(--ink); }
.fb-tabs { display: flex; gap: 4px; padding: 0 20px; border-bottom: 1px solid var(--sand-line); overflow-x: auto; }
.fb-tabs button {
  border: 0; background: none; font: 700 15px var(--f-display); color: var(--ink-soft); padding: 12px 10px; min-height: 44px;
  border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center;
}
.fb-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--kite); }
.fb-body { padding: 16px 20px 24px; position: relative; }

.fb-form { display: flex; flex-direction: column; gap: 14px; }
.fb-kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fb-kind {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; cursor: pointer;
  background: var(--salt); border: 2px solid var(--sand-line); border-radius: 6px; padding: 10px; font: inherit; color: var(--ink);
}
.fb-kind[aria-pressed="true"] { border-color: var(--ink); background: var(--sand-light); }
.fb-kind-icon { font-size: 22px; }
.fb-kind strong { font-size: 15px; }
.fb-kind small { font-size: 13px; color: var(--ink-soft); line-height: 1.3; }
.fb-field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 15px; }
.fb-field small { font-weight: 400; color: var(--ink-soft); }
.fb-field select, .fb-field textarea, .fbA-card textarea {
  font: 400 16px var(--f-display); color: var(--ink); background: #fff; border: 1px solid var(--sand-dark); border-radius: 4px; padding: 10px;
}
.fb-field select { min-height: 44px; }
.fb-count { align-self: flex-end; font-family: var(--f-mono); }
.fb-files { display: flex; flex-wrap: wrap; gap: 8px; }
.fb-file { position: relative; margin: 0; width: 96px; }
.fb-file img, .fb-file-video { width: 96px; height: 72px; object-fit: cover; border-radius: 4px; background: var(--sand-light); display: grid; place-items: center; font-size: 28px; }
.fb-file figcaption { font: 11px var(--f-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-file button {
  position: absolute; top: -8px; right: -8px; width: 28px; height: 28px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--ink); color: var(--salt); font-size: 12px;
}
.fb-add-file {
  align-self: flex-start; border: 2px dashed var(--sand-dark); border-radius: 4px; padding: 0 14px; min-height: 44px;
  display: inline-flex; align-items: center; cursor: pointer; font-weight: 700;
}
.fb-ctx summary { cursor: pointer; font-size: 14px; color: var(--ink-soft); }
.fb-ctx pre { font: 12px var(--f-mono); background: var(--salt); padding: 10px; border-radius: 4px; overflow-x: auto; max-height: 200px; }
.fb-msg { min-height: 1.2em; font-size: 15px; }
.fb-msg.bad { color: var(--kite-text); font-weight: 700; }
.fb-send { border: 0; cursor: pointer; }
.fb-send:disabled { opacity: .6; cursor: wait; }

.fb-empty { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; padding-block: 8px; }
.fb-loading { font-family: var(--f-mono); color: var(--ink-soft); }
.fb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.fb-list li { background: var(--salt); border: 1px solid var(--sand-line); border-radius: 6px; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.fb-list li.unread { border-color: var(--kite); box-shadow: inset 4px 0 0 var(--kite); }
.fb-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: 14px; flex-wrap: wrap; }
.fb-text { white-space: pre-line; }
.fb-reply { border-left: 3px solid var(--lagoon); padding-left: 10px; font-size: 15px; white-space: pre-line; }
.fb-quote { font-size: 13px; color: var(--ink-soft); font-style: italic; }
.fb-status { font: 12px var(--f-mono); text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--sand-light); }
.fb-status--planned { background: var(--shallows); }
.fb-status--live { background: var(--palm); color: var(--salt); }
.fb-status--vault { background: var(--sand); }
.fb-status--no { background: var(--sand-line); }
.fb-xp-plus { font: 700 14px var(--f-mono); color: var(--kite-text); }
.fb-toast {
  position: sticky; bottom: 12px; margin: 0 20px 12px; background: var(--ink); color: var(--salt); padding: 12px 16px;
  border-radius: 4px; font-weight: 700;
}

@media (max-width: 560px) {
  .fb-kinds { grid-template-columns: 1fr; }
  .fb-kind { flex-direction: row; align-items: center; gap: 10px; }
  .fb-kind small { display: none; }
  .fb-fab { bottom: 12px; right: 12px; }
}

/* ---------- Admin: Feedback ---------- */
.fbA-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.fbA-filters button {
  font: 700 14px var(--f-display); border: 2px solid var(--sand-line); background: var(--salt); color: var(--ink);
  border-radius: 999px; padding: 0 14px; min-height: 40px; cursor: pointer;
}
.fbA-filters button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--salt); }
.fbA-list { display: flex; flex-direction: column; gap: 16px; }
.fbA-card { background: var(--paper); border: 1px solid var(--sand-line); border-radius: 6px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.fbA-card h3 { margin: 0; font-size: 19px; }
.fbA-meta { font: 13px var(--f-mono); color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.fbA-label { font: 12px var(--f-mono); text-transform: uppercase; color: var(--deep-water); margin-bottom: 2px; }
.fbA-orig { white-space: pre-line; background: var(--salt); padding: 10px; border-radius: 4px; }
.fbA-rec { display: inline-block; font: 700 12px var(--f-mono); padding: 3px 10px; border-radius: 999px; color: var(--ink); }
.fbA-media { display: flex; flex-wrap: wrap; gap: 8px; }
.fbA-media img { width: 160px; height: 110px; object-fit: cover; border-radius: 4px; border: 1px solid var(--sand-line); }
.fbA-media a { font-size: 14px; }
.fbA-card ol { margin: 0; padding-left: 20px; }
.fbA-card details pre { font: 12px var(--f-mono); background: var(--salt); padding: 10px; overflow-x: auto; }
.fbA-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.fbA-actions button {
  font: 700 15px var(--f-display); border: 2px solid transparent; border-radius: 4px; padding: 0 16px; min-height: 44px; cursor: pointer; color: var(--ink);
}
.fbA-actions .approve { background: #3fae6a; }
.fbA-actions .vault { background: var(--shallows); }
.fbA-actions .reject { background: #e28b7b; }
.fbA-actions .neutral { background: var(--sand-light); border-color: var(--sand-line); }
.fbA-actions .suggested { border-color: var(--ink); box-shadow: 0 0 0 2px var(--kite); }
.fbA-note { font-size: 14px; background: var(--sand-light); padding: 8px 10px; border-radius: 4px; white-space: pre-line; }
