/* ==========================================================
   WEB APP HOTFIX — iPhone/PWA layout fixes
   Corrige: modales de login/perfil/publicar, comentarios,
   panel de categorías y barras en modo oscuro.
   ========================================================== */

/* Base: evita scroll horizontal causado por tarjetas, modales o nav inferior */
html, body {
  max-width: 100%;
  overflow-x: hidden !important;
}

body.wt-modal-open {
  overflow: hidden !important;
}

/* =========================
   AUTH / GOOGLE MODAL
   ========================= */
.auth-liquid-modal.modal-card,
.login-liquid-modal.modal-card,
.register-liquid-modal.modal-card,
.forgot-liquid-modal.modal-card {
  width: min(92vw, 430px) !important;
  max-height: min(88dvh, 680px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  border-radius: 32px !important;
  color-scheme: light !important;
}

.auth-liquid-modal .modal-body,
.login-liquid-modal .modal-body,
.register-liquid-modal .modal-body,
.forgot-liquid-modal .modal-body {
  display: grid !important;
  gap: 12px !important;
  padding: 8px 22px max(22px, env(safe-area-inset-bottom)) !important;
}

.auth-oauth-panel {
  display: grid !important;
  gap: 12px !important;
  width: 100% !important;
  margin: 0 0 6px !important;
}

.auth-google-btn {
  width: 100% !important;
  min-height: 56px !important;
  padding: 0 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  border-radius: 20px !important;
  line-height: 1.1 !important;
  overflow: hidden !important;
}

.auth-google-btn svg,
.auth-google-btn > svg {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  max-width: 28px !important;
  flex: 0 0 28px !important;
  display: block !important;
  transform: none !important;
}

.auth-google-btn span {
  display: inline-block !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  font-size: clamp(.92rem, 4vw, 1rem) !important;
}

.auth-divider {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
}

.auth-modern-form,
.auth-liquid-modal .form-grid {
  width: 100% !important;
  display: grid !important;
  gap: 12px !important;
}

.auth-modern-form label,
.auth-liquid-modal label {
  display: grid !important;
  gap: 7px !important;
  width: 100% !important;
}

.auth-liquid-modal input:not([type="checkbox"]),
.auth-liquid-modal .input {
  width: 100% !important;
  min-height: 54px !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.auth-liquid-modal .btn {
  width: 100% !important;
  min-height: 54px !important;
}

@media (max-width: 430px), (max-height: 760px) {
  .modal-backdrop:has(.auth-liquid-modal) {
    place-items: center !important;
    align-items: center !important;
    padding: max(12px, env(safe-area-inset-top)) 14px max(12px, env(safe-area-inset-bottom)) !important;
  }
  .auth-liquid-modal.modal-card,
  .login-liquid-modal.modal-card,
  .register-liquid-modal.modal-card,
  .forgot-liquid-modal.modal-card {
    margin: 0 !important;
    max-height: calc(100dvh - max(28px, env(safe-area-inset-top)) - max(28px, env(safe-area-inset-bottom))) !important;
  }
  .auth-liquid-modal .modal-head,
  .login-liquid-modal .modal-head,
  .register-liquid-modal .modal-head,
  .forgot-liquid-modal .modal-head {
    padding: 16px 18px 6px !important;
  }
  .auth-liquid-modal .modal-body,
  .login-liquid-modal .modal-body,
  .register-liquid-modal .modal-body,
  .forgot-liquid-modal .modal-body {
    padding: 6px 18px max(18px, env(safe-area-inset-bottom)) !important;
    gap: 10px !important;
  }
  .auth-liquid-modal .modal-head h2 {
    font-size: clamp(1.55rem, 8vw, 2rem) !important;
  }
}

/* =========================
   PERFIL / MI CUENTA
   ========================= */
.profile-settings-modal.modal-card,
.profile-settings-modal.account-settings-modal {
  width: min(92vw, 620px) !important;
  max-height: min(88dvh, 820px) !important;
  overflow: hidden !important;
  color-scheme: light !important;
}

.profile-settings-modal .modal-body {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  max-height: calc(min(88dvh, 820px) - 76px) !important;
  padding: 0 18px max(18px, env(safe-area-inset-bottom)) !important;
}

.profile-settings-modal .account-settings-form,
.profile-settings-modal .settings-edit-list,
.profile-settings-modal .settings-group,
.profile-settings-modal .settings-field {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.profile-settings-modal .settings-field {
  display: grid !important;
  gap: 8px !important;
  padding: 0 !important;
}

.profile-settings-modal input:not([type="checkbox"]),
.profile-settings-modal textarea,
.profile-settings-modal select,
.profile-settings-modal .input {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 54px !important;
  border-radius: 18px !important;
  padding: 12px 16px !important;
  box-sizing: border-box !important;
  opacity: 1 !important;
  color: #07152c !important;
  -webkit-text-fill-color: #07152c !important;
  background: rgba(255,255,255,.92) !important;
}

.profile-settings-modal textarea,
.profile-settings-modal textarea.input {
  min-height: 110px !important;
  height: auto !important;
  resize: vertical !important;
}

.profile-settings-modal .account-settings-actions {
  position: static !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  padding: 0 !important;
  background: transparent !important;
}

.profile-settings-modal .account-settings-actions .btn {
  width: 100% !important;
  min-height: 54px !important;
  border-radius: 18px !important;
}

@media (max-width: 430px) {
  .modal-backdrop:has(.profile-settings-modal) {
    place-items: center !important;
    align-items: center !important;
    padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom)) !important;
  }
  .profile-settings-modal.modal-card,
  .profile-settings-modal.account-settings-modal {
    width: calc(100vw - 20px) !important;
    max-height: calc(100dvh - max(24px, env(safe-area-inset-top)) - max(24px, env(safe-area-inset-bottom))) !important;
    border-radius: 28px !important;
  }
  .profile-settings-modal .modal-body {
    max-height: calc(100dvh - max(114px, calc(env(safe-area-inset-top) + 94px))) !important;
    padding-inline: 14px !important;
  }
}

/* =========================
   MODAL NUEVA PUBLICACIÓN
   ========================= */
.forum-create-backdrop.modal-backdrop {
  place-items: center !important;
  align-items: center !important;
  padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)) !important;
}

.forum-create-modal.modal-card,
.modal-card.forum-create-modal {
  width: min(94vw, 560px) !important;
  max-height: calc(100dvh - max(28px, env(safe-area-inset-top)) - max(28px, env(safe-area-inset-bottom))) !important;
  overflow: hidden !important;
  border-radius: 28px !important;
}

.forum-create-modal .modal-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 18px 20px 10px !important;
}

.forum-create-modal .modal-body {
  display: block !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  max-height: calc(100dvh - max(120px, calc(env(safe-area-inset-top) + 100px))) !important;
  padding: 0 !important;
}

.forum-post-form {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 14px !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 20px 18px !important;
  box-sizing: border-box !important;
}

.forum-create-top,
.forum-community-pill,
.forum-field,
.forum-image-field {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.forum-field {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  margin: 0 !important;
  align-items: stretch !important;
}

.forum-field > span,
.forum-field > small,
.forum-counter {
  display: block !important;
  position: static !important;
}

.forum-input,
.forum-post-form input:not([type="file"]),
.forum-post-form textarea,
.forum-post-form select {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 54px !important;
  display: block !important;
  box-sizing: border-box !important;
  border-radius: 18px !important;
  padding: 12px 16px !important;
  font-size: 1rem !important;
  line-height: 1.35 !important;
  color: var(--color-text, #07152c) !important;
  -webkit-text-fill-color: var(--color-text, #07152c) !important;
}

.forum-textarea,
.forum-post-form textarea {
  min-height: 132px !important;
  height: auto !important;
  resize: vertical !important;
}

.forum-upload-dropzone {
  display: grid !important;
  place-items: center !important;
  gap: 6px !important;
  width: 100% !important;
  min-height: 112px !important;
  padding: 14px !important;
  border-radius: 20px !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

.forum-file-input,
.forum-upload-dropzone input[type="file"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.forum-create-actions {
  position: sticky !important;
  bottom: 0 !important;
  z-index: 5 !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
  width: calc(100% + 40px) !important;
  margin: 4px -20px -18px !important;
  padding: 14px 20px max(16px, env(safe-area-inset-bottom)) !important;
  box-sizing: border-box !important;
}

.forum-create-actions .btn {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 54px !important;
  border-radius: 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

@media (max-width: 430px), (max-height: 760px) {
  .forum-create-modal .modal-head h2 {
    font-size: clamp(1.45rem, 7vw, 1.9rem) !important;
  }
  .forum-post-form { padding-inline: 16px !important; }
  .forum-create-actions {
    width: calc(100% + 32px) !important;
    margin-inline: -16px !important;
    padding-inline: 16px !important;
  }
}

/* =========================
   POST / COMENTARIOS
   ========================= */
body[data-page="post"] .reddit-detail-shell {
  overflow: visible !important;
}

body[data-page="post"] .reddit-comment-composer,
body[data-page="post"] .comment-box {
  width: calc(100% - 24px) !important;
  max-width: 680px !important;
  margin: 18px auto !important;
  padding: 16px !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

body[data-page="post"] .reddit-comment-composer .input,
body[data-page="post"] .comment-box .input,
body[data-page="post"] #commentBody {
  width: 100% !important;
  min-height: 76px !important;
  height: auto !important;
  max-height: 180px !important;
  resize: vertical !important;
  display: block !important;
  box-sizing: border-box !important;
  padding: 14px 16px !important;
  line-height: 1.45 !important;
}

body[data-page="post"] .comment-image-input {
  width: 100% !important;
  min-height: 50px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

body[data-page="post"] .comment-actions-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
  width: 100% !important;
  padding-top: 0 !important;
}

body[data-page="post"] .comment-actions-row .btn {
  width: 100% !important;
  min-height: 54px !important;
  border-radius: 999px !important;
  font-size: 1rem !important;
  font-weight: 900 !important;
}

body[data-page="post"] .comment-list,
body[data-page="post"] #commentsList {
  overflow: visible !important;
  padding: 0 10px max(90px, calc(env(safe-area-inset-bottom) + 80px)) !important;
}

body[data-page="post"] .reddit-comment,
body[data-page="post"] .comment-card {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 12px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

body[data-page="post"] .comment-replies {
  margin-left: 0 !important;
  padding-left: clamp(14px, calc(var(--depth, 0) * 10px), 28px) !important;
  border-left: 2px solid rgba(148,163,184,.22) !important;
}

body[data-page="post"] .reddit-comment .comment-thread-line,
body[data-page="post"] .comment-thread-line {
  display: none !important;
}

body[data-page="post"] .comment-head,
body[data-page="post"] .forum-author-trigger {
  min-width: 0 !important;
  max-width: 100% !important;
}

body[data-page="post"] .comment-actions,
body[data-page="post"] .reddit-actions.comment-actions {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding-bottom: 2px !important;
  scrollbar-width: none !important;
}
body[data-page="post"] .comment-actions::-webkit-scrollbar { display: none !important; }

body[data-page="post"] .comment-actions .reddit-action-pill {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}

/* =========================
   FORO: filtro / top / bottom sheet
   ========================= */
.forum-redesign-page .fa-filter-panel {
  z-index: 100001 !important;
}

.forum-redesign-page .fa-filter-panel__sheet {
  width: 100% !important;
  max-height: min(72dvh, 560px) !important;
  overflow-y: auto !important;
  padding: 12px 18px max(28px, calc(env(safe-area-inset-bottom) + 18px)) !important;
  box-sizing: border-box !important;
}

.forum-redesign-page .fa-filter-panel__chips {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.forum-redesign-page .fa-chip {
  width: 100% !important;
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.forum-redesign-page .fa-tabs-wrap,
.forum-redesign-page .fa-search-wrap,
.forum-redesign-page .fa-compose,
.forum-redesign-page .fa-posts,
.forum-redesign-page .fa-section-label {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.forum-redesign-page .fa-search-field {
  min-width: 0 !important;
}

.forum-redesign-page .fa-filter-btn {
  max-width: 42vw !important;
  overflow: hidden !important;
}

.forum-redesign-page .fa-filter-btn span {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* =========================
   MODO OSCURO: header / auth area
   ========================= */
html.wt-forum-dark body.forum-redesign-page .app-header,
html.wt-forum-dark body.reddit-page .app-header {
  background: rgba(11, 15, 20, .94) !important;
  border-color: rgba(148,163,184,.18) !important;
}

html.wt-forum-dark body.forum-redesign-page .auth-area .btn-soft,
html.wt-forum-dark body.reddit-page .auth-area .btn-soft,
html.wt-forum-dark body.forum-redesign-page .btn-small,
html.wt-forum-dark body.reddit-page .btn-small {
  background: rgba(22,27,34,.92) !important;
  color: #e8eef7 !important;
  border-color: rgba(148,163,184,.24) !important;
}

html.wt-forum-dark body.forum-redesign-page .auth-area .btn-primary,
html.wt-forum-dark body.reddit-page .auth-area .btn-primary {
  background: #2563eb !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
}

/* ==========================================================
   HOTFIX 3748 — legibilidad categorías, perfil claro,
   insignias/rangos y comentarios sin deformarse
   ========================================================== */

/* Panel de categorías: sólido, legible y por encima de la barra inferior */
.forum-redesign-page .fa-filter-panel,
.forum-redesign-page .fa-filter-panel * {
  box-sizing: border-box !important;
}

.forum-redesign-page .fa-filter-panel__backdrop {
  background: rgba(2, 6, 23, .62) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

.forum-redesign-page .fa-filter-panel__sheet {
  background: #ffffff !important;
  color: #07152c !important;
  border: 1px solid rgba(15, 23, 42, .12) !important;
  box-shadow: 0 -18px 50px rgba(2, 6, 23, .28) !important;
  z-index: 100002 !important;
  padding-bottom: max(112px, calc(env(safe-area-inset-bottom) + 96px)) !important;
}

html.wt-forum-dark .forum-redesign-page .fa-filter-panel__sheet,
html.wt-dark-mode .forum-redesign-page .fa-filter-panel__sheet {
  background: #111827 !important;
  color: #f8fafc !important;
  border-color: rgba(148, 163, 184, .24) !important;
}

.forum-redesign-page .fa-filter-panel__title {
  color: inherit !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 1 !important;
}

.forum-redesign-page .fa-chip {
  background: #f8fafc !important;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  border: 1.5px solid #dbe4f0 !important;
  opacity: 1 !important;
  text-shadow: none !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
  position: relative !important;
  z-index: 1 !important;
}

.forum-redesign-page .fa-chip.active,
.forum-redesign-page .fa-chip.is-active {
  background: #2563eb !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border-color: #2563eb !important;
}

html.wt-forum-dark .forum-redesign-page .fa-chip,
html.wt-dark-mode .forum-redesign-page .fa-chip {
  background: #1f2937 !important;
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
  border-color: rgba(148, 163, 184, .28) !important;
}

html.wt-forum-dark .forum-redesign-page .fa-chip.active,
html.wt-dark-mode .forum-redesign-page .fa-chip.active,
html.wt-forum-dark .forum-redesign-page .fa-chip.is-active,
html.wt-dark-mode .forum-redesign-page .fa-chip.is-active {
  background: #3d5afe !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border-color: #3d5afe !important;
}

/* Botón Todas: evita que el texto quede azul oscuro ilegible en dark mode */
html.wt-forum-dark .forum-redesign-page .fa-filter-btn,
html.wt-dark-mode .forum-redesign-page .fa-filter-btn {
  background: #161b22 !important;
  color: #e8eef7 !important;
  -webkit-text-fill-color: #e8eef7 !important;
  border-color: rgba(148,163,184,.25) !important;
  opacity: 1 !important;
}

html.wt-forum-dark .forum-redesign-page .fa-filter-btn[aria-expanded="true"],
html.wt-dark-mode .forum-redesign-page .fa-filter-btn[aria-expanded="true"] {
  background: #1e293b !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border-color: #3d5afe !important;
}

/* Publicaciones: mostrar rango/insignias sin romper la línea del autor */
.fa-post-card__meta-top .role-badge,
.fa-post-card__meta-top .public-badges,
.comment-head .role-badge,
.comment-head .public-badges {
  display: inline-flex !important;
  vertical-align: middle !important;
  flex: 0 0 auto !important;
  max-width: 100% !important;
}

.fa-post-card__badges {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  flex-wrap: wrap !important;
  min-width: 0 !important;
}

.fa-post-card__meta-top {
  min-width: 0 !important;
  overflow: visible !important;
}

.fa-post-card__author {
  max-width: 145px !important;
}

/* Comentarios: no se deben encoger infinitamente al responder muchas veces */
body[data-page="post"] #commentsList {
  display: block !important;
  width: 100% !important;
}

body[data-page="post"] .reddit-comment,
body[data-page="post"] .comment-card {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
  transform: none !important;
}

body[data-page="post"] .comment-card.comment-depth-0,
body[data-page="post"] .comment-card.comment-depth-1,
body[data-page="post"] .comment-card.comment-depth-2,
body[data-page="post"] .comment-card.comment-depth-3,
body[data-page="post"] .comment-card.comment-depth-4,
body[data-page="post"] .comment-card.comment-depth-5,
body[data-page="post"] .comment-card.comment-depth-6 {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body[data-page="post"] .comment-card.comment-depth-1,
body[data-page="post"] .comment-card.comment-depth-2,
body[data-page="post"] .comment-card.comment-depth-3,
body[data-page="post"] .comment-card.comment-depth-4,
body[data-page="post"] .comment-card.comment-depth-5,
body[data-page="post"] .comment-card.comment-depth-6 {
  padding-left: 16px !important;
  border-left: 2px solid rgba(96,165,250,.35) !important;
}

body[data-page="post"] .comment-replies {
  margin-left: 0 !important;
  padding-left: 0 !important;
  border-left: 0 !important;
  width: 100% !important;
}

body[data-page="post"] .comment-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 8px !important;
}

body[data-page="post"] .comment-head .forum-author-trigger {
  width: 100% !important;
  max-width: 100% !important;
}

body[data-page="post"] .comment-date-only small {
  white-space: normal !important;
}

/* Mi perfil / Mi cuenta siempre con campos blancos y texto oscuro, incluso con modo oscuro del foro activo */
.profile-settings-modal,
.profile-settings-modal * {
  color-scheme: light !important;
}

.profile-settings-modal input:not([type="checkbox"]),
.profile-settings-modal textarea,
.profile-settings-modal select,
.profile-settings-modal .input,
html.wt-forum-dark body .profile-settings-modal input:not([type="checkbox"]),
html.wt-forum-dark body .profile-settings-modal textarea,
html.wt-forum-dark body .profile-settings-modal select,
html.wt-forum-dark body .profile-settings-modal .input,
html.wt-dark-mode body .profile-settings-modal input:not([type="checkbox"]),
html.wt-dark-mode body .profile-settings-modal textarea,
html.wt-dark-mode body .profile-settings-modal select,
html.wt-dark-mode body .profile-settings-modal .input {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #07152c !important;
  -webkit-text-fill-color: #07152c !important;
  border: 1.5px solid #dbe4f0 !important;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .03) !important;
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

.profile-settings-modal input:disabled,
.profile-settings-modal textarea:disabled,
.profile-settings-modal select:disabled,
.profile-settings-modal .input:disabled {
  background: #f8fafc !important;
  background-color: #f8fafc !important;
  color: #07152c !important;
  -webkit-text-fill-color: #07152c !important;
  opacity: 1 !important;
}

.profile-settings-modal input:-webkit-autofill,
.profile-settings-modal textarea:-webkit-autofill,
.profile-settings-modal select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  -webkit-text-fill-color: #07152c !important;
}

.profile-settings-modal .settings-field,
.profile-settings-modal .settings-list,
.profile-settings-modal .settings-edit-list {
  background: #ffffff !important;
}

/* ============================================================
   Fix 2026-05-21: respuestas de comentarios estilo Instagram
   - Las respuestas muestran a quién responden.
   - Las respuestas se agrupan sin achicar infinitamente la tarjeta.
   - Se conservan rango e insignias en comentarios.
   ============================================================ */
body[data-page="post"] #commentsList {
  display: grid !important;
  gap: 14px !important;
  padding: 0 14px max(120px, env(safe-area-inset-bottom) + 96px) !important;
  width: 100% !important;
  overflow-x: hidden !important;
}

body[data-page="post"] #commentsList > .comment-card,
body[data-page="post"] #commentsList > .comment-replies {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

body[data-page="post"] .comment-replies {
  display: grid !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: -2px 0 10px !important;
  padding-left: 18px !important;
  border-left: 2px solid rgba(59, 130, 246, .22) !important;
  box-sizing: border-box !important;
}

body[data-page="post"] .comment-replies--nested {
  margin-top: 8px !important;
  padding-left: 0 !important;
  border-left: 0 !important;
}

body[data-page="post"] .comment-card,
body[data-page="post"] .reddit-comment {
  margin: 0 !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  transform: none !important;
}

body[data-page="post"] .comment-card.comment-depth-0,
body[data-page="post"] .comment-card.comment-depth-1,
body[data-page="post"] .comment-card.comment-depth-2,
body[data-page="post"] .comment-card.comment-depth-3,
body[data-page="post"] .comment-card.comment-depth-4,
body[data-page="post"] .comment-card.comment-depth-5,
body[data-page="post"] .comment-card.comment-depth-6 {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 100% !important;
  transform: none !important;
}

body[data-page="post"] .comment-card.comment-depth-1,
body[data-page="post"] .comment-card.comment-depth-2,
body[data-page="post"] .comment-card.comment-depth-3,
body[data-page="post"] .comment-card.comment-depth-4,
body[data-page="post"] .comment-card.comment-depth-5,
body[data-page="post"] .comment-card.comment-depth-6 {
  padding-left: 14px !important;
  border-left: 0 !important;
}

body[data-page="post"] .comment-reply-target {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  max-width: 100% !important;
  width: fit-content !important;
  margin: 0 0 10px !important;
  padding: 7px 11px !important;
  border-radius: 999px !important;
  background: rgba(37, 99, 235, .09) !important;
  border: 1px solid rgba(37, 99, 235, .18) !important;
  color: #1d4ed8 !important;
  font-family: 'Sora', sans-serif !important;
  font-size: .82rem !important;
  font-weight: 850 !important;
  line-height: 1.2 !important;
  white-space: normal !important;
}

body[data-page="post"] .comment-reply-target strong {
  color: inherit !important;
  font: inherit !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

html.wt-forum-dark body[data-page="post"] .comment-reply-target,
html.wt-dark-mode body[data-page="post"] .comment-reply-target {
  background: rgba(96, 165, 250, .13) !important;
  border-color: rgba(96, 165, 250, .28) !important;
  color: #bfdbfe !important;
}

body[data-page="post"] .comment-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 7px !important;
  align-items: start !important;
}

body[data-page="post"] .comment-head .forum-author-trigger {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

body[data-page="post"] .comment-head .author-meta,
body[data-page="post"] .comment-head .forum-author-trigger-meta {
  min-width: 0 !important;
  max-width: 100% !important;
}

body[data-page="post"] .comment-head .author-meta strong,
body[data-page="post"] .comment-head .forum-author-trigger-meta strong {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
  min-width: 0 !important;
  max-width: 100% !important;
  white-space: normal !important;
}

body[data-page="post"] .comment-head .role-badge,
body[data-page="post"] .comment-head .public-badges,
body[data-page="post"] .comment-head .badge,
body[data-page="post"] .comment-head .user-badge {
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  max-width: 100% !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body[data-page="post"] .comment-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
  padding-bottom: 2px !important;
}

body[data-page="post"] .comment-actions::-webkit-scrollbar { display: none !important; }

body[data-page="post"] .comment-actions .reddit-action-pill {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}

/* El formulario de Mi perfil debe seguir con campos blancos y legibles. */
.profile-settings-modal input:not([type="checkbox"]),
.profile-settings-modal textarea,
.profile-settings-modal select,
.profile-settings-modal .input,
.account-settings-modal input:not([type="checkbox"]),
.account-settings-modal textarea,
.account-settings-modal select,
.account-settings-modal .input {
  background: #ffffff !important;
  color: #07152c !important;
  -webkit-text-fill-color: #07152c !important;
  border-color: #dbe4f0 !important;
  opacity: 1 !important;
}

/* ============================================================
   Fix 2026-05-21: encaje de respuestas y botón "Ver respuestas"
   ============================================================ */
body[data-page="post"] .comment-replies-toggle-wrap {
  width: 100% !important;
  margin: -2px 0 4px !important;
  padding-left: 18px !important;
  box-sizing: border-box !important;
}

body[data-page="post"] .comment-replies-toggle {
  appearance: none !important;
  border: 0 !important;
  background: transparent !important;
  color: #2563eb !important;
  font-family: 'Sora', sans-serif !important;
  font-size: .88rem !important;
  font-weight: 800 !important;
  padding: 8px 4px !important;
  cursor: pointer !important;
  text-align: left !important;
}

html.wt-forum-dark body[data-page="post"] .comment-replies-toggle,
html.wt-dark-mode body[data-page="post"] .comment-replies-toggle {
  color: #93c5fd !important;
}

body[data-page="post"] .comment-replies.is-collapsed {
  display: none !important;
}

body[data-page="post"] .comment-replies {
  padding-left: 14px !important;
  margin: 0 0 12px 0 !important;
  border-left: 2px solid rgba(37, 99, 235, .20) !important;
  gap: 12px !important;
}

body[data-page="post"] .comment-replies--nested {
  padding-left: 0 !important;
  margin-left: 0 !important;
  border-left: 0 !important;
}

body[data-page="post"] .comment-card,
body[data-page="post"] .reddit-comment {
  padding: 14px !important;
  overflow: hidden !important;
}

body[data-page="post"] .comment-card .comment-head {
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
}

body[data-page="post"] .comment-card .comment-head .forum-author-trigger {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

body[data-page="post"] .comment-card .comment-date-only {
  width: 100% !important;
  margin-left: 48px !important;
}

body[data-page="post"] .comment-actions {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: minmax(96px, auto) minmax(86px, 1fr) minmax(82px, 1fr) !important;
  gap: 8px !important;
  overflow: visible !important;
  align-items: center !important;
}

body[data-page="post"] .comment-actions .reddit-action-pill {
  min-width: 0 !important;
  width: 100% !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body[data-page="post"] .comment-actions .reddit-vote-pill {
  width: auto !important;
  min-width: 104px !important;
}

body[data-page="post"] .comment-actions .reddit-report-pill {
  max-width: 100% !important;
}

body[data-page="post"] .comment-reply-target {
  max-width: 100% !important;
  display: flex !important;
  width: auto !important;
}

body[data-page="post"] .comment-reply-target strong {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

@media (max-width: 380px) {
  body[data-page="post"] .comment-actions {
    grid-template-columns: minmax(96px, 1fr) minmax(92px, 1fr) !important;
  }
  body[data-page="post"] .comment-actions .reddit-vote-pill {
    grid-column: span 2 !important;
  }
}

/* ============================================================
   Fix 2026-05-21: compositor estilo Instagram + acciones sin scroll
   ============================================================ */
body[data-page="post"] .reddit-detail-shell {
  padding-bottom: max(190px, calc(env(safe-area-inset-bottom) + 180px)) !important;
  overflow-x: hidden !important;
}

body[data-page="post"] .reddit-comment-composer,
body[data-page="post"] .comment-box {
  position: sticky !important;
  bottom: calc(env(safe-area-inset-bottom) + 86px) !important;
  z-index: 80 !important;
  width: calc(100% - 24px) !important;
  max-width: 680px !important;
  margin: 16px auto 18px !important;
  padding: 12px !important;
  border-radius: 22px !important;
  box-shadow: 0 14px 38px rgba(15, 23, 42, .18) !important;
  overflow: hidden !important;
}

html.wt-forum-dark body[data-page="post"] .reddit-comment-composer,
html.wt-dark-mode body[data-page="post"] .reddit-comment-composer,
html.wt-forum-dark body[data-page="post"] .comment-box,
html.wt-dark-mode body[data-page="post"] .comment-box {
  box-shadow: 0 16px 44px rgba(0, 0, 0, .42) !important;
}

body[data-page="post"] .replying-to {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 10px !important;
  align-items: center !important;
  width: 100% !important;
  margin: 0 !important;
}
body[data-page="post"] .replying-to[hidden] { display: none !important; }
body[data-page="post"] #replyingToText {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: normal !important;
  line-height: 1.25 !important;
}
body[data-page="post"] #clearReplyBtn {
  min-width: 118px !important;
  max-width: 150px !important;
  min-height: 42px !important;
  padding: 8px 14px !important;
  border-radius: 999px !important;
  white-space: normal !important;
  line-height: 1.15 !important;
  text-align: center !important;
}

body[data-page="post"] #commentBody {
  min-height: 54px !important;
  max-height: 118px !important;
  resize: none !important;
  overflow-y: auto !important;
}

body[data-page="post"] .comment-image-input {
  min-height: 44px !important;
  border-radius: 18px !important;
}

body[data-page="post"] .comment-actions-row .btn {
  min-height: 48px !important;
}

/* Acciones de cada comentario: siempre juntas y dentro de la tarjeta. */
body[data-page="post"] .comment-actions,
body[data-page="post"] .reddit-actions.comment-actions {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: 92px minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 7px !important;
  overflow: visible !important;
  padding: 0 !important;
  align-items: center !important;
}
body[data-page="post"] .comment-actions .reddit-action-pill {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 38px !important;
  padding: 7px 8px !important;
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: clamp(.74rem, 2.8vw, .9rem) !important;
  line-height: 1 !important;
}
body[data-page="post"] .comment-actions .reddit-vote-pill {
  min-width: 0 !important;
  width: 92px !important;
  padding-inline: 4px !important;
  justify-content: space-around !important;
}
body[data-page="post"] .comment-actions .reddit-vote-pill button {
  width: 28px !important;
  min-width: 28px !important;
  height: 30px !important;
}
body[data-page="post"] .comment-actions .reddit-score {
  min-width: 18px !important;
  text-align: center !important;
}

@media (max-width: 380px) {
  body[data-page="post"] .comment-actions,
  body[data-page="post"] .reddit-actions.comment-actions {
    grid-template-columns: 84px minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 6px !important;
  }
  body[data-page="post"] .comment-actions .reddit-vote-pill { width: 84px !important; }
  body[data-page="post"] .comment-actions .reddit-action-pill {
    font-size: .72rem !important;
    padding-inline: 5px !important;
  }
}

/* Evita que la barra inferior o el teclado tapen el final de comentarios. */
body[data-page="post"] #commentsList {
  padding-bottom: max(170px, calc(env(safe-area-inset-bottom) + 150px)) !important;
}

/* ============================================================
   Fix 2026-05-21: barra de comentarios tipo Instagram
   ============================================================ */
body[data-page="post"] {
  --ig-composer-h: 74px;
}

body[data-page="post"] .reddit-detail-shell {
  padding-bottom: max(220px, calc(env(safe-area-inset-bottom) + 210px)) !important;
  overflow-x: hidden !important;
}

body[data-page="post"] .instagram-comment-composer,
body[data-page="post"] #commentComposer.reddit-comment-composer,
body[data-page="post"] #commentComposer.comment-box {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  bottom: calc(env(safe-area-inset-bottom) + 92px) !important;
  transform: translateX(-50%) !important;
  z-index: 1200 !important;
  width: min(430px, calc(100vw - 20px)) !important;
  max-width: min(430px, calc(100vw - 20px)) !important;
  margin: 0 !important;
  padding: 8px 10px !important;
  border-radius: 24px !important;
  border: 1px solid rgba(148, 163, 184, .28) !important;
  background: rgba(255, 255, 255, .92) !important;
  box-shadow: 0 16px 38px rgba(15, 23, 42, .20) !important;
  backdrop-filter: blur(18px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(150%) !important;
  overflow: visible !important;
}

html.wt-forum-dark body[data-page="post"] .instagram-comment-composer,
html.wt-dark-mode body[data-page="post"] .instagram-comment-composer,
html.wt-forum-dark body[data-page="post"] #commentComposer.reddit-comment-composer,
html.wt-dark-mode body[data-page="post"] #commentComposer.reddit-comment-composer {
  background: rgba(18, 24, 37, .94) !important;
  border-color: rgba(148, 163, 184, .22) !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .46) !important;
}

body[data-page="post"].comment-composer-focused .bottom-nav {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateX(-50%) translateY(18px) !important;
}

body[data-page="post"].comment-composer-focused #commentComposer {
  bottom: calc(env(safe-area-inset-bottom) + 10px) !important;
}

body[data-page="post"] .ig-comment-input-row {
  width: 100% !important;
  display: flex !important;
  align-items: flex-end !important;
  gap: 8px !important;
}

body[data-page="post"] .ig-comment-avatar {
  width: 40px !important;
  height: 40px !important;
  flex: 0 0 40px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  background: #e2e8f0 !important;
  border: 1px solid rgba(148, 163, 184, .35) !important;
}

body[data-page="post"] #commentBody.input,
body[data-page="post"] .instagram-comment-composer #commentBody {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  min-height: 42px !important;
  height: 42px;
  max-height: 92px !important;
  padding: 10px 12px !important;
  margin: 0 !important;
  border-radius: 20px !important;
  border: 1px solid rgba(148, 163, 184, .30) !important;
  background: rgba(248, 250, 252, .92) !important;
  color: #0f172a !important;
  font-size: 15px !important;
  line-height: 1.35 !important;
  resize: none !important;
  overflow-y: auto !important;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .04) !important;
}

html.wt-forum-dark body[data-page="post"] #commentBody.input,
html.wt-dark-mode body[data-page="post"] #commentBody.input {
  background: rgba(15, 23, 42, .82) !important;
  color: #f8fafc !important;
  border-color: rgba(148, 163, 184, .25) !important;
}

body[data-page="post"] #commentBody::placeholder {
  color: #64748b !important;
}
html.wt-forum-dark body[data-page="post"] #commentBody::placeholder,
html.wt-dark-mode body[data-page="post"] #commentBody::placeholder {
  color: #94a3b8 !important;
}

body[data-page="post"] .ig-image-btn,
body[data-page="post"] .comment-image-input.ig-image-btn {
  flex: 0 0 auto !important;
  min-width: 62px !important;
  width: auto !important;
  min-height: 42px !important;
  height: 42px !important;
  padding: 0 10px !important;
  margin: 0 !important;
  border-radius: 16px !important;
  border: 1px solid rgba(37, 99, 235, .32) !important;
  background: rgba(239, 246, 255, .95) !important;
  color: #2563eb !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: 'Sora', system-ui, sans-serif !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

html.wt-forum-dark body[data-page="post"] .ig-image-btn,
html.wt-dark-mode body[data-page="post"] .ig-image-btn {
  background: rgba(37, 99, 235, .16) !important;
  border-color: rgba(96, 165, 250, .34) !important;
  color: #93c5fd !important;
}

body[data-page="post"] .ig-image-btn input { display: none !important; }

body[data-page="post"] .ig-send-btn,
body[data-page="post"] #sendCommentBtn.ig-send-btn {
  flex: 0 0 auto !important;
  min-width: 0 !important;
  width: auto !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 12px !important;
  margin: 0 !important;
  border-radius: 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: 'Sora', system-ui, sans-serif !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

body[data-page="post"] .replying-to {
  position: absolute !important;
  left: 58px !important;
  right: 10px !important;
  bottom: calc(100% + 8px) !important;
  width: auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 10px !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, .96) !important;
  border: 1px solid rgba(148, 163, 184, .30) !important;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .14) !important;
}
body[data-page="post"] .replying-to[hidden] { display: none !important; }
html.wt-forum-dark body[data-page="post"] .replying-to,
html.wt-dark-mode body[data-page="post"] .replying-to {
  background: rgba(20, 30, 48, .96) !important;
  border-color: rgba(148, 163, 184, .22) !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .36) !important;
}
body[data-page="post"] #replyingToText {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #2563eb !important;
}
html.wt-forum-dark body[data-page="post"] #replyingToText,
html.wt-dark-mode body[data-page="post"] #replyingToText { color: #93c5fd !important; }
body[data-page="post"] #clearReplyBtn {
  min-width: auto !important;
  width: auto !important;
  min-height: 30px !important;
  height: 30px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  white-space: nowrap !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

