/* zgłoszenia uwag i pomysłów: okno użytkownika i panel roota */

/* badge z liczbą nowych zgłoszeń przy zębatce */
.tb-badged { position:relative; }
.tb-badge { position:absolute; top:-2px; right:-2px; min-width:17px; height:17px; padding:0 4px; border-radius:9px; background:#f59e0b; color:#111827; font-size:.65rem; font-weight:700; line-height:17px; text-align:center; pointer-events:none; }
.nbadge { background:#f59e0b; color:#111827 !important; font-weight:700 !important; padding:0 7px; border-radius:9px; margin-left:8px !important; opacity:1 !important; }

/* okno zgłoszenia */
.fbpills { display:flex; flex-wrap:wrap; gap:8px; }
.fbpill { position:relative; cursor:pointer; }
.fbpill input { position:absolute; opacity:0; width:0; height:0; }
.fbpill span { display:inline-block; padding:6px 14px; border-radius:18px; background:var(--col); color:var(--text); box-shadow:inset 0 0 0 1px var(--line); font-size:.88rem; }
.fbpill:hover span { background:var(--line); }
.fbpill input:checked + span { background:var(--bp-p); color:var(--on-bp); box-shadow:none; font-weight:600; }
.fbpill input:focus-visible + span { outline:2px solid var(--accent); outline-offset:2px; }
.fbmsg { min-height:1.2em; font-size:.88rem; }
.fbmsg:empty { display:none; }
.fbmsg.ok { color:#22a06b; }
.fbmsg.err { color:var(--danger); }
.fbmine { display:flex; flex-direction:column; gap:8px; max-height:210px; overflow:auto; }
.fbrow { display:flex; flex-direction:column; gap:2px; padding:8px 10px; background:var(--col); border-radius:8px; }
.fbtop { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.fbtitle { flex:1; min-width:0; overflow-wrap:anywhere; }

/* statusy i kategorie */
.fbstatus { font-size:.72rem; font-weight:600; padding:2px 9px; border-radius:10px; background:var(--col); color:var(--muted); box-shadow:inset 0 0 0 1px var(--line); white-space:nowrap; }
.fbstatus.new { background:#f59e0b33; color:#b86e00; box-shadow:none; }
.fbstatus.selected { background:#3b82f633; color:#2563eb; box-shadow:none; }
.fbstatus.done { background:#22a06b33; color:#16805a; box-shadow:none; }
.fbstatus.rejected { background:#ef444433; color:#c9372c; box-shadow:none; }
html[style*="color-scheme: dark"] .fbstatus.new { color:#fbbf24; }
html[style*="color-scheme: dark"] .fbstatus.selected { color:#7cb7ff; }
html[style*="color-scheme: dark"] .fbstatus.done { color:#4ade80; }
html[style*="color-scheme: dark"] .fbstatus.rejected { color:#f87171; }
.fbcat { font-size:.72rem; font-weight:600; padding:2px 9px; border-radius:10px; background:var(--col); color:var(--text); box-shadow:inset 0 0 0 1px var(--line); white-space:nowrap; }
.fbcat.bug { box-shadow:inset 0 0 0 1px #ef4444; }
.fbcat.feature { box-shadow:inset 0 0 0 1px #3b82f6; }
.fbcat.ui { box-shadow:inset 0 0 0 1px #8b5cf6; }

/* panel roota */
.fbpage { max-width:980px; }
.fbpage .uh { margin-bottom:6px; }
.fbbar { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:0 0 10px; }
.fbfilter { width:auto; padding:6px 8px; }
.fbcount { color:var(--muted); font-size:.85rem; margin-left:4px; }
.fblist { display:flex; flex-direction:column; gap:10px; margin-top:6px; }
.fbcard { display:flex; align-items:flex-start; gap:12px; padding:12px 14px; background:var(--col); border-radius:10px; box-shadow:inset 0 0 0 1px var(--line); }
.fbcard.sel { box-shadow:inset 0 0 0 2px var(--accent); }
.fbcard > input[type=checkbox] { width:18px; height:18px; margin-top:3px; flex:0 0 auto; cursor:pointer; }
.fbmain { flex:1; min-width:0; display:flex; flex-direction:column; gap:6px; }
.fbdesc { white-space:pre-wrap; overflow-wrap:anywhere; }
.fbmeta { margin:0; overflow-wrap:anywhere; }
.fbside { display:flex; align-items:center; gap:4px; flex:0 0 auto; }
.fbst { width:auto; padding:5px 8px; }

@media (max-width: 700px), (max-height: 520px) and (pointer: coarse) {
  .fbcard { flex-wrap:wrap; }
  .fbside { width:100%; justify-content:flex-end; }
}

/* zrzut ekranu zgłoszenia: wybór, miniatura i podgląd */
.fbshot { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.fbthumb { max-width:220px; max-height:140px; border-radius:8px; border:1px solid var(--line); object-fit:contain; background:var(--inbg-p); }
.fbthumb.click { cursor:zoom-in; align-self:flex-start; }
.shotdlg .mbody { align-items:center; }
.shotfull { max-width:100%; max-height:70vh; object-fit:contain; border-radius:8px; border:1px solid var(--line); }
.btnlink { margin-right:auto; align-self:center; color:var(--accent); font-size:.9rem; }
dialog.modal.shotdlg { width:min(1100px, 96vw); }
