/* Labels are the default. Compact only specific rows that compete for space. */
.mobile-action-added-icon { display: none; }

@media (max-width: 768px) {
  /* Keep the floating launcher clear of check-in and planning footers, including saved positions. */
  body:has(#diary-checkin-form, .diary-create-modal.is-open, .planning-modal.is-open) {
    --feeling-editor-clearance: calc(56px + var(--space-md));
  }
}

@media (max-width: 480px) {
  /* Publication, protection and save status share the editor header. */
  body.dashboard-body .memory-workspace__header-actions .memory-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 10px;
    gap: 0;
    font-size: 0;
    line-height: 0;
  }

  .memory-workspace__header-actions .mobile-action-added-icon {
    display: block;
    width: 20px;
    height: 20px;
  }

  /* This floating control competes with writing and other actions on phones. */
  body:is(.dashboard-body, .vintage-theme[data-authenticated="true"]) .quick-emotions__trigger {
    width: 56px;
    min-width: 56px;
    height: 56px;
    padding: 8px;
    justify-content: center;
    gap: 0;
  }

  body:is(.dashboard-body, .vintage-theme[data-authenticated="true"]) .quick-emotions__trigger-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* The reader's Edit, Save a belief and More row only needs help on narrow phones. */
@media (max-width: 360px) {
  body.dashboard-body .memory-page__top-actions .memory-page__belief-action {
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 10px;
    gap: 0;
    font-size: 0;
    line-height: 0;

    .mobile-action-added-icon { display: block; }
    svg { width: 20px; height: 20px; }
    > span:not(.mobile-action-added-icon) {
      position: absolute;
      width: 1px;
      height: 1px;
      overflow: hidden;
      clip-path: inset(50%);
      white-space: nowrap;
    }
  }
}
