.fb { color: var(--text, #17212b); font: 14px/1.55 Inter, sans-serif; min-width: 0; }
.fb *, .fb *::before, .fb *::after { box-sizing: border-box; }
.fb [hidden] { display: none !important; }
.fb h1, .fb h2, .fb p { margin: 0 0 12px; }
.fb h1 { font-size: clamp(22px, 3vw, 30px); line-height: 1.25; overflow-wrap: anywhere; }
.fb h2 { font-size: 19px; }
.fb h3 { overflow-wrap: anywhere; }
.fb a { color: var(--blue-deep, #124fb2); text-underline-offset: 3px; }
.fb small, .fb-caption { color: var(--muted, #64717f); }
.fb small { display: block; font-size: 12px; }
.fb button, .fb input, .fb select, .fb textarea { font: inherit; color: inherit; background: var(--surface, #fff); border: 1px solid var(--border, #d9e1e8); border-radius: 9px; min-height: 44px; padding: 10px 12px; max-width: 100%; }
.fb input::placeholder, .fb textarea::placeholder { color: var(--muted, #64717f); opacity: 1; }
.fb button { cursor: pointer; font-weight: 600; }
.fb button:hover { background: var(--surface-muted, #f6f8fa); }
.fb button:disabled { cursor: default; opacity: .55; }
.fb .fb-primary { color: #fff; background: #245fc3; border-color: #245fc3; }
.fb .fb-primary:hover { background: #164ca8; }
.fb .fb-danger, .fb-error { color: #b42318; }
.fb :focus-visible { outline: 3px solid #5b8dee; outline-offset: 3px; }
.fb-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 20px; }
.fb-actions, .fb-tags, .fb-environments { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.fb-eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.fb-home { border: 1px solid var(--border); background: var(--surface); border-radius: 16px; padding: 24px; margin-bottom: 24px; }
.fb-counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.fb-counts a { padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-muted); color: inherit; text-decoration: none; }
.fb-counts strong { display: block; font-size: 28px; line-height: 1.3; }
.fb-counts span { font-size: 12px; }
.fb-environments { margin-bottom: 18px; }
.fb-environments a { border: 1px solid var(--border); border-radius: 20px; padding: 7px 12px; text-decoration: none; }
.fb-list { border: 1px solid var(--border); background: var(--surface); border-radius: 12px; overflow: hidden; }
.fb a.fb-ticket { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; text-decoration: none; color: inherit; border-bottom: 1px solid var(--border); }
.fb-ticket:last-child { border-bottom: 0; }
.fb-ticket:hover { background: var(--surface-muted); }
.fb-ticket-main { min-width: 0; overflow-wrap: anywhere; }
.fb-ticket-tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; justify-content: flex-end; max-width: 50%; }
.fb-tag { font-size: 12px; background: var(--surface-muted); border: 1px solid var(--border); border-radius: 20px; padding: 3px 9px; white-space: nowrap; }
.fb-status-awaiting_user { border-color: #ac751c; }
.fb-status-in_progress { border-color: #4a76c4; }
.fb-status-resolved { border-color: #359563; }
.fb-empty { padding: 24px; text-align: center; color: var(--muted); }
.fb-page { max-width: 1240px; margin: auto; padding: 32px; }
/* A página usa a mesma superfície dos seus tokens; o canvas global permanece
   claro mesmo quando o Feedback acompanha a preferência escura do sistema. */
.fb-page > .fb { background: var(--surface, #fff); }
.fb-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px; margin: 20px 0; }
.fb label { display: grid; gap: 6px; font-weight: 500; min-width: 0; margin-bottom: 14px; }
.fb label input, .fb label select, .fb label textarea { width: 100%; min-width: 0; }
.fb textarea { resize: vertical; }
.fb-fields, .fb-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.fb-filters { border: 1px solid var(--border); background: var(--surface); border-radius: 14px; padding: 20px; margin-bottom: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fb-filters label { margin-bottom: 0; }
.fb-filters > button { align-self: end; }
.fb .fb-check { display: flex; align-items: center; gap: 10px; }
.fb-check input { width: 20px !important; min-height: 20px; height: 20px; }
.fb-prose { white-space: pre-wrap; overflow-wrap: anywhere; margin: 16px 0 !important; }
.fb-event { padding: 18px 0; border-top: 1px solid var(--border); }
.fb-event header { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; }
.fb-event time { margin-left: auto; color: var(--muted); }
.fb-attachments { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 14px 0; }
.fb-attachments article { min-width: 0; display: grid; align-content: start; gap: 8px; border: 1px solid var(--border); border-radius: 10px; padding: 12px; overflow-wrap: anywhere; }
.fb-attachments img, .fb-attachments video { width: 100%; max-height: 220px; object-fit: contain; border-radius: 6px; }
.fb-pagination { justify-content: center; margin-top: 20px; }
.fb-dialog { width: min(740px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 26px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 16px 64px #0003; overflow: auto; }
.fb-dialog::backdrop { background: #07182a99; }
.fb-dialog .fb-list { max-height: 44vh; overflow: auto; margin-bottom: 18px; }
.fb-entry { position: fixed; right: 20px; bottom: 16px; z-index: 80; display: flex; gap: 8px; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 4px 20px #0002; }
@media (max-width: 780px) {
  .fb-page { padding: 20px 16px; }
  .fb-home, .fb-panel { padding: 18px; }
  .fb-filters, .fb-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fb-attachments { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fb a.fb-ticket { align-items: flex-start; flex-direction: column; gap: 8px; }
  .fb-ticket-tags { justify-content: flex-start; max-width: 100%; }
  .fb-dialog { padding: 20px; }
}
@media (max-width: 480px) {
  .fb-fields, .fb-filters, .fb-attachments { grid-template-columns: minmax(0, 1fr); }
  .fb-counts { gap: 7px; }
  .fb-counts a { padding: 12px 8px; }
  .fb-counts strong { font-size: 24px; }
  .fb-entry { right: 8px; bottom: 8px; gap: 4px; }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .fb { --surface: #19232f; --surface-muted: #222f3e; --border: #405064; --text: #edf2fa; --muted: #b2bfd0; --blue-deep: #97baff; }
  :root:not([data-theme="light"]) .fb-error, :root:not([data-theme="light"]) .fb .fb-danger { color: #ffaaa2; }
}
[data-theme="dark"] .fb { --surface: #19232f; --surface-muted: #222f3e; --border: #405064; --text: #edf2fa; --muted: #b2bfd0; --blue-deep: #97baff; }
[data-theme="dark"] .fb-error, [data-theme="dark"] .fb .fb-danger { color: #ffaaa2; }
