.app-examples-modal {
  width: min(920px, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.app-examples-modal .modal-card-head {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.app-examples-modal .modal-card-title {
  white-space: normal;
  line-height: 1.25;
}

.app-examples-modal .modal-card-head .delete {
  flex: 0 0 auto;
  margin-left: auto;
}

.app-examples-modal .modal-card-body {
  min-height: 0;
  overflow-y: auto;
}

.app-examples-modal__content {
  min-height: 9rem;
  max-height: none;
  overflow-y: auto;
  border: 1px solid #e6ebf2;
  border-radius: 10px;
  padding: 0.85rem 0.95rem;
  background: #fcfdff;
}

.app-examples-modal__actions {
  position: sticky;
  bottom: 0;
  z-index: 1;
  margin-top: 0;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-top: 1px solid #e6ebf2;
  background: #fff;
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .app-examples-modal {
    width: calc(100vw - 0.5rem);
    max-height: calc(100dvh - 0.5rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }

  .app-examples-modal .modal-card-head,
  .app-examples-modal .modal-card-body,
  .app-examples-modal .modal-card-foot {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }

  .app-examples-modal .modal-card-title {
    font-size: 1rem;
  }

  .app-examples-modal__actions {
    justify-content: stretch;
  }

  .app-examples-modal__actions .button {
    flex: 1 1 100%;
  }
}
