/* "Reportar un problema" (report.js) y la sección Ayuda (help.js en /app, tati.js en /tati). */
.rp-form { display: grid; gap: 10px; }
.rp-order { margin: 0; font-weight: 700; }
.rp-reasons { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.rp-reasons legend { font-weight: 800; font-size: 17px; margin-bottom: 8px; padding: 0; }
.rp-reason {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px; border-radius: 14px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--surface); font-weight: 600;
}
.rp-reason input { width: 20px; height: 20px; accent-color: var(--tatigo-red); flex: none; }
.rp-reason.active { border-color: var(--tatigo-red); background: var(--brand-soft); }
.rp-count { justify-self: end; margin-top: -6px; }
.rp-photos-head { margin-top: 4px; }
.rp-photos { display: flex; gap: 10px; flex-wrap: wrap; }
.rp-thumb, .rp-add { position: relative; width: 84px; height: 84px; border-radius: 14px; overflow: hidden; flex: none; }
.rp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rp-thumb button {
  position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgb(0 0 0 / .55); color: #fff; cursor: pointer;
}
.rp-thumb button .ph-i { width: 16px; height: 16px; }
.rp-add {
  display: grid; place-content: center; justify-items: center; gap: 4px; border: 1.5px dashed var(--line-strong); background: var(--surface-2);
  color: var(--muted); font: 700 12px var(--font); cursor: pointer;
}
.rp-attach { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); color: var(--text); }
.rp-attach .ph-i { width: 18px; height: 18px; flex: none; color: var(--tatigo-red); }
.rp-error { margin: 0; color: var(--danger); font-weight: 700; }

.rp-sent-top { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.rp-sent-top strong { display: block; font-size: 18px; margin-bottom: 4px; }
.rp-status {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 800;
  background: var(--warn-soft); color: var(--warn); white-space: nowrap;
}
.rp-status .ph-i { width: 14px; height: 14px; }
.rp-status.is-resolved { background: var(--ok-soft); color: var(--ok); }
.rp-reply { display: flex; gap: 10px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--brand-soft); }
.rp-reply .ph-i { width: 20px; height: 20px; flex: none; color: var(--tatigo-red); }
:root[data-theme="dark"] .rp-reply .ph-i { color: #fff; }
.rp-reply p { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.rp-item .card-row { gap: 8px; }

/* Botón "Reportar un problema" en el pedido y "Reporte enviado" */
.rp-open { margin-top: 10px; }
.rp-done { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-weight: 700; font-size: 14px; }

/* ---------- Ayuda ---------- */
.help-faq { display: grid; gap: 8px; }
.help-faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.help-faq summary {
  list-style: none; display: flex; align-items: center; gap: 10px; padding: 14px; font-weight: 700; cursor: pointer;
}
.help-faq summary::-webkit-details-marker { display: none; }
.help-faq summary .e3d { width: 28px; height: 28px; flex: none; }
.help-faq summary .chev { margin-left: auto; transition: transform .2s; color: var(--muted); display: grid; }
.help-faq details[open] summary .chev { transform: rotate(90deg); }
.help-faq details p { margin: 0; padding: 0 14px 14px 52px; color: var(--text); font-size: 14.5px; line-height: 1.45; }
.help-soon { margin-left: 6px; padding: 2px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-text); font-size: 11.5px; font-weight: 800; }
.help-orders { display: grid; gap: 8px; }
.help-order { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: inherit; text-decoration: none; }
.help-order .txt { flex: 1; min-width: 0; }
.help-order strong, .help-order .txt > span { display: block; }
.help-wa { display: flex; align-items: center; justify-content: center; gap: 8px; }
.help-legal { display: flex; flex-wrap: wrap; gap: 8px; }
@media (prefers-reduced-motion: reduce) { .help-faq summary .chev { transition: none; } }

/* ---------- Notificaciones (pantalla propia) ---------- */
.nt-perm { display: flex; gap: 12px; align-items: flex-start; }
.nt-perm .e3d { width: 48px; height: 48px; flex: none; }
.nt-perm strong { display: block; font-size: 16px; }
.nt-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.nt-row:last-child { border-bottom: 0; }
.nt-row .txt { flex: 1; min-width: 0; }
.nt-row strong { display: block; }
/* Fila "Ayuda" en Cuenta del Tati (en /app ya existe .st-menu-row) */
.help-row { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.help-row .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--tatigo-red); flex: none; }
:root[data-theme="dark"] .help-row .ico { color: #fff; }
.help-row .txt { flex: 1; min-width: 0; }
.help-row .txt strong { display: block; }
.help-row .chev { color: var(--muted); display: grid; }