body[data-page="post"] .ig-selected-images,
body[data-page="post"] [data-comment-selected-images] {
  position: absolute !important;
  left: 58px !important;
  right: 10px !important;
  bottom: calc(100% + 58px) !important;
  z-index: 1 !important;
  max-height: 90px !important;
  overflow: hidden !important;
}
body[data-page="post"] [data-comment-selected-images][hidden] { display: none !important; }

/* Acciones de comentarios: juntas, sin que haya que deslizar. */
body[data-page="post"] .comment-actions,
body[data-page="post"] .reddit-actions.comment-actions {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 7px !important;
  width: 100% !important;
  overflow: hidden !important;
  padding: 0 !important;
}
body[data-page="post"] .comment-actions .reddit-action-pill {
  flex: 0 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 36px !important;
  padding: 7px 12px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  font-size: clamp(.78rem, 2.7vw, .9rem) !important;
}
body[data-page="post"] .comment-actions .reddit-vote-pill {
  flex: 0 0 92px !important;
  width: 92px !important;
  padding-inline: 4px !important;
}
body[data-page="post"] .comment-actions .reddit-report-pill {
  flex: 0 1 76px !important;
  padding-inline: 10px !important;
}

@media (max-width: 390px) {
  body[data-page="post"] .instagram-comment-composer,
  body[data-page="post"] #commentComposer.reddit-comment-composer,
  body[data-page="post"] #commentComposer.comment-box {
    width: calc(100vw - 14px) !important;
    max-width: calc(100vw - 14px) !important;
    padding: 7px !important;
  }
  body[data-page="post"] .ig-comment-avatar {
    width: 36px !important;
    height: 36px !important;
    flex-basis: 36px !important;
  }
  body[data-page="post"] .ig-image-btn { min-width: 56px !important; padding-inline: 8px !important; font-size: 11px !important; }
  body[data-page="post"] .ig-send-btn { padding-inline: 10px !important; font-size: 11px !important; }
  body[data-page="post"] .comment-actions .reddit-vote-pill { flex-basis: 84px !important; width: 84px !important; }
  body[data-page="post"] .comment-actions .reddit-action-pill { padding-inline: 8px !important; font-size: .72rem !important; }
}

/* ============================================================
   HOTFIX 3752 - Comentarios estilo Instagram en post.html
   ============================================================ */
body[data-page="post"] {
  --ig-bg: #0b0f14;
  --ig-panel: #111820;
  --ig-text: #edf2f7;
  --ig-muted: #9aa4b2;
  --ig-border: rgba(148, 163, 184, .18);
  --ig-link: #86b7ff;
  padding-bottom: calc(118px + env(safe-area-inset-bottom, 0px)) !important;
}

body[data-page="post"] .comments-section {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  margin-top: 18px !important;
  padding: 0 0 14px !important;
}

body[data-page="post"] .comments-toolbar {
  border: 0 !important;
  padding: 0 4px 12px !important;
  background: transparent !important;
}

body[data-page="post"] .comments-toolbar span {
  font-family: 'Sora', sans-serif !important;
  font-size: .9rem !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  color: var(--reddit-muted, #64748b) !important;
}

body[data-page="post"] #commentsList {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  overflow: visible !important;
  width: 100% !important;
  max-width: 100% !important;
}

body[data-page="post"] .ig-comment-row,
html.wt-forum-dark body[data-page="post"] .ig-comment-row {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) 38px !important;
  align-items: start !important;
  column-gap: 10px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 12px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

body[data-page="post"] .ig-comment-row.comment-depth-1,
html.wt-forum-dark body[data-page="post"] .ig-comment-row.comment-depth-1 {
  grid-template-columns: 34px minmax(0, 1fr) 32px !important;
  margin-left: 42px !important;
  width: calc(100% - 42px) !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

body[data-page="post"] .ig-comment-avatar {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-page="post"] .comment-depth-1 .ig-comment-avatar {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
}

body[data-page="post"] .ig-comment-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  display: block !important;
}

body[data-page="post"] .ig-comment-main {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
}

body[data-page="post"] .ig-comment-line {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  flex-wrap: wrap !important;
  min-width: 0 !important;
  line-height: 1.25 !important;
}

body[data-page="post"] .ig-comment-author {
  font-family: 'DM Sans', sans-serif !important;
  font-size: .95rem !important;
  font-weight: 800 !important;
  color: var(--reddit-text, #0f172a) !important;
  max-width: min(46vw, 220px) !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body[data-page="post"] .ig-comment-time {
  color: var(--reddit-muted, #64748b) !important;
  font-size: .82rem !important;
  font-weight: 650 !important;
  white-space: nowrap !important;
}

body[data-page="post"] .ig-comment-badges {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  max-width: 100% !important;
}

body[data-page="post"] .ig-comment-badges .role-badge,
body[data-page="post"] .ig-comment-badges .user-badge {
  transform: scale(.82) !important;
  transform-origin: left center !important;
  margin-left: 0 !important;
}

body[data-page="post"] .ig-comment-text,
body[data-page="post"] .ig-comment-row p.ig-comment-text,
html.wt-forum-dark body[data-page="post"] .ig-comment-text {
  margin: 3px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--reddit-text, #0f172a) !important;
  opacity: 1 !important;
  font-size: .98rem !important;
  font-weight: 500 !important;
  line-height: 1.34 !important;
  white-space: pre-wrap !important;
  overflow-wrap: anywhere !important;
}

body[data-page="post"] .ig-reply-prefix {
  color: var(--ig-link, #2563eb) !important;
  font-weight: 750 !important;
  margin-right: 4px !important;
}

body[data-page="post"] .ig-comment-actions {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  margin-top: 6px !important;
  overflow: visible !important;
  max-width: 100% !important;
}

body[data-page="post"] .ig-comment-action,
html.wt-forum-dark body[data-page="post"] .ig-comment-action {
  appearance: none !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--reddit-muted, #64748b) !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: .88rem !important;
  font-weight: 800 !important;
  padding: 0 !important;
  min-height: 22px !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  white-space: nowrap !important;
}

body[data-page="post"] .ig-comment-report {
  opacity: .75 !important;
}

body[data-page="post"] .ig-comment-likebox {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 2px !important;
  padding-top: 4px !important;
  color: var(--reddit-muted, #64748b) !important;
}

body[data-page="post"] .ig-comment-like {
  appearance: none !important;
  border: 0 !important;
  background: transparent !important;
  color: currentColor !important;
  font-size: 1.55rem !important;
  line-height: 1 !important;
  padding: 0 !important;
  min-width: 28px !important;
  height: 28px !important;
}

body[data-page="post"] .ig-comment-like.is-liked {
  color: #ef4444 !important;
}

body[data-page="post"] .ig-comment-count {
  font-size: .78rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

body[data-page="post"] .comment-replies-toggle-wrap {
  margin: 0 0 2px 52px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
}

body[data-page="post"] .comment-replies-toggle-wrap::before {
  content: '' !important;
  width: 34px !important;
  height: 1px !important;
  background: var(--reddit-border, rgba(100,116,139,.25)) !important;
  margin-right: 10px !important;
  flex: 0 0 auto !important;
}

body[data-page="post"] .comment-replies-toggle,
html.wt-forum-dark body[data-page="post"] .comment-replies-toggle {
  border: 0 !important;
  background: transparent !important;
  color: var(--reddit-muted, #64748b) !important;
  padding: 4px 0 !important;
  font-size: .92rem !important;
  font-weight: 850 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

body[data-page="post"] .comment-replies {
  margin: 0 !important;
  padding: 0 !important;
  border-left: 0 !important;
  max-width: 100% !important;
  overflow: visible !important;
}

body[data-page="post"] .comment-replies--nested {
  margin: 0 !important;
  padding: 0 !important;
}

body[data-page="post"] .comment-replies.is-collapsed {
  display: none !important;
}

body[data-page="post"] .ig-comment-row .forum-attachment-gallery {
  margin: 8px 0 0 !important;
  max-width: min(310px, 100%) !important;
  border-radius: 12px !important;
}

body[data-page="post"] .instagram-comment-composer,
html.wt-forum-dark body[data-page="post"] .instagram-comment-composer {
  position: fixed !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  right: auto !important;
  bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
  z-index: 850 !important;
  width: min(100% - 18px, 430px) !important;
  max-width: 430px !important;
  margin: 0 !important;
  padding: 8px 10px !important;
  border: 1px solid rgba(148, 163, 184, .22) !important;
  border-radius: 24px !important;
  background: rgba(17, 24, 39, .82) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  box-shadow: 0 12px 30px rgba(0,0,0,.25) !important;
}

body[data-page="post"] .ig-comment-input-row {
  display: flex !important;
  align-items: flex-end !important;
  gap: 8px !important;
  width: 100% !important;
}

body[data-page="post"] .ig-comment-avatar {
  flex: 0 0 auto !important;
}

body[data-page="post"] .instagram-comment-composer .ig-comment-avatar,
body[data-page="post"] #commentComposerAvatar {
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  flex: 0 0 auto !important;
}

body[data-page="post"] .instagram-comment-composer .input,
html.wt-forum-dark body[data-page="post"] .instagram-comment-composer .input {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 82px !important;
  padding: 8px 10px !important;
  border: 1px solid rgba(148, 163, 184, .22) !important;
  border-radius: 18px !important;
  background: rgba(15, 23, 42, .52) !important;
  color: #fff !important;
  font-size: .94rem !important;
  line-height: 1.25 !important;
  resize: none !important;
  box-shadow: none !important;
}

body[data-page="post"] .instagram-comment-composer .input::placeholder {
  color: rgba(226,232,240,.72) !important;
}

body[data-page="post"] .ig-image-btn,
html.wt-forum-dark body[data-page="post"] .ig-image-btn {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 54px !important;
  height: 34px !important;
  border: 1.5px solid rgba(226,232,240,.75) !important;
  border-radius: 10px !important;
  color: #fff !important;
  background: transparent !important;
  font-size: .78rem !important;
  font-weight: 900 !important;
  padding: 0 !important;
  margin: 0 !important;
}

body[data-page="post"] .ig-send-btn {
  display: none !important;
}

body[data-page="post"] .instagram-comment-composer.has-text .ig-send-btn,
body[data-page="post"] .instagram-comment-composer:focus-within.has-text .ig-send-btn {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  min-width: 58px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 12px !important;
  border-radius: 16px !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: .82rem !important;
}

body[data-page="post"] .replying-to,
html.wt-forum-dark body[data-page="post"] .replying-to {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  margin: 0 0 7px 42px !important;
  color: rgba(226,232,240,.82) !important;
  font-size: .82rem !important;
  font-weight: 750 !important;
}

body[data-page="post"] .replying-to[hidden] { display: none !important; }

body[data-page="post"] .replying-to button,
html.wt-forum-dark body[data-page="post"] .replying-to button {
  border: 0 !important;
  background: transparent !important;
  color: #93c5fd !important;
  padding: 0 !important;
  font-weight: 850 !important;
  font-size: .82rem !important;
}

body[data-page="post"] .ig-selected-images {
  margin: 8px 0 0 42px !important;
}

html.wt-forum-dark body[data-page="post"] .ig-comment-author,
html.wt-forum-dark body[data-page="post"] .ig-comment-text {
  color: #f8fafc !important;
}
html.wt-forum-dark body[data-page="post"] .ig-comment-time,
html.wt-forum-dark body[data-page="post"] .ig-comment-action,
html.wt-forum-dark body[data-page="post"] .ig-comment-count {
  color: #9aa4b2 !important;
}

@media (max-width: 430px) {
  body[data-page="post"] .ig-comment-row {
    grid-template-columns: 38px minmax(0, 1fr) 34px !important;
    column-gap: 8px !important;
  }
  body[data-page="post"] .ig-comment-row.comment-depth-1 {
    margin-left: 38px !important;
    width: calc(100% - 38px) !important;
    grid-template-columns: 30px minmax(0, 1fr) 30px !important;
  }
  body[data-page="post"] .ig-comment-author { max-width: 34vw !important; }
  body[data-page="post"] .comment-replies-toggle-wrap { margin-left: 48px !important; }
}

/* ============================================================
   HOTFIX v3753 — barra de comentarios tipo Instagram + teclado iOS
   ============================================================ */
body[data-page="post"] {
  --comment-keyboard-offset: 0px;
}

body[data-page="post"] .reddit-detail-shell {
  padding-bottom: calc(180px + env(safe-area-inset-bottom, 0px)) !important;
}

body[data-page="post"] #commentsList {
  padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px)) !important;
}

body[data-page="post"] .instagram-comment-composer,
html.wt-forum-dark body[data-page="post"] .instagram-comment-composer {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  bottom: calc(72px + env(safe-area-inset-bottom, 0px) + var(--comment-keyboard-offset, 0px)) !important;
  transform: translateX(-50%) !important;
  z-index: 3000 !important;
  width: min(calc(100vw - 14px), 430px) !important;
  max-width: 430px !important;
  margin: 0 !important;
  padding: 8px 10px !important;
  border: 1px solid rgba(148, 163, 184, .22) !important;
  border-radius: 24px !important;
  background: rgba(15, 23, 42, .92) !important;
  backdrop-filter: blur(22px) saturate(1.15) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.15) !important;
  box-shadow: 0 16px 40px rgba(0,0,0,.38) !important;
  overflow: visible !important;
  transition: bottom .18s ease, border-radius .18s ease, background .18s ease !important;
}

body[data-page="post"].comment-composer-focused .instagram-comment-composer {
  bottom: calc(10px + env(safe-area-inset-bottom, 0px) + var(--comment-keyboard-offset, 0px)) !important;
  border-radius: 22px !important;
}

body[data-page="post"] .ig-comment-input-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  min-width: 0 !important;
}

body[data-page="post"] .instagram-comment-composer .ig-comment-avatar,
body[data-page="post"] #commentComposerAvatar {
  display: block !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  flex: 0 0 38px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  background: #e5eefc !important;
  border: 1px solid rgba(255,255,255,.28) !important;
}

body[data-page="post"] .instagram-comment-composer .input,
html.wt-forum-dark body[data-page="post"] .instagram-comment-composer .input,
body[data-page="post"] #commentBody {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 92px !important;
  padding: 9px 12px !important;
  border: 1px solid rgba(148, 163, 184, .28) !important;
  border-radius: 999px !important;
  background: rgba(15, 23, 42, .64) !important;
  color: #f8fafc !important;
  font-size: 15px !important;
  font-weight: 650 !important;
  line-height: 20px !important;
  resize: none !important;
  box-shadow: none !important;
  overflow-y: auto !important;
  -webkit-text-size-adjust: 100% !important;
}

body[data-page="post"] .instagram-comment-composer .input::placeholder,
body[data-page="post"] #commentBody::placeholder {
  color: rgba(226,232,240,.76) !important;
  opacity: 1 !important;
}

body[data-page="post"] .ig-image-btn,
html.wt-forum-dark body[data-page="post"] .ig-image-btn {
  flex: 0 0 58px !important;
  width: 58px !important;
  height: 40px !important;
  min-height: 40px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1.5px solid rgba(147, 197, 253, .85) !important;
  border-radius: 14px !important;
  color: #93c5fd !important;
  background: rgba(30, 41, 59, .48) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  padding: 0 !important;
  margin: 0 !important;
  white-space: nowrap !important;
}

body[data-page="post"] .ig-send-btn,
html.wt-forum-dark body[data-page="post"] .ig-send-btn {
  display: none !important;
  flex: 0 0 62px !important;
  width: 62px !important;
  min-width: 62px !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 10px !important;
  border-radius: 16px !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  color: #fff !important;
  background: #3d5afe !important;
  border: 0 !important;
  box-shadow: 0 8px 20px rgba(61,90,254,.28) !important;
}

body[data-page="post"] .instagram-comment-composer.has-text .ig-send-btn {
  display: inline-flex !important;
}

body[data-page="post"] .replying-to,
html.wt-forum-dark body[data-page="post"] .replying-to {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin: 0 0 7px 46px !important;
  padding: 7px 10px !important;
  max-width: calc(100% - 46px) !important;
  border: 1px solid rgba(96, 165, 250, .22) !important;
  border-radius: 16px !important;
  background: rgba(30, 41, 59, .62) !important;
  color: #dbeafe !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
}
body[data-page="post"] .replying-to[hidden] { display: none !important; }
body[data-page="post"] .replying-to span {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
body[data-page="post"] .replying-to button,
html.wt-forum-dark body[data-page="post"] .replying-to button {
  flex: 0 0 auto !important;
  border: 0 !important;
  background: transparent !important;
  color: #93c5fd !important;
  padding: 0 !important;
  font-weight: 900 !important;
  font-size: 13px !important;
}

body[data-page="post"] .ig-selected-images {
  margin: 8px 0 0 46px !important;
  max-width: calc(100% - 46px) !important;
}

@media (max-width: 390px) {
  body[data-page="post"] .instagram-comment-composer,
  html.wt-forum-dark body[data-page="post"] .instagram-comment-composer {
    width: calc(100vw - 8px) !important;
    padding: 7px 8px !important;
  }
  body[data-page="post"] .ig-comment-input-row { gap: 6px !important; }
  body[data-page="post"] .instagram-comment-composer .ig-comment-avatar,
  body[data-page="post"] #commentComposerAvatar {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    flex-basis: 34px !important;
  }
  body[data-page="post"] .ig-image-btn,
  html.wt-forum-dark body[data-page="post"] .ig-image-btn {
    flex-basis: 50px !important;
    width: 50px !important;
    font-size: 11px !important;
  }
  body[data-page="post"] .ig-send-btn,
  html.wt-forum-dark body[data-page="post"] .ig-send-btn {
    flex-basis: 54px !important;
    width: 54px !important;
    min-width: 54px !important;
    font-size: 12px !important;
  }
  body[data-page="post"] #commentBody { font-size: 14px !important; padding-inline: 10px !important; }
}


/* === HOTFIX v3754: composer siempre encima del teclado + reply chip encajado === */
body[data-page="post"] .instagram-comment-composer.keyboard-open,
html.wt-forum-dark body[data-page="post"] .instagram-comment-composer.keyboard-open,
body[data-page="post"].comment-composer-focused .instagram-comment-composer.keyboard-open {
  top: var(--comment-composer-top, auto) !important;
  bottom: auto !important;
  transform: translateX(-50%) !important;
  border-radius: 20px !important;
}

body[data-page="post"].comment-composer-focused .instagram-comment-composer,
html.wt-forum-dark body[data-page="post"].comment-composer-focused .instagram-comment-composer {
  z-index: 9999 !important;
}

body[data-page="post"] .replying-to,
html.wt-forum-dark body[data-page="post"] .replying-to {
  margin: 0 0 8px 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  padding: 7px 10px !important;
  border-radius: 16px !important;
  min-height: 36px !important;
}

body[data-page="post"] .replying-to span,
html.wt-forum-dark body[data-page="post"] .replying-to span {
  display: block !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.25 !important;
}

body[data-page="post"] .replying-to button,
html.wt-forum-dark body[data-page="post"] .replying-to button {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  padding: 5px 8px !important;
  border-radius: 999px !important;
  background: rgba(96, 165, 250, .12) !important;
}

body[data-page="post"] .instagram-comment-composer #commentBody {
  overflow-x: hidden !important;
  word-break: break-word !important;
}

body[data-page="post"] .instagram-comment-composer.is-replying #commentBody::placeholder {
  color: rgba(226,232,240,.78) !important;
}

@media (max-width: 390px) {
  body[data-page="post"] .replying-to,
  html.wt-forum-dark body[data-page="post"] .replying-to {
    font-size: 12px !important;
    padding: 6px 8px !important;
  }
}

/* ============================================================
   HOTFIX v3755 — vista previa del comentario respondido + composer estable iPhone
   ============================================================ */
body[data-page="post"] .instagram-comment-composer,
html.wt-forum-dark body[data-page="post"] .instagram-comment-composer,
html.wt-dark-mode body[data-page="post"] .instagram-comment-composer {
  display: flex !important;
  flex-direction: column !important;
  gap: 7px !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: min(42vh, 300px) !important;
  overflow: visible !important;
  box-sizing: border-box !important;
  padding: 8px 10px !important;
}

body[data-page="post"] .instagram-comment-composer.keyboard-open,
body[data-page="post"].comment-composer-focused .instagram-comment-composer.keyboard-open,
html.wt-forum-dark body[data-page="post"] .instagram-comment-composer.keyboard-open {
  top: var(--comment-composer-top, auto) !important;
  bottom: auto !important;
  transform: translate3d(-50%, 0, 0) !important;
}

body[data-page="post"].comment-composer-focused .bottom-nav,
body[data-page="post"].comment-composer-focused .mobile-bottom-nav,
body[data-page="post"].comment-composer-focused nav.bottom-nav {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translate(-50%, 120%) !important;
}

body[data-page="post"] .ig-reply-preview,
html.wt-forum-dark body[data-page="post"] .ig-reply-preview {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 9px !important;
  padding: 9px 10px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(96,165,250,.28) !important;
  background: rgba(15,23,42,.74) !important;
  box-shadow: inset 3px 0 0 rgba(96,165,250,.75) !important;
  color: #e5edff !important;
  max-height: 78px !important;
  overflow: hidden !important;
}
body[data-page="post"] .ig-reply-preview[hidden] { display: none !important; }
body[data-page="post"] .ig-reply-preview img {
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  background: #e5eefc !important;
  flex: 0 0 34px !important;
}
body[data-page="post"] .ig-reply-preview__content {
  min-width: 0 !important;
  overflow: hidden !important;
}
body[data-page="post"] .ig-reply-preview__content strong {
  display: block !important;
  font-family: 'Sora', sans-serif !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  color: #93c5fd !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
body[data-page="post"] .ig-reply-preview__content p {
  margin: 2px 0 0 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  color: rgba(226,232,240,.92) !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

body[data-page="post"] .replying-to,
html.wt-forum-dark body[data-page="post"] .replying-to {
  display: flex !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 34px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 6px 10px !important;
  border-radius: 17px !important;
  overflow: hidden !important;
  background: rgba(30,41,59,.72) !important;
}
body[data-page="post"] .replying-to[hidden] { display: none !important; }
body[data-page="post"] #replyingToText {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body[data-page="post"] .ig-comment-input-row {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  min-width: 0 !important;
}
body[data-page="post"] #commentBody {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 82px !important;
  white-space: normal !important;
}

