/* Feedback-Hub (/feedback…, Cockpit-Reiter "Feedback", Glocke in der Kopfzeile).
   Nur Tokens aus site.css (Hell/Dunkel automatisch). Mobil: eine Spalte, Team-Leiste unter dem Thema. */

/* --- Allgemein ---------------------------------------------------------------------------------- */
.back-link { display: inline-flex; margin-bottom: 18px; color: var(--muted); font-size: 14px; }
.back-link:hover { color: var(--text); }
.back-link .icon.flip { transform: rotate(180deg); }
.back-link:hover .icon.flip { transform: rotate(180deg) translateX(3px); }
.grow { flex: 1 1 auto; min-width: 0; }
.fb-label {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px;
  background: var(--surface-3); color: var(--text-2); font-size: 12px; font-weight: 600; text-decoration: none;
}
a.fb-label:hover { background: var(--accent-soft); color: var(--accent-text); }
.fb-author { display: inline-flex; align-items: center; gap: 6px; }
.fb-author-name { font-weight: 650; color: var(--text); text-decoration: none; }
.fb-author-name:hover { color: var(--accent-text); text-decoration: underline; }
.fb-deleted-user { font-style: italic; }
.fb-team { height: 20px; font-size: 11px; }
.fb-mention { color: var(--accent-text); font-weight: 650; text-decoration: none; }
.fb-mention:hover { text-decoration: underline; }

/* --- Übersicht ------------------------------------------------------------------------------------ */
.fb-search { display: flex; gap: 10px; margin-bottom: 20px; }
.fb-results { margin-bottom: 24px; }
.fb-areas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.fb-areas .skeleton-block { height: 150px; }
.fb-area { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: inherit; }
.fb-area-icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius);
  background: var(--accent-soft); color: var(--accent-text);
}
.fb-area-icon .icon { width: 22px; height: 22px; }
.fb-area-bug .fb-area-icon { background: var(--bad-soft); color: var(--bad); }
.fb-area-idea .fb-area-icon { background: var(--warn-soft); color: var(--warn); }
.fb-area-help .fb-area-icon { background: var(--info-soft); color: var(--info); }
.fb-area-title { font: 700 19px/1.2 var(--font-body); margin: 0 0 4px; color: var(--text); }
.fb-area-body p { margin: 0; }
.fb-area-stats { margin-top: 10px !important; font-size: 14px; color: var(--text-2); }
.fb-home-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; align-items: start; }
.fb-home-grid .card + .card { margin-top: 0; }
.fb-note { margin-top: 24px; }

