/* Widgets globales (botón "Reportar un problema", login con Google).
   Archivo aparte para no chocar con styles.css. */
.fb-fab {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 40; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border: 2px solid #e5e7eb; border-radius: 999px;
  background: #fff; color: #374151; font: 600 14px/1 inherit; font-family: inherit;
  box-shadow: 0 4px 0 #e5e7eb, 0 8px 20px rgba(0,0,0,.08); cursor: pointer;
}
.fb-fab:hover { border-color: #1cb0f6; color: #1899d6; }
.fb-fab:active { transform: translateY(2px); box-shadow: 0 2px 0 #e5e7eb; }
@media (max-width: 860px) {
  .fb-fab { bottom: calc(76px + env(safe-area-inset-bottom)); padding: 10px; }
  .fb-fab span { display: none; }
}
body.in-session .fb-fab { opacity: .75; }
@media (max-width: 860px) { body.in-session .fb-fab { bottom: calc(84px + env(safe-area-inset-bottom)); } }
.fb-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.fb-cat { padding: 8px 12px; border: 2px solid #e5e7eb; border-radius: 12px; background: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.fb-cat[aria-checked="true"] { border-color: #1cb0f6; background: #ddf4ff; color: #1899d6; }
.fb-text, .fb-email { width: 100%; box-sizing: border-box; margin-bottom: 10px; }
.fb-email { padding: 10px 12px; border: 2px solid #e5e7eb; border-radius: 12px; font: inherit; }
.fb-item { padding: 12px 0; border-bottom: 1px solid #e5e7eb; }
.fb-item:last-child { border-bottom: 0; }
.fb-item.done { opacity: .55; }
.fb-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn-google { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #fff; color: #1f2937; border: 2px solid #e5e7eb; }
.btn-google svg { flex: none; }
.link-btn { background: none; border: 0; padding: 6px 0; color: #1899d6; font: inherit; font-size: 14px; cursor: pointer; text-decoration: underline; width: 100%; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .fb-fab, :root:not([data-theme="light"]) .fb-cat { background: #1f2937; color: #e5e7eb; border-color: #374151; }
}
.btn-google.btn-block { box-sizing: border-box; max-width: 100%; }
/* Respuesta rápida en la corrección */
.ex-quick { margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; background: #fff8db; border: 2px solid #ffe08a; color: #3f3a1e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ex-quick { background: #3a3315; border-color: #6b5a14; color: #f5ecc4; } }
:root[data-theme="dark"] .ex-quick { background: #3a3315; border-color: #6b5a14; color: #f5ecc4; }
/* Ventana de confirmación propia (askConfirm) */
.confirm-dialog { max-width: 420px; }
.confirm-msg { font-size: 17px; font-weight: 600; margin: 4px 0 18px; }
.confirm-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.confirm-actions .btn { min-width: 110px; }
.btn-danger { background: #ff4b4b; color: #fff; border-color: #ea2b2b; box-shadow: 0 4px 0 #ea2b2b; }
/* Cerrar el navegador de preguntas */
.navigator { position: relative; }
.nav-close { position: absolute; top: 6px; right: 6px; }
/* En una sesión en móvil, el botón de reportar sube por encima de la barra inferior */
@media (max-width: 860px) { html body.in-session .fb-fab { top: 70px; bottom: auto; right: 12px; } }