body[data-page="post"] .instagram-comment-composer.is-replying #commentBody,
body[data-page="post"] .instagram-comment-composer.is-replying #commentBody::placeholder {
  font-size: 14px !important;
}

@media (max-width: 390px) {
  body[data-page="post"] .instagram-comment-composer,
  html.wt-forum-dark body[data-page="post"] .instagram-comment-composer {
    width: calc(100vw - 6px) !important;
    padding: 7px 7px !important;
  }
  body[data-page="post"] .ig-reply-preview {
    grid-template-columns: 30px minmax(0, 1fr) !important;
    padding: 8px 8px !important;
  }
  body[data-page="post"] .ig-reply-preview img {
    width: 30px !important;
    height: 30px !important;
  }
}

/* ============================================================
   HOTFIX v3757 — composer de comentarios estable sobre teclado
   - oculta la navegación móvil mientras se escribe
   - evita que Cancelar se salga de la pantalla
   - mantiene la barra compacta al responder a la publicación
   ============================================================ */
html.comment-composer-focused body[data-page="post"] .mobile-quick-nav,
html.comment-keyboard-open body[data-page="post"] .mobile-quick-nav,
body[data-page="post"].comment-composer-focused .mobile-quick-nav,
body[data-page="post"].comment-keyboard-open .mobile-quick-nav,
html.comment-composer-focused body[data-page="post"] .bottom-nav,
html.comment-keyboard-open body[data-page="post"] .bottom-nav,
body[data-page="post"].comment-composer-focused .bottom-nav,
body[data-page="post"].comment-keyboard-open .bottom-nav,
html.comment-composer-focused body[data-page="post"] .mobile-bottom-nav,
html.comment-keyboard-open body[data-page="post"] .mobile-bottom-nav,
body[data-page="post"].comment-composer-focused .mobile-bottom-nav,
body[data-page="post"].comment-keyboard-open .mobile-bottom-nav {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translate3d(-50%, 140%, 0) !important;
}

body[data-page="post"] .instagram-comment-composer,
html.wt-forum-dark body[data-page="post"] .instagram-comment-composer,
html.wt-dark-mode body[data-page="post"] .instagram-comment-composer {
  z-index: 2147483000 !important;
  width: min(430px, calc(100vw - 14px)) !important;
  max-width: calc(100vw - 14px) !important;
  left: 50% !important;
  right: auto !important;
  bottom: calc(86px + env(safe-area-inset-bottom)) !important;
  padding: 8px !important;
  border-radius: 22px !important;
  overflow: visible !important;
  background: rgba(8, 15, 30, .96) !important;
  border: 1px solid rgba(148, 163, 184, .24) !important;
  box-shadow: 0 16px 40px rgba(0,0,0,.38) !important;
}

body[data-page="post"] .instagram-comment-composer.keyboard-open,
body[data-page="post"].comment-composer-focused .instagram-comment-composer.keyboard-open,
html.wt-forum-dark body[data-page="post"] .instagram-comment-composer.keyboard-open,
html.wt-dark-mode body[data-page="post"] .instagram-comment-composer.keyboard-open {
  position: fixed !important;
  top: var(--comment-composer-top, auto) !important;
  bottom: auto !important;
  transform: translate3d(-50%, 0, 0) !important;
}

body[data-page="post"] .replying-to,
html.wt-forum-dark body[data-page="post"] .replying-to,
html.wt-dark-mode body[data-page="post"] .replying-to {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  padding: 7px 8px 7px 12px !important;
  border-radius: 18px !important;
  overflow: hidden !important;
}
body[data-page="post"] .replying-to[hidden] { display: none !important; }
body[data-page="post"] #replyingToText {
  min-width: 0 !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  font-size: 13px !important;
  line-height: 1.15 !important;
}
body[data-page="post"] #clearReplyBtn,
html.wt-forum-dark body[data-page="post"] #clearReplyBtn,
html.wt-dark-mode body[data-page="post"] #clearReplyBtn {
  flex: 0 0 auto !important;
  max-width: 108px !important;
  min-width: 76px !important;
  height: 32px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

body[data-page="post"] .ig-reply-preview {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
}

body[data-page="post"] .ig-comment-input-row {
  display: grid !important;
  grid-template-columns: 40px minmax(0, 1fr) auto auto !important;
  align-items: center !important;
  gap: 7px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}
body[data-page="post"] .ig-comment-avatar {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
}
body[data-page="post"] .instagram-comment-composer #commentBody,
html.wt-forum-dark body[data-page="post"] .instagram-comment-composer #commentBody,
html.wt-dark-mode body[data-page="post"] .instagram-comment-composer #commentBody {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 42px !important;
  min-height: 42px !important;
  max-height: 86px !important;
  padding: 10px 12px !important;
  font-size: 14px !important;
  line-height: 1.25 !important;
  border-radius: 20px !important;
}
body[data-page="post"] .ig-image-btn,
body[data-page="post"] .ig-send-btn {
  height: 42px !important;
  min-height: 42px !important;
  border-radius: 18px !important;
  white-space: nowrap !important;
}
body[data-page="post"] .ig-image-btn { padding: 0 12px !important; }
body[data-page="post"] .ig-send-btn { padding: 0 16px !important; }

@media (max-width: 390px) {
  body[data-page="post"] .instagram-comment-composer,
  html.wt-forum-dark body[data-page="post"] .instagram-comment-composer,
  html.wt-dark-mode body[data-page="post"] .instagram-comment-composer {
    width: calc(100vw - 8px) !important;
    max-width: calc(100vw - 8px) !important;
    padding: 7px !important;
  }
  body[data-page="post"] .ig-comment-input-row {
    grid-template-columns: 34px minmax(0, 1fr) auto auto !important;
    gap: 6px !important;
  }
  body[data-page="post"] .ig-comment-avatar {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
  }
  body[data-page="post"] .instagram-comment-composer #commentBody {
    font-size: 13px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  body[data-page="post"] .ig-image-btn { padding: 0 9px !important; font-size: 12px !important; }
  body[data-page="post"] .ig-send-btn { padding: 0 12px !important; font-size: 12px !important; }
  body[data-page="post"] #clearReplyBtn { max-width: 86px !important; min-width: 66px !important; font-size: 11px !important; }
}


/* ===== v3757: composer limpio, solo preview, bloqueo de zoom ===== */
html, body {
  -webkit-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
  touch-action: manipulation;
}
input, textarea, select, button {
  font-size: 16px !important;
}
body[data-page="post"] .replying-to,
html.wt-forum-dark body[data-page="post"] .replying-to,
html.wt-dark-mode body[data-page="post"] .replying-to {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}
body[data-page="post"] .instagram-comment-composer:not(.is-replying) .ig-reply-preview {
  display: none !important;
}
body[data-page="post"] .instagram-comment-composer.is-replying .ig-reply-preview {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 9px 10px !important;
  border-radius: 18px !important;
  background: rgba(30, 54, 96, .55) !important;
  border: 1px solid rgba(107, 158, 255, .36) !important;
  color: #eaf2ff !important;
}
body[data-page="post"] .ig-reply-preview img {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
}
body[data-page="post"] .ig-reply-preview__content {
  min-width: 0 !important;
  display: grid !important;
  gap: 2px !important;
}
body[data-page="post"] .ig-reply-preview__content strong,
body[data-page="post"] .ig-reply-preview__content p {
  margin: 0 !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  line-height: 1.18 !important;
}
body[data-page="post"] .ig-reply-preview__content strong {
  font-size: 13px !important;
  color: #ffffff !important;
  font-weight: 900 !important;
}
body[data-page="post"] .ig-reply-preview__content p {
  font-size: 12px !important;
  color: #d7e4ff !important;
  font-weight: 750 !important;
}
body[data-page="post"] .instagram-comment-composer #commentBody {
  font-size: 16px !important;
}
@media (max-width: 390px) {
  body[data-page="post"] .ig-comment-input-row {
    grid-template-columns: 34px minmax(0,1fr) auto auto !important;
  }
  body[data-page="post"] .instagram-comment-composer #commentBody {
    font-size: 16px !important;
  }
  body[data-page="post"] .ig-image-btn,
  body[data-page="post"] .ig-send-btn {
    font-size: 14px !important;
  }
}

/* ============================================================
   HOTFIX v3758 — avatar foro + perfil público legible
   - corrige el encuadre de la foto del autor en las tarjetas
   - fuerza contraste correcto del modal Perfil público en modo oscuro
   ============================================================ */
body[data-page="forum"] .fa-post-card__header,
body[data-page="forum"] .fa-post-card .fa-post-card__header {
  align-items: flex-start !important;
  gap: 12px !important;
}

body[data-page="forum"] .fa-post-card__avatar,
body[data-page="forum"] .fa-post-card__avatar.forum-author-trigger {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  flex: 0 0 44px !important;
  padding: 0 !important;
  margin: 1px 0 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #edf4ff !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,.10), 0 4px 12px rgba(0,0,0,.12) !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

body[data-page="forum"] .fa-post-card__avatar img,
body[data-page="forum"] .fa-post-card__avatar.forum-author-trigger img,
body[data-page="forum"] .fa-post-card__avatar .avatar,
body[data-page="forum"] .fa-post-card__avatar .reddit-avatar {
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 50% !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
}

body[data-page="forum"] .fa-post-card__meta {
  min-width: 0 !important;
  padding-top: 0 !important;
}

body[data-page="forum"] .fa-post-card__meta-top {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  row-gap: 6px !important;
  flex-wrap: wrap !important;
  min-width: 0 !important;
}

body[data-page="forum"] .fa-post-card__author {
  max-width: min(165px, 46vw) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.2 !important;
}

body[data-page="forum"] .fa-post-card__badges {
  display: inline-flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 5px !important;
  max-width: 100% !important;
}

body[data-page="forum"] .fa-post-card__tag {
  line-height: 1.05 !important;
}

@media (max-width: 390px) {
  body[data-page="forum"] .fa-post-card__avatar,
  body[data-page="forum"] .fa-post-card__avatar.forum-author-trigger {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    flex-basis: 40px !important;
  }
  body[data-page="forum"] .fa-post-card__author {
    max-width: 136px !important;
  }
}

/* Perfil público: modo oscuro legible */
html.wt-forum-dark .modal-card.public-profile-modal,
html.wt-dark-mode .modal-card.public-profile-modal,
html[data-theme="dark"] .modal-card.public-profile-modal {
  background: #0f1726 !important;
  color: #f8fbff !important;
  border: 1px solid rgba(148,163,184,.24) !important;
  box-shadow: 0 30px 90px rgba(0,0,0,.68) !important;
}

html.wt-forum-dark .modal-card.public-profile-modal .modal-head,
html.wt-dark-mode .modal-card.public-profile-modal .modal-head,
html[data-theme="dark"] .modal-card.public-profile-modal .modal-head {
  background: #0f1726 !important;
  border-bottom: 1px solid rgba(148,163,184,.18) !important;
}

html.wt-forum-dark .modal-card.public-profile-modal .modal-head h2,
html.wt-dark-mode .modal-card.public-profile-modal .modal-head h2,
html[data-theme="dark"] .modal-card.public-profile-modal .modal-head h2,
html.wt-forum-dark .modal-card.public-profile-modal .public-profile-headtext h3,
html.wt-dark-mode .modal-card.public-profile-modal .public-profile-headtext h3,
html[data-theme="dark"] .modal-card.public-profile-modal .public-profile-headtext h3 {
  color: #ffffff !important;
  opacity: 1 !important;
  text-shadow: none !important;
  -webkit-text-fill-color: #ffffff !important;
}

html.wt-forum-dark .modal-card.public-profile-modal .public-profile-card,
html.wt-dark-mode .modal-card.public-profile-modal .public-profile-card,
html[data-theme="dark"] .modal-card.public-profile-modal .public-profile-card {
  background: transparent !important;
  color: #f8fbff !important;
}

html.wt-forum-dark .modal-card.public-profile-modal .public-profile-hero,
html.wt-dark-mode .modal-card.public-profile-modal .public-profile-hero,
html[data-theme="dark"] .modal-card.public-profile-modal .public-profile-hero {
  background: transparent !important;
}

html.wt-forum-dark .modal-card.public-profile-modal .public-profile-avatar-wrap,
html.wt-dark-mode .modal-card.public-profile-modal .public-profile-avatar-wrap,
html[data-theme="dark"] .modal-card.public-profile-modal .public-profile-avatar-wrap {
  background: #eaf2ff !important;
  border-color: #f8fbff !important;
}

html.wt-forum-dark .modal-card.public-profile-modal .public-profile-bio-card,
html.wt-dark-mode .modal-card.public-profile-modal .public-profile-bio-card,
html[data-theme="dark"] .modal-card.public-profile-modal .public-profile-bio-card {
  background: rgba(30, 41, 59, .86) !important;
  border: 1px solid rgba(148, 163, 184, .28) !important;
}

html.wt-forum-dark .modal-card.public-profile-modal .public-profile-bio,
html.wt-dark-mode .modal-card.public-profile-modal .public-profile-bio,
html[data-theme="dark"] .modal-card.public-profile-modal .public-profile-bio {
  color: #e5edf9 !important;
  -webkit-text-fill-color: #e5edf9 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

html.wt-forum-dark .modal-card.public-profile-modal .public-profile-bio.is-empty,
html.wt-dark-mode .modal-card.public-profile-modal .public-profile-bio.is-empty,
html[data-theme="dark"] .modal-card.public-profile-modal .public-profile-bio.is-empty,
html.wt-forum-dark .modal-card.public-profile-modal .public-profile-meta.is-empty,
html.wt-dark-mode .modal-card.public-profile-modal .public-profile-meta.is-empty,
html[data-theme="dark"] .modal-card.public-profile-modal .public-profile-meta.is-empty {
  color: #cbd5e1 !important;
  -webkit-text-fill-color: #cbd5e1 !important;
  opacity: 1 !important;
}

html.wt-forum-dark .modal-card.public-profile-modal .public-profile-chip,
html.wt-dark-mode .modal-card.public-profile-modal .public-profile-chip,
html[data-theme="dark"] .modal-card.public-profile-modal .public-profile-chip {
  background: #eef5ff !important;
  color: #0b3a75 !important;
  -webkit-text-fill-color: #0b3a75 !important;
  border: 1px solid rgba(255,255,255,.22) !important;
}

html.wt-forum-dark .modal-card.public-profile-modal .modal-close,
html.wt-dark-mode .modal-card.public-profile-modal .modal-close,
html[data-theme="dark"] .modal-card.public-profile-modal .modal-close {
  background: #eef5ff !important;
  color: #063b82 !important;
  -webkit-text-fill-color: #063b82 !important;
}


/* ============================================================
   HOTFIX v3759 — preview con X + composer estable cuando se comenta al post
   ============================================================ */
body[data-page="post"] .instagram-comment-composer,
html.wt-forum-dark body[data-page="post"] .instagram-comment-composer,
html.wt-dark-mode body[data-page="post"] .instagram-comment-composer {
  width: min(430px, calc(100vw - 14px)) !important;
  max-width: calc(100vw - 14px) !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 7px !important;
  padding: 8px !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

body[data-page="post"] .instagram-comment-composer.keyboard-open,
body[data-page="post"].comment-composer-focused .instagram-comment-composer.keyboard-open,
html.wt-forum-dark body[data-page="post"] .instagram-comment-composer.keyboard-open,
html.wt-dark-mode body[data-page="post"] .instagram-comment-composer.keyboard-open {
  position: fixed !important;
  top: var(--comment-composer-top, auto) !important;
  bottom: auto !important;
  transform: translate3d(-50%, 0, 0) !important;
}

/* Si se comenta la publicación principal, no debe aparecer preview ni espacio vacío. */
body[data-page="post"] .instagram-comment-composer:not(.is-replying) .ig-reply-preview,
body[data-page="post"] .ig-reply-preview[hidden] {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

/* Si se responde a un comentario, solo aparece la vista previa con botón X. */
body[data-page="post"] .instagram-comment-composer.is-replying .ig-reply-preview,
html.wt-forum-dark body[data-page="post"] .instagram-comment-composer.is-replying .ig-reply-preview,
html.wt-dark-mode body[data-page="post"] .instagram-comment-composer.is-replying .ig-reply-preview {
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) 32px !important;
  align-items: center !important;
  gap: 9px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  padding: 8px 8px !important;
  border-radius: 18px !important;
  background: rgba(21, 38, 68, .92) !important;
  border: 1px solid rgba(96, 165, 250, .42) !important;
  box-shadow: inset 4px 0 0 rgba(96,165,250,.82) !important;
  color: #eaf2ff !important;
  overflow: hidden !important;
}
body[data-page="post"] .ig-reply-preview img {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
}
body[data-page="post"] .ig-reply-preview__content {
  min-width: 0 !important;
  overflow: hidden !important;
}
body[data-page="post"] .ig-reply-preview__content strong,
body[data-page="post"] .ig-reply-preview__content p {
  display: block !important;
  margin: 0 !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  line-height: 1.18 !important;
}
body[data-page="post"] .ig-reply-preview__content strong {
  font-size: 13px !important;
  font-weight: 900 !important;
  color: #fff !important;
}
body[data-page="post"] .ig-reply-preview__content p {
  margin-top: 2px !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  color: #d7e4ff !important;
}
body[data-page="post"] .ig-reply-preview__close,
html.wt-forum-dark body[data-page="post"] .ig-reply-preview__close,
html.wt-dark-mode body[data-page="post"] .ig-reply-preview__close {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  border: 0 !important;
  border-radius: 50% !important;
  display: grid !important;
  place-items: center !important;
  background: rgba(148, 163, 184, .18) !important;
  color: #eaf2ff !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  padding: 0 !important;
}
body[data-page="post"] .ig-reply-preview__close:active {
  transform: scale(.94) !important;
  background: rgba(96, 165, 250, .28) !important;
}

body[data-page="post"] .ig-comment-input-row {
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) auto auto !important;
  align-items: center !important;
  gap: 7px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}
body[data-page="post"] .instagram-comment-composer #commentBody,
html.wt-forum-dark body[data-page="post"] .instagram-comment-composer #commentBody,
html.wt-dark-mode body[data-page="post"] .instagram-comment-composer #commentBody {
  width: 100% !important;
  min-width: 0 !important;
  height: 42px !important;
  min-height: 42px !important;
  max-height: 86px !important;
  padding: 10px 12px !important;
  font-size: 16px !important;
  line-height: 1.2 !important;
  border-radius: 21px !important;
  overflow-y: auto !important;
}
body[data-page="post"] .ig-image-btn,
body[data-page="post"] .ig-send-btn {
  height: 42px !important;
  min-height: 42px !important;
  border-radius: 18px !important;
  white-space: nowrap !important;
  flex: 0 0 auto !important;
}
body[data-page="post"] .ig-image-btn { padding: 0 12px !important; }
body[data-page="post"] .ig-send-btn { padding: 0 16px !important; }

@media (max-width: 390px) {
  body[data-page="post"] .instagram-comment-composer,
  html.wt-forum-dark body[data-page="post"] .instagram-comment-composer,
  html.wt-dark-mode body[data-page="post"] .instagram-comment-composer {
    width: calc(100vw - 8px) !important;
    max-width: calc(100vw - 8px) !important;
    padding: 7px !important;
  }
  body[data-page="post"] .ig-comment-input-row {
    grid-template-columns: 32px minmax(0, 1fr) auto auto !important;
    gap: 6px !important;
  }
  body[data-page="post"] .instagram-comment-composer .ig-comment-avatar,
  body[data-page="post"] #commentComposerAvatar {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
  }
  body[data-page="post"] .ig-image-btn { padding: 0 9px !important; font-size: 13px !important; }
  body[data-page="post"] .ig-send-btn { padding: 0 11px !important; font-size: 13px !important; }
}

/* ============================================================
   HOTFIX v3761 — composer estable + preview Liquid Glass
   ============================================================ */
body[data-page="post"] {
  --ig-composer-w: min(430px, calc(100vw - 18px));
  --ig-composer-bottom: calc(env(safe-area-inset-bottom, 0px) + 78px);
}

body[data-page="post"] .instagram-comment-composer,
html.wt-forum-dark body[data-page="post"] .instagram-comment-composer,
html.wt-dark-mode body[data-page="post"] .instagram-comment-composer,
html[data-theme="dark"] body[data-page="post"] .instagram-comment-composer {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  bottom: var(--ig-composer-bottom) !important;
  top: auto !important;
  width: var(--ig-composer-w) !important;
  max-width: var(--ig-composer-w) !important;
  min-height: 62px !important;
  height: auto !important;
  max-height: none !important;
  transform: translate3d(-50%, 0, 0) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 8px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  border-radius: 24px !important;
  border: 1px solid rgba(148, 163, 184, .30) !important;
  background: rgba(255, 255, 255, .82) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.35) !important;
  backdrop-filter: blur(24px) saturate(1.35) !important;
  box-shadow: 0 14px 42px rgba(15, 23, 42, .16), inset 0 1px 0 rgba(255,255,255,.68) !important;
  z-index: 2147482500 !important;
}

html.wt-forum-dark body[data-page="post"] .instagram-comment-composer,
html.wt-dark-mode body[data-page="post"] .instagram-comment-composer,
html[data-theme="dark"] body[data-page="post"] .instagram-comment-composer {
  border-color: rgba(148, 163, 184, .22) !important;
  background: rgba(13, 20, 35, .72) !important;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255,255,255,.08) !important;
}

body[data-page="post"] .instagram-comment-composer.keyboard-open,
body[data-page="post"].comment-composer-focused .instagram-comment-composer.keyboard-open,
html.wt-forum-dark body[data-page="post"] .instagram-comment-composer.keyboard-open,
html.wt-dark-mode body[data-page="post"] .instagram-comment-composer.keyboard-open,
html[data-theme="dark"] body[data-page="post"] .instagram-comment-composer.keyboard-open {
  top: var(--comment-composer-top, auto) !important;
  bottom: auto !important;
  height: auto !important;
  min-height: 62px !important;
  max-height: calc(100vh - 12px) !important;
  transform: translate3d(-50%, 0, 0) !important;
}

body[data-page="post"] .instagram-comment-composer:not(.is-replying) {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

body[data-page="post"] .instagram-comment-composer:not(.is-replying) .ig-reply-preview,
body[data-page="post"] .instagram-comment-composer:not(.is-replying) #replyPreviewBox,
body[data-page="post"] .ig-reply-preview[hidden],
body[data-page="post"] #replyPreviewBox[hidden] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

body[data-page="post"] .instagram-comment-composer.is-replying .ig-reply-preview,
html.wt-forum-dark body[data-page="post"] .instagram-comment-composer.is-replying .ig-reply-preview,
html.wt-dark-mode body[data-page="post"] .instagram-comment-composer.is-replying .ig-reply-preview,
html[data-theme="dark"] body[data-page="post"] .instagram-comment-composer.is-replying .ig-reply-preview {
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) 34px !important;
  align-items: center !important;
  gap: 9px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 52px !important;
  height: auto !important;
  padding: 7px 8px !important;
  margin: 0 !important;
  border-radius: 18px !important;
  border: 1px solid rgba(96, 165, 250, .38) !important;
  background: rgba(17, 35, 65, .62) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.45) !important;
  backdrop-filter: blur(22px) saturate(1.45) !important;
  box-shadow: inset 4px 0 0 rgba(96, 165, 250, .95), 0 8px 24px rgba(15, 23, 42, .18) !important;
  overflow: hidden !important;
}

body[data-page="post"] .ig-reply-preview img {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  background: #fff !important;
}

body[data-page="post"] .ig-reply-preview__content {
  min-width: 0 !important;
  overflow: hidden !important;
}
body[data-page="post"] .ig-reply-preview__content strong,
body[data-page="post"] .ig-reply-preview__content p {
  display: block !important;
  margin: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  line-height: 1.15 !important;
}
body[data-page="post"] .ig-reply-preview__content strong {
  font-size: 13px !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
body[data-page="post"] .ig-reply-preview__content p {
  margin-top: 2px !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  color: rgba(231, 240, 255, .92) !important;
  -webkit-text-fill-color: rgba(231, 240, 255, .92) !important;
}

body[data-page="post"] .ig-reply-preview__close,
html.wt-forum-dark body[data-page="post"] .ig-reply-preview__close,
html.wt-dark-mode body[data-page="post"] .ig-reply-preview__close,
html[data-theme="dark"] body[data-page="post"] .ig-reply-preview__close {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  border: 0 !important;
  border-radius: 50% !important;
  display: grid !important;
  place-items: center !important;
  background: rgba(255, 255, 255, .16) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: 24px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  padding: 0 0 2px !important;
}

body[data-page="post"] .ig-comment-input-row {
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) auto auto !important;
  align-items: center !important;
  gap: 7px !important;
  width: 100% !important;
  min-height: 46px !important;
  min-width: 0 !important;
}

body[data-page="post"] .instagram-comment-composer .ig-comment-avatar,
body[data-page="post"] #commentComposerAvatar {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  background: #fff !important;
}

body[data-page="post"] .instagram-comment-composer #commentBody,
html.wt-forum-dark body[data-page="post"] .instagram-comment-composer #commentBody,
html.wt-dark-mode body[data-page="post"] .instagram-comment-composer #commentBody,
html[data-theme="dark"] body[data-page="post"] .instagram-comment-composer #commentBody {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 90px !important;
  padding: 10px 13px !important;
  border-radius: 22px !important;
  border: 1px solid rgba(148, 163, 184, .28) !important;
  background: rgba(248, 250, 252, .92) !important;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  font-size: 16px !important;
  font-weight: 750 !important;
  line-height: 1.2 !important;
  resize: none !important;
  overflow-y: auto !important;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .04) !important;
}
html.wt-forum-dark body[data-page="post"] .instagram-comment-composer #commentBody,
html.wt-dark-mode body[data-page="post"] .instagram-comment-composer #commentBody,
html[data-theme="dark"] body[data-page="post"] .instagram-comment-composer #commentBody {
  border-color: rgba(148, 163, 184, .25) !important;
  background: rgba(15, 23, 42, .58) !important;
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
}
body[data-page="post"] .instagram-comment-composer #commentBody::placeholder {
  color: rgba(71, 85, 105, .82) !important;
  -webkit-text-fill-color: rgba(71, 85, 105, .82) !important;
}
html.wt-forum-dark body[data-page="post"] .instagram-comment-composer #commentBody::placeholder,
html.wt-dark-mode body[data-page="post"] .instagram-comment-composer #commentBody::placeholder,
html[data-theme="dark"] body[data-page="post"] .instagram-comment-composer #commentBody::placeholder {
  color: rgba(226, 232, 240, .82) !important;
  -webkit-text-fill-color: rgba(226, 232, 240, .82) !important;
}

body[data-page="post"] .ig-image-btn,
body[data-page="post"] .ig-send-btn {
  height: 44px !important;
  min-height: 44px !important;
  border-radius: 20px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  flex: 0 0 auto !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}
body[data-page="post"] .ig-image-btn { padding: 0 13px !important; }
body[data-page="post"] .ig-send-btn { padding: 0 16px !important; }

@media (max-width: 390px) {
  body[data-page="post"] { --ig-composer-w: calc(100vw - 8px); }
  body[data-page="post"] .instagram-comment-composer,
  html.wt-forum-dark body[data-page="post"] .instagram-comment-composer,
  html.wt-dark-mode body[data-page="post"] .instagram-comment-composer,
  html[data-theme="dark"] body[data-page="post"] .instagram-comment-composer {
    padding: 7px !important;
    border-radius: 22px !important;
  }
  body[data-page="post"] .ig-comment-input-row {
    grid-template-columns: 34px minmax(0, 1fr) auto auto !important;
    gap: 6px !important;
  }
  body[data-page="post"] .instagram-comment-composer .ig-comment-avatar,
  body[data-page="post"] #commentComposerAvatar {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
  }
  body[data-page="post"] .instagram-comment-composer #commentBody {
    height: 42px !important;
    min-height: 42px !important;
    padding: 9px 11px !important;
  }
  body[data-page="post"] .ig-image-btn { height: 42px !important; min-height: 42px !important; padding: 0 10px !important; font-size: 13px !important; }
  body[data-page="post"] .ig-send-btn { height: 42px !important; min-height: 42px !important; padding: 0 12px !important; font-size: 13px !important; }
}

