@media (max-width: 768px) {
  /* Always normalize the action buttons themselves */
  .journal-load,
  .journal-delete,
  button.journal-load,
  button.journal-delete,
  a.journal-load,
  a.journal-delete {
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    line-height: 1.15 !important;
    min-height: 52px !important;
    min-width: 132px !important;
    width: calc(50% - 6px) !important;
    max-width: 180px !important;
    padding: 12px 16px !important;
    flex: 1 1 calc(50% - 6px) !important;
  }

  /* Injected helper row */
  .jmfx-actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    width: 100% !important;
    margin-top: 14px !important;
    grid-column: 1 / -1 !important;
  }

  /* Cards that JS has normalized */
  .jmfx-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  /* If the original wrapper is still around, kill side-column behavior */
  .jmfx-button-host,
  .jmfx-button-host[class],
  .jmfx-card .jmfx-button-host {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
    grid-column: 1 / -1 !important;
  }

  /* Make tag bubbles stop taking over the card */
  .jmfx-card [class*="tag"],
  .jmfx-card [class*="mood"] {
    max-width: 100% !important;
  }
}