/* --- Liste ---------------------------------------------------------------------------------------- */
.fb-area-tabs { margin-bottom: 16px; }
.fb-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.fb-filters .fb-q { flex: 1 1 260px; }
.fb-filters select { width: auto; flex: 0 1 200px; }
.fb-active-label { margin: 0 0 12px; }
.fb-list-card { padding: 0; overflow: hidden; }
.fb-row {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 14px 16px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background-color .12s;
}
.fb-row:last-child { border-bottom: 0; }
.fb-row:hover { background: var(--surface-2); }
.fb-row.is-pinned { background: color-mix(in srgb, var(--accent-soft) 55%, transparent); }
.fb-row.is-deleted { opacity: .6; }
.fb-row-icon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--surface-3);
  color: var(--muted); justify-self: center;
}
.fb-row-icon .icon { width: 20px; height: 20px; }
.fb-row-votes {
  display: grid; justify-items: center; gap: 2px; width: 48px; padding: 6px 0; border-radius: 10px;
  border: 1px solid var(--border-strong); color: var(--text-2); font-size: 15px;
}
.fb-row-votes .icon { width: 16px; height: 16px; }
.fb-row-votes.is-voted { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-text); }
.fb-row-head { display: flex; align-items: center; gap: 6px; min-width: 0; }
.fb-row-head .icon { width: 15px; height: 15px; color: var(--muted); }
.fb-row-title {
  font-weight: 650; font-size: 16px; color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap;
}
.fb-row-title:hover { color: var(--accent-text); }
.fb-row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; color: var(--muted); }
.fb-row-by { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.fb-row-by .fb-author-name { font-weight: 600; color: var(--text-2); }
.fb-row-replies { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.fb-row-replies .icon { width: 16px; height: 16px; }
.fb-pages { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 20px 0 0; }
.fb-pages:empty { display: none; }
.fb-gap { align-self: center; color: var(--muted); padding: 0 4px; }

/* --- Thema ---------------------------------------------------------------------------------------- */
.fb-thread-head { margin-bottom: 18px; }
.fb-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.fb-thread-title { font-size: clamp(24px, 3.4vw, 34px); line-height: 1.2; margin: 0 0 8px; overflow-wrap: anywhere; }
.fb-thread-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; }
.fb-notices { display: grid; gap: 10px; margin-bottom: 18px; }
.fb-notices:empty { display: none; }
.fb-notices .notice p { margin: 0; }
.fb-thread-layout { display: grid; gap: 20px; }
.fb-thread-layout.has-side { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
.fb-thread-main { min-width: 0; display: grid; gap: 16px; }
.fb-thread-main > .card + .card { margin-top: 0; }
.fb-post-row { display: flex; gap: 18px; align-items: flex-start; }
.fb-post-body { flex: 1; min-width: 0; }
.fb-vote { display: grid; justify-items: center; gap: 4px; flex: none; }
.fb-vote-btn {
  display: grid; justify-items: center; gap: 2px; width: 62px; padding: 10px 0; border-radius: var(--radius);
  border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); cursor: pointer;
  font: 700 18px var(--font-body); transition: background-color .15s, border-color .15s, transform .1s;
}
.fb-vote-btn .icon { width: 20px; height: 20px; }
.fb-vote-btn:hover { border-color: var(--accent-line); }
.fb-vote-btn:active { transform: scale(.97); }
.fb-vote-btn.is-voted { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.fb-vote-label { font-size: 12px; color: var(--muted); }

.fb-prose { font-size: 16px; line-height: 1.7; color: var(--text-2); overflow-wrap: anywhere; }
.fb-prose > :first-child { margin-top: 0; }
.fb-prose > :last-child { margin-bottom: 0; }
.fb-prose p { margin: 0 0 .9em; }
.fb-prose strong { color: var(--text); }
.fb-prose h3, .fb-prose h4 { color: var(--text); font-family: var(--font-body); margin: 1.2em 0 .4em; }
.fb-prose ul, .fb-prose ol { margin: 0 0 .9em; padding-left: 1.4em; }
.fb-prose li::marker { color: var(--accent); }
.fb-prose a { color: var(--accent-text); }
.fb-prose code { font-family: var(--font-mono); font-size: .9em; padding: 1px 6px; border-radius: 6px; background: var(--surface-3); }
.fb-prose blockquote {
  margin: 0 0 .9em; padding: 8px 14px; border-left: 3px solid var(--accent-line); background: var(--surface-2);
  border-radius: 0 var(--radius-s) var(--radius-s) 0; color: var(--muted);
}
.fb-figure { margin: 0 0 .9em; }
.fb-figure img { display: block; max-width: 100%; max-height: 520px; border-radius: var(--radius-s); border: 1px solid var(--border); }
.fb-figure figcaption { font-size: 13px; color: var(--muted); margin-top: 4px; }

.fb-facts {
  display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 18px 0 0;
  padding: 14px 16px; border-radius: var(--radius); background: var(--surface-2); font-size: 14px;
}
.fb-facts dt { color: var(--muted); }
.fb-facts dd { margin: 0; color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.fb-detail-section { margin-top: 18px; }
.fb-detail-title { font: 700 13px var(--font-body); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 6px; }
.fb-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.fb-actions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 14px; }
.fb-actions .btn.is-on { color: var(--accent-text); }
.fb-response { border-color: var(--accent-line); }
.fb-response .card-title { display: flex; align-items: center; gap: 8px; color: var(--accent-text); margin: 0 0 4px; }
.fb-response .small { margin: 0 0 10px; }

.fb-replies-title { font-size: 19px; margin: 8px 0 12px; }
.fb-reply-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.fb-reply-list > .card + .card { margin-top: 0; }
.fb-reply { padding: 16px 18px; scroll-margin-top: calc(var(--header-h) + 16px); }
.fb-reply.is-team { border-left: 3px solid var(--accent); }
.fb-reply.is-deleted { background: transparent; border-style: dashed; }
.fb-reply-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0 0 8px; font-size: 14px; }
.fb-removed { margin: 0; font-style: italic; }
.fb-reply:target { box-shadow: var(--glow); }
.fb-event {
  display: flex; align-items: center; gap: 10px; padding: 4px 6px 4px 14px; color: var(--muted); font-size: 14px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.fb-event > .icon { width: 16px; height: 16px; flex: none; }
.fb-event span { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.fb-reply-box .card-title { margin: 0 0 12px; }

/* Team-Leiste */
.fb-team-tools { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 4px; }
.fb-team-tools .card-title { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
.fb-tool-group { padding: 12px 0; border-top: 1px solid var(--border); }
.fb-tool-group .field { margin-bottom: 10px; }
.fb-tool-group .field .label { font-size: 13px; }
.fb-tool-title { font: 700 13px var(--font-body); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 10px; }
.fb-tool-group .row { margin-bottom: 10px; }
.fb-inline { display: flex; gap: 8px; }
.fb-inline > select, .fb-inline > input { flex: 1; min-width: 0; }
.fb-tool-group .hint { margin-top: 10px; }

/* --- Editor --------------------------------------------------------------------------------------- */
.fb-editor { display: grid; gap: 6px; }
.fb-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.fb-tool { min-width: 32px; }
.fb-tool-B { font-weight: 800; }
.fb-tool-I { font-style: italic; font-family: Georgia, serif; }
.fb-tool-img { font-size: 13px; font-weight: 650; }
.fb-preview { min-height: 96px; padding: 10px 12px; border: 1px dashed var(--border-strong); border-radius: 10px; background: var(--bg-2); }
.fb-editor-foot { display: flex; align-items: center; gap: 10px; }

/* --- Neues Thema ---------------------------------------------------------------------------------- */
.fb-types { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.fb-types legend { margin-bottom: 8px; padding: 0; }
.fb-type-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.fb-type {
  position: relative; display: grid; justify-items: start; gap: 8px; padding: 14px; border-radius: var(--radius);
  border: 1px solid var(--border-strong); background: var(--surface-2); cursor: pointer; transition: border-color .15s, background-color .15s;
}
.fb-type input { position: absolute; opacity: 0; pointer-events: none; }
.fb-type:hover { border-color: color-mix(in srgb, var(--text) 25%, transparent); }
.fb-type:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.fb-type:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.fb-type-icon { color: var(--accent-text); }
.fb-type-icon .icon { width: 22px; height: 22px; }
.fb-type-text { display: grid; gap: 2px; }
.fb-type-text span { font-size: 13px; color: var(--muted); }
.fb-bug-fields { padding: 16px; margin-bottom: 16px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); }
.fb-prefilled { margin: -6px 0 14px; color: var(--ok); }
.fb-similar { margin: -6px 0 16px; padding: 10px 12px; border-radius: var(--radius); border: 1px solid var(--warn-soft); background: var(--warn-soft); }
.fb-similar .label { margin: 0 0 4px; }
.fb-similar .fb-row { padding: 8px 4px; grid-template-columns: 40px minmax(0, 1fr) auto; background: transparent; }

/* --- Mein Feedback -------------------------------------------------------------------------------- */
.tabs + .fb-mine-panel { margin-top: 16px; }
.fb-notes .fb-note-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--border); }
.fb-notes .fb-note-item:last-child { border-bottom: 0; }
.fb-note-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-3); color: var(--muted); flex: none; }
.fb-note-icon .icon { width: 17px; height: 17px; }
.fb-note-item.is-unread .fb-note-icon { background: var(--accent-soft); color: var(--accent-text); }
.fb-note-text { flex: 1; min-width: 0; }
.fb-note-text a { font-weight: 650; color: var(--text); text-decoration: none; }
.fb-note-text a:hover { color: var(--accent-text); }
.fb-note-text p { margin: 2px 0 0; }
.fb-note-thread { color: var(--text-2); }
.fb-note-item .dot { margin-top: 12px; }