/* ============================================================
   HOTFIX v3762 — composer estable sin fondo blanco
   ============================================================ */
body[data-page="post"] {
  --ig-composer-w: min(430px, calc(100vw - 18px));
}

body[data-page="post"] .instagram-comment-composer,
html.wt-forum-dark body[data-page="post"] .instagram-comment-composer,
html.wt-dark-mode body[data-page="post"] .instagram-comment-composer,
html[data-theme="dark"] body[data-page="post"] .instagram-comment-composer {
  display: grid !important;
  grid-template-rows: auto auto !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  gap: 8px !important;
  width: var(--ig-composer-w) !important;
  max-width: var(--ig-composer-w) !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 8px !important;
  overflow: visible !important;
  background: rgba(255, 255, 255, .34) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.45) !important;
  backdrop-filter: blur(22px) saturate(1.45) !important;
  border: 1px solid rgba(255,255,255,.52) !important;
  box-shadow: 0 14px 36px rgba(15,23,42,.18), inset 0 1px 0 rgba(255,255,255,.64) !important;
  contain: layout paint !important;
}
html.wt-forum-dark body[data-page="post"] .instagram-comment-composer,
html.wt-dark-mode body[data-page="post"] .instagram-comment-composer,
html[data-theme="dark"] body[data-page="post"] .instagram-comment-composer {
  background: rgba(10, 16, 29, .58) !important;
  border-color: rgba(148,163,184,.22) !important;
  box-shadow: 0 16px 42px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.08) !important;
}
body[data-page="post"] .instagram-comment-composer.keyboard-open,
body[data-page="post"].comment-composer-focused .instagram-comment-composer.keyboard-open,
html.wt-forum-dark body[data-page="post"] .instagram-comment-composer.keyboard-open,
html.wt-dark-mode body[data-page="post"] .instagram-comment-composer.keyboard-open,
html[data-theme="dark"] body[data-page="post"] .instagram-comment-composer.keyboard-open {
  position: fixed !important;
  top: var(--comment-composer-top, auto) !important;
  bottom: auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: calc(100dvh - 12px) !important;
  transform: translate3d(-50%, 0, 0) !important;
  will-change: transform, top !important;
}

body[data-page="post"] .instagram-comment-composer:not(.is-replying) {
  grid-template-rows: auto !important;
}
body[data-page="post"] .instagram-comment-composer:not(.is-replying) .ig-reply-preview,
body[data-page="post"] .instagram-comment-composer:not(.is-replying) #replyPreviewBox,
body[data-page="post"] .ig-reply-preview[hidden],
body[data-page="post"] #replyPreviewBox[hidden] {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

body[data-page="post"] .instagram-comment-composer.is-replying .ig-reply-preview,
html.wt-forum-dark body[data-page="post"] .instagram-comment-composer.is-replying .ig-reply-preview,
html.wt-dark-mode body[data-page="post"] .instagram-comment-composer.is-replying .ig-reply-preview,
html[data-theme="dark"] body[data-page="post"] .instagram-comment-composer.is-replying .ig-reply-preview {
  display: grid !important;
  grid-template-columns: 36px minmax(0, 1fr) 34px !important;
  align-items: center !important;
  gap: 9px !important;
  min-height: 50px !important;
  margin: 0 !important;
  padding: 7px 8px !important;
  border-radius: 19px !important;
  background: rgba(19, 39, 72, .62) !important;
  border: 1px solid rgba(96, 165, 250, .42) !important;
  -webkit-backdrop-filter: blur(26px) saturate(1.55) !important;
  backdrop-filter: blur(26px) saturate(1.55) !important;
  box-shadow: inset 4px 0 0 rgba(96,165,250,.95), 0 10px 24px rgba(15,23,42,.16) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body[data-page="post"] .ig-reply-preview__close,
html.wt-forum-dark body[data-page="post"] .ig-reply-preview__close,
html.wt-dark-mode body[data-page="post"] .ig-reply-preview__close,
html[data-theme="dark"] body[data-page="post"] .ig-reply-preview__close {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.18) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

body[data-page="post"] .ig-comment-input-row {
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) auto auto !important;
  align-items: center !important;
  gap: 7px !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 46px !important;
}
body[data-page="post"] .instagram-comment-composer #commentBody {
  min-height: 44px !important;
  height: 44px !important;
  max-height: 86px !important;
  overflow-y: auto !important;
}

@media (max-width: 390px) {
  body[data-page="post"] { --ig-composer-w: calc(100vw - 10px); }
  body[data-page="post"] .instagram-comment-composer,
  html.wt-forum-dark body[data-page="post"] .instagram-comment-composer,
  html.wt-dark-mode body[data-page="post"] .instagram-comment-composer,
  html[data-theme="dark"] body[data-page="post"] .instagram-comment-composer {
    padding: 7px !important;
  }
  body[data-page="post"] .ig-comment-input-row {
    grid-template-columns: 34px minmax(0, 1fr) auto auto !important;
    gap: 6px !important;
  }
}

/* ============================================================
   HOTFIX v3764 — composer compacto sin cuadro blanco
   ============================================================ */
body[data-page="post"] {
  --ig-composer-w: min(430px, calc(100vw - 18px));
}

body[data-page="post"] .instagram-comment-composer,
html.wt-forum-dark body[data-page="post"] .instagram-comment-composer,
html.wt-dark-mode body[data-page="post"] .instagram-comment-composer,
html[data-theme="dark"] body[data-page="post"] .instagram-comment-composer {
  display: grid !important;
  grid-template-rows: auto auto !important;
  gap: 6px !important;
  width: var(--ig-composer-w) !important;
  max-width: var(--ig-composer-w) !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  contain: none !important;
  pointer-events: none !important;
}

body[data-page="post"] .instagram-comment-composer > *,
body[data-page="post"] .instagram-comment-composer .ig-comment-input-row,
body[data-page="post"] .instagram-comment-composer .ig-reply-preview {
  pointer-events: auto !important;
}

body[data-page="post"] .instagram-comment-composer.keyboard-open,
body[data-page="post"].comment-composer-focused .instagram-comment-composer.keyboard-open,
html.wt-forum-dark body[data-page="post"] .instagram-comment-composer.keyboard-open,
html.wt-dark-mode body[data-page="post"] .instagram-comment-composer.keyboard-open,
html[data-theme="dark"] body[data-page="post"] .instagram-comment-composer.keyboard-open {
  position: fixed !important;
  top: var(--comment-composer-top, auto) !important;
  bottom: auto !important;
  transform: translate3d(-50%, 0, 0) !important;
  z-index: 9998 !important;
}

body[data-page="post"] .instagram-comment-composer:not(.is-replying) {
  grid-template-rows: auto !important;
}
body[data-page="post"] .instagram-comment-composer:not(.is-replying) .ig-reply-preview,
body[data-page="post"] .instagram-comment-composer:not(.is-replying) #replyPreviewBox,
body[data-page="post"] .ig-reply-preview[hidden],
body[data-page="post"] #replyPreviewBox[hidden] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}

body[data-page="post"] .instagram-comment-composer.is-replying .ig-reply-preview,
html.wt-forum-dark body[data-page="post"] .instagram-comment-composer.is-replying .ig-reply-preview,
html.wt-dark-mode body[data-page="post"] .instagram-comment-composer.is-replying .ig-reply-preview,
html[data-theme="dark"] body[data-page="post"] .instagram-comment-composer.is-replying .ig-reply-preview {
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) 34px !important;
  align-items: center !important;
  gap: 9px !important;
  width: 100% !important;
  min-height: 54px !important;
  margin: 0 !important;
  padding: 8px 9px !important;
  border-radius: 21px !important;
  background: rgba(20, 37, 64, .62) !important;
  border: 1px solid rgba(96, 165, 250, .40) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.6) !important;
  backdrop-filter: blur(24px) saturate(1.6) !important;
  box-shadow: inset 4px 0 0 rgba(96,165,250,.95), 0 12px 28px rgba(15,23,42,.18) !important;
  opacity: 1 !important;
  visibility: visible !important;
}
html:not(.wt-forum-dark):not(.wt-dark-mode) body[data-page="post"] .instagram-comment-composer.is-replying .ig-reply-preview {
  background: rgba(16, 44, 86, .55) !important;
  border-color: rgba(37,99,235,.30) !important;
}
body[data-page="post"] .ig-reply-preview img {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
}
body[data-page="post"] .ig-reply-preview__content {
  min-width: 0 !important;
  overflow: hidden !important;
}
body[data-page="post"] .ig-reply-preview__content strong,
body[data-page="post"] .ig-reply-preview__content p {
  display: block !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
body[data-page="post"] .ig-reply-preview__content strong { font-size: 13.5px !important; font-weight: 900 !important; }
body[data-page="post"] .ig-reply-preview__content p { font-size: 12.5px !important; font-weight: 800 !important; opacity: .92 !important; }
body[data-page="post"] .ig-reply-preview__close,
html.wt-forum-dark body[data-page="post"] .ig-reply-preview__close,
html.wt-dark-mode body[data-page="post"] .ig-reply-preview__close,
html[data-theme="dark"] body[data-page="post"] .ig-reply-preview__close {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255,255,255,.18) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: 24px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

body[data-page="post"] .ig-comment-input-row,
html.wt-forum-dark body[data-page="post"] .ig-comment-input-row,
html.wt-dark-mode body[data-page="post"] .ig-comment-input-row,
html[data-theme="dark"] body[data-page="post"] .ig-comment-input-row {
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) auto auto !important;
  align-items: center !important;
  gap: 7px !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 58px !important;
  padding: 7px 8px !important;
  border-radius: 26px !important;
  background: rgba(255,255,255,.70) !important;
  border: 1px solid rgba(226,232,240,.78) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.55) !important;
  backdrop-filter: blur(22px) saturate(1.55) !important;
  box-shadow: 0 12px 30px rgba(15,23,42,.13), inset 0 1px 0 rgba(255,255,255,.72) !important;
}
html.wt-forum-dark body[data-page="post"] .ig-comment-input-row,
html.wt-dark-mode body[data-page="post"] .ig-comment-input-row,
html[data-theme="dark"] body[data-page="post"] .ig-comment-input-row {
  background: rgba(10, 16, 29, .72) !important;
  border-color: rgba(148,163,184,.20) !important;
  box-shadow: 0 14px 34px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.06) !important;
}
body[data-page="post"] .instagram-comment-composer .ig-comment-avatar,
body[data-page="post"] #commentComposerAvatar {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
}
body[data-page="post"] .instagram-comment-composer #commentBody,
html.wt-forum-dark body[data-page="post"] .instagram-comment-composer #commentBody,
html.wt-dark-mode body[data-page="post"] .instagram-comment-composer #commentBody,
html[data-theme="dark"] body[data-page="post"] .instagram-comment-composer #commentBody {
  width: 100% !important;
  min-width: 0 !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 84px !important;
  padding: 10px 12px !important;
  border-radius: 22px !important;
  font-size: 16px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  overflow-y: auto !important;
  resize: none !important;
}
body[data-page="post"] .instagram-comment-composer .ig-image-btn,
body[data-page="post"] .instagram-comment-composer .ig-send-btn {
  height: 44px !important;
  min-height: 44px !important;
  border-radius: 20px !important;
  flex: 0 0 auto !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}
body[data-page="post"] .instagram-comment-composer .ig-image-btn { padding: 0 13px !important; }
body[data-page="post"] .instagram-comment-composer .ig-send-btn { padding: 0 16px !important; }

@media (max-width: 390px) {
  body[data-page="post"] { --ig-composer-w: calc(100vw - 10px); }
  body[data-page="post"] .ig-comment-input-row,
  html.wt-forum-dark body[data-page="post"] .ig-comment-input-row,
  html.wt-dark-mode body[data-page="post"] .ig-comment-input-row,
  html[data-theme="dark"] body[data-page="post"] .ig-comment-input-row {
    grid-template-columns: 34px minmax(0, 1fr) auto auto !important;
    gap: 6px !important;
    min-height: 56px !important;
    padding: 7px !important;
  }
  body[data-page="post"] .instagram-comment-composer .ig-comment-avatar,
  body[data-page="post"] #commentComposerAvatar {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
  }
  body[data-page="post"] .instagram-comment-composer .ig-image-btn { padding: 0 10px !important; font-size: 13px !important; }
  body[data-page="post"] .instagram-comment-composer .ig-send-btn { padding: 0 12px !important; font-size: 13px !important; }
}


/* ============================================================
   HOTFIX v3764 — composer sin pantalla blanca, fijo sobre teclado
   ============================================================ */
body[data-page="post"] {
  --ig-composer-w: min(430px, calc(100vw - 18px));
  --comment-keyboard-offset: 0px;
  padding-bottom: 126px !important;
}

body[data-page="post"] .instagram-comment-composer,
html.wt-forum-dark body[data-page="post"] .instagram-comment-composer,
html.wt-dark-mode body[data-page="post"] .instagram-comment-composer,
html[data-theme="dark"] body[data-page="post"] .instagram-comment-composer {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  top: auto !important;
  bottom: calc(var(--comment-keyboard-offset, 0px) + env(safe-area-inset-bottom, 0px) + 10px) !important;
  transform: translate3d(-50%, 0, 0) !important;
  width: var(--ig-composer-w) !important;
  max-width: var(--ig-composer-w) !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 7px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  overflow: visible !important;
  contain: none !important;
  pointer-events: none !important;
  z-index: 2147483000 !important;
}

body[data-page="post"] .instagram-comment-composer.keyboard-open,
body[data-page="post"].comment-composer-focused .instagram-comment-composer.keyboard-open,
html.wt-forum-dark body[data-page="post"] .instagram-comment-composer.keyboard-open,
html.wt-dark-mode body[data-page="post"] .instagram-comment-composer.keyboard-open,
html[data-theme="dark"] body[data-page="post"] .instagram-comment-composer.keyboard-open {
  top: auto !important;
  bottom: calc(var(--comment-keyboard-offset, 0px) + env(safe-area-inset-bottom, 0px) + 10px) !important;
  transform: translate3d(-50%, 0, 0) !important;
}

body[data-page="post"] .instagram-comment-composer > *,
body[data-page="post"] .instagram-comment-composer .ig-reply-preview,
body[data-page="post"] .instagram-comment-composer .ig-comment-input-row {
  pointer-events: auto !important;
}

/* Nada de caja blanca cuando se comenta la publicación principal */
body[data-page="post"] .instagram-comment-composer:not(.is-replying) .ig-reply-preview,
body[data-page="post"] .instagram-comment-composer:not(.is-replying) #replyPreviewBox,
body[data-page="post"] .ig-reply-preview[hidden],
body[data-page="post"] #replyPreviewBox[hidden] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

/* Preview del comentario y barra de escribir siempre juntos */
body[data-page="post"] .instagram-comment-composer.is-replying .ig-reply-preview,
html.wt-forum-dark body[data-page="post"] .instagram-comment-composer.is-replying .ig-reply-preview,
html.wt-dark-mode body[data-page="post"] .instagram-comment-composer.is-replying .ig-reply-preview,
html[data-theme="dark"] body[data-page="post"] .instagram-comment-composer.is-replying .ig-reply-preview {
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) 34px !important;
  align-items: center !important;
  gap: 9px !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 54px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 8px 9px !important;
  border-radius: 22px !important;
  border: 1px solid rgba(96, 165, 250, .38) !important;
  background: rgba(24, 43, 72, .58) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.55) !important;
  backdrop-filter: blur(24px) saturate(1.55) !important;
  box-shadow: inset 4px 0 0 rgba(96, 165, 250, .9), 0 12px 32px rgba(15, 23, 42, .18) !important;
  overflow: hidden !important;
  opacity: 1 !important;
  visibility: visible !important;
}
html:not(.wt-forum-dark):not(.wt-dark-mode) body[data-page="post"] .instagram-comment-composer.is-replying .ig-reply-preview {
  background: rgba(32, 58, 94, .55) !important;
  border-color: rgba(37, 99, 235, .30) !important;
}

body[data-page="post"] .ig-reply-preview img {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  background: #fff !important;
}
body[data-page="post"] .ig-reply-preview__content {
  min-width: 0 !important;
  overflow: hidden !important;
}
body[data-page="post"] .ig-reply-preview__content strong,
body[data-page="post"] .ig-reply-preview__content p {
  display: block !important;
  margin: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  line-height: 1.15 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
body[data-page="post"] .ig-reply-preview__content strong { font-size: 13.5px !important; font-weight: 900 !important; }
body[data-page="post"] .ig-reply-preview__content p { margin-top: 2px !important; font-size: 12.5px !important; font-weight: 800 !important; opacity: .92 !important; }
body[data-page="post"] .ig-reply-preview__close,
html.wt-forum-dark body[data-page="post"] .ig-reply-preview__close,
html.wt-dark-mode body[data-page="post"] .ig-reply-preview__close,
html[data-theme="dark"] body[data-page="post"] .ig-reply-preview__close {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  padding: 0 0 2px !important;
  border: 0 !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255, 255, 255, .18) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: 24px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

body[data-page="post"] .ig-comment-input-row,
html.wt-forum-dark body[data-page="post"] .ig-comment-input-row,
html.wt-dark-mode body[data-page="post"] .ig-comment-input-row,
html[data-theme="dark"] body[data-page="post"] .ig-comment-input-row {
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) auto auto !important;
  align-items: center !important;
  gap: 7px !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 58px !important;
  height: auto !important;
  padding: 7px 8px !important;
  margin: 0 !important;
  border-radius: 26px !important;
  background: rgba(255, 255, 255, .72) !important;
  border: 1px solid rgba(226, 232, 240, .76) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.55) !important;
  backdrop-filter: blur(22px) saturate(1.55) !important;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .13), inset 0 1px 0 rgba(255,255,255,.72) !important;
  overflow: visible !important;
}
html.wt-forum-dark body[data-page="post"] .ig-comment-input-row,
html.wt-dark-mode body[data-page="post"] .ig-comment-input-row,
html[data-theme="dark"] body[data-page="post"] .ig-comment-input-row {
  background: rgba(10, 16, 29, .76) !important;
  border-color: rgba(148, 163, 184, .22) !important;
  box-shadow: 0 14px 34px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.06) !important;
}

body[data-page="post"] .instagram-comment-composer .ig-comment-avatar,
body[data-page="post"] #commentComposerAvatar {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  align-self: center !important;
}
body[data-page="post"] .instagram-comment-composer #commentBody,
html.wt-forum-dark body[data-page="post"] .instagram-comment-composer #commentBody,
html.wt-dark-mode body[data-page="post"] .instagram-comment-composer #commentBody,
html[data-theme="dark"] body[data-page="post"] .instagram-comment-composer #commentBody {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 88px !important;
  padding: 10px 12px !important;
  border-radius: 22px !important;
  font-size: 16px !important;
  line-height: 1.22 !important;
  font-weight: 800 !important;
  resize: none !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
}
body[data-page="post"] .instagram-comment-composer .ig-image-btn,
body[data-page="post"] .instagram-comment-composer .ig-send-btn {
  height: 44px !important;
  min-height: 44px !important;
  border-radius: 20px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  flex: 0 0 auto !important;
  font-size: 14px !important;
  font-weight: 900 !important;
}
body[data-page="post"] .instagram-comment-composer .ig-image-btn { padding: 0 13px !important; }
body[data-page="post"] .instagram-comment-composer .ig-send-btn { padding: 0 16px !important; }

body[data-page="post"].comment-composer-focused .bottom-nav,
body[data-page="post"].comment-keyboard-open .bottom-nav,
body[data-page="post"].comment-composer-focused .mobile-bottom-nav,
body[data-page="post"].comment-keyboard-open .mobile-bottom-nav,
html.comment-composer-focused body[data-page="post"] .bottom-nav,
html.comment-keyboard-open body[data-page="post"] .bottom-nav {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translate3d(-50%, 140%, 0) !important;
}

@media (max-width: 390px) {
  body[data-page="post"] { --ig-composer-w: calc(100vw - 10px); }
  body[data-page="post"] .ig-comment-input-row,
  html.wt-forum-dark body[data-page="post"] .ig-comment-input-row,
  html.wt-dark-mode body[data-page="post"] .ig-comment-input-row,
  html[data-theme="dark"] body[data-page="post"] .ig-comment-input-row {
    grid-template-columns: 34px minmax(0, 1fr) auto auto !important;
    gap: 6px !important;
    min-height: 56px !important;
    padding: 7px !important;
  }
  body[data-page="post"] .instagram-comment-composer .ig-comment-avatar,
  body[data-page="post"] #commentComposerAvatar {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
  }
  body[data-page="post"] .instagram-comment-composer .ig-image-btn { padding: 0 10px !important; font-size: 13px !important; }
  body[data-page="post"] .instagram-comment-composer .ig-send-btn { padding: 0 12px !important; font-size: 13px !important; }
}


/* ============================================================
   HOTFIX v3765 — Composer sin cuadro blanco y fijo sobre teclado
   ============================================================ */
body[data-page="post"] {
  --ig-composer-w: min(430px, calc(100vw - 16px));
  --comment-keyboard-offset: 0px;
  padding-bottom: 128px !important;
}

body[data-page="post"] #commentComposer.instagram-comment-composer,
body[data-page="post"] #commentComposer.comment-box,
body[data-page="post"] #commentComposer.reddit-comment-composer,
html.wt-forum-dark body[data-page="post"] #commentComposer.instagram-comment-composer,
html.wt-dark-mode body[data-page="post"] #commentComposer.instagram-comment-composer,
html[data-theme="dark"] body[data-page="post"] #commentComposer.instagram-comment-composer {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  top: auto !important;
  bottom: calc(var(--comment-keyboard-offset, 0px) + env(safe-area-inset-bottom, 0px) + 12px) !important;
  width: var(--ig-composer-w) !important;
  max-width: var(--ig-composer-w) !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  transform: translate3d(-50%, 0, 0) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 7px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  overflow: visible !important;
  contain: none !important;
  pointer-events: none !important;
  z-index: 2147483000 !important;
}

body[data-page="post"] #commentComposer.keyboard-open,
body[data-page="post"].comment-composer-focused #commentComposer.keyboard-open,
html.comment-keyboard-open body[data-page="post"] #commentComposer.keyboard-open {
  bottom: calc(var(--comment-keyboard-offset, 0px) + env(safe-area-inset-bottom, 0px) + 58px) !important;
  top: auto !important;
  transform: translate3d(-50%, 0, 0) !important;
}

body[data-page="post"] #commentComposer > *,
body[data-page="post"] #commentComposer .ig-comment-input-row,
body[data-page="post"] #commentComposer .ig-reply-preview {
  pointer-events: auto !important;
}

body[data-page="post"] #commentComposer:not(.is-replying) #replyPreviewBox,
body[data-page="post"] #commentComposer:not(.is-replying) .ig-reply-preview,
body[data-page="post"] #replyPreviewBox[hidden],
body[data-page="post"] .ig-reply-preview[hidden] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

body[data-page="post"] #commentComposer.is-replying #replyPreviewBox.ig-reply-preview,
html.wt-forum-dark body[data-page="post"] #commentComposer.is-replying #replyPreviewBox.ig-reply-preview,
html.wt-dark-mode body[data-page="post"] #commentComposer.is-replying #replyPreviewBox.ig-reply-preview,
html[data-theme="dark"] body[data-page="post"] #commentComposer.is-replying #replyPreviewBox.ig-reply-preview {
  display: grid !important;
  grid-template-columns: 36px minmax(0, 1fr) 34px !important;
  align-items: center !important;
  gap: 9px !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 52px !important;
  height: auto !important;
  padding: 7px 8px !important;
  margin: 0 !important;
  border-radius: 20px !important;
  border: 1px solid rgba(96, 165, 250, .38) !important;
  background: rgba(23, 39, 66, .66) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.55) !important;
  backdrop-filter: blur(24px) saturate(1.55) !important;
  box-shadow: inset 4px 0 0 rgba(96, 165, 250, .92), 0 10px 24px rgba(15, 23, 42, .16) !important;
  overflow: hidden !important;
  opacity: 1 !important;
  visibility: visible !important;
}
body[data-page="post"] #replyPreviewBox img {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  background: #fff !important;
}
body[data-page="post"] #replyPreviewBox .ig-reply-preview__content { min-width: 0 !important; overflow: hidden !important; }
body[data-page="post"] #replyPreviewBox .ig-reply-preview__content strong,
body[data-page="post"] #replyPreviewBox .ig-reply-preview__content p {
  display: block !important;
  margin: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  line-height: 1.15 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
body[data-page="post"] #replyPreviewBox .ig-reply-preview__content strong { font-size: 13px !important; font-weight: 900 !important; }
body[data-page="post"] #replyPreviewBox .ig-reply-preview__content p { margin-top: 2px !important; font-size: 12px !important; font-weight: 750 !important; opacity: .92 !important; }
body[data-page="post"] #clearReplyPreviewBtn {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  padding: 0 0 2px !important;
  border: 0 !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255,255,255,.18) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: 24px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

body[data-page="post"] #commentComposer .ig-comment-input-row,
html.wt-forum-dark body[data-page="post"] #commentComposer .ig-comment-input-row,
html.wt-dark-mode body[data-page="post"] #commentComposer .ig-comment-input-row,
html[data-theme="dark"] body[data-page="post"] #commentComposer .ig-comment-input-row {
  display: grid !important;
  grid-template-columns: 36px minmax(145px, 1fr) 92px 86px !important;
  align-items: end !important;
  gap: 7px !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 58px !important;
  height: auto !important;
  padding: 7px 8px !important;
  margin: 0 !important;
  border-radius: 27px !important;
  background: rgba(255,255,255,.78) !important;
  border: 1px solid rgba(226,232,240,.78) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.55) !important;
  backdrop-filter: blur(22px) saturate(1.55) !important;
  box-shadow: 0 12px 30px rgba(15,23,42,.13), inset 0 1px 0 rgba(255,255,255,.72) !important;
  overflow: visible !important;
}
html.wt-forum-dark body[data-page="post"] #commentComposer .ig-comment-input-row,
html.wt-dark-mode body[data-page="post"] #commentComposer .ig-comment-input-row,
html[data-theme="dark"] body[data-page="post"] #commentComposer .ig-comment-input-row {
  background: rgba(10,16,29,.78) !important;
  border-color: rgba(148,163,184,.22) !important;
  box-shadow: 0 14px 34px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.06) !important;
}
body[data-page="post"] #commentComposerAvatar {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  align-self: end !important;
  margin-bottom: 4px !important;
}
body[data-page="post"] #commentComposer #commentBody,
html.wt-forum-dark body[data-page="post"] #commentComposer #commentBody,
html.wt-dark-mode body[data-page="post"] #commentComposer #commentBody,
html[data-theme="dark"] body[data-page="post"] #commentComposer #commentBody {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 44px !important;
  max-height: 96px !important;
  padding: 10px 12px !important;
  border-radius: 22px !important;
  font-size: 16px !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
  resize: none !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
}
body[data-page="post"] #commentComposer .ig-image-btn,
body[data-page="post"] #commentComposer .ig-send-btn {
  height: 44px !important;
  min-height: 44px !important;
  border-radius: 20px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  flex: 0 0 auto !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  align-self: end !important;
  margin-bottom: 0 !important;
}
body[data-page="post"] #commentComposer .ig-image-btn { width: 92px !important; padding: 0 10px !important; }
body[data-page="post"] #commentComposer .ig-send-btn { width: 86px !important; padding: 0 10px !important; }
body[data-page="post"].comment-composer-focused .bottom-nav,
body[data-page="post"].comment-keyboard-open .bottom-nav,
body[data-page="post"].comment-composer-focused .mobile-bottom-nav,
body[data-page="post"].comment-keyboard-open .mobile-bottom-nav,
html.comment-composer-focused body[data-page="post"] .bottom-nav,
html.comment-keyboard-open body[data-page="post"] .bottom-nav {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translate3d(-50%, 140%, 0) !important;
}
@media (max-width: 390px) {
  body[data-page="post"] { --ig-composer-w: calc(100vw - 10px); }
  body[data-page="post"] #commentComposer .ig-comment-input-row {
    grid-template-columns: 34px minmax(132px, 1fr) 82px 78px !important;
    gap: 6px !important;
    min-height: 56px !important;
    padding: 7px !important;
  }
  body[data-page="post"] #commentComposerAvatar { width: 34px !important; height: 34px !important; min-width: 34px !important; }
  body[data-page="post"] #commentComposer .ig-image-btn { width: 82px !important; font-size: 13px !important; padding: 0 8px !important; }
  body[data-page="post"] #commentComposer .ig-send-btn { width: 78px !important; font-size: 13px !important; padding: 0 8px !important; }
}

/* ============================================================
   HOTFIX v3766 — Composer más ancho, botones centrados y más bajo
   ============================================================ */
body[data-page="post"] {
  --ig-composer-w: min(440px, calc(100vw - 8px));
}

