/* Dingous Match — refinamento de navegação e ações principais somente no mobile. */
@media (max-width: 767px) {
  /* Mantém todos os itens do menu de três pontos no mesmo alinhamento visual. */
  body[data-dingous-match-shell="true"] .dm-mobile-menu-source > a.dm-my-matches,
  body[data-dingous-match-shell="true"] .dm-mobile-menu-popover > a.dm-my-matches {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 11px 12px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    align-self: stretch !important;
    text-align: left !important;
    white-space: normal !important;
  }

  /* Encontrar é a ação rápida principal do Pedido inteligente: rosa, sem competir com Resolver por mim. */
  body[data-dingous-match-shell="true"] #dmSmartAnalyze {
    border: 1px solid rgba(255, 61, 127, .62) !important;
    background: linear-gradient(135deg, #ec4899 0%, #ff3d7f 100%) !important;
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(236, 72, 153, .28) !important;
  }

  body[data-dingous-match-shell="true"] #dmSmartAnalyze:active {
    transform: scale(.98) !important;
  }

  /* X e Dar Match são as decisões principais; info e salvar ficam como ações secundárias. */
  body[data-dingous-match-shell="true"] .dm-actions {
    gap: 10px !important;
    padding: 8px 10px !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body[data-dingous-match-shell="true"] .dm-actions > .dm-action.dm-pass,
  body[data-dingous-match-shell="true"] .dm-actions > .dm-action.dm-like {
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
    min-height: 64px !important;
    flex: 0 0 64px !important;
    border-width: 2px !important;
    font-size: 1.55rem !important;
    position: relative !important;
    z-index: 2 !important;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease !important;
  }

  body[data-dingous-match-shell="true"] .dm-actions > .dm-action.dm-pass {
    color: #ff6b81 !important;
    border-color: rgba(251,113,133,.62) !important;
    background: radial-gradient(circle at 50% 35%,rgba(244,63,94,.18),rgba(127,29,29,.10) 62%,#101827 100%) !important;
    box-shadow: 0 10px 26px rgba(244,63,94,.18), inset 0 0 0 1px rgba(251,113,133,.08) !important;
  }

  body[data-dingous-match-shell="true"] .dm-actions > .dm-action.dm-like {
    color: #4ade80 !important;
    border-color: rgba(74,222,128,.62) !important;
    background: radial-gradient(circle at 50% 35%,rgba(34,197,94,.19),rgba(20,83,45,.10) 62%,#101827 100%) !important;
    box-shadow: 0 10px 26px rgba(34,197,94,.20), inset 0 0 0 1px rgba(74,222,128,.08) !important;
  }

  body[data-dingous-match-shell="true"] .dm-actions > .dm-action.dm-info,
  body[data-dingous-match-shell="true"] .dm-actions > .dm-action.dm-save {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    flex: 0 0 48px !important;
    border-width: 1px !important;
    background: #101827 !important;
    box-shadow: 0 8px 20px rgba(0,0,0,.22) !important;
  }

  body[data-dingous-match-shell="true"] .dm-actions > .dm-action:focus-visible,
  body[data-dingous-match-shell="true"] .dm-mobile-menu-toggle:focus-visible,
  body[data-dingous-match-shell="true"] .dm-mobile-menu-source > a:focus-visible,
  body[data-dingous-match-shell="true"] .dm-mobile-menu-popover > a:focus-visible {
    outline: 3px solid rgba(196,181,253,.82) !important;
    outline-offset: 3px !important;
  }

  body[data-dingous-match-shell="true"] .dm-actions > .dm-action.dm-pass:active,
  body[data-dingous-match-shell="true"] .dm-actions > .dm-action.dm-like:active {
    transform: scale(.95) !important;
  }
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  body[data-dingous-match-shell="true"] #dmSmartAnalyze,
  body[data-dingous-match-shell="true"] .dm-actions > .dm-action,
  body[data-dingous-match-shell="true"] .dm-mobile-menu-toggle,
  body[data-dingous-match-shell="true"] .dm-mobile-menu-source > a,
  body[data-dingous-match-shell="true"] .dm-mobile-menu-popover > a {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