/* --- Cockpit -------------------------------------------------------------------------------------- */
.fb-admin-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.fb-admin-title { font-weight: 650; color: var(--text); text-decoration: none; }
.fb-admin-title:hover { color: var(--accent-text); }
.fb-admin-table .fb-row-meta { margin-top: 4px; }
.fb-admin-table tr.is-deleted { opacity: .6; }
.fb-admin-table select { min-width: 150px; min-height: 34px; padding-top: 4px; padding-bottom: 4px; }

/* --- Schmal ----------------------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .fb-thread-layout.has-side { grid-template-columns: minmax(0, 1fr); }
  .fb-team-tools { position: static; }
}
@media (max-width: 900px) {
  .fb-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fb-home-grid { grid-template-columns: minmax(0, 1fr); }
  .fb-home-grid .card + .card { margin-top: 0; }
  .fb-type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .fb-areas { grid-template-columns: minmax(0, 1fr); }
  .fb-search { flex-direction: column; }
  .fb-filters select { flex: 1 1 calc(50% - 10px); }
  .fb-row { grid-template-columns: 44px minmax(0, 1fr); gap: 10px; padding: 12px; }
  .fb-row-votes { width: 42px; }
  .fb-row-icon { width: 34px; height: 34px; }
  .fb-row-replies { grid-column: 2; justify-self: start; font-size: 13px; }
  .fb-row-title { white-space: normal; }
  .fb-post-row { flex-direction: column; gap: 12px; }
  .fb-vote { grid-auto-flow: column; align-items: center; gap: 10px; }
  .fb-vote-btn { grid-auto-flow: column; width: auto; padding: 6px 14px; gap: 8px; align-items: center; }
  .fb-pair { grid-template-columns: minmax(0, 1fr); }
  .fb-facts { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .fb-facts dd { margin-bottom: 6px; }
  .fb-reply { padding: 14px; }
  .fb-bug-fields { padding: 12px; }
  .fb-bell-count { right: -2px; }
}

/* Raster: Karten nebeneinander ohne den Abstand von ".card + .card" (site.css) */
.fb-areas .card + .card, .fb-thread-layout > .card + .card { margin-top: 0; }
.fb-bug-fields .form-grid { align-items: start; }
.fb-bug-fields .field, .fb-tool-group .field { align-content: start; }