body[data-page="post"] #commentComposer.keyboard-open,
body[data-page="post"].comment-composer-focused #commentComposer.keyboard-open,
html.comment-keyboard-open body[data-page="post"] #commentComposer.keyboard-open {
  bottom: calc(var(--comment-keyboard-offset, 0px) + env(safe-area-inset-bottom, 0px) + 24px) !important;
}

body[data-page="post"] #commentComposer .ig-comment-input-row,
html.wt-forum-dark body[data-page="post"] #commentComposer .ig-comment-input-row,
html.wt-dark-mode body[data-page="post"] #commentComposer .ig-comment-input-row,
html[data-theme="dark"] body[data-page="post"] #commentComposer .ig-comment-input-row {
  grid-template-columns: 34px minmax(0, 1fr) 82px 78px !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 7px 7px !important;
  min-height: 58px !important;
}

body[data-page="post"] #commentComposerAvatar {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  align-self: center !important;
  margin-bottom: 0 !important;
}

body[data-page="post"] #commentComposer #commentBody,
html.wt-forum-dark body[data-page="post"] #commentComposer #commentBody,
html.wt-dark-mode body[data-page="post"] #commentComposer #commentBody,
html[data-theme="dark"] body[data-page="post"] #commentComposer #commentBody {
  min-height: 44px !important;
  max-height: 104px !important;
  padding: 10px 12px !important;
  align-self: center !important;
}

body[data-page="post"] #commentComposer .ig-image-btn,
body[data-page="post"] #commentComposer .ig-send-btn {
  width: auto !important;
  min-width: 0 !important;
  height: 44px !important;
  min-height: 44px !important;
  align-self: center !important;
  margin: 0 !important;
  padding: 0 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

body[data-page="post"] #commentComposer .ig-image-btn { width: 82px !important; }
body[data-page="post"] #commentComposer .ig-send-btn { width: 78px !important; }

@media (max-width: 390px) {
  body[data-page="post"] { --ig-composer-w: calc(100vw - 6px); }
  body[data-page="post"] #commentComposer .ig-comment-input-row {
    grid-template-columns: 32px minmax(0, 1fr) 76px 72px !important;
    gap: 5px !important;
    padding: 7px 6px !important;
  }
  body[data-page="post"] #commentComposerAvatar {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
  }
  body[data-page="post"] #commentComposer .ig-image-btn {
    width: 76px !important;
    padding: 0 8px !important;
  }
  body[data-page="post"] #commentComposer .ig-send-btn {
    width: 72px !important;
    padding: 0 8px !important;
  }
}

/* ============================================================
   HOTFIX v3768 — preview de imagen de comentario centrada
   ============================================================ */
body[data-page="post"] #commentComposer .ig-selected-images,
body[data-page="post"] #commentComposer [data-comment-selected-images] {
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 0 !important;
  margin: 0 0 7px 0 !important;
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  z-index: 2 !important;
}
body[data-page="post"] #commentComposer [data-comment-selected-images][hidden],
body[data-page="post"] #commentComposer .ig-selected-images[hidden] {
  display: none !important;
}
body[data-page="post"] #commentComposer [data-comment-selected-images] .forum-selected-image {
  width: min(320px, calc(100vw - 72px)) !important;
  height: 210px !important;
  max-height: 210px !important;
  aspect-ratio: 4 / 3 !important;
  position: relative !important;
  overflow: hidden !important;
  border-radius: 24px !important;
  border: 1px solid rgba(226,232,240,.80) !important;
  background: rgba(15,23,42,.08) !important;
  box-shadow: 0 16px 34px rgba(15,23,42,.18) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.35) !important;
  backdrop-filter: blur(18px) saturate(1.35) !important;
}
html.wt-forum-dark body[data-page="post"] #commentComposer [data-comment-selected-images] .forum-selected-image,
html.wt-dark-mode body[data-page="post"] #commentComposer [data-comment-selected-images] .forum-selected-image,
html[data-theme="dark"] body[data-page="post"] #commentComposer [data-comment-selected-images] .forum-selected-image {
  border-color: rgba(148,163,184,.25) !important;
  background: rgba(15,23,42,.68) !important;
  box-shadow: 0 18px 42px rgba(0,0,0,.42) !important;
}
body[data-page="post"] #commentComposer [data-comment-selected-images] .forum-selected-image-bg {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  filter: blur(18px) saturate(1.05) brightness(.92) !important;
  transform: scale(1.12) !important;
  opacity: .78 !important;
}
body[data-page="post"] #commentComposer [data-comment-selected-images] .forum-selected-image-main {
  position: relative !important;
  z-index: 1 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 24px !important;
}
body[data-page="post"] #commentComposer [data-comment-selected-images] [data-remove-selected-image] {
  position: absolute !important;
  z-index: 3 !important;
  top: 10px !important;
  right: 10px !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(255,255,255,.36) !important;
  background: rgba(15,23,42,.54) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: 0 !important;
  display: grid !important;
  place-items: center !important;
  box-shadow: 0 8px 18px rgba(0,0,0,.24) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.35) !important;
  backdrop-filter: blur(16px) saturate(1.35) !important;
}
body[data-page="post"] #commentComposer [data-comment-selected-images] [data-remove-selected-image]::before {
  content: "×" !important;
  font-size: 25px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  color: #fff !important;
}
@media (max-width: 390px) {
  body[data-page="post"] #commentComposer [data-comment-selected-images] .forum-selected-image {
    width: min(300px, calc(100vw - 62px)) !important;
    height: 190px !important;
  }
}


/* ============================================================
   HOTFIX v3769 — Composer más bajo y sin barra propia extra
   ============================================================ */
body[data-page="post"] {
  --ig-composer-w: min(440px, calc(100vw - 8px));
}

/* El único contenedor visible debe ser la fila del composer; nada de paneles o barras extra. */
body[data-page="post"] #commentComposer.instagram-comment-composer,
body[data-page="post"] #commentComposer.comment-box,
body[data-page="post"] #commentComposer.reddit-comment-composer {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  padding: 0 !important;
  overflow: visible !important;
}

body[data-page="post"] #commentComposer.keyboard-open,
body[data-page="post"].comment-composer-focused #commentComposer.keyboard-open,
html.comment-keyboard-open body[data-page="post"] #commentComposer.keyboard-open {
  bottom: calc(var(--comment-keyboard-offset, 0px) + env(safe-area-inset-bottom, 0px) + 2px) !important;
  top: auto !important;
  transform: translate3d(-50%, 0, 0) !important;
}

/* Más espacio para escribir y botones centrados. */
body[data-page="post"] #commentComposer .ig-comment-input-row {
  grid-template-columns: 34px minmax(0, 1fr) 82px 78px !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 7px !important;
  min-height: 58px !important;
}

body[data-page="post"] #commentComposer #commentBody {
  min-height: 44px !important;
  max-height: 104px !important;
  align-self: center !important;
}

body[data-page="post"] #commentComposer .ig-image-btn,
body[data-page="post"] #commentComposer .ig-send-btn {
  align-self: center !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

/* Nota: la barra negra con flechas/check del teclado en iPhone es nativa de iOS; aquí evitamos añadir otra barra propia. */
@media (max-width: 390px) {
  body[data-page="post"] #commentComposer .ig-comment-input-row {
    grid-template-columns: 32px minmax(0, 1fr) 76px 72px !important;
    gap: 5px !important;
    padding: 7px 6px !important;
  }
}

/* ============================================================
   HOTFIX v3770 — orden correcto: imagen arriba, comentario y barra juntos
   ============================================================ */
body[data-page="post"] {
  --ig-composer-w: min(448px, calc(100vw - 4px));
}

/* El composer no debe crear panel blanco ni pantalla extra. */
body[data-page="post"] #commentComposer.instagram-comment-composer,
html.wt-forum-dark body[data-page="post"] #commentComposer.instagram-comment-composer,
html.wt-dark-mode body[data-page="post"] #commentComposer.instagram-comment-composer,
html[data-theme="dark"] body[data-page="post"] #commentComposer.instagram-comment-composer {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  padding: 0 !important;
  gap: 6px !important;
  overflow: visible !important;
  pointer-events: none !important;
}

body[data-page="post"] #commentComposer > * {
  pointer-events: auto !important;
}

/* Siempre arriba del teclado y sin usar top, para que no se deforme con scroll. */
body[data-page="post"] #commentComposer.keyboard-open,
body[data-page="post"].comment-composer-focused #commentComposer.keyboard-open,
html.comment-keyboard-open body[data-page="post"] #commentComposer.keyboard-open {
  top: auto !important;
  bottom: calc(var(--comment-keyboard-offset, 0px) + env(safe-area-inset-bottom, 0px) + 10px) !important;
  transform: translate3d(-50%, 0, 0) !important;
}

/* Orden visual fijo: imagen seleccionada -> comentario respondido -> barra de texto. */
body[data-page="post"] #commentComposer [data-comment-selected-images] {
  order: 1 !important;
}
body[data-page="post"] #commentComposer #replyPreviewBox {
  order: 2 !important;
}
body[data-page="post"] #commentComposer .ig-comment-input-row {
  order: 3 !important;
}

/* Barra principal más ancha, baja y con botones centrados. */
body[data-page="post"] #commentComposer .ig-comment-input-row,
html.wt-forum-dark body[data-page="post"] #commentComposer .ig-comment-input-row,
html.wt-dark-mode body[data-page="post"] #commentComposer .ig-comment-input-row,
html[data-theme="dark"] body[data-page="post"] #commentComposer .ig-comment-input-row {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: 34px minmax(170px, 1fr) 74px 74px !important;
  align-items: center !important;
  gap: 6px !important;
  min-height: 58px !important;
  padding: 7px 8px !important;
  border-radius: 24px !important;
  background: rgba(255,255,255,.90) !important;
  border: 1px solid rgba(203,213,225,.72) !important;
  box-shadow: 0 12px 34px rgba(15,23,42,.16), inset 0 1px 0 rgba(255,255,255,.82) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.25) !important;
  backdrop-filter: blur(22px) saturate(1.25) !important;
}

html.wt-forum-dark body[data-page="post"] #commentComposer .ig-comment-input-row,
html.wt-dark-mode body[data-page="post"] #commentComposer .ig-comment-input-row,
html[data-theme="dark"] body[data-page="post"] #commentComposer .ig-comment-input-row {
  background: rgba(13,20,35,.82) !important;
  border-color: rgba(148,163,184,.26) !important;
  box-shadow: 0 14px 36px rgba(0,0,0,.40), inset 0 1px 0 rgba(255,255,255,.08) !important;
}

body[data-page="post"] #commentComposerAvatar {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  align-self: center !important;
}

body[data-page="post"] #commentComposer #commentBody,
html.wt-forum-dark body[data-page="post"] #commentComposer #commentBody,
html.wt-dark-mode body[data-page="post"] #commentComposer #commentBody,
html[data-theme="dark"] body[data-page="post"] #commentComposer #commentBody {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 44px !important;
  height: 44px !important;
  max-height: 108px !important;
  padding: 10px 12px !important;
  align-self: center !important;
  font-size: 16px !important; /* iOS no hace zoom al escribir */
  line-height: 1.18 !important;
  resize: none !important;
}

body[data-page="post"] #commentComposer .ig-image-btn,
body[data-page="post"] #commentComposer .ig-send-btn {
  width: 74px !important;
  min-width: 74px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 8px !important;
  margin: 0 !important;
  align-self: center !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  white-space: nowrap !important;
  font-size: 14px !important;
}

/* La imagen elegida va arriba y con cuerpo tipo galería del foro. */
body[data-page="post"] #commentComposer [data-comment-selected-images],
body[data-page="post"] #commentComposer .ig-selected-images {
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 0 6px !important;
  margin: 0 0 2px 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}
body[data-page="post"] #commentComposer [data-comment-selected-images][hidden],
body[data-page="post"] #commentComposer .ig-selected-images[hidden] {
  display: none !important;
}
body[data-page="post"] #commentComposer [data-comment-selected-images] .forum-selected-image {
  width: min(360px, calc(100vw - 28px)) !important;
  height: 220px !important;
  aspect-ratio: 4 / 3 !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  position: relative !important;
  border: 1px solid rgba(226,232,240,.72) !important;
  background: rgba(15,23,42,.10) !important;
  box-shadow: 0 16px 34px rgba(15,23,42,.18) !important;
}
body[data-page="post"] #commentComposer [data-comment-selected-images] .forum-selected-image-main {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: inherit !important;
}
body[data-page="post"] #commentComposer [data-comment-selected-images] .forum-selected-image-bg {
  display: none !important;
}
body[data-page="post"] #commentComposer [data-comment-selected-images] [data-remove-selected-image] {
  top: 10px !important;
  right: 10px !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  border-radius: 999px !important;
}

/* Preview del comentario seleccionado debajo de la imagen, no encima. */
body[data-page="post"] #commentComposer.is-replying #replyPreviewBox,
html.wt-forum-dark body[data-page="post"] #commentComposer.is-replying #replyPreviewBox,
html.wt-dark-mode body[data-page="post"] #commentComposer.is-replying #replyPreviewBox,
html[data-theme="dark"] body[data-page="post"] #commentComposer.is-replying #replyPreviewBox {
  width: calc(100% - 10px) !important;
  margin: 0 auto 0 auto !important;
  min-height: 54px !important;
}

@media (max-width: 390px) {
  body[data-page="post"] { --ig-composer-w: calc(100vw - 2px); }
  body[data-page="post"] #commentComposer .ig-comment-input-row {
    grid-template-columns: 32px minmax(152px, 1fr) 70px 70px !important;
    gap: 5px !important;
    padding: 7px 6px !important;
  }
  body[data-page="post"] #commentComposerAvatar {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
  }
  body[data-page="post"] #commentComposer .ig-image-btn,
  body[data-page="post"] #commentComposer .ig-send-btn {
    width: 70px !important;
    min-width: 70px !important;
    font-size: 13px !important;
    padding: 0 6px !important;
  }
  body[data-page="post"] #commentComposer [data-comment-selected-images] .forum-selected-image {
    width: min(342px, calc(100vw - 16px)) !important;
    height: 205px !important;
  }
}

/* Cuando se abre el perfil público u otro modal, el composer no debe quedar encima del modal. */
body[data-page="post"].wt-modal-open #commentComposer,
body[data-page="post"] .modal-backdrop ~ #commentComposer {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}


/* ============================================================
   HOTFIX v3771 — modo oscuro, reportar y moderación de comentarios
   ============================================================ */
html.wt-forum-dark,
html.wt-forum-dark body,
html.wt-forum-dark body[data-page="post"],
html.wt-forum-dark body[data-page="forum"] {
  background: #060b14 !important;
  background-color: #060b14 !important;
}
html.wt-forum-dark body[data-page="post"]::before,
html.wt-forum-dark body[data-page="forum"]::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: max(16px, env(safe-area-inset-top, 0px));
  background: #060b14;
  z-index: 2147482998;
  pointer-events: none;
}
html.wt-forum-dark body[data-page="post"] .app-header,
html.wt-forum-dark body[data-page="forum"] .app-header {
  background: rgba(6, 11, 20, .92) !important;
}

body[data-page="post"] .forum-report-modal.modal-card,
body[data-page="forum"] .forum-report-modal.modal-card,
body[data-page="post"] .comment-admin-menu-modal.modal-card,
body[data-page="forum"] .comment-admin-menu-modal.modal-card {
  width: min(92vw, 520px) !important;
  border-radius: 28px !important;
  overflow: hidden !important;
  background: rgba(255,255,255,.92) !important;
  color: #071735 !important;
  -webkit-text-fill-color: #071735 !important;
  border: 1px solid rgba(203,213,225,.82) !important;
  box-shadow: 0 28px 80px rgba(15,23,42,.25) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.45) !important;
  backdrop-filter: blur(24px) saturate(1.45) !important;
}
body[data-page="post"] .forum-report-modal .modal-head,
body[data-page="forum"] .forum-report-modal .modal-head,
body[data-page="post"] .comment-admin-menu-modal .modal-head,
body[data-page="forum"] .comment-admin-menu-modal .modal-head {
  padding: 20px 22px 10px !important;
  border-bottom: 1px solid rgba(203,213,225,.7) !important;
}
body[data-page="post"] .forum-report-modal .modal-head h2,
body[data-page="forum"] .forum-report-modal .modal-head h2,
body[data-page="post"] .comment-admin-menu-modal .modal-head h2,
body[data-page="forum"] .comment-admin-menu-modal .modal-head h2 {
  color: #071735 !important;
  -webkit-text-fill-color: #071735 !important;
  opacity: 1 !important;
  font-size: clamp(1.35rem, 5vw, 2rem) !important;
  font-weight: 950 !important;
}
body[data-page="post"] .forum-report-modal .modal-close,
body[data-page="forum"] .forum-report-modal .modal-close,
body[data-page="post"] .comment-admin-menu-modal .modal-close,
body[data-page="forum"] .comment-admin-menu-modal .modal-close {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  background: #eef3fb !important;
  color: #0a3470 !important;
  -webkit-text-fill-color: #0a3470 !important;
  font-weight: 950 !important;
  box-shadow: inset 0 0 0 1px rgba(148,163,184,.35), 0 8px 20px rgba(15,23,42,.12) !important;
}
body[data-page="post"] .forum-report-form,
body[data-page="forum"] .forum-report-form {
  display: grid !important;
  gap: 14px !important;
  width: 100% !important;
}
body[data-page="post"] .forum-report-label,
body[data-page="forum"] .forum-report-label {
  display: grid !important;
  gap: 8px !important;
  color: #10203a !important;
  -webkit-text-fill-color: #10203a !important;
  font-weight: 900 !important;
}
body[data-page="post"] .forum-report-textarea,
body[data-page="forum"] .forum-report-textarea {
  min-height: 150px !important;
  border-radius: 22px !important;
  background: #f8fafc !important;
  border: 1px solid rgba(148,163,184,.7) !important;
  color: #071735 !important;
  -webkit-text-fill-color: #071735 !important;
  font-size: 16px !important;
  line-height: 1.35 !important;
  padding: 16px !important;
}
body[data-page="post"] .forum-report-textarea::placeholder,
body[data-page="forum"] .forum-report-textarea::placeholder {
  color: #64748b !important;
  -webkit-text-fill-color: #64748b !important;
  opacity: 1 !important;
}
body[data-page="post"] .forum-report-submit,
body[data-page="forum"] .forum-report-submit {
  height: 58px !important;
  border-radius: 20px !important;
  font-weight: 950 !important;
  font-size: 1rem !important;
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

html.wt-forum-dark body[data-page="post"] .forum-report-modal.modal-card,
html.wt-forum-dark body[data-page="forum"] .forum-report-modal.modal-card,
html.wt-forum-dark body[data-page="post"] .comment-admin-menu-modal.modal-card,
html.wt-forum-dark body[data-page="forum"] .comment-admin-menu-modal.modal-card {
  background: rgba(10, 18, 34, .88) !important;
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
  border-color: rgba(96,165,250,.24) !important;
  box-shadow: 0 30px 90px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.08) !important;
}
html.wt-forum-dark body[data-page="post"] .forum-report-modal .modal-head h2,
html.wt-forum-dark body[data-page="forum"] .forum-report-modal .modal-head h2,
html.wt-forum-dark body[data-page="post"] .comment-admin-menu-modal .modal-head h2,
html.wt-forum-dark body[data-page="forum"] .comment-admin-menu-modal .modal-head h2 {
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
}
html.wt-forum-dark body[data-page="post"] .forum-report-label,
html.wt-forum-dark body[data-page="forum"] .forum-report-label {
  color: #dbeafe !important;
  -webkit-text-fill-color: #dbeafe !important;
}
html.wt-forum-dark body[data-page="post"] .forum-report-textarea,
html.wt-forum-dark body[data-page="forum"] .forum-report-textarea {
  background: rgba(15,23,42,.82) !important;
  border-color: rgba(96,165,250,.28) !important;
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
}
html.wt-forum-dark body[data-page="post"] .forum-report-textarea::placeholder,
html.wt-forum-dark body[data-page="forum"] .forum-report-textarea::placeholder {
  color: #94a3b8 !important;
  -webkit-text-fill-color: #94a3b8 !important;
}

body[data-page="post"] .ig-comment-admin-menu,
body[data-page="forum"] .ig-comment-admin-menu {
  min-width: 34px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  font-size: 18px !important;
  line-height: 1 !important;
}
body[data-page="post"] .comment-admin-menu-box,
body[data-page="forum"] .comment-admin-menu-box {
  display: grid !important;
  gap: 10px !important;
  padding: 4px 0 8px !important;
}
body[data-page="post"] .comment-admin-menu-note,
body[data-page="forum"] .comment-admin-menu-note {
  margin: 0 0 4px !important;
  color: #334155 !important;
  -webkit-text-fill-color: #334155 !important;
  font-weight: 800 !important;
}
body[data-page="post"] .comment-admin-menu-action,
body[data-page="forum"] .comment-admin-menu-action {
  width: 100% !important;
  min-height: 54px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(148,163,184,.45) !important;
  background: #f8fafc !important;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  font-weight: 950 !important;
  font-size: 1rem !important;
}
body[data-page="post"] .comment-admin-menu-action.danger,
body[data-page="forum"] .comment-admin-menu-action.danger {
  background: rgba(254,226,226,.95) !important;
  color: #b91c1c !important;
  -webkit-text-fill-color: #b91c1c !important;
  border-color: rgba(248,113,113,.45) !important;
}
body[data-page="post"] .comment-admin-menu-action.block,
body[data-page="forum"] .comment-admin-menu-action.block {
  background: rgba(255,247,237,.95) !important;
  color: #c2410c !important;
  -webkit-text-fill-color: #c2410c !important;
  border-color: rgba(251,146,60,.45) !important;
}
html.wt-forum-dark body[data-page="post"] .comment-admin-menu-note,
html.wt-forum-dark body[data-page="forum"] .comment-admin-menu-note {
  color: #cbd5e1 !important;
  -webkit-text-fill-color: #cbd5e1 !important;
}
html.wt-forum-dark body[data-page="post"] .comment-admin-menu-action,
html.wt-forum-dark body[data-page="forum"] .comment-admin-menu-action {
  background: rgba(15,23,42,.78) !important;
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
  border-color: rgba(148,163,184,.22) !important;
}
html.wt-forum-dark body[data-page="post"] .comment-admin-menu-action.danger,
html.wt-forum-dark body[data-page="forum"] .comment-admin-menu-action.danger {
  background: rgba(127,29,29,.48) !important;
  color: #fecaca !important;
  -webkit-text-fill-color: #fecaca !important;
}
html.wt-forum-dark body[data-page="post"] .comment-admin-menu-action.block,
html.wt-forum-dark body[data-page="forum"] .comment-admin-menu-action.block {
  background: rgba(124,45,18,.46) !important;
  color: #fed7aa !important;
  -webkit-text-fill-color: #fed7aa !important;
}


/* ============================================================
   HOTFIX v3772 — acciones admin visibles + modo oscuro/reportes
   ============================================================ */
html.wt-forum-dark,
html.wt-forum-dark body,
html.wt-dark-mode,
html.wt-dark-mode body,
html[data-theme="dark"],
html[data-theme="dark"] body {
  background-color: #060b14 !important;
}

html.wt-forum-dark body::before,
html.wt-dark-mode body::before,
html[data-theme="dark"] body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: max(env(safe-area-inset-top, 0px), 18px);
  background: #060b14;
  z-index: 2147482000;
  pointer-events: none;
}

body[data-page="post"] .ig-comment-actions {
  flex-wrap: wrap !important;
  gap: 10px 14px !important;
}

body[data-page="post"] .ig-comment-action.ig-admin-delete,
body[data-page="post"] .ig-comment-action.ig-admin-block {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 30px !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  font-weight: 900 !important;
  font-size: 13px !important;
  border: 1px solid transparent !important;
  text-decoration: none !important;
  opacity: 1 !important;
}

body[data-page="post"] .ig-comment-action.ig-admin-delete {
  color: #dc2626 !important;
  -webkit-text-fill-color: #dc2626 !important;
  background: rgba(254, 226, 226, .82) !important;
  border-color: rgba(248, 113, 113, .35) !important;
}

body[data-page="post"] .ig-comment-action.ig-admin-block {
  color: #b45309 !important;
  -webkit-text-fill-color: #b45309 !important;
  background: rgba(254, 243, 199, .88) !important;
  border-color: rgba(245, 158, 11, .35) !important;
}

html.wt-forum-dark body[data-page="post"] .ig-comment-action.ig-admin-delete,
html.wt-dark-mode body[data-page="post"] .ig-comment-action.ig-admin-delete,
html[data-theme="dark"] body[data-page="post"] .ig-comment-action.ig-admin-delete {
  color: #fecaca !important;
  -webkit-text-fill-color: #fecaca !important;
  background: rgba(127, 29, 29, .5) !important;
  border-color: rgba(248, 113, 113, .36) !important;
}

html.wt-forum-dark body[data-page="post"] .ig-comment-action.ig-admin-block,
html.wt-dark-mode body[data-page="post"] .ig-comment-action.ig-admin-block,
html[data-theme="dark"] body[data-page="post"] .ig-comment-action.ig-admin-block {
  color: #fde68a !important;
  -webkit-text-fill-color: #fde68a !important;
  background: rgba(120, 53, 15, .5) !important;
  border-color: rgba(251, 191, 36, .36) !important;
}

.forum-report-modal,
.forum-report-modal .modal-head,
.forum-report-modal .modal-body,
.forum-report-modal label {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
}

.forum-report-modal {
  background: rgba(255,255,255,.96) !important;
  border: 1px solid rgba(203,213,225,.9) !important;
  box-shadow: 0 24px 80px rgba(15,23,42,.22) !important;
}

.forum-report-modal .modal-head h2 {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
}

.forum-report-modal textarea.input,
.forum-report-modal .input {
  background: #f8fafc !important;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 18px !important;
  font-size: 16px !important;
  min-height: 130px !important;
}

.forum-report-modal textarea.input::placeholder {
  color: #64748b !important;
  -webkit-text-fill-color: #64748b !important;
}

html.wt-forum-dark .forum-report-modal,
html.wt-dark-mode .forum-report-modal,
html[data-theme="dark"] .forum-report-modal {
  background: rgba(15, 23, 42, .94) !important;
  border-color: rgba(148,163,184,.22) !important;
  box-shadow: 0 24px 90px rgba(0,0,0,.55) !important;
}

html.wt-forum-dark .forum-report-modal,
html.wt-forum-dark .forum-report-modal .modal-head,
html.wt-forum-dark .forum-report-modal .modal-body,
html.wt-forum-dark .forum-report-modal label,
html.wt-forum-dark .forum-report-modal .modal-head h2,
html.wt-dark-mode .forum-report-modal,
html.wt-dark-mode .forum-report-modal .modal-head,
html.wt-dark-mode .forum-report-modal .modal-body,
html.wt-dark-mode .forum-report-modal label,
html.wt-dark-mode .forum-report-modal .modal-head h2,
html[data-theme="dark"] .forum-report-modal,
html[data-theme="dark"] .forum-report-modal .modal-head,
html[data-theme="dark"] .forum-report-modal .modal-body,
html[data-theme="dark"] .forum-report-modal label,
html[data-theme="dark"] .forum-report-modal .modal-head h2 {
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
}

html.wt-forum-dark .forum-report-modal textarea.input,
html.wt-forum-dark .forum-report-modal .input,
html.wt-dark-mode .forum-report-modal textarea.input,
html.wt-dark-mode .forum-report-modal .input,
html[data-theme="dark"] .forum-report-modal textarea.input,
html[data-theme="dark"] .forum-report-modal .input {
  background: rgba(15, 23, 42, .82) !important;
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
  border-color: rgba(148,163,184,.35) !important;
}


.fa-admin-post-delete,
.fa-admin-post-block,
.admin-post-delete,
.admin-post-block {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 38px !important;
  padding: 0 13px !important;
  border-radius: 999px !important;
  font-weight: 900 !important;
  font-size: 13px !important;
  border: 1px solid transparent !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

.fa-admin-post-delete,
.admin-post-delete {
  color: #dc2626 !important;
  -webkit-text-fill-color: #dc2626 !important;
  background: rgba(254, 226, 226, .88) !important;
  border-color: rgba(248, 113, 113, .38) !important;
}

.fa-admin-post-block,
.admin-post-block {
  color: #b45309 !important;
  -webkit-text-fill-color: #b45309 !important;
  background: rgba(254, 243, 199, .92) !important;
  border-color: rgba(245, 158, 11, .38) !important;
}

html.wt-forum-dark .fa-admin-post-delete,
html.wt-dark-mode .fa-admin-post-delete,
html[data-theme="dark"] .fa-admin-post-delete,
html.wt-forum-dark .admin-post-delete,
html.wt-dark-mode .admin-post-delete,
html[data-theme="dark"] .admin-post-delete {
  color: #fecaca !important;
  -webkit-text-fill-color: #fecaca !important;
  background: rgba(127, 29, 29, .5) !important;
  border-color: rgba(248, 113, 113, .36) !important;
}

html.wt-forum-dark .fa-admin-post-block,
html.wt-dark-mode .fa-admin-post-block,
html[data-theme="dark"] .fa-admin-post-block,
html.wt-forum-dark .admin-post-block,
html.wt-dark-mode .admin-post-block,
html[data-theme="dark"] .admin-post-block {
  color: #fde68a !important;
  -webkit-text-fill-color: #fde68a !important;
  background: rgba(120, 53, 15, .5) !important;
  border-color: rgba(251, 191, 36, .36) !important;
}


/* ==========================================================
   HOTFIX v3774 — Categorías, aprobación y modo oscuro
   ========================================================== */
html.wt-forum-dark,
html.wt-forum-dark body,
html.wt-forum-dark body[data-page="forum"],
html.wt-forum-dark body[data-page="post"],
html[data-theme="dark"],
html[data-theme="dark"] body,
html[data-theme="dark"] body[data-page="forum"],
html[data-theme="dark"] body[data-page="post"]{
  background:#070d18!important;
  color-scheme:dark!important;
}
html.wt-forum-dark body::before,
html[data-theme="dark"] body::before{
  content:"";
  position:fixed;
  top:0;left:0;right:0;
  height:calc(env(safe-area-inset-top,0px) + 92px);
  background:#070d18!important;
  z-index:-1;
  pointer-events:none;
}

/* Bottom sheet de categorías acorde al Liquid Glass del foro */
.fa-filter-panel{
  z-index:2147482500!important;
  align-items:flex-end!important;
  padding:0 10px max(10px, env(safe-area-inset-bottom,0px))!important;
}
.fa-filter-panel__backdrop{
  background:rgba(15,23,42,.42)!important;
  -webkit-backdrop-filter:blur(18px) saturate(1.25)!important;
  backdrop-filter:blur(18px) saturate(1.25)!important;
}
.fa-filter-panel__sheet{
  width:min(720px, calc(100vw - 20px))!important;
  margin:0 auto!important;
  padding:12px 14px 18px!important;
  border-radius:30px!important;
  background:rgba(255,255,255,.82)!important;
  border:1px solid rgba(226,232,240,.72)!important;
  box-shadow:0 24px 70px rgba(15,23,42,.22), inset 0 1px 0 rgba(255,255,255,.75)!important;
  -webkit-backdrop-filter:blur(26px) saturate(1.65)!important;
  backdrop-filter:blur(26px) saturate(1.65)!important;
  overflow:hidden!important;
}
html.wt-forum-dark .fa-filter-panel__sheet,
html[data-theme="dark"] .fa-filter-panel__sheet{
  background:rgba(14,24,43,.82)!important;
  border-color:rgba(148,163,184,.24)!important;
  box-shadow:0 26px 80px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.08)!important;
}
.fa-filter-panel__handle{
  width:44px!important;height:5px!important;border-radius:999px!important;
  background:rgba(100,116,139,.35)!important;margin:0 auto 14px!important;
}
.fa-filter-panel__title{
  margin:0 0 14px!important;
  font-size:18px!important;
  line-height:1.15!important;
  font-weight:900!important;
  letter-spacing:-.02em!important;
  color:#0f172a!important;
}
html.wt-forum-dark .fa-filter-panel__title,
html[data-theme="dark"] .fa-filter-panel__title{color:#f8fafc!important;}
.fa-filter-panel__chips{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
}
.fa-chip{
  min-height:50px!important;
  padding:10px 12px!important;
  border-radius:18px!important;
  border:1px solid rgba(203,213,225,.75)!important;
  background:rgba(248,250,252,.78)!important;
  color:#0f172a!important;
  font-size:15px!important;
  line-height:1.05!important;
  font-weight:900!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7)!important;
  text-align:center!important;
}
.fa-chip.active{
  background:linear-gradient(135deg,#2563eb,#3b82f6)!important;
  color:#fff!important;
  border-color:rgba(37,99,235,.75)!important;
  box-shadow:0 12px 26px rgba(37,99,235,.28), inset 0 1px 0 rgba(255,255,255,.28)!important;
}
html.wt-forum-dark .fa-chip,
html[data-theme="dark"] .fa-chip{
  background:rgba(15,23,42,.82)!important;
  color:#e5edff!important;
  border-color:rgba(148,163,184,.22)!important;
}
html.wt-forum-dark .fa-chip.active,
html[data-theme="dark"] .fa-chip.active{
  background:linear-gradient(135deg,#2563eb,#4f46e5)!important;
  color:#fff!important;
}

/* Comentarios pendientes y acciones de moderación visibles */
.ig-comment-row.is-pending-comment{
  outline:1px solid rgba(245,158,11,.35)!important;
  background:rgba(255,247,237,.54)!important;
  border-radius:20px!important;
}
html.wt-forum-dark .ig-comment-row.is-pending-comment,
html[data-theme="dark"] .ig-comment-row.is-pending-comment{
  background:rgba(120,53,15,.18)!important;
  outline-color:rgba(251,191,36,.34)!important;
}
.ig-comment-status-pill{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:3px 8px!important;
  border-radius:999px!important;
  background:rgba(245,158,11,.14)!important;
  color:#b45309!important;
  font-size:11px!important;
  font-weight:900!important;
  line-height:1!important;
}
html.wt-forum-dark .ig-comment-status-pill,
html[data-theme="dark"] .ig-comment-status-pill{
  background:rgba(245,158,11,.18)!important;
  color:#fbbf24!important;
}
.ig-comment-action.ig-admin-approve{
  color:#16a34a!important;
  font-weight:950!important;
}
.ig-comment-action.ig-admin-delete{
  color:#dc2626!important;
  font-weight:950!important;
}
.ig-comment-action.ig-admin-block{
  color:#ea580c!important;
  font-weight:950!important;
}

/* Modal de reportar siempre legible */
body[data-page="forum"] .modal-card,
body[data-page="post"] .modal-card{
  color:#0f172a!important;
}
body[data-page="forum"] .modal-card textarea,
body[data-page="post"] .modal-card textarea,
body[data-page="forum"] .modal-card .input,
body[data-page="post"] .modal-card .input{
  background:rgba(248,250,252,.95)!important;
  color:#0f172a!important;
  -webkit-text-fill-color:#0f172a!important;
  border:1px solid rgba(203,213,225,.9)!important;
}
html.wt-forum-dark body[data-page="forum"] .modal-card,
html.wt-forum-dark body[data-page="post"] .modal-card,
html[data-theme="dark"] body[data-page="forum"] .modal-card,
html[data-theme="dark"] body[data-page="post"] .modal-card{
  background:rgba(15,23,42,.86)!important;
  color:#f8fafc!important;
  border-color:rgba(148,163,184,.24)!important;
}
html.wt-forum-dark body[data-page="forum"] .modal-card textarea,
html.wt-forum-dark body[data-page="post"] .modal-card textarea,
html[data-theme="dark"] body[data-page="forum"] .modal-card textarea,
html[data-theme="dark"] body[data-page="post"] .modal-card textarea{
  background:rgba(255,255,255,.92)!important;
  color:#0f172a!important;
  -webkit-text-fill-color:#0f172a!important;
}


/* ============================================================
   HOTFIX v3776 — Perfil encajado y logo nuevo
   ============================================================ */

/* Logo nuevo centrado en todos los headers */
#siteLogo,
.brand img#siteLogo,
.reddit-logo img,
.reddit-site-logo img {
  object-fit: contain !important;
  object-position: center !important;
  background: rgba(255,255,255,.92) !important;
  padding: 4px !important;
}

/* El modal Mi perfil debe caber dentro de la pantalla sin que los botones tapen campos */
.modal-card.profile-settings-modal.account-settings-modal,
.profile-settings-modal.account-settings-modal,
.profile-settings-modal.account-settings-modal.modal-card {
  width: min(92vw, 460px) !important;
  max-width: min(92vw, 460px) !important;
  max-height: min(88dvh, 760px) !important;
  border-radius: 32px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.profile-settings-modal *,
.profile-settings-modal *::before,
.profile-settings-modal *::after {
  box-sizing: border-box !important;
}

.profile-settings-modal .modal-head {
  padding: 18px 18px 8px !important;
  flex: 0 0 auto !important;
}

.profile-settings-modal .modal-body {
  padding: 0 14px 16px !important;
  max-height: calc(min(88dvh, 760px) - 82px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
}

.profile-settings-modal .account-settings-form {
  width: 100% !important;
  max-width: 100% !important;
  display: grid !important;
  gap: 14px !important;
  padding: 0 0 18px !important;
  margin: 0 !important;
  overflow: visible !important;
}

.profile-settings-modal .account-profile-header {
  width: 100% !important;
  max-width: 100% !important;
  padding: 6px 8px 10px !important;
}

.profile-settings-modal .account-profile-header h3,
.profile-settings-modal .account-profile-header p {
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

.profile-settings-modal .settings-group {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

.profile-settings-modal .settings-group h4 {
  padding-left: 10px !important;
  margin: 0 0 7px !important;
  line-height: 1.15 !important;
}

.profile-settings-modal .settings-list,
.profile-settings-modal .settings-edit-list {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
}

.profile-settings-modal .settings-row {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 13px 14px !important;
}

.profile-settings-modal .settings-row-text,
.profile-settings-modal .settings-row-text b,
.profile-settings-modal .settings-row-text small {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.profile-settings-modal .settings-row-text small {
  display: block !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

.profile-settings-modal .settings-edit-list {
  display: grid !important;
  gap: 10px !important;
  padding: 10px !important;
}

.profile-settings-modal .settings-field {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  padding: 10px !important;
  overflow: hidden !important;
}

.profile-settings-modal .settings-field input,
.profile-settings-modal .settings-field textarea,
.profile-settings-modal .settings-field select,
.profile-settings-modal .settings-field .input {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  display: block !important;
  font-size: 16px !important;
  line-height: 1.35 !important;
}

.profile-settings-modal .two,
.profile-settings-modal .compact-two {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Los botones ya no flotan encima del formulario: quedan al final y no tapan campos */
.profile-settings-modal .account-settings-actions,
.account-settings-modal .account-settings-actions {
  position: static !important;
  bottom: auto !important;
  z-index: auto !important;
  width: 100% !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  padding: 8px 0 max(12px, env(safe-area-inset-bottom)) !important;
  margin: 0 !important;
  background: transparent !important;
  border-top: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.profile-settings-modal .account-settings-actions .btn,
.account-settings-modal .account-settings-actions .btn {
  width: 100% !important;
  min-height: 56px !important;
  border-radius: 18px !important;
  margin: 0 !important;
}

/* En pantallas pequeñas, reducir un poco el encabezado para que todo quede encajado */
@media (max-width: 390px) {
  .modal-card.profile-settings-modal.account-settings-modal,
  .profile-settings-modal.account-settings-modal {
    width: calc(100vw - 22px) !important;
    max-width: calc(100vw - 22px) !important;
    border-radius: 30px !important;
  }

  .profile-settings-modal .modal-head {
    padding: 16px 16px 6px !important;
  }

  .profile-settings-modal .modal-body {
    padding: 0 12px 14px !important;
  }

  .profile-settings-modal .account-avatar-wrap,
  .profile-settings-modal .account-avatar-img,
  .profile-settings-modal .account-avatar-fallback {
    width: 92px !important;
    height: 92px !important;
  }

  .profile-settings-modal .account-profile-header h3 {
    font-size: 1.75rem !important;
  }

  .profile-settings-modal .account-profile-header p {
    font-size: .98rem !important;
  }
}


/* ============================================================
   HOTFIX v3778 — Mi perfil realmente encajado en iPhone
   ============================================================ */

/* En Mi perfil había reglas viejas con .modal-body y .modal-card peleando.
   Aquí se fuerza una sola estructura: tarjeta compacta, cuerpo scrolleable,
   secciones sin cuadros blancos exteriores y botones al final. */

body .modal-backdrop .modal-card.profile-settings-modal.account-settings-modal,
body .modal-backdrop .profile-settings-modal.account-settings-modal,
body .profile-settings-modal.account-settings-modal.modal-card {
  width: min(92vw, 430px) !important;
  max-width: min(92vw, 430px) !important;
  height: auto !important;
  max-height: 86dvh !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  border-radius: 32px !important;
  box-sizing: border-box !important;
  background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(244,247,252,.82)) !important;
}

body .modal-backdrop .modal-card.profile-settings-modal.account-settings-modal .modal-head,
body .profile-settings-modal.account-settings-modal .modal-head {
  flex: 0 0 auto !important;
  min-height: 70px !important;
  padding: 18px 18px 8px !important;
  background: transparent !important;
  border-bottom: 0 !important;
}

body .modal-backdrop .modal-card.profile-settings-modal.account-settings-modal .modal-head h2,
body .profile-settings-modal.account-settings-modal .modal-head h2 {
  font-size: 2rem !important;
  line-height: 1.05 !important;
  margin: 0 !important;
  color: #07152c !important;
}

body .modal-backdrop .modal-card.profile-settings-modal.account-settings-modal .modal-close,
body .profile-settings-modal.account-settings-modal .modal-close {
  width: 58px !important;
  height: 58px !important;
  min-width: 58px !important;
  border-radius: 999px !important;
  background: rgba(239,245,255,.92) !important;
  color: #062b63 !important;
  border: 1px solid rgba(10,132,255,.34) !important;
  box-shadow: 0 8px 24px rgba(15,23,42,.12) !important;
}

body .modal-backdrop .modal-card.profile-settings-modal.account-settings-modal .modal-body,
body .profile-settings-modal.account-settings-modal .modal-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: none !important;
  height: auto !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 0 14px 14px !important;
  background: transparent !important;
}

body .modal-backdrop .modal-card.profile-settings-modal.account-settings-modal .account-settings-form,
body .profile-settings-modal.account-settings-modal .account-settings-form {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  padding: 0 0 16px !important;
  margin: 0 !important;
  overflow: visible !important;
  background: transparent !important;
}

/* Quita los rectángulos blancos grandes que se veían detrás de cada sección */
body .profile-settings-modal.account-settings-modal .settings-group {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

body .profile-settings-modal.account-settings-modal .settings-group h4 {
  margin: 0 0 8px !important;
  padding: 0 0 0 6px !important;
  color: #7b8798 !important;
  font-size: 1.05rem !important;
  line-height: 1.15 !important;
  font-weight: 900 !important;
}

/* Listas compactas dentro del modal */
body .profile-settings-modal.account-settings-modal .settings-list,
body .profile-settings-modal.account-settings-modal .settings-edit-list {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  border-radius: 24px !important;
  background: rgba(255,255,255,.72) !important;
  border: 1px solid rgba(210,220,235,.82) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 10px 26px rgba(15,23,42,.06) !important;
}

body .profile-settings-modal.account-settings-modal .settings-row {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: 46px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 13px 14px !important;
  margin: 0 !important;
  background: transparent !important;
  border-bottom: 1px solid rgba(205,215,230,.78) !important;
}

body .profile-settings-modal.account-settings-modal .settings-row:last-child {
  border-bottom: 0 !important;
}

body .profile-settings-modal.account-settings-modal .settings-icon {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  border-radius: 13px !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
}

body .profile-settings-modal.account-settings-modal .settings-row-text {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

body .profile-settings-modal.account-settings-modal .settings-row-text b {
  display: block !important;
  line-height: 1.18 !important;
  color: #07152c !important;
}

body .profile-settings-modal.account-settings-modal .settings-row-text small {
  display: block !important;
  max-width: 100% !important;
  line-height: 1.25 !important;
  color: #697386 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

/* Campos de Perfil público: una columna real, sin salirse */
body .profile-settings-modal.account-settings-modal .settings-edit-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  padding: 10px !important;
}

body .profile-settings-modal.account-settings-modal .settings-field {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  padding: 10px !important;
  margin: 0 !important;
  border-radius: 20px !important;
  background: rgba(255,255,255,.76) !important;
  border: 1px solid rgba(210,220,235,.68) !important;
  overflow: hidden !important;
}

body .profile-settings-modal.account-settings-modal .settings-field span {
  color: #07152c !important;
  font-size: 1rem !important;
  font-weight: 950 !important;
  line-height: 1.2 !important;
}

body .profile-settings-modal.account-settings-modal .settings-field input,
body .profile-settings-modal.account-settings-modal .settings-field textarea,
body .profile-settings-modal.account-settings-modal .settings-field select,
body .profile-settings-modal.account-settings-modal .settings-field .input {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  display: block !important;
  box-sizing: border-box !important;
  font-size: 16px !important;
  line-height: 1.35 !important;
  padding: 14px 16px !important;
  border-radius: 18px !important;
  background: rgba(246,248,252,.92) !important;
  color: #07152c !important;
  -webkit-text-fill-color: #07152c !important;
  border: 1px solid rgba(200,212,230,.78) !important;
}

body .profile-settings-modal.account-settings-modal .settings-field textarea {
  min-height: 118px !important;
  resize: vertical !important;
}

body .profile-settings-modal.account-settings-modal .two,
body .profile-settings-modal.account-settings-modal .compact-two {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

/* Encabezado del perfil más compacto para evitar que la sección Cuenta comience cortada */
body .profile-settings-modal.account-settings-modal .account-profile-header {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  padding: 2px 8px 8px !important;
  margin: 0 !important;
  display: grid !important;
  justify-items: center !important;
  text-align: center !important;
  gap: 6px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body .profile-settings-modal.account-settings-modal .account-avatar-wrap,
body .profile-settings-modal.account-settings-modal .account-avatar-img,
body .profile-settings-modal.account-settings-modal .account-avatar-fallback {
  width: 86px !important;
  height: 86px !important;
}

body .profile-settings-modal.account-settings-modal .account-profile-header h3 {
  max-width: 100% !important;
  margin: 4px 0 0 !important;
  font-size: 1.55rem !important;
  line-height: 1.08 !important;
  overflow-wrap: anywhere !important;
  color: #07152c !important;
}

body .profile-settings-modal.account-settings-modal .account-profile-header p {
  max-width: 100% !important;
  margin: 0 !important;
  font-size: .94rem !important;
  line-height: 1.2 !important;
  overflow-wrap: anywhere !important;
  color: #697386 !important;
}

/* Botones abajo, no sticky, para que nunca tapen Ciudad/Año/Sponsor */
body .profile-settings-modal.account-settings-modal .account-settings-actions {
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  z-index: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  padding: 0 0 max(12px, env(safe-area-inset-bottom)) !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

body .profile-settings-modal.account-settings-modal .account-settings-actions .btn {
  width: 100% !important;
  min-height: 56px !important;
  border-radius: 18px !important;
  margin: 0 !important;
}

/* Reglas específicas para iPhone estrecho */
@media (max-width: 430px) {
  body .modal-backdrop .modal-card.profile-settings-modal.account-settings-modal,
  body .profile-settings-modal.account-settings-modal.modal-card {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    max-height: 86dvh !important;
    border-radius: 30px !important;
  }

  body .modal-backdrop .modal-card.profile-settings-modal.account-settings-modal .modal-body,
  body .profile-settings-modal.account-settings-modal .modal-body {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

@media (max-width: 360px) {
  body .profile-settings-modal.account-settings-modal .settings-row {
    grid-template-columns: 40px minmax(0, 1fr) auto !important;
    gap: 9px !important;
    padding: 12px !important;
  }

  body .profile-settings-modal.account-settings-modal .settings-icon {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
  }
}


/* ============================================================
   HOTFIX v3786 — Borrador automático panel admin
   ============================================================ */

.admin-draft-status {
  display: block !important;
  width: 100% !important;
  margin: 0 0 14px !important;
  padding: 11px 14px !important;
  border-radius: 16px !important;
  background: rgba(8, 47, 111, .08) !important;
  border: 1px solid rgba(8, 47, 111, .18) !important;
  color: #082f6f !important;
  font-size: .92rem !important;
  font-weight: 900 !important;
  line-height: 1.35 !important;
}

html.wt-forum-dark .admin-draft-status,
html[data-theme="dark"] .admin-draft-status {
  background: rgba(96, 165, 250, .14) !important;
  border-color: rgba(147, 197, 253, .24) !important;
  color: #dbeafe !important;
}


/* ============================================================
   HOTFIX v3787 — Editor horizontal para imágenes de servicios/cursos
   ============================================================ */

.admin-image-preview-wrap-horizontal {
  display: grid !important;
  gap: 12px !important;
}

.admin-image-frame-guide {
  width: 100% !important;
  border-radius: 24px !important;
  padding: 10px !important;
  background:
    linear-gradient(135deg, rgba(8,47,111,.08), rgba(10,132,255,.08)),
    rgba(255,255,255,.72) !important;
  border: 1px solid rgba(8,47,111,.14) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 12px 34px rgba(15,23,42,.08) !important;
}

.admin-image-frame-guide .admin-image-preview,
.admin-image-preview-wrap-horizontal .admin-image-preview {
  display: block !important;
  width: 100% !important;
  aspect-ratio: var(--preview-aspect, 16 / 9) !important;
  height: auto !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 18px !important;
  background: #eaf0f8 !important;
  border: 1px solid rgba(8,47,111,.10) !important;
}

.image-admin-box-horizontal .image-file-drop-label {
  border: 1.5px dashed rgba(8,47,111,.24) !important;
  background: rgba(248,250,252,.86) !important;
  border-radius: 20px !important;
  padding: 14px !important;
  font-weight: 950 !important;
  color: #082f6f !important;
  cursor: pointer !important;
}

.image-editor-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}

.image-editor-actions .btn {
  flex: 1 1 170px !important;
}

/* Marco rectangular del editor: sin círculo, con guías limpias */
.image-editor-fullscreen .image-editor-frame:not(.is-circle) {
  border-radius: 24px !important;
  outline: 9999px solid rgba(2, 8, 23, .46) !important;
  box-shadow: 0 0 0 2px rgba(255,255,255,.96), 0 20px 60px rgba(0,0,0,.30) !important;
}

.image-editor-fullscreen .image-editor-frame:not(.is-circle)::before {
  border-radius: 24px !important;
  border: 2px solid rgba(255,255,255,.95) !important;
  box-shadow: inset 0 0 0 1px rgba(8,47,111,.18) !important;
}

.image-editor-fullscreen .image-editor-frame:not(.is-circle)::after {
  content: "16:9" !important;
  position: absolute !important;
  right: 12px !important;
  bottom: 10px !important;
  z-index: 4 !important;
  padding: 5px 9px !important;
  border-radius: 999px !important;
  background: rgba(0,0,0,.52) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  pointer-events: none !important;
}

@media (max-width: 640px) {
  .admin-image-frame-guide {
    padding: 8px !important;
    border-radius: 20px !important;
  }

  .admin-image-frame-guide .admin-image-preview {
    border-radius: 15px !important;
  }

  .image-editor-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }
}


/* ============================================================
   HOTFIX v3788 — Imagen 16:9 exacta + borrador bonito
   ============================================================ */

/* Lo que se recorta en el editor horizontal debe verse igual en tarjetas y detalles. */
.content-card__image {
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  overflow: hidden !important;
}

.content-card__image img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center center !important;
}

.detail-image,
.guide-detail-card .detail-image {
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  max-height: none !important;
  overflow: hidden !important;
}

.detail-image img,
.guide-detail-card .detail-image img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center center !important;
}

/* El editor muestra el mismo marco horizontal que usará la página pública. */
.admin-image-frame-guide .admin-image-preview,
.admin-image-preview-wrap-horizontal .admin-image-preview {
  aspect-ratio: 16 / 9 !important;
  object-fit: cover !important;
  object-position: center center !important;
}

/* Modal bonito para recuperar borrador */
.modal-card.admin-draft-recovery-modal {
  width: min(92vw, 430px) !important;
  border-radius: 34px !important;
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(242,247,255,.86)) !important;
  border: 1px solid rgba(255,255,255,.9) !important;
  box-shadow: 0 28px 90px rgba(15,23,42,.24), inset 0 1px 0 rgba(255,255,255,.95) !important;
  overflow: hidden !important;
}

.modal-card.admin-draft-recovery-modal .modal-head {
  border-bottom: 0 !important;
  background: transparent !important;
  padding: 18px 20px 4px !important;
}

.modal-card.admin-draft-recovery-modal .modal-head h2 {
  color: #07152c !important;
  letter-spacing: -.04em !important;
}

.modal-card.admin-draft-recovery-modal .modal-body {
  padding: 8px 22px 4px !important;
}

.admin-draft-recovery {
  display: grid !important;
  justify-items: center !important;
  text-align: center !important;
  gap: 10px !important;
}

.admin-draft-recovery-icon {
  width: 68px !important;
  height: 68px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 24px !important;
  font-size: 2rem !important;
  background: linear-gradient(135deg, rgba(8,47,111,.10), rgba(10,132,255,.14)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 12px 28px rgba(8,47,111,.12) !important;
}

.admin-draft-recovery h3 {
  margin: 0 !important;
  color: #07152c !important;
  font-size: 1.28rem !important;
  letter-spacing: -.025em !important;
}

.admin-draft-recovery p {
  margin: 0 !important;
  color: #5f6f86 !important;
  font-weight: 750 !important;
  line-height: 1.45 !important;
}

.modal-card.admin-draft-recovery-modal .modal-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
  padding: 18px 20px 20px !important;
  background: transparent !important;
  border-top: 0 !important;
}

.modal-card.admin-draft-recovery-modal .modal-actions .btn {
  min-height: 52px !important;
  border-radius: 18px !important;
}

.admin-draft-status {
  border-radius: 18px !important;
  background: linear-gradient(135deg, rgba(8,47,111,.08), rgba(10,132,255,.08)) !important;
  border-color: rgba(8,47,111,.16) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75) !important;
}

@media (max-width: 430px) {
  .modal-card.admin-draft-recovery-modal .modal-actions {
    grid-template-columns: 1fr !important;
  }
}


/* ============================================================
   HOTFIX v3789 — Secciones internas estables
   ============================================================ */

.service-option-admin-card textarea[data-no-rich="true"] {
  display: block !important;
  width: 100% !important;
  min-height: 120px !important;
  resize: vertical !important;
  line-height: 1.45 !important;
  white-space: pre-wrap !important;
}

.service-option-admin-card .service-option-details-input[data-no-rich="true"] {
  min-height: 210px !important;
}

.service-option-admin-card {
  scroll-margin-top: 90px !important;
}

.service-options-admin-box [data-add-service-option] {
  width: 100% !important;
  min-height: 52px !important;
  border-radius: 18px !important;
}


/* ============================================================
   HOTFIX v3790 — Galería adicional sí guarda URLs
   ============================================================ */

.gallery-upload-box {
  display: grid !important;
  gap: 8px !important;
  padding: 12px !important;
  border-radius: 18px !important;
  background: rgba(248,250,252,.86) !important;
  border: 1px dashed rgba(8,47,111,.24) !important;
}

.gallery-upload-box small {
  color: #64748b !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
}

.gallery-upload-box input[type="file"] {
  cursor: pointer !important;
}


/* ============================================================
   HOTFIX v3791 — Diseño limpio para modal Nueva publicación
   ============================================================ */

.forum-create-backdrop.modal-backdrop {
  place-items: center !important;
  padding: max(14px, env(safe-area-inset-top)) 12px max(14px, env(safe-area-inset-bottom)) !important;
}

.forum-create-modal.modal-card,
.modal-card.forum-create-modal {
  width: min(92vw, 520px) !important;
  max-height: calc(100dvh - max(32px, env(safe-area-inset-top)) - max(24px, env(safe-area-inset-bottom))) !important;
  border-radius: 34px !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 20% 0%, rgba(59,130,246,.16), transparent 32%),
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(244,248,255,.88)) !important;
  border: 1px solid rgba(255,255,255,.76) !important;
  box-shadow: 0 30px 90px rgba(15,23,42,.28), inset 0 1px 0 rgba(255,255,255,.85) !important;
}

.forum-create-modal .modal-head {
  padding: 20px 22px 12px !important;
  border-bottom: 1px solid rgba(15,23,42,.08) !important;
  background: rgba(255,255,255,.28) !important;
}

.forum-create-modal .modal-head h2 {
  margin: 0 !important;
  color: #061733 !important;
  font-size: clamp(1.85rem, 6vw, 2.38rem) !important;
  line-height: .98 !important;
  letter-spacing: -.055em !important;
  font-weight: 1000 !important;
}

.forum-create-modal .modal-close {
  width: 58px !important;
  height: 58px !important;
  min-width: 58px !important;
  border-radius: 999px !important;
  color: #082f6f !important;
  background: rgba(239,245,255,.94) !important;
  border: 1px solid rgba(8,47,111,.12) !important;
  box-shadow: 0 10px 30px rgba(15,23,42,.12), inset 0 1px 0 rgba(255,255,255,.9) !important;
}

.forum-create-modal .modal-body {
  max-height: calc(100dvh - 148px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 0 !important;
  -webkit-overflow-scrolling: touch !important;
}

.forum-post-form {
  padding: 16px 18px 0 !important;
  gap: 14px !important;
}

.forum-create-top {
  margin: 0 !important;
}

.forum-community-pill {
  width: 100% !important;
  min-height: 48px !important;
  padding: 8px 14px !important;
  border-radius: 18px !important;
  justify-content: flex-start !important;
  background: rgba(8,47,111,.07) !important;
  color: #082f6f !important;
  border: 1px solid rgba(8,47,111,.10) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.76) !important;
}

.forum-community-icon {
  width: 34px !important;
  height: 34px !important;
  border-radius: 13px !important;
  background: linear-gradient(135deg, #082f6f, #2563eb) !important;
}

.forum-field {
  display: grid !important;
  gap: 8px !important;
  padding: 0 !important;
  margin: 0 !important;
}

.forum-field > span {
  color: #07152c !important;
  font-size: .98rem !important;
  line-height: 1.1 !important;
  font-weight: 950 !important;
  padding-left: 2px !important;
}

.forum-input-shell {
  width: 100% !important;
  border-radius: 22px !important;
  background: rgba(255,255,255,.80) !important;
  border: 1px solid rgba(185,199,219,.86) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.92), 0 10px 26px rgba(15,23,42,.06) !important;
  overflow: hidden !important;
}

.forum-input,
.forum-post-form input:not([type="file"]),
.forum-post-form textarea,
.forum-post-form select {
  width: 100% !important;
  min-height: 58px !important;
  padding: 15px 18px !important;
  border: 0 !important;
  border-radius: 22px !important;
  outline: none !important;
  background: transparent !important;
  color: #07152c !important;
  -webkit-text-fill-color: #07152c !important;
  font-size: 16px !important;
  font-weight: 850 !important;
  line-height: 1.35 !important;
  box-shadow: none !important;
}

.forum-input::placeholder,
.forum-post-form textarea::placeholder {
  color: #9aa7ba !important;
  -webkit-text-fill-color: #9aa7ba !important;
  opacity: 1 !important;
  font-weight: 850 !important;
}

.forum-input-shell:focus-within {
  border-color: rgba(37,99,235,.46) !important;
  box-shadow: 0 0 0 4px rgba(37,99,235,.12), inset 0 1px 0 rgba(255,255,255,.92) !important;
}

.forum-counter {
  justify-self: end !important;
  margin-top: -2px !important;
  color: #748196 !important;
  font-size: .84rem !important;
  font-weight: 850 !important;
}

.forum-select-shell {
  position: relative !important;
}

.forum-select {
  appearance: none !important;
  padding-right: 48px !important;
}

.forum-select-shell::after {
  content: "⌄" !important;
  position: absolute !important;
  right: 18px !important;
  top: 50% !important;
  transform: translateY(-54%) !important;
  color: #082f6f !important;
  font-size: 1.55rem !important;
  font-weight: 950 !important;
  pointer-events: none !important;
}

.forum-textarea-shell {
  border-radius: 24px !important;
}

.forum-textarea,
.forum-post-form textarea.forum-textarea {
  min-height: 148px !important;
  max-height: 280px !important;
  resize: vertical !important;
  padding-top: 17px !important;
}

.forum-image-field {
  gap: 8px !important;
}

.forum-upload-dropzone {
  min-height: 128px !important;
  border-radius: 24px !important;
  padding: 18px 14px !important;
  background:
    linear-gradient(135deg, rgba(37,99,235,.08), rgba(8,47,111,.04)),
    rgba(255,255,255,.72) !important;
  border: 1.5px dashed rgba(37,99,235,.30) !important;
  color: #082f6f !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 12px 28px rgba(15,23,42,.06) !important;
}

.forum-upload-plus {
  width: 44px !important;
  height: 44px !important;
  border-radius: 16px !important;
  font-size: 1.45rem !important;
  background: linear-gradient(135deg, #2563eb, #082f6f) !important;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(37,99,235,.22) !important;
}

.forum-upload-dropzone strong {
  color: #07152c !important;
  font-size: 1.04rem !important;
  line-height: 1.1 !important;
  font-weight: 1000 !important;
}

.forum-upload-dropzone small {
  max-width: 360px !important;
  color: #66758b !important;
  font-weight: 780 !important;
}

.forum-create-actions {
  position: sticky !important;
  bottom: 0 !important;
  z-index: 8 !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
  width: calc(100% + 36px) !important;
  margin: 2px -18px 0 !important;
  padding: 14px 18px max(18px, env(safe-area-inset-bottom)) !important;
  background: linear-gradient(to top, rgba(248,250,252,.98) 78%, rgba(248,250,252,0)) !important;
  border-top: 0 !important;
  box-shadow: 0 -18px 36px rgba(15,23,42,.08) !important;
}

.forum-create-actions .btn {
  min-height: 58px !important;
  border-radius: 20px !important;
  font-size: 1rem !important;
  font-weight: 950 !important;
}

/* Modo oscuro: campos legibles y sin cajas apagadas */
html.wt-forum-dark .forum-create-modal.modal-card,
html.wt-forum-dark .modal-card.forum-create-modal,
html.wt-dark-mode .forum-create-modal.modal-card,
html.wt-dark-mode .modal-card.forum-create-modal {
  background:
    radial-gradient(circle at 16% 0%, rgba(59,130,246,.20), transparent 36%),
    linear-gradient(145deg, rgba(12,23,43,.96), rgba(8,16,31,.92)) !important;
  border-color: rgba(148,163,184,.16) !important;
  box-shadow: 0 28px 90px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.07) !important;
}

html.wt-forum-dark .forum-create-modal .modal-head,
html.wt-dark-mode .forum-create-modal .modal-head {
  background: rgba(15,23,42,.24) !important;
  border-bottom-color: rgba(148,163,184,.16) !important;
}

html.wt-forum-dark .forum-create-modal .modal-head h2,
html.wt-dark-mode .forum-create-modal .modal-head h2,
html.wt-forum-dark .forum-field > span,
html.wt-dark-mode .forum-field > span {
  color: #f8fafc !important;
}

html.wt-forum-dark .forum-community-pill,
html.wt-dark-mode .forum-community-pill {
  background: rgba(15,23,42,.72) !important;
  color: #dbeafe !important;
  border-color: rgba(147,197,253,.18) !important;
}

html.wt-forum-dark .forum-input-shell,
html.wt-dark-mode .forum-input-shell {
  background: rgba(15,23,42,.74) !important;
  border-color: rgba(147,197,253,.16) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 10px 28px rgba(0,0,0,.18) !important;
}

html.wt-forum-dark .forum-input,
html.wt-forum-dark .forum-post-form input:not([type="file"]),
html.wt-forum-dark .forum-post-form textarea,
html.wt-forum-dark .forum-post-form select,
html.wt-dark-mode .forum-input,
html.wt-dark-mode .forum-post-form input:not([type="file"]),
html.wt-dark-mode .forum-post-form textarea,
html.wt-dark-mode .forum-post-form select {
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
  background: transparent !important;
}

html.wt-forum-dark .forum-input::placeholder,
html.wt-forum-dark .forum-post-form textarea::placeholder,
html.wt-dark-mode .forum-input::placeholder,
html.wt-dark-mode .forum-post-form textarea::placeholder {
  color: #64748b !important;
  -webkit-text-fill-color: #64748b !important;
}

html.wt-forum-dark .forum-counter,
html.wt-dark-mode .forum-counter {
  color: #94a3b8 !important;
}

html.wt-forum-dark .forum-select-shell::after,
html.wt-dark-mode .forum-select-shell::after {
  color: #93c5fd !important;
}

html.wt-forum-dark .forum-upload-dropzone,
html.wt-dark-mode .forum-upload-dropzone {
  background:
    linear-gradient(135deg, rgba(37,99,235,.14), rgba(8,47,111,.08)),
    rgba(15,23,42,.72) !important;
  border-color: rgba(147,197,253,.22) !important;
  color: #dbeafe !important;
}

html.wt-forum-dark .forum-upload-dropzone strong,
html.wt-dark-mode .forum-upload-dropzone strong {
  color: #f8fafc !important;
}

html.wt-forum-dark .forum-upload-dropzone small,
html.wt-dark-mode .forum-upload-dropzone small {
  color: #a8b3c5 !important;
}

html.wt-forum-dark .forum-create-actions,
html.wt-dark-mode .forum-create-actions {
  background: linear-gradient(to top, rgba(8,16,31,.98) 76%, rgba(8,16,31,0)) !important;
  box-shadow: 0 -18px 36px rgba(0,0,0,.22) !important;
}

/* iPhone pequeño */
@media (max-width: 430px), (max-height: 760px) {
  .forum-create-modal.modal-card,
  .modal-card.forum-create-modal {
    width: min(94vw, 520px) !important;
    border-radius: 30px !important;
  }

  .forum-create-modal .modal-head {
    padding: 18px 18px 10px !important;
  }

  .forum-create-modal .modal-head h2 {
    font-size: clamp(1.68rem, 7vw, 2.05rem) !important;
  }

  .forum-create-modal .modal-close {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
  }

  .forum-post-form {
    padding: 14px 15px 0 !important;
    gap: 12px !important;
  }

  .forum-textarea,
  .forum-post-form textarea.forum-textarea {
    min-height: 128px !important;
  }

  .forum-upload-dropzone {
    min-height: 112px !important;
  }

  .forum-create-actions {
    width: calc(100% + 30px) !important;
    margin-inline: -15px !important;
    padding-inline: 15px !important;
  }
}


/* ============================================================
   HOTFIX v3792 — Navegar deslizando entre pestañas
   ============================================================ */









body.swipe-page-next main,
body.swipe-page-next .forum-app,
body.swipe-page-prev main,
body.swipe-page-prev .forum-app {
  transition: transform .14s ease, opacity .14s ease !important;
}

body.swipe-page-next main,
body.swipe-page-next .forum-app {
  transform: translateX(-14px) !important;
  opacity: .88 !important;
}

body.swipe-page-prev main,
body.swipe-page-prev .forum-app {
  transform: translateX(14px) !important;
  opacity: .88 !important;
}

/* Evitar conflicto con carruseles, galerías y editores. */
.forum-attachment-gallery,
.guide-gallery-grid,
.forum-selected-images,
.fa-tabs-wrap,
.comment-composer-bar,
.image-editor-stage {
  touch-action: pan-y pinch-zoom !important;
}


/* ============================================================
   HOTFIX v3793 — Swipe navigation más rápido
   ============================================================ */



body.swipe-page-next main,
body.swipe-page-next .forum-app,
body.swipe-page-prev main,
body.swipe-page-prev .forum-app {
  transition: transform .06s ease, opacity .06s ease !important;
}

body.swipe-page-next main,
body.swipe-page-next .forum-app {
  transform: translateX(-6px) !important;
  opacity: .96 !important;
}

body.swipe-page-prev main,
body.swipe-page-prev .forum-app {
  transform: translateX(6px) !important;
  opacity: .96 !important;
}


/* ============================================================
   HOTFIX v3808 — Quitar cuadro intrusivo de Mi perfil
   ============================================================ */

/* Mi perfil debe comportarse igual en todas las pestañas: Inicio, Guía,
   Servicios, Foro y Práctica. El modo oscuro del foro NO debe crear
   un panel/fondo flotante dentro del modal. */
body .modal-card.profile-settings-modal.account-settings-modal,
body .profile-settings-modal.account-settings-modal,
html.wt-forum-dark body .modal-card.profile-settings-modal.account-settings-modal,
html.wt-forum-dark body .profile-settings-modal.account-settings-modal,
html.wt-dark-mode body .modal-card.profile-settings-modal.account-settings-modal,
html.wt-dark-mode body .profile-settings-modal.account-settings-modal,
html[data-theme="dark"] body .modal-card.profile-settings-modal.account-settings-modal,
html[data-theme="dark"] body .profile-settings-modal.account-settings-modal {
  position: relative !important;
  overflow: hidden !important;
  color-scheme: light !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(255,255,255,.92), transparent 34%),
    linear-gradient(145deg, rgba(246,248,252,.98), rgba(229,235,245,.94)) !important;
  color: #07152c !important;
}

/* El contenido es el único que scrollea. No hay footer flotante ni capa gris. */
body .profile-settings-modal.account-settings-modal .modal-body,
html.wt-forum-dark body .profile-settings-modal.account-settings-modal .modal-body,
html.wt-dark-mode body .profile-settings-modal.account-settings-modal .modal-body,
html[data-theme="dark"] body .profile-settings-modal.account-settings-modal .modal-body {
  position: relative !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  background: transparent !important;
  padding: 0 18px max(18px, env(safe-area-inset-bottom)) !important;
  max-height: calc(min(88dvh, 820px) - 86px) !important;
  box-shadow: none !important;
  -webkit-overflow-scrolling: touch !important;
}

body .profile-settings-modal.account-settings-modal .modal-body::before,
body .profile-settings-modal.account-settings-modal .modal-body::after,
html.wt-forum-dark body .profile-settings-modal.account-settings-modal .modal-body::before,
html.wt-forum-dark body .profile-settings-modal.account-settings-modal .modal-body::after,
html.wt-dark-mode body .profile-settings-modal.account-settings-modal .modal-body::before,
html.wt-dark-mode body .profile-settings-modal.account-settings-modal .modal-body::after,
html[data-theme="dark"] body .profile-settings-modal.account-settings-modal .modal-body::before,
html[data-theme="dark"] body .profile-settings-modal.account-settings-modal .modal-body::after {
  display: none !important;
  content: none !important;
}

/* El formulario no debe reservar un espacio gigante abajo. */
body .profile-settings-modal.account-settings-modal .account-settings-form,
html.wt-forum-dark body .profile-settings-modal.account-settings-modal .account-settings-form,
html.wt-dark-mode body .profile-settings-modal.account-settings-modal .account-settings-form,
html[data-theme="dark"] body .profile-settings-modal.account-settings-modal .account-settings-form {
  display: grid !important;
  gap: 14px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 0 18px !important;
  background: transparent !important;
  overflow: visible !important;
  box-shadow: none !important;
}

body .profile-settings-modal.account-settings-modal .account-settings-form::before,
body .profile-settings-modal.account-settings-modal .account-settings-form::after,
html.wt-forum-dark body .profile-settings-modal.account-settings-modal .account-settings-form::before,
html.wt-forum-dark body .profile-settings-modal.account-settings-modal .account-settings-form::after,
html.wt-dark-mode body .profile-settings-modal.account-settings-modal .account-settings-form::before,
html.wt-dark-mode body .profile-settings-modal.account-settings-modal .account-settings-form::after,
html[data-theme="dark"] body .profile-settings-modal.account-settings-modal .account-settings-form::before,
html[data-theme="dark"] body .profile-settings-modal.account-settings-modal .account-settings-form::after {
  display: none !important;
  content: none !important;
}

/* Cerrar sesión y Guardar cambios se quedan como botones normales al final.
   No flotan, no hacen overlay y no crean un panel vacío. */
body .profile-settings-modal.account-settings-modal .profile-actions-group,
html.wt-forum-dark body .profile-settings-modal.account-settings-modal .profile-actions-group,
html.wt-dark-mode body .profile-settings-modal.account-settings-modal .profile-actions-group,
html[data-theme="dark"] body .profile-settings-modal.account-settings-modal .profile-actions-group {
  position: static !important;
  display: block !important;
  margin: 18px 0 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  min-height: 0 !important;
}

body .profile-settings-modal.account-settings-modal .account-settings-actions,
html.wt-forum-dark body .profile-settings-modal.account-settings-modal .account-settings-actions,
html.wt-dark-mode body .profile-settings-modal.account-settings-modal .account-settings-actions,
html[data-theme="dark"] body .profile-settings-modal.account-settings-modal .account-settings-actions {
  position: static !important;
  inset: auto !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  transform: none !important;
  z-index: 1 !important;

  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;

  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 0 max(10px, env(safe-area-inset-bottom)) !important;

  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

body .profile-settings-modal.account-settings-modal .account-settings-actions::before,
body .profile-settings-modal.account-settings-modal .account-settings-actions::after,
html.wt-forum-dark body .profile-settings-modal.account-settings-modal .account-settings-actions::before,
html.wt-forum-dark body .profile-settings-modal.account-settings-modal .account-settings-actions::after,
html.wt-dark-mode body .profile-settings-modal.account-settings-modal .account-settings-actions::before,
html.wt-dark-mode body .profile-settings-modal.account-settings-modal .account-settings-actions::after,
html[data-theme="dark"] body .profile-settings-modal.account-settings-modal .account-settings-actions::before,
html[data-theme="dark"] body .profile-settings-modal.account-settings-modal .account-settings-actions::after {
  display: none !important;
  content: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Botones visibles y centrados. */
body .profile-settings-modal.account-settings-modal .account-settings-actions button,
body .profile-settings-modal.account-settings-modal .account-settings-actions .btn,
html.wt-forum-dark body .profile-settings-modal.account-settings-modal .account-settings-actions button,
html.wt-forum-dark body .profile-settings-modal.account-settings-modal .account-settings-actions .btn,
html.wt-dark-mode body .profile-settings-modal.account-settings-modal .account-settings-actions button,
html.wt-dark-mode body .profile-settings-modal.account-settings-modal .account-settings-actions .btn,
html[data-theme="dark"] body .profile-settings-modal.account-settings-modal .account-settings-actions button,
html[data-theme="dark"] body .profile-settings-modal.account-settings-modal .account-settings-actions .btn {
  position: static !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 58px !important;
  margin: 0 !important;
  border-radius: 20px !important;
  font-size: 1.06rem !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  opacity: 1 !important;
  visibility: visible !important;
  white-space: nowrap !important;
}

body .profile-settings-modal.account-settings-modal .profile-logout-action,
html.wt-forum-dark body .profile-settings-modal.account-settings-modal .profile-logout-action,
html.wt-dark-mode body .profile-settings-modal.account-settings-modal .profile-logout-action,
html[data-theme="dark"] body .profile-settings-modal.account-settings-modal .profile-logout-action {
  color: #e11d48 !important;
  -webkit-text-fill-color: #e11d48 !important;
  background: rgba(255,255,255,.90) !important;
  border: 1px solid rgba(225,29,72,.22) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.96), 0 10px 24px rgba(225,29,72,.08) !important;
}

body .profile-settings-modal.account-settings-modal .profile-save-action,
html.wt-forum-dark body .profile-settings-modal.account-settings-modal .profile-save-action,
html.wt-dark-mode body .profile-settings-modal.account-settings-modal .profile-save-action,
html[data-theme="dark"] body .profile-settings-modal.account-settings-modal .profile-save-action {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: linear-gradient(135deg, #0a3a86, #06265c) !important;
  border: 0 !important;
  box-shadow: 0 16px 34px rgba(8,47,111,.26) !important;
}

/* Mantener el mismo encaje en iPhone. */
@media (max-width: 430px) {
  body .profile-settings-modal.account-settings-modal .modal-body,
  html.wt-forum-dark body .profile-settings-modal.account-settings-modal .modal-body,
  html.wt-dark-mode body .profile-settings-modal.account-settings-modal .modal-body,
  html[data-theme="dark"] body .profile-settings-modal.account-settings-modal .modal-body {
    padding-inline: 14px !important;
    max-height: calc(100dvh - max(114px, calc(env(safe-area-inset-top) + 94px))) !important;
  }
}




/* ============================================================
   HOTFIX v3811 — Quitar vista móvil en PC y ocultar tres líneas
   ============================================================ */

/* La web vuelve a usar su diseño normal en PC.
   Solo se asegura que el botón de tres líneas NO aparezca cuando
   la barra inferior está activada. */
body:not([data-page="admin"]):not(.wt-hide-quick-nav) .nav-toggle,
body:not([data-page="admin"]):not(.wt-hide-quick-nav) .app-header .nav-toggle,
body:not([data-page="admin"]):not(.wt-hide-quick-nav).reddit-page .nav-toggle,
body:not([data-page="admin"]):not(.wt-hide-quick-nav) header.app-header .nav-toggle {
  display: none !important;
}

/* Si el usuario oculta la barra inferior desde Mi perfil,
   entonces sí puede aparecer el botón de tres líneas. */
body:not([data-page="admin"]).wt-hide-quick-nav .nav-toggle,
body:not([data-page="admin"]).wt-hide-quick-nav .app-header .nav-toggle,
body:not([data-page="admin"]).wt-hide-quick-nav header.app-header .nav-toggle {
  display: inline-grid !important;
  place-items: center !important;
}

/* Si la barra inferior está activa, no dejar abierto el menú desplegable viejo. */
body:not([data-page="admin"]):not(.wt-hide-quick-nav) .main-nav.open {
  display: none !important;
}


/* ============================================================
   HOTFIX v3812 — Confirmar mejoras de práctica
   ============================================================ */

body[data-page="practice"] #toastRoot.toast-root,
body[data-page="practice"] .toast-root {
  position: fixed !important;
  top: max(12px, env(safe-area-inset-top)) !important;
  bottom: auto !important;
  left: 12px !important;
  right: 12px !important;
  z-index: 2147483647 !important;
  pointer-events: none !important;
  display: grid !important;
  gap: 10px !important;
}

body[data-page="practice"] .toast {
  pointer-events: auto !important;
  width: min(100%, 540px) !important;
  margin: 0 auto !important;
  border-radius: 22px !important;
  padding: 14px 16px !important;
  background: rgba(255,255,255,.94) !important;
  color: #10203d !important;
  border: 1px solid rgba(148,163,184,.22) !important;
  box-shadow: 0 18px 48px rgba(15,23,42,.18), inset 0 1px 0 rgba(255,255,255,.88) !important;
  backdrop-filter: blur(18px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(160%) !important;
}

body[data-page="practice"] .toast span {
  color: #334155 !important;
  font-weight: 850 !important;
  line-height: 1.3 !important;
}

body[data-page="practice"] .toast strong {
  color: #07152c !important;
}

html.wt-forum-dark body[data-page="practice"] .toast,
html.wt-dark-mode body[data-page="practice"] .toast,
body.dark[data-page="practice"] .toast {
  background: rgba(15,23,42,.92) !important;
  border-color: rgba(147,197,253,.16) !important;
}

html.wt-forum-dark body[data-page="practice"] .toast span,
html.wt-dark-mode body[data-page="practice"] .toast span,
body.dark[data-page="practice"] .toast span {
  color: #dbeafe !important;
}

html.wt-forum-dark body[data-page="practice"] .toast strong,
html.wt-dark-mode body[data-page="practice"] .toast strong,
body.dark[data-page="practice"] .toast strong {
  color: #fff !important;
}

body[data-page="practice"] .shared-toggle {
  width: 100% !important;
  min-height: 46px !important;
  border-radius: 17px !important;
  border: 1px solid rgba(8, 47, 111, .12) !important;
  background: rgba(248,250,252,.92) !important;
  color: #0a84ff !important;
  font-weight: 950 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 8px 20px rgba(15,23,42,.06) !important;
}

body[data-page="practice"] .practice-card-actions {
  align-items: stretch !important;
}

html.wt-forum-dark body[data-page="practice"] .shared-toggle,
html.wt-dark-mode body[data-page="practice"] .shared-toggle,
body.dark[data-page="practice"] .shared-toggle {
  background: rgba(15,23,42,.82) !important;
  color: #93c5fd !important;
  border-color: rgba(147,197,253,.18) !important;
}


/* ============================================================
   HOTFIX v3813 — Visor de imágenes del foro sin frisar
   ============================================================ */

body.wt-image-viewer-open {
  overflow: hidden !important;
}

.forum-image-viewer {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483600 !important;
  width: 100vw !important;
  height: 100dvh !important;
  display: grid !important;
  place-items: center !important;
  background: rgba(0,0,0,.96) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  touch-action: pan-y pinch-zoom !important;
  overscroll-behavior: contain !important;
  padding: max(12px, env(safe-area-inset-top)) 0 max(12px, env(safe-area-inset-bottom)) !important;
  box-sizing: border-box !important;
}

.forum-image-viewer-figure,
.forum-image-viewer figure {
  width: 100vw !important;
  height: 100dvh !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  pointer-events: auto !important;
  touch-action: pan-y pinch-zoom !important;
  box-sizing: border-box !important;
}

.forum-image-viewer-img,
.forum-image-viewer figure img,
.forum-image-viewer img {
  width: auto !important;
  height: auto !important;
  max-width: 100vw !important;
  max-height: calc(100dvh - 72px) !important;
  object-fit: contain !important;
  object-position: center center !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  user-select: none !important;
  -webkit-user-drag: none !important;
}

.forum-image-viewer-img.is-loading {
  opacity: .28 !important;
}

.forum-image-viewer-close,
.forum-image-viewer-nav,
.forum-image-viewer-count {
  position: fixed !important;
  z-index: 2147483601 !important;
  pointer-events: auto !important;
}

.forum-image-viewer-close {
  top: max(16px, env(safe-area-inset-top)) !important;
  right: 16px !important;
  width: 52px !important;
  height: 52px !important;
  border-radius: 999px !important;
  display: grid !important;
  place-items: center !important;
  background: rgba(20,20,20,.74) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.20) !important;
  font-size: 2rem !important;
  line-height: 1 !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}

.forum-image-viewer-nav {
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 48px !important;
  height: 64px !important;
  border-radius: 999px !important;
  display: grid !important;
  place-items: center !important;
  background: rgba(20,20,20,.62) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  font-size: 2.15rem !important;
  line-height: 1 !important;
}

.forum-image-viewer-nav.prev { left: 12px !important; }
.forum-image-viewer-nav.next { right: 12px !important; }

.forum-image-viewer-count {
  left: 50% !important;
  bottom: max(16px, env(safe-area-inset-bottom)) !important;
  transform: translateX(-50%) !important;
  padding: .42rem .78rem !important;
  border-radius: 999px !important;
  background: rgba(20,20,20,.74) !important;
  color: #fff !important;
  font-weight: 900 !important;
}

@media (max-width: 640px) {
  .forum-image-viewer-nav {
    display: none !important;
  }
}


/* ============================================================
   HOTFIX v3814 — Configuración amigable + logo con editor
   ============================================================ */

.friendly-setting-record .setting-record-head h3 {
  margin-bottom: .25rem !important;
}

.setting-friendly-hint {
  margin: .15rem 0 .45rem !important;
  color: #64748b !important;
  font-weight: 750 !important;
  line-height: 1.3 !important;
}

.setting-tech-details {
  margin-top: .25rem !important;
}

.setting-tech-details summary {
  cursor: pointer !important;
  color: #2563eb !important;
  font-weight: 900 !important;
  font-size: .86rem !important;
}

.setting-tech-details code,
.setting-readonly-key code {
  display: inline-flex !important;
  margin-top: .35rem !important;
  padding: .35rem .55rem !important;
  border-radius: 12px !important;
  background: rgba(15,23,42,.06) !important;
  color: #475569 !important;
  font-weight: 850 !important;
  max-width: 100% !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

.setting-readonly-key {
  display: grid !important;
  gap: .25rem !important;
  margin: .65rem 0 !important;
}

.setting-readonly-key span {
  color: #64748b !important;
  font-weight: 900 !important;
}

.setting-main-help {
  padding: .8rem .95rem !important;
  border-radius: 18px !important;
  background: rgba(37,99,235,.08) !important;
  color: #334155 !important;
  font-weight: 800 !important;
}

.setting-image-editor-box {
  display: grid !important;
  gap: 12px !important;
  padding: 14px !important;
  border-radius: 24px !important;
  border: 1px solid rgba(148,163,184,.22) !important;
  background: rgba(248,250,252,.88) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85) !important;
}

.setting-image-editor-preview {
  width: min(180px, 48vw) !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 28px !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  background: #fff !important;
  border: 1px solid rgba(148,163,184,.25) !important;
  box-shadow: 0 14px 34px rgba(15,23,42,.10) !important;
}

.setting-image-editor-preview img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  padding: 10px !important;
  box-sizing: border-box !important;
}

.setting-image-upload {
  min-height: 58px !important;
  border-radius: 20px !important;
  display: grid !important;
  place-items: center !important;
  text-align: center !important;
  font-weight: 950 !important;
  color: #08306f !important;
  background: rgba(255,255,255,.88) !important;
  border: 1px dashed rgba(37,99,235,.32) !important;
}

html.wt-forum-dark .setting-image-editor-box,
html.wt-dark-mode .setting-image-editor-box,
body.dark .setting-image-editor-box {
  background: rgba(15,23,42,.72) !important;
  border-color: rgba(147,197,253,.16) !important;
}

html.wt-forum-dark .setting-friendly-hint,
html.wt-dark-mode .setting-friendly-hint,
body.dark .setting-friendly-hint {
  color: #cbd5e1 !important;
}


/* ============================================================
   HOTFIX v3815 — Subida real de logo/icono/favicon
   ============================================================ */

.setting-image-upload {
  position: relative !important;
  overflow: hidden !important;
}

.setting-image-upload input[type="file"] {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  cursor: pointer !important;
}

.setting-upload-status {
  margin: 0 !important;
  padding: .75rem .9rem !important;
  border-radius: 16px !important;
  background: rgba(37,99,235,.08) !important;
  color: #334155 !important;
  font-weight: 850 !important;
  line-height: 1.35 !important;
}

html.wt-forum-dark .setting-upload-status,
html.wt-dark-mode .setting-upload-status,
body.dark .setting-upload-status {
  background: rgba(37,99,235,.18) !important;
  color: #dbeafe !important;
}


/* ============================================================
   HOTFIX v3816 — Logo/favicon con fallback si falla el bucket
   ============================================================ */

.setting-upload-status {
  display: block !important;
  margin: 4px 0 0 !important;
  padding: .72rem .85rem !important;
  border-radius: 16px !important;
  background: rgba(37,99,235,.08) !important;
  color: #334155 !important;
  font-weight: 850 !important;
  line-height: 1.35 !important;
  overflow-wrap: anywhere !important;
}

.setting-image-editor-box .form-help {
  margin-top: 2px !important;
}


/* ============================================================
   HOTFIX v3817 — Logo/favicon no depende del bucket
   ============================================================ */

.setting-upload-status {
  background: rgba(16,185,129,.10) !important;
  color: #0f5132 !important;
  border: 1px solid rgba(16,185,129,.14) !important;
}

html.wt-forum-dark .setting-upload-status,
html.wt-dark-mode .setting-upload-status,
body.dark .setting-upload-status {
  background: rgba(16,185,129,.14) !important;
  color: #d1fae5 !important;
  border-color: rgba(16,185,129,.22) !important;
}


/* ============================================================
   HOTFIX v3818 — Logo siempre URL pública, no base64
   ============================================================ */

.setting-upload-status {
  background: rgba(37,99,235,.08) !important;
  color: #334155 !important;
  border: 1px solid rgba(37,99,235,.12) !important;
}

.setting-image-editor-box .form-help::after {
  content: " El logo se guarda como URL pública, no como base64 en la base de datos." !important;
  font-weight: 900 !important;
  color: #0f766e !important;
}

html.wt-forum-dark .setting-image-editor-box .form-help::after,
html.wt-dark-mode .setting-image-editor-box .form-help::after,
body.dark .setting-image-editor-box .form-help::after {
  color: #5eead4 !important;
}


/* ============================================================
   HOTFIX v3819 — Logo en carpeta permitida site-assets
   ============================================================ */

.setting-upload-status {
  overflow-wrap: anywhere !important;
}


/* ============================================================
   HOTFIX v3821 — Re-editar logo después de subirlo
   ============================================================ */

.setting-upload-status {
  overflow-wrap: anywhere !important;
}


/* ============================================================
   HOTFIX v3822 — Quitar cuadro gris intrusivo de Mi perfil
   ============================================================ */

/* El cuadro gris que aparecía al final del modal venía de estilos viejos
   tipo sticky/footer para las acciones. En Mi perfil las acciones deben
   ser parte normal del formulario, sin panel flotante ni fondo propio. */

.profile-settings-modal.account-settings-modal .profile-actions-group,
.profile-settings-modal.account-settings-modal section.profile-actions-group,
html.wt-forum-dark .profile-settings-modal.account-settings-modal .profile-actions-group,
html.wt-dark-mode .profile-settings-modal.account-settings-modal .profile-actions-group,
html[data-theme="dark"] .profile-settings-modal.account-settings-modal .profile-actions-group {
  display: block !important;
  position: static !important;
  width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 10px 0 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.profile-settings-modal.account-settings-modal .profile-actions-group::before,
.profile-settings-modal.account-settings-modal .profile-actions-group::after,
html.wt-forum-dark .profile-settings-modal.account-settings-modal .profile-actions-group::before,
html.wt-forum-dark .profile-settings-modal.account-settings-modal .profile-actions-group::after,
html.wt-dark-mode .profile-settings-modal.account-settings-modal .profile-actions-group::before,
html.wt-dark-mode .profile-settings-modal.account-settings-modal .profile-actions-group::after,
html[data-theme="dark"] .profile-settings-modal.account-settings-modal .profile-actions-group::before,
html[data-theme="dark"] .profile-settings-modal.account-settings-modal .profile-actions-group::after {
  display: none !important;
  content: none !important;
}

/* Anula cualquier versión sticky/fixed de account-settings-actions. */
.profile-settings-modal.account-settings-modal .account-settings-actions,
.account-settings-modal.profile-settings-modal .account-settings-actions,
html.wt-forum-dark .profile-settings-modal.account-settings-modal .account-settings-actions,
html.wt-dark-mode .profile-settings-modal.account-settings-modal .account-settings-actions,
html[data-theme="dark"] .profile-settings-modal.account-settings-modal .account-settings-actions {
  position: static !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;

  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;

  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 0 max(12px, env(safe-area-inset-bottom)) !important;

  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: auto !important;
}

.profile-settings-modal.account-settings-modal .account-settings-actions::before,
.profile-settings-modal.account-settings-modal .account-settings-actions::after,
html.wt-forum-dark .profile-settings-modal.account-settings-modal .account-settings-actions::before,
html.wt-forum-dark .profile-settings-modal.account-settings-modal .account-settings-actions::after,
html.wt-dark-mode .profile-settings-modal.account-settings-modal .account-settings-actions::before,
html.wt-dark-mode .profile-settings-modal.account-settings-modal .account-settings-actions::after,
html[data-theme="dark"] .profile-settings-modal.account-settings-modal .account-settings-actions::before,
html[data-theme="dark"] .profile-settings-modal.account-settings-modal .account-settings-actions::after {
  display: none !important;
  content: none !important;
}

/* Evita espacio vacío grande debajo del formulario. */
.profile-settings-modal.account-settings-modal .modal-body,
html.wt-forum-dark .profile-settings-modal.account-settings-modal .modal-body,
html.wt-dark-mode .profile-settings-modal.account-settings-modal .modal-body,
html[data-theme="dark"] .profile-settings-modal.account-settings-modal .modal-body {
  padding-bottom: max(12px, env(safe-area-inset-bottom)) !important;
  background: transparent !important;
}

.profile-settings-modal.account-settings-modal .account-settings-form,
html.wt-forum-dark .profile-settings-modal.account-settings-modal .account-settings-form,
html.wt-dark-mode .profile-settings-modal.account-settings-modal .account-settings-form,
html[data-theme="dark"] .profile-settings-modal.account-settings-modal .account-settings-form {
  padding-bottom: 0 !important;
}

/* Mantener botones bonitos cuando se llegue al final. */
.profile-settings-modal.account-settings-modal .profile-logout-action {
  color: #e11d48 !important;
  -webkit-text-fill-color: #e11d48 !important;
  background: rgba(255,255,255,.92) !important;
  border: 1px solid rgba(225,29,72,.22) !important;
}

.profile-settings-modal.account-settings-modal .profile-save-action {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: linear-gradient(135deg, #0a3a86, #06265c) !important;
  border: 0 !important;
}


/* ============================================================
   HOTFIX v3823 — Limpieza de assets y transiciones más rápidas
   ============================================================ */

/* Transiciones más ligeras: menos blur/movimientos largos, mejor sensación en iPhone. */
:root {
  --wt-fast-transition: 140ms cubic-bezier(.2,.8,.2,1);
  --wt-normal-transition: 190ms cubic-bezier(.2,.8,.2,1);
}

button,
.btn,
.card,
.modal-card,
.settings-row,
.mobile-quick-nav,
.reddit-post-card,
.practice-question-card,
.service-card,
.course-card {
  transition-duration: 140ms !important;
  transition-timing-function: cubic-bezier(.2,.8,.2,1) !important;
}

/* Evitar animaciones exageradas que hacen sentir lenta la app. */
.modal-backdrop,
.modal-card,
.toast,
.mobile-quick-nav,
.forum-image-viewer {
  animation-duration: 160ms !important;
}

/* Menos trabajo de renderizado en listas largas. */
.reddit-post-card,
.practice-question-card,
.content-record-card,
.admin-record,
.service-card,
.course-card {
  content-visibility: auto;
  contain-intrinsic-size: 1px 360px;
}

/* Respetar usuarios/dispositivos con reducción de movimiento. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}


/* ============================================================
   HOTFIX v3824 — Apartado simple para logos en Admin
   ============================================================ */

.admin-logo-settings-panel {
  display: grid !important;
  gap: 18px !important;
  padding: 18px !important;
  border-radius: 28px !important;
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(240,246,255,.92)) !important;
  border: 1px solid rgba(148,163,184,.22) !important;
  box-shadow: 0 18px 42px rgba(15,23,42,.08) !important;
}

.admin-section-heading {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 14px !important;
}

.admin-section-heading h3 {
  margin: .25rem 0 .35rem !important;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem) !important;
}

.admin-section-heading p {
  margin: 0 !important;
  color: #64748b !important;
  font-weight: 750 !important;
  line-height: 1.35 !important;
}

.section-kicker {
  display: inline-flex !important;
  padding: .35rem .65rem !important;
  border-radius: 999px !important;
  background: rgba(37,99,235,.10) !important;
  color: #1d4ed8 !important;
  font-weight: 950 !important;
  font-size: .82rem !important;
  letter-spacing: .02em !important;
}

.admin-logo-config-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

.admin-logo-config-card {
  display: grid !important;
  grid-template-columns: 92px minmax(0, 1fr) !important;
  gap: 14px !important;
  align-items: center !important;
  padding: 14px !important;
  border-radius: 24px !important;
  background: rgba(255,255,255,.86) !important;
  border: 1px solid rgba(148,163,184,.20) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 10px 26px rgba(15,23,42,.06) !important;
}

.admin-logo-preview-wrap {
  width: 92px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 24px !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  background: #fff !important;
  border: 1px solid rgba(148,163,184,.22) !important;
}

.admin-logo-preview-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  padding: 10px !important;
  box-sizing: border-box !important;
}

.admin-logo-config-body {
  min-width: 0 !important;
  display: grid !important;
  gap: 8px !important;
}

.admin-logo-config-body h3 {
  margin: 0 !important;
  font-size: 1.05rem !important;
}

.admin-logo-config-body p,
.admin-logo-config-body small {
  margin: 0 !important;
  color: #64748b !important;
  font-weight: 750 !important;
  line-height: 1.3 !important;
}

.admin-logo-config-body small {
  overflow-wrap: anywhere !important;
}

.admin-logo-config-body .record-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

@media (max-width: 980px) {
  .admin-logo-config-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 560px) {
  .admin-section-heading {
    display: grid !important;
  }

  .admin-logo-config-card {
    grid-template-columns: 76px minmax(0, 1fr) !important;
    padding: 12px !important;
  }

  .admin-logo-preview-wrap {
    width: 76px !important;
    border-radius: 20px !important;
  }
}


/* ============================================================
   HOTFIX v3828 — Transiciones más fluidas y sin guía de swipe
   ============================================================ */

/* Quitar por completo la guía/cartel visual de deslizamiento. */
.swipe-nav-hint,
[data-swipe-nav-hint] {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Que se sienta como app: transiciones cortas, suaves y sin delay. */
:root {
  --wt-app-ease: cubic-bezier(.2, .8, .2, 1);
  --wt-app-fast: 110ms;
  --wt-app-normal: 160ms;
}

html {
  scroll-behavior: auto !important;
  -webkit-text-size-adjust: 100%;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Evitar transiciones largas que hacen sentir lenta la web app. */
button,
.btn,
.icon-btn,
.nav-toggle,
.main-nav a,
.mobile-quick-nav,
.mobile-quick-nav a,
.card,
.content-card,
.service-card,
.course-card,
.reddit-post-card,
.fa-post-card,
.practice-question-card,
.settings-row,
.modal-card,
.toast {
  transition-duration: var(--wt-app-fast) !important;
  transition-timing-function: var(--wt-app-ease) !important;
}

/* Hero un poco más inmediato. */
.hero-bg {
  transition: background-image 180ms var(--wt-app-ease),
              transform 220ms var(--wt-app-ease),
              background-position 180ms var(--wt-app-ease) !important;
}

/* Menos animación en cards del foro para que el scroll no se sienta pesado. */
.fa-post-card,
.reddit-post-card,
.practice-question-card,
.content-card,
.service-card,
.course-card {
  animation-duration: 120ms !important;
  will-change: auto !important;
}

/* Transición de swipe: casi instantánea y sin cartel. */
body.swipe-page-next main,
body.swipe-page-next .forum-app,
body.swipe-page-prev main,
body.swipe-page-prev .forum-app {
  transition: opacity 70ms var(--wt-app-ease), transform 70ms var(--wt-app-ease) !important;
  pointer-events: none !important;
}

body.swipe-page-next main,
body.swipe-page-next .forum-app {
  transform: translate3d(-8px, 0, 0) !important;
  opacity: .96 !important;
}

body.swipe-page-prev main,
body.swipe-page-prev .forum-app {
  transform: translate3d(8px, 0, 0) !important;
  opacity: .96 !important;
}

/* Acelerar modales y paneles sin verse brusco. */
.modal-backdrop,
.modal-card,
.notification-top-panel,
.fa-filter-panel__sheet,
.forum-image-viewer {
  animation-duration: 130ms !important;
  transition-duration: 130ms !important;
}

/* Scroll y listas largas más livianas. */
.fa-post-card,
.reddit-post-card,
.practice-question-card,
.content-record-card,
.admin-record,
.service-card,
.course-card {
  content-visibility: auto;
  contain-intrinsic-size: 1px 340px;
}

/* Evitar efectos pesados de blur durante navegación/scroll, especialmente iPhone. */
.mobile-quick-nav,
.notification-top-panel,
.app-header {
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
  transform: translateZ(0) !important;
}

/* Mantener accesibilidad. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}


/* ============================================================
   HOTFIX v3829 — Foro oscuro a pantalla completa como modo claro
   ============================================================ */

/* El problema no era el contenido del post, sino el fondo/área segura:
   el foro oscuro dejaba ver una franja negra del html/body mientras se
   hacía scroll. Igualamos fondos y hacemos que el foro ocupe todo. */
html.wt-forum-dark,
html.wt-forum-dark body,
html.wt-forum-dark body[data-page="forum"],
html.wt-forum-dark body.forum-redesign-page,
html.wt-dark-mode body[data-page="forum"],
html[data-theme="dark"] body[data-page="forum"] {
  width: 100% !important;
  min-width: 100% !important;
  margin: 0 !important;
  background: #0b0f14 !important;
  background-color: #0b0f14 !important;
  overflow-x: hidden !important;
}

html.wt-forum-dark body[data-page="forum"] main,
html.wt-forum-dark body[data-page="forum"] .forum-app,
html.wt-forum-dark body.forum-redesign-page .forum-app,
html.wt-dark-mode body[data-page="forum"] .forum-app,
html[data-theme="dark"] body[data-page="forum"] .forum-app {
  width: 100% !important;
  max-width: none !important;
  min-height: 100svh !important;
  margin: 0 !important;
  background: #0b0f14 !important;
  background-color: #0b0f14 !important;
}

/* La zona superior y el área de status bar deben tener el mismo color del foro,
   no una banda negra separada. */
html.wt-forum-dark body[data-page="forum"]::before,
html.wt-dark-mode body[data-page="forum"]::before,
html[data-theme="dark"] body[data-page="forum"]::before {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: max(0px, env(safe-area-inset-top));
  background: #0b0f14;
  z-index: 0;
  pointer-events: none;
}

/* Evitar que el header o barras transparentes muestren negro detrás. */
html.wt-forum-dark body[data-page="forum"] .app-header,
html.wt-forum-dark body[data-page="forum"] .reddit-site-header,
html.wt-dark-mode body[data-page="forum"] .app-header,
html[data-theme="dark"] body[data-page="forum"] .app-header {
  background: rgba(11, 15, 20, .98) !important;
  background-color: rgba(11, 15, 20, .98) !important;
  border-color: rgba(148,163,184,.16) !important;
}

/* Mantener los posts con el ancho y márgenes del modo claro,
   pero sin que aparezca un contenedor oscuro más estrecho. */
html.wt-forum-dark body[data-page="forum"] .fa-tabs-wrap,
html.wt-forum-dark body[data-page="forum"] .fa-search-wrap,
html.wt-forum-dark body[data-page="forum"] .fa-section-label,
html.wt-forum-dark body[data-page="forum"] .fa-posts,
html.wt-forum-dark body[data-page="forum"] .fa-compose,
html.wt-dark-mode body[data-page="forum"] .fa-tabs-wrap,
html.wt-dark-mode body[data-page="forum"] .fa-search-wrap,
html.wt-dark-mode body[data-page="forum"] .fa-section-label,
html.wt-dark-mode body[data-page="forum"] .fa-posts,
html.wt-dark-mode body[data-page="forum"] .fa-compose {
  box-sizing: border-box !important;
}

/* Estabiliza el repintado del scroll sin cambiar el diseño del foro. */
html.wt-forum-dark body[data-page="forum"] .fa-post-card,
html.wt-forum-dark body[data-page="forum"] .fa-compose,
html.wt-dark-mode body[data-page="forum"] .fa-post-card,
html.wt-dark-mode body[data-page="forum"] .fa-compose {
  -webkit-transform: translateZ(0) !important;
  transform: translateZ(0) !important;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
}


/* ============================================================
   HOTFIX v3830 — Quitar botón técnico y cuadro gris de Mi perfil
   ============================================================ */

/* En Admin > Configuración el panel de logos ya es directo, no necesita
   el botón "Ver ajustes técnicos". Si queda en caché, se oculta. */
[data-focus-logo-settings] {
  display: none !important;
}

/* El cuadro gris de Mi perfil venía de reglas viejas de acciones sticky.
   En el foro no se veía por overrides del foro, pero en Inicio/Guía/
   Servicios/Práctica sí. Aquí se anula globalmente dentro del modal. */
body .modal-backdrop .profile-settings-modal.account-settings-modal .profile-actions-group,
body .profile-settings-modal.account-settings-modal .profile-actions-group,
body .modal-backdrop .profile-settings-modal.account-settings-modal .account-settings-actions,
body .profile-settings-modal.account-settings-modal .account-settings-actions,
html.wt-forum-dark body .profile-settings-modal.account-settings-modal .profile-actions-group,
html.wt-forum-dark body .profile-settings-modal.account-settings-modal .account-settings-actions,
html.wt-dark-mode body .profile-settings-modal.account-settings-modal .profile-actions-group,
html.wt-dark-mode body .profile-settings-modal.account-settings-modal .account-settings-actions,
html[data-theme="dark"] body .profile-settings-modal.account-settings-modal .profile-actions-group,
html[data-theme="dark"] body .profile-settings-modal.account-settings-modal .account-settings-actions {
  position: static !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;

  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;

  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;

  margin: 12px 0 0 !important;
  padding: 0 0 max(14px, env(safe-area-inset-bottom)) !important;

  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: auto !important;
  overflow: visible !important;

  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* Quita pseudo-capas que podían quedar como un panel gris vacío. */
body .profile-settings-modal.account-settings-modal .profile-actions-group::before,
body .profile-settings-modal.account-settings-modal .profile-actions-group::after,
body .profile-settings-modal.account-settings-modal .account-settings-actions::before,
body .profile-settings-modal.account-settings-modal .account-settings-actions::after {
  display: none !important;
  content: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Evita espacio reservado abajo del modal cuando no se está al final. */
body .profile-settings-modal.account-settings-modal .modal-body,
body .profile-settings-modal.account-settings-modal .account-settings-form {
  padding-bottom: max(12px, env(safe-area-inset-bottom)) !important;
}

/* Botones normales al final, sin panel flotante. */
body .profile-settings-modal.account-settings-modal .profile-logout-action,
body .profile-settings-modal.account-settings-modal #logoutBtn {
  width: 100% !important;
  min-height: 58px !important;
  border-radius: 18px !important;
  color: #e11d48 !important;
  -webkit-text-fill-color: #e11d48 !important;
  background: rgba(255,255,255,.92) !important;
  border: 1px solid rgba(225,29,72,.22) !important;
  box-shadow: none !important;
}

body .profile-settings-modal.account-settings-modal .profile-save-action {
  width: 100% !important;
  min-height: 58px !important;
  border-radius: 18px !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: linear-gradient(135deg, #0a3a86, #06265c) !important;
  border: 0 !important;
  box-shadow: 0 16px 36px rgba(8,47,107,.18) !important;
}


/* ============================================================
   HOTFIX v3833 — Restaurar cuadrícula y centrar flechas del visor
   ============================================================ */

/* 1) Restaurar estética de la cuadrícula:
   Las imágenes múltiples deben llenar su tarjeta como antes, sin quedar
   pequeñas dentro del marco. */
body[data-page="forum"] .forum-attachment-gallery.is-multi,
body[data-page="post"] .forum-attachment-gallery.is-multi,
body[data-page="forum"] .fa-post-card .forum-attachment-gallery.is-multi {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  width: 100% !important;
  align-items: stretch !important;
}

body[data-page="forum"] .forum-attachment-gallery.is-multi .forum-attachment,
body[data-page="post"] .forum-attachment-gallery.is-multi .forum-attachment,
body[data-page="forum"] .fa-post-card .forum-attachment-gallery.is-multi .forum-attachment {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  min-height: 0 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  background: #0b1220 !important;
}

body[data-page="forum"] .forum-attachment-gallery.is-multi .forum-attachment-img,
body[data-page="post"] .forum-attachment-gallery.is-multi .forum-attachment-img,
body[data-page="forum"] .fa-post-card .forum-attachment-gallery.is-multi .forum-attachment-img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: inherit !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Si hay una capa de fondo/blur, no debe reducir visualmente la imagen. */
body[data-page="forum"] .forum-attachment-gallery.is-multi .forum-attachment-bg,
body[data-page="post"] .forum-attachment-gallery.is-multi .forum-attachment-bg {
  display: none !important;
}

/* 2) Flechas del visor:
   No se quitan. No se toca la imagen. Solo se posicionan como controles
   centrados dentro del overlay, no en relación al documento de atrás. */
.forum-image-viewer {
  position: fixed !important;
  inset: 0 !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
}

.forum-image-viewer-nav {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 54px !important;
  height: 54px !important;
  min-width: 54px !important;
  min-height: 54px !important;
  border-radius: 999px !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  line-height: 1 !important;
  font-size: 2.05rem !important;
  z-index: 2147483602 !important;
}

.forum-image-viewer-nav.prev {
  left: max(14px, env(safe-area-inset-left)) !important;
  right: auto !important;
}

.forum-image-viewer-nav.next {
  right: max(14px, env(safe-area-inset-right)) !important;
  left: auto !important;
}

/* En móvil las flechas siguen visibles, solo compactas y centradas. */
@media (max-width: 900px) {
  .forum-image-viewer-nav {
    display: grid !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    min-height: 52px !important;
  }

  .forum-image-viewer-nav.prev {
    left: 12px !important;
  }

  .forum-image-viewer-nav.next {
    right: 12px !important;
  }
}


/* ============================================================
   HOTFIX v3834 — Mi perfil sin cuadro gris usando HTML nuevo
   ============================================================ */

/* Ya no usamos .settings-group ni .account-settings-actions para los botones
   de Mi perfil. Esas clases tenían reglas viejas sticky/fixed que generaban
   el cuadro gris en páginas que no eran el foro. */
.profile-settings-modal.account-settings-modal .profile-final-actions,
body .profile-settings-modal.account-settings-modal [data-profile-final-actions],
html.wt-forum-dark body .profile-settings-modal.account-settings-modal [data-profile-final-actions],
html.wt-dark-mode body .profile-settings-modal.account-settings-modal [data-profile-final-actions],
html[data-theme="dark"] body .profile-settings-modal.account-settings-modal [data-profile-final-actions] {
  position: static !important;
  inset: auto !important;
  transform: none !important;

  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;

  width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 10px 0 0 !important;
  padding: 0 0 max(14px, env(safe-area-inset-bottom)) !important;

  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  filter: none !important;
  overflow: visible !important;
  z-index: auto !important;

  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.profile-settings-modal.account-settings-modal .profile-final-actions::before,
.profile-settings-modal.account-settings-modal .profile-final-actions::after,
body .profile-settings-modal.account-settings-modal [data-profile-final-actions]::before,
body .profile-settings-modal.account-settings-modal [data-profile-final-actions]::after {
  display: none !important;
  content: none !important;
}

/* Por si queda alguna acción vieja por caché o markup anterior, se apaga su
   fondo gris y comportamiento flotante. */
.profile-settings-modal.account-settings-modal .profile-actions-group,
.profile-settings-modal.account-settings-modal .account-settings-actions {
  position: static !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* Botones finales normales, como parte del formulario. */
.profile-settings-modal.account-settings-modal .profile-final-actions .btn,
.profile-settings-modal.account-settings-modal [data-profile-final-actions] .btn {
  width: 100% !important;
  min-height: 58px !important;
  border-radius: 18px !important;
  margin: 0 !important;
  font-weight: 950 !important;
}

.profile-settings-modal.account-settings-modal .profile-final-actions #logoutBtn,
.profile-settings-modal.account-settings-modal [data-profile-final-actions] #logoutBtn {
  color: #e11d48 !important;
  -webkit-text-fill-color: #e11d48 !important;
  background: rgba(255,255,255,.92) !important;
  border: 1px solid rgba(225,29,72,.22) !important;
  box-shadow: none !important;
}

.profile-settings-modal.account-settings-modal .profile-final-actions .profile-save-action,
.profile-settings-modal.account-settings-modal [data-profile-final-actions] .profile-save-action {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: linear-gradient(135deg, #0a3a86, #06265c) !important;
  border: 0 !important;
  box-shadow: 0 16px 36px rgba(8,47,107,.18) !important;
}

/* Menos espacio inferior para que no quede un bloque vacío. */
.profile-settings-modal.account-settings-modal .modal-body,
.profile-settings-modal.account-settings-modal .account-settings-form {
  padding-bottom: max(12px, env(safe-area-inset-bottom)) !important;
}


/* ============================================================
   HOTFIX v3835 — Composer de comentarios más abajo con teclado
   ============================================================ */

/* Cuando el teclado abre, el composer estaba quedando demasiado arriba.
   Lo bajamos un poco, pero sin dejarlo metido debajo del teclado. */
body[data-page="post"] .instagram-comment-composer.keyboard-open,
body[data-page="post"].comment-composer-focused .instagram-comment-composer.keyboard-open,
html.wt-forum-dark body[data-page="post"] .instagram-comment-composer.keyboard-open,
html.wt-dark-mode body[data-page="post"] .instagram-comment-composer.keyboard-open,
html[data-theme="dark"] body[data-page="post"] .instagram-comment-composer.keyboard-open {
  position: fixed !important;
  top: auto !important;
  bottom: max(0px, calc(var(--comment-keyboard-offset, 0px) - 38px)) !important;
  transform: translateX(-50%) translateZ(0) !important;
}

/* En iPhone pequeños, bajarlo un poco más porque la barra de sugerencias
   del teclado deja más espacio visual. */
@media (max-width: 430px) {
  body[data-page="post"] .instagram-comment-composer.keyboard-open,
  body[data-page="post"].comment-composer-focused .instagram-comment-composer.keyboard-open,
  html.wt-forum-dark body[data-page="post"] .instagram-comment-composer.keyboard-open,
  html.wt-dark-mode body[data-page="post"] .instagram-comment-composer.keyboard-open,
  html[data-theme="dark"] body[data-page="post"] .instagram-comment-composer.keyboard-open {
    bottom: max(0px, calc(var(--comment-keyboard-offset, 0px) - 46px)) !important;
  }
}

/* La barra inferior no debe competir con el composer mientras se escribe. */
body[data-page="post"].comment-composer-focused .mobile-quick-nav,
body[data-page="post"].comment-keyboard-open .mobile-quick-nav,
html.comment-composer-focused body[data-page="post"] .mobile-quick-nav,
html.comment-keyboard-open body[data-page="post"] .mobile-quick-nav,
body[data-page="post"].comment-composer-focused .bottom-nav,
body[data-page="post"].comment-keyboard-open .bottom-nav,
html.comment-composer-focused body[data-page="post"] .bottom-nav,
html.comment-keyboard-open body[data-page="post"] .bottom-nav {
  opacity: 0 !important;
  pointer-events: none !important;
}


/* ============================================================
   HOTFIX v3836 — Modal de nueva contraseña después del enlace
   ============================================================ */

.update-password-modal .auth-help-text {
  margin: 0 0 8px !important;
  color: #64748b !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
}

.update-password-modal .modal-card,
.update-password-modal.modal-card {
  max-width: min(440px, calc(100vw - 28px)) !important;
}

.update-password-modal .btn-primary {
  min-height: 54px !important;
}


/* ============================================================
   HOTFIX v3837 — Recuperación sin dejar sesión iniciada
   ============================================================ */

body.password-recovery-mode .user-menu,
body.password-recovery-mode #profileBtn,
body.password-recovery-mode #notificationsBtn {
  pointer-events: none !important;
}


/* ============================================================
   HOTFIX v3838 — Ocultar sesión temporal de recuperación
   ============================================================ */

body.password-recovery-mode #authArea .user-chip,
body.password-recovery-mode #authArea .profile-chip,
body.password-recovery-mode #authArea [data-profile-menu] {
  display: none !important;
}
